1import{c as Wc,g as PE}from"./vendor-BUYbsWCt.js";function LE(Vt,ee){for(var Ce=0;Ce<ee.length;Ce++){const Ht=ee[Ce];if(typeof Ht!="string"&&!Array.isArray(Ht)){for(const P in Ht)if(P!=="default"&&!(P in Vt)){const sn=Object.getOwnPropertyDescriptor(Ht,P);sn&&Object.defineProperty(Vt,P,sn.get?sn:{enumerable:!0,get:()=>Ht[P]})}}}return Object.freeze(Object.defineProperty(Vt,Symbol.toStringTag,{value:"Module"}))}var Pr={exports:{}};Pr.exports;var gb;function OE(){return gb||(gb=1,(function(Vt,ee){(function(Ce){const Ht=Ce.en=Ce.en||{};Ht.dictionary=Object.assign(Ht.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:"Backgroun
1d","Below, you can find a list of keyboard shortcuts that can be used in the editor.":"Below, you can find a list of keyboard shortcuts that can be used in the editor.",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold","Bold text":"Bold text",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Cancel:"Cancel","Cannot access default workspace.":"Cannot access default workspace.","Cannot determine a category for the uploaded file.":"Cannot determine a category for the uploaded file.","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Cell properties":"Cell properties","Center table":"Center table","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Circle:"Circle",Clear:"Clear","Click to edit block":"Click to edit block",Close:"Close","Close contextual balloons, dropdowns, and dialogs":"Close contextual balloons, dropdowns, and dialogs",Code:"Code",Color:"Color","Color picker":"Color picker",Column:"Column","Content editing keystrokes":"Content editing keystrokes","Copy selected content":"Copy selected content","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.","Create link":"Create link",Custom:"Custom","Custom image size":"Custom image size",Dashed:"Dashed",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero","Decrease indent":"Decrease indent","Decrease list item indent":"Decrease list item indent","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Dimensions:"Dimensions",Disc:"Disc",Dotted:"Dotted",Double:"Double",Downloadable:"Downloadable","Drag to move":"Drag to move","Dropdown menu":"Dropdown menu","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit image":"Edit image","Edit link":"Edit link","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor dialog":"Editor dialog","Editor menu bar":"Editor menu bar","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Enter table caption":"Enter table caption","Entering a to-do list":"Entering a to-do list","Error during image upload":"Error during image upload","Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content.":"Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content.","Failed to determine category of edited image.":"Failed to determine category of edited image.",File:"File","From computer":"From computer","Full size image":"Full size image",Green:"Green",Grey:"Grey",Groove:"Groove","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6",Height:"Height","Help Contents. To close this dialog press ESC.":"Help Contents. To close this dialog press ESC.",HEX:"HEX","Horizontal text alignment toolbar":"Horizontal text alignment toolbar",Image:"Image","Image from computer":"Image from computer","Image resize list":"Image resize list","Image toolbar":"Image toolbar","Image upload complete":"Image upload complete","Image via URL":"Image via URL","image widget":"image widget","In line":"In line","Increase indent":"Increase indent","Increase list item indent":"Increase list item indent","Insert a hard break (a new paragraph)":"Insert a hard break (a new paragraph)","Insert a new paragraph directly after a widget":"Insert a new paragraph directly after a widget","Insert a new paragraph directly before a widget":"Insert a new paragraph directly before a widget","Insert a new table row (when in the last cell of a table)":"Insert a new table row (when in the last cell of a table)","Insert a soft break (a <code><br></code> element)":"Insert a soft break (a <code><br></code> element)","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert image via URL":"Insert image via URL","Insert image with file manager":"Insert image with file manager","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Insert via URL":"Insert via URL","Insert with file manager":"Insert with file manager","Inserting image failed":"Inserting image failed",Inset:"Inset","Invalid start index value.":"Invalid start index value.",Italic:"Italic","Italic text":"Italic text","Justify cell text":"Justify cell text","Keystrokes that can be used in a list":"Keystrokes that can be used in a list","Keystrokes that can be used in a table cell":"Keystrokes that can be used in a table cell","Keystrokes that can be used when a widget is selected (for example: image, table, etc.)":"Keystrokes that can be used when a widget is selected (for example: image, table, etc.)","Leaving a to-do list":"Leaving a to-do list","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link image":"Link image","Link URL":"Link URL","Link URL must not be empty.":"Link URL must not be empty.","List properties":"List properties","Lower-latin":"Lower-latin","Lowerâroman":"Lowerâroman",Media:"Media","Media toolbar":"Media toolbar","Media URL":"Media URL","media widget":"media widget",MENU_BAR_MENU_EDIT:"Edit",MENU_BAR_MENU_FILE:"File",MENU_BAR_MENU_FONT:"Font",MENU_BAR_MENU_FORMAT:"Format",MENU_BAR_MENU_HELP:"Help",MENU_BAR_MENU_INSERT:"Insert",MENU_BAR_MENU_TEXT:"Text",MENU_BAR_MENU_TOOLS:"Tools",MENU_BAR_MENU_VIEW:"View","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells","Move focus between form fields (inputs, buttons, etc.)":"Move focus between form fields (inputs, buttons, etc.)","Move focus from an editable area back to the parent widget":"Move focus from an editable area back to the parent widget","Move focus in and out of an active dialog window":"Move focus in and out of an active dialog window","Move focus to the menu bar, navigate between menu bars":"Move focus to the menu bar, navigate between menu bars","Move focus to the toolbar, navigate between toolbars":"Move focus to the toolbar, navigate between toolbars","Move out of a link":"Move out of a link","Move out of an inline code style":"Move out of an inline code style","Move the caret to allow typing directly after a widget":"Move the caret to allow typing directly after a widget","Move the caret to allow typing directly before a widget":"Move the caret to allow typing directly before a widget","Move the selection to the next cell":"Move the selection to the next cell","Move the selection to the previous cell":"Move the selection to the previous cell","Navigate through the table":"Navigate through the table","Navigate through the toolbar or menu bar":"Navigate through the toolbar or menu bar",Next:"Next","No results found":"No results found","No searchable items":"No searchable items",None:"None","Numbered List":"Numbered List","Numbered list styles toolbar":"Numbered list styles toolbar","Open file manager":"Open file manager","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","Open media in new tab":"Open media in new tab","Open the accessibility help dialog":"Open the accessibility help dialog",Orange:"Orange",Original:"Original",Outset:"Outset",Padding:"Padding",Paragraph:"Paragraph","Paste content":"Paste content","Paste content as plain text":"Paste content as plain text","Paste the media URL in the input.":"Paste the media URL in the input.",'Please enter a valid color (e.g. "ff0000").':'Please enter a valid color (e.g. "ff0000").',"Press %0 for help.":"Press %0 for help.","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous","Processing the edited image.":"Processing the edited image.",Purple:"Purple",Red:"Red",Redo:"Redo","Remove c
1olor":"Remove color","Replace from computer":"Replace from computer","Replace image":"Replace image","Replace image from computer":"Replace image from computer","Replace image with file manager":"Replace image with file manager","Replace with file manager":"Replace with file manager","Resize image":"Resize image","Resize image (in %0)":"Resize image (in %0)","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Restore default":"Restore default","Reversed order":"Reversed order","Revert autoformatting action":"Revert autoformatting action","Rich Text Editor":"Rich Text Editor","Rich Text Editor. Editing area: %0":"Rich Text Editor. Editing area: %0",Ridge:"Ridge","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Server failed to process the image.":"Server failed to process the image.","Show more items":"Show more items","Side image":"Side image",Solid:"Solid","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Square:"Square","Start at":"Start at","Start index must be greater than 0.":"Start index must be greater than 0.",Strikethrough:"Strikethrough","Strikethrough text":"Strikethrough text",Style:"Style",Subscript:"Subscript",Superscript:"Superscript",Table:"Table","Table alignment toolbar":"Table alignment toolbar","Table cell text alignment":"Table cell text alignment","Table properties":"Table properties","Table toolbar":"Table toolbar","Text alternative":"Text alternative",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".',"The URL must not be empty.":"The URL must not be empty.",'The value is invalid. Try "10px" or "2em" or simply "2".':'The value is invalid. Try "10px" or "2em" or simply "2".',"The value must not be empty.":"The value must not be empty.","The value should be a plain number.":"The value should be a plain number.","These keyboard shortcuts allow for quick access to content editing features.":"These keyboard shortcuts allow for quick access to content editing features.","This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.","To-do List":"To-do List","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on","Toggle the circle list style":"Toggle the circle list style","Toggle the decimal list style":"Toggle the decimal list style","Toggle the decimal with leading zero list style":"Toggle the decimal with leading zero list style","Toggle the disc list style":"Toggle the disc list style","Toggle the lowerâlatin list style":"Toggle the lowerâlatin list style","Toggle the lowerâroman list style":"Toggle the lowerâroman list style","Toggle the square list style":"Toggle the square list style","Toggle the upperâlatin list style":"Toggle the upperâlatin list style","Toggle the upperâroman list style":"Toggle the upperâroman list style",Turquoise:"Turquoise","Type or paste your content here.":"Type or paste your content here.","Type your title":"Type your title",Underline:"Underline","Underline text":"Underline text",Undo:"Undo",Unlink:"Unlink","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload from computer":"Upload from computer","Upload image from computer":"Upload image from computer","Upload in progress":"Upload in progress","Uploading image":"Uploading image","Upper-latin":"Upper-latin","Upper-roman":"Upper-roman","Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface.":"Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface.","User interface and content navigation keystrokes":"User interface and content navigation keystrokes","Vertical text alignment toolbar":"Vertical text alignment toolbar","Via URL":"Via URL",White:"White","Widget toolbar":"Widget toolbar",Width:"Width","With file manager":"With file manager","Wrap text":"Wrap text",Yellow:"Yellow","You have no image editing permissions.":"You have no image editing permissions.","You have no image upload permissions.":"You have no image upload permissions."}),Ht.getPluralForm=function(P){return P!=1}})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),(function(Ce,Ht){Vt.exports=Ht()})(self,(()=>(()=>{var Ce={9246:(x,A,g)=>{const y=g(6931),v={};for(const f of Object.keys(y))v[y[f]]=f;const _={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"]}};x.exports=_;for(const f of Object.keys(_)){if(!("channels"in _[f]))throw new Error("missing channels property: "+f);if(!("labels"in _[f]))throw new Error("missing channel labels property: "+f);if(_[f].labels.length!==_[f].channels)throw new Error("channel and label counts mismatch: "+f);const{channels:w,labels:D}=_[f];delete _[f].channels,delete _[f].labels,Object.defineProperty(_[f],"channels",{value:w}),Object.defineProperty(_[f],"labels",{value:D})}_.rgb.hsl=function(f){const w=f[0]/255,D=f[1]/255,S=f[2]/255,B=Math.min(w,D,S),O=Math.max(w,D,S),L=O-B;let W,Y;O===B?W=0:w===O?W=(D-S)/L:D===O?W=2+(S-w)/L:S===O&&(W=4+(w-D)/L),W=Math.min(60*W,3
160),W<0&&(W+=360);const et=(B+O)/2;return Y=O===B?0:et<=.5?L/(O+B):L/(2-O-B),[W,100*Y,100*et]},_.rgb.hsv=function(f){let w,D,S,B,O;const L=f[0]/255,W=f[1]/255,Y=f[2]/255,et=Math.max(L,W,Y),ft=et-Math.min(L,W,Y),Ot=function(Wt){return(et-Wt)/6/ft+.5};return ft===0?(B=0,O=0):(O=ft/et,w=Ot(L),D=Ot(W),S=Ot(Y),L===et?B=S-D:W===et?B=.3333333333333333+w-S:Y===et&&(B=.6666666666666666+D-w),B<0?B+=1:B>1&&(B-=1)),[360*B,100*O,100*et]},_.rgb.hwb=function(f){const w=f[0],D=f[1];let S=f[2];const B=_.rgb.hsl(f)[0],O=1/255*Math.min(w,Math.min(D,S));return S=1-.00392156862745098*Math.max(w,Math.max(D,S)),[B,100*O,100*S]},_.rgb.cmyk=function(f){const w=f[0]/255,D=f[1]/255,S=f[2]/255,B=Math.min(1-w,1-D,1-S);return[100*((1-w-B)/(1-B)||0),100*((1-D-B)/(1-B)||0),100*((1-S-B)/(1-B)||0),100*B]},_.rgb.keyword=function(f){const w=v[f];if(w)return w;let D,S=1/0;for(const L of Object.keys(y)){const W=y[L],Y=(O=W,((B=f)[0]-O[0])**2+(B[1]-O[1])**2+(B[2]-O[2])**2);Y<S&&(S=Y,D=L)}var B,O;return D},_.keyword.rgb=function(f){return y[f]},_.rgb.xyz=function(f){let w=f[0]/255,D=f[1]/255,S=f[2]/255;return w=w>.04045?((w+.055)/1.055)**2.4:w/12.92,D=D>.04045?((D+.055)/1.055)**2.4:D/12.92,S=S>.04045?((S+.055)/1.055)**2.4:S/12.92,[100*(.4124*w+.3576*D+.1805*S),100*(.2126*w+.7152*D+.0722*S),100*(.0193*w+.1192*D+.9505*S)]},_.rgb.lab=function(f){const w=_.rgb.xyz(f);let D=w[0],S=w[1],B=w[2];return D/=95.047,S/=100,B/=108.883,D=D>.008856?D**.3333333333333333:7.787*D+.13793103448275862,S=S>.008856?S**.3333333333333333:7.787*S+.13793103448275862,B=B>.008856?B**.3333333333333333:7.787*B+.13793103448275862,[116*S-16,500*(D-S),200*(S-B)]},_.hsl.rgb=function(f){const w=f[0]/360,D=f[1]/100,S=f[2]/100;let B,O,L;if(D===0)return L=255*S,[L,L,L];B=S<.5?S*(1+D):S+D-S*D;const W=2*S-B,Y=[0,0,0];for(let et=0;et<3;et++)O=w+.3333333333333333*-(et-1),O<0&&O++,O>1&&O--,L=6*O<1?W+6*(B-W)*O:2*O<1?B:3*O<2?W+(B-W)*(.6666666666666666-O)*6:W,Y[et]=255*L;return Y},_.hsl.hsv=function(f){const w=f[0];let D=f[1]/100,S=f[2]/100,B=D;const O=Math.max(S,.01);return S*=2,D*=S<=1?S:2-S,B*=O<=1?O:2-O,[w,100*(S===0?2*B/(O+B):2*D/(S+D)),100*((S+D)/2)]},_.hsv.rgb=function(f){const w=f[0]/60,D=f[1]/100;let S=f[2]/100;const B=Math.floor(w)%6,O=w-Math.floor(w),L=255*S*(1-D),W=255*S*(1-D*O),Y=255*S*(1-D*(1-O));switch(S*=255,B){case 0:return[S,Y,L];case 1:return[W,S,L];case 2:return[L,S,Y];case 3:return[L,W,S];case 4:return[Y,L,S];case 5:return[S,L,W]}},_.hsv.hsl=function(f){const w=f[0],D=f[1]/100,S=f[2]/100,B=Math.max(S,.01);let O,L;L=(2-D)*S;const W=(2-D)*B;return O=D*B,O/=W<=1?W:2-W,O=O||0,L/=2,[w,100*O,100*L]},_.hwb.rgb=function(f){const w=f[0]/360;let D=f[1]/100,S=f[2]/100;const B=D+S;let O;B>1&&(D/=B,S/=B);const L=Math.floor(6*w),W=1-S;O=6*w-L,1&L&&(O=1-O);const Y=D+O*(W-D);let et,ft,Ot;switch(L){default:case 6:case 0:et=W,ft=Y,Ot=D;break;case 1:et=Y,ft=W,Ot=D;break;case 2:et=D,ft=W,Ot=Y;break;case 3:et=D,ft=Y,Ot=W;break;case 4:et=Y,ft=D,Ot=W;break;case 5:et=W,ft=D,Ot=Y}return[255*et,255*ft,255*Ot]},_.cmyk.rgb=function(f){const w=f[0]/100,D=f[1]/100,S=f[2]/100,B=f[3]/100;return[255*(1-Math.min(1,w*(1-B)+B)),255*(1-Math.min(1,D*(1-B)+B)),255*(1-Math.min(1,S*(1-B)+B))]},_.xyz.rgb=function(f){const w=f[0]/100,D=f[1]/100,S=f[2]/100;let B,O,L;return B=3.2406*w+-1.5372*D+-.4986*S,O=-.9689*w+1.8758*D+.0415*S,L=.0557*w+-.204*D+1.057*S,B=B>.0031308?1.055*B**.4166666666666667-.055:12.92*B,O=O>.0031308?1.055*O**.4166666666666667-.055:12.92*O,L=L>.0031308?1.055*L**.4166666666666667-.055:12.92*L,B=Math.min(Math.max(0,B),1),O=Math.min(Math.max(0,O),1),L=Math.min(Math.max(0,L),1),[255*B,255*O,255*L]},_.xyz.lab=function(f){let w=f[0],D=f[1],S=f[2];return w/=95.047,D/=100,S/=108.883,w=w>.008856?w**.3333333333333333:7.787*w+.13793103448275862,D=D>.008856?D**.3333333333333333:7.787*D+.13793103448275862,S=S>.008856?S**.3333333333333333:7.787*S+.13793103448275862,[116*D-16,500*(w-D),200*(D-S)]},_.lab.xyz=function(f){let w,D,S;D=(f[0]+16)/116,w=f[1]/500+D,S=D-f[2]/200;const B=D**3,O=w**3,L=S**3;return D=B>.008856?B:(D-.13793103448275862)/7.787,w=O>.008856?O:(w-.13793103448275862)/7.787,S=L>.008856?L:(S-.13793103448275862)/7.787,w*=95.047,D*=100,S*=108.883,[w,D,S]},_.lab.lch=function(f){const w=f[0],D=f[1],S=f[2];let B;return B=360*Math.atan2(S,D)/2/Math.PI,B<0&&(B+=360),[w,Math.sqrt(D*D+S*S),B]},_.lch.lab=function(f){const w=f[0],D=f[1],S=f[2]/360*2*Math.PI;return[w,D*Math.cos(S),D*Math.sin(S)]},_.rgb.ansi16=function(f,w=null){const[D,S,B]=f;let O=w===null?_.rgb.hsv(f)[2]:w;if(O=Math.round(O/50),O===0)return 30;
vendor: 3,273 bytes, line 1
1let L=30+(Math.round(B/255)<<2|Math.round(S/255)<<1|Math.round(D/255));return O===2&&(L+=60),L},_.hsv.ansi16=function(f){return _.rgb.ansi16(_.hsv.rgb(f),f[2])},_.rgb.ansi256=function(f){const w=f[0],D=f[1],S=f[2];return w===D&&D===S?w<8?16:w>248?231:Math.round((w-8)/247*24)+232:16+36*Math.round(w/255*5)+6*Math.round(D/255*5)+Math.round(S/255*5)},_.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 D=.5*(1+~~(f>50));return[(1&w)*D*255,(w>>1&1)*D*255,(w>>2&1)*D*255]},_.ansi256.rgb=function(f){if(f>=232){const D=10*(f-232)+8;return[D,D,D]}let w;return f-=16,[Math.floor(f/36)/5*255,Math.floor((w=f%36)/6)/5*255,w%6/5*255]},_.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},_.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 D=w[0];w[0].length===3&&(D=D.split("").map((B=>B+B)).join(""));const S=parseInt(D,16);return[S>>16&255,S>>8&255,255&S]},_.rgb.hcg=function(f){const w=f[0]/255,D=f[1]/255,S=f[2]/255,B=Math.max(Math.max(w,D),S),O=Math.min(Math.min(w,D),S),L=B-O;let W,Y;return W=L<1?O/(1-L):0,Y=L<=0?0:B===w?(D-S)/L%6:B===D?2+(S-w)/L:4+(w-D)/L,Y/=6,Y%=1,[360*Y,100*L,100*W]},_.hsl.hcg=function(f){const w=f[1]/100,D=f[2]/100,S=D<.5?2*w*D:2*w*(1-D);let B=0;return S<1&&(B=(D-.5*S)/(1-S)),[f[0],100*S,100*B]},_.hsv.hcg=function(f){const w=f[1]/100,D=f[2]/100,S=w*D;let B=0;return S<1&&(B=(D-S)/(1-S)),[f[0],100*S,100*B]},_.hcg.rgb=function(f){const w=f[0]/360,D=f[1]/100,S=f[2]/100;if(D===0)return[255*S,255*S,255*S];const B=[0,0,0],O=w%1*6,L=O%1,W=1-L;let Y=0;switch(Math.floor(O)){case 0:B[0]=1,B[1]=L,B[2]=0;break;case 1:B[0]=W,B[1]=1,B[2]=0;break;case 2:B[0]=0,B[1]=1,B[2]=L;break;case 3:B[0]=0,B[1]=W,B[2]=1;break;case 4:B[0]=L,B[1]=0,B[2]=1;break;default:B[0]=1,B[1]=0,B[2]=W}return Y=(1-D)*S,[255*(D*B[0]+Y),255*(D*B[1]+Y),255*(D*B[2]+Y)]},_.hcg.hsv=function(f){const w=f[1]/100,D=w+f[2]/100*(1-w);let S=0;return D>0&&(S=w/D),[f[0],100*S,100*D]},_.hcg.hsl=function(f){const w=f[1]/100,D=f[2]/100*(1-w)+.5*w;let S=0;return D>0&&D<.5?S=w/(2*D):D>=.5&&D<1&&(S=w/(2*(1-D))),[f[0],100*S,100*D]},_.hcg.hwb=function(f){const w=f[1]/100,D=w+f[2]/100*(1-w);return[f[0],100*(D-w),100*(1-D)]},_.hwb.hcg=function(f){const w=f[1]/100,D=1-f[2]/100,S=D-w;let B=0;return S<1&&(B=(D-S)/(1-S)),[f[0],100*S,100*B]},_.apple.rgb=function(f){return[f[0]/65535*255,f[1]/65535*255,f[2]/65535*255]},_.rgb.apple=function(f){return[f[0]/255*65535,f[1]/255*65535,f[2]/255*65535]},_.gray.rgb=function(f){return[f[0]/100*255,f[0]/100*255,f[0]/100*255]},_.gray.hsl=function(f){return[0,0,f[0]]},_.gray.hsv=_.gray.hsl,_.gray.hwb=function(f){return[0,100,f[0]]},_.gray.cmyk=function(f){return[0,0,0,f[0]]},_.gray.lab=function(f){return[f[0],0,0]},_.gray.hex=function(f){const w=255&Math.round(f[0]/100*255),D=((w<<16)+(w<<8)+w).toString(16).toUpperCase();return"000000".substring(D.length)+D},_.rgb.gray=function(f){return[(f[0]+f[1]+f[2])/3/255*100]}},9047:(x,A,g)=>{const y=g(9246),v=g(802),_={};Object.keys(y).forEach((f=>{_[f]={},Object.defineProperty(_[f],"channels",{value:y[f].channels}),Object.defineProperty(_[f],"labels",{value:y[f].labels});const w=v(f);
1Object.keys(w).forEach((D=>{const S=w[D];_[f][D]=(function(B){const O=function(...L){const W=L[0];if(W==null)return W;W.length>1&&(L=W);const Y=B(L);if(typeof Y=="object")for(let et=Y.length,ft=0;ft<et;ft++)Y[ft]=Math.round(Y[ft]);return Y};return"conversion"in B&&(O.conversion=B.conversion),O})(S),_[f][D].raw=(function(B){const O=function(...L){const W=L[0];return W==null?W:(W.length>1&&(L=W),B(L))};return"conversion"in B&&(O.conversion=B.conversion),O})(S)}))})),x.exports=_},802:(x,A,g)=>{const y=g(9246);function v(w){const D=(function(){const B={},O=Object.keys(y);for(let L=O.length,W=0;W<L;W++)B[O[W]]={distance:-1,parent:null};return B})(),S=[w];for(D[w].distance=0;S.length;){const B=S.pop(),O=Object.keys(y[B]);for(let L=O.length,W=0;W<L;W++){const Y=O[W],et=D[Y];et.distance===-1&&(et.distance=D[B].distance+1,et.parent=B,S.unshift(Y))}}return D}function _(w,D){return function(S){return D(w(S))}}function f(w,D){const S=[D[w].parent,w];let B=y[D[w].parent][w],O=D[w].parent;for(;D[O].parent;)S.unshift(D[O].parent),B=_(y[D[O].parent][O],B),O=D[O].parent;return B.conversion=S,B}x.exports=function(w){const D=v(w),S={},B=Object.keys(D);for(let O=B.length,L=0;L<O;L++){const W=B[L];D[W].parent!==null&&(S[W]=f(W,D))}return S}},6931:x=>{x.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:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:(x,A,g)=>{g.d(A,{A:()=>w});
91var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}.ck.ck-clipboard-drop-target-line{pointer-events:none;position:absolute}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}.ck.ck-clipboard-drop-target-line{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);height:0;margin-top:-1px}.ck.ck-clipboard-drop-target-line:before{border-style:solid;content:"";height:0;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-width)*-.5);width:0}[dir=ltr] .ck.ck-clipboard-drop-target-line:before{border-color:transparent transparent transparent var(--ck-clipboard-drop-target-color);border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height);left:-1px}[dir=rtl] .ck.ck-clipboard-drop-target-line:before{border-color:transparent var(--ck-clipboard-drop-target-color) transparent transparent;border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0;right:-1px}',"",{version:3,sources:["webpack://./../ckeditor5-clipboard/theme/clipboard.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CAIF,kCAEC,mBAAoB,CADpB,iBAED,CC9BA,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CAOF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD,CAGD,kCAGC,gDAAiD,CADjD,sDAAuD,CADvD,QAAS,CAGT,eAwBD,CAtBC,yCAMC,kBAAmB,CALnB,UAAW,CAIX,QAAS,CAHT,iBAAkB,CAClB,uDAA0D,CAC1D,OAiBD,CCjFA,mDDwEE,sFAAuF,CADvF,+JAAoK,CAFpK,SCnEF,CAFA,mDD+EE,sFAAuF,CADvF,+JAAmK,CAFnK,UC1EF",sourcesContent:[`/* 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`,`/* 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@define-mixin ck-dir $direction { 224 [dir="$(direction)"] & { 225 @mixin-content; 226 } 227} 228`],sourceRoot:""}]);const w=f},7388:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-panel)}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content{border:solid var(--ck-color-base-border);border-radius:0;border-width:1px 1px 0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content.ck-sticky-panel__content_sticky{border-bottom-width:1px}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content .ck-menu-bar{border:0;border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content .ck-toolbar{border:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./../ckeditor5-editor-classic/theme/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,8DAOC,wCAAsB,
228CCLxB,eAAgB,CDKd,sBAcD,CCjBD,mKAEC,qCAAsC,CDJpC,2BAA4B,CAC5B,4BCKH,CDCE,8FACC,uBACD,CAEA,2EACC,QAAS,CACT,mDACD,CAEA,0EACC,QACD,CAMH,yCAEC,0CAA2C,CC1B3C,eDoCD,CClCC,yHAEC,qCAAsC,CDyBtC,wBAAyB,CACzB,yBCxBD,CD2BA,0DACC,wCACD",sourcesContent:[`/* 229 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 230 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 231 */ 232 233.ck.ck-editor { 234 /* All the elements within \`.ck-editor\` are positioned relatively to it. 235 If any element needs to be positioned with respect to the <body>, etc., 236 it must land outside of the \`.ck-editor\` in DOM. */ 237 position: relative; 238 239 & .ck-editor__top .ck-sticky-panel .ck-toolbar { 240 /* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */ 241 z-index: var(--ck-z-panel); 242 } 243} 244`,`/* 245 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 246 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 247 */ 248 249@import "../mixins/_rounded.css"; 250 251.ck.ck-editor__top { 252 & .ck-sticky-panel { 253 & .ck-sticky-panel__content { 254 @mixin ck-rounded-corners { 255 border-bottom-left-radius: 0; 256 border-bottom-right-radius: 0; 257 } 258 259 border: 1px solid var(--ck-color-base-border); 260 border-bottom-width: 0; 261 262 &.ck-sticky-panel__content_sticky { 263 border-bottom-width: 1px; 264 } 265 266 & .ck-menu-bar { 267 border: 0; 268 border-bottom: 1px solid var(--ck-color-base-border); 269 } 270 271 & .ck-toolbar { 272 border: 0; 273 } 274 } 275 } 276} 277 278/* Note: Use ck-editor__main to make sure these styles don't apply to other editor types */ 279.ck.ck-editor__main > .ck-editor__editable { 280 /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */ 281 background: var(--ck-color-base-background); 282 283 @mixin ck-rounded-corners { 284 border-top-left-radius: 0; 285 border-top-right-radius: 0; 286 } 287 288 &:not(.ck-focused) { 289 border-color: var(--ck-color-base-border); 290 } 291} 292`,`/* 293 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 294 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 295 */ 296 297/** 298 * Implements rounded corner interface for .ck-rounded-corners class. 299 * 300 * @see $ck-border-radius 301 */ 302@define-mixin ck-rounded-corners { 303 border-radius: 0; 304 305 .ck-rounded-corners &, 306 &.ck-rounded-corners { 307 border-radius: var(--ck-border-radius); 308 @mixin-content; 309 } 310} 311`],sourceRoot:""}]);const w=f},4098:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 312 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 313 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 314 */ 315 316/* See ckeditor/ckeditor5#936. */ 317.ck.ck-placeholder, 318.ck .ck-placeholder { 319 position: relative; 320 321 &::before { 322 position: absolute; 323 left: 0; 324 right: 0; 325 content: attr(data-placeholder); 326 327 /* See ckeditor/ckeditor5#469. */ 328 pointer-events: none; 329 } 330} 331 332/* See ckeditor/ckeditor5#1987. */ 333.ck.ck-read-only .ck-placeholder { 334 &::before { 335 display: none; 336 } 337} 338 339/* 340 * Rules for the \`ck-placeholder\` are loaded before the rules for \`ck-reset_all\` in the base CKEditor 5 DLL build. 341 * This fix overwrites the incorrectly set \`position: static\` from \`ck-reset_all\`. 342 * See https://github.com/ckeditor/ckeditor5/issues/11418. 343 */ 344.ck.ck-reset_all .ck-placeholder { 345 position: relative; 346} 347`,`/* 348 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 349 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 350 */ 351 352@define-mixin ck-media-forced-colors { 353 @media (forced-colors: active) { 354 & { 355 @mixin-content; 356 } 357 } 358} 359 360@define-mixin ck-media-default-colors { 361 @media (forced-colors: none) { 362 & { 363 @mixin-content; 364 } 365 } 366} 367`,`/* 368 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 369 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 370 */ 371 372@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css"; 373 374/* See ckeditor/ckeditor5#936. */ 375.ck.ck-placeholder, .ck .ck-placeholder { 376 @mixin ck-media-forced-colors { 377 /* 378 * This is needed for Edge on Windows to use the right color for the placeholder content (::before). 379 * See https://github.com/ckeditor/ckeditor5/issues/14907. 380 */ 381 forced-color-adjust: preserve-parent-color; 382 } 383 384 &::before { 385 cursor: text; 386 387 @mixin ck-media-default-colors { 388 color: var(--ck-color-engine-placeholder-text); 389 } 390 391 @mixin ck-media-forced-colors { 392 /* 393 * In the high contrast mode there is no telling between regular and placeholder text. Using 394 * italic text to address that issue. See https://github.com/ckeditor/ckeditor5/issues/14907. 395 */ 396 font-style: italic; 397 398 /* 399 * Without this margin, the caret will not show up and blink
399when the user puts the selection 400 * in the placeholder (Edge on Windows). See https://github.com/ckeditor/ckeditor5/issues/14907. 401 */ 402 margin-left: 1px; 403 } 404 } 405} 406`],sourceRoot:""}]);const w=f},8264:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 407 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 408 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 409 */ 410 411/* Elements marked by the Renderer as hidden should be invisible in the editor. */ 412.ck.ck-editor__editable span[data-ck-unsafe-element] { 413 display: none; 414} 415`],sourceRoot:""}]);const w=f},6269:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-heading_heading1 .ck-button__label{font-size:20px}.ck.ck-heading_heading2 .ck-button__label{font-size:17px}.ck.ck-heading_heading3 .ck-button__label{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./../ckeditor5-heading/theme/heading.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,0CACC,cACD,CAEA,0CACC,cACD,CAEA,0CACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:[`/* 416 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 417 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 418 */ 419 420.ck.ck-heading_heading1 .ck-button__label { 421 font-size: 20px; 422} 423 424.ck.ck-heading_heading2 .ck-button__label { 425 font-size: 17px; 426} 427 428.ck.ck-heading_heading3 .ck-button__label { 429 font-size: 14px; 430} 431 432.ck[class*="ck-heading_heading"] { 433 font-weight: bold; 434} 435`,`/* 436 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 437 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 438 */ 439 440/* Resize dropdown's button label. */ 441.ck.ck-dropdown.ck-heading-dropdown { 442 & .ck-dropdown__button .ck-button__label { 443 width: 8em; 444 } 445 446 & .ck-dropdown__panel .ck-list__item { 447 min-width: 18em; 448 } 449} 450`],sourceRoot:""}]);const w=f},265:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 451 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 452 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 453 */ 454 455.ck-content { 456 & .image { 457 display: table; 458 clear: both; 459 text-align: center; 460 461 /* Make sure there is some space between the content and the image. Center image by default. */ 462 /* The first value should be equal to --ck-spacing-large variable if used in the editor context 463 to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */ 464 margin: 0.9em auto; 465 466 /* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */ 467 min-width: 50px; 468 469 & img { 470 /* Prevent unnecessary margins caused by line-height (see #44). */ 471 display: block; 472 473 /* Center the image if its width is smaller than the content's width. */ 474 margin: 0 auto; 475 476 /* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */ 477 max-width: 100%; 478 479 /* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */ 480 min-width: 100%; 481 482 /* Keep proportions of the block image if the height is set and the image is wider than the editor width. 483 See https://github.com/ckeditor/ckeditor5/issues/14542. */ 484 height: auto; 485 } 486 } 487 488 & .image-inline { 489 /* 490 * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing). 491 * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root. 492 * This strange behavior does not happen with inline-flex. 493 */ 494 display: inline-flex; 495 496 /* While being resized, don't allow the image to exceed the width of the editing root. */ 497 max-width: 100%; 498 499 /* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */ 500 align-items: flex-start; 501 502 /* When the picture is present it must act as a flex container to let the img resize properly */ 503 & picture { 504 display: flex; 505 } 506 507 /* When the picture is present, it must act like a resizable img. */ 508 & picture, 509 & img { 510 /* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */ 511 flex-grow: 1; 512 flex-shrink: 1; 513 514 /* Prevents overflowing the editing root boundaries when an inline image is very wide. */ 515 max-width: 100%; 516 } 517 } 518} 519 520.ck.ck-editor__editable { 521 /* 522 * Inhertit the content styles padding of the <figcaption> in case the integration overrides \`text-align: center\` 523 * of \`.image\` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native 524 * caret does, and not at the edge of <figcaption>. 525 */ 526 & .image > figcaption.ck-placeholder::before { 527 padding-left: inherit; 528 padding-right: inherit; 529 530 /* 531 * Make sure the image caption placeholder doesn't overflow the placeholder area. 532 * See https://github.com/ckeditor/ckeditor5/issues/9162. 533 */ 534 white-space: nowrap; 535 overflow: hidden; 536 text-overflow: ellipsis; 537 } 538 539 /* 540 * See https://github.com/ckeditor/ckeditor5/issues/15115. 541 */ 542 & .image { 543 z-index: 1; 544 545 /* 546 * Make sure the selected image always stays on top of its siblings. 547 * See https://github.com/ckeditor/ckeditor5/issues/9108. 548 */ 549 &.ck-widget_selected { 550 z-index: 2; 551 } 552 } 553 554 /* 555 * See https://github.com/ckeditor/ckeditor5/issues/15115. 556 */ 557 & .image-inline { 558 z-index: 1; 559 560 /* 561 * Make sure the selected inline image always stays on top of its siblings. 562 * See https://github.com/ckeditor/ckeditor5/issues/9108. 563 */ 564 &.ck-widget_selected { 565 z-index: 2; 566 567 /* 568 * Make sure the native browser selection style is not displayed. 569 * Inline image widgets have their own styles for the selected state and 570 * leaving this up to the browser is asking for a visual collision. 571 */ 572 & ::selection { 573 display: none; 574 } 575 } 576 } 577 578 /* Keep proportions of the inline image if the height is set and the image is wider than the editor width. 579 See https://github.com/ckeditor/ckeditor5/issues/14542. */ 580 & .image-inline img { 581 height: auto; 582 } 583 584 /* The inline image nested in the table should have its original size if not resized. 585 See https://github.com/ckeditor/ckeditor5/issues/9117. */ 586 & td, 587 & th { 588 & .image-inline img { 589 max-width: none; 590 } 591 } 592} 593`],sourceRoot:""}]);const w=f},5247:(x,A,g)=>{g.d(A,{A:()=>w});
593var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highlighted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}@media (forced-colors:active){.ck-content .image>figcaption{background-color:unset;color:unset}}@media (forced-colors:none){.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}}@media (prefers-reduced-motion:reduce){.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:none}}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highlighted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecaption.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css"],names:[],mappings:"AAOA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,oDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAYD,CAJC,8BAXD,8BAYE,sBAAuB,CACvB,WAEF,CADC,CCdA,4BACC,qEDmBA,iDCjBA,CACD,CDmBA,uCALD,qEAME,cAEF,CADC,CAGD,sCACC,GACC,qEACD,CAEA,GACC,yDACD,CACD",sourcesContent:[`/* 594 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 595 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 596 */ 597 598@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css"; 599 600:root { 601 --ck-color-image-caption-background: hsl(0, 0%, 97%); 602 --ck-color-image-caption-text: hsl(0, 0%, 20%); 603 --ck-color-image-caption-highlighted-background: hsl(52deg 100% 50%); 604} 605 606/* Content styles */ 607.ck-content .image > figcaption { 608 display: table-caption; 609 caption-side: bottom; 610 word-break: break-word; 611 color: var(--ck-color-image-caption-text); 612 background-color: var(--ck-color-image-caption-background); 613 padding: .6em; 614 font-size: .75em; 615 outline-offset: -1px; 616 617 /* Improve placeholder rendering in high-constrast mode (https://github.com/ckeditor/ckeditor5/issues/14907). */ 618 @media (forced-colors: active) { 619 background-color: unset; 620 color: unset; 621 } 622} 623 624/* Editing styles */ 625.ck.ck-editor__editable .image > figcaption.image__caption_highlighted { 626 @mixin ck-media-default-colors { 627 animation: ck-image-caption-highlight .6s ease-out; 628 } 629 630 @media (prefers-reduced-motion: reduce) { 631 animation: none; 632 } 633} 634 635@keyframes ck-image-caption-highlight { 636 0% { 637 background-color: var(--ck-color-image-caption-highlighted-background); 638 } 639 640 100% { 641 background-color: var(--ck-color-image-caption-background); 642 } 643} 644`,`/* 645 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 646 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 647 */ 648 649@define-mixin ck-media-forced-colors { 650 @media (forced-colors: active) { 651 & { 652 @mixin-content; 653 } 654 } 655} 656 657@define-mixin ck-media-default-colors { 658 @media (forced-colors: none) { 659 & { 660 @mixin-content; 661 } 662 } 663} 664`],sourceRoot:""}]);const w=f},4642:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 665 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 666 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 667 */ 668 669@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; 670 671.ck.ck-image-custom-resize-form { 672 display: flex; 673 flex-direction: row; 674 flex-wrap: nowrap; 675 align-items: flex-start; 676 677 & .ck-labeled-field-view { 678 display: inline-block; 679 } 680 681 & .ck-label { 682 display: none; 683 } 684 685 @mixin ck-media-phone { 686 flex-wrap: wrap; 687 688 & .ck-labeled-field-view { 689 flex-basis: 100%; 690 } 691 692 & .ck-button { 693 flex-basis: 50%; 694 } 695 } 696} 697`,`/* 698 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 699 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 700 */ 701 702@define-mixin ck-media-phone { 703 @media screen and (max-width: 600px) { 704 @mixin-content; 705 } 706} 707`],sourceRoot:""}]);const w=f},3350:(x,A,g)=>{g.d(A,{A:()=>w});
707var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-image-insert-url{padding:var(--ck-spacing-large) var(--ck-spacing-large) 0;width:400px}.ck.ck-image-insert-url .ck-image-insert-url__action-row{display:grid;grid-template-columns:repeat(2,1fr)}:root{--ck-image-insert-insert-by-url-width:250px}.ck.ck-image-insert-url{--ck-input-width:100%}.ck.ck-image-insert-url .ck-image-insert-url__action-row{grid-column-gap:var(--ck-spacing-large);margin-top:var(--ck-spacing-large)}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-cancel,.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-save{justify-content:center;min-width:auto}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}.ck.ck-image-insert-form>.ck.ck-button{display:block;width:100%}[dir=ltr] .ck.ck-image-insert-form>.ck.ck-button{text-align:left}[dir=rtl] .ck.ck-image-insert-form>.ck.ck-button{text-align:right}.ck.ck-image-insert-form>.ck.ck-collapsible{min-width:var(--ck-image-insert-insert-by-url-width)}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:first-child){border-top:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:last-child){border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-image-insert-url{min-width:var(--ck-image-insert-insert-by-url-width);padding:var(--ck-spacing-large)}.ck.ck-image-insert-form:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsert.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageinsert.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAKA,wBAEC,yDAA0D,CAD1D,WAOD,CAJC,yDACC,YAAa,CACb,mCACD,CCLD,MACC,2CACD,CAEA,wBACC,qBAgBD,CAdC,yDACC,uCAAwC,CACxC,kCAWD,CATC,oJAEC,sBAAuB,CACvB,cACD,CAEA,sFACC,0BACD,CAKD,uCACC,aAAc,CACd,UASD,CCpCA,iDD8BE,eC5BF,CAFA,iDDkCE,gBChCF,CDoCA,4CASC,oDACD,CATC,8DACC,gDACD,CAEA,6DACC,mDACD,CAMD,iDACC,oDAAqD,CACrD,+BACD,CAEA,+BACC,YACD",sourcesContent:[`/* 708 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 709 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 710 */ 711 712.ck.ck-image-insert-url { 713 width: 400px; 714 padding: var(--ck-spacing-large) var(--ck-spacing-large) 0; 715 716 & .ck-image-insert-url__action-row { 717 display: grid; 718 grid-template-columns: repeat(2, 1fr); 719 } 720} 721`,`/* 722 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 723 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 724 */ 725 726@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 727 728:root { 729 --ck-image-insert-insert-by-url-width: 250px; 730} 731 732.ck.ck-image-insert-url { 733 --ck-input-width: 100%; 734 735 & .ck-image-insert-url__action-row { 736 grid-column-gap: var(--ck-spacing-large); 737 margin-top: var(--ck-spacing-large); 738 739 & .ck-button-save, 740 & .ck-button-cancel { 741 justify-content: center; 742 min-width: auto; 743 } 744 745 & .ck-button .ck-button__label { 746 color: var(--ck-color-text); 747 } 748 } 749} 750 751.ck.ck-image-insert-form { 752 & > .ck.ck-button { 753 display: block; 754 width: 100%; 755 756 @mixin ck-dir ltr { 757 text-align: left; 758 } 759 760 @mixin ck-dir rtl { 761 text-align: right; 762 } 763 } 764 765 & > .ck.ck-collapsible { 766 &:not(:first-child) { 767 border-top: 1px solid var(--ck-color-base-border); 768 } 769 770 &:not(:last-child) { 771 border-bottom: 1px solid var(--ck-color-base-border); 772 } 773 774 min-width: var(--ck-image-insert-insert-by-url-width); 775 } 776 777 /* This is the case when there are no other integrations configured than insert by URL */ 778 & > .ck.ck-image-insert-url { 779 min-width: var(--ck-image-insert-insert-by-url-width); 780 padding: var(--ck-spacing-large); 781 } 782 783 &:focus { 784 outline: none; 785 } 786} 787`,`/* 788 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 789 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 790 */ 791 792@define-mixin ck-dir $direction { 793 [dir="$(direction)"] & { 794 @mixin-content; 795 } 796} 797`],sourceRoot:""}]);const w=f},7378:(x,A,g)=>{g.d(A,{A:()=>w});
797var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 798 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 799 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 800 */ 801 802.ck.ck-editor__editable { 803 & img.image_placeholder { 804 background-size: 100% 100%; 805 } 806} 807`],sourceRoot:""}]);const w=f},3469:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 808 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 809 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 810 */ 811 812/* Preserve aspect ratio of the resized image after introducing image height attribute. */ 813.ck-content img.image_resized { 814 height: auto; 815} 816 817.ck-content .image.image_resized { 818 max-width: 100%; 819 /* 820 The \`<figure>\` element for resized images must not use \`display:table\` as browsers do not support \`max-width\` for it well. 821 See https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more. 822 Fortunately, since we control the width, there is no risk that the image will look bad. 823 */ 824 display: block; 825 box-sizing: border-box; 826 827 & img { 828 /* For resized images it is the \`<figure>\` element that determines the image width. */ 829 width: 100%; 830 } 831 832 & > figcaption { 833 /* The \`<figure>\` element uses \`display:block\`, so \`<figcaption>\` also has to. */ 834 display: block; 835 } 836} 837 838.ck.ck-editor__editable { 839 /* The resized inline image nested in the table should respect its parent size. 840 See https://github.com/ckeditor/ckeditor5/issues/9117. */ 841 & td, 842 & th { 843 & .image-inline.image_resized img { 844 max-width: 100%; 845 } 846 } 847} 848 849[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon { 850 margin-right: var(--ck-spacing-standard); 851} 852 853[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon { 854 margin-left: var(--ck-spacing-standard); 855} 856 857.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label { 858 width: 4em; 859} 860`],sourceRoot:""}]);const w=f},6386:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image.image-style-block-align-left,.ck-content .image.image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image.image-style-align-left,.ck-content .image.image-style-align-right{clear:none}.ck-content .image.image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image.image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image.image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image.image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image.image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content p+.image.image-style-align-left,.ck-content p+.image.image-style-align-right,.ck-content p+.image.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAQE,iGAEC,oDACD,CAIA,qFAEC,UACD,CAEA,oCACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,0CACC,UAAW,CACX,0CACD,CAEA,2CACC,WAAY,CACZ,yCACD,CAEA,iDAEC,gBAAiB,CADjB,cAED,CAEA,gDACC,aAAc,CACd,iBACD,CAGD,sCACC,gBAAiB,CACjB,iBACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAGA,+HAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:[`/* 861 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 862 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 863 */ 864 865:root { 866 --ck-image-style-spacing: 1.5em; 867 --ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2); 868} 869 870.ck-content { 871 /* See: https://github.com/ckeditor/ckeditor5/issues/16317 */ 872 & .image { 873 /* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback 874 confirming successful application of the style if image width exceeds the editor's size. 875 See https://github.com/ckeditor/ckeditor5/issues/9342 */ 876 &.image-style-block-align-left, 877 &.image-style-block-align-right { 878 max-width: calc(100% - var(--ck-image-style-spacing)); 879 } 880 881 /* Allows displaying multiple floating images in the same line. 882 See https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */ 883 &.image-style-align-left, 884 &.image-style-align-right { 885 clear: none; 886 } 887 888 &.image-style-side { 889 float: right; 890 margin-left: var(--ck-image-style-spacing); 891 max-width: 50%; 892 } 893 894 &.image-style-align-left { 895 float: left; 896 margin-right: var(--ck-image-style-spacing); 897 } 898 899 &.image-style-align-right { 900 float: right; 901 margin-left: var(--ck-image-style-spacing); 902 } 903 904 &.image-style-block-align-right { 905 margin-right: 0; 906 margin-left: auto; 907 } 908 909 &.image-style-block-align-left { 910 margin-left: 0; 911 margin-right: auto; 912 } 913 } 914 915 & .image-style-align-center { 916 margin-left: auto; 917 margin-right: auto; 918 } 919 920 & .image-style-align-left { 921 float: left; 922 margin-right: var(--ck-image-style-spacing); 923 } 924 925 & .image-style-align-right { 926 float: right; 927 margin-left: var(--ck-image-style-spacing); 928 } 929 930 /* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */ 931 & p + .image.image-style-align-left, 932 & p + .image.image-style-align-right, 933 & p + .image.image-style-side { 934 margin-top: 0; 935 } 936 937 & .image-inline { 938 &.image-style-align-left, 939 &.image-style-align-right { 940 margin-top: var(--ck-inline-image-style-spacing); 941 margin-bottom: var(--ck-inline-image-style-spacing); 942 } 943 944 &.image-style-align-left { 945 margin-right: var(--ck-inline-image-style-spacing); 946 } 947 948 &.image-style-align-right { 949 margin-left: var(--ck-inline-image-style-spacing); 950 } 951 } 952} 953 954.ck.ck-splitbutton { 955 /* The button should display as a regular drop-down if the action button 956 is forced to fire the same action as the arrow button. */ 957 &.ck-splitbutton_flatten { 958 &:hover, 959 &.ck-splitbutton_open { 960 & > .ck-splitbutton__action:not(.ck-disabled), 961 & > .ck-splitbutton__arrow:not(.ck-disabled), 962 & > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) { 963 background-color: var(--ck-color-button-on-background); 964 965 &::after { 966 display: none; 967 } 968 } 969 } 970 971 &.ck-splitbutton_open:hover { 972 & > .ck-splitbutton__action:not(.ck-disabled), 973 & > .ck-splitbutton__arrow:not(.ck-disabled), 974 & > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) { 975 background-color: var(--ck-color-button-on-hover-background); 976 } 977 } 978 } 979} 980`],sourceRoot:""}]);const w=f},7693:(x,A,g)=>{g.d(A,{A:()=>w});
980var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0s,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@media (prefers-reduced-motion:reduce){.ck-image-upload-complete-icon{animation-duration:0s}.ck-image-upload-complete-icon:after{animation:none;height:.45em;opacity:1;width:.3em}}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadicon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,qBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFAqCD,CAjCC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAEA,uCA7CD,+BA8CE,qBASF,CAPE,qCACC,cAAe,CAGf,YAAc,CAFd,SAAU,CACV,UAED,CACD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:[`/* 981 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 982 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 983 */ 984 985.ck-image-upload-complete-icon { 986 display: block; 987 position: absolute; 988 989 /* 990 * Smaller images should have the icon closer to the border. 991 * Match the icon position with the linked image indicator brought by the link image feature. 992 */ 993 top: min(var(--ck-spacing-medium), 6%); 994 right: min(var(--ck-spacing-medium), 6%); 995 border-radius: 50%; 996 z-index: 1; 997 998 &::after { 999 content: ""; 1000 position: absolute; 1001 } 1002} 1003`,`/* 1004 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1005 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1006 */ 1007 1008:root { 1009 --ck-color-image-upload-icon: hsl(0, 0%, 100%); 1010 --ck-color-image-upload-icon-background: hsl(120, 100%, 27%); 1011 1012 /* Match the icon size with the linked image indicator brought by the link image feature. */ 1013 --ck-image-upload-icon-size: 20; 1014 --ck-image-upload-icon-width: 2px; 1015 --ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px); 1016} 1017 1018.ck-image-upload-complete-icon { 1019 opacity: 0; 1020 background: var(--ck-color-image-upload-icon-background); 1021 animation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide; 1022 animation-fill-mode: forwards, forwards; 1023 animation-duration: 500ms, 500ms; 1024 1025 /* To make animation scalable. */ 1026 font-size: calc(1px * var(--ck-image-upload-icon-size)); 1027 1028 /* Hide completed upload icon after 3 seconds. */ 1029 animation-delay: 0ms, 3000ms; 1030 1031 /* 1032 * Use CSS math to simulate container queries.
1033 * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things 1034 */ 1035 overflow: hidden; 1036 width: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size)); 1037 height: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size)); 1038 1039 /* This is check icon element made from border-width mixed with animations. */ 1040 &::after { 1041 /* Because of border transformation we need to "hard code" left position. */ 1042 left: 25%; 1043 1044 top: 50%; 1045 opacity: 0; 1046 height: 0; 1047 width: 0; 1048 1049 transform: scaleX(-1) rotate(135deg); 1050 transform-origin: left top; 1051 border-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon); 1052 border-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon); 1053 1054 animation-name: ck-upload-complete-icon-check; 1055 animation-duration: 500ms; 1056 animation-delay: 500ms; 1057 animation-fill-mode: forwards; 1058 1059 /* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */ 1060 box-sizing: border-box; 1061 } 1062 1063 @media (prefers-reduced-motion: reduce) { 1064 animation-duration: 0ms; 1065 1066 &::after { 1067 animation: none; 1068 opacity: 1; 1069 width: 0.3em; 1070 height: 0.45em; 1071 } 1072 } 1073} 1074 1075@keyframes ck-upload-complete-icon-show { 1076 from { 1077 opacity: 0; 1078 } 1079 1080 to { 1081 opacity: 1; 1082 } 1083} 1084 1085@keyframes ck-upload-complete-icon-hide { 1086 from { 1087 opacity: 1; 1088 } 1089 1090 to { 1091 opacity: 0; 1092 } 1093} 1094 1095@keyframes ck-upload-complete-icon-check { 1096 0% { 1097 opacity: 1; 1098 width: 0; 1099 height: 0; 1100 } 1101 33% { 1102 width: 0.3em; 1103 height: 0; 1104 } 1105 100% { 1106 opacity: 1; 1107 width: 0.3em; 1108 height: 0.45em; 1109 } 1110} 1111`],sourceRoot:""}]);const w=f},1559:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 1112 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1113 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1114 */ 1115 1116.ck .ck-upload-placeholder-loader { 1117 position: absolute; 1118 display: flex; 1119 align-items: center; 1120 justify-content: center; 1121 top: 0; 1122 left: 0; 1123 1124 &::before { 1125 content: ''; 1126 position: relative; 1127 } 1128} 1129`,`/* 1130 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1131 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1132 */ 1133 1134:root { 1135 --ck-color-upload-placeholder-loader: hsl(0, 0%, 70%); 1136 --ck-upload-placeholder-loader-size: 32px; 1137 --ck-upload-placeholder-image-aspect-ratio: 2.8; 1138} 1139 1140.ck .ck-image-upload-placeholder { 1141 /* We need to control the full width of the SVG gray background. */ 1142 width: 100%; 1143 margin: 0; 1144 1145 &.image-inline { 1146 width: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) ); 1147 } 1148 1149 & img { 1150 /* 1151 * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short. 1152 * There's nothing special about this number except that it should make the image placeholder look like 1153 * a real image during this short period after the upload started and before the image was read from the 1154 * file system (and a rich preview was loaded). 1155 */ 1156 aspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio); 1157 } 1158} 1159 1160.ck .ck-upload-placeholder-loader { 1161 width: 100%; 1162 height: 100%; 1163 1164 &::before { 1165 width: var(--ck-upload-placeholder-loader-size); 1166 height: var(--ck-upload-placeholder-loader-size); 1167 border-radius: 50%; 1168 border-top: 3px solid var(--ck-color-upload-placeholder-loader); 1169 border-right: 2px solid transparent; 1170 animation: ck-upload-placeholder-loader 1s linear infinite; 1171 } 1172} 1173 1174@keyframes ck-upload-placeholder-loader { 1175 to { 1176 transform: rotate( 360deg ); 1177 } 1178} 1179`],sourceRoot:""}]);const w=f},2267:(x,A,g)=>{g.d(A,{A:()=>w});
vendor: 5,804 bytes, lines 1179-1303
1179var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 1180 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1181 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1182 */ 1183 1184.ck.ck-editor__editable { 1185 & .image, 1186 & .image-inline { 1187 position: relative; 1188 } 1189 1190 /* Upload progress bar. */ 1191 & .image .ck-progress-bar, 1192 & .image-inline .ck-progress-bar { 1193 position: absolute; 1194 top: 0; 1195 left: 0; 1196 } 1197} 1198`,`/* 1199 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1200 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1201 */ 1202 1203.ck.ck-editor__editable { 1204 & .image, 1205 & .image-inline { 1206 /* Showing animation. */ 1207 &.ck-appear { 1208 animation: fadeIn 700ms; 1209 1210 @media (prefers-reduced-motion: reduce) { 1211 opacity: 1; 1212 animation: none; 1213 } 1214 } 1215 } 1216 1217 /* Upload progress bar. */ 1218 & .image .ck-progress-bar, 1219 & .image-inline .ck-progress-bar { 1220 height: 2px; 1221 width: 0; 1222 background: var(--ck-color-upload-bar-background); 1223 transition: width 100ms; 1224 } 1225} 1226 1227@keyframes fadeIn { 1228 from { opacity: 0; } 1229 to { opacity: 1; } 1230} 1231`],sourceRoot:""}]);const w=f},4062:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/textalternativeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:[`/* 1232 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1233 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1234 */ 1235 1236@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; 1237 1238.ck.ck-text-alternative-form { 1239 display: flex; 1240 flex-direction: row; 1241 flex-wrap: nowrap; 1242 1243 & .ck-labeled-field-view { 1244 display: inline-block; 1245 } 1246 1247 & .ck-label { 1248 display: none; 1249 } 1250 1251 @mixin ck-media-phone { 1252 flex-wrap: wrap; 1253 1254 & .ck-labeled-field-view { 1255 flex-basis: 100%; 1256 } 1257 1258 & .ck-button { 1259 flex-basis: 50%; 1260 } 1261 } 1262} 1263`,`/* 1264 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1265 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1266 */ 1267 1268@define-mixin ck-media-phone { 1269 @media screen and (max-width: 600px) { 1270 @mixin-content; 1271 } 1272} 1273`],sourceRoot:""}]);const w=f},7719:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 1274 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1275 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1276 */ 1277 1278/* Class added to span element surrounding currently selected link. */ 1279.ck .ck-link_selected { 1280 background: var(--ck-color-link-selected-background); 1281 1282 /* Give linked inline images some outline to let the user know they are also part of the link. */ 1283 & span.image-inline { 1284 outline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background); 1285 } 1286} 1287 1288/* 1289 * Classes used by the "fake visual selection" displayed in the content when an input 1290 * in the link UI has focus (the browser does not render the native selection in this state). 1291 */ 1292.ck .ck-fake-link-selection { 1293 background: var(--ck-color-link-fake-selection); 1294} 1295 1296/* A collapsed fake visual selection. */ 1297.ck .ck-fake-link-selection_collapsed { 1298 height: 100%; 1299 border-right: 1px solid var(--ck-color-base-text); 1300 margin-right: -1px; 1301 outline: solid 1px hsla(0, 0%, 100%, .5); 1302} 1303`],sourceRoot:""}]);const w=f},8762:(x,A,g)=>{g.d(A,{A:()=>w});
1303var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CChEF,gJDyEG,aCvEH,CFAA",sourcesContent:[`/* 1304 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1305 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1306 */ 1307 1308@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; 1309 1310.ck.ck-link-actions { 1311 display: flex; 1312 flex-direction: row; 1313 flex-wrap: nowrap; 1314 1315 & .ck-link-actions__preview { 1316 display: inline-block; 1317 1318 & .ck-button__label { 1319 overflow: hidden; 1320 } 1321 } 1322 1323 @mixin ck-media-phone { 1324 flex-wrap: wrap; 1325 1326 & .ck-link-actions__preview { 1327 flex-basis: 100%; 1328 } 1329 1330 & .ck-button:not(.ck-link-actions__preview) { 1331 flex-basis: 50%; 1332 } 1333 } 1334} 1335`,`/* 1336 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1337 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1338 */ 1339 1340@define-mixin ck-media-phone { 1341 @media screen and (max-width: 600px) { 1342 @mixin-content; 1343 } 1344} 1345`,`/* 1346 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1347 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1348 */ 1349 1350@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css"; 1351@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 1352@import "../mixins/_focus.css"; 1353@import "../mixins/_shadow.css"; 1354@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; 1355 1356.ck.ck-link-actions { 1357 & .ck-button.ck-link-actions__preview { 1358 padding-left: 0; 1359 padding-right: 0; 1360 1361 & .ck-button__label { 1362 padding: 0 var(--ck-spacing-medium); 1363 color: var(--ck-color-link-default); 1364 text-overflow: ellipsis; 1365 cursor: pointer; 1366 1367 /* Match the box model of the link editor form's input so the balloon 1368 does not change width when moving between actions and the form. */ 1369 max-width: var(--ck-input-width); 1370 min-width: 3em; 1371 text-align: center; 1372 1373 &:hover { 1374 text-decoration: underline; 1375 } 1376 } 1377 1378 &, 1379 &:hover, 1380 &:focus, 1381 &:active { 1382 background: none; 1383 } 1384 1385 &:active { 1386 box-shadow: none; 1387 } 1388 1389 &:focus { 1390 & .ck-button__label { 1391 text-decoration: underline; 1392 } 1393 } 1394 } 1395 1396 @mixin ck-dir ltr { 1397 & .ck-button:not(:first-child) { 1398 margin-left: var(--ck-spacing-standard); 1399 } 1400 } 1401 1402 @mixin ck-dir rtl { 1403 & .ck-button:not(:last-child) { 1404 margin-left: var(--ck-spacing-standard); 1405 } 1406 } 1407 1408 @mixin ck-media-phone { 1409 & .ck-button.ck-link-actions__preview { 1410 margin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0; 1411 1412 & .ck-button__label { 1413 min-width: 0; 1414 max-width: 100%; 1415 } 1416 } 1417 1418 & .ck-button:not(.ck-link-actions__preview) { 1419 @mixin ck-dir ltr { 1420 margin-left: 0; 1421 } 1422 1423 @mixin ck-dir rtl { 1424 margin-left: 0; 1425 } 1426 } 1427 } 1428} 1429`,`/* 1430 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1431 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1432 */ 1433 1434@define-mixin ck-dir $direction { 1435 [dir="$(direction)"] & { 1436 @mixin-content; 1437 } 1438} 1439`],sourceRoot:""}]);const w=f},3817:(x,A,g)=>{g.d(A,{A:()=>w});
vendor: 6,115 bytes, lines 1439-1566
1439var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-link-form{align-items:flex-start;display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:0 var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAOA,iBAEC,sBAAuB,CADvB,YAkBD,CAfC,2BACC,YACD,CCPA,oCDCD,iBASE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CChBD,CDwBD,iCACC,aAYD,CALE,wHAEC,mCACD,CEhCF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CC1BD,4GDiCE,aC/BF,CDiCE,mEACC,kDACD,CAKF,6CACC,gCAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:[`/* 1440 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1441 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1442 */ 1443 1444@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; 1445 1446.ck.ck-link-form { 1447 display: flex; 1448 align-items: flex-start; 1449 1450 & .ck-label { 1451 display: none; 1452 } 1453 1454 @mixin ck-media-phone { 1455 flex-wrap: wrap; 1456 1457 & .ck-labeled-field-view { 1458 flex-basis: 100%; 1459 } 1460 1461 & .ck-button { 1462 flex-basis: 50%; 1463 } 1464 } 1465} 1466 1467/* 1468 * Style link form differently when manual decorators are available. 1469 * See: https://github.com/ckeditor/ckeditor5-link/issues/186. 1470 */ 1471.ck.ck-link-form_layout-vertical { 1472 display: block; 1473 1474 /* 1475 * Whether the form is in the responsive mode or not, if there are decorator buttons 1476 * keep the top margin of action buttons medium. 1477 */ 1478 & .ck-button { 1479 &.ck-button-save, 1480 &.ck-button-cancel { 1481 margin-top: var(--ck-spacing-medium); 1482 } 1483 } 1484} 1485`,`/* 1486 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1487 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1488 */ 1489 1490@define-mixin ck-media-phone { 1491 @media screen and (max-width: 600px) { 1492 @mixin-content; 1493 } 1494} 1495`,`/* 1496 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1497 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1498 */ 1499 1500@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 1501 1502/* 1503 * Style link form differently when manual decorators are available. 1504 * See: https://github.com/ckeditor/ckeditor5-link/issues/186. 1505 */ 1506.ck.ck-link-form_layout-vertical { 1507 padding: 0; 1508 min-width: var(--ck-input-width); 1509 1510 & .ck-labeled-field-view { 1511 margin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small); 1512 1513 & .ck-input-text { 1514 min-width: 0; 1515 width: 100%; 1516 } 1517 } 1518 1519 & > .ck-button { 1520 padding: var(--ck-spacing-standard); 1521 margin: 0; 1522 width: 50%; 1523 border-radius: 0; 1524 1525 &:not(:focus) { 1526 border-top: 1px solid var(--ck-color-base-border); 1527 } 1528 1529 @mixin ck-dir ltr { 1530 margin-left: 0; 1531 } 1532 1533 @mixin ck-dir rtl { 1534 margin-left: 0; 1535 1536 &:last-of-type { 1537 border-right: 1px solid var(--ck-color-base-border); 1538 } 1539 } 1540 } 1541 1542 /* Using additional \`.ck\` class for stronger CSS specificity than \`.ck.ck-link-form > :not(:first-child)\`. */ 1543 & .ck.ck-list { 1544 margin: 0 var(--ck-spacing-large); 1545 1546 & .ck-button.ck-switchbutton { 1547 padding: 0; 1548 width: 100%; 1549 1550 &:hover { 1551 background: none; 1552 } 1553 } 1554 } 1555} 1556`,`/* 1557 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1558 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1559 */ 1560 1561@define-mixin ck-dir $direction { 1562 [dir="$(direction)"] & { 1563 @mixin-content; 1564 } 1565} 1566`],sourceRoot:""}]);const w=f},4808:(x,A,g)=>{g.d(A,{A:()=>L});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_),w=g(62),D=g.n(w),S=new URL(g(4782),g.b),B=f()(v()),O=D()(S);B.push([x.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(${O});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,
1566CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,wDAA+3B,CAG/3B,uBAA2B,CAD3B,2BAA4B,CAD5B,oBAAqB,CAGrB,kBAAmB,CAdnB,UAAW,CAsBX,oGAAuG,CAFvG,eAAgB,CAbhB,sCAAwC,CADxC,oCAAsC,CAetC,mGAED",sourcesContent:[`/* 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.ck-editor__editable { 1572 /* Linked image indicator */ 1573 & figure.image > a, 1574 & a span.image-inline { 1575 &::after { 1576 display: block; 1577 position: absolute; 1578 } 1579 } 1580} 1581 1582`,`/* 1583 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1584 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1585 */ 1586 1587:root { 1588 /* Match the icon size with the upload indicator brought by the image upload feature. */ 1589 --ck-link-image-indicator-icon-size: 20; 1590 --ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px); 1591} 1592 1593.ck.ck-editor__editable { 1594 /* Linked image indicator */ 1595 & figure.image > a, 1596 & a span.image-inline { 1597 &::after { 1598 content: ""; 1599 1600 /* 1601 * Smaller images should have the icon closer to the border. 1602 * Match the icon position with the upload indicator brought by the image upload feature. 1603 */ 1604 top: min(var(--ck-spacing-medium), 6%); 1605 right: min(var(--ck-spacing-medium), 6%); 1606 1607 background-color: hsla(0, 0%, 0%, .4); 1608 background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+"); 1609 background-size: 14px; 1610 background-repeat: no-repeat; 1611 background-position: center; 1612 border-radius: 100%; 1613 1614 /* 1615 * Use CSS math to simulate container queries. 1616 * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things 1617 */ 1618 overflow: hidden; 1619 width: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size)); 1620 height: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size)); 1621 } 1622 } 1623} 1624 1625`],sourceRoot:""}]);const L=B},1232:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 1626 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1627 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1628 */ 1629 1630.ck-editor__editable .ck-list-bogus-paragraph { 1631 display: block; 1632} 1633`],sourceRoot:""}]);const w=f},6903:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 1634 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1635 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1636 */ 1637 1638.ck-content ol { 1639 list-style-type: decimal; 1640 1641 & ol { 1642 list-style-type: lower-latin; 1643 1644 & ol { 1645 list-style-type: lower-roman; 1646 1647 & ol { 1648 list-style-type: upper-latin; 1649 1650 & ol { 1651 list-style-type: upper-roman; 1652 } 1653 } 1654 } 1655 } 1656} 1657 1658.ck-content ul { 1659 list-style-type: disc; 1660 1661 & ul { 1662 list-style-type: circle; 1663 1664 & ul { 1665 list-style-type: square; 1666 1667 & ul { 1668 list-style-type: square; 1669 } 1670 } 1671 } 1672} 1673`],sourceRoot:""}]);const w=f},9968:(x,A,g)=>{g.d(A,{A:()=>w});
1673var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 1674 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1675 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1676 */ 1677 1678.ck.ck-list-properties { 1679 /* When there are no list styles and there is no collapsible. */ 1680 &.ck-list-properties_without-styles { 1681 padding: var(--ck-spacing-large); 1682 1683 & > * { 1684 min-width: 14em; 1685 1686 & + * { 1687 margin-top: var(--ck-spacing-standard); 1688 } 1689 } 1690 } 1691 1692 /* 1693 * When the numbered list property fields (start at, reversed) should be displayed, 1694 * more horizontal space is needed. Reconfigure the style grid to create that space. 1695 */ 1696 &.ck-list-properties_with-numbered-properties { 1697 & > .ck-list-styles-list { 1698 grid-template-columns: repeat( 4, auto ); 1699 } 1700 1701 /* When list styles are rendered and property fields are in a collapsible. */ 1702 & > .ck-collapsible { 1703 border-top: 1px solid var(--ck-color-base-border); 1704 1705 & > .ck-collapsible__children { 1706 & > * { 1707 width: 100%; 1708 1709 & + * { 1710 margin-top: var(--ck-spacing-standard); 1711 } 1712 } 1713 } 1714 } 1715 } 1716 1717 & .ck.ck-numbered-list-properties__start-index .ck-input { 1718 min-width: auto; 1719 width: 100%; 1720 } 1721 1722 & .ck.ck-numbered-list-properties__reversed-order { 1723 background: transparent; 1724 padding-left: 0; 1725 padding-right: 0; 1726 margin-bottom: calc(-1 * var(--ck-spacing-tiny)); 1727 1728 &:active, &:hover { 1729 box-shadow: none; 1730 border-color: transparent; 1731 background: none; 1732 } 1733 } 1734} 1735`],sourceRoot:""}]);const w=f},7141:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 1736 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1737 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1738 */ 1739
1740.ck.ck-list-styles-list { 1741 display: grid; 1742} 1743`,`/* 1744 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1745 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1746 */ 1747 1748:root { 1749 --ck-list-style-button-size: 44px; 1750} 1751 1752.ck.ck-list-styles-list { 1753 grid-template-columns: repeat( 3, auto ); 1754 row-gap: var(--ck-spacing-medium); 1755 column-gap: var(--ck-spacing-medium); 1756 padding: var(--ck-spacing-large); 1757 1758 & .ck-button { 1759 /* Make the button look like a thumbnail (the icon "takes it all"). */ 1760 width: var(--ck-list-style-button-size); 1761 height: var(--ck-list-style-button-size); 1762 padding: 0; 1763 1764 /* 1765 * Buttons are aligned by the grid so disable default button margins to not collide with the 1766 * gaps in the grid. 1767 */ 1768 margin: 0; 1769 1770 /* 1771 * Make sure the button border (which is displayed on focus, BTW) does not steal pixels 1772 * from the button dimensions and, as a result, decrease the size of the icon 1773 * (which becomes blurry as it scales down). 1774 */ 1775 box-sizing: content-box; 1776 1777 & .ck-icon { 1778 width: var(--ck-list-style-button-size); 1779 height: var(--ck-list-style-button-size); 1780 } 1781 } 1782} 1783`],sourceRoot:""}]);const w=f},8991:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px;position:relative}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-content[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-content .todo-list .todo-list__label>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.ck-content .todo-list .todo-list__label>input:before{transition:none}}.ck-content .todo-list .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}.ck-editor__editable.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{cursor:pointer}.ck-editor__editable.ck-content .todo-list .todo-list__label>input:hover:before,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-editor__editable.ck-content[dir=rtl] .todo-list .todo-list__label>span[contenteditable=false]>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;
1783transition:box-shadow .25s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{transition:none}}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:after{border-color:#fff}.ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}',"",{version:3,sources:["webpack://./../ckeditor5-list/theme/todolist.css"],names:[],mappings:"AAKA,MACC,kCACD,CA4EA,uBACC,eAwBD,CAtBC,0BAEC,iBAAkB,CADlB,iBAMD,CAHC,qCACC,cACD,CAIA,+CAtFD,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAqFC,CAvED,wDACC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAED,CAEA,sDAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UASD,CAHC,uCAXD,sDAYE,eAEF,CADC,CAGD,qDAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+DACC,kBAA8B,CAC9B,oBACD,CAEA,8DACC,iBACD,CAwBA,wEACC,qBACD,CAEA,mGACC,iBACD,CAYD,kKAEC,cAKD,CAHC,4LACC,mCACD,CAMD,+FAxHA,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAuHA,CAzGA,wGACC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAED,CAEA,sGAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UASD,CAHC,uCAXD,sGAYE,eAEF,CADC,CAGD,qGAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+GACC,kBAA8B,CAC9B,oBACD,CAEA,8GACC,iBACD,CA2DA,uHACC,iBACD",sourcesContent:[`/* 1784 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1785 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1786 */ 1787 1788:root { 1789 --ck-todo-list-checkmark-size: 16px; 1790} 1791 1792@define-mixin todo-list-checkbox { 1793 -webkit-appearance: none; 1794 display: inline-block; 1795 position: relative; 1796 width: var(--ck-todo-list-checkmark-size); 1797 height: var(--ck-todo-list-checkmark-size); 1798 vertical-align: middle; 1799 1800 /* Needed on iOS */ 1801 border: 0; 1802 1803 /* LTR styles */ 1804 left: -25px; 1805 margin-right: -15px; 1806 right: 0; 1807 margin-left: 0; 1808 1809 /* RTL styles */ 1810 [dir=rtl]& { 1811 left: 0; 1812 margin-right: 0; 1813 right: -25px; 1814 margin-left: -15px; 1815 } 1816 1817 &::before { 1818 display: block; 1819 position: absolute; 1820 box-sizing: border-box; 1821 content: ''; 1822 width: 100%; 1823 height: 100%; 1824 border: 1px solid hsl(0, 0%, 20%); 1825 border-radius: 2px; 1826 transition: 250ms ease-in-out box-shadow; 1827 1828 @media (prefers-reduced-motion: reduce) { 1829 transition: none; 1830 } 1831 } 1832 1833 &::after { 1834 display: block; 1835 position: absolute; 1836 box-sizing: content-box; 1837 pointer-events: none; 1838 content: ''; 1839 1840 /* Calculate tick position, size and border-width proportional to the checkmark size. */ 1841 left: calc( var(--ck-todo-list-checkmark-size) / 3 ); 1842 top: calc( var(--ck-todo-list-checkmark-size) / 5.3 ); 1843 width: calc( var(--ck-todo-list-checkmark-size) / 5.3 ); 1844 height: calc( var(--ck-todo-list-checkmark-size) / 2.6 ); 1845 border-style: solid; 1846 border-color: transparent; 1847 border-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0; 1848 transform: rotate(45deg); 1849 } 1850 1851 &[checked] { 1852 &::before { 1853 background: hsl(126, 64%, 41%); 1854 border-color: hsl(126, 64%, 41%); 1855 } 1856 1857 &::after { 1858 border-color: hsl(0, 0%, 100%); 1859 } 1860 } 1861} 1862 1863/* 1864 * To-do list content styles. 1865 */ 1866.ck-content .todo-list { 1867 list-style: none; 1868 1869 & li { 1870 position: relative; 1871 margin-bottom: 5px; 1872 1873 & .todo-list { 1874 margin-top: 5px; 1875 } 1876 } 1877 1878 & .todo-list__label { 1879 & > input { 1880 @mixin todo-list-checkbox; 1881 } 1882 1883 & .todo-list__label__description { 1884 vertical-align: middle; 1885 } 1886 1887 &.todo-list__label_without-description input[type=checkbox] { 1888 position: absolute; 1889 } 1890 } 1891} 1892 1893/* 1894 * To-do list editing view styles. 1895 */ 1896.ck-editor__editable.ck-content .todo-list .todo-list__label { 1897 /* 1898 * To-do list should be interactive only during the editing 1899 * (https://github.com/ckeditor/ckeditor5/issues/2090). 1900 */ 1901 & > input, 1902 & > span[contenteditable=false] > input { 1903 cursor: pointer; 1904 1905 &:hover::before { 1906 box-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1); 1907 } 1908 } 1909 1910 /* 1911 * Document Lists - editing view has an additional span around checkbox. 1912 */ 1913 & >
1913 span[contenteditable=false] > input { 1914 @mixin todo-list-checkbox; 1915 } 1916 1917 &.todo-list__label_without-description { 1918 & input[type=checkbox] { 1919 position: absolute; 1920 } 1921 } 1922} 1923`],sourceRoot:""}]);const w=f},70:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 1924 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1925 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1926 */ 1927 1928.ck-content .media { 1929 /* Don't allow floated content overlap the media. 1930 https://github.com/ckeditor/ckeditor5-media-embed/issues/53 */ 1931 clear: both; 1932 1933 /* Make sure there is some space between the content and the media. */ 1934 /* The first value should be equal to --ck-spacing-large variable if used in the editor context 1935 to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */ 1936 margin: 0.9em 0; 1937 1938 /* Make sure media is not overriden with Bootstrap default \`flex\` value. 1939 See: https://github.com/ckeditor/ckeditor5/issues/1373. */ 1940 display: block; 1941 1942 /* Give the media some minimal width in the content to prevent them 1943 from being "squashed" in tight spaces, e.g. in table cells (#44) */ 1944 min-width: 15em; 1945} 1946`],sourceRoot:""}]);const w=f},7048:(x,A,g)=>{g.d(A,{A:()=>Wt});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_),w=g(62),D=g.n(w),S=new URL(g(657),g.b),B=new URL(g(9736),g.b),O=new URL(g(6341),g.b),L=new URL(g(7784),g.b),W=f()(v()),Y=D()(S),et=D()(B),ft=D()(O),Ot=D()(L);W.push([x.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(${Y})}.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(${et})}.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(${ft})}.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(${Ot})}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}`,"",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wDACD,CAEA,2EACC,kBAaD,CAXC,wGACC,wDACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,wDACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wDACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:[`/* 1947 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1948 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1949 */ 1950 1951.ck-media__wrapper { 1952 & .ck-media__placeholder { 1953 display: flex; 1954 flex-direction: column; 1955 align-items: center; 1956 1957 & .ck-media__placeholder__url { 1958 /* Otherwise the URL will overflow when the content is very narrow. */ 1959 max-width: 100%; 1960 1961 position: relative; 1962 1963 & .ck-media__placeholder__url__text { 1964 overflow: hidden; 1965 display: block; 1966 } 1967 } 1968 } 1969 1970 &[data-oembed-url*="twitter.com"], 1971 &[data-oembed-url*="google.com/maps"], 1972 &[data-oembed-url*="goo.gl/maps"], 1973 &[data-oembed-url*="maps.google.com"], 1974 &[data-oembed-url*="maps.app.goo.gl"], 1975 &[data-oembed-url*="facebook.com"], 1976 &[data-oembed-url*="instagram.com"] { 1977 & .ck-media__placeholder__icon * { 1978 display: none; 1979 } 1980 } 1981} 1982 1983/* Disable all mouse interaction as long as the editor is not readâonly. 1984 https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */ 1985.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) { 1986 pointer-events: none; 1987} 1988 1989/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident). 1990 https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */ 1991.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder { 1992 pointer-events: none; 1993} 1994`,`/* 1995 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 1996 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 1997 */ 1998 1999:root { 2000 --ck-media-embed-placeholder-icon-size: 3em; 2001 2002 --ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%); 2003 --ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text); 2004} 2005 2006.ck-media__wrapper { 2007 margin: 0 auto; 2008 2009 & .ck-media__placeholder { 2010 padding: calc( 3 * var(--ck-spacing-standard) ); 2011 background: var(--ck-color-base-foreground); 2012 2013 & .ck-media__placeholder__icon { 2014 min-width: var(--ck-media-embed-placeholder-icon-size); 2015 height: var(--ck-media-embed-placeholder-icon-size); 2016 margin-bottom: var(--ck-spacing-large); 2017 background-position: center; 2018 background-size: cover; 2019 2020 & .ck-icon { 2021 width: 100%; 2022 height: 100%; 2023 } 2024 } 2025 2026 & .ck-media__placeholder__url__text { 2027 color: var(--ck-color-media-embed-placeholder-url-text); 2028 white-space: nowrap; 2029 text-align: center; 2030 font-style: italic; 2031 text-overflow: ellipsis; 2032 2033 &:hover { 2034 color: var(--ck-color-media-embed-placeholder-url-text-hover); 2035 cursor: pointer; 2036 text-decoration: underline; 2037 } 2038 } 2039 } 2040 2041 &[data-oembed-url*="open.spotify.com"] { 2042 max-width: 300px; 2043 max-height: 380px; 2044 } 2045 2046 &[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon, 2047 &[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon, 2048 &[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon, 2049 &[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon { 2050 background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03
2050Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+); 2051 } 2052 2053 &[data-oembed-url*="facebook.com"] .ck-media__placeholder { 2054 background: hsl(220, 46%, 48%); 2055 2056 & .ck-media__placeholder__icon { 2057 background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+); 2058 } 2059 2060 & .ck-media__placeholder__url__text { 2061 color: hsl(220, 100%, 90%); 2062 2063 &:hover { 2064 color: hsl(0, 0%, 100%); 2065 } 2066 } 2067 } 2068 2069 &[data-oembed-url*="instagram.com"] .ck-media__placeholder { 2070 background: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%)); 2071 2072 & .ck-media__placeholder__icon { 2073 background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMu
2073NTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=); 2074 } 2075 2076 /* stylelint-disable-next-line no-descending-specificity */ 2077 & .ck-media__placeholder__url__text { 2078 color: hsl(302, 100%, 94%); 2079 2080 &:hover { 2081 color: hsl(0, 0%, 100%); 2082 } 2083 } 2084 } 2085 2086 &[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder { 2087 /* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */ 2088 background: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) ); 2089 2090 & .ck-media__placeholder__icon { 2091 background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+); 2092 } 2093 2094 & .ck-media__placeholder__url__text { 2095 color: hsl(201, 100%, 86%); 2096 2097 &:hover { 2098 color: hsl(0, 0%, 100%); 2099 } 2100 } 2101 } 2102} 2103`],sourceRoot:""}]);const Wt=W},5651:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap;width:400px}.ck.ck-media-form .ck-labeled-field-view{display:inline-block;width:100%}.ck.ck-media-form .ck-label{display:none}.ck.ck-media-form .ck-input{width:100%}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAAiB,CACjB,WA0BD,CAxBC,yCACC,oBAAqB,CACrB,UACD,CAEA,4BACC,YACD,CAEA,4BACC,UACD,CCnBA,oCDCD,kBAqBE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CC5BD",sourcesContent:[`/* 2104 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2105 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2106 */ 2107 2108@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; 2109 2110.ck.ck-media-form { 2111 display: flex; 2112 align-items: flex-start; 2113 flex-direction: row; 2114 flex-wrap: nowrap; 2115 width: 400px; 2116 2117 & .ck-labeled-field-view { 2118 display: inline-block; 2119 width: 100%; 2120 } 2121 2122 & .ck-label { 2123 display: none; 2124 } 2125 2126 & .ck-input { 2127 width: 100%; 2128 } 2129 2130 @mixin ck-media-phone { 2131 flex-wrap: wrap; 2132 2133 & .ck-labeled-field-view { 2134 flex-basis: 100%; 2135 } 2136 2137 & .ck-button { 2138 flex-basis: 50%; 2139 } 2140 } 2141} 2142`,`/* 2143 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2144 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2145 */ 2146 2147@define-mixin ck-media-phone { 2148 @media screen and (max-width: 600px) { 2149 @mixin-content; 2150 } 2151} 2152`],sourceRoot:""}]);const w=f},5506:(x,A,g)=>{g.d(A,{A:()=>w});
2152var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);border-radius:0;height:20px;width:20px}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/colorinput.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,YAAa,CACb,0BAA2B,CAF3B,UAgCD,CA5BC,0CAEC,WAAY,CADZ,cAED,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFAEC,eAAgB,CADhB,iBAOD,CAJC,0IAEC,aAAc,CADd,iBAED,CC7BF,+CCME,4BAA6B,CAD7B,yBDHF,CAFA,+CCWE,2BAA4B,CAD5B,wBDRF,CCcC,2CACC,SACD,CAIA,wEACC,SA0CD,CDjED,kFC2BG,2BAA4B,CAD5B,wBDxBH,CC2BG,8FACC,iCACD,CD/BH,kFCoCG,4BAA6B,CAD7B,yBDjCH,CCoCG,8FACC,kCACD,CAGD,oFACC,oDACD,CAEA,4GAKC,6CAA8C,CC/CjD,eAAgB,CD8Cb,WAAY,CADZ,UAcD,CCzDF,+PAEC,qCAED,CD2CG,oKAKC,cAA6B,CAC7B,iBAAkB,CAHlB,WAAY,CADZ,QAAS,CADT,QAAS,CAMT,uBAAwB,CACxB,oBAAqB,CAJrB,QAKD,CAKH,oDAIC,2BAA4B,CAC5B,4BAA6B,CAH7B,qEAAwE,CADxE,UA0BD,CApBC,gEACC,oDACD,CD7ED,8DCgFE,yBD9EF,CAFA,8DCoFE,wBDlFF,CCqFC,gEACC,uCAMD,CD9FD,0EC4FG,sCAAuC,CADvC,cDzFH",sourcesContent:[`/* 2153 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2154 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2155 */ 2156
2157.ck.ck-input-color { 2158 width: 100%; 2159 display: flex; 2160 flex-direction: row-reverse; 2161 2162 & > input.ck.ck-input-text { 2163 min-width: auto; 2164 flex-grow: 1; 2165 } 2166 2167 & > div.ck.ck-dropdown { 2168 min-width: auto; 2169 2170 /* This dropdown has no arrow but a color preview instead. */ 2171 & > .ck-input-color__button .ck-dropdown__arrow { 2172 display: none; 2173 } 2174 } 2175 2176 & .ck.ck-input-color__button { 2177 /* Resolving issue with misaligned buttons on Safari (see #10589) */ 2178 display: flex; 2179 2180 & .ck.ck-input-color__button__preview { 2181 position: relative; 2182 overflow: hidden; 2183 2184 & > .ck.ck-input-color__button__preview__no-color-indicator { 2185 position: absolute; 2186 display: block; 2187 } 2188 } 2189 } 2190} 2191`,`/* 2192 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2193 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2194 */ 2195 2196@define-mixin ck-dir $direction { 2197 [dir="$(direction)"] & { 2198 @mixin-content; 2199 } 2200} 2201`,`/* 2202 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2203 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2204 */ 2205 2206@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 2207@import "../mixins/_rounded.css"; 2208 2209.ck.ck-input-color { 2210 & > .ck.ck-input-text { 2211 @mixin ck-dir ltr { 2212 border-top-right-radius: 0; 2213 border-bottom-right-radius: 0; 2214 } 2215 2216 @mixin ck-dir rtl { 2217 border-top-left-radius: 0; 2218 border-bottom-left-radius: 0; 2219 } 2220 2221 /* Make sure the focused input is always on top of the dropdown button so its 2222 outline and border are never cropped (also when the input is read-only). */ 2223 &:focus { 2224 z-index: 0; 2225 } 2226 } 2227 2228 & > .ck.ck-dropdown { 2229 & > .ck.ck-button.ck-input-color__button { 2230 padding: 0; 2231 2232 @mixin ck-dir ltr { 2233 border-top-left-radius: 0; 2234 border-bottom-left-radius: 0; 2235 2236 &:not(:focus) { 2237 border-left: 1px solid transparent; 2238 } 2239 } 2240 2241 @mixin ck-dir rtl { 2242 border-top-right-radius: 0; 2243 border-bottom-right-radius: 0; 2244 2245 &:not(:focus) { 2246 border-right: 1px solid transparent; 2247 } 2248 } 2249 2250 &.ck-disabled { 2251 background: var(--ck-color-input-disabled-background); 2252 } 2253 2254 & > .ck.ck-input-color__button__preview { 2255 @mixin ck-rounded-corners; 2256 2257 width: 20px; 2258 height: 20px; 2259 border: 1px solid var(--ck-color-input-border); 2260 2261 & > .ck.ck-input-color__button__preview__no-color-indicator { 2262 top: -30%; 2263 left: 50%; 2264 height: 150%; 2265 width: 8%; 2266 background: hsl(0, 100%, 50%); 2267 border-radius: 2px; 2268 transform: rotate(45deg); 2269 transform-origin: 50%; 2270 } 2271 } 2272 } 2273 } 2274 2275 & .ck.ck-input-color__remove-color { 2276 width: 100%; 2277 padding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard); 2278 2279 border-bottom-left-radius: 0; 2280 border-bottom-right-radius: 0; 2281 2282 &:not(:focus) { 2283 border-bottom: 1px solid var(--ck-color-input-border); 2284 } 2285 2286 @mixin ck-dir ltr { 2287 border-top-right-radius: 0; 2288 } 2289 2290 @mixin ck-dir rtl { 2291 border-top-left-radius: 0; 2292 } 2293 2294 & .ck.ck-icon { 2295 margin-right: var(--ck-spacing-standard); 2296 2297 @mixin ck-dir rtl { 2298 margin-right: 0; 2299 margin-left: var(--ck-spacing-standard); 2300 } 2301 } 2302 } 2303} 2304`,`/* 2305 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2306 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2307 */ 2308 2309/** 2310 * Implements rounded corner interface for .ck-rounded-corners class. 2311 * 2312 * @see $ck-border-radius 2313 */ 2314@define-mixin ck-rounded-corners { 2315 border-radius: 0; 2316 2317 .ck-rounded-corners &, 2318 &.ck-rounded-corners { 2319 border-radius: var(--ck-border-radius); 2320 @mixin-content; 2321 } 2322} 2323`],sourceRoot:""}]);const w=f},4043:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 2324 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2325 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2326 */ 2327
2328.ck.ck-form { 2329 padding: 0 0 var(--ck-spacing-large); 2330 2331 &:focus { 2332 /* See: https://github.com/ckeditor/ckeditor5/issues/4773 */ 2333 outline: none; 2334 } 2335 2336 & .ck.ck-input-text { 2337 min-width: 100%; 2338 width: 0; 2339 } 2340 2341 & .ck.ck-dropdown { 2342 min-width: 100%; 2343 2344 & .ck-dropdown__button { 2345 &:not(:focus) { 2346 border: 1px solid var(--ck-color-base-border); 2347 } 2348 2349 & .ck-button__label { 2350 width: 100%; 2351 } 2352 } 2353 } 2354} 2355`],sourceRoot:""}]);const w=f},2655:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/formrow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/formrow.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD,CCbF,iBACC,4DA2BD,CC7BC,6CDQG,mCCNH,CAFA,6CDYG,oCCVH,CDeA,2BAEC,cAAe,CADf,UAED,CAEA,2CACC,kCAKD,CAHC,wEACC,0BACD",sourcesContent:[`/* 2356 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2357 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2358 */ 2359 2360.ck.ck-form__row { 2361 display: flex; 2362 flex-direction: row; 2363 flex-wrap: nowrap; 2364 justify-content: space-between; 2365 2366 /* Ignore labels that work as fieldset legends */ 2367 & > *:not(.ck-label) { 2368 flex-grow: 1; 2369 } 2370 2371 &.ck-table-form__action-row { 2372 & .ck-button-save, 2373 & .ck-button-cancel { 2374 justify-content: center; 2375 } 2376 } 2377} 2378`,`/* 2379 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2380 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2381 */ 2382 2383@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 2384 2385.ck.ck-form__row { 2386 padding: var(--ck-spacing-standard) var(--ck-spacing-large) 0; 2387 2388 /* Ignore labels that work as fieldset legends */ 2389 & > *:not(.ck-label) { 2390 & + * { 2391 @mixin ck-dir ltr { 2392 margin-left: var(--ck-spacing-large); 2393 } 2394 2395 @mixin ck-dir rtl { 2396 margin-right: var(--ck-spacing-large); 2397 } 2398 } 2399 } 2400 2401 & > .ck-label { 2402 width: 100%; 2403 min-width: 100%; 2404 } 2405 2406 &.ck-table-form__action-row { 2407 margin-top: var(--ck-spacing-large); 2408 2409 & .ck-button .ck-button__label { 2410 color: var(--ck-color-text); 2411 } 2412 } 2413} 2414`,`/* 2415 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2416 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2417 */ 2418 2419@define-mixin ck-dir $direction { 2420 [dir="$(direction)"] & { 2421 @mixin-content; 2422 } 2423} 2424`],sourceRoot:""}]);const w=f},5032:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 2425 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2426 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2427 */ 2428 2429.ck .ck-insert-table-dropdown__grid {
2430 display: flex; 2431 flex-direction: row; 2432 flex-wrap: wrap; 2433} 2434`,`/* 2435 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2436 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2437 */ 2438 2439:root { 2440 --ck-insert-table-dropdown-padding: 10px; 2441 --ck-insert-table-dropdown-box-height: 11px; 2442 --ck-insert-table-dropdown-box-width: 12px; 2443 --ck-insert-table-dropdown-box-margin: 1px; 2444} 2445 2446.ck .ck-insert-table-dropdown__grid { 2447 /* The width of a container should match 10 items in a row so there will be a 10x10 grid. */ 2448 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); 2449 padding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0; 2450} 2451 2452.ck .ck-insert-table-dropdown__label, 2453.ck[dir=rtl] .ck-insert-table-dropdown__label { 2454 text-align: center; 2455} 2456 2457.ck .ck-insert-table-dropdown-grid-box { 2458 min-width: var(--ck-insert-table-dropdown-box-width); 2459 min-height: var(--ck-insert-table-dropdown-box-height); 2460 margin: var(--ck-insert-table-dropdown-box-margin); 2461 border: 1px solid var(--ck-color-base-border); 2462 border-radius: 1px; 2463 outline: none; 2464 transition: none; 2465 2466 @media (prefers-reduced-motion: reduce) { 2467 transition: none; 2468 } 2469 2470 &:focus { 2471 box-shadow: none; 2472 } 2473 2474 &.ck-on { 2475 border-color: var(--ck-color-focus-border); 2476 background: var(--ck-color-focus-outer-shadow); 2477 } 2478} 2479 2480`],sourceRoot:""}]);const w=f},2329:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}@media print{.ck-content .table table{height:auto}}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAeF,aACC,yBACC,WACD,CACD,CAIA,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:[`/* 2481 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2482 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2483 */ 2484 2485.ck-content .table { 2486 /* Give the table widget some air and center it horizontally */ 2487 /* The first value should be equal to --ck-spacing-large variable if used in the editor context 2488 to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */ 2489 margin: 0.9em auto; 2490 display: table; 2491 2492 & table { 2493 /* The table cells should have slight borders */ 2494 border-collapse: collapse; 2495 border-spacing: 0; 2496 2497 /* Table width and height are set on the parent <figure>. Make sure the table inside stretches 2498 to the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */ 2499 width: 100%; 2500 height: 100%; 2501 2502 /* The outer border of the table should be slightly darker than the inner lines. 2503 Also see https://github.com/ckeditor/ckeditor5-table/issues/50. */ 2504 border: 1px double hsl(0, 0%, 70%); 2505 2506 & td, 2507 & th { 2508 min-width: 2em; 2509 padding: .4em; 2510 2511 /* The border is inherited from .ck-editor__nested-editable styles, so theoretically it's not necessary here. 2512 However, the border is a content style, so it should use .ck-content (so it works outside the editor). 2513 Hence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */ 2514 border: 1px solid hsl(0, 0%, 75%); 2515 } 2516 2517 & th { 2518 font-weight: bold; 2519 background: hsla(0, 0%, 0%, 5%); 2520 } 2521 } 2522} 2523 2524/** 2525 * Expanding the table to the full height of the parent container is necessary because tables 2526 * are rendered inside <figure> elements, which is kinda buggy in table height calculation. 2527 * While setting \`height: 100%\` fixes the issue in the editing mode described here: 2528 * https://github.com/ckeditor/ckeditor5/issues/6186 2529 * 2530 * it's causing another issue with the table height in the print preview mode here: 2531 * https://github.com/ckeditor/ckeditor5/issues/16856 2532 * 2533 * For now, resetting the height to \`initial\` in the print mode works as a workaround. 2534 */ 2535@media print { 2536 .ck-content .table table { 2537 height: initial; 2538 } 2539} 2540 2541/* Text alignment of the table header should match the editor settings and override the native browser styling, 2542when content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */ 2543.ck-content[dir="rtl"] .table th { 2544 text-align: right; 2545} 2546 2547.ck-content[dir="ltr"] .table th { 2548 text-align: left; 2549} 2550 2551.ck-editor__editable .ck-table-bogus-paragraph { 2552 /* 2553 * Use display:inline-block to force Chrome/Safari to limit text mutations to this element. 2554 * See https://github.com/ckeditor/ckeditor5/issues/6062. 2555 */ 2556 display: inline-block; 2557 2558 /* 2559 * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width. 2560 * See https://github.com/ckeditor/ckeditor5/issues/9117. 2561 */ 2562 width: 100%; 2563} 2564`],sourceRoot:""}]);const w=f},4143:(x,A,g)=>{g.d(A,{A:()=>w});
2564var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,":root{--ck-color-selector-caption-background:#f7f7f7;--ck-color-selector-caption-text:#333;--ck-color-selector-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-selector-caption-background);caption-side:top;color:var(--ck-color-selector-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}@media (forced-colors:active){.ck-content .table>figcaption{background-color:unset;color:unset}}@media (forced-colors:none){.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-selector-caption-highlighted-background)}to{background-color:var(--ck-color-selector-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecaption.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css"],names:[],mappings:"AAOA,MACC,8CAAuD,CACvD,qCAAiD,CACjD,uDACD,CAGA,8BAMC,4DAA6D,CAJ7D,gBAAiB,CAGjB,2CAA4C,CAJ5C,qBAAsB,CAOtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,iBAAkB,CADlB,qBAaD,CCxBC,8BACC,8BDoBA,sBAAuB,CACvB,WCnBA,CACD,CAIA,4BDqBC,qEACC,iDACD,CCnBD,CDsBA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,wEACD,CAEA,GACC,4DACD,CACD",sourcesContent:[`/* 2565 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2566 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2567 */ 2568 2569@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css"; 2570 2571:root { 2572 --ck-color-selector-caption-background: hsl(0, 0%, 97%); 2573 --ck-color-selector-caption-text: hsl(0, 0%, 20%); 2574 --ck-color-selector-caption-highlighted-background: hsl(52deg 100% 50%); 2575} 2576 2577/* Content styles */ 2578.ck-content .table > figcaption { 2579 display: table-caption; 2580 caption-side: top; 2581 word-break: break-word; 2582 text-align: center; 2583 color: var(--ck-color-selector-caption-text); 2584 background-color: var(--ck-color-selector-caption-background); 2585 padding: .6em; 2586 font-size: .75em; 2587 outline-offset: -1px; 2588 2589 /* Improve placeholder rendering in high-constrast mode (https://github.com/ckeditor/ckeditor5/issues/14907). */ 2590 @mixin ck-media-forced-colors { 2591 background-color: unset; 2592 color: unset; 2593 } 2594} 2595 2596/* Editing styles */ 2597.ck.ck-editor__editable .table > figcaption { 2598 @mixin ck-media-default-colors { 2599 &.table__caption_highlighted { 2600 animation: ck-table-caption-highlight .6s ease-out; 2601 } 2602 } 2603 2604 &.ck-placeholder::before { 2605 padding-left: inherit; 2606 padding-right: inherit; 2607 2608 /* 2609 * Make sure the table caption placeholder doesn't overflow the placeholder area. 2610 * See https://github.com/ckeditor/ckeditor5/issues/9162. 2611 */ 2612 white-space: nowrap; 2613 overflow: hidden; 2614 text-overflow: ellipsis; 2615 } 2616} 2617 2618@keyframes ck-table-caption-highlight { 2619 0% { 2620 background-color: var(--ck-color-selector-caption-highlighted-background); 2621 } 2622 2623 100% { 2624 background-color: var(--ck-color-selector-caption-background); 2625 } 2626} 2627`,`/* 2628 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2629 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2630 */ 2631 2632@define-mixin ck-media-forced-colors { 2633 @media (forced-colors: active) { 2634 & { 2635 @mixin-content; 2636 } 2637 } 2638} 2639 2640@define-mixin ck-media-default-colors { 2641 @media (forced-colors: none) { 2642 & { 2643 @mixin-content; 2644 } 2645 } 2646} 2647`],sourceRoot:""}]);const w=f},8986:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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,
2647CAGC,4GACC,eAAgB,CAGhB,qCACD",sourcesContent:[`/* 2648 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2649 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2650 */ 2651 2652.ck.ck-table-cell-properties-form { 2653 & .ck-form__row { 2654 &.ck-table-cell-properties-form__alignment-row { 2655 flex-wrap: wrap; 2656 2657 & .ck.ck-toolbar { 2658 &:first-of-type { 2659 /* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */ 2660 flex-grow: 0.57; 2661 } 2662 2663 &:last-of-type { 2664 /* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */ 2665 flex-grow: 0.43; 2666 } 2667 2668 & .ck-button { 2669 flex-grow: 1; 2670 } 2671 } 2672 } 2673 } 2674} 2675`,`/* 2676 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2677 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2678 */ 2679 2680.ck.ck-table-cell-properties-form { 2681 width: 320px; 2682 2683 & .ck-form__row { 2684 &.ck-table-cell-properties-form__padding-row { 2685 align-self: flex-end; 2686 padding: 0; 2687 width: 25%; 2688 } 2689 2690 &.ck-table-cell-properties-form__alignment-row { 2691 & .ck.ck-toolbar { 2692 background: none; 2693 2694 /* Compensate for missing input label that would push the margin (toolbar has no inputs). */ 2695 margin-top: var(--ck-spacing-standard); 2696 } 2697 } 2698 } 2699} 2700`],sourceRoot:""}]);const w=f},8795:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 2701 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2702 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2703 */ 2704 2705:root { 2706 --ck-color-selector-column-resizer-hover: var(--ck-color-base-active); 2707 --ck-table-column-resizer-width: 7px; 2708 2709 /* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border. 2710 The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */ 2711 --ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -0.5 - 0.5px); 2712} 2713 2714.ck-content .table .ck-table-resized { 2715 table-layout: fixed; 2716} 2717 2718.ck-content .table table { 2719 overflow: hidden; 2720} 2721 2722.ck-content .table td, 2723.ck-content .table th { 2724 /* To prevent text overflowing beyond its cell when columns are resized by resize handler 2725 (https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */ 2726 overflow-wrap: break-word; 2727 position: relative; 2728} 2729 2730.ck.ck-editor__editable .table .ck-table-column-resizer { 2731 position: absolute; 2732 top: 0; 2733 bottom: 0; 2734 right: var(--ck-table-column-resizer-position-offset); 2735 width: var(--ck-table-column-resizer-width);
2736 cursor: col-resize; 2737 user-select: none; 2738 z-index: var(--ck-z-default); 2739} 2740 2741.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer { 2742 display: none; 2743} 2744 2745/* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again, 2746 all resizers must be hidden while the table is dragged. */ 2747.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer { 2748 display: none; 2749} 2750 2751.ck.ck-editor__editable .table .ck-table-column-resizer:hover, 2752.ck.ck-editor__editable .table .ck-table-column-resizer__active { 2753 background-color: var(--ck-color-selector-column-resizer-hover); 2754 opacity: 0.25; 2755 /* 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, 2756 it is extended to an extremely high height. Even for screens with a very high pixel density, the resizer will fulfill its role as 2757 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 2758 unrealistic height for a single table. */ 2759 top: -999999px; 2760 bottom: -999999px; 2761} 2762 2763.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer { 2764 left: var(--ck-table-column-resizer-position-offset); 2765 right: unset; 2766} 2767`],sourceRoot:""}]);const w=f},8137:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,":root{--ck-color-selector-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-selector-focused-cell-background);outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,gEACD,CAWE,8QAGC,2DAA4D,CAC5D,8CAA+C,CAC/C,mBACD",sourcesContent:[`/* 2768 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2769 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2770 */ 2771 2772:root { 2773 --ck-color-selector-focused-cell-background: hsla(212, 90%, 80%, .3); 2774} 2775 2776.ck-widget.table { 2777 & td, 2778 & th { 2779 /** 2780 * While setting outline is fine, the border should not be modified here 2781 * because it overrides the default table cell border color which is not expected. 2782 * So do not use \`@mixin ck-focus-ring;\` here, or any other border styles. 2783 * See more: https://github.com/ckeditor/ckeditor5/issues/16979 2784 */ 2785 &.ck-editor__nested-editable.ck-editor__nested-editable_focused, 2786 &.ck-editor__nested-editable:focus { 2787 /* A very slight background to highlight the focused cell */ 2788 background: var(--ck-color-selector-focused-cell-background); 2789 outline: 1px solid var(--ck-color-focus-border); 2790 outline-offset: -1px; /* progressive enhancement - no IE support */ 2791 } 2792 } 2793} 2794`],sourceRoot:""}]);const w=f},1623:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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}
2794.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both;background:var(--ck-color-base-error);border-radius:0;color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}@media (prefers-reduced-motion:reduce){.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:none}}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}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,8EAgBC,iEAAkE,CAblE,qCAAsC,CC3CxC,eAAgB,CD4Cd,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAcD,CC3DD,mMAEC,qCAED,CD4CE,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAIA,uCAlBD,8EAmBE,cAEF,CADC,CAID,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:[`/* 2795 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2796 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2797 */ 2798 2799.ck.ck-table-form { 2800 & .ck-form__row { 2801 &.ck-table-form__border-row { 2802 flex-wrap: wrap; 2803 } 2804 2805 &.ck-table-form__background-row { 2806 flex-wrap: wrap; 2807 } 2808 2809 &.ck-table-form__dimensions-row { 2810 flex-wrap: wrap; 2811 align-items: center; 2812 2813 & .ck-labeled-field-view { 2814 display: flex; 2815 flex-direction: column-reverse; 2816 align-items: center; 2817 2818 & .ck.ck-dropdown { 2819 flex-grow: 0; 2820 } 2821 } 2822 2823 & .ck-table-form__dimension-operator { 2824 flex-grow: 0; 2825 } 2826 } 2827 } 2828 2829 & .ck.ck-labeled-field-view { 2830 /* Allow absolute positioning of the status (error) balloons. */ 2831 position: relative; 2832 2833 & .ck.ck-labeled-field-view__status { 2834 position: absolute; 2835 left: 50%; 2836 bottom: calc( -1 * var(--ck-table-properties-error-arrow-size) ); 2837 transform: translate(-50%,100%); 2838 2839 /* Make sure the balloon status stays on top of other form elements. */ 2840 z-index: 1; 2841 2842 /* The arrow pointing towards the field. */ 2843 &::after { 2844 content: ""; 2845 position: absolute; 2846 top: calc( -1 * var(--ck-table-properties-error-arrow-size) ); 2847 left: 50%; 2848 transform: translateX( -50% ); 2849 } 2850 } 2851 } 2852} 2853`,`/* 2854 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2855 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2856 */ 2857 2858@import "../mixins/_rounded.css"; 2859 2860:root { 2861 --ck-table-properties-error-arrow-size: 6px; 2862 --ck-table-properties-min-error-width: 150px; 2863} 2864
2865.ck.ck-table-form { 2866 & .ck-form__row { 2867 &.ck-table-form__border-row { 2868 & .ck-labeled-field-view { 2869 & > .ck-label { 2870 font-size: var(--ck-font-size-tiny); 2871 text-align: center; 2872 } 2873 } 2874 2875 & .ck-table-form__border-style, 2876 & .ck-table-form__border-width { 2877 width: 80px; 2878 min-width: 80px; 2879 max-width: 80px; 2880 } 2881 } 2882 2883 &.ck-table-form__dimensions-row { 2884 padding: 0; 2885 2886 & .ck-table-form__dimensions-row__width, 2887 & .ck-table-form__dimensions-row__height { 2888 margin: 0 2889 } 2890 2891 & .ck-table-form__dimension-operator { 2892 align-self: flex-end; 2893 display: inline-block; 2894 height: var(--ck-ui-component-min-height); 2895 line-height: var(--ck-ui-component-min-height); 2896 margin: 0 var(--ck-spacing-small); 2897 } 2898 } 2899 } 2900 2901 & .ck.ck-labeled-field-view { 2902 padding-top: var(--ck-spacing-standard); 2903 2904 & .ck.ck-labeled-field-view__status { 2905 @mixin ck-rounded-corners; 2906 2907 background: var(--ck-color-base-error); 2908 color: var(--ck-color-base-background); 2909 padding: var(--ck-spacing-small) var(--ck-spacing-medium); 2910 min-width: var(--ck-table-properties-min-error-width); 2911 text-align: center; 2912 2913 /* The arrow pointing towards the field. */ 2914 &::after { 2915 border-color: transparent transparent var(--ck-color-base-error) transparent; 2916 border-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size); 2917 border-style: solid; 2918 } 2919 2920 animation: ck-table-form-labeled-view-status-appear .15s ease both; 2921 2922 @media (prefers-reduced-motion: reduce) { 2923 animation: none; 2924 } 2925 } 2926 2927 /* Hide the error balloon when the field is blurred. Makes the experience much more clear. */ 2928 & .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status { 2929 display: none; 2930 } 2931 } 2932} 2933 2934@keyframes ck-table-form-labeled-view-status-appear { 2935 0% { 2936 opacity: 0; 2937 } 2938 2939 100% { 2940 opacity: 1; 2941 } 2942} 2943`,`/* 2944 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2945 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2946 */ 2947 2948/** 2949 * Implements rounded corner interface for .ck-rounded-corners class. 2950 * 2951 * @see $ck-border-radius 2952 */ 2953@define-mixin ck-rounded-corners { 2954 border-radius: 0; 2955 2956 .ck-rounded-corners &, 2957 &.ck-rounded-corners { 2958 border-radius: var(--ck-border-radius); 2959 @mixin-content; 2960 } 2961} 2962`],sourceRoot:""}]);const w=f},5562:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 2963 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2964 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2965 */ 2966 2967.ck.ck-table-properties-form { 2968 & .ck-form__row { 2969 &.ck-table-properties-form__alignment-row { 2970 flex-wrap: wrap; 2971 flex-basis: 0; 2972 align-content: baseline; 2973 2974 & .ck.ck-toolbar .ck-toolbar__items { 2975 flex-wrap: nowrap; 2976 } 2977 } 2978 } 2979} 2980`,`/* 2981 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 2982 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 2983 */ 2984
2985.ck.ck-table-properties-form { 2986 width: 320px; 2987 2988 & .ck-form__row { 2989 &.ck-table-properties-form__alignment-row { 2990 align-self: flex-end; 2991 padding: 0; 2992 2993 & .ck.ck-toolbar { 2994 background: none; 2995 2996 /* Compensate for missing input label that would push the margin (toolbar has no inputs). */ 2997 margin-top: var(--ck-spacing-standard); 2998 2999 & .ck-toolbar__items > * { 3000 width: 40px; 3001 } 3002 } 3003 } 3004 } 3005} 3006`],sourceRoot:""}]);const w=f},8423:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 3007 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3008 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3009 */ 3010 3011:root { 3012 --ck-table-selected-cell-background: hsla(208, 90%, 80%, .3); 3013} 3014 3015.ck.ck-editor__editable .table table { 3016 & td.ck-editor__editable_selected, 3017 & th.ck-editor__editable_selected { 3018 position: relative; 3019 caret-color: transparent; 3020 outline: unset; 3021 box-shadow: unset; 3022 3023 /* https://github.com/ckeditor/ckeditor5/issues/6446 */ 3024 &:after { 3025 content: ''; 3026 pointer-events: none; 3027 background-color: var(--ck-table-selected-cell-background); 3028 position: absolute; 3029 top: 0; 3030 left: 0; 3031 right: 0; 3032 bottom: 0; 3033 } 3034 3035 & ::selection, 3036 &:focus { 3037 background-color: transparent; 3038 } 3039 3040 /* 3041 * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle. 3042 * See https://github.com/ckeditor/ckeditor5/issues/9491. 3043 */ 3044 & .ck-widget { 3045 outline: unset; 3046 3047 & > .ck-widget__selection-handle { 3048 display: none; 3049 } 3050 } 3051 } 3052} 3053`],sourceRoot:""}]);const w=f},1801:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 3054 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3055 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3056 */ 3057 3058.ck.ck-aria-live-announcer { 3059 position: absolute; 3060 left: -10000px; 3061 top: -10000px; 3062} 3063 3064.ck.ck-aria-live-region-list { 3065 list-style-type: none; 3066} 3067`],sourceRoot:""}]);const w=f},5727:(x,A,g)=>{g.d(A,{A:()=>w});
3067var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-autocomplete{position:relative}.ck.ck-autocomplete>.ck-search__results{position:absolute;z-index:var(--ck-z-panel)}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{bottom:100%}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{bottom:auto;top:100%}.ck.ck-autocomplete>.ck-search__results{background:var(--ck-color-base-background);border:1px solid var(--ck-color-dropdown-panel-border);border-radius:0;max-height:200px;min-width:auto;overflow-y:auto}.ck-rounded-corners .ck.ck-autocomplete>.ck-search__results,.ck.ck-autocomplete>.ck-search__results.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-autocomplete>.ck-search__results{box-shadow:var(--ck-drop-shadow),0 0}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:-1px}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/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,wCAMC,0CAA2C,CAC3C,sDAAuD,CCLxD,eAAgB,CDEf,gBAAiB,CAIjB,cAAe,CAHf,eAoBD,CCrBA,uHAEC,qCAED,CDRA,wCEAA,oCFyBA,CAfC,6DACC,2BAA4B,CAC5B,4BAA6B,CAG7B,kBACD,CAEA,6DACC,wBAAyB,CACzB,yBAA0B,CAG1B,eACD",sourcesContent:[`/* 3068 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3069 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3070 */ 3071 3072.ck.ck-autocomplete { 3073 position: relative; 3074 3075 & > .ck-search__results { 3076 position: absolute; 3077 z-index: var(--ck-z-panel); 3078 3079 &.ck-search__results_n { 3080 bottom: 100%; 3081 } 3082 3083 &.ck-search__results_s { 3084 top: 100%; 3085 bottom: auto; 3086 } 3087 } 3088} 3089`,`/* 3090 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3091 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3092 */ 3093 3094@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"; 3095@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"; 3096 3097.ck.ck-autocomplete { 3098 & > .ck-search__results { 3099 @mixin ck-rounded-corners; 3100 @mixin ck-drop-shadow; 3101 3102 max-height: 200px; 3103 overflow-y: auto; 3104 background: var(--ck-color-base-background); 3105 border: 1px solid var(--ck-color-dropdown-panel-border); 3106 min-width: auto; 3107 3108 &.ck-search__results_n { 3109 border-bottom-left-radius: 0; 3110 border-bottom-right-radius: 0; 3111 3112 /* Prevent duplicated borders between the input and the results pane. */ 3113 margin-bottom: -1px; 3114 } 3115 3116 &.ck-search__results_s { 3117 border-top-left-radius: 0; 3118 border-top-right-radius: 0; 3119 3120 /* Prevent duplicated borders between the input and the results pane. */ 3121 margin-top: -1px; 3122 } 3123 } 3124} 3125`,`/* 3126 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3127 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3128 */ 3129 3130/** 3131 * Implements rounded corner interface for .ck-rounded-corners class. 3132 * 3133 * @see $ck-border-radius 3134 */ 3135@define-mixin ck-rounded-corners { 3136 border-radius: 0; 3137 3138 .ck-rounded-corners &, 3139 &.ck-rounded-corners { 3140 border-radius: var(--ck-border-radius); 3141 @mixin-content; 3142 } 3143} 3144`,`/* 3145 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3146 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3147 */ 3148 3149/** 3150 * A helper to combine multiple shadows. 3151 */ 3152@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 3153 box-shadow: $shadowA, $shadowB; 3154} 3155 3156/** 3157 * Gives an element a drop shadow so it looks like a floating panel. 3158 */ 3159@define-mixin ck-drop-shadow { 3160 @mixin ck-box-shadow var(--ck-drop-shadow); 3161} 3162`],sourceRoot:""}]);const w=f},9715:(x,A,g)=>{g.d(A,{A:()=>w});
3162var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}[dir=ltr] .ck.ck-button,[dir=ltr] a.ck.ck-button{justify-content:left}[dir=rtl] .ck.ck-button,[dir=rtl] a.ck.ck-button{justify-content:right}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;background:var(--ck-color-button-default-background);border:1px solid transparent;border-radius:0;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}@media (prefers-reduced-motion:reduce){.ck.ck-button,a.ck.ck-button{transition:none}}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit;opacity:.5}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-medium)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background);color:var(--ck-color-button-on-color)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background);color:var(--ck-color-button-action-text)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/button.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAQA,6BAMC,kBAAmB,CADnB,mBAAoB,CADpB,iBAAkB,CCHlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD0BD,CEhCC,iDFWC,oBETD,CAFA,iDFeC,qBEbD,CFgBA,iEACC,YACD,CAGC,yGACC,oBACD,
3162CAID,iFACC,sBACD,CGzBD,6BA6BC,uBAAwB,CC7BxB,oDAAqC,CDuBrC,4BAA6B,CExB7B,eAAgB,CFOhB,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAwID,CC1IE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CCdA,wIAEC,qCAED,CF0BA,uCA/BD,6BAgCE,eA6GF,CA5GC,CAEA,oFGpCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHyCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CDzEA,qFCmEE,eDjEF,CAFA,qFCuEE,gBDrEF,CCyEA,yEACC,aAAc,CAUd,UACD,CDvFA,6FC+EE,mCD7EF,CAFA,6FCmFE,oCDjFF,CCyFC,oIIxFD,oDJ4FC,CAOA,gLKnGD,kCLqGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAYD,CD5HA,2HCqHG,qCDnHH,CAFA,2HCyHG,oCDvHH,CC8HC,mHACC,WACD,CAID,yCChIA,+CAAqC,CDmIpC,qCACD,CCjIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDuHA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CChJC,mDAAqC,CDoJrC,wCACD,CClJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDwID,uCAEC,eACD",sourcesContent:[`/* 3163 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3164 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3165 */ 3166 3167@import "../../mixins/_unselectable.css"; 3168@import "../../mixins/_dir.css"; 3169 3170.ck.ck-button, 3171a.ck.ck-button { 3172 @mixin ck-unselectable; 3173 3174 position: relative; 3175 display: inline-flex; 3176 align-items: center; 3177 3178 @mixin ck-dir ltr { 3179 justify-content: left; 3180 } 3181 3182 @mixin ck-dir rtl { 3183 justify-content: right; 3184 } 3185 3186 & .ck-button__label { 3187 display: none; 3188 } 3189 3190 &.ck-button_with-text { 3191 & .ck-button__label { 3192 display: inline-block; 3193 } 3194 } 3195 3196 /* Center the icon horizontally in a button without text. */ 3197 &:not(.ck-button_with-text) { 3198 justify-content: center; 3199 } 3200} 3201`,`/* 3202 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3203 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3204 */ 3205 3206/** 3207 * Makes element unselectable. 3208 */ 3209@define-mixin ck-unselectable { 3210 -moz-user-select: none; 3211 -webkit-user-select: none; 3212 -ms-user-select: none; 3213 user-select: none 3214} 3215`,`/* 3216 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3217 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3218 */ 3219 3220@define-mixin ck-dir $direction { 3221 [dir="$(direction)"] & { 3222 @mixin-content; 3223 } 3224} 3225`,`/* 3226 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3227 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3228 */ 3229 3230@import "../../../mixins/_focus.css"; 3231@import "../../../mixins/_shadow.css"; 3232@import "../../../mixins/_disabled.css"; 3233@import "../../../mixins/_rounded.css"; 3234@import "../../mixins/_button.css"; 3235@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 3236 3237.ck.ck-button, 3238a.ck.ck-button { 3239 @mixin ck-button-colors --ck-color-button-default; 3240 @mixin ck-rounded-corners; 3241 3242 white-space: nowrap; 3243 cursor: default; 3244 vertical-align: middle; 3245 padding: var(--ck-spacing-tiny); 3246 text-align: center; 3247 3248 /* A very important piece of styling. Go to variable declaration to learn more. */ 3249 min-width: var(--ck-ui-component-min-height); 3250 min-height: var(--ck-ui-component-min-height); 3251 3252 /* Normalize the height of the line. Removing this will break consistent height 3253 among text and text-less buttons (with icons). */ 3254 line-height: 1; 3255 3256 /* Enable font size inheritance, which allows fluid UI scaling. */ 3257 font-size: inherit; 3258 3259 /* Avoid flickering when the foucs border shows up. */ 3260 border: 1px solid transparent; 3261 3262 /* Apply some smooth transition to the box-shadow and border. */ 3263 transition: box-shadow .2s ease-in-out, border .2s ease-in-out; 3264 3265 /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */ 3266 -webkit-appearance: none; 3267 3268 @media (prefers-reduced-motion: reduce) { 3269 transition: none; 3270 } 3271 3272 &:active, 3273 &:focus { 3274 @mixin ck-focus-ring; 3275 @mixin ck-box-shadow var(--ck-focus-outer-shadow); 3276 } 3277 3278 /* Allow icon coloring using the text "color" property. */ 3279 & .ck-button__icon { 3280 & use, 3281 & use * { 3282 color: inherit; 3283 } 3284 } 3285 3286 & .ck-button__label { 3287 /* Enable font size inheritance, which allows fluid UI scaling. */ 3288 font-size: inherit; 3289 font-weight: inherit; 3290 color: inherit; 3291 cursor: inherit; 3292 3293 /* Must be consistent with .ck-icon's vertical align. Otherwise, buttons with and 3294 without labels (but with icons) have different sizes in Chrome */ 3295 vertical-align: middle; 3296 3297 @mixin ck-dir ltr { 3298 text-align: left; 3299 } 3300 3301 @mixin ck-dir rtl { 3302 text-align: right; 3303 } 3304 } 3305 3306 & .ck-button__keystroke { 3307 color: inherit; 3308 3309 @mixin ck-dir ltr { 3310 margin-left: var(--ck-spacing-large); 3311 } 3312 3313 @mixin ck-dir rtl { 3314 margin-right: var(--ck-spacing-large); 3315 } 3316 3317 opacity: .5; 3318 } 3319 3320 /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */ 3321 &.ck-disabled { 3322 &:active, 3323 &:focus { 3324 /* The disabled button should have a slightly less visible shadow when focu
3324sed. */ 3325 @mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow); 3326 } 3327 3328 & .ck-button__icon { 3329 @mixin ck-disabled; 3330 } 3331 3332 /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */ 3333 & .ck-button__label { 3334 @mixin ck-disabled; 3335 } 3336 3337 & .ck-button__keystroke { 3338 opacity: .3; 3339 } 3340 } 3341 3342 &.ck-button_with-text { 3343 padding: var(--ck-spacing-tiny) var(--ck-spacing-standard); 3344 3345 /* stylelint-disable-next-line no-descending-specificity */ 3346 & .ck-button__icon { 3347 @mixin ck-dir ltr { 3348 margin-right: var(--ck-spacing-medium); 3349 } 3350 3351 @mixin ck-dir rtl { 3352 margin-left: var(--ck-spacing-medium); 3353 } 3354 } 3355 } 3356 3357 &.ck-button_with-keystroke { 3358 /* stylelint-disable-next-line no-descending-specificity */ 3359 & .ck-button__label { 3360 flex-grow: 1; 3361 } 3362 } 3363 3364 /* A style of the button which is currently on, e.g. its feature is active. */ 3365 &.ck-on { 3366 @mixin ck-button-colors --ck-color-button-on; 3367 3368 color: var(--ck-color-button-on-color); 3369 } 3370 3371 &.ck-button-save { 3372 color: var(--ck-color-button-save); 3373 } 3374 3375 &.ck-button-cancel { 3376 color: var(--ck-color-button-cancel); 3377 } 3378} 3379 3380/* A style of the button which handles the primary action. */ 3381.ck.ck-button-action, 3382a.ck.ck-button-action { 3383 @mixin ck-button-colors --ck-color-button-action; 3384 3385 color: var(--ck-color-button-action-text); 3386} 3387 3388.ck.ck-button-bold, 3389a.ck.ck-button-bold { 3390 font-weight: bold; 3391} 3392`,`/* 3393 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3394 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3395 */ 3396 3397/** 3398 * Implements a button of given background color. 3399 * 3400 * @param {String} $background - Background color of the button. 3401 * @param {String} $border - Border color of the button. 3402 */ 3403@define-mixin ck-button-colors $prefix { 3404 background: var($(prefix)-background); 3405 3406 &:not(.ck-disabled) { 3407 &:hover { 3408 background: var($(prefix)-hover-background); 3409 } 3410 3411 &:active { 3412 background: var($(prefix)-active-background); 3413 } 3414 } 3415 3416 /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */ 3417 &.ck-disabled { 3418 background: var($(prefix)-disabled-background); 3419 } 3420} 3421`,`/* 3422 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3423 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3424 */ 3425 3426/** 3427 * Implements rounded corner interface for .ck-rounded-corners class. 3428 * 3429 * @see $ck-border-radius 3430 */ 3431@define-mixin ck-rounded-corners { 3432 border-radius: 0; 3433 3434 .ck-rounded-corners &, 3435 &.ck-rounded-corners { 3436 border-radius: var(--ck-border-radius); 3437 @mixin-content; 3438 } 3439} 3440`,`/* 3441 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3442 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3443 */ 3444 3445/** 3446 * A visual style of focused element's border. 3447 */ 3448@define-mixin ck-focus-ring { 3449 /* Disable native outline. */ 3450 outline: none; 3451 border: var(--ck-focus-ring) 3452} 3453`,`/* 3454 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3455 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3456 */ 3457 3458/** 3459 * A helper to combine multiple shadows. 3460 */ 3461@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 3462 box-shadow: $shadowA, $shadowB; 3463} 3464 3465/** 3466 * Gives an element a drop shadow so it looks like a floating panel. 3467 */ 3468@define-mixin ck-drop-shadow { 3469 @mixin ck-box-shadow var(--ck-drop-shadow); 3470} 3471`,`/* 3472 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3473 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3474 */ 3475 3476/** 3477 * A class which indicates that an element holding it is disabled. 3478 */ 3479@define-mixin ck-disabled { 3480 opacity: var(--ck-disabled-opacity); 3481} 3482`],sourceRoot:""}]);const w=f},278:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-list-item-button{border-radius:0;min-height:unset;width:100%}[dir=ltr] .ck.ck-list-item-button{text-align:left}[dir=rtl] .ck.ck-list-item-button{text-align:right}[dir=ltr] .ck.ck-list-item-button.ck-list-item-button_toggleable{padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-list-item-button.ck-list-item-button_toggleable{padding-right:var(--ck-spacing-small)}.ck.ck-list-item-button .ck-list-item-button__check-holder{display:inline-flex;height:.9em;width:.9em}[dir=ltr] .ck.ck-list-item-button .ck-list-item-button__check-holder{margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-list-item-button .ck-list-item-button__check-holder{margin-left:var(--ck-spacing-small)}.ck.ck-list-item-button .ck-list-item-button__check-icon{height:100%}.ck.ck-button.ck-list-item-button{padding:var(--ck-spacing-tiny) calc(var(--ck-spacing-standard)*2)}.ck.ck-button.ck-list-item-button,.ck.ck-button.ck-list-item-button.ck-on{background:var(--ck-color-list-background);color:var(--ck-color-text)}[dir=ltr] .ck.ck-button.ck-list-item-button:has(.ck-list-item-button__check-holder){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-list-item-button:has(.ck-list-item-button__check-holder){padding-right:var(--ck-spacing-small)}.ck.ck-button.ck-list-item-button.ck-button.ck-on:hover,.ck.ck-button.ck-list-item-button.ck-on:hover,.ck.ck-button.ck-list-item-button.ck-on:not(.ck-list-item-button_toggleable),.ck.ck-button.ck-list-item-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-button.ck-list-item-button.ck-button.ck-on:hover:not(.ck-disabled),.ck.ck-button.ck-list-item-button.ck-on:hover:not(.ck-disabled),.ck.ck-button.ck-list-item-button.ck-on:not(.ck-list-item-button_toggleable):not(.ck-disabled),.ck.ck-button.ck-list-item-button:hover:not(.ck-disabled):not(.ck-disabled){color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/listitembutton.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/listitembutton.css"],names:[],mappings:"AAOA,wBAGC,eAAgB,CAFhB,gBAAiB,CACjB,UAsCD,CCzCC,kCDOC,eCLD,CAFA,kCDWC,gBCTD,CAFA,iEDgBE,oCCdF,CAFA,iEDoBE,qCClBF,CDsBA,2DACC,mBAAoB,CAEpB,WAAY,CADZ,UAUD,CCpCA,qED8BE,oCC5BF,CAFA,qEDkCE,mCChCF,CDoCA,yDACC,WACD,CEvCD,kCACC,iEAiCD,CA/BC,0EAEC,0CAA2C,CAC3C,0BACD,CDRA,oFCYE,oCDVF,CAFA,oFCgBE,qCDdF,CCuBA,6OAIC,uDAKD,CAHC,qTACC,0BACD",sourcesContent:[`/* 3483 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3484 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3485 */ 3486 3487@import "../../mixins/_dir.css"; 3488 3489.ck.ck-list-item-button { 3490 min-height: unset; 3491 width: 100%; 3492 border-radius: 0; 3493 3494 @mixin ck-dir ltr { 3495 text-align: left; 3496 } 3497 3498 @mixin ck-dir rtl { 3499 text-align: right; 3500 } 3501 3502 &.ck-list-item-button_toggleable { 3503 @mixin ck-dir ltr { 3504 padding-left: var(--ck-spacing-small); 3505 } 3506 3507 @mixin ck-dir rtl { 3508 padding-right: var(--ck-spacing-small); 3509 } 3510 } 3511 3512 & .ck-list-item-button__check-holder { 3513 display: inline-flex; 3514 width: .9em; 3515 height: .9em; 3516 3517 @mixin ck-dir ltr { 3518 margin-right: var(--ck-spacing-small); 3519 } 3520 3521 @mixin ck-dir rtl { 3522 margin-left: var(--ck-spacing-small); 3523 } 3524 } 3525 3526 & .ck-list-item-button__check-icon { 3527 height: 100%; 3528 } 3529} 3530`,`/* 3531 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3532 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3533 */ 3534 3535@define-mixin ck-dir $direction { 3536 [dir="$(direction)"] & { 3537 @mixin-content; 3538 } 3539} 3540`,`/* 3541 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3542 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3543 */ 3544 3545@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 3546 3547.ck.ck-button.ck-list-item-button { 3548 padding: var(--ck-spacing-tiny) calc(2 * var(--ck-spacing-standard)); 3549 3550 &, 3551 &.ck-on { 3552 background: var(--ck-color-list-background); 3553 color: var(--ck-color-text); 3554 } 3555 3556 &:has(.ck-list-item-button__check-holder) { 3557 @mixin ck-dir ltr { 3558 padding-left: var(--ck-spacing-small); 3559 } 3560 3561 @mixin ck-dir rtl { 3562 padding-right: var(--ck-spacing-small); 3563 } 3564 } 3565 3566 /* 3567 * \`.ck-on\` class and background styling is overridden for \`ck-button\` in many places. 3568 * This is a workaround to make sure that the background is not overridden and uses similar 3569 * selector specificity as the other overrides. 3570 */ 3571 &:hover:not(.ck-disabled), 3572 &.ck-button.ck-on:hover, 3573 &.ck-on:not(.ck-list-item-button_toggleable), 3574 &.ck-on:hover { 3575 background: var(--ck-color-list-button-hover-background); 3576 3577 &:not(.ck-disabled) { 3578 color: var(--ck-color-text); 3579 } 3580 } 3581} 3582`],sourceRoot:""}]);const w=f},4391:(x,A,g)=>{g.d(A,{A:()=>w});
3582var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;border-radius:0;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);border-radius:0;height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}@media (prefers-reduced-motion:reduce){.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{transition:none}}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CC3BA,0DDgCE,4CC9BF,CAFA,0DDqCE,2CCnCF,CDuCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CEpD9B,eAAgB,CFmDf,iFAAsF,CAEtF,0CA2BD,CE9EA,yIAEC,qCAED,CDXA,2DD8CE,gBC5CF,CAFA,2DDmDE,iBCjDF,CD2DC,2EAOC,yDAA0D,CE/D5D,eAAgB,CF8Dd,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAUD,CErED,6LAEC,qCAAsC,CFsDpC,8CEpDH,CF8DE,uCAZD,2EAaE,eAEF,CADC,CAGD,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DGpFA,kCHs
3582FA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CC/GF,2FDsHI,2DCpHJ,CAFA,2FD0HI,oECxHJ",sourcesContent:[`/* 3583 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3584 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3585 */ 3586 3587.ck.ck-button.ck-switchbutton { 3588 & .ck-button__toggle { 3589 display: block; 3590 3591 & .ck-button__toggle__inner { 3592 display: block; 3593 } 3594 } 3595} 3596`,`/* 3597 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3598 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3599 */ 3600 3601@import "../../../mixins/_rounded.css"; 3602@import "../../../mixins/_disabled.css"; 3603@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 3604 3605/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature 3606of the component, floatingâpoint numbers have been used which, for the default font size 3607(see: --ck-font-size-base), will generate simple integers. */ 3608:root { 3609 /* 34px at 13px font-size */ 3610 --ck-switch-button-toggle-width: 2.6153846154em; 3611 /* 14px at 13px font-size */ 3612 --ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px); 3613 --ck-switch-button-translation: calc( 3614 var(--ck-switch-button-toggle-width) - 3615 var(--ck-switch-button-toggle-inner-size) - 3616 2px /* Border */ 3617 ); 3618 --ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow); 3619} 3620 3621.ck.ck-button.ck-switchbutton { 3622 /* Unlike a regular button, the switch button text color and background should never change. 3623 * Changing toggle switch (background, outline) is enough to carry the information about the 3624 * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519) 3625 */ 3626 &, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active { 3627 color: inherit; 3628 background: transparent; 3629 } 3630 3631 & .ck-button__label { 3632 @mixin ck-dir ltr { 3633 /* Separate the label from the switch */ 3634 margin-right: calc(2 * var(--ck-spacing-large)); 3635 } 3636 3637 @mixin ck-dir rtl { 3638 /* Separate the label from the switch */ 3639 margin-left: calc(2 * var(--ck-spacing-large)); 3640 } 3641 } 3642 3643 & .ck-button__toggle { 3644 @mixin ck-rounded-corners; 3645 3646 @mixin ck-dir ltr { 3647 /* Make sure the toggle is always to the right as far as possible. */ 3648 margin-left: auto; 3649 } 3650 3651 @mixin ck-dir rtl { 3652 /* Make sure the toggle is always to the left as far as possible. */ 3653 margin-right: auto; 3654 } 3655 3656 /* Apply some smooth transition to the box-shadow and border. */ 3657 /* Gently animate the background color of the toggle switch */ 3658 transition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out; 3659 border: 1px solid transparent; 3660 width: var(--ck-switch-button-toggle-width); 3661 background: var(--ck-color-switch-button-off-background); 3662 3663 & .ck-button__toggle__inner { 3664 @mixin ck-rounded-corners { 3665 border-radius: calc(.5 * var(--ck-border-radius)); 3666 } 3667 3668 width: var(--ck-switch-button-toggle-inner-size); 3669 height: var(--ck-switch-button-toggle-inner-size); 3670 background: var(--ck-color-switch-button-inner-background); 3671 3672 /* Gently animate the inner part of the toggle switch */ 3673 transition: all 300ms ease; 3674 3675 @media (prefers-reduced-motion: reduce) { 3676 transition: none; 3677 } 3678 } 3679 3680 &:hover { 3681 background: var(--ck-color-switch-button-off-hover-background); 3682 3683 & .ck-button__toggle__inner { 3684 box-shadow: var(--ck-switch-button-inner-hover-shadow); 3685 } 3686 } 3687 } 3688 3689 &.ck-disabled .ck-button__toggle { 3690 @mixin ck-disabled; 3691 } 3692 3693 /* Overriding default .ck-button:focus styles + an outline around the toogle */ 3694 &:focus { 3695 border-color: transparent; 3696 outline: none; 3697 box-shadow: none; 3698 3699 & .ck-button__toggle { 3700 box-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow); 3701 outline-offset: 1px; 3702 outline: var(--ck-focus-ring); 3703 } 3704 } 3705 3706 /* stylelint-disable-next-line no-descending-specificity */ 3707 &.ck-on { 3708 & .ck-button__toggle { 3709 background: var(--ck-color-switch-button-on-background); 3710 3711 &:hover { 3712 background: var(--ck-color-switch-button-on-hover-background); 3713 } 3714 3715 & .ck-button__toggle__inner { 3716 /* 3717 * Move the toggle switch to the right. It will be animated. 3718 */ 3719 @mixin ck-dir ltr { 3720 transform: translateX( var( --ck-switch-button-translation ) ); 3721 } 3722 3723 @mixin ck-dir rtl { 3724 transform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) ); 3725 } 3726 } 3727 } 3728 } 3729} 3730`,`/* 3731 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3732 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3733 */ 3734 3735@define-mixin ck-dir $direction { 3736 [dir="$(direction)"] & { 3737 @mixin-content; 3738 } 3739} 3740`,`/* 3741 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3742 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3743 */ 3744 3745/** 3746 * Implements rounded corner interface for .ck-rounded-corners class. 3747 * 3748 * @see $ck-border-radius 3749 */ 3750@define-mixin ck-rounded-corners { 3751 border-radius: 0; 3752 3753 .ck-rounded-corners &, 3754 &.ck-rounded-corners { 3755 border-radius: var(--ck-border-radius); 3756 @mixin-content; 3757 } 3758} 3759`,`/* 3760 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3761 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3762 */ 3763 3764/** 3765 * A class which indicates that an element holding it is disabled. 3766 */ 3767@define-mixin ck-disabled { 3768 opacity: var(--ck-disabled-opacity); 3769} 3770`],sourceRoot:""}]);const w=f},25:(x,A,g)=>{g.d(A,{A:()=>w});
3770var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;color:inherit;font-weight:700;width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/collapsible/collapsible.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/collapsible/collapsible.css"],names:[],mappings:"AAMC,sEACC,YACD,CCHD,MACC,yDACD,CAGC,iCAGC,eAAgB,CAChB,aAAc,CAFd,eAAiB,CADjB,UAmBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,gFACD,CAGC,mEACC,wBACD",sourcesContent:[`/* 3771 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3772 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3773 */ 3774 3775.ck.ck-collapsible.ck-collapsible_collapsed { 3776 & > .ck-collapsible__children { 3777 display: none; 3778 } 3779} 3780`,`/* 3781 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3782 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3783 */ 3784 3785:root { 3786 --ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size)); 3787} 3788 3789.ck.ck-collapsible { 3790 & > .ck.ck-button { 3791 width: 100%; 3792 font-weight: bold; 3793 border-radius: 0; 3794 color: inherit; 3795 3796 &:focus { 3797 background: transparent; 3798 } 3799 3800 &:active, &:not(:focus), &:hover:not(:focus) { 3801 background: transparent; 3802 border-color: transparent; 3803 box-shadow: none; 3804 } 3805 3806 & > .ck-icon { 3807 margin-right: var(--ck-spacing-medium); 3808 width: var(--ck-collapsible-arrow-size); 3809 } 3810 } 3811 3812 & > .ck-collapsible__children { 3813 padding: var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large); 3814 } 3815 3816 &.ck-collapsible_collapsed { 3817 & > .ck.ck-button .ck-icon { 3818 transform: rotate(-90deg); 3819 } 3820 } 3821} 3822`],sourceRoot:""}]);const w=f},7317:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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,
3822CCzDD,CD4DA,uCAhDD,wBAiDE,eAkBF,CAjBC,CAEA,oCACC,YAAa,CACb,gBACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAGC,0CACC,aACD,CAIF,yBACC,oCACD",sourcesContent:[`/* 3823 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3824 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3825 */ 3826 3827.ck.ck-color-grid { 3828 display: grid; 3829} 3830`,`/* 3831 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3832 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3833 */ 3834 3835@import "../../../mixins/_rounded.css"; 3836@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css"; 3837 3838:root { 3839 --ck-color-grid-tile-size: 24px; 3840 3841 /* Not using global colors here because these may change but some colors in a pallette 3842 * require special treatment. For instance, this ensures no matter what the UI text color is, 3843 * the check icon will look good on the black color tile. */ 3844 --ck-color-color-grid-check-icon: hsl(212, 81%, 46%); 3845} 3846 3847.ck.ck-color-grid { 3848 grid-gap: 5px; 3849 padding: 8px; 3850} 3851 3852.ck.ck-color-grid__tile { 3853 transition: .2s ease box-shadow; 3854 3855 @mixin ck-media-default-colors { 3856 width: var(--ck-color-grid-tile-size); 3857 height: var(--ck-color-grid-tile-size); 3858 min-width: var(--ck-color-grid-tile-size); 3859 min-height: var(--ck-color-grid-tile-size); 3860 padding: 0; 3861 border: 0; 3862 3863 &.ck-on, 3864 &:focus:not( .ck-disabled ), 3865 &:hover:not( .ck-disabled ) { 3866 /* Disable the default .ck-button's border ring. */ 3867 border: 0; 3868 } 3869 3870 &.ck-color-selector__color-tile_bordered { 3871 box-shadow: 0 0 0 1px var(--ck-color-base-border); 3872 } 3873 3874 &.ck-on { 3875 box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text); 3876 } 3877 3878 &:focus:not( .ck-disabled ), 3879 &:hover:not( .ck-disabled ) { 3880 box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border); 3881 } 3882 } 3883 3884 /* 3885 * In high contrast mode, the colors are replaced with text labels. 3886 * See https://github.com/ckeditor/ckeditor5/issues/14907. 3887 */ 3888 @mixin ck-media-forced-colors { 3889 width: unset; 3890 height: unset; 3891 min-width: unset; 3892 min-height: unset; 3893 padding: 0 var(--ck-spacing-small); 3894 3895 & .ck-button__label { 3896 display: inline-block; 3897 } 3898 } 3899 3900 @media (prefers-reduced-motion: reduce) { 3901 transition: none; 3902 } 3903 3904 &.ck-disabled { 3905 cursor: unset; 3906 transition: unset; 3907 } 3908 3909 & .ck.ck-icon { 3910 display: none; 3911 color: var(--ck-color-color-grid-check-icon); 3912 } 3913 3914 &.ck-on { 3915 & .ck.ck-icon { 3916 display: block; 3917 } 3918 } 3919} 3920 3921.ck.ck-color-grid__label { 3922 padding: 0 var(--ck-spacing-standard); 3923} 3924`,`/* 3925 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3926 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3927 */ 3928 3929@define-mixin ck-media-forced-colors { 3930 @media (forced-colors: active) { 3931 & { 3932 @mixin-content; 3933 } 3934 } 3935} 3936 3937@define-mixin ck-media-default-colors { 3938 @media (forced-colors: none) { 3939 & { 3940 @mixin-content; 3941 } 3942 } 3943} 3944`],sourceRoot:""}]);const w=f},1905:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 3945 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3946 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3947 */ 3948 3949.color-picker-hex-input { 3950 width: max-content; 3951 3952 & .ck.ck-input { 3953 min-width: unset; 3954 } 3955} 3956 3957.ck.ck-color-picker__row { 3958 display: flex; 3959 flex-direction: row; 3960 flex-wrap: nowrap; 3961 justify-content: space-between; 3962 margin: var(--ck-spacing-large) 0 0; 3963 width: unset; 3964 3965 & .ck.ck-labeled-field-view { 3966 padding-top: unset; 3967 } 3968 3969 & .ck.ck-input-text { 3970 width: unset; 3971 } 3972 3973 & .ck-color-picker__hash-view { 3974 padding-top: var(--ck-spacing-tiny); 3975 padding-right: var(--ck-spacing-medium); 3976 } 3977} 3978`],sourceRoot:""}]);const w=f},6309:(x,A,g)=>{g.d(A,{A:()=>w});
3978var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{align-items:center;display:flex}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{justify-content:flex-start}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{display:flex;flex-direction:row;justify-content:space-around}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-cancel,.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-save{flex:1}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{width:100%}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-left:var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment label.ck.ck-color-grid__label{font-weight:unset}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker{padding:8px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker{height:100px;min-width:180px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation){border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue){border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius)}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue-pointer),.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation-pointer){height:15px;width:15px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{padding:0 8px 8px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorselector/colorselector.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorselector/colorselector.css"],names:[],mappings:"AAUE,oLAGC,kBAAmB,CADnB,YAMD,CCZD,wMDUG,0BCRH,CDeC,iFACC,YAAa,CACb,kBAAmB,CACnB,4BAMD,CAJC,oMAEC,MACD,CErBD,oLAEC,UACD,CAEA,0FAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,sGACC,gDACD,CDhBF,gHCoBI,uCDlBJ,CAFA,gHCwBI,sCDtBJ,CC2BC,6EACC,iBACD,CAKA,oEACC,WAoBD,CAlBC,sFACC,YAAa,CACb,eAeD,CAbC,wGACC,iEACD,CAEA,iGACC,iEACD,CAEA,yNAGC,WAAY,CADZ,UAED,CAIF,iFACC,iBACD",sourcesContent:[`/* 3979 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 3980 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 3981 */ 3982 3983@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 3984 3985.ck.ck-color-selector { 3986 /* View fragment with color grids. */ 3987 & .ck-color-grids-fragment { 3988 & .ck-button.ck-color-selector__remove-color, 3989 & .ck-button.ck-color-selector__color-picker { 3990 display: flex; 3991 align-items: center; 3992 3993 @mixin ck-dir rtl { 3994 justify-content: flex-start; 3995 } 3996 } 3997 } 3998 3999 /* View fragment with a color picker. */ 4000 & .ck-color-picker-fragment { 4001 & .ck.ck-color-selector_action-bar { 4002 display: flex; 4003 flex-direction: row; 4004 justify-content: space-around; 4005 4006 & .ck-button-save, 4007 & .ck-button-cancel { 4008 flex: 1 4009 } 4010 } 4011 } 4012} 4013`,`/* 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@define-mixin ck-dir $direction { 4019 [dir="$(direction)"] & { 4020 @mixin-content; 4021 } 4022} 4023`,`/* 4024 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4025 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4026 */ 4027 4028@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 4029 4030.ck.ck-color-selector { 4031 /* View fragment with color grids. */ 4032 & .ck-color-grids-fragment { 4033 & .ck-button.ck-color-selector__remove-color, 4034 & .ck-button.ck-color-selector__color-picker { 4035 width: 100%; 4036 } 4037 4038 & .ck-button.ck-color-selector__color-picker { 4039 padding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard); 4040 border-bottom-left-radius: 0; 4041 border-bottom-right-radius: 0; 4042 4043 &:not(:focus) { 4044 border-top: 1px solid var(--ck-color-base-border); 4045 } 4046 4047 & .ck.ck-icon { 4048 @mixin ck-dir ltr { 4049 margin-right: var(--ck-spacing-standard); 4050 } 4051 4052 @mixin ck-dir rtl { 4053 margin-left: var(--ck-spacing-standard); 4054 } 4055 } 4056 } 4057 4058 & label.ck.ck-color-grid__label { 4059 font-weight: unset; 4060 } 4061 } 4062 4063 /* View fragment with a color picker. */ 4064 & .ck-color-picker-fragment { 4065 & .ck.ck-color-picker { 4066 padding: 8px; 4067 4068 & .hex-color-picker { 4069 height: 100px; 4070 min-width: 180px; 4071 4072 &::part(saturation) { 4073 border-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0; 4074 } 4075 4076 &::part(hue) { 4077 border-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius); 4078 } 4079 4080 &::part(saturation-pointer), 4081 &::part(hue-pointer) { 4082 width: 15px; 4083 height: 15px; 4084 } 4085 } 4086 } 4087 4088 & .ck.ck-color-selector_action-bar { 4089 padding: 0 8px 8px; 4090 } 4091 } 4092} 4093`],sourceRoot:""}]);const w=f},9819:(x,A,g)=>{g.d(A,{A:()=>w});
4093var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-dialog-overlay{bottom:0;left:0;overscroll-behavior:none;position:fixed;right:0;top:0;user-select:none}.ck.ck-dialog-overlay.ck-dialog-overlay__transparent{animation:none;background:none;pointer-events:none}.ck.ck-dialog{overscroll-behavior:none;position:absolute;width:fit-content}.ck.ck-dialog .ck.ck-form__header{flex-shrink:0}.ck.ck-dialog:not(.ck-dialog_modal) .ck.ck-form__header .ck-form__header__label{cursor:grab}.ck.ck-dialog-overlay.ck-dialog-overlay__transparent .ck.ck-dialog{pointer-events:all}:root{--ck-dialog-overlay-background-color:rgba(0,0,0,.5);--ck-dialog-drop-shadow:0px 0px 6px 2px rgba(0,0,0,.15);--ck-dialog-max-width:100vw;--ck-dialog-max-height:90vh;--ck-color-dialog-background:var(--ck-color-base-background);--ck-color-dialog-form-header-border:var(--ck-color-base-border)}.ck.ck-dialog-overlay{animation:ck-dialog-fade-in .3s;background:var(--ck-dialog-overlay-background-color);z-index:var(--ck-z-dialog)}.ck.ck-dialog{border-radius:0;--ck-drop-shadow:var(--ck-dialog-drop-shadow);background:var(--ck-color-dialog-background);border:1px solid var(--ck-color-base-border);max-height:var(--ck-dialog-max-height);max-width:var(--ck-dialog-max-width);overscroll-behavior:contain}.ck-rounded-corners .ck.ck-dialog,.ck.ck-dialog.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dialog{box-shadow:var(--ck-drop-shadow),0 0}.ck.ck-dialog .ck.ck-form__header{border-bottom:1px solid var(--ck-color-dialog-form-header-border)}.ck-dialog-scroll-locked{overflow:hidden}@keyframes ck-dialog-fade-in{0%{background:transparent}to{background:var(--ck-dialog-overlay-background-color)}}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dialog/dialog.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dialog/dialog.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,sBAKC,QAAS,CACT,MAAO,CAJP,wBAAyB,CAEzB,cAAe,CAGf,OAAQ,CACR,KAAM,CAPN,gBAcD,CALC,qDAEC,cAAe,CACf,eAAgB,CAFhB,mBAGD,CAGD,cACC,wBAAyB,CAEzB,iBAAkB,CADlB,iBAiBD,CAdC,kCACC,aACD,CAIC,gFACC,WACD,CAGD,mEACC,kBACD,CC/BD,MACC,mDAA2D,CAC3D,uDAA8D,CAC9D,2BAA4B,CAC5B,2BAA4B,CAC5B,4DAA6D,CAC7D,gEACD,CAEA,sBACC,+BAAgC,CAChC,oDAAqD,CACrD,0BACD,CAEA,cCbC,eAAgB,CDiBhB,6CAA8C,CAE9C,4CAA6C,CAG7C,4CAA6C,CAF7C,sCAAuC,CACvC,oCAAqC,CAErC,2BAKD,CC1BC,mEAEC,qCAED,CDOD,cEfC,oCF8BD,CAHC,kCACC,iEACD,CAGD,yBACC,eACD,CAEA,6BACC,GACC,sBACD,CAEA,GACC,oDACD,CACD",sourcesContent:[`/* 4094 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4095 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4096 */ 4097 4098.ck.ck-dialog-overlay { 4099 user-select: none;
4100 overscroll-behavior: none; 4101 4102 position: fixed; 4103 bottom: 0; 4104 left: 0; 4105 right: 0; 4106 top: 0; 4107 4108 &.ck-dialog-overlay__transparent { 4109 pointer-events: none; 4110 animation: none; 4111 background: none; 4112 } 4113} 4114 4115.ck.ck-dialog { 4116 overscroll-behavior: none; 4117 width: fit-content; 4118 position: absolute; 4119 4120 & .ck.ck-form__header { 4121 flex-shrink: 0; 4122 } 4123 4124 /* Modals should not be draggable. */ 4125 &:not(.ck-dialog_modal) { 4126 & .ck.ck-form__header .ck-form__header__label { 4127 cursor: grab; 4128 } 4129 } 4130 4131 .ck.ck-dialog-overlay.ck-dialog-overlay__transparent & { 4132 pointer-events: all; 4133 } 4134} 4135`,`/* 4136 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4137 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4138 */ 4139 4140@import "../../../mixins/_rounded.css"; 4141@import "../../../mixins/_shadow.css"; 4142@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; 4143 4144:root { 4145 --ck-dialog-overlay-background-color: hsla( 0, 0%, 0%, .5 ); 4146 --ck-dialog-drop-shadow: 0px 0px 6px 2px hsl(0deg 0% 0% / 15%); 4147 --ck-dialog-max-width: 100vw; 4148 --ck-dialog-max-height: 90vh; 4149 --ck-color-dialog-background: var(--ck-color-base-background); 4150 --ck-color-dialog-form-header-border: var(--ck-color-base-border); 4151} 4152 4153.ck.ck-dialog-overlay { 4154 animation: ck-dialog-fade-in .3s; 4155 background: var(--ck-dialog-overlay-background-color); 4156 z-index: var(--ck-z-dialog); 4157} 4158 4159.ck.ck-dialog { 4160 @mixin ck-rounded-corners; 4161 @mixin ck-drop-shadow; 4162 4163 --ck-drop-shadow: var(--ck-dialog-drop-shadow); 4164 4165 background: var(--ck-color-dialog-background); 4166 max-height: var(--ck-dialog-max-height); 4167 max-width: var(--ck-dialog-max-width); 4168 border: 1px solid var(--ck-color-base-border); 4169 overscroll-behavior: contain; 4170 4171 & .ck.ck-form__header { 4172 border-bottom: 1px solid var(--ck-color-dialog-form-header-border); 4173 } 4174} 4175 4176.ck-dialog-scroll-locked { 4177 overflow: hidden; 4178} 4179 4180@keyframes ck-dialog-fade-in { 4181 0% { 4182 background: hsla( 0, 0%, 0%, 0 ); 4183 } 4184 4185 100% { 4186 background: var(--ck-dialog-overlay-background-color); 4187 } 4188} 4189`,`/* 4190 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4191 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4192 */ 4193 4194/** 4195 * Implements rounded corner interface for .ck-rounded-corners class. 4196 * 4197 * @see $ck-border-radius 4198 */ 4199@define-mixin ck-rounded-corners { 4200 border-radius: 0; 4201 4202 .ck-rounded-corners &, 4203 &.ck-rounded-corners { 4204 border-radius: var(--ck-border-radius); 4205 @mixin-content; 4206 } 4207} 4208`,`/* 4209 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4210 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4211 */ 4212 4213/** 4214 * A helper to combine multiple shadows. 4215 */ 4216@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 4217 box-shadow: $shadowA, $shadowB; 4218} 4219 4220/** 4221 * Gives an element a drop shadow so it looks like a floating panel. 4222 */ 4223@define-mixin ck-drop-shadow { 4224 @mixin ck-box-shadow var(--ck-drop-shadow); 4225} 4226`],sourceRoot:""}]);const w=f},9822:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 4227 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4228 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4229 */ 4230 4231.ck.ck-dialog { 4232 & .ck.ck-dialog__actions { 4233 display: flex; 4234 justify-content: flex-end; 4235 } 4236} 4237`,`/* 4238 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4239 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4240 */ 4241 4242.ck.ck-dialog { 4243 & .ck.ck-dialog__actions { 4244 padding: var(--ck-spacing-large); 4245 4246 & > * + * { 4247 margin-left: var(--ck-spacing-large); 4248 } 4249 } 4250} 4251`],sourceRoot:""}]);const w=f},8149:(x,A,g)=>{g.d(A,{A:()=>w});
4251var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x
vendor: 5,263 bytes, line 4251
4251.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-panel)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-panel) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);border-radius:0;bottom:0;min-width:100%}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}.ck.ck-dropdown__panel:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBAIC,oDAAqD,CACrD,sDAAuD,CGvFvD,eAAgB,CHwFhB,QAAS,CAGT,cAuBD,CGhHC,qFAEC,qCAED,CH4ED,uBEpFC,oCFoHD,CAnBC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD,CAEA,6BACC,YACD",sourcesContent:[
4251`/* 4252 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4253 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4254 */ 4255 4256:root { 4257 --ck-dropdown-max-width: 75vw; 4258} 4259 4260.ck.ck-dropdown { 4261 display: inline-block; 4262 position: relative; 4263 4264 & .ck-dropdown__arrow { 4265 pointer-events: none; 4266 z-index: var(--ck-z-default); 4267 } 4268 4269 /* Dropdown button should span horizontally, e.g. in vertical toolbars */ 4270 & .ck-button.ck-dropdown__button { 4271 width: 100%; 4272 } 4273 4274 & .ck-dropdown__panel { 4275 display: none; 4276 z-index: var(--ck-z-panel); 4277 max-width: var(--ck-dropdown-max-width); 4278 4279 position: absolute; 4280 4281 &.ck-dropdown__panel-visible { 4282 display: inline-block; 4283 } 4284 4285 &.ck-dropdown__panel_ne, 4286 &.ck-dropdown__panel_nw, 4287 &.ck-dropdown__panel_n, 4288 &.ck-dropdown__panel_nmw, 4289 &.ck-dropdown__panel_nme { 4290 bottom: 100%; 4291 } 4292 4293 &.ck-dropdown__panel_se, 4294 &.ck-dropdown__panel_sw, 4295 &.ck-dropdown__panel_smw, 4296 &.ck-dropdown__panel_sme, 4297 &.ck-dropdown__panel_s { 4298 /* 4299 * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays. 4300 * See https://github.com/ckeditor/ckeditor5/issues/1053. 4301 */ 4302 top: 100%; 4303 bottom: auto; 4304 } 4305 4306 &.ck-dropdown__panel_ne, 4307 &.ck-dropdown__panel_se { 4308 left: 0px; 4309 } 4310 4311 &.ck-dropdown__panel_nw, 4312 &.ck-dropdown__panel_sw { 4313 right: 0px; 4314 } 4315 4316 &.ck-dropdown__panel_s, 4317 &.ck-dropdown__panel_n { 4318 /* Positioning panels relative to the center of the button */ 4319 left: 50%; 4320 transform: translateX(-50%); 4321 } 4322 4323 &.ck-dropdown__panel_nmw, 4324 &.ck-dropdown__panel_smw { 4325 /* Positioning panels relative to the middle-west of the button */ 4326 left: 75%; 4327 transform: translateX(-75%); 4328 } 4329 4330 &.ck-dropdown__panel_nme, 4331 &.ck-dropdown__panel_sme { 4332 /* Positioning panels relative to the middle-east of the button */ 4333 left: 25%; 4334 transform: translateX(-25%); 4335 } 4336 } 4337} 4338 4339/* 4340 * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content. 4341 * See https://github.com/ckeditor/ckeditor5/issues/7874 4342 */ 4343.ck.ck-toolbar .ck-dropdown__panel { 4344 z-index: calc( var(--ck-z-panel) + 1 ); 4345} 4346`,`/* 4347 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4348 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4349 */ 4350 4351@import "../../../mixins/_rounded.css"; 4352@import "../../../mixins/_disabled.css"; 4353@import "../../../mixins/_shadow.css"; 4354@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 4355 4356:root { 4357 --ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size)); 4358} 4359 4360.ck.ck-dropdown { 4361 /* Enable font size inheritance, which allows fluid UI scaling. */ 4362 font-size: inherit; 4363 4364 & .ck-dropdown__arrow { 4365 width: var(--ck-dropdown-arrow-size); 4366 } 4367 4368 @mixin ck-dir ltr { 4369 & .ck-dropdown__arrow { 4370 right: var(--ck-spacing-standard); 4371 4372 /* A space to accommodate the triangle. */ 4373 margin-left: var(--ck-spacing-standard); 4374 } 4375 } 4376 4377 @mixin ck-dir rtl { 4378 & .ck-dropdown__arrow { 4379 left: var(--ck-spacing-standard); 4380 4381 /* A space to accommodate the triangle. */ 4382 margin-right: var(--ck-spacing-small); 4383 } 4384 } 4385 4386 &.ck-disabled .ck-dropdown__arrow { 4387 @mixin ck-disabled; 4388 } 4389 4390 & .ck-button.ck-dropdown__button { 4391 @mixin ck-dir ltr { 4392 &:not(.ck-button_with-text) { 4393 /* Make sure dropdowns with just an icon have the right inner spacing */ 4394 padding-left: var(--ck-spacing-small); 4395 } 4396 } 4397 4398 @mixin ck-dir rtl { 4399 &:not(.ck-button_with-text) { 4400 /* Make sure dropdowns with just an icon have the right inner spacing */ 4401 padding-right: var(--ck-spacing-small); 4402 } 4403 } 4404 4405 /* #23 */ 4406 & .ck-button__label { 4407 width: 7em; 4408 overflow: hidden; 4409 text-overflow: ellipsis; 4410 } 4411 4412 /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */ 4413 &.ck-disabled .ck-button__label { 4414 @mixin ck-disabled; 4415 } 4416 4417 /* https://github.com/ckeditor/ckeditor5/issues/816 */ 4418 &.ck-on { 4419 border-bottom-left-radius: 0; 4420 border-bottom-right-radius: 0; 4421 } 4422 4423 &.ck-dropdown__button_label-width_auto .ck-button__label { 4424 width: auto; 4425 } 4426 4427 /* https://github.com/ckeditor/ckeditor5/issues/8699 */ 4428 &.ck-off:active, 4429 &.ck-on:active { 4430 box-shadow: none; 4431 4432 &:focus {
4433 @mixin ck-box-shadow var(--ck-focus-outer-shadow); 4434 } 4435 } 4436 } 4437} 4438 4439.ck.ck-dropdown__panel { 4440 @mixin ck-rounded-corners; 4441 @mixin ck-drop-shadow; 4442 4443 background: var(--ck-color-dropdown-panel-background); 4444 border: 1px solid var(--ck-color-dropdown-panel-border); 4445 bottom: 0; 4446 4447 /* Make sure the panel is at least as wide as the drop-down's button. */ 4448 min-width: 100%; 4449 4450 /* Disabled corner border radius to be consistent with the .dropdown__button 4451 https://github.com/ckeditor/ckeditor5/issues/816 */ 4452 &.ck-dropdown__panel_se { 4453 border-top-left-radius: 0; 4454 } 4455 4456 &.ck-dropdown__panel_sw { 4457 border-top-right-radius: 0; 4458 } 4459 4460 &.ck-dropdown__panel_ne { 4461 border-bottom-left-radius: 0; 4462 } 4463 4464 &.ck-dropdown__panel_nw { 4465 border-bottom-right-radius: 0; 4466 } 4467 4468 &:focus { 4469 outline: none; 4470 } 4471} 4472`,`/* 4473 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4474 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4475 */ 4476 4477/** 4478 * A class which indicates that an element holding it is disabled. 4479 */ 4480@define-mixin ck-disabled { 4481 opacity: var(--ck-disabled-opacity); 4482} 4483`,`/* 4484 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4485 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4486 */ 4487 4488/** 4489 * A helper to combine multiple shadows. 4490 */ 4491@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 4492 box-shadow: $shadowA, $shadowB; 4493} 4494 4495/** 4496 * Gives an element a drop shadow so it looks like a floating panel. 4497 */ 4498@define-mixin ck-drop-shadow { 4499 @mixin ck-box-shadow var(--ck-drop-shadow); 4500} 4501`,`/* 4502 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4503 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4504 */ 4505 4506/** 4507 * Implements rounded corner interface for .ck-rounded-corners class. 4508 * 4509 * @see $ck-border-radius 4510 */ 4511@define-mixin ck-rounded-corners { 4512 border-radius: 0; 4513 4514 .ck-rounded-corners &, 4515 &.ck-rounded-corners { 4516 border-radius: var(--ck-border-radius); 4517 @mixin-content; 4518 } 4519} 4520`],sourceRoot:""}]);const w=f},3629:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-dropdown>.ck-dropdown__panel>.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown>.ck-dropdown__panel>.ck-list,.ck.ck-dropdown>.ck-dropdown__panel>.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:first-child>.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:first-child>.ck-button,.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:first-child>.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:last-child>.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:last-child>.ck-button,.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:last-child>.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CCnBC,iIAEC,qCAAsC,CDJtC,wBCMD,CDAC,mFCND,eDYC,CCVD,6MAEC,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBCFH,CDQC,kFCdD,eDmBC,CCjBD,2MAEC,qCAAsC,CDYpC,wBAAyB,CACzB,yBCXH",sourcesContent:[`/* 4521 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4522 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4523 */ 4524 4525@import "../../../mixins/_rounded.css"; 4526 4527.ck.ck-dropdown > .ck-dropdown__panel > .ck-list { 4528 /* Disabled radius of top-left border to be consistent with .dropdown__button 4529 https://github.com/ckeditor/ckeditor5/issues/816 */ 4530 @mixin ck-rounded-corners { 4531 border-top-left-radius: 0; 4532 } 4533 4534 /* Make sure the button belonging to the first/last child of the list goes well with the 4535 border radius of the entire panel. */ 4536 & .ck-list__item { 4537 &:first-child > .ck-button { 4538 @mixin ck-rounded-corners { 4539 border-top-left-radius: 0; 4540 border-bottom-left-radius: 0; 4541 border-bottom-right-radius: 0; 4542 } 4543 } 4544 4545 &:last-child > .ck-button { 4546 @mixin ck-rounded-corners { 4547 border-top-left-radius: 0; 4548 border-top-right-radius: 0; 4549 } 4550 } 4551 } 4552} 4553`,`/* 4554 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4555 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4556 */ 4557 4558/** 4559 * Implements rounded corner interface for .ck-rounded-corners class. 4560 * 4561 * @see $ck-border-radius 4562 */ 4563@define-mixin ck-rounded-corners { 4564 border-radius: 0; 4565 4566 .ck-rounded-corners &, 4567 &.ck-rounded-corners { 4568 border-radius: var(--ck-border-radius); 4569 @mixin-content; 4570 } 4571} 4572`],sourceRoot:""}]);const w=f},7218:(x,A,g)=>{g.d(A,{A:()=>w});
vendor: 6,827 bytes, lines 4572-4699
4572var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-dropdown-menu-list__nested-menu{display:block}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenu.css"],names:[],mappings:"AAKA,uCACC,aACD",sourcesContent:[`/* 4573 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4574 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4575 */ 4576 4577.ck.ck-dropdown-menu-list__nested-menu { 4578 display: block; 4579} 4580`],sourceRoot:""}]);const w=f},9554:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button{border-radius:0;padding:var(--ck-spacing-tiny) calc(var(--ck-spacing-standard)*2);width:100%}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button:focus{border-color:transparent;box-shadow:none}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button:focus:not(.ck-on){background:var(--ck-color-button-default-hover-background)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-button__label{flex-grow:1;overflow:hidden;text-overflow:ellipsis}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button.ck-disabled>.ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button.ck-icon-spacing:not(:has(.ck-button__icon))>.ck-button__label{margin-left:calc(var(--ck-icon-size) - var(--ck-spacing-small))}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{margin-right:calc(var(--ck-spacing-small)*-1);transform:rotate(-90deg)}[dir=rtl] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{margin-left:calc(var(--ck-spacing-small)*-1);transform:rotate(90deg)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button.ck-disabled>.ck-dropdown-menu-list__nested-menu__button__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=ltr] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAKA,kGACC,mBAAoB,CACpB,2BACD,CCIA,yDAGC,eAAgB,CADhB,iEAAoE,CADpE,UA2ED,CAvEC,+DACC,wBAAyB,CACzB,eAKD,CAHC,2EACC,0DACD,CAGD,2EACC,WAAY,CACZ,eAAgB,CAChB,sBACD,CAEA,uFCvBA,kCDyBA,CAGA,uHACC,+DACD,CAEA,4GACC,mCAeD,CEnDA,sHF0CE,6CAAgD,CAHhD,wBErCF,CAFA,sHFiDE,4CAA+C,CAH/C,uBE5CF,CFmDA,wHClDA,kCDoDA,CAGC,6FACC,oCACD,CAEA,sHAIC,sCAAuC,CAHvC,gCAID,CAIA,6FACC,qCACD,CAEA,sHACC,+BAAgC,CAGhC,oCACD",sourcesContent:[`/* 4581 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4582 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4583 */ 4584 4585.ck.ck-dropdown-menu-list__nested-menu__button > .ck-dropdown-menu-list__nested-menu__button__arrow { 4586 pointer-events: none; 4587 z-index: var(--ck-z-default); 4588} 4589`,`/* 4590 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4591 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4592 */ 4593 4594@import "../../../../mixins/_disabled.css"; 4595@import "../../../mixins/_button.css"; 4596@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 4597 4598/* 4599 * All menu buttons. 4600 */ 4601.ck.ck-button.ck-dropdown-menu-list__nested-menu__button { 4602 width: 100%; 4603 padding: var(--ck-spacing-tiny) calc(2 * var(--ck-spacing-standard)); 4604 border-radius: 0; 4605 4606 &:focus { 4607 border-color: transparent; 4608 box-shadow: none; 4609 4610 &:not(.ck-on) { 4611 background: var(--ck-color-button-default-hover-background); 4612 } 4613 } 4614 4615 & > .ck-button__label { 4616 flex-grow: 1; 4617 overflow: hidden; 4618 text-overflow: ellipsis; 4619 } 4620 4621 &.ck-disabled > .ck-button__label { 4622 @mixin ck-disabled; 4623 } 4624 4625 /* Spacing in buttons that miss the icon. */ 4626 &.ck-icon-spacing:not(:has(.ck-button__icon)) > .ck-button__label { 4627 margin-left: calc(var(--ck-icon-size) - var(--ck-spacing-small)); 4628 } 4629 4630 & > .ck-dropdown-menu-list__nested-menu__button__arrow { 4631 width: var(--ck-dropdown-arrow-size); 4632 4633 @mixin ck-dir ltr { 4634 transform: rotate(-90deg); 4635 4636 /* Nudge the arrow gently to the right because its center of gravity is to the left */ 4637 margin-right: calc(-1 * var(--ck-spacing-small)); 4638 } 4639 4640 @mixin ck-dir rtl { 4641 transform: rotate(90deg); 4642 4643 /* Nudge the arrow gently to the left because its center of gravity is to the right (after rotation). */ 4644 margin-left: calc(-1 * var(--ck-spacing-small)); 4645 } 4646 } 4647 4648 &.ck-disabled > .ck-dropdown-menu-list__nested-menu__button__arrow { 4649 @mixin ck-disabled; 4650 } 4651 4652 @mixin ck-dir ltr { 4653 &:not(.ck-button_with-text) { 4654 padding-left: var(--ck-spacing-small); 4655 } 4656 4657 & > .ck-dropdown-menu-list__nested-menu__button__arrow { 4658 right: var(--ck-spacing-standard); 4659 4660 /* A space to accommodate the triangle. */ 4661 margin-left: var(--ck-spacing-standard); 4662 } 4663 } 4664 4665 @mixin ck-dir rtl { 4666 &:not(.ck-button_with-text) { 4667 padding-right: var(--ck-spacing-small); 4668 } 4669 4670 & > .ck-dropdown-menu-list__nested-menu__button__arrow { 4671 left: var(--ck-spacing-standard); 4672 4673 /* A space to accommodate the triangle. */ 4674 margin-right: var(--ck-spacing-small); 4675 } 4676 } 4677} 4678`,`/* 4679 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4680 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4681 */ 4682 4683/** 4684 * A class which indicates that an element holding it is disabled. 4685 */ 4686@define-mixin ck-disabled { 4687 opacity: var(--ck-disabled-opacity); 4688} 4689`,`/* 4690 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4691 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4692 */ 4693 4694@define-mixin ck-dir $direction { 4695 [dir="$(direction)"] & { 4696 @mixin-content; 4697 } 4698} 4699`],sourceRoot:""}]);const w=f},2171:(x,A,g)=>{g.d(A,{A:()=>w});
4699var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,":root{--ck-dropdown-menu-menu-item-min-width:18em}.ck.ck-dropdown-menu-list__nested-menu__item{min-width:var(--ck-dropdown-menu-menu-item-min-width)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenulistitem.css"],names:[],mappings:"AAKA,MACC,2CACD,CAEA,6CACC,qDACD",sourcesContent:[`/* 4700 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4701 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4702 */ 4703 4704:root { 4705 --ck-dropdown-menu-menu-item-min-width: 18em; 4706} 4707 4708.ck.ck-dropdown-menu-list__nested-menu__item { 4709 min-width: var(--ck-dropdown-menu-menu-item-min-width); 4710} 4711`],sourceRoot:""}]);const w=f},4767:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck-button.ck-dropdown-menu-list__nested-menu__item__button{border-radius:0}.ck-button.ck-dropdown-menu-list__nested-menu__item__button>.ck-spinner-container,.ck-button.ck-dropdown-menu-list__nested-menu__item__button>.ck-spinner-container .ck-spinner{--ck-toolbar-spinner-size:20px}.ck-button.ck-dropdown-menu-list__nested-menu__item__button>.ck-spinner-container{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}.ck-button.ck-dropdown-menu-list__nested-menu__item__button:focus{border-color:transparent;box-shadow:none}.ck-button.ck-dropdown-menu-list__nested-menu__item__button:focus:not(.ck-on){background:var(--ck-color-button-default-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenulistitembutton.css"],names:[],mappings:"AAQA,4DACC,eA0BD,CAxBC,gLAGC,8BACD,CAEA,kFAEC,4CAA+C,CAC/C,oCACD,CAMA,kEACC,wBAAyB,CACzB,eAKD,CAHC,8EACC,0DACD",sourcesContent:[`/* 4712 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4713 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4714 */ 4715 4716/* 4717 * List item buttons. 4718 */ 4719.ck-button.ck-dropdown-menu-list__nested-menu__item__button { 4720 border-radius: 0; 4721 4722 & > .ck-spinner-container, 4723 & > .ck-spinner-container .ck-spinner { 4724 /* These styles correspond to .ck-icon so that the spinner seamlessly replaces the icon. */ 4725 --ck-toolbar-spinner-size: 20px; 4726 } 4727 4728 & > .ck-spinner-container { 4729 /* These margins are the same as for .ck-icon. */ 4730 margin-left: calc(-1 * var(--ck-spacing-small)); 4731 margin-right: var(--ck-spacing-small); 4732 } 4733 4734 /* 4735 * Hovered items automatically get focused. Default focus styles look odd 4736 * while moving across a huge list of items so let's get rid of them 4737 */ 4738 &:focus { 4739 border-color: transparent; 4740 box-shadow: none; 4741 4742 &:not(.ck-on) { 4743 background: var(--ck-color-button-default-hover-background); 4744 } 4745 } 4746} 4747`],sourceRoot:""}]);const w=f},3610:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel{max-height:314px;overflow-y:auto;position:absolute;z-index:calc(var(--ck-z-panel) + 1)}:root{--ck-dropdown-menu-menu-panel-max-width:75vw}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;height:fit-content;max-width:var(--ck-dropdown-menu-menu-panel-max-width)}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel:after,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel:before{display:none}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_es,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_se{border-top-left-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_sw,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_ws{border-top-right-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_en,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_ne{border-bottom-left-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_nw,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_wn{border-bottom-right-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenupanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenupanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,0DAEC,gBAAiB,CACjB,eAAgB,CAFhB,iBAAkB,CAGlB,mCACD,CCFA,MACC,4CACD,CAEA,0DAGC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CCRT,oCAA8B,CDS9B,kBAAmB,CACnB,sDAgCD,CA7BC,iIAEC,YACD,CAGA,4JAEC,wBACD,CAEA,4JAEC,yBACD,CAEA,4JAEC,2BACD,CAEA,4JAEC,4BACD,CAEA,gEACC,YACD",sourcesContent:[`/* 4748 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4749 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4750 */ 4751
4752.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel { 4753 position: absolute; 4754 max-height: 314px; /* With the default settings, this is equal to 10 menu items. */ 4755 overflow-y: auto; 4756 z-index: calc(var(--ck-z-panel) + 1); 4757} 4758`,`/* 4759 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4760 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4761 */ 4762 4763@import "../../../../mixins/_rounded.css"; 4764@import "../../../../mixins/_shadow.css"; 4765 4766:root { 4767 --ck-dropdown-menu-menu-panel-max-width: 75vw; 4768} 4769 4770.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel { 4771 @mixin ck-drop-shadow; 4772 4773 background: var(--ck-color-dropdown-panel-background); 4774 border: 1px solid var(--ck-color-dropdown-panel-border); 4775 bottom: 0; 4776 height: fit-content; 4777 max-width: var(--ck-dropdown-menu-menu-panel-max-width); 4778 4779 /* Reset balloon styling */ 4780 &::after, 4781 &::before { 4782 display: none; 4783 } 4784 4785 /* Corner border radius consistent with the button. */ 4786 &.ck-balloon-panel_es, 4787 &.ck-balloon-panel_se { 4788 border-top-left-radius: 0; 4789 } 4790 4791 &.ck-balloon-panel_ws, 4792 &.ck-balloon-panel_sw { 4793 border-top-right-radius: 0; 4794 } 4795 4796 &.ck-balloon-panel_en, 4797 &.ck-balloon-panel_ne { 4798 border-bottom-left-radius: 0; 4799 } 4800 4801 &.ck-balloon-panel_wn, 4802 &.ck-balloon-panel_nw { 4803 border-bottom-right-radius: 0; 4804 } 4805 4806 &:focus { 4807 outline: none; 4808 } 4809} 4810`,`/* 4811 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4812 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4813 */ 4814 4815/** 4816 * A helper to combine multiple shadows. 4817 */ 4818@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 4819 box-shadow: $shadowA, $shadowB; 4820} 4821 4822/** 4823 * Gives an element a drop shadow so it looks like a floating panel. 4824 */ 4825@define-mixin ck-drop-shadow { 4826 @mixin ck-box-shadow var(--ck-drop-shadow); 4827} 4828`],sourceRoot:""}]);const w=f},1792:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAQE,oIAGC,gCAAiC,CADjC,6BAED,CAEA,oIAGC,
4828+BAAgC,CADhC,4BAED,CAGD,0CAGC,eAiBD,CAfC,oDAGC,+BAAgC,CADhC,4BAED,CAEA,oDAGC,gCAAiC,CADjC,6BAED,CAEA,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAIA,uCCnDA,eD6DA,CC3DA,qHAEC,qCAED,CD+CE,qKACC,2BACD,CAEA,mKACC,4BACD,CAUD,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD",sourcesContent:[`/* 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.ck.ck-splitbutton { 4834 /* Enable font size inheritance, which allows fluid UI scaling. */ 4835 font-size: inherit; 4836 4837 & .ck-splitbutton__action:focus { 4838 z-index: calc(var(--ck-z-default) + 1); 4839 } 4840} 4841 4842`,`/* 4843 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4844 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4845 */ 4846 4847@import "../../../mixins/_rounded.css"; 4848 4849:root { 4850 --ck-color-split-button-hover-background: hsl(0, 0%, 92%); 4851 --ck-color-split-button-hover-border: hsl(0, 0%, 70%); 4852} 4853 4854.ck.ck-splitbutton { 4855 /* 4856 * Note: ck-rounded and ck-dir mixins don't go together (because they both use @nest). 4857 */ 4858 &:hover > .ck-splitbutton__action, 4859 &.ck-splitbutton_open > .ck-splitbutton__action { 4860 [dir="ltr"] & { 4861 /* Don't round the action button on the right side */ 4862 border-top-right-radius: unset; 4863 border-bottom-right-radius: unset; 4864 } 4865 4866 [dir="rtl"] & { 4867 /* Don't round the action button on the left side */ 4868 border-top-left-radius: unset; 4869 border-bottom-left-radius: unset; 4870 } 4871 } 4872 4873 & > .ck-splitbutton__arrow { 4874 /* It's a text-less button and since the icon is positioned absolutely in such situation, 4875 it must get some arbitrary min-width. */ 4876 min-width: unset; 4877 4878 [dir="ltr"] & { 4879 /* Don't round the arrow button on the left side */ 4880 border-top-left-radius: unset; 4881 border-bottom-left-radius: unset; 4882 } 4883 4884 [dir="rtl"] & { 4885 /* Don't round the arrow button on the right side */ 4886 border-top-right-radius: unset; 4887 border-bottom-right-radius: unset; 4888 } 4889 4890 & svg { 4891 width: var(--ck-dropdown-arrow-size); 4892 } 4893 } 4894 4895 /* Make sure the divider stretches 100% height of the button 4896 https://github.com/ckeditor/ckeditor5/issues/10936 */ 4897 & > .ck-splitbutton__arrow:not(:focus) { 4898 border-top-width: 0px; 4899 border-bottom-width: 0px; 4900 } 4901 4902 /* Don't round the bottom left and right corners of the buttons when "open" 4903 https://github.com/ckeditor/ckeditor5/issues/816 */ 4904 &.ck-splitbutton_open { 4905 @mixin ck-rounded-corners { 4906 & > .ck-splitbutton__action { 4907 border-bottom-left-radius: 0; 4908 } 4909 4910 & > .ck-splitbutton__arrow { 4911 border-bottom-right-radius: 0; 4912 } 4913 } 4914 } 4915 4916 /* When the split button is "open" (the arrow is on) or being hovered, it should get some styling 4917 as a whole. The background of both buttons should stand out and there should be a visual 4918 separation between both buttons. */ 4919 &.ck-splitbutton_open, 4920 &:hover { 4921 /* When the split button hovered as a whole, not as individual buttons. */ 4922 & > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) { 4923 background: var(--ck-color-split-button-hover-background); 4924 } 4925 4926 /* Splitbutton separator needs to be set with the ::after pseudoselector 4927 to display properly the borders on focus */ 4928 & > .ck-splitbutton__arrow:not(.ck-disabled)::after { 4929 content: ''; 4930 position: absolute; 4931 width: 1px; 4932 height: 100%; 4933 background-color: var(--ck-color-split-button-hover-border); 4934 } 4935 4936 /* Make sure the divider between the buttons looks fine when the button is focused */ 4937 & > .ck-splitbutton__arrow:focus::after { 4938 --ck-color-split-button-hover-border: var(--ck-color-focus-border); 4939 } 4940 4941 [dir="ltr"] & { 4942 & > .ck-splitbutton__arrow:not(.ck-disabled)::after { 4943 left: -1px; 4944 } 4945 } 4946 4947 [dir="rtl"] & { 4948 & > .ck-splitbutton__arrow:not(.ck-disabled)::after { 4949 right: -1px; 4950 } 4951 } 4952 } 4953} 4954`,`/* 4955 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4956 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4957 */ 4958 4959/** 4960 * Implements rounded corner interface for .ck-rounded-corners class. 4961 * 4962 * @see $ck-border-radius 4963 */ 4964@define-mixin ck-rounded-corners { 4965 border-radius: 0; 4966 4967 .ck-rounded-corners &, 4968 &.ck-rounded-corners { 4969 border-radius: var(--ck-border-radius); 4970 @mixin-content; 4971 } 4972} 4973`],sourceRoot:""}]);const w=f},1666:(x,A,g)=>{g.d(A,{A:()=>w});
4973var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 4974 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4975 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4976 */ 4977 4978:root { 4979 --ck-toolbar-dropdown-max-width: 60vw; 4980} 4981 4982.ck.ck-toolbar-dropdown > .ck-dropdown__panel { 4983 /* https://github.com/ckeditor/ckeditor5/issues/5586 */ 4984 width: max-content; 4985 max-width: var(--ck-toolbar-dropdown-max-width); 4986 4987 & .ck-button { 4988 &:focus { 4989 z-index: calc(var(--ck-z-default) + 1); 4990 } 4991 } 4992} 4993`,`/* 4994 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 4995 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 4996 */ 4997 4998.ck.ck-toolbar-dropdown .ck-toolbar { 4999 border: 0; 5000} 5001`],sourceRoot:""}]);const w=f},8527:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,":root{--ck-accessibility-help-dialog-max-width:600px;--ck-accessibility-help-dialog-max-height:400px;--ck-accessibility-help-dialog-border-color:#ccced1;--ck-accessibility-help-dialog-code-background-color:#ededed;--ck-accessibility-help-dialog-kbd-shadow-color:#9c9c9c}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content{border:1px solid transparent;max-height:var(--ck-accessibility-help-dialog-max-height);max-width:var(--ck-accessibility-help-dialog-max-width);overflow:auto;padding:var(--ck-spacing-large);user-select:text}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content *{white-space:normal}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content .ck-label{display:none}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h3{font-size:1.2em;font-weight:700}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h4{font-size:1em;font-weight:700}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h3,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h4,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content p,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content table{margin:1em 0}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl{border-bottom:none;border-top:1px solid var(--ck-accessibility-help-dialog-border-color);display:grid;grid-template-columns:2fr 1fr}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dd,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dt{border-bottom:1px solid var(--ck-accessibility-help-dialog-border-color);padding:.4em 0}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dt{grid-column-start:1}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dd{grid-column-start:2;text-align:right}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content code,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd{background:var(--ck-accessibility-help-dialog-code-background-color);border-radius:2px;display:inline-block;font-size:.9em;line-height:1;padding:.4em;text-align:center;vertical-align:middle}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content code{font-family:monospace}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd{box-shadow:0 1px 1px var(--ck-accessibility-help-dialog-kbd-shadow-color);margin:0 1px;min-width:1.8em}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd+kbd{margin-left:2px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/accessibilityhelp.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAQA,MACC,8CAA+C,CAC/C,+CAAgD,CAChD,mDAA8D,CAC9D,4DAAyE,CACzE,uDACD,CAEA,wEAOC,4BAA6B,CAJ7B,yDAA0D,CAD1D,uDAAwD,CAExD,aAAc,CAHd,+BAAgC,CAIhC,gBAgFD,CA5EC,8ECdA,2BAA2B,CCF3B,2CAA8B,CDC9B,YDkBA,CAEA,0EACC,kBACD,CAGA,kFACC,YACD,CAEA,2EAEC,eAAgB,CADhB,eAED,CAEA,2EAEC,aAAc,CADd,eAED,CAEA,8SAIC,YACD,CAEA,2EAIC,kBAAmB,CADnB,qEAAsE,CAFtE,YAAa,CACb,6BAiBD,CAbC,4JACC,wEAAyE,CACzE,cACD,CAEA,8EACC,mBACD,CAEA,8EACC,mBAAoB,CACpB,gBACD,CAGD,yJAEC,oEAAqE,CAIrE,iBAAkB,CALlB,oBAAqB,CAOrB,cAAe,CAHf,aAAc,CAFd,YAAa,CAIb,iBAAkB,CAHlB,qBAKD,CAEA,6EACC,qBAC
5001D,CAEA,4EAEC,yEAA4E,CAC5E,YAAa,CAFb,eAOD,CAHC,gFACC,eACD",sourcesContent:[`/* 5002 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5003 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5004 */ 5005 5006@import "../../../mixins/_focus.css"; 5007@import "../../../mixins/_shadow.css"; 5008 5009:root { 5010 --ck-accessibility-help-dialog-max-width: 600px; 5011 --ck-accessibility-help-dialog-max-height: 400px; 5012 --ck-accessibility-help-dialog-border-color: hsl(220, 6%, 81%); 5013 --ck-accessibility-help-dialog-code-background-color: hsl(0deg 0% 92.94%); 5014 --ck-accessibility-help-dialog-kbd-shadow-color: hsl(0deg 0% 61%); 5015} 5016 5017.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content { 5018 padding: var(--ck-spacing-large); 5019 max-width: var(--ck-accessibility-help-dialog-max-width); 5020 max-height: var(--ck-accessibility-help-dialog-max-height); 5021 overflow: auto; 5022 user-select: text; 5023 5024 border: 1px solid transparent; 5025 5026 &:focus { 5027 @mixin ck-focus-ring; 5028 @mixin ck-box-shadow var(--ck-focus-outer-shadow); 5029 } 5030 5031 * { 5032 white-space: normal; 5033 } 5034 5035 /* Hide the main label of the content container. */ 5036 & .ck-label { 5037 display: none; 5038 } 5039 5040 & h3 { 5041 font-weight: bold; 5042 font-size: 1.2em; 5043 } 5044 5045 & h4 { 5046 font-weight: bold; 5047 font-size: 1em; 5048 } 5049 5050 & p, 5051 & h3, 5052 & h4, 5053 & table { 5054 margin: 1em 0; 5055 } 5056 5057 & dl { 5058 display: grid; 5059 grid-template-columns: 2fr 1fr; 5060 border-top: 1px solid var(--ck-accessibility-help-dialog-border-color); 5061 border-bottom: none; 5062 5063 & dt, & dd { 5064 border-bottom: 1px solid var(--ck-accessibility-help-dialog-border-color); 5065 padding: .4em 0; 5066 } 5067 5068 & dt { 5069 grid-column-start: 1; 5070 } 5071 5072 & dd { 5073 grid-column-start: 2; 5074 text-align: right; 5075 } 5076 } 5077 5078 & kbd, & code { 5079 display: inline-block; 5080 background: var(--ck-accessibility-help-dialog-code-background-color); 5081 padding: .4em; 5082 vertical-align: middle; 5083 line-height: 1; 5084 border-radius: 2px; 5085 text-align: center; 5086 font-size: .9em; 5087 } 5088 5089 & code { 5090 font-family: monospace; 5091 } 5092 5093 & kbd { 5094 min-width: 1.8em; 5095 box-shadow: 0px 1px 1px var(--ck-accessibility-help-dialog-kbd-shadow-color); 5096 margin: 0 1px; 5097 5098 & + kbd { 5099 margin-left: 2px; 5100 } 5101 } 5102} 5103 5104`,`/* 5105 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5106 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5107 */ 5108 5109/** 5110 * A visual style of focused element's border. 5111 */ 5112@define-mixin ck-focus-ring { 5113 /* Disable native outline. */ 5114 outline: none; 5115 border: var(--ck-focus-ring) 5116} 5117`,`/* 5118 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5119 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5120 */ 5121 5122/** 5123 * A helper to combine multiple shadows. 5124 */ 5125@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 5126 box-shadow: $shadowA, $shadowB; 5127} 5128 5129/** 5130 * Gives an element a drop shadow so it looks like a floating panel. 5131 */ 5132@define-mixin ck-drop-shadow { 5133 @mixin ck-box-shadow var(--ck-drop-shadow); 5134} 5135`],sourceRoot:""}]);const w=f},1185:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CCTC,yJAEC,qCAED,CDCA,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CA
5135KC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,oDACD,CAIA,gEACC,iDACD",sourcesContent:[`/* 5136 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5137 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5138 */ 5139 5140@import "../../../mixins/_rounded.css"; 5141@import "../../../mixins/_disabled.css"; 5142@import "../../../mixins/_shadow.css"; 5143@import "../../../mixins/_focus.css"; 5144@import "../../mixins/_button.css"; 5145 5146:root { 5147 --ck-color-editable-blur-selection: hsl(0, 0%, 85%); 5148} 5149 5150.ck.ck-editor__editable:not(.ck-editor__nested-editable) { 5151 @mixin ck-rounded-corners; 5152 5153 &.ck-focused { 5154 @mixin ck-focus-ring; 5155 @mixin ck-box-shadow var(--ck-inner-shadow); 5156 } 5157} 5158 5159.ck.ck-editor__editable_inline { 5160 overflow: auto; 5161 padding: 0 var(--ck-spacing-standard); 5162 border: 1px solid transparent; 5163 5164 &[dir="ltr"] { 5165 text-align: left; 5166 } 5167 5168 &[dir="rtl"] { 5169 text-align: right; 5170 } 5171 5172 /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */ 5173 & > *:first-child { 5174 margin-top: var(--ck-spacing-large); 5175 } 5176 5177 /* https://github.com/ckeditor/ckeditor5/issues/847 */ 5178 & > *:last-child { 5179 /* 5180 * This value should match with the default margins of the block elements (like .media or .image) 5181 * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825). 5182 */ 5183 margin-bottom: var(--ck-spacing-large); 5184 } 5185 5186 /* https://github.com/ckeditor/ckeditor5/issues/6517 */ 5187 &.ck-blurred ::selection { 5188 background: var(--ck-color-editable-blur-selection); 5189 } 5190} 5191 5192/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */ 5193.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] { 5194 &::after { 5195 border-bottom-color: var(--ck-color-panel-background); 5196 } 5197} 5198 5199.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] { 5200 &::after { 5201 border-top-color: var(--ck-color-panel-background); 5202 } 5203} 5204`,`/* 5205 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5206 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5207 */ 5208 5209/** 5210 * Implements rounded corner interface for .ck-rounded-corners class. 5211 * 5212 * @see $ck-border-radius 5213 */ 5214@define-mixin ck-rounded-corners { 5215 border-radius: 0; 5216 5217 .ck-rounded-corners &, 5218 &.ck-rounded-corners { 5219 border-radius: var(--ck-border-radius); 5220 @mixin-content; 5221 } 5222} 5223`,`/* 5224 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5225 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5226 */ 5227 5228/** 5229 * A visual style of focused element's border. 5230 */ 5231@define-mixin ck-focus-ring { 5232 /* Disable native outline. */ 5233 outline: none; 5234 border: var(--ck-focus-ring) 5235} 5236`,`/* 5237 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5238 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5239 */ 5240 5241/** 5242 * A helper to combine multiple shadows. 5243 */ 5244@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 5245 box-shadow: $shadowA, $shadowB; 5246} 5247 5248/** 5249 * Gives an element a drop shadow so it looks like a floating panel. 5250 */ 5251@define-mixin ck-drop-shadow { 5252 @mixin ck-box-shadow var(--ck-drop-shadow); 5253} 5254`],sourceRoot:""}]);const w=f},7913:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__header h2.ck-form__header__label{flex-grow:1}:root{--ck-form-header-height:44px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}[dir=ltr] .ck.ck-form__header>.ck-icon{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-form__header>.ck-icon{margin-left:var(--ck-spacing-medium)}.ck.ck-form__header .ck-form__header__label{--ck-font-size-base:15px;font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BAKD,CAHC,8CACC,WACD,CCPD,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAmBD,CCzBC,uCDaE,qCCXF,CAFA,uCDiBE,oCCfF,CDmBA,4CACC,wBAAyB,CACzB,eACD",sourcesContent:[`/* 5255 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5256 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5257 */ 5258
5259.ck.ck-form__header { 5260 display: flex; 5261 flex-direction: row; 5262 flex-wrap: nowrap; 5263 align-items: center; 5264 justify-content: space-between; 5265 5266 & h2.ck-form__header__label { 5267 flex-grow: 1; 5268 } 5269} 5270`,`/* 5271 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5272 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5273 */ 5274 5275@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 5276 5277:root { 5278 --ck-form-header-height: 44px; 5279} 5280 5281.ck.ck-form__header { 5282 padding: var(--ck-spacing-small) var(--ck-spacing-large); 5283 height: var(--ck-form-header-height); 5284 line-height: var(--ck-form-header-height); 5285 border-bottom: 1px solid var(--ck-color-base-border); 5286 5287 & > .ck-icon { 5288 @mixin ck-dir ltr { 5289 margin-right: var(--ck-spacing-medium); 5290 } 5291 5292 @mixin ck-dir rtl { 5293 margin-left: var(--ck-spacing-medium); 5294 } 5295 } 5296 5297 & .ck-form__header__label { 5298 --ck-font-size-base: 15px; 5299 font-weight: bold; 5300 } 5301} 5302`,`/* 5303 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5304 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5305 */ 5306 5307@define-mixin ck-dir $direction { 5308 [dir="$(direction)"] & { 5309 @mixin-content; 5310 } 5311} 5312`],sourceRoot:""}]);const w=f},9529:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 5313 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5314 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5315 */ 5316 5317.ck.ck-highlighted-text mark { 5318 background: var(--ck-color-highlight-background); 5319 vertical-align: initial; 5320 font-weight: inherit; 5321 line-height: inherit; 5322 font-size: inherit; 5323} 5324`],sourceRoot:""}]);const w=f},7621:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal));--ck-icon-font-size:.8333350694em}.ck.ck-icon{font-size:var(--ck-icon-font-size);height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/icon/icon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EAA6E,CAC7E,iCACD,CAEA,YAKC,kCAAmC,CAHnC,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:[`/* 5325 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5326 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5327 */ 5328 5329.ck.ck-icon { 5330 vertical-align: middle; 5331} 5332`,`/* 5333 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5334 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5335 */ 5336 5337:root { 5338 --ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal)); 5339 --ck-icon-font-size: .8333350694em; 5340} 5341 5342.ck.ck-icon { 5343 width: var(--ck-icon-size); 5344 height: var(--ck-icon-size); 5345 5346 /* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */ 5347 font-size: var(--ck-icon-font-size); 5348 5349 /* Inherit cursor style (#5). */ 5350 cursor: inherit; 5351 5352 /* This will prevent blurry icons on Firefox. See #340. */ 5353 will-change: transform; 5354 5355 & * { 5356 /* Inherit cursor style (#5). */ 5357 cursor: inherit; 5358 } 5359 5360 /* Allows dynamic coloring of an icon by inheriting its color from the parent. */ 5361 &.ck-icon_inherit-color { 5362 color: inherit; 5363 5364 & * { 5365 color: inherit; 5366 5367 &:not([fill]) { 5368 /* Needed by FF. */ 5369 fill: currentColor; 5370 } 5371 } 5372 } 5373} 5374`],sourceRoot:""}]);const w=f},253:(x,A,g)=>{g.d(A,{A:()=>w});
5374var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);border-radius:0;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}@media (prefers-reduced-motion:reduce){.ck.ck-input{transition:none}}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}@media (prefers-reduced-motion:reduce){.ck.ck-input.ck-error{animation:none}}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aAGC,2CAA4C,CAC5C,6CAA8C,CCT9C,eAAgB,CDchB,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DAkCD,CCjDC,iEAEC,qCAED,CDaA,uCAdD,aAeE,eA+BF,CA9BC,CAEA,mBEvBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YF2BA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BGnCD,oDHsCC,CAGD,sBAEC,sCAAuC,CADvC,+CAUD,CAPC,uCAJD,sBAKE,cAMF,CALC,CAEA,4BGjDD,iDHmDC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:[`/* 5375 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5376 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5377 */ 5378 5379@import "../../../mixins/_rounded.css"; 5380@import "../../../mixins/_focus.css"; 5381@import "../../../mixins/_shadow.css"; 5382 5383:root { 5384 --ck-input-width: 18em; 5385 5386 /* Backward compatibility. */ 5387 --ck-input-text-width: var(--ck-input-width); 5388} 5389 5390.ck.ck-input { 5391 @mixin ck-rounded-corners; 5392 5393 background: var(--ck-color-input-background); 5394 border: 1px solid var(--ck-color-input-border); 5395 padding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium); 5396 min-width: var(--ck-input-width); 5397 5398 /* This is important to stay of the same height as surrounding buttons */ 5399 min-height: var(--ck-ui-component-min-height); 5400 5401 /* Apply some smooth transition to the box-shadow and border. */ 5402 transition: box-shadow .1s ease-in-out, border .1s ease-in-out; 5403 5404 @media (prefers-reduced-motion: reduce) { 5405 transition: none; 5406 } 5407 5408 &:focus { 5409 @mixin ck-focus-ring; 5410 @mixin ck-box-shadow var(--ck-focus-outer-shadow); 5411 } 5412 5413 &[readonly] { 5414 border: 1px solid var(--ck-color-input-disabled-border); 5415 background: var(--ck-color-input-disabled-background); 5416 color: var(--ck-color-input-disabled-text); 5417 5418 &:focus { 5419 /* The read-only input should have a slightly less visible shadow when focused. */ 5420 @mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow); 5421 } 5422 } 5423 5424 &.ck-error { 5425 border-color: var(--ck-color-input-error-border); 5426 animation: ck-input-shake .3s ease both; 5427 5428 @media (prefers-reduced-motion: reduce) { 5429 animation: none; 5430 } 5431 5432 &:focus { 5433 @mixin ck-box-shadow var(--ck-focus-error-outer-shadow); 5434 } 5435 } 5436} 5437 5438@keyframes ck-input-shake { 5439 20% { 5440 transform: translateX(-2px); 5441 } 5442 5443 40% { 5444 transform: translateX(2px); 5445 } 5446 5447 60% { 5448 transform: translateX(-1px); 5449 } 5450 5451 80% { 5452 transform: translateX(1px); 5453 } 5454} 5455`,`/* 5456 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5457 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5458 */ 5459 5460/** 5461 * Implements rounded corner interface for .ck-rounded-corners class. 5462 * 5463 * @see $ck-border-radius 5464 */ 5465@define-mixin ck-rounded-corners { 5466 border-radius: 0; 5467 5468 .ck-rounded-corners &, 5469 &.ck-rounded-corners { 5470 border-radius: var(--ck-border-radius); 5471 @mixin-content; 5472 } 5473} 5474`,`/* 5475 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5476 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5477 */ 5478 5479/** 5480 * A visual style of focused element's border. 5481 */ 5482@define-mixin ck-focus-ring { 5483 /* Disable native outline. */ 5484 outline: none; 5485 border: var(--ck-focus-ring) 5486} 5487`,`/* 5488 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5489 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5490 */ 5491 5492/** 5493 * A helper to combine multiple shadows. 5494 */
5495@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 5496 box-shadow: $shadowA, $shadowB; 5497} 5498 5499/** 5500 * Gives an element a drop shadow so it looks like a floating panel. 5501 */ 5502@define-mixin ck-drop-shadow { 5503 @mixin ck-box-shadow var(--ck-drop-shadow); 5504} 5505`],sourceRoot:""}]);const w=f},7801:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 5506 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5507 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5508 */ 5509 5510.ck.ck-label { 5511 display: block; 5512} 5513 5514.ck.ck-voice-label { 5515 display: none; 5516} 5517`,`/* 5518 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5519 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5520 */ 5521 5522.ck.ck-label { 5523 font-weight: bold; 5524} 5525`],sourceRoot:""}]);const w=f},4962:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;top:0;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0;transform:translate(calc(var(--ck-spacing-medium)*-1),-6px) scale(.75);transform-origin:100% 0}@media (prefers-reduced-motion:reduce){.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transition:none}}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>
5525.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eDmHD,CCjHC,2FAEC,qCAED,CDEA,mEACC,UAwCD,CAtCC,gFAkBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAH9C,mBAAoB,CAQpB,sBAAuB,CAvBvB,KAAQ,CA4BR,+JAQD,CErDD,0FFoBG,MAAS,CAGT,6DAA+D,CAF/D,oBEnBH,CAFA,0FF2BG,OAAU,CAEV,sEAA0E,CAD1E,uBE1BH,CFgDE,uCAlCD,gFAmCE,eAEF,CADC,CASD,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,uWAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CEtGA,2XF0FE,+HExFF,CAFA,2XF8FE,wIE5FF,CFyGA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:[`/* 5526 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5527 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5528 */ 5529 5530.ck.ck-labeled-field-view { 5531 & > .ck.ck-labeled-field-view__input-wrapper { 5532 display: flex; 5533 position: relative; 5534 } 5535 5536 & .ck.ck-label { 5537 display: block; 5538 position: absolute; 5539 } 5540} 5541`,`/* 5542 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5543 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5544 */ 5545 5546@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 5547@import "../../../mixins/_rounded.css"; 5548 5549:root { 5550 --ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95); 5551 --ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium); 5552 --ck-labeled-field-label-default-position-x: var(--ck-spacing-medium); 5553 --ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base)); 5554 --ck-color-labeled-field-label-background: var(--ck-color-base-background); 5555} 5556 5557.ck.ck-labeled-field-view { 5558 @mixin ck-rounded-corners; 5559 5560 & > .ck.ck-labeled-field-view__input-wrapper { 5561 width: 100%; 5562 5563 & > .ck.ck-label { 5564 top: 0px; 5565 5566 @mixin ck-dir ltr { 5567 left: 0px; 5568 transform-origin: 0 0; 5569 /* By default, display the label scaled down above the field. */ 5570 transform: translate(var(--ck-spacing-medium), -6px) scale(.75); 5571 } 5572 5573 @mixin ck-dir rtl { 5574 right: 0px; 5575 transform-origin: 100% 0; 5576 transform: translate(calc(-1 * var(--ck-spacing-medium)), -6px) scale(.75); 5577 } 5578 5579 pointer-events: none; 5580 5581 background: var(--ck-color-labeled-field-label-background); 5582 padding: 0 calc(.5 * var(--ck-font-size-tiny)); 5583 line-height: initial; 5584 font-weight: normal; 5585 5586 /* Prevent overflow when the label is longer than the input */ 5587 text-overflow: ellipsis; 5588 overflow: hidden; 5589 5590 max-width: 100%; 5591 5592 transition: 5593 transform var(--ck-labeled-field-view-transition), 5594 padding var(--ck-labeled-field-view-transition), 5595 background var(--ck-labeled-field-view-transition); 5596 5597 @media (prefers-reduced-motion: reduce) { 5598 transition: none; 5599 } 5600 } 5601 } 5602 5603 &.ck-error { 5604 & > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label { 5605 color: var(--ck-color-base-error); 5606 } 5607 5608 & .ck-input:not([readonly]) + .ck.ck-label { 5609 color: var(--ck-color-base-error); 5610 } 5611 } 5612 5613 & .ck-labeled-field-view__status { 5614 font-size: var(--ck-font-size-small); 5615 margin-top: var(--ck-spacing-small); 5616 5617 /* Let the info wrap to the next line to avoid stretching the layout horizontally. 5618 The status could be very long. */ 5619 white-space: normal; 5620 5621 &.ck-labeled-field-view__status_error { 5622 color: var(--ck-color-base-error); 5623 } 5624 } 5625
5626 /* Disabled fields and fields that have no focus should fade out. */ 5627 &.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label, 5628 &.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label { 5629 color: var(--ck-color-input-disabled-text); 5630 } 5631 5632 /* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */ 5633 /* stylelint-disable-next-line no-descending-specificity */ 5634 &.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label, 5635 &.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 { 5636 @mixin ck-dir ltr { 5637 transform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1); 5638 } 5639 5640 @mixin ck-dir rtl { 5641 transform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1); 5642 } 5643 5644 /* Compensate for the default translate position. */ 5645 max-width: calc(var(--ck-labeled-field-empty-unfocused-max-width)); 5646 5647 background: transparent; 5648 padding: 0; 5649 } 5650 5651 /*------ DropdownView integration ----------------------------------------------------------------------------------- */ 5652 5653 /* Make sure dropdown' background color in any of dropdown's state does not collide with labeled field. */ 5654 & > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button { 5655 background: transparent; 5656 } 5657 5658 /* When the dropdown is "empty", the labeled field label replaces its label. */ 5659 &.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label { 5660 opacity: 0; 5661 } 5662 5663 /* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */ 5664 &.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 { 5665 max-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard)); 5666 } 5667} 5668`,`/* 5669 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5670 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5671 */ 5672 5673/** 5674 * Implements rounded corner interface for .ck-rounded-corners class. 5675 * 5676 * @see $ck-border-radius 5677 */ 5678@define-mixin ck-rounded-corners { 5679 border-radius: 0; 5680 5681 .ck-rounded-corners &, 5682 &.ck-rounded-corners { 5683 border-radius: var(--ck-border-radius); 5684 @mixin-content; 5685 } 5686} 5687`,`/* 5688 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5689 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5690 */ 5691 5692@define-mixin ck-dir $direction { 5693 [dir="$(direction)"] & { 5694 @mixin-content; 5695 } 5696} 5697`],sourceRoot:""}]);const w=f},5199:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{background:var(--ck-color-list-background);border-radius:0;list-style-type:none;padding:var(--ck-spacing-small) 0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list__item{cursor:default;min-width:15em}.ck.ck-list__item>.ck-button:not(.ck-list-item-button){border-radius:0;min-height:unset;padding:var(--ck-spacing-tiny) calc(var(--ck-spacing-standard)*2);width:100%}[dir=ltr] .ck.ck-list__item>.ck-button:not(.ck-list-item-button){text-align:left}[dir=rtl] .ck.ck-list__item>.ck-button:not(.ck-list-item-button){text-align:right}.ck.ck-list__item>.ck-button:not(.ck-list-item-button) .ck-button__label{line-height:calc(var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item>.ck-button:not(.ck-list-item-button):active{box-shadow:none}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button){background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button):active{box-shadow:none}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button):hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button):focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item>.ck-button:not(.ck-list-item-button):hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item>.ck-button.ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item>.ck-button.ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck-list .ck-list__group{padding-top:var(--ck-spacing-medium)}.ck-list .ck-list__group:first-child{padding-top:0}
5697:not(.ck-hidden)~.ck-list .ck-list__group{border-top:1px solid var(--ck-color-base-border)}.ck-list .ck-list__group>.ck-label{font-size:11px;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-large) 0}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;margin:var(--ck-spacing-small) 0;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/list/list.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEdD,YAIC,0CAA2C,CCH3C,eAAgB,CDEhB,oBAAqB,CAIrB,iCACD,CCLC,+DAEC,qCAED,CDGD,kBACC,cAAe,CAGf,cA4DD,CA1DC,uDAIC,eAAgB,CAFhB,gBAAiB,CADjB,iEAAoE,CAEpE,UAwCD,CE/DA,iEF2BE,eEzBF,CAFA,iEF+BE,gBE7BF,CFgCC,yEAEC,qEACD,CAEA,8DACC,eACD,CAEA,6DACC,oDAAqD,CACrD,yCAaD,CAXC,oEACC,eACD,CAEA,qFACC,0DACD,CAEA,qFACC,4CACD,CAGD,+EACC,uDACD,CAMA,mDACC,0CAA2C,CAC3C,aAMD,CAJC,2EACC,uDAAwD,CACxD,aACD,CAKH,yBACC,oCAiBD,CAdC,qCACC,aACD,CAGA,0CACC,gDACD,CAEA,mCACC,cAAe,CACf,eAAiB,CACjB,0DACD,CAGD,uBAGC,sCAAuC,CAFvC,UAAW,CAKX,gCAAiC,CAJjC,UAKD",sourcesContent:[`/* 5698 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5699 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5700 */ 5701 5702@import "../../mixins/_unselectable.css"; 5703 5704.ck.ck-list { 5705 @mixin ck-unselectable; 5706 5707 display: flex; 5708 flex-direction: column; 5709 5710 & .ck-list__item, 5711 & .ck-list__separator { 5712 display: block; 5713 } 5714 5715 /* Make sure that whatever child of the list item gets focus, it remains on the 5716 top. Thanks to that, styles like box-shadow, outline, etc. are not masked by 5717 adjacent list items. */ 5718 & .ck-list__item > *:focus { 5719 position: relative; 5720 z-index: var(--ck-z-default); 5721 } 5722} 5723`,`/* 5724 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5725 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5726 */ 5727 5728/** 5729 * Makes element unselectable. 5730 */ 5731@define-mixin ck-unselectable { 5732 -moz-user-select: none; 5733 -webkit-user-select: none; 5734 -ms-user-select: none; 5735 user-select: none 5736} 5737`,`/* 5738 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5739 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5740 */ 5741 5742@import "../../../mixins/_disabled.css"; 5743@import "../../../mixins/_rounded.css"; 5744@import "../../../mixins/_shadow.css"; 5745@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 5746 5747.ck.ck-list { 5748 @mixin ck-rounded-corners; 5749 5750 list-style-type: none; 5751 background: var(--ck-color-list-background); 5752 5753 /* A spacing at the beginning and end of the list */ 5754 padding: var(--ck-spacing-small) 0; 5755} 5756 5757.ck.ck-list__item { 5758 cursor: default; 5759 5760 /* Almost as wide as menu bar items. */ 5761 min-width: 15em; 5762 5763 & > .ck-button:not(.ck-list-item-button) { 5764 padding: var(--ck-spacing-tiny) calc(2 * var(--ck-spacing-standard)); 5765 min-height: unset; 5766 width: 100%; 5767 border-radius: 0; 5768 5769 @mixin ck-dir ltr { 5770 text-align: left; 5771 } 5772 5773 @mixin ck-dir rtl { 5774 text-align: right; 5775 } 5776 5777 & .ck-button__label { 5778 /* https://github.com/ckeditor/ckeditor5-heading/issues/63 */ 5779 line-height: calc(var(--ck-line-height-base) * var(--ck-font-size-base)); 5780 } 5781 5782 &:active { 5783 box-shadow: none; 5784 } 5785 5786 &.ck-on { 5787 background: var(--ck-color-list-button-on-background); 5788 color: var(--ck-color-list-button-on-text); 5789 5790 &:active { 5791 box-shadow: none; 5792 } 5793 5794 &:hover:not(.ck-disabled) { 5795 background: var(--ck-color-list-button-on-background-focus); 5796 } 5797 5798 &:focus:not(.ck-disabled) { 5799 border-color: var(--ck-color-base-background); 5800 } 5801 } 5802 5803 &:hover:not(.ck-disabled) { 5804 background: var(--ck-color-list-button-hover-background); 5805 } 5806 } 5807 5808 /* It's unnecessary to change the background/text of a switch toggle; it has different ways 5809 of conveying its state (like the switcher) */ 5810 & > .ck-button.ck-switchbutton { 5811 &.ck-on { 5812 background: var(--ck-color-list-background); 5813 color: inherit; 5814 5815 &:hover:not(.ck-disabled) { 5816 background: var(--ck-color-list-button-hover-background); 5817 color: inherit; 5818 } 5819 } 5820 } 5821} 5822 5823.ck-list .ck-list__group { 5824 padding-top: var(--ck-spacing-medium); 5825 5826 /* Lists come with an inner vertical padding. Don't duplicate it. */ 5827 &:first-child { 5828 padding-top: 0; 5829 } 5830 5831 /* The group should have a border when it's not the first item. */
5832 *:not(.ck-hidden) ~ & { 5833 border-top: 1px solid var(--ck-color-base-border); 5834 } 5835 5836 & > .ck-label { 5837 font-size: 11px; 5838 font-weight: bold; 5839 padding: var(--ck-spacing-medium) var(--ck-spacing-large) 0; 5840 } 5841} 5842 5843.ck.ck-list__separator { 5844 height: 1px; 5845 width: 100%; 5846 background: var(--ck-color-base-border); 5847 5848 /* Give the separator some air */ 5849 margin: var(--ck-spacing-small) 0; 5850} 5851`,`/* 5852 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5853 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5854 */ 5855 5856/** 5857 * Implements rounded corner interface for .ck-rounded-corners class. 5858 * 5859 * @see $ck-border-radius 5860 */ 5861@define-mixin ck-rounded-corners { 5862 border-radius: 0; 5863 5864 .ck-rounded-corners &, 5865 &.ck-rounded-corners { 5866 border-radius: var(--ck-border-radius); 5867 @mixin-content; 5868 } 5869} 5870`,`/* 5871 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5872 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5873 */ 5874 5875@define-mixin ck-dir $direction { 5876 [dir="$(direction)"] & { 5877 @mixin-content; 5878 } 5879} 5880`],sourceRoot:""}]);const w=f},497:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 5881 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5882 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5883 */ 5884 5885.ck.ck-menu-bar { 5886 display: flex; 5887 flex-wrap: wrap; 5888 justify-content: flex-start; 5889 background: var(--ck-color-base-background); 5890 padding: var(--ck-spacing-small); 5891 gap: var(--ck-spacing-small); 5892 border: 1px solid var(--ck-color-toolbar-border); 5893 width: 100%; 5894} 5895`],sourceRoot:""}]);const w=f},4:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 5896 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5897 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5898 */ 5899 5900.ck.ck-menu-bar__menu { 5901 display: block; 5902 position: relative; 5903} 5904`,`/* 5905 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5906 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5907 */ 5908 5909.ck.ck-menu-bar__menu { 5910 /* Enable font size inheritance, which allows fluid UI scaling. */ 5911 font-size: inherit; 5912 5913 &.ck-menu-bar__menu_top-level { 5914 max-width: 100%; 5915 } 5916} 5917`],sourceRoot:""}]);const w=f},3344:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-menu-bar__menu>.ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button{width:100%}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button>.ck-button__label{flex-grow:1;overflow:hidden;text-overflow:ellipsis}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button.ck-disabled>.ck-button__label{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-menu-bar__menu>.ck-menu-bar__menu__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-menu-bar__menu>.ck-menu-bar__menu__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button{min-height:unset;padding:var(--ck-spacing-small) var(--ck-spacing-medium)}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button .ck-button__label{line-height:unset;width:unset}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button .ck-icon{display:none}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button{border-radius:0}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{margin-left:var(--ck-spacing-standard);margin-right:calc(var(--ck-spacing-small)*-1);transform:rotate(-90deg)}[dir=rtl] .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{left:var(--ck-spacing-standard);margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small);transform:rotate(90deg)}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button.ck-disabled>.ck-menu-bar__menu__button__arrow{opacity:var(--ck-disabled-opacity)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/menubar/menubarmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAMC,mFACC,mBAAoB,CACpB,2BACD,CCIA,iDACC,UAuBD,CArBC,mEACC,WAAY,CACZ,eAAgB,CAChB,s
5917BACD,CAEA,+ECbD,kCDeC,CAGC,qFACC,oCACD,CAIA,qFACC,qCACD,CAOF,6EAEC,gBAAiB,CADjB,wDAgBD,CAbC,+FAEC,iBAAkB,CADlB,WAED,CAEA,mFACC,2BAA4B,CAC5B,4BACD,CAEA,sFACC,YACD,CAMD,mFACC,eA+BD,CA7BC,qHACC,mCAuBD,CErFD,+HFoEG,sCAAuC,CAGvC,6CAAgD,CANhD,wBE/DH,CAFA,+HF6EG,+BAAgC,CAMhC,4CAA+C,CAH/C,oCAAqC,CALrC,uBEzEH,CFqFC,iICpFD,kCDsFC",sourcesContent:[`/* 5918 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5919 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5920 */ 5921 5922.ck.ck-menu-bar__menu { 5923 & > .ck-menu-bar__menu__button > .ck-menu-bar__menu__button__arrow { 5924 pointer-events: none; 5925 z-index: var(--ck-z-default); 5926 } 5927} 5928`,`/* 5929 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 5930 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 5931 */ 5932 5933@import "../../../mixins/_disabled.css"; 5934@import "../../mixins/_button.css"; 5935@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 5936 5937.ck.ck-menu-bar__menu { 5938 /* 5939 * All menu buttons. 5940 */ 5941 & > .ck-menu-bar__menu__button { 5942 width: 100%; 5943 5944 & > .ck-button__label { 5945 flex-grow: 1; 5946 overflow: hidden; 5947 text-overflow: ellipsis; 5948 } 5949 5950 &.ck-disabled > .ck-button__label { 5951 @mixin ck-disabled; 5952 } 5953 5954 @mixin ck-dir ltr { 5955 &:not(.ck-button_with-text) { 5956 padding-left: var(--ck-spacing-small); 5957 } 5958 } 5959 5960 @mixin ck-dir rtl { 5961 &:not(.ck-button_with-text) { 5962 padding-right: var(--ck-spacing-small); 5963 } 5964 } 5965 } 5966 5967 /* 5968 * Top-level menu buttons only. 5969 */ 5970 &.ck-menu-bar__menu_top-level > .ck-menu-bar__menu__button { 5971 padding: var(--ck-spacing-small) var(--ck-spacing-medium); 5972 min-height: unset; 5973 5974 & .ck-button__label { 5975 width: unset; 5976 line-height: unset; 5977 } 5978 5979 &.ck-on { 5980 border-bottom-left-radius: 0; 5981 border-bottom-right-radius: 0; 5982 } 5983 5984 & .ck-icon { 5985 display: none; 5986 } 5987 } 5988 5989 /* 5990 * Sub-menu buttons. 5991 */ 5992 &:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button { 5993 border-radius: 0; 5994 5995 & > .ck-menu-bar__menu__button__arrow { 5996 width: var(--ck-dropdown-arrow-size); 5997 5998 @mixin ck-dir ltr { 5999 transform: rotate(-90deg); 6000 6001 /* A space to accommodate the triangle. */ 6002 margin-left: var(--ck-spacing-standard); 6003 6004 /* Nudge the arrow gently to the right because its center of gravity is to the left */ 6005 margin-right: calc(-1 * var(--ck-spacing-small)); 6006 } 6007 6008 @mixin ck-dir rtl { 6009 transform: rotate(90deg); 6010 6011 left: var(--ck-spacing-standard); 6012 6013 /* A space to accommodate the triangle. */ 6014 margin-right: var(--ck-spacing-small); 6015 6016 /* Nudge the arrow gently to the left because its center of gravity is to the right (after rotation). */ 6017 margin-left: calc(-1 * var(--ck-spacing-small)); 6018 } 6019 } 6020 6021 &.ck-disabled > .ck-menu-bar__menu__button__arrow { 6022 @mixin ck-disabled; 6023 } 6024 } 6025} 6026`,`/* 6027 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6028 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6029 */ 6030 6031/** 6032 * A class which indicates that an element holding it is disabled. 6033 */ 6034@define-mixin ck-disabled { 6035 opacity: var(--ck-disabled-opacity); 6036} 6037`,`/* 6038 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6039 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6040 */ 6041 6042@define-mixin ck-dir $direction { 6043 [dir="$(direction)"] & { 6044 @mixin-content; 6045 } 6046} 6047`],sourceRoot:""}]);const w=f},9481:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 6048 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6049 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6050 */ 6051 6052:root { 6053 --ck-menu-bar-menu-item-min-width: 18em; 6054} 6055 6056.ck.ck-menu-bar__menu .ck.ck-menu-bar__menu__item { 6057 min-width: var(--ck-menu-bar-menu-item-min-width); 6058} 6059`],sourceRoot:""}]);const w=f},977:(x,A,g)=>{g.d(A,{A:()=>w});
6059var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button{border-radius:0}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container,.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container .ck-spinner{--ck-toolbar-spinner-size:20px}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container{font-size:var(--ck-icon-font-size)}[dir=ltr] .ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container{margin-left:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenulistitembutton.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAWC,iEACC,eAoBD,CAlBC,0LAGC,8BACD,CAEA,uFAEC,kCASD,CCzBD,iGDmBG,qCCjBH,CAFA,iGDuBG,oCCrBH",sourcesContent:[`/* 6060 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6061 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6062 */ 6063 6064@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 6065 6066.ck.ck-menu-bar__menu { 6067 /* 6068 * List item buttons. 6069 */ 6070 & .ck-button.ck-menu-bar__menu__item__button { 6071 border-radius: 0; 6072 6073 & > .ck-spinner-container, 6074 & > .ck-spinner-container .ck-spinner { 6075 /* These styles correspond to .ck-icon so that the spinner seamlessly replaces the icon. */ 6076 --ck-toolbar-spinner-size: 20px; 6077 } 6078 6079 & > .ck-spinner-container { 6080 /* This ensures margins corresponding to the .ck-icon. */ 6081 font-size: var(--ck-icon-font-size); 6082 6083 @mixin ck-dir ltr { 6084 margin-right: var(--ck-spacing-medium); 6085 } 6086 6087 @mixin ck-dir rtl { 6088 margin-left: var(--ck-spacing-medium); 6089 } 6090 } 6091 } 6092} 6093 6094 6095`,`/* 6096 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6097 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6098 */ 6099 6100@define-mixin ck-dir $direction { 6101 [dir="$(direction)"] & { 6102 @mixin-content; 6103 } 6104} 6105`],sourceRoot:""}]);const w=f},9108:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,":root{--ck-menu-bar-menu-max-width:75vw;--ck-menu-bar-nested-menu-horizontal-offset:5px}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{max-width:var(--ck-menu-bar-menu-max-width);position:absolute;z-index:var(--ck-z-panel)}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw{bottom:100%}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw{bottom:auto;top:100%}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se{left:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw{right:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es{left:calc(100% - var(--ck-menu-bar-nested-menu-horizontal-offset))}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es{top:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en{bottom:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{right:calc(100% - var(--ck-menu-bar-nested-menu-horizontal-offset))}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{top:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn{bottom:0}:root{--ck-menu-bar-menu-panel-max-width:75vw}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);border-radius:0;bottom:0;height:fit-content;max-width:var(--ck-menu-bar-menu-panel-max-width)}.ck-rounded-corners .ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{box-shadow:var(--ck-drop-shadow),0 0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se{border-top-left-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{border-top-right-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne{border-bottom-left-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn{border-bottom-right-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel:focus{outline:none}.ck.ck-menu-bar .ck-list-item-button:active,.ck.ck-menu-bar .ck-list-item-button:focus{border-color:transparent;box-shadow:none}.ck.ck-menu-bar.ck-menu-bar_focus-border-enabled .ck-list-item-button:active,.ck.ck-menu-bar.ck-menu-bar_focus-border-enabled .ck-list-item-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none;position:relative;z-index:2}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/menubar/menubarmenupanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenupanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css"],names:[],mappings:"AAKA,MACC,iCAAkC,CAClC,+CACD,CAEA,mDAEC,2CAA4C,CAC5C,iBAAkB,CAFlB,yBAkDD,CA9CC,gLAEC,WACD,CAEA,gLAGC,WAAY,CADZ,QAED,CAEA,gLAEC,MAC
6105D,CAEA,gLAEC,OACD,CAEA,gLAEC,kEACD,CAEA,wFACC,KACD,CAEA,wFACC,QACD,CAEA,gLAEC,mEACD,CAEA,wFACC,KACD,CAEA,wFACC,QACD,CCnDD,MACC,uCACD,CAEA,mDAIC,oDAAqD,CACrD,sDAAuD,CCPvD,eAAgB,CDQhB,QAAS,CACT,kBAAmB,CACnB,iDA0BD,CClCC,6IAEC,qCAED,CDJD,mDEJC,oCFsCD,CAvBC,gLAEC,wBACD,CAEA,gLAEC,yBACD,CAEA,gLAEC,2BACD,CAEA,gLAEC,4BACD,CAEA,yDACC,YACD,CAKC,uFAEC,wBAAyB,CACzB,eACD,CAIA,yJGhDD,2BAA2B,CDF3B,2CAA8B,CCC9B,YAAa,CHoDX,iBAAkB,CAClB,SAID",sourcesContent:[`/* 6106 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6107 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6108 */ 6109 6110:root { 6111 --ck-menu-bar-menu-max-width: 75vw; 6112 --ck-menu-bar-nested-menu-horizontal-offset: 5px; 6113} 6114 6115.ck.ck-menu-bar__menu > .ck.ck-menu-bar__menu__panel { 6116 z-index: var(--ck-z-panel); 6117 max-width: var(--ck-menu-bar-menu-max-width); 6118 position: absolute; 6119 6120 &.ck-menu-bar__menu__panel_position_ne, 6121 &.ck-menu-bar__menu__panel_position_nw { 6122 bottom: 100%; 6123 } 6124 6125 &.ck-menu-bar__menu__panel_position_se, 6126 &.ck-menu-bar__menu__panel_position_sw { 6127 top: 100%; 6128 bottom: auto; 6129 } 6130 6131 &.ck-menu-bar__menu__panel_position_ne, 6132 &.ck-menu-bar__menu__panel_position_se { 6133 left: 0px; 6134 } 6135 6136 &.ck-menu-bar__menu__panel_position_nw, 6137 &.ck-menu-bar__menu__panel_position_sw { 6138 right: 0px; 6139 } 6140 6141 &.ck-menu-bar__menu__panel_position_es, 6142 &.ck-menu-bar__menu__panel_position_en { 6143 left: calc( 100% - var(--ck-menu-bar-nested-menu-horizontal-offset) ); 6144 } 6145 6146 &.ck-menu-bar__menu__panel_position_es { 6147 top: 0px; 6148 } 6149 6150 &.ck-menu-bar__menu__panel_position_en { 6151 bottom: 0px; 6152 } 6153 6154 &.ck-menu-bar__menu__panel_position_ws, 6155 &.ck-menu-bar__menu__panel_position_wn { 6156 right: calc( 100% - var(--ck-menu-bar-nested-menu-horizontal-offset) ); 6157 } 6158 6159 &.ck-menu-bar__menu__panel_position_ws { 6160 top: 0px; 6161 } 6162 6163 &.ck-menu-bar__menu__panel_position_wn { 6164 bottom: 0px; 6165 } 6166} 6167`,`/* 6168 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6169 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6170 */ 6171 6172@import "../../../mixins/_rounded.css"; 6173@import "../../../mixins/_shadow.css"; 6174@import "../../../mixins/_focus.css"; 6175 6176:root { 6177 --ck-menu-bar-menu-panel-max-width: 75vw; 6178} 6179 6180.ck.ck-menu-bar__menu > .ck.ck-menu-bar__menu__panel { 6181 @mixin ck-rounded-corners; 6182 @mixin ck-drop-shadow; 6183 6184 background: var(--ck-color-dropdown-panel-background); 6185 border: 1px solid var(--ck-color-dropdown-panel-border); 6186 bottom: 0; 6187 height: fit-content; 6188 max-width: var(--ck-menu-bar-menu-panel-max-width); 6189 6190 /* Corner border radius consistent with the button. */ 6191 &.ck-menu-bar__menu__panel_position_es, 6192 &.ck-menu-bar__menu__panel_position_se { 6193 border-top-left-radius: 0; 6194 } 6195 6196 &.ck-menu-bar__menu__panel_position_ws, 6197 &.ck-menu-bar__menu__panel_position_sw { 6198 border-top-right-radius: 0; 6199 } 6200 6201 &.ck-menu-bar__menu__panel_position_en, 6202 &.ck-menu-bar__menu__panel_position_ne { 6203 border-bottom-left-radius: 0; 6204 } 6205 6206 &.ck-menu-bar__menu__panel_position_wn, 6207 &.ck-menu-bar__menu__panel_position_nw { 6208 border-bottom-right-radius: 0; 6209 } 6210 6211 &:focus { 6212 outline: none; 6213 } 6214} 6215 6216.ck.ck-menu-bar { 6217 & .ck-list-item-button { 6218 &:focus, 6219 &:active { 6220 border-color: transparent; 6221 box-shadow: none; 6222 } 6223 } 6224 6225 &.ck-menu-bar_focus-border-enabled .ck-list-item-button { 6226 &:focus, 6227 &:active { 6228 /* Fix truncated shadows due to rendering order. */ 6229 position: relative; 6230 z-index: 2; 6231 6232 @mixin ck-focus-ring; 6233 @mixin ck-box-shadow var(--ck-focus-outer-shadow); 6234 } 6235 } 6236} 6237`,`/* 6238 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6239 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6240 */ 6241 6242/** 6243 * Implements rounded corner interface for .ck-rounded-corners class. 6244 * 6245 * @see $ck-border-radius 6246 */ 6247@define-mixin ck-rounded-corners { 6248 border-radius: 0; 6249 6250 .ck-rounded-corners &, 6251 &.ck-rounded-corners { 6252 border-radius: var(--ck-border-radius); 6253 @mixin-content; 6254 } 6255} 6256`,`/* 6257 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6258 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6259 */ 6260 6261/** 6262 * A helper to combine multiple shadows. 6263 */
6264@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 6265 box-shadow: $shadowA, $shadowB; 6266} 6267 6268/** 6269 * Gives an element a drop shadow so it looks like a floating panel. 6270 */ 6271@define-mixin ck-drop-shadow { 6272 @mixin ck-box-shadow var(--ck-drop-shadow); 6273} 6274`,`/* 6275 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6276 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6277 */ 6278 6279/** 6280 * A visual style of focused element's border. 6281 */ 6282@define-mixin ck-focus-ring { 6283 /* Disable native outline. */ 6284 outline: none; 6285 border: var(--ck-focus-ring) 6286} 6287`],sourceRoot:""}]);const w=f},3710:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-panel)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);border-radius:0;min-height:15px}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0
vendor: 5,110 bytes, line 6287
6287}.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://./
6287../ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBAMC,2CAA4C,CAC5C,wEAAyE,CCZzE,eAAgB,CDShB,eA0LD,CCjMC,iFAEC,qCAED,CDDD,qBEPC,oCFqMD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:[`/* 6288 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6289 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6290 */ 6291 6292:root { 6293 /* Make sure the balloon arrow does not float over its children. */ 6294 --ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3); 6295} 6296 6297.ck.ck-balloon-panel { 6298 display: none; 6299 position: absolute; 6300 6301 z-index: var(--ck-z-panel); 6302 6303 &.ck-balloon-panel_with-arrow { 6304 &::before, 6305 &::after { 6306 content: ""; 6307 position: absolute; 6308 } 6309 6310 &::before { 6311 z-index: var(--ck-balloon-panel-arrow-z-index); 6312 } 6313 6314 &::after { 6315 z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1); 6316 } 6317 } 6318 6319 &[class*="arrow_n"] { 6320 &::before { 6321 z-index: var(--ck-balloon-panel-arrow-z-index); 6322 } 6323 6324 &::after { 6325 z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1); 6326 } 6327 } 6328 6329 &[class*="arrow_s"] { 6330 &::before { 6331 z-index: var(--ck-balloon-panel-arrow-z-index); 6332 } 6333 6334 &::after { 6335 z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1); 6336 } 6337 } 6338 6339 &.ck-balloon-panel_visible { 6340 display: block; 6341 } 6342} 6343`,`/* 6344 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6345 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6346 */ 6347 6348@import "../../../mixins/_rounded.css"; 6349@import "../../../mixins/_shadow.css"; 6350 6351:root { 6352 --ck-balloon-border-width: 1px; 6353 --ck-balloon-arrow-offset: 2px; 6354 --ck-balloon-arrow-height: 10px; 6355 --ck-balloon-arrow-half-width: 8px; 6356 --ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop); 6357} 6358 6359.ck.ck-balloon-panel { 6360 @mixin ck-rounded-corners; 6361 @mixin ck-drop-shadow; 6362 6363 min-height: 15px; 6364 6365 background: var(--ck-color-panel-background); 6366 border: var(--ck-balloon-border-width) solid var(--ck-color-panel-border); 6367 6368 &.ck-balloon-panel_with-arrow { 6369 &::before, 6370 &::after { 6371 width: 0; 6372 height: 0; 6373 border-style: solid; 6374 } 6375 } 6376 6377 &[class*="arrow_n"] { 6378 &::before, 6379 &::after { 6380 border-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width); 6381 } 6382 6383 &::before { 6384 border-color: transparent transparent var(--ck-color-panel-border) transparent; 6385 margin-top: calc( -1 * var(--ck-balloon-border-width) ); 6386 } 6387 6388 &::after { 6389 border-color: transparent transparent var(--ck-color-panel-background) transparent; 6390 margin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) ); 6391 } 6392 } 6393 6394 &[class*="arrow_s"] { 6395 &::before, 6396 &::after { 6397 border-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width); 6398 } 6399 6400 &::before { 6401 border-color: var(--ck-color-panel-border) transparent transparent; 6402 filter: drop-shadow(var(--ck-balloon-arrow-drop-shadow)); 6403 margin-bottom: calc( -1 * var(--ck-balloon-border-width) ); 6404 } 6405 6406 &::after { 6407 border-color: var(--ck-color-panel-background) transparent transparent transparent; 6408 margin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) ); 6409 } 6410 } 6411 6412 &[class*="arrow_e"] { 6413 &::before, 6414 &::after { 6415 border-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height); 6416 } 6417 6418 &::before { 6419 border-color: transparent transparent transparent var(--ck-color-panel-border); 6420 margin-right: calc( -1 * var(--ck-balloon-border-width) ); 6421 } 6422 6423 &::after { 6424 border-color: transparent transparent transparent var(--ck-color-panel-background); 6425 margin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) ); 6426 } 6427 } 6428 6429 &[class*="arrow_w"] { 6430 &::before, 6431 &::after { 6432 border-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0; 6433 } 6434 6435 &::before { 6436 border-color: transparent var(--ck-color-panel-border) transparent transparent; 6437 margin-left: calc( -1 * var(--ck-balloon-border-width) ); 6438 } 6439 6440 &::after { 6441 border-color: transparent var(--ck-color-panel-background) transparent transparent; 6442 margin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) ); 6443 } 6444 } 6445
6446 &.ck-balloon-panel_arrow_n { 6447 &::before, 6448 &::after { 6449 left: 50%; 6450 margin-left: calc(-1 * var(--ck-balloon-arrow-half-width)); 6451 top: calc(-1 * var(--ck-balloon-arrow-height)); 6452 } 6453 } 6454 6455 &.ck-balloon-panel_arrow_nw { 6456 &::before, 6457 &::after { 6458 left: calc(2 * var(--ck-balloon-arrow-half-width)); 6459 top: calc(-1 * var(--ck-balloon-arrow-height)); 6460 } 6461 } 6462 6463 &.ck-balloon-panel_arrow_ne { 6464 &::before, 6465 &::after { 6466 right: calc(2 * var(--ck-balloon-arrow-half-width)); 6467 top: calc(-1 * var(--ck-balloon-arrow-height)); 6468 } 6469 } 6470 6471 &.ck-balloon-panel_arrow_s { 6472 &::before, 6473 &::after { 6474 left: 50%; 6475 margin-left: calc(-1 * var(--ck-balloon-arrow-half-width)); 6476 bottom: calc(-1 * var(--ck-balloon-arrow-height)); 6477 } 6478 } 6479 6480 &.ck-balloon-panel_arrow_sw { 6481 &::before, 6482 &::after { 6483 left: calc(2 * var(--ck-balloon-arrow-half-width)); 6484 bottom: calc(-1 * var(--ck-balloon-arrow-height)); 6485 } 6486 } 6487 6488 &.ck-balloon-panel_arrow_se { 6489 &::before, 6490 &::after { 6491 right: calc(2 * var(--ck-balloon-arrow-half-width)); 6492 bottom: calc(-1 * var(--ck-balloon-arrow-height)); 6493 } 6494 } 6495 6496 &.ck-balloon-panel_arrow_sme { 6497 &::before, 6498 &::after { 6499 right: 25%; 6500 margin-right: calc(2 * var(--ck-balloon-arrow-half-width)); 6501 bottom: calc(-1 * var(--ck-balloon-arrow-height)); 6502 } 6503 } 6504 6505 &.ck-balloon-panel_arrow_smw { 6506 &::before, 6507 &::after { 6508 left: 25%; 6509 margin-left: calc(2 * var(--ck-balloon-arrow-half-width)); 6510 bottom: calc(-1 * var(--ck-balloon-arrow-height)); 6511 } 6512 } 6513
6514 &.ck-balloon-panel_arrow_nme { 6515 &::before, 6516 &::after { 6517 right: 25%; 6518 margin-right: calc(2 * var(--ck-balloon-arrow-half-width)); 6519 top: calc(-1 * var(--ck-balloon-arrow-height)); 6520 } 6521 } 6522 6523 &.ck-balloon-panel_arrow_nmw { 6524 &::before, 6525 &::after { 6526 left: 25%; 6527 margin-left: calc(2 * var(--ck-balloon-arrow-half-width)); 6528 top: calc(-1 * var(--ck-balloon-arrow-height)); 6529 } 6530 } 6531 6532 &.ck-balloon-panel_arrow_e { 6533 &::before, 6534 &::after { 6535 right: calc(-1 * var(--ck-balloon-arrow-height)); 6536 margin-top: calc(-1 * var(--ck-balloon-arrow-half-width)); 6537 top: 50%; 6538 } 6539 } 6540 6541 &.ck-balloon-panel_arrow_w { 6542 &::before, 6543 &::after { 6544 left: calc(-1 * var(--ck-balloon-arrow-height)); 6545 margin-top: calc(-1 * var(--ck-balloon-arrow-half-width)); 6546 top: 50%; 6547 } 6548 } 6549} 6550`,`/* 6551 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6552 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6553 */ 6554 6555/** 6556 * Implements rounded corner interface for .ck-rounded-corners class. 6557 * 6558 * @see $ck-border-radius 6559 */ 6560@define-mixin ck-rounded-corners { 6561 border-radius: 0; 6562 6563 .ck-rounded-corners &, 6564 &.ck-rounded-corners { 6565 border-radius: var(--ck-border-radius); 6566 @mixin-content; 6567 } 6568} 6569`,`/* 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/** 6575 * A helper to combine multiple shadows. 6576 */ 6577@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 6578 box-shadow: $shadowA, $shadowB; 6579} 6580 6581/** 6582 * Gives an element a drop shadow so it looks like a floating panel. 6583 */ 6584@define-mixin ck-drop-shadow { 6585 @mixin ck-box-shadow var(--ck-drop-shadow); 6586} 6587`],sourceRoot:""}]);const w=f},991:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 6588 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6589 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6590 */ 6591 6592.ck .ck-balloon-rotator__navigation { 6593 display: flex; 6594 align-items: center; 6595 justify-content: center; 6596} 6597 6598/* Buttons inside a toolbar should be centered when rotator bar is wider. 6599 * See: https://github.com/ckeditor/ckeditor5-ui/issues/495 6600 */ 6601.ck .ck-balloon-rotator__content .ck-toolbar { 6602 justify-content: center; 6603} 6604`,`/* 6605 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6606 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6607 */ 6608 6609.ck .ck-balloon-rotator__navigation { 6610 background: var(--ck-color-toolbar-background); 6611 border-bottom: 1px solid var(--ck-color-toolbar-border); 6612 padding: 0 var(--ck-spacing-small); 6613 6614 /* Let's keep similar appearance to \`ck-toolbar\`. */ 6615 & > * { 6616 margin-right: var(--ck-spacing-small); 6617 margin-top: var(--ck-spacing-small); 6618 margin-bottom: var(--ck-spacing-small); 6619 } 6620 6621 /* Gives counter more breath than buttons. */ 6622 & .ck-balloon-rotator__counter { 6623 margin-right: var(--ck-spacing-standard); 6624 6625 /* We need to use smaller margin because of previous button's right margin. */ 6626 margin-left: var(--ck-spacing-small); 6627 } 6628} 6629 6630.ck .ck-balloon-rotator__content { 6631 6632 /* Disable default annotation shadow inside rotator with fake panels. */ 6633 & .ck.ck-annotation-wrapper { 6634 box-shadow: none; 6635 } 6636} 6637`],sourceRoot:""}]);const w=f},5380:(x,A,g)=>{g.d(A,{A:()=>w});
6637var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-panel) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:[`/* 6638 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6639 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6640 */ 6641 6642.ck .ck-fake-panel { 6643 position: absolute; 6644 6645 /* Fake panels should be placed under main balloon content. */ 6646 z-index: calc(var(--ck-z-panel) - 1); 6647} 6648 6649.ck .ck-fake-panel div { 6650 position: absolute; 6651} 6652 6653.ck .ck-fake-panel div:nth-child( 1 ) { 6654 z-index: 2; 6655} 6656 6657.ck .ck-fake-panel div:nth-child( 2 ) { 6658 z-index: 1; 6659} 6660`,`/* 6661 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6662 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6663 */ 6664 6665@import "../../../mixins/_shadow.css"; 6666 6667:root { 6668 --ck-balloon-fake-panel-offset-horizontal: 6px; 6669 --ck-balloon-fake-panel-offset-vertical: 6px; 6670} 6671 6672/* Let's use \`.ck-balloon-panel\` appearance. See: balloonpanel.css. */ 6673.ck .ck-fake-panel div { 6674 @mixin ck-drop-shadow; 6675 6676 min-height: 15px; 6677 6678 background: var(--ck-color-panel-background); 6679 border: 1px solid var(--ck-color-panel-border); 6680 border-radius: var(--ck-border-radius); 6681 6682 width: 100%; 6683 height: 100%; 6684} 6685 6686.ck .ck-fake-panel div:nth-child( 1 ) { 6687 margin-left: var(--ck-balloon-fake-panel-offset-horizontal); 6688 margin-top: var(--ck-balloon-fake-panel-offset-vertical); 6689} 6690 6691.ck .ck-fake-panel div:nth-child( 2 ) { 6692 margin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2); 6693 margin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2); 6694} 6695.ck .ck-fake-panel div:nth-child( 3 ) { 6696 margin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3); 6697 margin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3); 6698} 6699 6700/* If balloon is positioned above element, we need to move fake panel to the top. */ 6701.ck .ck-balloon-panel_arrow_s + .ck-fake-panel, 6702.ck .ck-balloon-panel_arrow_se + .ck-fake-panel, 6703.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel { 6704 --ck-balloon-fake-panel-offset-vertical: -6px; 6705} 6706`,`/* 6707 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6708 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6709 */ 6710 6711/** 6712 * A helper to combine multiple shadows. 6713 */ 6714@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 6715 box-shadow: $shadowA, $shadowB; 6716} 6717 6718/** 6719 * Gives an element a drop shadow so it looks like a floating panel. 6720 */ 6721@define-mixin ck-drop-shadow {
6722 @mixin ck-box-shadow var(--ck-drop-shadow); 6723} 6724`],sourceRoot:""}]);const w=f},8298:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 6725 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6726 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6727 */ 6728 6729.ck.ck-sticky-panel { 6730 & .ck-sticky-panel__content_sticky { 6731 z-index: var(--ck-z-panel); /* #315 */ 6732 position: fixed; 6733 top: 0; 6734 } 6735 6736 & .ck-sticky-panel__content_sticky_bottom-limit { 6737 top: auto; 6738 position: absolute; 6739 } 6740} 6741`,`/* 6742 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6743 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6744 */ 6745 6746@import "../../../mixins/_shadow.css"; 6747 6748.ck.ck-sticky-panel { 6749 & .ck-sticky-panel__content_sticky { 6750 @mixin ck-drop-shadow; 6751 6752 border-width: 0 1px 1px; 6753 border-top-left-radius: 0; 6754 border-top-right-radius: 0; 6755 } 6756} 6757`,`/* 6758 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6759 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6760 */ 6761 6762/** 6763 * A helper to combine multiple shadows. 6764 */ 6765@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 6766 box-shadow: $shadowA, $shadowB; 6767} 6768 6769/** 6770 * Gives an element a drop shadow so it looks like a floating panel. 6771 */ 6772@define-mixin ck-drop-shadow { 6773 @mixin ck-box-shadow var(--ck-drop-shadow); 6774} 6775`],sourceRoot:""}]);const w=f},2722:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-number,.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAoED,CAlEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA+CF,CA7CE,8CACC,wDAYD,CAVC,4HAEC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CC5DF,0ODmEG,aCjEH,CDmEG,+IACC,kDACD,CDrEH",sourcesContent:[`/* 6776 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6777 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6778 */ 6779 6780@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; 6781 6782.ck-vertical-form .ck-button { 6783 &::after { 6784 content: ""; 6785 width: 0; 6786 position: absolute; 6787 right: -1px; 6788 top: -1px; 6789 bottom: -1px; 6790 z-index: 1; 6791 } 6792 6793 &:focus::after { 6794 display: none; 6795 } 6796} 6797 6798.ck.ck-responsive-form { 6799 @mixin ck-media-phone { 6800 & .ck-button { 6801 &::after { 6802 content: ""; 6803 width: 0; 6804 position: absolute; 6805 right: -1px; 6806 top: -1px; 6807 bottom: -1px; 6808 z-index: 1; 6809 } 6810 6811 &:focus::after { 6812 display: none; 6813 } 6814 } 6815 } 6816} 6817`,`/* 6818 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6819 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6820 */ 6821 6822@define-mixin ck-media-phone { 6823 @media screen and (max-width: 600px) { 6824 @mixin-content; 6825 } 6826} 6827`,`/* 6828 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6829 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6830 */ 6831 6832@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"; 6833@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 6834 6835.ck-vertical-form > .ck-button:nth-last-child(2)::after { 6836 border-right: 1px solid var(--ck-color-base-border); 6837} 6838
6839.ck.ck-responsive-form { 6840 padding: var(--ck-spacing-large); 6841 6842 &:focus { 6843 /* See: https://github.com/ckeditor/ckeditor5/issues/4773 */ 6844 outline: none; 6845 } 6846 6847 @mixin ck-dir ltr { 6848 & > :not(:first-child) { 6849 margin-left: var(--ck-spacing-standard); 6850 } 6851 } 6852 6853 @mixin ck-dir rtl { 6854 & > :not(:last-child) { 6855 margin-left: var(--ck-spacing-standard); 6856 } 6857 } 6858 6859 @mixin ck-media-phone { 6860 padding: 0; 6861 width: calc(.8 * var(--ck-input-width)); 6862 6863 & .ck-labeled-field-view { 6864 margin: var(--ck-spacing-large) var(--ck-spacing-large) 0; 6865 6866 & .ck-input-text, 6867 & .ck-input-number { 6868 min-width: 0; 6869 width: 100%; 6870 } 6871 6872 /* Let the long error messages wrap in the narrow form. */ 6873 & .ck-labeled-field-view__error { 6874 white-space: normal; 6875 } 6876 } 6877 6878 /* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */ 6879 & > .ck-button:nth-last-child(2) { 6880 &::after { 6881 border-right: 1px solid var(--ck-color-base-border); 6882 } 6883 } 6884 6885 & > .ck-button:nth-last-child(1), 6886 & > .ck-button:nth-last-child(2) { 6887 padding: var(--ck-spacing-standard); 6888 margin-top: var(--ck-spacing-large); 6889 border-radius: 0; 6890 6891 &:not(:focus) { 6892 border-top: 1px solid var(--ck-color-base-border); 6893 } 6894 6895 @mixin ck-dir ltr { 6896 margin-left: 0; 6897 } 6898 6899 @mixin ck-dir rtl { 6900 margin-left: 0; 6901 6902 &:last-of-type { 6903 border-right: 1px solid var(--ck-color-base-border); 6904 } 6905 } 6906 } 6907 } 6908} 6909`,`/* 6910 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6911 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6912 */ 6913 6914@define-mixin ck-dir $direction { 6915 [dir="$(direction)"] & { 6916 @mixin-content; 6917 } 6918} 6919`],sourceRoot:""}]);const w=f},8107:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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>
6919.ck-labeled-field-view.ck-search__query_with-reset .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input:not(.ck-input-text_empty),[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{padding-right:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-search__results{min-width:100%}.ck.ck-search>.ck-search__results>.ck-search__info{padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-search>.ck-search__results>.ck-search__info *{white-space:normal}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{font-weight:700}.ck.ck-search>.ck-search__results>.ck-search__info>span:last-child{margin-top:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/search/search.css","webpack://./../ckeditor5-ui/theme/mixins/_dir.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/search/search.css"],names:[],mappings:"AASE,oFACC,iBAAkB,CAClB,OAAQ,CACR,0BASD,CCfD,8FDSG,6BCPH,CAFA,8FDaG,8BCXH,CDeC,uDACC,iBAAkB,CAClB,OAAQ,CACR,0BACD,CAKC,oEACC,aACD,CAGA,qEACC,YACD,CEhCH,MACC,8FACD,CAIE,+CACC,UACD,CAEA,gEACC,0FAoBD,CAlBC,+GACC,UAAW,CACX,mBACD,CAEA,0EACC,UAWD,CAJE,kMACC,2DACD,CAKH,iEACC,sGAwCD,CAtCC,6FACC,6HACD,CAEA,mFAIC,eAAgB,CAFhB,eAAgB,CADhB,cAAe,CAIf,UAAW,CACX,SAaD,CD5DF,6FCkDI,8BDhDJ,CAFA,6FCsDI,6BDpDJ,CCuDG,yFACC,SACD,CAGD,2EACC,UAWD,CD1EF,oMCwEI,4DDtEJ,CC4EA,kCACC,cAkBD,CAhBC,mDAEC,wDAAyD,CADzD,UAcD,CAXC,qDACC,kBACD,CAEA,oEACC,eACD,CAEA,mEACC,mCACD",sourcesContent:[`/* 6920 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6921 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6922 */ 6923 6924@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 6925 6926.ck.ck-search { 6927 & > .ck-labeled-field-view { 6928 & > .ck-labeled-field-view__input-wrapper > .ck-icon { 6929 position: absolute; 6930 top: 50%; 6931 transform: translateY(-50%); 6932 6933 @mixin ck-dir ltr { 6934 left: var(--ck-spacing-medium); 6935 } 6936 6937 @mixin ck-dir rtl { 6938 right: var(--ck-spacing-medium); 6939 } 6940 } 6941 6942 & .ck-search__reset { 6943 position: absolute; 6944 top: 50%; 6945 transform: translateY(-50%); 6946 } 6947 } 6948 6949 & > .ck-search__results { 6950 & > .ck-search__info { 6951 & > span:first-child { 6952 display: block; 6953 } 6954 6955 /* Hide the filtered view when nothing was found */ 6956 &:not(.ck-hidden) ~ * { 6957 display: none; 6958 } 6959 } 6960 } 6961} 6962`,`/* 6963 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6964 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6965 */ 6966 6967@define-mixin ck-dir $direction { 6968 [dir="$(direction)"] & { 6969 @mixin-content; 6970 } 6971} 6972`,`/* 6973 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 6974 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 6975 */ 6976 6977@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 6978 6979:root { 6980 --ck-search-field-view-horizontal-spacing: calc(var(--ck-icon-size) + var(--ck-spacing-medium)); 6981} 6982 6983.ck.ck-search { 6984 & > .ck-labeled-field-view { 6985 & .ck-input { 6986 width: 100%; 6987 } 6988 6989 &.ck-search__query_with-icon { 6990 --ck-labeled-field-label-default-position-x: var(--ck-search-field-view-horizontal-spacing); 6991 6992 & > .ck-labeled-field-view__input-wrapper > .ck-icon { 6993 opacity: .5; 6994 pointer-events: none; 6995 } 6996 6997 & .ck-input { 6998 width: 100%; 6999 7000 @mixin ck-dir ltr { 7001 padding-left: var(--ck-search-field-view-horizontal-spacing); 7002 } 7003 7004 @mixin ck-dir rtl { 7005 &:not(.ck-input-text_empty) { 7006 padding-left: var(--ck-search-field-view-horizontal-spacing); 7007 } 7008 } 7009 } 7010 } 7011 7012 &.ck-search__query_with-reset { 7013 --ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-search-field-view-horizontal-spacing); 7014 7015 &.ck-labeled-field-view_empty { 7016 --ck-labeled-field-empty-unfocused-max-width: 100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium); 7017 } 7018 7019 & .ck-search__reset { 7020 min-width: auto; 7021 min-height: auto; 7022 7023 background: none; 7024 opacity: .5; 7025 padding: 0; 7026 7027 @mixin ck-dir ltr { 7028 right: var(--ck-spacing-medium); 7029 } 7030 7031 @mixin ck-dir rtl { 7032 left: var(--ck-spacing-medium); 7033 } 7034 7035 &:hover { 7036 opacity: 1; 7037 } 7038 } 7039 7040 & .ck-input { 7041 width: 100%; 7042 7043 @mixin ck-dir ltr { 7044 &:not(.ck-input-text_empty) { 7045 padding-right: var(--ck-search-field-view-horizontal-spacing); 7046 } 7047 } 7048 7049 @mixin ck-dir rtl { 7050 padding-right: var(--ck-search-field-view-horizontal-spacing); 7051 } 7052 } 7053 } 7054 } 7055 7056 & > .ck-search__results { 7057 min-width: 100%; 7058 7059 & > .ck-search__info { 7060 width: 100%; 7061 padding: var(--ck-spacing-medium) var(--ck-spacing-large); 7062 7063 & * { 7064 white-space: normal; 7065 } 7066 7067 & > span:first-child { 7068 font-weight: bold; 7069 } 7070 7071 & > span:last-child { 7072 margin-top: var(--ck-spacing-medium); 7073 } 7074 } 7075 } 7076} 7077 7078`],sourceRoot:""}]);const w=f},109:(x,A,g)=>{g.d(A,{A:()=>w});
vendor: 4,369 bytes, lines 7078-7163
7078var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-spinner-container{display:block;position:relative}.ck.ck-spinner{left:0;margin:0 auto;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:1}:root{--ck-toolbar-spinner-size:18px}.ck.ck-spinner-container{animation:ck-spinner-rotate 1.5s linear infinite;height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}@media (prefers-reduced-motion:reduce){.ck.ck-spinner-container{animation-duration:3s}}.ck.ck-spinner{border:2px solid var(--ck-color-text);border-radius:50%;border-top:2px solid transparent;height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}@keyframes ck-spinner-rotate{to{transform:rotate(1turn)}}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/spinner/spinner.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/spinner/spinner.css"],names:[],mappings:"AASA,yBACC,aAAc,CACd,iBACD,CAEA,eAGC,MAAO,CAEP,aAAc,CAJd,iBAAkB,CAGlB,OAAQ,CAFR,OAAQ,CAIR,0BAA2B,CAC3B,SACD,CCjBA,MACC,8BACD,CAEA,yBAGC,gDAAiD,CADjD,qCAAsC,CADtC,oCAOD,CAHC,uCALD,yBAME,qBAEF,CADC,CAGD,eAKC,qCAA6B,CAF7B,iBAAkB,CAElB,gCAA6B,CAH7B,qCAAsC,CADtC,oCAKD,CAEA,6BACC,GACC,uBACD,CACD",sourcesContent:[`/* 7079 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7080 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7081 */ 7082 7083:root { 7084 --ck-toolbar-spinner-size: 18px; 7085} 7086 7087.ck.ck-spinner-container { 7088 display: block; 7089 position: relative; 7090} 7091 7092.ck.ck-spinner { 7093 position: absolute; 7094 top: 50%; 7095 left: 0; 7096 right: 0; 7097 margin: 0 auto; 7098 transform: translateY(-50%); 7099 z-index: 1; 7100} 7101`,`/* 7102 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7103 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7104 */ 7105 7106:root { 7107 --ck-toolbar-spinner-size: 18px; 7108} 7109 7110.ck.ck-spinner-container { 7111 width: var(--ck-toolbar-spinner-size); 7112 height: var(--ck-toolbar-spinner-size); 7113 animation: 1.5s infinite ck-spinner-rotate linear; 7114 7115 @media (prefers-reduced-motion: reduce) { 7116 animation-duration: 3s; 7117 } 7118} 7119 7120.ck.ck-spinner { 7121 width: var(--ck-toolbar-spinner-size); 7122 height: var(--ck-toolbar-spinner-size); 7123 border-radius: 50%; 7124 border: 2px solid var(--ck-color-text); 7125 border-top-color: transparent; 7126} 7127 7128@keyframes ck-spinner-rotate { 7129 to { 7130 transform: rotate(360deg) 7131 } 7132} 7133`],sourceRoot:""}]);const w=f},1671:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 7134 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7135 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7136 */ 7137 7138/* 7139 * This fixes a problem in Firefox when the initial height of the complement does not match the number of rows. 7140 * This bug is especially visible when rows=1. 7141 */ 7142.ck-textarea { 7143 overflow-x: hidden 7144} 7145`],sourceRoot:""}]);const w=f},2710:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 7146 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7147 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7148 */ 7149 7150.ck.ck-block-toolbar-button { 7151 position: absolute; 7152 z-index: var(--ck-z-default); 7153} 7154`,`/* 7155 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7156 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7157 */ 7158 7159:root { 7160 --ck-color-block-toolbar-button: var(--ck-color-text); 7161 --ck-block-toolbar-button-size: var(--ck-font-size-normal); 7162} 7163
7164.ck.ck-block-toolbar-button { 7165 color: var(--ck-color-block-toolbar-button); 7166 font-size: var(--ck-block-toolbar-size); 7167} 7168`],sourceRoot:""}]);const w=f},9677:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);border-radius:0;padding:0 var(--ck-spacing-small)}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar .ck.ck-toolbar__separator{background:var(--ck-color-toolbar-border);height:var(--ck-icon-size);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck.ck-toolbar:focus{outline:none}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBAC
7168D,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eAGC,6CAA8C,CAE9C,+CAAgD,CCFhD,eAAgB,CDChB,iCAuGD,CCtGC,qEAEC,qCAED,CDFA,yCAIC,yCAA0C,CAH1C,0BAA2B,CAU3B,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAGD,qBACC,YACD,CAEA,qCACC,QACD,CAaA,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:[`/* 7169 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7170 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7171 */ 7172 7173@import "../../mixins/_unselectable.css"; 7174 7175.ck.ck-toolbar { 7176 @mixin ck-unselectable; 7177 7178 display: flex; 7179 flex-flow: row nowrap; 7180 align-items: center; 7181 7182 & > .ck-toolbar__items { 7183 display: flex; 7184 flex-flow: row wrap; 7185 align-items: center; 7186 flex-grow: 1; 7187 7188 } 7189 7190 & .ck.ck-toolbar__separator { 7191 display: inline-block; 7192 7193 /* 7194 * A leading or trailing separator makes no sense (separates from nothing on one side). 7195 * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and 7196 * moved to another toolbar in the dropdown. 7197 */ 7198 &:first-child, 7199 &:last-child { 7200 display: none; 7201 } 7202 } 7203 7204 & .ck-toolbar__line-break { 7205 flex-basis: 100%; 7206 } 7207 7208 &.ck-toolbar_grouping > .ck-toolbar__items { 7209 flex-wrap: nowrap; 7210 } 7211 7212 &.ck-toolbar_vertical > .ck-toolbar__items { 7213 flex-direction: column; 7214 } 7215 7216 &.ck-toolbar_floating > .ck-toolbar__items { 7217 flex-wrap: nowrap; 7218 } 7219 7220 & > .ck.ck-toolbar__grouped-dropdown { 7221 & > .ck-dropdown__button .ck-dropdown__arrow { 7222 display: none; 7223 } 7224 } 7225} 7226`,`/* 7227 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7228 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7229 */ 7230 7231/** 7232 * Makes element unselectable. 7233 */ 7234@define-mixin ck-unselectable { 7235 -moz-user-select: none; 7236 -webkit-user-select: none; 7237 -ms-user-select: none; 7238 user-select: none 7239} 7240`,`/* 7241 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7242 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7243 */ 7244 7245@import "../../../mixins/_rounded.css"; 7246@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css"; 7247 7248.ck.ck-toolbar { 7249 @mixin ck-rounded-corners; 7250 7251 background: var(--ck-color-toolbar-background); 7252 padding: 0 var(--ck-spacing-small); 7253 border: 1px solid var(--ck-color-toolbar-border); 7254 7255 & .ck.ck-toolbar__separator { 7256 height: var(--ck-icon-size); 7257 width: 1px; 7258 min-width: 1px; 7259 background: var(--ck-color-toolbar-border); 7260 7261 /* 7262 * These margins make the separators look better in balloon toolbars (when aligned with the "tip"). 7263 * See https://github.com/ckeditor/ckeditor5/issues/7493. 7264 */ 7265 margin-top: var(--ck-spacing-small); 7266 margin-bottom: var(--ck-spacing-small); 7267 } 7268 7269 & .ck-toolbar__line-break { 7270 height: 0; 7271 } 7272 7273 & > .ck-toolbar__items { 7274 & > *:not(.ck-toolbar__line-break) { 7275 /* (#11) Separate toolbar items. */ 7276 margin-right: var(--ck-spacing-small); 7277 } 7278 7279 /* Don't display a separator after an empty items container, for instance, 7280 when all items were grouped */ 7281 &:empty + .ck.ck-toolbar__separator { 7282 display: none; 7283 } 7284 } 7285 7286 & > .ck-toolbar__items > *:not(.ck-toolbar__line-break), 7287 & > .ck.ck-toolbar__grouped-dropdown { 7288 /* Make sure items wrapped to the next line have v-spacing */ 7289 margin-top: var(--ck-spacing-small); 7290 margin-bottom: var(--ck-spacing-small); 7291 } 7292 7293 &.ck-toolbar_vertical { 7294 /* Items in a vertical toolbar span the entire width. */ 7295 padding: 0; 7296 7297 /* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */ 7298 & > .ck-toolbar__items > .ck { 7299 /* Items in a vertical toolbar should span the horizontal space. */ 7300 width: 100%; 7301 7302 /* Items in a vertical toolbar should have no margin. */ 7303 margin: 0; 7304 7305 /* Items in a vertical toolbar span the entire width so rounded corners are pointless. */ 7306 border-radius: 0; 7307 } 7308 } 7309 7310 &.ck-toolbar_compact { 7311 /* No spacing around items. */ 7312 padding: 0; 7313 7314 & > .ck-toolbar__items > * { 7315 /* Compact toolbar items have no spacing between them. */ 7316 margin: 0; 7317 7318 /* "Middle" children should have no rounded corners. */ 7319 &:not(:first-child):not(:last-child) { 7320 border-radius: 0; 7321 } 7322 } 7323 } 7324 7325 & > .ck.ck-toolbar__grouped-dropdown { 7326 /* 7327 * Dropdown button has asymmetric padding to fit the arrow. 7328 * This button has no arrow so let's revert that padding back to normal. 7329 */ 7330 & > .ck.ck-button.ck-dropdown__button { 7331 padding-left: var(--ck-spacing-tiny); 7332 } 7333 } 7334 7335 /* A drop-down containing the nested toolbar with configured items. */ 7336 & .ck-toolbar__nested-toolbar-dropdown { 7337 /* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */ 7338 & > .ck-dropdown__panel { 7339 min-width: auto; 7340 } 7341 7342 & > .ck-button > .ck-button__label { 7343 max-width: 7em; 7344 width: auto; 7345 } 7346 } 7347 7348 &:focus { 7349 outline: none; 7350 } 7351 7352 .ck-toolbar-container & { 7353 border: 0; 7354 } 7355} 7356 7357/* stylelint-disable */ 7358 7359/* 7360 * Styles for RTL toolbars. 7361 *
7362 * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir" 7363 * because its parent is not controlled by the editor framework. 7364 */ 7365[dir="rtl"] .ck.ck-toolbar, 7366.ck.ck-toolbar[dir="rtl"] { 7367 & > .ck-toolbar__items > .ck { 7368 margin-right: 0; 7369 } 7370 7371 &:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck { 7372 /* (#11) Separate toolbar items. */ 7373 margin-left: var(--ck-spacing-small); 7374 } 7375 7376 & > .ck-toolbar__items > .ck:last-child { 7377 margin-left: 0; 7378 } 7379 7380 &.ck-toolbar_compact > .ck-toolbar__items > .ck { 7381 /* No rounded corners on the right side of the first child. */ 7382 &:first-child { 7383 border-top-left-radius: 0; 7384 border-bottom-left-radius: 0; 7385 } 7386 7387 /* No rounded corners on the left side of the last child. */ 7388 &:last-child { 7389 border-top-right-radius: 0; 7390 border-bottom-right-radius: 0; 7391 } 7392 } 7393 7394 /* Separate the the separator form the grouping dropdown when some items are grouped. */ 7395 & > .ck.ck-toolbar__separator { 7396 margin-left: var(--ck-spacing-small); 7397 } 7398 7399 /* Some spacing between the items and the separator before the grouped items dropdown. */ 7400 &.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) { 7401 margin-left: var(--ck-spacing-small); 7402 } 7403} 7404 7405/* 7406 * Styles for LTR toolbars. 7407 * 7408 * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir" 7409 * because its parent is not controlled by the editor framework. 7410 */ 7411[dir="ltr"] .ck.ck-toolbar, 7412.ck.ck-toolbar[dir="ltr"] { 7413 & > .ck-toolbar__items > .ck:last-child { 7414 margin-right: 0; 7415 } 7416 7417 &.ck-toolbar_compact > .ck-toolbar__items > .ck { 7418 /* No rounded corners on the right side of the first child. */ 7419 &:first-child { 7420 border-top-right-radius: 0; 7421 border-bottom-right-radius: 0; 7422 } 7423 7424 /* No rounded corners on the left side of the last child. */ 7425 &:last-child { 7426 border-top-left-radius: 0; 7427 border-bottom-left-radius: 0; 7428 } 7429 } 7430 7431 /* Separate the the separator form the grouping dropdown when some items are grouped. */ 7432 & > .ck.ck-toolbar__separator { 7433 margin-right: var(--ck-spacing-small); 7434 } 7435 7436 /* Some spacing between the items and the separator before the grouped items dropdown. */ 7437 &.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) { 7438 margin-right: var(--ck-spacing-small); 7439 } 7440} 7441 7442/* stylelint-enable */ 7443`,`/* 7444 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7445 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7446 */ 7447 7448/** 7449 * Implements rounded corner interface for .ck-rounded-corners class. 7450 * 7451 * @see $ck-border-radius 7452 */ 7453@define-mixin ck-rounded-corners { 7454 border-radius: 0; 7455 7456 .ck-rounded-corners &, 7457 &.ck-rounded-corners { 7458 border-radius: var(--ck-border-radius); 7459 @mixin-content; 7460 } 7461} 7462`],sourceRoot:""}]);const w=f},9205:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.id,".ck.ck-balloon-panel.ck-tooltip{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;z-index:calc(var(--ck-z-dialog) + 100);--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-tooltip-text-padding:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);box-shadow:none;padding:0 var(--ck-spacing-medium)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip.ck-tooltip_multi-line .ck-tooltip__text{display:inline-block;max-width:200px;padding:var(--ck-tooltip-text-padding) 0;white-space:break-spaces}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAOA,gCCEC,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBAAgB,CDFhB,sCAAyC,CEFzC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,6BAA8B,CAC9B,8DAA+D,CAkB/D,eAAgB,CAhBhB,kCFJD,CEMC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAEA,wEAEC,oBAAqB,CAErB,eAAgB,CADhB,wCAAyC,CAFzC,wBAID,CAMA,uCACC,YACD",sourcesContent:[`/* 7463 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7464 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7465 */ 7466 7467@import "../../mixins/_unselectable.css"; 7468 7469.ck.ck-balloon-panel.ck-tooltip { 7470 @mixin ck-unselectable; 7471 7472 z-index: calc( var(--ck-z-dialog) + 100 ); 7473} 7474`,`/* 7475 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7476 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7477 */ 7478 7479/** 7480 * Makes element unselectable. 7481 */ 7482@define-mixin ck-unselectable { 7483 -moz-user-select: none; 7484 -webkit-user-select: none; 7485 -ms-user-select: none; 7486 user-select: none 7487} 7488`,`/* 7489 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7490 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7491 */ 7492 7493@import "../../../mixins/_rounded.css"; 7494 7495.ck.ck-balloon-panel.ck-tooltip { 7496 --ck-balloon-border-width: 0px; 7497 --ck-balloon-arrow-offset: 0px; 7498 --ck-balloon-arrow-half-width: 4px; 7499 --ck-balloon-arrow-height: 4px; 7500 --ck-tooltip-text-padding: 4px; 7501 --ck-color-panel-background: var(--ck-color-tooltip-background); 7502 7503 padding: 0 var(--ck-spacing-medium); 7504 7505 & .ck-tooltip__text { 7506 font-size: .9em; 7507 line-height: 1.5; 7508 color: var(--ck-color-tooltip-text); 7509 } 7510 7511 &.ck-tooltip_multi-line .ck-tooltip__text { 7512 white-space: break-spaces; 7513 display: inline-block; 7514 padding: var(--ck-tooltip-text-padding) 0; 7515 max-width: 200px; 7516 } 7517 7518 /* Reset balloon panel styles */ 7519 box-shadow: none; 7520 7521 /* Hide the default shadow of the .ck-balloon-panel tip */ 7522 &::before { 7523 display: none; 7524 } 7525} 7526`],sourceRoot:""}]);const w=f},7676:(x,A,g)=>{g.d(A,{A:()=>w});
7526var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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}
7526.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,
7526CAIzD,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:[`/* 7527 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7528 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7529 */ 7530 7531/** 7532 * A class which hides an element in DOM. 7533 */ 7534.ck-hidden { 7535 /* Override selector specificity. Otherwise, all elements with some display 7536 style defined will override this one, which is not a desired result. */ 7537 display: none !important; 7538} 7539`,`/* 7540 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7541 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7542 */ 7543 7544:root { 7545 --ck-z-default: 1; 7546 --ck-z-panel: calc( var(--ck-z-default) + 999 ); 7547 --ck-z-dialog: 9999; 7548} 7549`,`/* 7550 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7551 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7552 */ 7553 7554/** 7555 * A class that disables all transitions of the element and its children. 7556 */ 7557.ck-transitions-disabled, 7558.ck-transitions-disabled * { 7559 transition: none !important; 7560} 7561`,`/* 7562 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7563 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7564 */ 7565 7566:root { 7567 --ck-powered-by-line-height: 10px; 7568 --ck-powered-by-padding-vertical: 2px; 7569 --ck-powered-by-padding-horizontal: 4px; 7570 --ck-powered-by-text-color: hsl(0, 0%, 31%); 7571 --ck-powered-by-border-radius: var(--ck-border-radius); 7572 --ck-powered-by-background: hsl(0, 0%, 100%); 7573 --ck-powered-by-border-color: var(--ck-color-focus-border); 7574} 7575 7576.ck.ck-balloon-panel.ck-powered-by-balloon { 7577 --ck-border-radius: var(--ck-powered-by-border-radius); 7578 7579 box-shadow: none; 7580 background: var(--ck-powered-by-background); 7581 min-height: unset; 7582 z-index: calc( var(--ck-z-panel) - 1 ); 7583 7584 & .ck.ck-powered-by { 7585 line-height: var(--ck-powered-by-line-height); 7586 7587 & a { 7588 cursor: pointer; 7589 display: flex; 7590 align-items: center; 7591 opacity: .66; 7592 filter: grayscale(80%); 7593 line-height: var(--ck-powered-by-line-height); 7594 padding: var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal); 7595 } 7596 7597 & .ck-powered-by__label { 7598 font-size: 7.5px; 7599 letter-spacing: -.2px; 7600 padding-left: 2px; 7601 text-transform: uppercase; 7602 font-weight: bold; 7603 margin-right: 4px; 7604 cursor: pointer; 7605 line-height: normal; 7606 color: var(--ck-powered-by-text-color); 7607 7608 } 7609 7610 & .ck-icon { 7611 display: block; 7612 cursor: pointer; 7613 } 7614 7615 &:hover { 7616 & a { 7617 filter: grayscale(0%); 7618 opacity: 1; 7619 } 7620 } 7621 } 7622 7623 &[class*="position_inside"] { 7624 border-color: transparent; 7625 } 7626 7627 &[class*="position_border"] { 7628 border: var(--ck-focus-ring); 7629 border-color: var(--ck-powered-by-border-color); 7630 } 7631} 7632 7633`,`/* 7634 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7635 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7636 */ 7637 7638:root { 7639 --ck-color-base-foreground: hsl(0, 0%, 98%); 7640 --ck-color-base-background: hsl(0, 0%, 100%); 7641 --ck-color-base-border: hsl(220, 6%, 81%); 7642 --ck-color-base-action: hsl(104, 50.2%, 42.5%); 7643 --ck-color-base-focus: hsl(209, 92%, 70%); 7644 --ck-color-base-text: hsl(0, 0%, 20%); 7645 --ck-color-base-active: hsl(218.1, 100%, 58%); 7646 --ck-color-base-active-focus: hsl(218.2, 100%, 52.5%);
7647 --ck-color-base-error: hsl(15, 100%, 43%); 7648 7649 /* -- Generic colors ------------------------------------------------------------------------ */ 7650 7651 --ck-color-focus-border-coordinates: 218, 81.8%, 56.9%; 7652 --ck-color-focus-border: hsl(var(--ck-color-focus-border-coordinates)); 7653 --ck-color-focus-outer-shadow: hsl(212.4, 89.3%, 89%); 7654 --ck-color-focus-disabled-shadow: hsla(209, 90%, 72%,.3); 7655 --ck-color-focus-error-shadow: hsla(9,100%,56%,.3); 7656 --ck-color-text: var(--ck-color-base-text); 7657 --ck-color-shadow-drop: hsla(0, 0%, 0%, 0.15); 7658 --ck-color-shadow-drop-active: hsla(0, 0%, 0%, 0.2); 7659 --ck-color-shadow-inner: hsla(0, 0%, 0%, 0.1); 7660 7661 /* -- Buttons ------------------------------------------------------------------------------- */ 7662 7663 --ck-color-button-default-background: transparent; 7664 --ck-color-button-default-hover-background: hsl(0, 0%, 94.1%); 7665 --ck-color-button-default-active-background: hsl(0, 0%, 94.1%); 7666 --ck-color-button-default-disabled-background: transparent; 7667 7668 --ck-color-button-on-background: hsl(212, 100%, 97.1%); 7669 --ck-color-button-on-hover-background: hsl(211.7, 100%, 92.9%); 7670 --ck-color-button-on-active-background: hsl(211.7, 100%, 92.9%); 7671 --ck-color-button-on-disabled-background: hsl(211, 15%, 95%); 7672 --ck-color-button-on-color: hsl(218.1, 100%, 58%); 7673 7674 7675 --ck-color-button-action-background: var(--ck-color-base-action); 7676 --ck-color-button-action-hover-background: hsl(104, 53.2%, 40.2%); 7677 --ck-color-button-action-active-background: hsl(104, 53.2%, 40.2%); 7678 --ck-color-button-action-disabled-background: hsl(104, 44%, 58%); 7679 --ck-color-button-action-text: var(--ck-color-base-background); 7680 7681 --ck-color-button-save: hsl(120, 100%, 27%); 7682 --ck-color-button-cancel: hsl(15, 100%, 43%); 7683 7684 --ck-color-switch-button-off-background: hsl(0, 0%, 57.6%); 7685 --ck-color-switch-button-off-hover-background: hsl(0, 0%, 49%); 7686 --ck-color-switch-button-on-background: var(--ck-color-button-action-background); 7687 --ck-color-switch-button-on-hover-background: hsl(104, 53.2%, 40.2%); 7688 --ck-color-switch-button-inner-background: var(--ck-color-base-background); 7689 --ck-color-switch-button-inner-shadow: hsla(0, 0%, 0%, 0.1); 7690 7691 /* -- Dropdown ------------------------------------------------------------------------------ */ 7692 7693 --ck-color-dropdown-panel-background: var(--ck-color-base-background); 7694 --ck-color-dropdown-panel-border: var(--ck-color-base-border); 7695 7696 /* -- Dialog -------------------------------------------------------------------------------- */ 7697 7698 --ck-color-dialog-background: var(--ck-custom-background); 7699 --ck-color-dialog-form-header-border: var(--ck-custom-border); 7700 7701 /* -- Input --------------------------------------------------------------------------------- */ 7702 7703 --ck-color-input-background: var(--ck-color-base-background); 7704 --ck-color-input-border: var(--ck-color-base-border); 7705 --ck-color-input-error-border: var(--ck-color-base-error); 7706 --ck-color-input-text: var(--ck-color-base-text); 7707 --ck-color-input-disabled-background: hsl(0, 0%, 95%); 7708 --ck-color-input-disabled-border: var(--ck-color-base-border); 7709 --ck-color-input-disabled-text: hsl(0, 0%, 46%); 7710 7711 /* -- List ---------------------------------------------------------------------------------- */ 7712 7713 --ck-color-list-background: var(--ck-color-base-background); 7714 --ck-color-list-button-hover-background: var(--ck-color-button-default-hover-background); 7715 --ck-color-list-button-on-background: var(--ck-color-button-on-color); 7716 --ck-color-list-button-on-background-focus: var(--ck-color-button-on-color); 7717 --ck-color-list-button-on-text: var(--ck-color-base-background); 7718 7719 /* -- Panel --------------------------------------------------------------------------------- */ 7720 7721 --ck-color-panel-background: var(--ck-color-base-background); 7722 --ck-color-panel-border: var(--ck-color-base-border); 7723 7724 /* -- Toolbar ------------------------------------------------------------------------------- */ 7725 7726 --ck-color-toolbar-background: var(--ck-color-base-background); 7727 --ck-color-toolbar-border: var(--ck-color-base-border); 7728 7729 /* -- Tooltip ------------------------------------------------------------------------------- */ 7730 7731 --ck-color-tooltip-background: var(--ck-color-base-text); 7732 --ck-color-tooltip-text: var(--ck-color-base-background); 7733 7734 /* -- Engine -------------------------------------------------------------------------------- */ 7735 7736 --ck-color-engine-placeholder-text: hsl(0, 0%, 44%); 7737 7738 /* -- Upload -------------------------------------------------------------------------------- */ 7739 7740 --ck-color-upload-bar-background: hsl(209, 92%, 70%); 7741 7742 /* -- Link -------------------------------------------------------------------------------- */ 7743 7744 --ck-color-link-default: hsl(240, 100%, 47%); 7745 --ck-color-link-selected-background: hsla(201, 100%, 56%, 0.1); 7746 --ck-color-link-fake-selection: hsla(201, 100%, 56%, 0.3); 7747 7748 /* -- Search result highlight ---------------------------------------------------------------- */ 7749 7750 --ck-color-highlight-background: hsl(60, 100%, 50%); 7751 7752 /* -- Generic colors ------------------------------------------------------------------------- */ 7753 7754 --ck-color-light-red: hsl(0, 100%, 90%); 7755} 7756`,`/* 7757 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7758 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7759 */ 7760 7761:root { 7762 /** 7763 * An opacity value of disabled UI item. 7764 */ 7765 --ck-disabled-opacity: .5; 7766} 7767`,`/* 7768 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7769 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7770 */ 7771 7772:root { 7773 /** 7774 * The geometry of the of focused element's outer shadow. 7775 */ 7776 --ck-focus-outer-shadow-geometry: 0 0 0 3px; 7777 7778 /** 7779 * A visual style of focused element's outer shadow. 7780 */ 7781 --ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow); 7782 7783 /** 7784 * A visual style of focused element's outer shadow (when disabled). 7785 */ 7786 --ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow); 7787 7788 /** 7789 * A visual style of focused element's outer shadow (when has errors). 7790 */ 7791 --ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow); 7792 7793 /** 7794 * A visual style of focused element's border or outline. 7795 */ 7796 --ck-focus-ring: 1px solid var(--ck-color-focus-border); 7797} 7798`,`/* 7799 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7800 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7801 */ 7802 7803:root { 7804 --ck-font-size-base: 13px; 7805 --ck-line-height-base: 1.84615; 7806 --ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif; 7807 7808 --ck-font-size-tiny: 0.7em; 7809 --ck-font-size-small: 0.75em; 7810 --ck-font-size-normal: 1em; 7811 --ck-font-size-big: 1.4em; 7812 --ck-font-size-large: 1.8em; 7813} 7814`,`/* 7815 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7816 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7817 */ 7818 7819:root { 7820 /* This is super-important. This is **manually** adjusted so a button without an icon 7821 is never smaller than a button with icon, additionally making sure that text-less buttons 7822 are perfect squares. The value is also shared by other components which should stay "in-line" 7823 with buttons. */ 7824 --ck-ui-component-min-height: 2.3em; 7825} 7826 7827/** 7828 * Resets an element, ignoring its children. 7829 */ 7830.ck.ck-reset, 7831.ck.ck-reset_all, 7832.ck-reset_all *:not(.ck-reset_all-excluded *) { 7833 box-sizing: border-box; 7834 width: auto; 7835 height: auto; 7836 position: static; 7837
7838 /* Do not include inheritable rules here. */ 7839 margin: 0; 7840 padding: 0; 7841 border: 0; 7842 background: transparent; 7843 text-decoration: none; 7844 vertical-align: middle; 7845 transition: none; 7846 7847 /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */ 7848 word-wrap: break-word; 7849} 7850 7851/** 7852 * Resets an element AND its children. 7853 */ 7854.ck.ck-reset_all, 7855.ck-reset_all *:not(.ck-reset_all-excluded *) { 7856 /* These are rule inherited by all children elements. */ 7857 border-collapse: collapse; 7858 font: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face); 7859 color: var(--ck-color-text); 7860 text-align: left; 7861 white-space: nowrap; 7862 cursor: auto; 7863 float: none; 7864} 7865 7866.ck-reset_all { 7867 & .ck-rtl *:not(.ck-reset_all-excluded *) { 7868 text-align: right; 7869 } 7870 7871 & iframe:not(.ck-reset_all-excluded *) { 7872 /* For IE */ 7873 vertical-align: inherit; 7874 } 7875 7876 & textarea:not(.ck-reset_all-excluded *) { 7877 white-space: pre-wrap; 7878 } 7879 7880 & textarea:not(.ck-reset_all-excluded *), 7881 & input[type="text"]:not(.ck-reset_all-excluded *), 7882 & input[type="password"]:not(.ck-reset_all-excluded *) { 7883 cursor: text; 7884 } 7885 7886 & textarea[disabled]:not(.ck-reset_all-excluded *), 7887 & input[type="text"][disabled]:not(.ck-reset_all-excluded *), 7888 & input[type="password"][disabled]:not(.ck-reset_all-excluded *) { 7889 cursor: default; 7890 } 7891 7892 & fieldset:not(.ck-reset_all-excluded *) { 7893 padding: 10px; 7894 border: 2px groove hsl(255, 7%, 88%); 7895 } 7896 7897 & button:not(.ck-reset_all-excluded *)::-moz-focus-inner { 7898 /* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */ 7899 padding: 0; 7900 border: 0 7901 } 7902} 7903 7904/** 7905 * Default UI rules for RTL languages. 7906 */ 7907.ck[dir="rtl"], 7908.ck[dir="rtl"] .ck { 7909 text-align: right; 7910} 7911`,`/* 7912 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7913 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7914 */ 7915 7916/** 7917 * Default border-radius value. 7918 */ 7919:root{ 7920 --ck-border-radius: 2px; 7921} 7922`,`/* 7923 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7924 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7925 */ 7926 7927:root { 7928 /** 7929 * A visual style of element's inner shadow (i.e. input). 7930 */ 7931 --ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset; 7932 7933 /** 7934 * A visual style of element's drop shadow (i.e. panel). 7935 */ 7936 --ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop); 7937 7938 /** 7939 * A visual style of element's active shadow (i.e. comment or suggestion). 7940 */ 7941 --ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active); 7942} 7943`,`/* 7944 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7945 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7946 */ 7947 7948:root { 7949 --ck-spacing-unit: 0.6em; 7950 --ck-spacing-large: calc(var(--ck-spacing-unit) * 1.5); 7951 --ck-spacing-standard: var(--ck-spacing-unit); 7952 --ck-spacing-medium: calc(var(--ck-spacing-unit) * 0.8); 7953 --ck-spacing-small: calc(var(--ck-spacing-unit) * 0.5); 7954 --ck-spacing-tiny: calc(var(--ck-spacing-unit) * 0.3); 7955 --ck-spacing-extra-tiny: calc(var(--ck-spacing-unit) * 0.16); 7956} 7957`],sourceRoot:""}]);const w=f},695:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x
vendor: 8,791 bytes, line 7957
7957.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}@media (prefers-reduced-motion:reduce){.ck .ck-widget{transition:none}}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{box-shadow:var(--ck-inner-shadow),0 0}@media (forced-colors:none){.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background)}}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused:not(td,th),.ck .ck-editor__nested-editable:focus:not(td,th){border:var(--ck-focus-ring);outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}@media (prefers-reduced-motion:reduce){.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{transition:none}}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}@media (prefers-reduced-motion:reduce){.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{transition:none}}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widget.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CChFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAcD,CAZC,uCAND,eAOE,eAWF,CAVC,CAEA,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAoBD,CAhBC,yGCrCA,qCDoDA,CE/CA,4BACC,yGFmCC,iEEjCD,CACD,CFwCC,+HG/CD,2BAA2B,CAD3B,YHkDC,CAKD,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAwCD,CA3BC,uCAzBD,4EA0BE,eA0BF,CAzBC,CAEA,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAeD,CAVC,kHACC,SAAU,CAGV,+DAKD,CAHC,uCAND,kHAOE,eAEF,CADC,CAKF,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:[
7957`/* 7958 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 7959 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 7960 */ 7961 7962:root { 7963 --ck-color-resizer: var(--ck-color-focus-border); 7964 --ck-color-resizer-tooltip-background: hsl(0, 0%, 15%); 7965 --ck-color-resizer-tooltip-text: hsl(0, 0%, 95%); 7966 7967 --ck-resizer-border-radius: var(--ck-border-radius); 7968 --ck-resizer-tooltip-offset: 10px; 7969 --ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px); 7970} 7971 7972.ck .ck-widget { 7973 /* This is neccessary for type around UI to be positioned properly. */ 7974 position: relative; 7975} 7976 7977.ck .ck-widget.ck-widget_with-selection-handle { 7978 /* Make the widget wrapper a relative positioning container for the drag handle. */ 7979 position: relative; 7980 7981 & .ck-widget__selection-handle { 7982 position: absolute; 7983 7984 & .ck-icon { 7985 /* Make sure the icon in not a subject to font-size or line-height to avoid 7986 unnecessary spacing around it. */ 7987 display: block; 7988 } 7989 } 7990 7991 /* Show the selection handle on mouse hover over the widget, but not for nested widgets. */ 7992 &:hover > .ck-widget__selection-handle { 7993 visibility: visible; 7994 } 7995 7996 /* Show the selection handle when the widget is selected, but not for nested widgets. */ 7997 &.ck-widget_selected > .ck-widget__selection-handle { 7998 visibility: visible; 7999 } 8000} 8001 8002.ck .ck-size-view { 8003 background: var(--ck-color-resizer-tooltip-background); 8004 color: var(--ck-color-resizer-tooltip-text); 8005 border: 1px solid var(--ck-color-resizer-tooltip-text); 8006 border-radius: var(--ck-resizer-border-radius); 8007 font-size: var(--ck-font-size-tiny); 8008 display: block; 8009 padding: 0 var(--ck-spacing-small); 8010 height: var(--ck-resizer-tooltip-height); 8011 line-height: var(--ck-resizer-tooltip-height); 8012 8013 &.ck-orientation-top-left, 8014 &.ck-orientation-top-right, 8015 &.ck-orientation-bottom-right, 8016 &.ck-orientation-bottom-left, 8017 &.ck-orientation-above-center { 8018 position: absolute; 8019 } 8020 8021 &.ck-orientation-top-left { 8022 top: var(--ck-resizer-tooltip-offset); 8023 left: var(--ck-resizer-tooltip-offset); 8024 } 8025 8026 &.ck-orientation-top-right { 8027 top: var(--ck-resizer-tooltip-offset); 8028 right: var(--ck-resizer-tooltip-offset); 8029 } 8030 8031 &.ck-orientation-bottom-right { 8032 bottom: var(--ck-resizer-tooltip-offset); 8033 right: var(--ck-resizer-tooltip-offset); 8034 } 8035 8036 &.ck-orientation-bottom-left { 8037 bottom: var(--ck-resizer-tooltip-offset); 8038 left: var(--ck-resizer-tooltip-offset); 8039 } 8040 8041 /* Class applied if the widget is too small to contain the size label */ 8042 &.ck-orientation-above-center { 8043 top: calc(var(--ck-resizer-tooltip-height) * -1); 8044 left: 50%; 8045 transform: translate(-50%); 8046 } 8047} 8048`,`/* 8049 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 8050 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 8051 */ 8052 8053@import "../mixins/_focus.css"; 8054@import "../mixins/_shadow.css"; 8055@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css"; 8056 8057:root { 8058 --ck-widget-outline-thickness: 3px; 8059 --ck-widget-handler-icon-size: 16px; 8060 --ck-widget-handler-animation-duration: 200ms; 8061 --ck-widget-handler-animation-curve: ease; 8062 8063 --ck-color-widget-blurred-border: hsl(0, 0%, 87%); 8064 --ck-color-widget-hover-border: hsl(43, 100%, 62%); 8065 --ck-color-widget-editable-focus-background: var(--ck-color-base-background); 8066 --ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background); 8067} 8068 8069.ck .ck-widget { 8070 outline-width: var(--ck-widget-outline-thickness); 8071 outline-style: solid; 8072 outline-color: transparent; 8073 transition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve); 8074 8075 @media (prefers-reduced-motion: reduce) { 8076 transition: none; 8077 } 8078 8079 &.ck-widget_selected, 8080 &.ck-widget_selected:hover { 8081 outline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border); 8082 } 8083 8084 &:hover { 8085 outline-color: var(--ck-color-widget-hover-border); 8086 } 8087} 8088 8089.ck .ck-editor__nested-editable { 8090 border: 1px solid transparent; 8091 8092 /* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view. 8093 These styles show a different border for a blink of an eye, so \`:focus\` need to have same styles applied. */ 8094 &.ck-editor__nested-editable_focused, 8095 &:focus {
8096 @mixin ck-box-shadow var(--ck-inner-shadow); 8097 @mixin ck-media-default-colors { 8098 background-color: var(--ck-color-widget-editable-focus-background); 8099 } 8100 8101 /** 8102 * Focus border should not be applied to table cells because it overrides the default table cell border color. 8103 * In other words - in some scenarios, the part of the table cell border has focus color style, which is not expected behavior 8104 * because it should be the same as the table cell border color. 8105 */ 8106 &:not(td, th) { 8107 @mixin ck-focus-ring; 8108 } 8109 } 8110} 8111 8112.ck .ck-widget.ck-widget_with-selection-handle { 8113 & .ck-widget__selection-handle { 8114 padding: 4px; 8115 box-sizing: border-box; 8116 8117 /* Background and opacity will be animated as the handler shows up or the widget gets selected. */ 8118 background-color: transparent; 8119 opacity: 0; 8120 8121 /* Transition: 8122 * background-color for the .ck-widget_selected state change, 8123 * visibility for hiding the handler, 8124 * opacity for the proper look of the icon when the handler disappears. */ 8125 transition: 8126 background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), 8127 visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), 8128 opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve); 8129 8130 /* Make only top corners round. */ 8131 border-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0; 8132 8133 /* Place the drag handler outside the widget wrapper. */ 8134 transform: translateY(-100%); 8135 left: calc(0px - var(--ck-widget-outline-thickness)); 8136 top: 0; 8137 8138 @media (prefers-reduced-motion: reduce) { 8139 transition: none; 8140 } 8141 8142 & .ck-icon { 8143 /* Make sure the dimensions of the icon are independent of the fon-size of the content. */ 8144 width: var(--ck-widget-handler-icon-size); 8145 height: var(--ck-widget-handler-icon-size); 8146 color: var(--ck-color-widget-drag-handler-icon-color); 8147 8148 /* The "selected" part of the icon is invisible by default */ 8149 & .ck-icon__selected-indicator { 8150 opacity: 0; 8151 8152 /* Note: The animation is longer on purpose. Simply feels better. */ 8153 transition: opacity 300ms var(--ck-widget-handler-animation-curve); 8154 8155 @media (prefers-reduced-motion: reduce) { 8156 transition: none; 8157 } 8158 } 8159 } 8160 8161 /* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */ 8162 &:hover .ck-icon .ck-icon__selected-indicator { 8163 opacity: 1; 8164 } 8165 } 8166 8167 /* Show the selection handler on mouse hover over the widget, but not for nested widgets. */ 8168 &:hover > .ck-widget__selection-handle { 8169 opacity: 1; 8170 background-color: var(--ck-color-widget-hover-border); 8171 } 8172 8173 /* Show the selection handler when the widget is selected, but not for nested widgets. */ 8174 &.ck-widget_selected, 8175 &.ck-widget_selected:hover { 8176 & > .ck-widget__selection-handle { 8177 opacity: 1; 8178 background-color: var(--ck-color-focus-border); 8179 8180 /* When the widget is selected, notify the user using the proper look of the icon. */ 8181 & .ck-icon .ck-icon__selected-indicator { 8182 opacity: 1; 8183 } 8184 } 8185 } 8186} 8187 8188/* In a RTL environment, align the selection handler to the right side of the widget */ 8189/* stylelint-disable-next-line no-descending-specificity */ 8190.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle { 8191 left: auto; 8192 right: calc(0px - var(--ck-widget-outline-thickness)); 8193} 8194 8195/* https://github.com/ckeditor/ckeditor5/issues/6415 */ 8196.ck.ck-editor__editable.ck-read-only .ck-widget { 8197 /* Prevent the :hover outline from showing up because of the used outline-color transition. */ 8198 transition: none; 8199 8200 &:not(.ck-widget_selected) { 8201 /* Disable visual effects of hover/active widget when CKEditor is in readOnly mode. 8202 * See: https://github.com/ckeditor/ckeditor5/issues/1261 8203 * 8204 * Leave the unit because this custom property is used in calc() by other features. 8205 * See: https://github.com/ckeditor/ckeditor5/issues/6775 8206 */ 8207 --ck-widget-outline-thickness: 0px; 8208 } 8209 8210 &.ck-widget_with-selection-handle { 8211 & .ck-widget__selection-handle, 8212 & .ck-widget__selection-handle:hover { 8213 background: var(--ck-color-widget-blurred-border); 8214 } 8215 } 8216} 8217 8218/* Style the widget when it's selected but the editable it belongs to lost focus. */ 8219/* stylelint-disable-next-line no-descending-specificity */ 8220.ck.ck-editor__editable.ck-blurred .ck-widget { 8221 &.ck-widget_selected, 8222 &.ck-widget_selected:hover { 8223 outline-color: var(--ck-color-widget-blurred-border); 8224 8225 &.ck-widget_with-selection-handle { 8226 & > .ck-widget__selection-handle, 8227 & > .ck-widget__selection-handle:hover { 8228 background: var(--ck-color-widget-blurred-border); 8229 } 8230 } 8231 } 8232} 8233 8234.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child, 8235.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {
8236 /* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable. 8237 In fact, anything with overflow: hidden. 8238 https://github.com/ckeditor/ckeditor5-block-quote/issues/28 8239 https://github.com/ckeditor/ckeditor5-widget/issues/44 8240 https://github.com/ckeditor/ckeditor5-widget/issues/66 */ 8241 margin-top: calc(1em + var(--ck-widget-handler-icon-size)); 8242} 8243`,`/* 8244 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 8245 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 8246 */ 8247 8248/** 8249 * A helper to combine multiple shadows. 8250 */ 8251@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 { 8252 box-shadow: $shadowA, $shadowB; 8253} 8254 8255/** 8256 * Gives an element a drop shadow so it looks like a floating panel. 8257 */ 8258@define-mixin ck-drop-shadow { 8259 @mixin ck-box-shadow var(--ck-drop-shadow); 8260} 8261`,`/* 8262 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 8263 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 8264 */ 8265 8266@define-mixin ck-media-forced-colors { 8267 @media (forced-colors: active) { 8268 & { 8269 @mixin-content; 8270 } 8271 } 8272} 8273 8274@define-mixin ck-media-default-colors { 8275 @media (forced-colors: none) { 8276 & { 8277 @mixin-content; 8278 } 8279 } 8280} 8281`,`/* 8282 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 8283 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 8284 */ 8285 8286/** 8287 * A visual style of focused element's border. 8288 */ 8289@define-mixin ck-focus-ring { 8290 /* Disable native outline. */ 8291 outline: none; 8292 border: var(--ck-focus-ring) 8293} 8294`],sourceRoot:""}]);const w=f},4095:(x,A,g)=>{g.d(A,{A:()=>w});var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x.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:[`/* 8295 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 8296 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 8297 */ 8298 8299.ck .ck-widget_with-resizer { 8300 /* Make the widget wrapper a relative positioning container for the drag handle. */ 8301 position: relative; 8302} 8303 8304.ck .ck-widget__resizer { 8305 display: none; 8306 position: absolute; 8307 8308 /* The wrapper itself should not interfere with the pointer device, only the handles should. */ 8309 pointer-events: none; 8310 8311 left: 0; 8312 top: 0; 8313} 8314 8315.ck-focused .ck-widget_with-resizer.ck-widget_selected { 8316 & > .ck-widget__resizer { 8317 display: block; 8318 } 8319} 8320 8321.ck .ck-widget__resizer__handle { 8322 position: absolute; 8323 8324 /* Resizers are the only UI elements that should interfere with a pointer device. */ 8325 pointer-events: all; 8326 8327 &.ck-widget__resizer__handle-top-left, 8328 &.ck-widget__resizer__handle-bottom-right { 8329 cursor: nwse-resize; 8330 } 8331 8332 &.ck-widget__resizer__handle-top-right, 8333 &.ck-widget__resizer__handle-bottom-left { 8334 cursor: nesw-resize; 8335 } 8336} 8337`,`/* 8338 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 8339 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 8340 */ 8341 8342:root { 8343 --ck-resizer-size: 10px; 8344 8345 /* Set the resizer with a 50% offset. */ 8346 --ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px); 8347 --ck-resizer-border-width: 1px; 8348} 8349 8350.ck .ck-widget__resizer { 8351 outline: 1px solid var(--ck-color-resizer); 8352} 8353 8354.ck .ck-widget__resizer__handle { 8355 width: var(--ck-resizer-size); 8356 height: var(--ck-resizer-size); 8357 background: var(--ck-color-focus-border); 8358 border: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%); 8359 border-radius: var(--ck-resizer-border-radius); 8360 8361 &.ck-widget__resizer__handle-top-left { 8362 top: var(--ck-resizer-offset); 8363 left: var(--ck-resizer-offset); 8364 } 8365 8366 &.ck-widget__resizer__handle-top-right { 8367 top: var(--ck-resizer-offset); 8368 right: var(--ck-resizer-offset); 8369 } 8370 8371 &.ck-widget__resizer__handle-bottom-right { 8372 bottom: var(--ck-resizer-offset); 8373 right: var(--ck-resizer-offset); 8374 } 8375 8376 &.ck-widget__resizer__handle-bottom-left { 8377 bottom: var(--ck-resizer-offset); 8378 left: var(--ck-resizer-offset); 8379 } 8380} 8381`],sourceRoot:""}]);const w=f},8508:(x,A,g)=>{g.d(A,{A:()=>w});
8381var y=g(2001),v=g.n(y),_=g(935),f=g.n(_)()(v());f.push([x
vendor: 10,075 bytes, line 8381
8381.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button{transition:none}}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button svg{transition:none}}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button:hover,.ck .ck-widget .ck-widget__type-around__button:hover svg line,.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:none}}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgettypearound.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAwED,CAhEC,uCATD,+CAUE,eA+DF,CA9DC,CAEA,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAwBD,CAlBC,uCAPD,mDAQE,eAiBF,CAhBC,CAEA,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DA4BD,CAtBE,kEACC,oDACD,CAEA,8DACC,wDACD,CAGD,uCAQE,qLACC,cACD,CAEF,CASD,uKA7FD,SAAU,CACV,mBA8FC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAxKD,SAAU,CACV,mBAyKC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAxNF,SAAU,CACV,mBAyNE,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:[
8381`/* 8382 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 8383 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 8384 */ 8385 8386.ck .ck-widget { 8387 /* 8388 * Styles of the type around buttons 8389 */ 8390 & .ck-widget__type-around__button { 8391 display: block; 8392 position: absolute; 8393 overflow: hidden; 8394 z-index: var(--ck-z-default); 8395 8396 & svg { 8397 position: absolute; 8398 top: 50%; 8399 left: 50%; 8400 z-index: calc(var(--ck-z-default) + 2); 8401 } 8402 8403 &.ck-widget__type-around__button_before { 8404 /* Place it in the middle of the outline */ 8405 top: calc(-0.5 * var(--ck-widget-outline-thickness)); 8406 left: min(10%, 30px); 8407 8408 transform: translateY(-50%); 8409 } 8410 8411 &.ck-widget__type-around__button_after { 8412 /* Place it in the middle of the outline */ 8413 bottom: calc(-0.5 * var(--ck-widget-outline-thickness)); 8414 right: min(10%, 30px); 8415 8416 transform: translateY(50%); 8417 } 8418 } 8419 8420 /* 8421 * Styles for the buttons when: 8422 * - the widget is selected, 8423 * - or the button is being hovered (regardless of the widget state). 8424 */ 8425 &.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button, 8426 & > .ck-widget__type-around > .ck-widget__type-around__button:hover { 8427 &::after { 8428 content: ""; 8429 display: block; 8430 position: absolute; 8431 top: 1px; 8432 left: 1px; 8433 z-index: calc(var(--ck-z-default) + 1); 8434 } 8435 } 8436 8437 /* 8438 * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard. 8439 */ 8440 & > .ck-widget__type-around > .ck-widget__type-around__fake-caret { 8441 display: none; 8442 position: absolute; 8443 left: 0; 8444 right: 0; 8445 } 8446 8447 /* 8448 * When the widget is hovered the "fake caret" would normally be narrower than the 8449 * extra outline displayed around the widget. Let's extend the "fake caret" to match 8450 * the full width of the widget. 8451 */ 8452 &:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret { 8453 left: calc( -1 * var(--ck-widget-outline-thickness) ); 8454 right: calc( -1 * var(--ck-widget-outline-thickness) ); 8455 } 8456 8457 /* 8458 * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation). 8459 */ 8460 &.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret { 8461 top: calc( -1 * var(--ck-widget-outline-thickness) - 1px ); 8462 display: block; 8463 } 8464 8465 /* 8466 * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation). 8467 */ 8468 &.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret { 8469 bottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px ); 8470 display: block; 8471 } 8472} 8473 8474/* 8475 * Integration with the read-only mode of the editor. 8476 */ 8477.ck.ck-editor__editable.ck-read-only .ck-widget__type-around { 8478 display: none; 8479} 8480 8481/* 8482 * Integration with the restricted editing mode (feature) of the editor. 8483 */ 8484.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around { 8485 display: none; 8486} 8487 8488/* 8489 * Integration with the #isEnabled property of the WidgetTypeAround plugin. 8490 */ 8491.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around { 8492 display: none; 8493} 8494`,`/* 8495 * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. 8496 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license 8497 */ 8498 8499:root { 8500 --ck-widget-type-around-button-size: 20px; 8501 --ck-color-widget-type-around-button-active: var(--ck-color-focus-border); 8502 --ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border); 8503 --ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border); 8504 --ck-color-widget-type-around-button-radar-start-alpha: 0; 8505 --ck-color-widget-type-around-button-radar-end-alpha: .3; 8506 --ck-color-widget-type-around-button-icon: var(--ck-color-base-background); 8507} 8508 8509@define-mixin ck-widget-type-around-button-visible { 8510 opacity: 1; 8511 pointer-events: auto; 8512} 8513 8514@define-mixin ck-widget-type-around-button-hidden { 8515 opacity: 0; 8516 pointer-events: none; 8517} 8518 8519.ck .ck-widget { 8520 /* 8521 * Styles of the type around buttons 8522 */ 8523 & .ck-widget__type-around__button { 8524 width: var(--ck-widget-type-around-button-size); 8525 height: var(--ck-widget-type-around-button-size); 8526 background: var(--ck-color-widget-type-around-button); 8527 border-radius: 100px; 8528 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); 8529 8530 @mixin ck-widget-type-around-button-hidden; 8531 8532 @media (prefers-reduced-motion: reduce) { 8533 transition: none; 8534 } 8535 8536 & svg { 8537 width: 10px; 8538 height: 8px; 8539 transform: translate(-50%,-50%); 8540 transition: transform .5s ease;
8541 margin-top: 1px; 8542 8543 @media (prefers-reduced-motion: reduce) { 8544 transition: none; 8545 } 8546 8547 & * { 8548 stroke-dasharray: 10; 8549 stroke-dashoffset: 0; 8550 8551 fill: none; 8552 stroke: var(--ck-color-widget-type-around-button-icon); 8553 stroke-width: 1.5px; 8554 stroke-linecap: round; 8555 stroke-linejoin: round; 8556 } 8557 8558 & line { 8559 stroke-dasharray: 7; 8560 } 8561 } 8562 8563 &:hover { 8564 /* 8565 * Display the "sonar" around the button when hovered. 8566 */ 8567 animation: ck-widget-type-around-button-sonar 1s ease infinite; 8568 8569 /* 8570 * Animate active button's icon. 8571 */ 8572 & svg { 8573 & polyline { 8574 animation: ck-widget-type-around-arrow-dash 2s linear; 8575 } 8576 8577 & line { 8578 animation: ck-widget-type-around-arrow-tip-dash 2s linear; 8579 } 8580 } 8581 8582 @media (prefers-reduced-motion: reduce) { 8583 animation: none; 8584 8585 & svg { 8586 & polyline { 8587 animation: none; 8588 } 8589 8590 & line { 8591 animation: none; 8592 } 8593 } 8594 } 8595 } 8596 } 8597 8598 /* 8599 * Show type around buttons when the widget gets selected or being hovered. 8600 */ 8601 &.ck-widget_selected, 8602 &:hover { 8603 & > .ck-widget__type-around > .ck-widget__type-around__button { 8604 @mixin ck-widget-type-around-button-visible; 8605 } 8606 } 8607 8608 /* 8609 * Styles for the buttons when the widget is NOT selected (but the buttons are visible 8610 * and still can be hovered). 8611 */ 8612 &:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button { 8613 background: var(--ck-color-widget-type-around-button-hover); 8614 } 8615 8616 /* 8617 * Styles for the buttons when: 8618 * - the widget is selected, 8619 * - or the button is being hovered (regardless of the widget state). 8620 */ 8621 &.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button, 8622 & > .ck-widget__type-around > .ck-widget__type-around__button:hover { 8623 background: var(--ck-color-widget-type-around-button-active); 8624 8625 &::after { 8626 width: calc(var(--ck-widget-type-around-button-size) - 2px); 8627 height: calc(var(--ck-widget-type-around-button-size) - 2px); 8628 border-radius: 100px; 8629 background: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%); 8630 } 8631 } 8632 8633 /* 8634 * Styles for the "before" button when the widget has a selection handle. Because some space 8635 * is consumed by the handle, the button must be moved slightly to the right to let it breathe. 8636 */ 8637 &.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before { 8638 margin-left: 20px; 8639 } 8640 8641 /* 8642 * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard. 8643 */ 8644 & .ck-widget__type-around__fake-caret { 8645 pointer-events: none; 8646 height: 1px; 8647 animation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards; 8648 8649 /* 8650 * The semi-transparent-outline+background combo improves the contrast 8651 * when the background underneath the fake caret is dark. 8652 */ 8653 outline: solid 1px hsla(0, 0%, 100%, .5); 8654 background: var(--ck-color-base-text); 8655 } 8656 8657 /* 8658 * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation). 8659 * Despite the widget being physically selected in the model, its outline should disappear. 8660 */ 8661 &.ck-widget_selected { 8662 &.ck-widget_type-around_show-fake-caret_before, 8663 &.ck-widget_type-around_show-fake-caret_after { 8664 outline-color: transparent; 8665 } 8666 } 8667 8668 &.ck-widget_type-around_show-fake-caret_before, 8669 &.ck-widget_type-around_show-fake-caret_after { 8670 /* 8671 * When the "fake caret" is visible we simulate that the widget is not selected 8672 * (despite being physically selected), so the outline color should be for the 8673 * unselected widget. 8674 */ 8675 &.ck-widget_selected:hover { 8676 outline-color: var(--ck-color-widget-hover-border); 8677 } 8678 8679 /* 8680 * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation). 8681 * In this state, the type around buttons would collide with the fake carets so they should disappear. 8682 */ 8683 & > .ck-widget__type-around > .ck-widget__type-around__button { 8684 @mixin ck-widget-type-around-button-hidden; 8685 } 8686 8687 /* 8688 * Fake horizontal caret integration with the selection handle. When the caret is visible, simply 8689 * hide the handle because it intersects with the caret (and does not make much sense anyway). 8690 */ 8691 &.ck-widget_with-selection-handle { 8692 &.ck-widget_selected, 8693 &.ck-widget_selected:hover { 8694 & > .ck-widget__selection-handle { 8695 opacity: 0 8696 } 8697 } 8698 } 8699 8700 /* 8701 * Fake horizontal caret integration with the resize UI. When the caret is visible, simply 8702 * hide the resize UI because it creates too much noise. It can be visible when the user 8703 * hovers the widget, though. 8704 */ 8705 &.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer { 8706 opacity: 0 8707 } 8708 } 8709} 8710 8711/* 8712 * Styles for the "before" button when the widget has a selection handle in an RTL environment. 8713 * The selection handler is aligned to the right side of the widget so there is no need to create 8714 * additional space for it next to the "before" button. 8715 */ 8716.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before { 8717 margin-left: 0; 8718 margin-right: 20px; 8719} 8720 8721/* 8722 * Hide type around buttons when the widget is selected as a child of a selected 8723 * nested editable (e.g. mulit-cell table selection). 8724 * 8725 * See https://github.com/ckeditor/ckeditor5/issues/7263. 8726 */ 8727.ck-editor__nested-editable.ck-editor__editable_selected { 8728 & .ck-widget { 8729 &.ck-widget_selected, 8730 &:hover { 8731 & > .ck-widget__type-around > .ck-widget__type-around__button { 8732 @mixin ck-widget-type-around-button-hidden; 8733 } 8734 } 8735 } 8736} 8737 8738/* 8739 * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor). 8740 */ 8741.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) { 8742 background: var(--ck-color-widget-type-around-button-blurred-editable); 8743 8744 & svg * { 8745 stroke: hsl(0,0%,60%); 8746 } 8747} 8748 8749@keyframes ck-widget-type-around-arrow-dash { 8750 0% { 8751 stroke-dashoffset: 10; 8752 } 8753 20%, 100% { 8754 stroke-dashoffset: 0; 8755 } 8756} 8757 8758@keyframes ck-widget-type-around-arrow-tip-dash { 8759 0%, 20% { 8760 stroke-dashoffset: 7; 8761 } 8762 40%, 100% { 8763 stroke-dashoffset: 0; 8764 } 8765} 8766 8767@keyframes ck-widget-type-around-button-sonar { 8768 0% { 8769 box-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha)); 8770 } 8771 50% { 8772 box-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha)); 8773 } 8774 100% { 8775 box-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha)); 8776 } 8777} 8778 8779@keyframes ck-widget-type-around-fake-caret-pulse { 8780 0% { 8781 opacity: 1; 8782 } 8783 49% { 8784 opacity: 1; 8785 } 8786 50% { 8787 opacity: 0; 8788 } 8789 99% { 8790 opacity: 0; 8791 } 8792 100% { 8793 opacity: 1; 8794 } 8795} 8796`],sourceRoot:""}]);const w=f},935:x=>{x.exports=function(A){var g=[];return g.toString=function(){return this.map((function(y){var v="",_=y[5]!==void 0;return y[4]&&(v+="@supports (".concat(y[4],") {")),y[2]&&(v+="@media ".concat(y[2]," {")),_&&(v+="@layer".concat(y[5].length>0?" ".concat(y[5]):""," {")),v+=A(y),_&&(v+="}"),y[2]&&(v+="}"),y[4]&&(v+="}"),v})).join("")},g.i=function(y,v,_,f,w){typeof y=="string"&&(y=[[null,y,void 0]]);var D={};if(_)for(var S=0;S<this.length;S++){var B=this[S][0];B!=null&&(D[B]=!0)}for(var O=0;O<y.length;O++){var L=[].concat(y[O]);_&&D[L[0]]||(w!==void 0&&(L[5]===void 0||(L[1]="@layer".concat(L[5].length>0?" ".concat(L[5]):""," {").concat(L[1],"}")),L[5]=w),v&&(L[2]&&(L[1]="@media ".concat(L[2]," {").concat(L[1],"}")),L[2]=v),f&&(L[4]?(L[1]="@supports (".concat(L[4],") {").concat(L[1],"}"),L[4]=f):L[4]="".concat(f)),g.push(L))}},g}},62:x=>{x.exports=function(A,g){return g||(g={}),A&&(A=String(A.__esModule?A.default:A),/^['"].*['"]$/.test(A)&&(A=A.slice(1,-1)),g.hash&&(A+=g.hash),/["'() \t\n]|(%20)/.test(A)||g.needQuotes?'"'.concat(A.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):A)}},2001:x=>{x.exports=function(A){var g=A[1],y=A[3];
8796if(!y)return g;if(typeof btoa=="function"){var v=btoa(unescape(encodeURIComponent(JSON.stringify(y)))),_="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(v),f="/*# ".concat(_," */");return[g].concat([f]).join(` 8797`)}return[g].join(` 8798`)}},2591:x=>{var A=[];function g(_){for(var f=-1,w=0;w<A.length;w++)if(A[w].identifier===_){f=w;break}return f}function y(_,f){for(var w={},D=[],S=0;S<_.length;S++){var B=_[S],O=f.base?B[0]+f.base:B[0],L=w[O]||0,W="".concat(O," ").concat(L);w[O]=L+1;var Y=g(W),et={css:B[1],media:B[2],sourceMap:B[3],supports:B[4],layer:B[5]};if(Y!==-1)A[Y].references++,A[Y].updater(et);else{var ft=v(et,f);f.byIndex=S,A.splice(S,0,{identifier:W,updater:ft,references:1})}D.push(W)}return D}function v(_,f){var w=f.domAPI(f);return w.update(_),function(D){if(D){if(D.css===_.css&&D.media===_.media&&D.sourceMap===_.sourceMap&&D.supports===_.supports&&D.layer===_.layer)return;w.update(_=D)}else w.remove()}}x.exports=function(_,f){var w=y(_=_||[],f=f||{});return function(D){D=D||[];for(var S=0;S<w.length;S++){var B=g(w[S]);A[B].references--}for(var O=y(D,f),L=0;L<w.length;L++){var W=g(w[L]);A[W].references===0&&(A[W].updater(),A.splice(W,1))}w=O}}},8128:x=>{var A={};x.exports=function(g,y){var v=(function(_){if(A[_]===void 0){var f=document.querySelector(_);if(window.HTMLIFrameElement&&f instanceof window.HTMLIFrameElement)try{f=f.contentDocument.head}catch(w){f=null}A[_]=f}return A[_]})(g);if(!v)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");v.appendChild(y)}},3051:x=>{x.exports=function(A){var g=document.createElement("style");return A.setAttributes(g,A.attributes),A.insert(g,A.options),g}},8021:x=>{x.exports=function(A,g){Object.keys(g).forEach((function(y){A.setAttribute(y,g[y])}))}},8639:x=>{var A,g=(A=[],function(_,f){return A[_]=f,A.filter(Boolean).join(` 8799`)});function y(_,f,w,D){var S;if(w)S="";else{S="",D.supports&&(S+="@supports (".concat(D.supports,") {")),D.media&&(S+="@media ".concat(D.media," {"));var B=D.layer!==void 0;B&&(S+="@layer".concat(D.layer.length>0?" ".concat(D.layer):""," {")),S+=D.css,B&&(S+="}"),D.media&&(S+="}"),D.supports&&(S+="}")}if(_.styleSheet)_.styleSheet.cssText=g(f,S);else{var O=document.createTextNode(S),L=_.childNodes;L[f]&&_.removeChild(L[f]),L.length?_.insertBefore(O,L[f]):_.appendChild(O)}}var v={singleton:null,singletonCounter:0};x.exports=function(_){if(typeof document=="undefined")return{update:function(){},remove:function(){}};var f=v.singletonCounter++,w=v.singleton||(v.singleton=_.insertStyleElement(_));return{update:function(D){y(w,f,!1,D)},remove:function(D){y(w,f,!0,D)}}}},4782:x=>{x.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzUuNzUgMCAwIDEtLjIxNy4yMDYgNS4yNTEgNS4yNTEgMCAwIDEtOC41MDMtNS45NTUuNy43IDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NHptNS40OTQtNS4zMzVhLjc1Ljc1IDAgMCAxLS4xMi4yNzRsLTEuMTQ3IDEuNjM5YS43NS43NSAwIDEgMS0xLjIyOC0uODZsLjg2LTEuMjNhMy43NSAzLjc1IDAgMCAwLTYuMTQ0LTQuMzAxbC0uODYgMS4yMjlhLjc1Ljc1IDAgMCAxLTEuMjI5LS44NmwxLjE0OC0xLjY0YS43NS43NSAwIDAgMSAuMjE3LS4yMDYgNS4yNTEgNS4yNTEgMCAwIDEgOC41MDMgNS45NTVtLTQuNTYzLTIuNTMyYS43NS43NSAwIDAgMSAuMTg0IDEuMDQ1bC0zLjE1NSA0LjUwNWEuNzUuNzUgMCAxIDEtMS4yMjktLjg2bDMuMTU1LTQuNTA2YS43NS43NSAwIDAgMSAxLjA0NS0uMTg0Ii8+PC9zdmc+"},9736:x=>{x.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDI0IiBoZWlnaHQ9IjEwMjQiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiPjx0aXRsZT5GaWxsIDE8L3RpdGxlPjxwYXRoIGZpbGw9IiNGRkZGRkUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTk2Ny40ODQgMEg1Ni41MTdDMjUuMzA0IDAgMCAyNS4zMDQgMCA1Ni41MTd2OTEwLjk2NkMwIDk5OC42OTQgMjUuMjk3IDEwMjQgNTYuNTIyIDEwMjRINTQ3VjYyOEg0MTRWNDczaDEzM1YzNTkuMDI5YzAtMTMyLjI2MiA4MC43NzMtMjA0LjI4MiAxOTguNzU2LTIwNC4yODIgNTYuNTEzIDAgMTA1LjA4NiA0LjIwOCAxMTkuMjQ0IDYuMDg5VjI5OWwtODEuNjE2LjAzN2MtNjMuOTkzIDAtNzYuMzg0IDMwLjQ5Mi03Ni4zODQgNzUuMjM2VjQ3M2gxNTMuNDg3bC0xOS45ODYgMTU1SDcwN3YzOTZoMjYwLjQ4NGMzMS4yMTMgMCA1Ni41MTYtMjUuMzAzIDU2LjUxNi01Ni41MTZWNTYuNTE1QzEwMjQgMjUuMzAzIDk5OC42OTcgMCA5NjcuNDg0IDAiLz48L3N2Zz4="},657:x=>{x.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSlzY2FsZSguOTgwMTIpIj48cmVjdCB3aWR0aD0iNjAuMDk5IiBoZWlnaHQ9IjYwLjA5OSIgeD0iMTc2LjAzMSIgeT0iMjMxLjM5OSIgZmlsbD0iIzM0YTY2OCIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiIHJ4PSI1LjIzOCIgcnk9IjUuMjM4Ii8+PHBhdGggZmlsbD0iIzVjODhjNSIgZD0ibTIwNi40NzcgMjYwLjktMjguOTg3IDI4Ljk4N2E1LjIyIDUuMjIgMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiLz48cGF0aCBmaWxsPSIjZGQ0YjNlIiBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwN3EuNS43NTMuOTUgMS41MDguNTE1LjcxNS45ODggMS40NGMxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5cS40NzMtLjcyMy45ODgtMS40MzkuNDUtLjc1NS45NS0xLjUwOGMuMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIGN4PSIyMjYuNzQyIiBjeT0iMjM5LjAwMiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiIHJ4PSI1LjgyOCIgcnk9IjUuNTY0Ii8+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjlxLS4wMDEtLjU0My0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhxLS4wMDEtLjAwMy0uMDA0LS4wMDVjLTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTVtNC40MyA1LjY2LjAwMy4wMDZ2LS4wMDN6IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGZpbGw9IiNjM2MzYzMiIGQ9Im0yMTUuMTg0IDI1MS45MjktNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMiA1LjIgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjl6Ii8+PHBhdGggZmlsbD0iI2ZkZGM0ZiIgZD0ibTIxMi45ODMgMjQ4LjQ5NS0zNi45NTIgMzYuOTUzdi44MTJhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzggNS4y
8799MzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYgMTM2IDAgMCAwLTIuNzY0LTMuOSAzOCAzOCAwIDAgMC0uOTg5LTEuNDQgMzUgMzUgMCAwIDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OSIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBmaWxsPSIjZmZmIiBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4="},7784:x=>{x.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwME0xNjMuNCAzMDUuNWM4OC43IDAgMTM3LjItNzMuNSAxMzcuMi0xMzcuMiAwLTIuMSAwLTQuMi0uMS02LjIgOS40LTYuOCAxNy42LTE1LjMgMjQuMS0yNS04LjYgMy44LTE3LjkgNi40LTI3LjcgNy42IDEwLTYgMTcuNi0xNS40IDIxLjItMjYuNy05LjMgNS41LTE5LjYgOS41LTMwLjYgMTEuNy04LjgtOS40LTIxLjMtMTUuMi0zNS4yLTE1LjItMjYuNiAwLTQ4LjIgMjEuNi00OC4yIDQ4LjIgMCAzLjguNCA3LjUgMS4zIDExLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40LTQuMSA3LjEtNi41IDE1LjQtNi41IDI0LjIgMCAxNi43IDguNSAzMS41IDIxLjUgNDAuMS03LjktLjItMTUuMy0yLjQtMjEuOC02di42YzAgMjMuNCAxNi42IDQyLjggMzguNyA0Ny4zLTQgMS4xLTguMyAxLjctMTIuNyAxLjctMy4xIDAtNi4xLS4zLTkuMS0uOSA2LjEgMTkuMiAyMy45IDMzLjEgNDUgMzMuNS0xNi41IDEyLjktMzcuMyAyMC42LTU5LjkgMjAuNi0zLjkgMC03LjctLjItMTEuNS0uNyAyMS4xIDEzLjggNDYuNSAyMS44IDczLjcgMjEuOCIgc3R5bGU9ImZpbGw6I2ZmZiIvPjwvc3ZnPg=="},6341:x=>{x.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgdmlld0JveD0iMCAwIDUwNCA1MDQiPjx0aXRsZT5nbHlwaC1sb2dvX01heTIwMTY8L3RpdGxlPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMCAuMTU5aDUwMy44NDFWNTAzLjk0SDB6Ii8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZmlsbD0iI0ZGRiIgZD0iTTI1MS45MjEuMTU5Yy02OC40MTggMC03Ni45OTcuMjktMTAzLjg2NyAxLjUxNi0yNi44MTQgMS4yMjMtNDUuMTI3IDUuNDgyLTYxLjE1MSAxMS43MS0xNi41NjYgNi40MzctMzAuNjE1IDE1LjA1MS00NC42MjEgMjkuMDU2LTE0LjAwNSAxNC4wMDYtMjIuNjE5IDI4LjA1NS0yOS4wNTYgNDQuNjIxLTYuMjI4IDE2LjAyNC0xMC40ODcgMzQuMzM3LTExLjcxIDYxLjE1MUMuMjkgMTc1LjA4MyAwIDE4My42NjIgMCAyNTIuMDhjMCA2OC40MTcuMjkgNzYuOTk2IDEuNTE2IDEwMy44NjYgMS4yMjMgMjYuODE0IDUuNDgyIDQ1LjEyNyAxMS43MSA2MS4xNTEgNi40MzcgMTYuNTY2IDE1LjA1MSAzMC42MTUgMjkuMDU2IDQ0LjYyMSAxNC4wMDYgMTQuMDA1IDI4LjA1NSAyMi42MTkgNDQuNjIxIDI5LjA1NyAxNi4wMjQgNi4yMjcgMzQuMzM3IDEwLjQ4NiA2MS4xNTEgMTEuNzA5IDI2Ljg3IDEuMjI2IDM1LjQ0OSAxLjUxNiAxMDMuODY3IDEuNTE2IDY4LjQxNyAwIDc2Ljk5Ni0uMjkgMTAzLjg2Ni0xLjUxNiAyNi44MTQtMS4yMjMgNDUuMTI3LTUuNDgyIDYxLjE1MS0xMS43MDkgMTYuNTY2LTYuNDM4IDMwLjYxNS0xNS4wNTIgNDQuNjIxLTI5LjA1NyAxNC4wMDUtMTQuMDA2IDIyLjYxOS0yOC4wNTUgMjkuMDU3LTQ0LjYyMSA2LjIyNy0xNi4wMjQgMTAuNDg2LTM0LjMzNyAxMS43MDktNjEuMTUxIDEuMjI2LTI2Ljg3IDEuNTE2LTM1LjQ0OSAxLjUxNi0xMDMuODY2IDAtNjguNDE4LS4yOS03Ni45OTctMS41MTYtMTAzLjg2Ny0xLjIyMy0yNi44MTQtNS40ODItNDUuMTI3LTExLjcwOS02MS4xNTEtNi40MzgtMTYuNTY2LTE1LjA1Mi0zMC42MTUtMjkuMDU3LTQ0LjYyMS0xNC4wMDYtMTQuMDA1LTI4LjA1NS0yMi42MTktNDQuNjIxLTI5LjA1Ni0xNi4wMjQtNi4yMjgtMzQuMzM3LTEwLjQ4Ny02MS4xNTEtMTEuNzFDMzI4LjkxNy40NDkgMzIwLjMzOC4xNTkgMjUxLjkyMS4xNTltMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1czE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NmMzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjZzLTE3LjIwNyAxNC4yNzUtMjguOTY2IDE4Ljg0NWMtOC44NzcgMy40NS0yMi4yMTYgNy41NTQtNDYuNzc4IDguNjc0LTI2LjU2IDEuMjEyLTM0LjUyNyAxLjQ2OS0xMDEuNzk3IDEuNDY5LTY3LjI3MSAwLTc1LjIzNy0uMjU3LTEwMS43OTgtMS40NjktMjQuNTYyLTEuMTItMzcuOTAxLTUuMjI0LTQ2Ljc3OC04LjY3NC0xMS43NTktNC41Ny0yMC4xNTEtMTAuMDI5LTI4Ljk2Ni0xOC44NDVzLTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2NmMtMy40NS04Ljg3Ny03LjU1NC0yMi4yMTYtOC42NzQtNDYuNzc4LTEuMjEyLTI2LjU2NC0xLjQ2OS0zNC41MzItMS40NjktMTAxLjc5NyAwLTY3LjI2Ni4yNTctNzUuMjM0IDEuNDY5LTEwMS43OTggMS4xMi0yNC41NjIgNS4yMjQtMzcuOTAxIDguNjc0LTQ2Ljc3OCA0LjU3LTExLjc1OSAxMC4wMjktMjAuMTUxIDE4Ljg0NS0yOC45NjZzMTcuMjA3LTE0LjI3NSAyOC45NjYtMTguODQ1YzguODc3LTMuNDUgMjIuMjE2LTcuNTU0IDQ2Ljc3OC04LjY3NCAyNi41NjQtMS4yMTIgMzQuNTMyLTEuNDY5IDEwMS43OTgtMS40NjkiIG1hc2s9InVybCgjYikiLz48cGF0aCBmaWxsPSIjRkZGIiBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzNzMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0YzQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNtMC0yMTMuMzM4Yy03MS40NDcgMC0xMjkuMzY1IDU3LjkxOC0xMjkuMzY1IDEyOS4zNjUgMCA3MS40NDYgNTcuOTE4IDEyOS4zNjQgMTI5LjM2NSAxMjkuMzY0IDcxLjQ0NiAwIDEyOS4zNjQtNTcuOTE4IDEyOS4zNjQtMTI5LjM2NCAwLTcxLjQ0Ny01Ny45MTgtMTI5LjM2NS0xMjkuMzY0LTEyOS4zNjVNNDE2LjYyNyAxMTcuNjA0YzAgMTYuNjk2LTEzLjUzNSAzMC4yMy0zMC4yMzEgMzAuMjMtMTYuNjk1IDAtMzAuMjMtMTMuNTM0LTMwLjIzLTMwLjIzczEzLjUzNS0zMC4yMzEgMzAuMjMtMzAuMjMxYzE2LjY5NiAwIDMwLjIzMSAxMy41MzUgMzAuMjMxIDMwLjIzMSIvPjwvZz48L3N2Zz4="}},Ht={};function P(x){var A=Ht[x];if(A!==void 0)return A.exports;var g=Ht[x]={id:x,exports:{}};return Ce[x](g,g.exports,P),g.exports}P.m=Ce,P.n=x=>{var A=x&&x.__esModule?()=>x.default:()=>x;return P.d(A,{a:A}),A},P.d=(x,A)=>{for(var g in A)P.o(A,g)&&!P.o(x,g)&&Object.defineProperty(x,g,{enumerable:!0,get:A[g]})},P.o=(x,A)=>Object.prototype.hasOwnProperty.call(x,A),P.b=document.baseURI||self.location.href;var sn={};return(()=>{let x;P.d(sn,{default:()=>ou});try{x={window,document}}catch(o){x={window:{},document:{}}}const A=x;function g(){try{return navigator.userAgent.toLowerCase()}catch(o){return""}}const y=g(),v={isMac:_(y),isWindows:f(y),isGecko:w(y),isSafari:D(y),isiOS:S(y),isAndroid:B(y),isBlink:O(y),features:{isRegExpUnicodePropertySupported:L()}};function _(o){return o.indexOf("macintosh")>-1}function f(o){return o.indexOf("windows")>-1}function w(o){return!!o.match(/gecko\/\d+/)}function D(o){return o.indexOf(" applewebkit/")>-1&&o.indexOf("chrome")===-1}function S(o){return!!o.match(/iphone|ipad/i)||_(o)&&navigator.maxTouchPoints>0}function B(o){return o.indexOf("android")>-1}function O(o){return o.indexOf("chrome/")>-1&&o.indexOf("edge/")<0}function L(){let o=!1;try{o="Ä".search(new RegExp("[\\p{L}]","u"))===0}catch(t){}return o}function W(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=Y(c,l,d);if(u===-1)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const h=et(c,u),m=et(l,u),p=Y(h,m,d),k=c.length-p,b=l.length-p;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 m=[];return d>0&&(m=m.concat(Array(d).fill("equal"))),h-d>0&&(m=m.concat(Array(h-d).fill("insert"))),u-d>0&&(m=m.concat(Array(u-d).fill("delete"))),h<l&&(m=m.concat(Array(l-h).fill("equal"))),m})(s,r.length):(function(c,l){const d=[],{firstIndex:u,lastIndexOld:h,lastIndexNew:m}=l;return m-u>0&&d.push({index:u,type:"insert",values:c.slice(u,m)}),h-u>0&&d.push({index:u+(m-u),type:"delete",howMany:h-u}),d})(r,s)}function Y(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 et(o,t){return o.slice(t).reverse()}function ft(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 ft.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,C=u[k+1]!==void 0?u[k+1]:-1,I=b>C?-1:1;d[k+I]&&(d[k]=d[k+I].slice(0)),d[k]||(d[k]=[]),d[k].push(b>C?r:s);let M=Math.max(b,C),N=M-k;for(;N<a&&M<c&&e(o[N],t[M]);)N++,M++,d[k].push("equal");return M}let m,p=0;do{for(m=-p;m<l;m++)u[m]=h(m);for(m=l+p;m>l;m--)u[m]=h(m);u[l]=h(l),p++}while(u[l]!==c);return d[l].slice(1)}ft.fastDiff=W;
8799const Ot=function(){return function o(){o.called=!0}};class Wt{constructor(t,e){this.source=t,this.name=e,this.path=[],this.stop=Ot(),this.off=Ot()}}const zt=new Array(256).fill("").map(((o,t)=>("0"+t.toString(16)).slice(-2)));function ne(){const[o,t,e,n]=crypto.getRandomValues(new Uint32Array(4));return"e"+zt[255&o]+zt[o>>8&255]+zt[o>>16&255]+zt[o>>24&255]+zt[255&t]+zt[t>>8&255]+zt[t>>16&255]+zt[t>>24&255]+zt[255&e]+zt[e>>8&255]+zt[e>>16&255]+zt[e>>24&255]+zt[255&n]+zt[n>>8&255]+zt[n>>16&255]+zt[n>>24&255]}const Ve={get(o="normal"){return typeof o!="number"?this[o]||this.normal:o},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function su(o,t){const e=Ve.get(t.priority);for(let n=0;n<o.length;n++)if(Ve.get(o[n].priority)<e)return void o.splice(n,0,t);o.push(t)}class E 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=au(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 E(t.message,e);throw n.stack=t.stack,n}}function nt(o,t){console.warn(...cu(o,t))}function Kc(o,t){console.error(...cu(o,t))}function au(o){return` 8800Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-${o}`}function cu(o,t){const e=au(o);return t?[o,t,e]:[o,e]}const fb="43.3.1",kb=new Date(2024,10,6);if(globalThis.CKEDITOR_VERSION)throw new E("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=fb;const yn=Symbol("listeningTo"),$c=Symbol("emitterId"),Te=Symbol("delegations"),lu=at(Object);function at(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[yn]||(this[yn]={});const a=this[yn];Yc(t)||du(t);const c=Yc(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,m){d._addEventListener?d._addEventListener(u,h,m):l._addEventListener.call(d,u,h,m)})(this,t,e,n,i)}stopListening(t,e,n){const i=this[yn];let r=t&&Yc(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)Zc(this,t,e,n),a.indexOf(n)!==-1&&(a.length===1?delete s.callbacks[e]:Zc(this,t,e,n));else if(a){for(;n=a.pop();)Zc(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[yn]}}fire(t,...e){try{const n=t instanceof Wt?t:new Wt(this,t),i=n.name;let r=hu(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[Te];if(s){const a=s.get(i),c=s.get("*");a&&mu(a,n,e),c&&mu(c,n,e)}return n.return}catch(n){E.rethrowUnexpectedError(n,this)}}delegate(...t){return{to:(e,n)=>{this[Te]||(this[Te]=new Map),t.forEach((i=>{const r=this[Te].get(i);r?r.set(e,n):this[Te].set(i,new Map([[e,n]]))}))}}}stopDelegating(t,e){if(this[Te])if(t)if(e){const n=this[Te].get(t);n&&n.delete(e)}else this[Te].delete(t);else this[Te].clear()}_addEventListener(t,e,n){(function(s,a){const c=uu(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=Qc(this,t),r={callback:e,priority:Ve.get(n.priority)};for(const s of i)su(s,r)}_removeEventListener(t,e){const n=Qc(this,t);for(const i of n)for(let r=0;r<i.length;r++)i[r].callback==e&&(i.splice(r,1),r--)}}:lu}function du(o,t){o[$c]||(o[$c]=t||ne())}function Yc(o){return o[$c]}function uu(o){return o._events||Object.defineProperty(o,"_events",{value:{}}),o._events}function Qc(o,t){const e=uu(o)[t];if(!e)return[];let n=[e.callbacks];for(let i=0;i<e.childEvents.length;i++){const r=Qc(o,e.childEvents[i]);n=n.concat(r)}return n}function hu(o,t){let e;return o._events&&(e=o._events[t])&&e.callbacks.length?e.callbacks:t.indexOf(":")>-1?hu(o,t.substr(0,t.lastIndexOf(":"))):null}function mu(o,t,e){for(let[n,i]of o){i?typeof i=="function"&&(i=i(t.name)):i=t.name;const r=new Wt(t.source,i);r.path=[...t.path],n.fire(r,...e)}}function Zc(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=>{at[o]=lu.prototype[o]}));const kt=function(o){var t=typeof o;return o!=null&&(t=="object"||t=="function")},Lr=Symbol("observableProperties"),Or=Symbol("boundObservables"),zr=Symbol("boundProperties"),xn=Symbol("decoratedMethods"),gu=Symbol("decoratedOriginal"),pu=dt(at());function dt(o){var t;if(!o)return pu;class e extends(t=o,t){set(i,r){if(kt(i))return void Object.keys(i).forEac
8800h((a=>{this.set(a,i[a])}),this);Jc(this);const s=this[Lr];if(i in this&&!s.has(i))throw new E("observable-set-cannot-override",this);Object.defineProperty(this,i,{enumerable:!0,configurable:!0,get:()=>s.get(i),set(a){const c=s.get(i);let l=this.fire(`set:${i}`,i,a,c);l===void 0&&(l=a),c===l&&s.has(i)||(s.set(i,l),this.fire(`change:${i}`,i,l,c))}}),this[i]=r}bind(...i){if(!i.length||!fu(i))throw new E("observable-bind-wrong-properties",this);if(new Set(i).size!==i.length)throw new E("observable-bind-duplicate-properties",this);Jc(this);const r=this[zr];i.forEach((a=>{if(r.has(a))throw new E("observable-bind-rebind",this)}));const s=new Map;return i.forEach((a=>{const c={property:a,to:[]};r.set(a,c),s.set(a,c)})),{to:bb,toMany:wb,_observable:this,_bindProperties:i,_to:[],_bindings:s}}unbind(...i){if(!this[Lr])return;const r=this[zr],s=this[Or];if(i.length){if(!fu(i))throw new E("observable-unbind-wrong-properties",this);i.forEach((a=>{const c=r.get(a);c&&(c.to.forEach((([l,d])=>{const u=s.get(l),h=u[d];h.delete(c),h.size||delete u[d],Object.keys(u).length||(s.delete(l),this.stopListening(l,"change"))})),r.delete(a))}))}else s.forEach(((a,c)=>{this.stopListening(c,"change")})),s.clear(),r.clear()}decorate(i){Jc(this);const r=this[i];if(!r)throw new E("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:i});this.on(i,((s,a)=>{s.return=r.apply(this,a)})),this[i]=function(...s){return this.fire(i,s)},this[i][gu]=r,this[xn]||(this[xn]=[]),this[xn].push(i)}stopListening(i,r,s){if(!i&&this[xn]){for(const a of this[xn])this[a]=this[a][gu];delete this[xn]}super.stopListening(i,r,s)}}return e}function Jc(o){o[Lr]||(Object.defineProperty(o,Lr,{value:new Map}),Object.defineProperty(o,Or,{value:new Map}),Object.defineProperty(o,zr,{value:new Map}))}function bb(...o){const t=(function(...r){if(!r.length)throw new E("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 E("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 E("observable-bind-to-no-callback",this);if(n>1&&t.callback)throw new E("observable-bind-to-extra-callback",this);var i;t.to.forEach((r=>{if(r.properties.length&&r.properties.length!==n)throw new E("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[Or];let a;s.get(r.observable)||i.listenTo(r.observable,"change",((c,l)=>{a=s.get(r.observable)[l],a&&a.forEach((d=>{ku(i,d.property)}))}))})),(function(r){let s;
8800r._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,m){const p=d[Or],k=p.get(h),b=k||{};b[m]||(b[m]=new Set),b[m].add(u),k||p.set(h,b)})(r._observable,a,l.observable,s)}))}))})(this),this._bindProperties.forEach((r=>{ku(this._observable,r)}))}function wb(o,t,e){if(this._bindings.size>1)throw new E("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 fu(o){return o.every((t=>typeof t=="string"))}function ku(o,t){const e=o[zr].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=>{dt[o]=pu.prototype[o]}));class Ab{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 Xc(o){let t=0;for(const e of o)t++;return t}function Ft(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 Kt(o){return!(!o||!o[Symbol.iterator])}const bu=typeof Wc=="object"&&Wc&&Wc.Object===Object&&Wc;var _b=typeof self=="object"&&self&&self.Object===Object&&self;const ue=bu||_b||Function("return this")(),ve=ue.Symbol;var wu=Object.prototype,Cb=wu.hasOwnProperty,vb=wu.toString,ri=ve?ve.toStringTag:void 0;const yb=function(o){var t=Cb.call(o,ri),e=o[ri];try{o[ri]=void 0;var n=!0}catch(r){}var i=vb.call(o);return n&&(t?o[ri]=e:delete o[ri]),i};var xb=Object.prototype.toString;const Eb=function(o){return xb.call(o)};var Au=ve?ve.toStringTag:void 0;const He=function(o){return o==null?o===void 0?"[object Undefined]":"[object Null]":Au&&Au in Object(o)?yb(o):Eb(o)},$t=Array.isArray,ie=function(o){return o!=null&&typeof o=="object"},_u=function(o){return typeof o=="string"||!$t(o)&&ie(o)&&He(o)=="[object String]"};function oe(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]);!_u(n)&&Kt(n)||(n=[n]);for(let s of n)_u(s)&&(s=o.createTextNode(s)),r.appendChild(s);return r}const Cu=function(o,t){return function(e){return o(t(e))}},tl=Cu(Object.getPrototypeOf,Object);var Db=Function.prototype,Ib=Object.prototype,vu=Db.toString,Sb=Ib.hasOwnProperty,Mb=vu.call(Object);const Yt=function(o){if(!ie(o)||He(o)!="[object Object]")return!1;var t=tl(o);if(t===null)return!0;var e=Sb.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&vu.call(e)==Mb},Bb=function(){this.__data__=[],this.size=0},si=function(o,t){return o===t||o!=o&&t!=t},Rr=function(o,t){for(var e=o.length;e--;)if(si(o[e][0],t))return e;return-1};var Tb=Array.prototype.splice;const Nb=function(o){var t=this.__data__,e=Rr(t,o);return!(e<0)&&(e==t.length-1?t.pop():Tb.call(t,e,1),--this.size,!0)},Pb=function(o){var t=this.__data__,e=Rr(t,o);return e<0?void 0:t[e][1]},Lb=function(o){return Rr(this.__data__,o)>-1},Ob=function(o,t){var e=this.__data__,n=Rr(e,o);return n<0?(++this.size,e.push([o,t])):e[n][1]=t,this};function En(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])}}En.prototype.clear=Bb,En.prototype.delete=Nb,En.prototype.get=Pb,En.prototype.has=Lb,En.prototype.set=Ob;const Fr=En,zb=function(){this.__data__=new Fr,this.size=0},Rb=function(o){var t=this.__data__,e=t.delete(o);return this.size=t.size,e},Fb=function(o){return this.__data__.get(o)},jb=function(o){return this.__data__.has(o)},an=function(o){if(!kt(o))return!1;var t=He(o);return t=="[object Function]"||t=="[object GeneratorFunction]"||t=="[object AsyncFunction]"||t=="[object Proxy]"},el=ue["__core-js_shared__"];var yu=(function(){var o=/[^.]+$/.exec(el&&el.keys&&el.keys.IE_PROTO||"");
8800return o?"Symbol(src)_1."+o:""})();const Vb=function(o){return!!yu&&yu in o};var Hb=Function.prototype.toString;const cn=function(o){if(o!=null){try{return Hb.call(o)}catch(t){}try{return o+""}catch(t){}}return""};var Ub=/^\[object .+?Constructor\]$/,qb=Function.prototype,Gb=Object.prototype,Wb=qb.toString,Kb=Gb.hasOwnProperty,$b=RegExp("^"+Wb.call(Kb).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Yb=function(o){return!(!kt(o)||Vb(o))&&(an(o)?$b:Ub).test(cn(o))},Qb=function(o,t){return o==null?void 0:o[t]},ln=function(o,t){var e=Qb(o,t);return Yb(e)?e:void 0},ai=ln(ue,"Map"),ci=ln(Object,"create"),Zb=function(){this.__data__=ci?ci(null):{},this.size=0},Jb=function(o){var t=this.has(o)&&delete this.__data__[o];return this.size-=t?1:0,t};var Xb=Object.prototype.hasOwnProperty;const tw=function(o){var t=this.__data__;if(ci){var e=t[o];return e==="__lodash_hash_undefined__"?void 0:e}return Xb.call(t,o)?t[o]:void 0};var ew=Object.prototype.hasOwnProperty;const nw=function(o){var t=this.__data__;return ci?t[o]!==void 0:ew.call(t,o)},iw=function(o,t){var e=this.__data__;return this.size+=this.has(o)?0:1,e[o]=ci&&t===void 0?"__lodash_hash_undefined__":t,this};function Dn(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])}}Dn.prototype.clear=Zb,Dn.prototype.delete=Jb,Dn.prototype.get=tw,Dn.prototype.has=nw,Dn.prototype.set=iw;const xu=Dn,ow=function(){this.size=0,this.__data__={hash:new xu,map:new(ai||Fr),string:new xu}},rw=function(o){var t=typeof o;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?o!=="__proto__":o===null},jr=function(o,t){var e=o.__data__;return rw(t)?e[typeof t=="string"?"string":"hash"]:e.map},sw=function(o){var t=jr(this,o).delete(o);return this.size-=t?1:0,t},aw=function(o){return jr(this,o).get(o)},cw=function(o){return jr(this,o).has(o)},lw=function(o,t){var e=jr(this,o),n=e.size;return e.set(o,t),this.size+=e.size==n?0:1,this};function In(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])}}In.prototype.clear=ow,In.prototype.delete=sw,In.prototype.get=aw,In.prototype.has=cw,In.prototype.set=lw;const Vr=In,dw=function(o,t){var e=this.__data__;if(e instanceof Fr){var n=e.__data__;if(!ai||n.length<199)return n.push([o,t]),this.size=++e.size,this;e=this.__data__=new Vr(n)}return e.set(o,t),this.size=e.size,this};function Sn(o){var t=this.__data__=new Fr(o);this.size=t.size}Sn.prototype.clear=zb,Sn.prototype.delete=Rb,Sn.prototype.get=Fb,Sn.prototype.has=jb,Sn.prototype.set=dw;const Mn=Sn,uw=function(o,t){for(var e=-1,n=o==null?0:o.length;++e<n&&t(o[e],e,o)!==!1;);return o},Hr=(function(){try{var o=ln(Object,"defineProperty");return o({},"",{}),o}catch(t){}})(),Ur=function(o,t,e){t=="__proto__"&&Hr?Hr(o,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):o[t]=e};var hw=Object.prototype.hasOwnProperty;const nl=function(o,t,e){var n=o[t];hw.call(o,t)&&si(n,e)&&(e!==void 0||t in o)||Ur(o,t,e)},Bn=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?Ur(e,a,c):nl(e,a,c)}return e},mw=function(o,t){for(var e=-1,n=Array(o);++e<o;)n[e]=t(e);return n},Eu=function(o){return ie(o)&&He(o)=="[object Arguments]"};var Du=Object.prototype,gw=Du.hasOwnProperty,pw=Du.propertyIsEnumerable;const qr=Eu((function(){return arguments})())?Eu:function(o){return ie(o)&&gw.call(o,"callee")&&!pw.call(o,"callee")},fw=function(){return!1};var Iu=ee&&!ee.nodeType&&ee,Su=Iu&&!0&&Vt&&!Vt.nodeType&&Vt,Mu=Su&&Su.exports===Iu?ue.Buffer:void 0;const li=(Mu?Mu.isBuffer:void 0)||fw;var kw=/^(?:0|[1-9]\d*)$/;const Gr=function(o,t){var e=typeof o;return!!(t=t==null?9007199254740991:t)&&(e=="number"||e!="symbol"&&kw.test(o))&&o>-1&&o%1==0&&o<t},il=function(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=9007199254740991};var wt={};wt["[object Float32Array]"]=wt["[object Float64Array]"]=wt["[object Int8Array]"]=wt["[object Int16Array]"]=wt["[object Int32Array]"]=wt["[object Uint8Array]"]=wt["[object Uint8ClampedArray]"]=wt["[object Uint16Array]"]=wt["[object Uint32Array]"]=!0,wt["[object Arguments]"]=wt["[object Array]"]=wt["[object ArrayBuffer]"]=wt["[object Boolean]"]=wt["[object DataView]"]=wt["[object Date]"]=wt["[object Error]"]=wt["[object Function]"]=wt["[object Map]"]=wt["[object Number]"]=wt["[object Object]"]=wt["[object RegExp]"]=wt["[object Set]"]=wt["[object String]"]=wt["[object WeakMap]"]=!1;const bw=function(o){return ie(o)&&il(o.length)&&!!wt[He(o)]},ol=function(o){return function(t){return o(t)}};var Bu=ee&&!ee.nodeType&&ee,di=Bu&&!0&&Vt&&!Vt.nodeType&&Vt,rl=di&&di.exports===Bu&&bu.process;const Tn=(function(){try{var o=di&&di.require&&di.require("util").t
8800ypes;return o||rl&&rl.binding&&rl.binding("util")}catch(t){}})();var Tu=Tn&&Tn.isTypedArray;const sl=Tu?ol(Tu):bw;var ww=Object.prototype.hasOwnProperty;const Nu=function(o,t){var e=$t(o),n=!e&&qr(o),i=!e&&!n&&li(o),r=!e&&!n&&!i&&sl(o),s=e||n||i||r,a=s?mw(o.length,String):[],c=a.length;for(var l in o)!t&&!ww.call(o,l)||s&&(l=="length"||i&&(l=="offset"||l=="parent")||r&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Gr(l,c))||a.push(l);return a};var Aw=Object.prototype;const al=function(o){var t=o&&o.constructor;return o===(typeof t=="function"&&t.prototype||Aw)},_w=Cu(Object.keys,Object);var Cw=Object.prototype.hasOwnProperty;const vw=function(o){if(!al(o))return _w(o);var t=[];for(var e in Object(o))Cw.call(o,e)&&e!="constructor"&&t.push(e);return t},Wr=function(o){return o!=null&&il(o.length)&&!an(o)},ui=function(o){return Wr(o)?Nu(o):vw(o)},yw=function(o,t){return o&&Bn(t,ui(t),o)},xw=function(o){var t=[];if(o!=null)for(var e in Object(o))t.push(e);return t};var Ew=Object.prototype.hasOwnProperty;const Dw=function(o){if(!kt(o))return xw(o);var t=al(o),e=[];for(var n in o)(n!="constructor"||!t&&Ew.call(o,n))&&e.push(n);return e},Nn=function(o){return Wr(o)?Nu(o,!0):Dw(o)},Iw=function(o,t){return o&&Bn(t,Nn(t),o)};var Pu=ee&&!ee.nodeType&&ee,Lu=Pu&&!0&&Vt&&!Vt.nodeType&&Vt,Ou=Lu&&Lu.exports===Pu?ue.Buffer:void 0,zu=Ou?Ou.allocUnsafe:void 0;const Ru=function(o,t){if(t)return o.slice();var e=o.length,n=zu?zu(e):new o.constructor(e);return o.copy(n),n},Fu=function(o,t){var e=-1,n=o.length;for(t||(t=Array(n));++e<n;)t[e]=o[e];return t},Sw=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},ju=function(){return[]};var Mw=Object.prototype.propertyIsEnumerable,Vu=Object.getOwnPropertySymbols;const cl=Vu?function(o){return o==null?[]:(o=Object(o),Sw(Vu(o),(function(t){return Mw.call(o,t)})))}:ju,Bw=function(o,t){return Bn(o,cl(o),t)},Hu=function(o,t){for(var e=-1,n=t.length,i=o.length;++e<n;)o[i+e]=t[e];return o},Uu=Object.getOwnPropertySymbols?function(o){for(var t=[];o;)Hu(t,cl(o)),o=tl(o);return t}:ju,Tw=function(o,t){return Bn(o,Uu(o),t)},qu=function(o,t,e){var n=t(o);return $t(o)?n:Hu(n,e(o))},ll=function(o){return qu(o,ui,cl)},Nw=function(o){return qu(o,Nn,Uu)},dl=ln(ue,"DataView"),ul=ln(ue,"Promise"),hl=ln(ue,"Set"),ml=ln(ue,"WeakMap");var Gu="[object Map]",Wu="[object Promise]",Ku="[object Set]",$u="[object WeakMap]",Yu="[object DataView]",Pw=cn(dl),Lw=cn(ai),Ow=cn(ul),zw=cn(hl),Rw=cn(ml),dn=He;(dl&&dn(new dl(new ArrayBuffer(1)))!=Yu||ai&&dn(new ai)!=Gu||ul&&dn(ul.resolve())!=Wu||hl&&dn(new hl)!=Ku||ml&&dn(new ml)!=$u)&&(dn=function(o){var t=He(o),e=t=="[object Object]"?o.constructor:void 0,n=e?cn(e):"";if(n)switch(n){case Pw:return Yu;case Lw:return Gu;case Ow:return Wu;case zw:return Ku;case Rw:return $u}return t});const hi=dn;var Fw=Object.prototype.hasOwnProperty;const jw=function(o){var t=o.length,e=new o.constructor(t);return t&&typeof o[0]=="string"&&Fw.call(o,"index")&&(e.index=o.index,e.input=o.input),e},Kr=ue.Uint8Array,gl=function(o){var t=new o.constructor(o.byteLength);return new Kr(t).set(new Kr(o)),t},Vw=function(o,t){var e=t?gl(o.buffer):o.buffer;return new o.constructor(e,o.byteOffset,o.byteLength)};var Hw=/\w*$/;const Uw=function(o){var t=new o.constructor(o.source,Hw.exec(o));return t.lastIndex=o.lastIndex,t};var Qu=ve?ve.prototype:void 0,Zu=Qu?Qu.valueOf:void 0;const qw=function(o){return Zu?Object(Zu.call(o)):{}},Ju=function(o,t){var e=t?gl(o.buffer):o.buffer;return new o.constructor(e,o.byteOffset,o.length)},Gw=function(o,t,e){var n=o.constructor;switch(t){case"[object ArrayBuffer]":return gl(o);case"[object Boolean]":case"[object Date]":return new n(+o);case"[object DataView]":return Vw(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 Ju(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 Uw(o);case"[object Symbol]":return qw(o)}};var Xu=Object.create;const Ww=(function(){function o(){}return function(t){if(!kt(t))return{};if(Xu)return Xu(t);o.prototype=t;var e=new o;return o.prototype=void 0,e}})(),th=function(o){return typeof o.constructor!="function"||al(o
8800)?{}:Ww(tl(o))},Kw=function(o){return ie(o)&&hi(o)=="[object Map]"};var eh=Tn&&Tn.isMap;const $w=eh?ol(eh):Kw,Yw=function(o){return ie(o)&&hi(o)=="[object Set]"};var nh=Tn&&Tn.isSet;const Qw=nh?ol(nh):Yw;var ih="[object Arguments]",oh="[object Function]",rh="[object Object]",bt={};bt[ih]=bt["[object Array]"]=bt["[object ArrayBuffer]"]=bt["[object DataView]"]=bt["[object Boolean]"]=bt["[object Date]"]=bt["[object Float32Array]"]=bt["[object Float64Array]"]=bt["[object Int8Array]"]=bt["[object Int16Array]"]=bt["[object Int32Array]"]=bt["[object Map]"]=bt["[object Number]"]=bt[rh]=bt["[object RegExp]"]=bt["[object Set]"]=bt["[object String]"]=bt["[object Symbol]"]=bt["[object Uint8Array]"]=bt["[object Uint8ClampedArray]"]=bt["[object Uint16Array]"]=bt["[object Uint32Array]"]=!0,bt["[object Error]"]=bt[oh]=bt["[object WeakMap]"]=!1;const pl=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(!kt(t))return t;var u=$t(t);if(u){if(a=jw(t),!c)return Fu(t,a)}else{var h=hi(t),m=h==oh||h=="[object GeneratorFunction]";if(li(t))return Ru(t,c);if(h==rh||h==ih||m&&!r){if(a=l||m?{}:th(t),!c)return l?Tw(t,Iw(a,t)):Bw(t,yw(a,t))}else{if(!bt[h])return r?t:{};a=Gw(t,h,c)}}s||(s=new Mn);var p=s.get(t);if(p)return p;s.set(t,a),Qw(t)?t.forEach((function(b){a.add(o(b,e,n,b,t,s))})):$w(t)&&t.forEach((function(b,C){a.set(C,o(b,e,n,C,t,s))}));var k=u?void 0:(d?l?Nw:ll:l?Nn:ui)(t);return uw(k||t,(function(b,C){k&&(b=t[C=b]),nl(a,C,o(b,e,n,C,t,s))})),a},fl=function(o,t){return pl(o,5,t=typeof t=="function"?t:void 0)},Ue=function(o){return ie(o)&&o.nodeType===1&&!Yt(o)};class sh{constructor(t,e){this._config=Object.create(null),e&&this.define(ah(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(Yt(e))return void this._setObjectToTarget(t,e,i);const r=e.split(".");e=r.pop();for(const s of r)Yt(t[s])||(t[s]=Object.create(null)),t=t[s];if(Yt(n))return Yt(t[e])||(t[e]=Object.create(null)),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(!Yt(t[i])){t=null;break}t=t[i]}return t?ah(t[e]):void 0}_setObjectToTarget(t,e,n){Object.keys(e).forEach((i=>{this._setToTarget(t,i,e[i],n)}))}}function ah(o){return fl(o,Zw)}function Zw(o){return Ue(o)||typeof o=="function"?o:void 0}function qe(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 $r(o){const t=Object.prototype.toString.apply(o);return t=="[object Window]"||t=="[object global]"}const ch=re(at());function re(o){return o?class extends o{listenTo(t,e,n,i={}){if(qe(t)||$r(t)){const r={capture:!!i.useCapture,passive:!!i.usePassive},s=this._getProxyEmitter(t,r)||new Jw(t,r);this.listenTo(s,e,n,i)}else super.listenTo(t,e,n,i)}stopListening(t,e,n){if(qe(t)||$r(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[yn];return r&&r[i]?r[i].emitter:null})(this,lh(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))}}:ch}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((o=>{re[o]=ch.prototype[o]}));class Jw extends at(){constructor(t,e){super(),du(this,lh(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),at().prototype._addEventListener.call(this,t,e,n)}_removeEventListener(t,e){at().prototype._removeEventListener.call(this,t,e),this.detach(t)}_createDomListener(t){const e=n=>{this.fire(t,n)};return e.removeListener=()=>
8800{this._domNode.removeEventListener(t,e,this._options),delete this._domListeners[t]},e}}function lh(o,t){let e=(function(n){return n["data-ck-expando"]||(n["data-ck-expando"]=ne())})(o);for(const n of Object.keys(t).sort())t[n]&&(e+="-"+n);return e}function Xw(o){const t=[];let e=o;for(;e&&e.nodeType!=Node.DOCUMENT_NODE;)t.unshift(e),e=e.parentNode;return t}function dh(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 uh(o){if(!o.target)return null;const t=o.target.ownerDocument,e=o.clientX,n=o.clientY;let i=null;return t.caretRangeFromPoint&&t.caretRangeFromPoint(e,n)?i=t.caretRangeFromPoint(e,n):o.rangeParent&&(i=t.createRange(),i.setStart(o.rangeParent,o.rangeOffset),i.collapse(!0)),i}function _t(o){return Object.prototype.toString.call(o)=="[object Text]"}function Yr(o){return Object.prototype.toString.apply(o)=="[object Range]"}function hh(o){return o&&o.parentNode?o.offsetParent===A.document.body?null:o.offsetParent:null}const mh=["top","right","bottom","left","width","height"];class X{constructor(t){const e=Yr(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),kl(t)||e)if(e){const n=X.getDomRangeRects(t);Qr(this,X.getBoundingRect(n))}else Qr(this,t.getBoundingClientRect());else if($r(t)){const{innerWidth:n,innerHeight:i}=t;Qr(this,{top:0,right:n,bottom:i,left:0,width:n,height:i})}else Qr(this,t)}clone(){return new X(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 X(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(gh(t))return e;let n,i=t,r=t.parentNode||t.commonAncestorContainer;for(;r&&!gh(r);){const a=((s=r)instanceof HTMLElement?s.ownerDocument.defaultView.getComputedStyle(s).overflow:"visible")==="visible";i instanceof HTMLElement&&ph(i)==="absolute"&&(n=i);const c=ph(r);if(a||n&&(c==="relative"&&a||c!=="relative")){i=r,r=r.parentNode;continue}const l=new X(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 mh)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}=A.window,n=this.clone().moveBy(t,e);if(kl(n._source)){const i=hh(n._source);i&&(function(r,s){const a=new X(s),c=dh(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($r(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=dh(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 X(i));else{let i=t.startContainer;_t(i)&&(i=i.parentNode);const r=new X(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 X(e))}}function Qr(o,t){for(const e of mh)o[e]=t[e]}
vendor: 4,720 bytes, line 8800
8800function gh(o){return!!kl(o)&&o===o.ownerDocument.body}function kl(o){return o!==null&&typeof o=="object"&&o.nodeType===1&&typeof o.getBoundingClientRect=="function"}function ph(o){return o instanceof HTMLElement?o.ownerDocument.defaultView.getComputedStyle(o).position:"static"}const At=class At{constructor(t,e){At._observerInstance||At._createObserver(),this._element=t,this._callback=e,At._addElementCallback(t,e),At._observerInstance.observe(t)}get element(){return this._element}destroy(){At._deleteElementCallback(this._element,this._callback)}static _addElementCallback(t,e){At._elementCallbacks||(At._elementCallbacks=new Map);let n=At._elementCallbacks.get(t);n||(n=new Set,At._elementCallbacks.set(t,n)),n.add(e)}static _deleteElementCallback(t,e){const n=At._getElementCallbacks(t);n&&(n.delete(e),n.size||(At._elementCallbacks.delete(t),At._observerInstance.unobserve(t))),At._elementCallbacks&&!At._elementCallbacks.size&&(At._observerInstance=null,At._elementCallbacks=null)}static _getElementCallbacks(t){return At._elementCallbacks?At._elementCallbacks.get(t):null}static _createObserver(){At._observerInstance=new A.window.ResizeObserver((t=>{for(const e of t){const n=At._getElementCallbacks(e.target);if(n)for(const i of n)i(e)}}))}};At._observerInstance=null,At._elementCallbacks=null;let mi=At;function fh(o,t){o instanceof HTMLTextAreaElement&&(o.value=t),o.innerHTML=t}function Pn(o){return t=>t+o}function gi(o){let t=0;for(;o.previousSibling;)o=o.previousSibling,t++;return t}function kh(o,t,e){o.insertBefore(e,o.childNodes[t]||null)}function pi(o){return o&&o.nodeType===Node.COMMENT_NODE}function Ne(o){return!!o&&(_t(o)?Ne(o.parentElement):!!o.getClientRects&&!!o.getClientRects().length)}function Zr({element:o,target:t,positions:e,limiter:n,fitInViewport:i,viewportOffsetConfig:r}){an(t)&&(t=t()),an(n)&&(n=n());const s=hh(o),a=(function(h){h=Object.assign({top:0,bottom:0,left:0,right:0},h);const m=new X(A.window);return m.top+=h.top,m.height-=h.top,m.bottom-=h.bottom,m.height-=h.bottom,m})(r),c=new X(o),l=bh(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=bh(n,a);h&&(u.limiterRect=h)}d=(function(h,m){const{elementRect:p}=m,k=p.getArea(),b=h.map((M=>new wh(M,m))).filter((M=>!!M.name));let C=0,I=null;for(const M of b){const{limiterIntersectionArea:N,viewportIntersectionArea:G}=M;if(N===k)return M;const Q=G**2+N**2;Q>C&&(C=Q,I=M)}return I})(e,u)}else d=new wh(e[0],u);return d}function bh(o,t){const e=new X(o).getVisible();return e?e.getIntersection(t):null}class wh{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 Ah(o){const t=o.parentNode;t&&t.removeChild(o)}function tA({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 X(o).excludeScrollbarsAndBorders(),c=e&&n,l=[s,r].every((p=>a.contains(p)));let{scrollX:d,scrollY:u}=o;const h=d,m=u;c?u-=a.top-t.top+i.top:l||(Ch(s,a)?u-=a.top-t.top+i.top:_h(r,a)&&(u+=e?t.top-a.top-i.top:t.bottom-a.bottom+i.bottom)),l||(vh(t,a)?d-=a.left-t.left+i.left:yh(t,a)&&(d+=t.right-a.right+i.right)),d==h&&u===m||o.scrollTo(d,u)}function eA({parent:o,getRect:t,alignToTop:e,forceScroll:n,ancestorOffset:i=0,limiterElement:r}){const s=bl(o),a=e&&n;let c,l,d;const u=r||s.document.body;for(;o!=u;)l=t(),c=new X(o).excludeScrollbarsAndBorders(),d=c.contains(l),a?o.scrollTop-=c.top-l.top+i:d||(Ch(l,c)?o.scrollTop-=c.top-l.top+i:_h(l,c)&&(o.scrollTop+=e?l.top-c.top-i:l.bottom-c.bottom+i)),d||(vh(l,c)?o.scrollLeft-=c.left-l.left+i:yh(l,c)&&(o.scrollLeft+=l.right-c.right+i)),o=o.parentNode}function _h(o,t){return o.bottom>t.bottom}function Ch(o,t){return o.top<t.top}function vh(o,t){return o.left<t.left}function yh(o,t){return o.right>t.right}function bl(o){return Yr(o)?o.startContainer.ownerDocument.defaultView:o.ownerDocument.defaultView}
8800function nA(o){if(Yr(o)){let t=o.commonAncestorContainer;return _t(t)&&(t=t.parentNode),t}return o.parentNode}function xh(o,t){const e=bl(o),n=new X(o);if(e===t)return n;{let i=e;for(;i!=t;){const r=i.frameElement,s=new X(r).excludeScrollbarsAndBorders();n.moveBy(s.left,s.top),i=i.parent}}return n}const iA={ctrl:"â",cmd:"â",alt:"â¥",shift:"â§"},oA={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},Eh={37:"â",38:"â",39:"â",40:"â",9:"â¥",33:"Page Up",34:"Page Down"},ot=sA(),rA=Object.fromEntries(Object.entries(ot).map((([o,t])=>{let e;return e=t in Eh?Eh[t]:o.charAt(0).toUpperCase()+o.slice(1),[t,e]})));function Ln(o){let t;if(typeof o=="string"){if(t=ot[o.toLowerCase()],!t)throw new E("keyboard-unknown-key",null,{key:o})}else t=o.keyCode+(o.altKey?ot.alt:0)+(o.ctrlKey?ot.ctrl:0)+(o.shiftKey?ot.shift:0)+(o.metaKey?ot.cmd:0);return t}function wl(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 Ln(e.slice(0,-1));const n=Ln(e);return(v.isMac||v.isiOS)&&n==ot.ctrl?ot.cmd:n})(t):t)).reduce(((t,e)=>e+t),0)}function Jr(o){let t=wl(o);return Object.entries(v.isMac||v.isiOS?iA:oA).reduce(((e,[n,i])=>(t&ot[n]&&(t&=~ot[n],e+=i),e)),"")+(t?rA[t]:"")}function Al(o,t){const e=t==="ltr";switch(o){case ot.arrowleft:return e?"left":"right";case ot.arrowright:return e?"right":"left";case ot.arrowup:return"up";case ot.arrowdown:return"down"}}function sA(){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}function gt(o){return Array.isArray(o)?o:[o]}const _l=function(o,t,e){(e!==void 0&&!si(o[t],e)||e===void 0&&!(t in o))&&Ur(o,t,e)},Dh=(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}})(),aA=function(o){return ie(o)&&Wr(o)},Ih=function(o,t){if((t!=="constructor"||typeof o[t]!="function")&&t!="__proto__")return o[t]},cA=function(o){return Bn(o,Nn(o))},lA=function(o,t,e,n,i,r,s){var a=Ih(o,e),c=Ih(t,e),l=s.get(c);if(l)_l(o,e,l);else{var d=void 0,u=d===void 0;if(u){var h=$t(c),m=!h&&li(c),p=!h&&!m&&sl(c);d=c,h||m||p?$t(a)?d=a:aA(a)?d=Fu(a):m?(u=!1,d=Ru(c,!0)):p?(u=!1,d=Ju(c,!0)):d=[]:Yt(c)||qr(c)?(d=a,qr(a)?d=cA(a):kt(a)&&!an(a)||(d=th(c))):u=!1}u&&(s.set(c,d),i(d,c,n,r,s),s.delete(c)),_l(o,e,d)}},dA=function o(t,e,n,i,r){t!==e&&Dh(e,(function(s,a){if(r||(r=new Mn),kt(s))lA(t,e,a,n,o,i,r);else{var c=void 0;c===void 0&&(c=s),_l(t,a,c)}}),Nn)},Ge=function(o){return o},uA=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 Sh=Math.max;const hA=function(o,t,e){return t=Sh(t===void 0?o.length-1:t,0),function(){for(var n=arguments,i=-1,r=Sh(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),uA(o,this,a)}},mA=function(o){return function(){return o}},gA=Hr?function(o,t){return Hr(o,"toString",{configurable:!0,enumerable:!1,value:mA(t),writable:!0})}:Ge;var pA=Date.now;const fA=function(o){var t=0,e=0;return function(){var n=pA(),i=16-(n-e);if(e=n,i>0){if(++t>=800)return arguments[0]}else t=0;return o.apply(void 0,arguments)}}(gA),kA=function(o,t){return fA(hA(o,t,Ge),o+"")},bA=function(o,t,e){if(!kt(e))return!1;var n=typeof t;return!!(n=="number"?Wr(e)&&Gr(t,e.length):n=="string"&&t in e)&&si(e[t],o)},Mh=function(o){return kA((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&&bA(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}))},Cl=Mh((function(o,t,e){dA(o,t,e)}));function wA(o,t,e=1,n){if(typeof e!="number")throw new E("translation-service-quantity-not-a-number",null,{quantity:e});const i=n||A.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))]}A.window.CKEDITOR_TRANSLATIONS||(A.window.CKEDITOR_TRANSLATIONS={});const AA=["ar","ara","dv","div","fa","per","fas","he","heb","ku","kur","ug","uig"];function Bh(o){return AA.includes(o)?"rtl":"ltr"}class _A{constructor({uiLanguage:t="en",contentLanguage:e,translations:n}={}){this.uiLanguage=t,this.contentLanguage=e||this.uiLanguage,this.uiLanguageDirection=Bh(this.uiLanguage),this.contentLanguageDirection=Bh(this.contentLanguage),this.translations=(function(i){return Array.isArray(i)?i.reduce(((r,s)=>Cl(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))})(wA(this.uiLanguage,t,n,this.translations),e)}}class he extends at(){constructor(t={},e={}){super();const n=Kt(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)}
vendor: 9,909 bytes, line 8800
8800addMany(t,e){if(e===void 0)e=this._items.length;else if(e>this._items.length||e<0)throw new E("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 E("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 E("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 E("collection-add-invalid-id",this);if(this.get(n))throw new E("collection-add-item-already-exists",this)}else t[e]=n=ne();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 E("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 Mt(o){const t=o.next();return t.done?null:t.value}class Et extends re(dt()){constructor(){super(),this._elements=new Set,this._externalViews=new Set,this._blurTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}get elements(){return Array.from(this._elements.values())}get externalViews(){return Array.from(this._externalViews.values())}add(t){if(Nh(t))this._addElement(t);else if(Th(t))this._addView(t);else{if(!t.element)throw new E("focustracker-add-view-missing-element",{focusTracker:this,view:t});this._addElement(t.element)}}remove(t){Nh(t)?this._removeElement(t):Th(t)?this._removeView(t):this._removeElement(t.element)}_addElement(t){if(this._elements.has(t))throw new E("focustracker-add-element-already-exist",this);this.listenTo(t,"focus",(()=>{const e=this.externalViews.find((n=>(function(i,r){return Ph(i,r)?!0:!!r.focusTracker.externalViews.find((s=>Ph(i,s)))})(t,n)));e?this._focus(e.element):this._focus(t)}),{useCapture:!0}),this.listenTo(t,"blur",(()=>{this._blur()}),{useCapture:!0}),this._elements.add(t)}_removeElement(t){this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t)),t===this.focusedElement&&this._blur()}_addView(t){t.element&&this._addElement(t.element),this.listenTo(t.focusTracker,"change:focusedElement",(()=>{t.focusTracker.focusedElement?t.element&&this._focus(t.element):this._blur()})),this._externalViews.add(t)}_removeView(t){t.element&&this._removeElement(t.element),this.stopListening(t.focusTracker),this._externalViews.delete(t)}destroy(){this.stopListening(),this._elements.clear(),this._externalViews.clear(),this.isFocused=!1,this.focusedElement=null}_focus(t){this._clearBlurTimeout(),this.focusedElement=t,this.isFocused=!0}_blur(){this.elements.find((t=>t.contains(document.activeElement)))||this.externalViews.find((t=>t.focusTracker.isFocused&&!t.focusTracker._blurTimeout))||(this._clearBlurTimeout(),this._blurTimeout=setTimeout((()=>{this.focusedElement=null,this.isFocused=!1}),0))}_clearBlurTimeout(){clearTimeout(this._blurTimeout),this._blurTimeout=null}}function Th(o){return"focusTracker"in o&&o.focusTracker instanceof Et}function Nh(o){return Ue(o)}function Ph(o,t){return!!t.element&&t.element.contains(document.activeElement)&&o.contains(t.element)}class Rt{constructor(){this._listener=new(re())}listenTo(t){this._listener.listenTo(t,"keydown",((e,n)=>{this._listener.fire("_keydown:"+Ln(n),n)}))}set(t,e,n={}){const i=wl(t),r=n.priority;this._listener.listenTo(this._listener,"_keydown:"+i,((s,a)=>{n.filter&&!n.filter(a)||(e(a,(()=>{a.preventDefault(),a.stopPropagation(),s.stop()})),s.return=!0)}),{priority:r})}press(t){return!!this._listener.fire("_keydown:"+Ln(t),t)}stopListening(t){this._listener.stopListening(t)}destroy(){this.stopListening()}}function ye(o){return Kt(o)?new Map(o):(function(t){const e=new Map;for(const n in t)e.set(n,t[n]);return e})(o)}function Lh(o,t,e,n){if(Math.max(t.length,o.length)>1e4)return o.slice(0,e).concat(t).concat(o.slice(e+n,o.length));{const i=Array.from(o);return i.splice(e,n,...t),i}}function vl(o,t){let e;function n(...i){n.cancel(),e=setTimeout((()=>o(...i)),t)}return n.cancel=()=>{clearTimeout(e)},n}function yl(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 xl(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 CA=vA();function Oh(o,t){const e=String(o).matchAll(CA);return Array.from(e).some((n=>n.index<t&&t<n.index+n[0].length))}function vA(){const o=/\p{Regional_Indicator}{2}/u.source,t="(?:"+[/\p{Emoji}[\u{E0020}-\u{E007E}]+\u{E007F}/u,/\p{Emoji}\u{FE0F}?\u{20E3}/u,/\p{Emoji}\u{FE0F}/u,/(?=\p{General_Category=Other_Symbol})\p{Emoji}\p{Emoji_Modifier}*/u].map((e=>e.source)).join("|")+")";return new RegExp(`${o}|${t}(?:â${t})*`,"ug")}class me extends he{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 E("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 ge extends at(){constructor(t){super(),Object.assign(this,jh(Fh(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 E("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)ts(n)?yield n:El(n)&&(yield*t(n))})(this)}static bind(t,e){return{to:(n,i)=>new yA({eventNameOrFunction:n,attribute:n,observable:t,emitter:e,callback:i}),if:(n,i,r)=>new zh({observable:t,emitter:e,attribute:n,valueIfTrue:i,callback:r})}}static extend(t,e){if(t._isRendered)throw new E("template-extend-render",[this,t]);qh(t,jh(Fh(e)))}_renderNode(t){let e;if(e=t.node?this.tag&&this.text:this.tag?this.text:!this.text,e)throw new E("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(""),Xr(this.text)?this._bindToObservable({schema:this.text,updater:xA(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=Gh(s)?s[0].ns:null;if(Xr(s)){const c=Gh(s)?s[0].value:s;n&&Wh(i)&&c.unshift(r),this._bindToObservable({schema:c,updater:EA(e,i,a),data:t})}
8800else if(i=="style"&&typeof s[0]!="string")this._renderStyleAttribute(s[0],t);else{n&&r&&Wh(i)&&s.unshift(r);const c=s.map((l=>l&&l.value||l)).reduce(((l,d)=>l.concat(d)),[]).reduce(Hh,"");On(c)||e.setAttributeNS(a,i,c)}}}_renderStyleAttribute(t,e){const n=e.node;for(const i in t){const r=t[i];Xr(r)?this._bindToObservable({schema:[r],updater:DA(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;for(const s of this.children)if(Dl(s)){if(!i){s.setParent(e);for(const a of s)n.appendChild(a.element)}}else if(ts(s))i||(s.isRendered||s.render(),n.appendChild(s.element));else if(qe(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;Rh(t,e,n);const r=t.filter((s=>!On(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 fi{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=()=>Rh(t,e,n);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,i),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,i)}}}class yA extends fi{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 zh extends fi{constructor(t){super(t),this.valueIfTrue=t.valueIfTrue}getValue(t){return!On(super.getValue(t))&&(this.valueIfTrue||!0)}}function Xr(o){return!!o&&(o.value&&(o=o.value),Array.isArray(o)?o.some(Xr):o instanceof fi)}function Rh(o,t,{node:e}){const n=(function(r,s){return r.map((a=>a instanceof fi?a.getValue(s):a))})(o,e);let i;i=o.length==1&&o[0]instanceof zh?n[0]:n.reduce(Hh,""),On(i)?t.remove():t.set(i)}function xA(o){return{set(t){o.textContent=t},remove(){o.textContent=""}}}function EA(o,t,e){return{set(n){o.setAttributeNS(e,t,n)},remove(){o.removeAttributeNS(e,t)}}}function DA(o,t){return{set(e){o.style[t]=e},remove(){o.style[t]=null}}}function Fh(o){return fl(o,(t=>{if(t&&(t instanceof fi||El(t)||ts(t)||Dl(t)))return t}))}function jh(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)Vh(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)),Vh(e,n)})(o.attributes);const t=[];if(o.children)if(Dl(o.children))t.push(o.children);else for(const e of o.children)El(e)||ts(e)||qe(e)?t.push(e):t.push(new ge(e));o.children=t}return o}function Vh(o,t){o[t]=gt(o[t])}function Hh(o,t){return On(t)?o:On(o)?t:`${o} ${t}`}function Uh(o,t){for(const e in t)o[e]?o[e].push(...t[e]):o[e]=t[e]}function qh(o,t){if(t.attributes&&(o.attributes||(o.attributes={}),Uh(o.attributes,t.attributes)),t.eventListeners&&(o.eventListeners||(o.eventListeners={}),Uh(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 E("ui-template-extend-children-mismatch",o);let e=0;for(const n of t.children)qh(o.children[e++],n)}}function On(o){return!o&&o!==0}function ts(o){return o instanceof $}function El(o){return o instanceof ge}function Dl(o){return o instanceof me}function Gh(o){return kt(o[0])&&o[0].ns}function Wh(o){return o=="class"||o=="style"}var IA=P(2591),F=P.n(IA),SA=P(8639),j=P.n(SA),MA=P(8128),V=P.n(MA),BA=P(8021),H=P.n(BA),TA=P(3051),U=P.n(TA),es=P(7676),ki={attributes:{"data-cke":!0}};ki.setAttributes=H(),ki.insert=V().bind(null,"head"),ki.domAPI=j(),ki.insertStyleElement=U(),F()(es.A,ki),es.A&&es.A.locals&&es.A.locals;class $ extends re(dt()){constructor(t){super(),this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new he,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",((e,n
8800)=>{n.locale=t,n.t=t&&t.t})),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=ge.bind(this,this)}createCollection(t){const e=new me(t);return this._viewCollections.add(e),e}registerChild(t){Kt(t)||(t=[t]);for(const e of t)this._unboundChildren.add(e)}deregisterChild(t){Kt(t)||(t=[t]);for(const e of t)this._unboundChildren.remove(e)}setTemplate(t){this.template=new ge(t)}extendTemplate(t){ge.extend(this.template,t)}render(){if(this.isRendered)throw new E("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 ns({emitter:o,activator:t,callback:e,contextElements:n,listenerOptions:i}){o.listenTo(document,"mousedown",((r,s)=>{if(!t())return;const a=typeof s.composedPath=="function"?s.composedPath():[],c=typeof n=="function"?n():n;for(const l of c)if(l.contains(s.target)||a.includes(l))return;e()}),i)}function Il(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 is({view:o}){o.listenTo(o.element,"submit",((t,e)=>{e.preventDefault(),o.fire("submit")}),{useCapture:!0})}function NA({keystrokeHandler:o,focusTracker:t,gridItems:e,numberOfColumns:n,uiLanguageDirection:i}){const r=()=>n;function s(l){return d=>{const u=e.find((p=>p.element===t.focusedElement)),h=e.getIndex(u),m=l(h,e);e.get(m).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 R extends dt(){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",Kh,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),this._disableStack.size==0&&(this.off("set:isEnabled",Kh),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}static get isOfficialPlugin(){return!1}static get isPremiumPlugin(){return!1}}function Kh(o){o.return=!1,o.stop()}class tt extends dt(){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",$h,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),this._disableStack.size==0&&(this.off("set:isEnabled",$h),this.refresh())}execute(...t){}destroy(){this.stopListening()}}function $h(o){o.return=!1,o.stop()}class Yh extends tt{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...t){const e=this._getFirstEnabledCommand();return!!e&&e.execute(t)}registerChildCommand(t,e={}){su(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 Qh extends at(){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 E("plugincollection-
8800plugin-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 p(k,b=new Set){k.forEach((C=>{c(C)&&(b.has(C)||(b.add(C),C.pluginName&&!i._availablePlugins.has(C.pluginName)&&i._availablePlugins.set(C.pluginName,C),C.requires&&p(C.requires,b)))}))})(t),h(t);const s=[...(function p(k,b=new Set){return k.map((C=>c(C)?C:i._availablePlugins.get(C))).reduce(((C,I)=>b.has(I)?C:(b.add(I),I.requires&&(h(I.requires,I),p(I.requires,b).forEach((M=>C.add(M)))),C.add(I))),new Set)})(t.filter((p=>!d(p,e))))];(function(p,k){for(const b of k){if(typeof b!="function")throw new E("plugincollection-replace-plugin-invalid-type",null,{pluginItem:b});const C=b.pluginName;if(!C)throw new E("plugincollection-replace-plugin-missing-name",null,{pluginItem:b});if(b.requires&&b.requires.length)throw new E("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:C});const I=i._availablePlugins.get(C);if(!I)throw new E("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:C});const M=p.indexOf(I);if(M===-1){if(i._contextPlugins.has(I))return;throw new E("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:C})}if(I.requires&&I.requires.length)throw new E("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:C});p.splice(M,1,b),i._availablePlugins.set(C,b)}})(s,n);const a=s.map((p=>{let k=i._contextPlugins.get(p);return k=k||new p(r),i._add(p,k),k}));return m(a,"init").then((()=>m(a,"afterInit"))).then((()=>a));function c(p){return typeof p=="function"}function l(p){return c(p)&&!!p.isContextPlugin}function d(p,k){return k.some((b=>b===p||u(p)===b||u(b)===p))}function u(p){return c(p)?p.pluginName||p.name:p}function h(p,k=null){p.map((b=>
8800c(b)?b:i._availablePlugins.get(b)||b)).forEach((b=>{(function(C,I){if(!c(C))throw I?new E("plugincollection-soft-required",r,{missingPlugin:C,requiredBy:u(I)}):new E("plugincollection-plugin-not-found",r,{plugin:C})})(b,k),(function(C,I){if(l(I)&&!l(C))throw new E("plugincollection-context-required",r,{plugin:u(C),requiredBy:u(I)})})(b,k),(function(C,I){if(I&&d(C,e))throw new E("plugincollection-required",r,{plugin:u(C),requiredBy:u(I)})})(b,k)}))}function m(p,k){return p.reduce(((b,C)=>C[k]?i._contextPlugins.has(C)?b:b.then(C[k].bind(C)):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 E("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:t});this._plugins.set(n,e)}}}class Zh{constructor(t){this._contextOwner=null;const{translations:e,...n}=t||{};this.config=new sh(n,this.constructor.defaultConfig);const i=this.constructor.builtinPlugins;this.config.define("plugins",i),this.plugins=new Qh(this,i);const r=this.config.get("language")||{};this.locale=new _A({uiLanguage:typeof r=="string"?r:r.ui,contentLanguage:this.config.get("language.content"),translations:e}),this.t=this.locale.t,this.editors=new he}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 E("context-initplugins-constructor-only",null,{Plugin:n});if(n.isContextPlugin!==!0)throw new E("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 E("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 os extends dt(){constructor(t){super(),this.context=t}destroy(){this.stopListening()}static get isContextPlugin(){return!0}static get isOfficialPlugin(){return!1}static get isPremiumPlugin(){return!1}}var rs=P(4098),bi={attributes:{"data-cke":!0}};bi.setAttributes=H(),bi.insert=V().bind(null,"head"),bi.domAPI=j(),bi.insertStyleElement=U(),F()(rs.A,bi),rs.A&&rs.A.locals&&rs.A.locals;const ss=new WeakMap;let Jh=!1;function Xh({view:o,element:t,text:e,isDirectHost:n=!0,keepOnFocus:i=!1}){const r=o.document;function s(a){ss.get(r).set(t,{text:a,isDirectHost:n,keepOnFocus:i,hostElement:n?t:null}),o.change((c=>Sl(r,c)))}ss.has(r)||(ss.set(r,new Map),r.registerPostFixer((a=>Sl(r,a))),r.on("change:isComposing",(()=>{o.change((a=>Sl(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(){Jh||nt("enableplaceholder-deprecated-text-option"),Jh=!0})()}function PA(o,t){return!t.hasClass("ck-placeholder")&&(o.addClass("ck-placeholder",t),!0)}function LA(o,t){return!!t.hasClass("ck-placeholder")&&(o.removeClass("ck-placeholder",t),!0)}function OA(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 Sl(o,t){const e=ss.get(o),n=[];let i=!1;for(const[r,s]of e)s.isDirectHost&&(n.push(r),tm(t,r,s)&&(i=!0));for(const[r,s]of e){if(s.isDirectHost)continue;const a=zA(r);a&&(n.includes(a)||(s.hostElement=a,tm(t,r,s)&&(i=!0)))}return i}function tm(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)&&OA(r,e.keepOnFocus)?PA(o,r)&&(s=!0):LA(o,r)&&(s=!0),s}function zA(o){if(o.childCount){const t=o.getChild(0);if(t.is("element")&&!t.is("uiElement")&&!t.is("attributeElement"))return t}return null}class un{is(){throw new Error("is() method is abstract")}}const em=function(o){return pl(o,4)};class hn extends at(un){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 E("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=Ft(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)}
8800_fireChange(t,e){this.fire(`change:${t}`,e),this.parent&&this.parent._fireChange(t,e)}toJSON(){const t=em(this);return delete t.parent,t}}hn.prototype.is=function(o){return o==="node"||o==="view:node"};class ut extends hn{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 ut&&(this===t||this.data===t.data)}_clone(){return new ut(this.document,this.data)}}ut.prototype.is=function(o){return o==="$text"||o==="view:$text"||o==="text"||o==="view:text"||o==="node"||o==="view:node"};class xe extends un{constructor(t,e,n){if(super(),this.textNode=t,e<0||e>t.data.length)throw new E("view-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.data.length)throw new E("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}}xe.prototype.is=function(o){return o==="$textProxy"||o==="view:$textProxy"||o==="textProxy"||o==="view:textProxy"};class Ee{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=nm(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=nm(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 nm(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 Yt(n)?(n.style!==void 0&&nt("matcher-pattern-deprecated-attributes-style-key",n),n.class!==void 0&&nt("matcher-pattern-deprecated-attributes-class-key",n)):(r.delete("style"),r.delete("class")),Ml(n,r,(s=>i.getAttribute(s)))})(t.attributes,o),!e.attributes)||t.classes&&(e.classes=(function(n,i){return Ml(n,i.getClassNames(),(()=>{}))})(t.classes,o),!e.classes)||t.styles&&(e.styles=(function(n,i){return Ml(n,i.getStyleNames(!0),(r=>i.getStyle(r)))})(t.styles,o),!e.styles)?null:e}function Ml(o,t,e){const n=(function(s){return Array.isArray(s)?s.map((a=>Yt(a)?(a.key!==void 0&&a.value!==void 0||nt("matcher-pattern-missing-key-or-value",a),[a.key,a.value]):[a,!0])):Yt(s)?Object.entries(s):[[s,!0]]})(o),i=Array.from(t),r=[];if(n.forEach((([s,a])=>{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 as=function(o){return typeof o=="symbol"||ie(o)&&He(o)=="[object Symbol]"};var RA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,FA=/^\w*$/;const Bl=function(o,t){if($t(o))return!1;var e=typeof o;return!(e!="number"&&e!="symbol"&&e!="boolean"&&o!=null&&!as(o))||FA.test(o)||!RA.test(o)||t!=null&&o in Object(t)};function Tl(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(Tl.Cache||Vr),e}Tl.Cache=Vr;const jA=Tl,VA=function(o){var t=jA(o,(function(n){return e.size===500&&e.clear(),n})),e=t.cache;return t};var HA=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,UA=/\\(\\)?/g,qA=VA((function(o){var t=[];
8800return o.charCodeAt(0)===46&&t.push(""),o.replace(HA,(function(e,n,i,r){t.push(i?r.replace(UA,"$1"):n||e)})),t}));const GA=qA,WA=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 im=ve?ve.prototype:void 0,om=im?im.toString:void 0;const KA=function o(t){if(typeof t=="string")return t;if($t(t))return WA(t,o)+"";if(as(t))return om?om.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e},Nl=function(o){return o==null?"":KA(o)},cs=function(o,t){return $t(o)?o:Bl(o,t)?[o]:GA(Nl(o))},$A=function(o){var t=o==null?0:o.length;return t?o[t-1]:void 0},zn=function(o){if(typeof o=="string"||as(o))return o;var t=o+"";return t=="0"&&1/o==-1/0?"-0":t},Pl=function(o,t){for(var e=0,n=(t=cs(t,o)).length;o!=null&&e<n;)o=o[zn(t[e++])];return e&&e==n?o:void 0},rm=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},YA=function(o,t){return t.length<2?o:Pl(o,rm(t,0,-1))},QA=function(o,t){return t=cs(t,o),(o=YA(o,t))==null||delete o[zn($A(t))]},ZA=function(o,t){return o==null||QA(o,t)},wi=function(o,t,e){var n=o==null?void 0:Pl(o,t);return n===void 0?e:n},JA=function(o,t,e,n){if(!kt(o))return o;for(var i=-1,r=(t=cs(t,o)).length,s=r-1,a=o;a!=null&&++i<r;){var c=zn(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=kt(d)?d:Gr(t[i+1])?[]:{})}nl(a,c,l),a=a[c]}return o},XA=function(o,t,e){return o==null?o:JA(o,t,e)};class Ll{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(kt(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=Ol(t);ZA(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]&&!kt(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=wi(this._styles,n);i&&!Object.keys(i).length&&this.remove(n)}}class t_{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(t,e,n){if(kt(e))zl(n,Ol(t),e);else if(this._normalizers.has(t)){const i=this._normalizers.get(t),{path:r,value:s}=i(e);zl(n,r,s)}else zl(n,t,e)}getNormalized(t,e){if(!t)return Cl({},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 wi(e,n);const i=n(t,e);if(i)return i}return wi(e,Ol(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=new Set;for(const n of this._consumables.keys()){const i=this.getNormalized(n,t);i&&(typeof i!="object"||Object.keys(i).length)&&e.add(n)}for(const n of Object.keys(t))e.add(n);return Array.from(e)}getRelatedStyles(t){return this._consumables.get(t)||[]}setNormalizer(t,e){this._normalizers.set(t,e)}setExtractor(t,e){this._extractors.set(t,e)}setReducer(t,e){this._reducers.set(t,e)}setStyleRelation(t,e){this._mapStyleNames(t,e);for(const n of e)this._mapStyleNames(n,[t])}_mapStyleNames(t,e){this._consumables.has(t)||this._consumables.set(t,[]),this._consumables.get(t).push(...e)}}function Ol(o){return o.replace("-",".")}function zl(o,t,e){let n=e;kt(e)&&(n=Cl({},wi(o,t),e)),XA(o,t,n)}class Qt extends hn{constructor(t,e,n,i){if(super(t),this._unsafeAttributesToRender=[],this._customProperties=new Map,this.name=e,this._attrs=(function(r){const s=ye(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");sm(this._classes,r),this._attrs.delete("class")}this._styles=new Ll(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>
88000&&(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 Qt))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 Ee(...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 ut(r,s)]:(Kt(s)||(s=[s]),Array.from(s).map((a=>typeof a=="string"?new ut(r,a):a instanceof xe?new ut(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"?sm(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 sm(o,t){const e=t.split(/\s+/);o.clear(),e.forEach((n=>o.add(n)))}Qt.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 Ai extends Qt{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=e_}}function e_(){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}Ai.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 ls extends dt(Ai){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()}}ls.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 am=Symbol("rootName");class cm extends ls{constructor(t,e){super(t,e),this.rootName="main"}get rootName(){return this.getCustomProperty(am)}set rootName(t){this._setCustomProperty(am,t)}set _name(t){this.name=t}}cm.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 mn{constructor(t={}){if(!t.boundaries&&!t.startPosition)throw new E("view-tree-walker-no-start-position",null);if(t.direction&&t.direction!="forward"&&t.direction!="backward")throw new E("view-tree-walker-unknown-direction",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,t.startPosition?this._position=q._createAt(t.startPosition):this._position=q._createAt(t.boundaries[t.direction=="backward"?"end":"start"]),this.direction=t.direction||"forward",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.
8800ignoreElementEnd,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 ut){if(t.isAtEnd)return this._position=q._createAfter(n),this._next();i=n.data[t.offset]}else i=n.getChild(t.offset);if(i instanceof Qt){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(t))return{done:!0,value:void 0};t.offset++}else t=new q(i,0);return this._position=t,this._formatReturnValue("elementStart",i,e,t,1)}if(i instanceof ut){if(this.singleCharacters)return t=new q(i,0),this._position=t,this._next();let r,s=i.data.length;return i==this._boundaryEndParent?(s=this.boundaries.end.offset,r=new xe(i,0,s),t=q._createAfter(r)):(r=new xe(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 xe(n,t.offset,r);return t.offset+=r,this._position=t,this._formatReturnValue("text",s,e,t,r)}return t=q._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 ut){if(t.isAtStart)return this._position=q._createBefore(n),this._previous();i=n.data[t.offset-1]}else i=n.getChild(t.offset-1);if(i instanceof Qt)return this.shallow?(t.offset--,this._position=t,this._formatReturnValue("elementStart",i,e,t,1)):(t=new q(i,i.childCount),this._position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",i,e,t));if(i instanceof ut){if(this.singleCharacters)return t=new q(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 xe(i,a,i.data.length-a),s=r.data.length,t=q._createBefore(r)}else r=new xe(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 xe(n,t.offset,r);return this._position=t,this._formatReturnValue("text",s,e,t,r)}return t=q._createBefore(n),this._position=t,this._formatReturnValue("elementStart",n,e,t,1)}_formatReturnValue(t,e,n,i,r){return e instanceof xe&&(e.offsetInText+e.data.length==e.textNode.data.length&&(this.direction!="forward"||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=q._createAfter(e.textNode):(i=q._createAfter(e.textNode),this._position=i)),e.offsetInText===0&&(this.direction!="backward"||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=q._createBefore(e.textNode):(i=q._createBefore(e.textNode),this._position=i))),{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:i,length:r}}}}class q extends un{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 ls);){if(!t.parent)return null;t=t.parent}return t}getShiftedBy(t){const e=q._createAt(this),n=e.offset+t;return e.offset=n<0?0:n,e}getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new mn(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=Ft(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 mn(t)}clone(){return new q(this.parent,this.offset)}static _createAt(t,e){if(t instanceof q)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 E("view-createpositionat-offset-required",n)}return new q(n,e)}}static _createAfter(t){if(t.is("$textProxy"))return new q(t.textNode,t.offsetInText+t.data.length);if(!t.parent)throw new E("view-position-after-root",t,{root:t});return new q(t.parent,t.index+1)}static _createBefore(t){if(t.is("$textProxy"))return new q(t.textNode,t.offsetInText);if(!t.parent)throw new E("view-position-before-root",t,{root:t});return new q(t.parent,t.index)}}q.prototype.is=function(o){return o==="position"||o==="view:position"};class Z extends un{constructor(t,e=null){super(),this.start=t.clone(),this.end=e?e.clone():t.clone()}*[Symbol.iterator](){yield*new mn({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(ds,{direction:"backward"}),e=this.end.getLastMatchingPosition(ds);return t.parent.is("$text")&&t.isAtStart&&(t=q._createBefore(t.parent)),e.parent.is("$text")&&e.isAtEnd&&(e=q._createAfter(e.parent)),new Z(t,e)}getTrimmed(){let t=this.start.getLastMatchingPosition(ds);if(t.isAfter(this.end)||t.isEqual(this.end))return new Z(t,t);let e=this.end.getLastMatchingPosition(ds,{direction:"backward"});const n=t.nodeAfter,i=e.nodeBefore;return n&&n.is("$text")&&(t=new q(n,0)),i&&i.is("$text")&&(e=new q(i,i.data.length)),new Z(t,e)}isEqual(t){return this==t||this.start.isEqual(t.start)&&this.end.isEqual(t.end
vendor: 9,145 bytes, line 8800
8800)}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 Z(this.start,t.start)),this.containsPosition(t.end)&&e.push(new Z(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 Z(e,n)}return null}getWalker(t={}){return t.boundaries=this,new mn(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 Z(this.start,this.end)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new mn(t);for(const n of e)yield n.item}*getPositions(t={}){t.boundaries=this;const e=new mn(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 q(t,e),new q(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(q._createBefore(t),e)}}function ds(o){return!(!o.item.is("attributeElement")&&!o.item.is("uiElement"))}Z.prototype.is=function(o){return o==="range"||o==="view:range"};class pe extends at(un){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=Xc(this.getRanges());if(e!=Xc(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 pe||e instanceof Rl)this._setRanges(e.getRanges(),e.isBackward),this._setFakeOptions({fake:e.isFake,label:e.fakeSelectionLabel});else if(e instanceof Z)this._setRanges([e],i&&i.backward),this._setFakeOptions(i);else if(e instanceof q)this._setRanges([new Z(e)]),this._setFakeOptions(i);else if(e instanceof hn){const r=!!i&&!!i.backward;let s;if(n===void 0)throw new E("view-selection-setto-required-second-parameter",this);s=n=="in"?Z._createIn(e):n=="on"?Z._createOn(e):new Z(q._createAt(e,n)),this._setRanges([s],r),this._setFakeOptions(i)}else{if(!Kt(e))throw new E("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 E("view-selection-setfocus-no-ranges",this);const n=q._createAt(t,e);if(n.compareWith(this.focus)=="same")return;const i=this.anchor;this._ranges.pop(),n.compareWith(i)=="before"?this._addRange(new Z(n,i),!0):this._addRange(new Z(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 Z))throw new E("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 E("view-selection-range-intersects",this,{addedRange:t,intersectingRange:e});this._ranges.push(new Z(t.start,t.end))}}pe.prototype.is=function(o){return o==="selection"||o==="view:selection"};class Rl extends at(un){constructor(...t){super(),this._selection=new pe,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)}}Rl.prototype.is=function(o){return o==="selection"||o=="documentSelection"||o=="view:selection"||o=="view:documentSelection"};class Rn extends Wt{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 Fl=Symbol("bubbling contexts");function jl(o){return class extends o{fire(t,...e){try{const n=t instanceof Wt?t:new Wt(this,t),i=Vl(this);if(!i.size)return;if(_i(n,"capturing",this),Fn(i,"$capture",n,...e))return n.return;const r=n.startRange||this.selection.getFirstRange(),s=r?r.getContainedElement():null,a=!!s&&!!lm(i,s);let c=s||(function(l){if(!l)return null;const d=l.start.parent,u=l.end.parent,h=d.getPath(),m=u.getPath();return h.length>m.length?d:u})(r);if(_i(n,"atTarget",c),!a){if(Fn(i,"$text",n,...e))return n.return;_i(n,"bubbling",c)}for(;c;){if(c.is("rootElement")){if(Fn(i,"$root",n,...e))return n.return}else if(c.is("element")&&Fn(i,c.name,n,...e))return n.return;if(Fn(i,c,n,...e))return n.return;c=c.parent,_i(n,"bubbling",c)}return _i(n,"bubbling",this),Fn(i,"$document",n,...e),n.return}catch(n){E.rethrowUnexpectedError(n,this)}}_addEventListener(t,e,n){const i=gt(n.context||"$document"),r=Vl(this);for(const s of i){let a=r.get(s);a||(a=new(at()),r.set(s,a)),this.listenTo(a,t,e,n)}}_removeEventListener(t,e){const n=Vl(this);for(const i of n.values())this.stopListening(i,t,e)}}}{const o=jl(Object);["fire","_addEventListener","_removeEventListener"].forEach((t=>{jl[t]=o.prototype[t]}))}function _i(o,t,e){o instanceof Rn&&(o._eventPhase=t,o._currentTarget=e)}function Fn(o,t,e,...n){const i=typeof t=="string"?o.get(t):lm(o,t);return!!i&&(i.fire(e,...n),e.stop.called)}function lm(o,t){for(const[e,n]of o)if(typeof e=="function"&&e(t))return n;return null}function Vl(o){return o[Fl]||(o[Fl]=new Map),o[Fl]}class us extends jl(dt()){constructor(t){super(),this._postFixers=new Set,this.selection=new Rl,this.roots=new he({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)}
8800destroy(){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)}}const ru=class ru extends Qt{constructor(t,e,n,i){super(t,e,n,i),this._priority=10,this._id=null,this._clonesGroup=null,this.getFillerOffset=n_}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(this.id===null)throw new E("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}};ru.DEFAULT_PRIORITY=10;let We=ru;function n_(){if(Hl(this))return null;let o=this.parent;for(;o&&o.is("attributeElement");){if(Hl(o)>1)return null;o=o.parent}return!o||Hl(o)>1?null:this.childCount}function Hl(o){return Array.from(o.getChildren()).filter((t=>!t.is("uiElement"))).length}We.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 Ul extends Qt{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=i_}_insertChild(t,e){if(e&&(e instanceof hn||Array.from(e).length>0))throw new E("view-emptyelement-cannot-add",[this,e]);return 0}}function i_(){return null}Ul.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 hs extends Qt{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=r_}_insertChild(t,e){if(e&&(e instanceof hn||Array.from(e).length>0))throw new E("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 o_(o){o.document.on("arrowKey",((t,e)=>(function(n,i,r){if(i.keyCode==ot.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((m=>(m.item.is("uiElement")&&(u=!0),!(!m.item.is("uiElement")&&!m.item.is("attributeElement")))));if(u){const m=r.viewPositionToDom(h);a?s.collapse(m.parent,m.offset):s.extend(m.parent,m.offset)}}}})(0,e,o.domConverter)),{priority:"low"})}function r_(){return null}hs.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 ql extends Qt{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=s_}_insertChild(t,e){if(e&&(e instanceof hn||Array.from(e).length>0))throw new E("view-rawelement-cannot-add",[this,e]);return 0}render(t,e){}}function s_(){return null}ql.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 gn extends at(un){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 ut(r,s)]:(Kt(s)||(s=[s]),Array.from(s).map((a=>
vendor: 4,775 bytes, line 8800
8800typeof a=="string"?new ut(r,a):a instanceof xe?new ut(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)}}gn.prototype.is=function(o){return o==="documentFragment"||o==="view:documentFragment"};class dm{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 gn(this.document,t)}createText(t){return new ut(this.document,t)}createAttributeElement(t,e,n={}){const i=new We(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;Yt(n)?i=n:r=n;const s=new Ai(this.document,t,e,r);return i.renderUnsafeAttributes&&s._unsafeAttributesToRender.push(...i.renderUnsafeAttributes),s}createEditableElement(t,e,n={}){const i=new ls(this.document,t,e);return n.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),i}createEmptyElement(t,e,n={}){const i=new Ul(this.document,t,e);return n.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),i}createUIElement(t,e,n){const i=new hs(this.document,t,e);return n&&(i.render=n),i}createRawElement(t,e,n,i={}){const r=new ql(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){Yt(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 q?this._breakAttributes(t):this._breakAttributesRange(t)}breakContainer(t){const e=t.parent;if(!e.is("containerElement"))throw new E("view-writer-break-non-container-element",this.document);if(!e.parent)throw new E("view-writer-break-root",this.document);if(t.isAtStart)return q._createBefore(e);if(!t.isAtEnd){const n=e._clone(!1);this.insert(q._createAfter(e),n);const i=new Z(t,q._createAt(e,"end")),r=new q(n,0);this.move(i,r)}return q._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 q(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 hm(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 q(i,s))}return t}mergeContainers(t){const e=t.nodeBefore,n=t.nodeAfter;if(!(e&&n&&e.is("containerElement")&&n.is("containerElement")))throw new E("view-writer-merge-containers-invalid-position",this.document);const i=e.getChild(e.childCount-1),r=i instanceof ut?q._createAt(i,"end"):q._createAt(e,"end");return this.move(Z._createIn(n),q._createAt(e,"end")),this.remove(Z._createOn(n)),r}insert(t,e){mm(e=Kt(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 Z(i,r):new Z(t)}remove(t){const e=t instanceof Z?t:Z._createOn(t);if(Ci(e,this.document),e.isCollapsed)return new gn(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 gn(this.document,a)}clear(t,e){Ci(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=Z._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=Z._createIn(a))}
8800s&&(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 We))throw new E("view-writer-wrap-invalid-attribute",this.document);if(Ci(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 Z(i)}return this._wrapRange(t,e);var n}unwrap(t,e){if(!(e instanceof We))throw new E("view-writer-unwrap-invalid-attribute",this.document);if(Ci(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 Z(a,c)}rename(t,e){const n=new Ai(this.document,t,e.getAttributes());return this.insert(q._createAfter(e),n),this.move(Z._createIn(e),q._createAt(n,0)),this.remove(Z._createOn(e)),n}clearClonedElementsGroup(t){this._cloneGroups.delete(t)}createPositionAt(t,e){return q._createAt(t,e)}createPositionAfter(t){return q._createAfter(t)}createPositionBefore(t){return q._createBefore(t)}createRange(t,e){return new Z(t,e)}createRangeOn(t){return Z._createOn(t)}createRangeIn(t){return Z._createIn(t)}createSelection(...t){return new pe(...t)}createSlot(t="children"){if(!this._slotFactory)throw new E("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?Gl(t):t.parent.is("$text")?t.parent.parent:t.parent,!i)throw new E("view-writer-invalid-position-container",this.document);r=n?this._breakAttributes(t,!0):t.parent.is("$text")?Wl(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 Z(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 q(t,r));else if(l||!d||a_(i,c)){const u=i._clone();c._remove(),u._appendChild(c),t._insertChild(r,u),this._addToClonedElementsGroup(u),s.push(new q(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 Z._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 q(t,r),new q(t,r+d)),r+=d,n+=d-1}else this._unwrapAttributeElement(i,c)?(s.push(new q(t,r),new q(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 Z._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 Z(a,c)}_wrapPosition(t,e){if(e.isSimilar(t.parent))return um(t.clone());t.parent.is("$text")&&(t=Wl(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 Z(t,t.getShiftedBy(1));this.wrap(i,e);const r=new q(n.parent,n.index);n._remove();const s=r.nodeBefore,a=r.nodeAfter;return s instanceof ut&&a instanceof ut?hm(s,a):um(r)}_wrapAttributeElement(t,e){if(!gm(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(!gm(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(Ci(t,this.document),t.isCollapsed){const c=this._breakAttributes(t.start,e);return new Z(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 Z(a,r)}_breakAttributes(t,e=!1){const n=t.offset,i=t.parent;if(t.parent.is("emptyElement"))throw new E("view-writer-cannot-break-empty-element",this.document);if(t.parent.is("uiElement"))throw new E("view-writer-cannot-break-ui-element",this.document);if(t.parent.is("rawElement"))throw new E("view-writer-cannot-break-raw-element",this.document);if(!e&&i.is("$text")&&Kl(i.parent)||Kl(i))return t.clone();if(i.is("$text"))return this._breakAttributes(Wl(t),e);if(n==i.childCount){const r=new q(i.parent,i.index+1);return this._breakAttributes(r,e)}if(n===0){const r=new q(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 q(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)}}
8800function Gl(o){let t=o.parent;for(;!Kl(t);){if(!t)return;t=t.parent}return t}function a_(o,t){return o.priority<t.priority||!(o.priority>t.priority)&&o.getIdentity()<t.getIdentity()}function um(o){const t=o.nodeBefore;if(t&&t.is("$text"))return new q(t,t.data.length);const e=o.nodeAfter;return e&&e.is("$text")?new q(e,0):o}function Wl(o){if(o.offset==o.parent.data.length)return new q(o.parent.parent,o.parent.index+1);if(o.offset===0)return new q(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 ut(o.root.document,t)),new q(o.parent.parent,o.parent.index+1)}function hm(o,t){const e=o.data.length;return o._data+=t.data,t._remove(),new q(o,e)}const c_=[ut,We,Ai,Ul,ql,hs];function mm(o,t){for(const e of o){if(!c_.some((n=>e instanceof n)))throw new E("view-writer-insert-invalid-node-type",t);e.is("$text")||mm(e.getChildren(),t)}}function Kl(o){return o&&(o.is("containerElement")||o.is("documentFragment"))}function Ci(o,t){const e=Gl(o.start),n=Gl(o.end);if(!e||!n||e!==n)throw new E("view-writer-invalid-range-container",t)}function gm(o,t){return o.id===null&&t.id===null}const pm=o=>o.createTextNode("Â "),fm=o=>{const t=o.createElement("span");return t.dataset.ckeFiller="true",t.innerText="Â ",t},km=o=>{const t=o.createElement("br");return t.dataset.ckeFiller="true",t},vi="â ".repeat(7);function Zt(o){return typeof o=="string"?o.substr(0,7)===vi:_t(o)&&o.data.substr(0,7)===vi}function jn(o){return o.data.length==7&&Zt(o)}function bm(o){const t=typeof o=="string"?o:o.data;return Zt(o)?t.slice(7):t}function l_(o,t){if(t.keyCode==ot.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;Zt(n)&&i<=7&&e.collapse(n,0)}}}var ms=P(8264),yi={attributes:{"data-cke":!0}};yi.setAttributes=H(),yi.insert=V().bind(null,"head"),yi.domAPI=j(),yi.insertStyleElement=U(),F()(ms.A,yi),ms.A&&ms.A.locals&&ms.A.locals;class d_ extends dt(){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),this.set("isComposing",!1),v.isBlink&&!v.isAndroid&&this.on("change:isSelecting",(()=>{this.isSelecting||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 E("view-renderer-unknown-type",this);this.markedChildren.add(e)}}}render(){if(this.isComposing&&!v.isAndroid)return;let t=null;const e=!(v.isBlink&&!v.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=q._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;Zt(n.parent)?this._inlineFiller=n.parent:this._inlineFiller=wm(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,u_);
8800if(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]),Ah(i[l]),a.equal++}else a[c]++}}_updateElementMappings(t,e){this.domConverter.unbindDomElement(e),this.domConverter.bindElements(e,t),this.markedChildren.add(t),this.markedAttributes.add(t)}_getInlineFillerPosition(){const t=this.selection.getFirstPosition();return t.parent.is("$text")?q._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&&_t(e.parent)&&Zt(e.parent))}_removeInlineFiller(){const t=this._inlineFiller;if(!Zt(t))throw new E("view-renderer-filler-was-lost",this);jn(t)?t.remove():t.data=t.data.substr(7),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 ut||r instanceof ut)&&!!(n!==e.getFillerOffset()||i&&i.is("element","br"))&&(!v.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=vi+i),this._updateTextNode(n,i)}_updateAttrs(t){const e=this.domConverter.mapViewToDom(t);if(e){for(const n of e.attributes){const i=n.name;t.hasAttribute(i)||this.domConverter.removeDomElementAttribute(e,i)}for(const n of t.getAttributeKeys())this.domConverter.setDomElementAttribute(e,n,t.getAttribute(n),t)}}_updateChildren(t,e){const n=this.domConverter.mapViewToDom(t);if(!n)return;if(v.isAndroid){let u=null;for(const h of Array.from(n.childNodes)){if(u&&_t(u)&&_t(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&&wm(n.ownerDocument,s,i.offset);const a=this._diffNodeLists(r,s),c=this._findUpdateActions(a,r,s,h_);let l=0;const d=new Set;for(const u of c)u==="delete"?(d.add(r[l]),Ah(r[l])):u!=="equal"&&u!=="update"||l++;l=0;for(const u of c)u==="insert"?(kh(n,l,s[l]),l++):u==="update"?(this._updateTextNode(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),ft(t,e,m_.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(ft(s,a,i).map((d=>d==="equal"?"update":d))),r.push("equal"),s=[],a=[]),c[l]++;return r.concat(ft(s,a,i).map((l=>l==="equal"?"update":l)))}_updateTextNode(t,e){const n=t.data;n!=e&&(v.isAndroid&&this.isComposing&&n.replace(/\u00A0/g," ")==e.replace(/\u00A0/g," ")||this._updateTextNodeInternal(t,e))}_updateTextNodeInternal(t,e){const n=W(t.data,e);for(const i of n)i.type==="insert"?t.insertData(i.index,i.values.join("")):t.deleteData(i.index,i.howMany)}_markDescendantTextToSync(t){if(t){if(t.is("$text"))this.markedTexts.add(t);else if(t.is("element"))for(const e of t.getChildren())this._markDescendantTextToSync(e)}}_updateSelection(){if(v.isBlink&&!v.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&&v.
8800isAndroid||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),v.isGecko&&(function(r,s){let a=r.parent,c=r.offset;if(_t(a)&&jn(a)&&(c=gi(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 wm(o,t,e){const n=t instanceof Array?t:t.childNodes,i=n[e];if(_t(i))return i.data=vi+i.data,i;{const r=o.createTextNode(vi);return Array.isArray(t)?n.splice(e,0,r):kh(t,e,r),r}}function u_(o,t){return qe(o)&&qe(t)&&!_t(o)&&!_t(t)&&!pi(o)&&!pi(t)&&o.tagName.toLowerCase()===t.tagName.toLowerCase()}function h_(o,t){return qe(o)&&qe(t)&&_t(o)&&_t(t)}function m_(o,t,e){return t===e||(_t(t)&&_t(e)?t.data===e.data:!(!o.isBlockFiller(t)||!o.isBlockFiller(e)))}const g_=km(A.document),p_=pm(A.document),f_=fm(A.document),gs="data-ck-unsafe-attribute-",Am="data-ck-unsafe-element";class ps{constructor(t,{blockFillerMode:e,renderingMode:n="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new Ee,this._inlineObjectElementMatcher=new Ee,this._elementsWithTemporaryCustomProperties=new Set,this.document=t,this.renderingMode=n,this.blockFillerMode=e||(n==="editing"?"br":"nbsp"),this.preElements=["pre","textarea"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument=this.renderingMode==="editing"?A.document:A.document.implementation.createHTMLDocument("")}bindFakeSelection(t,e){this._fakeSelectionMapping.set(t,new pe(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 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)&&(vm(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)?(vm(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);
8800r||nt("domconverter-unsafe-attribute-detected",{domElement:t,key:e,value:n}),(function(s){try{A.document.createAttribute(s)}catch(a){return!1}return!0})(e)?(t.hasAttribute(e)&&!r?t.removeAttribute(e):t.hasAttribute(gs+e)&&r&&t.removeAttribute(gs+e),t.setAttribute(r?e:gs+e,n)):nt("domconverter-invalid-attribute-detected",{domElement:t,key:e,value:n})}removeDomElementAttribute(t,e){e!=Am&&(t.removeAttribute(e),t.removeAttribute(gs+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")&&!Mt(r.getAttributes());if(s&&this.renderingMode=="data")if(r.is("rawElement")){const a=this._domDocument.createElement(r.name);r.render(a,this),yield*[...a.childNodes]}else yield*this.viewChildrenToDom(r,e);else s&&nt("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 Zt(n)&&(i+=7),{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 _t(r)&&Zt(r)?{parent:r,offset:7}:{parent:n,offset:i?gi(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)}domSelectionToView(t){if((function(i){if(!v.isGecko||!i.rangeCount)return!1;const r=i.getRangeAt(0).startContainer;try{Object.prototype.toString.call(r)}catch(s){return!0}return!1})(t))return new pe([]);if(t.rangeCount===1){let i=t.getRangeAt(0).startContainer;_t(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 pe(n,{backward:e})}domRangeToView(t){const e=this.domPositionToView(t.startContainer,t.startOffset),n=this.domPositionToView(t.endContainer,t.endOffset);return e&&n?new Z(e,n):null}domPositionToView(t,e=0){if(this.isBlockFiller(t))return this.domPositionToView(t.parentNode,gi(t));const n=this.mapDomToView(t);if(n&&(n.is("uiElement")||n.is("rawElement")))return q._createBefore(n);if(_t(t)){if(jn(t))return this.domPositionToView(t.parentNode,gi(t));const i=this.findCorrespondingViewText(t);let r=e;return i?(Zt(t)&&(r-=7,r=r<0?0:r),new q(i,r)):null}if(e===0){const i=this.mapDomToView(t);if(i)return new q(i,0)}else{const i=t.childNodes[e-1];if(_t(i)&&jn(i)||i&&this.isBlockFiller(i))return this.domPositionToView(i.parentNode,gi(i));const r=_t(i)?this.findCorrespondingViewText(i):this.mapDomToView(i);if(r&&r.parent)return new q(r.parent,r.index+1)}return null}mapDomToView(t){return this.getHostViewElement(t)||this._domToViewMapping.get(t)}findCorrespondingViewText(t){if(jn(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 ut?r:null}}else{const i=this.mapDomToView(t.parentNode);if(i){const r=i.getChild(0);return r instanceof ut?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}=A.window,r=[];_m(e,(s=>{const{scrollLeft:a,scrollTop:c}=s;r.push([a,c])})),e.focus(),_m(e,(s=>{const[a,c]=r.shift();s.scrollLeft=a,s.scrollTop=c})),A.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(g_):!(t.tagName!=="BR"||!Cm(t,this.blockElements)||t.parentNode.childNodes.length!==1)||t.isEqualNode(f_)||(function(e,n){return e.isEqualNode(p_)&&Cm(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(i){return!1}const n=e.collapsed;return e.detach(),n}getHostViewElement(t){const e=Xw(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 pm(this._domDocument);case"markedNbsp":return fm(this._domDocument);case"br":return km(this._domDocument)}}_isDomSelectionPositionCorrect(t,e){if(_t(t)&&Zt(t)&&e<7||this.isElement(t)&&Zt(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(pi(t)&&e.skipComments)return null;if(_t(t)){if(jn(t))return null;{const r=t.data;if(r==="")return null;const s=new ut(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 gn(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(pi(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),this._processDomInlineNodes(null,s,e);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(this._isPreFormatted(s))a=bm(s.data);
8800else{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&&!Zt(s.data);n.withChildren!==!1&&(u&&(a=a.replace(/^ /,"")),h&&(a=a.replace(/ $/,""))),a=bm(a),a=a.replace(/ \u00A0/g," ");const m=d&&d.is("element")&&d.name!="br",p=d&&d.is("$text")&&d.data.charAt(0)==" ";(/[ \u00A0]\u00A0$/.test(a)||!d||m||p)&&(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(this._isPreFormatted(t))return e;if(e.charAt(0)==" "){const n=this._getTouchingInlineViewNode(t,!1);!(n&&n.is("$textProxy")&&this._nodeEndsWithSpace(n))&&n||(e="Â "+e.substr(1))}if(e.charAt(e.length-1)==" "){const n=this._getTouchingInlineViewNode(t,!0),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(this._isPreFormatted(t))return!1;const e=this._processDataFromViewText(t);return e.charAt(e.length-1)==" "}_isPreFormatted(t){if((function(e,n){return e.getAncestors().some((i=>i.is("element")&&n.includes(i.name)))})(t,this.preElements))return!0;for(const e of t.getAncestors({parentFirst:!0}))if(e.is("element")&&e.hasStyle("white-space")&&e.getStyle("white-space")!=="inherit")return["pre","pre-wrap","break-spaces"].includes(e.getStyle("white-space"));return!1}_getTouchingInlineViewNode(t,e){const n=new mn({startPosition:e?q._createAfter(t):q._createBefore(t),direction:e?"forward":"backward"});for(const{item:i}of n){if(i.is("$textProxy"))return i;if(!i.is("element")||!i.getCustomProperty("dataPipeline:transparentRendering")){if(i.is("element","br"))return null;if(this._isInlineObjectElement(i))return i;if(i.is("containerElement"))return null}}return null}_isBlockDomElement(t){return this.isElement(t)&&this.blockElements.includes(t.tagName.toLowerCase())}_isBlockViewElement(t){return t.is("element")&&this.blockElements.includes(t.name)}_isInlineObjectElement(t){return!!t.is("element")&&(t.name=="br"||this.inlineObjectElements.includes(t.name)||!!this._inlineObjectElementMatcher.match(t))}_createViewElement(t,e){if(pi(t))return new hs(this.document,"$comment");const n=e.keepOriginalCase?t.tagName:t.tagName.toLowerCase();return new Qt(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(Am,t),e){for(;e.firstChild;)n.appendChild(e.firstChild);for(const i of e.getAttributeNames())n.setAttribute(i,e.getAttribute(i))}return n}}function _m(o,t){let e=o;for(;e;)t(e),e=e.parentElement}function Cm(o,t){const e=o.parentNode;return!!e&&!!e.tagName&&t.includes(e.tagName.toLowerCase())}function vm(o){o==="script"&&nt("domconverter-unsafe-script-element-detected"),o==="style"&&nt("domconverter-unsafe-style-element-detected")}class De extends re(){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 ym=Mh((function(o,t){Bn(t,Nn(t),o)}));class Vn{constructor(t,e,n){this.view=t,this.document=t.document,this.domEvent=e,this.domTarget=e.target,ym(this,n)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class Ke extends De{constructor(){super(...arguments),this.useCapture=!1,this.usePassive=!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,usePassive:this.usePassive})}))}stopObserving(t){this.stopListening(t)}fire(t,e,n){this.isEnabled&&this.document.fire(t,new Vn(this.view,e,n))}}class k_ extends Ke{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 Ln(this)}};this.fire(t.type,t,e)}}const $l=function(){return ue.Date.now()};var b_=/\s/;const w_=function(o){for(var t=o.length;t--&&b_.test(o.charAt(t)););return t};var A_=/^\s+/;const __=function(o){return o&&o.slice(0,w_(o)+1).replace(A_,"")};var C_=/^[-+]0x[0-9a-f]+$/i,v_=/^0b[01]+$/i,y_=/^0o[0-7]+$/i,x_=parseInt;
8800const xm=function(o){if(typeof o=="number")return o;if(as(o))return NaN;if(kt(o)){var t=typeof o.valueOf=="function"?o.valueOf():o;o=kt(t)?t+"":t}if(typeof o!="string")return o===0?o:+o;o=__(o);var e=v_.test(o);return e||y_.test(o)?x_(o.slice(2),e?2:8):C_.test(o)?NaN:+o};var E_=Math.max,D_=Math.min;const pn=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 m(I){var M=n,N=i;return n=i=void 0,l=I,s=o.apply(N,M)}function p(I){var M=I-c;return c===void 0||M>=t||M<0||u&&I-l>=r}function k(){var I=$l();if(p(I))return b(I);a=setTimeout(k,(function(M){var N=t-(M-c);return u?D_(N,r-(M-l)):N})(I))}function b(I){return a=void 0,h&&n?m(I):(n=i=void 0,s)}function C(){var I=$l(),M=p(I);if(n=arguments,i=this,c=I,M){if(a===void 0)return(function(N){return l=N,a=setTimeout(k,t),d?m(N):s})(c);if(u)return clearTimeout(a),a=setTimeout(k,t),m(c)}return a===void 0&&(a=setTimeout(k,t)),s}return t=xm(t)||0,kt(e)&&(d=!!e.leading,r=(u="maxWait"in e)?E_(xm(e.maxWait)||0,t):r,h="trailing"in e?!!e.trailing:h),C.cancel=function(){a!==void 0&&clearTimeout(a),l=0,n=c=i=a=void 0},C.flush=function(){return a===void 0?s:b($l())},C};class I_ extends De{constructor(t){super(t),this._fireSelectionChangeDoneDebounced=pn((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 pe(e.getRanges(),{backward:e.isBackward,fake:!1});t!=ot.arrowleft&&t!=ot.arrowup||n.setTo(n.getFirstPosition()),t!=ot.arrowright&&t!=ot.arrowdown||n.setTo(n.getLastPosition());const i={oldSelection:e,newSelection:n,domSelection:null};this.document.fire("selectionChange",i),this._fireSelectionChangeDoneDebounced(i)}}const S_=function(o){return this.__data__.set(o,"__lodash_hash_undefined__"),this},M_=function(o){return this.__data__.has(o)};function fs(o){var t=-1,e=o==null?0:o.length;for(this.__data__=new Vr;++t<e;)this.add(o[t])}fs.prototype.add=fs.prototype.push=S_,fs.prototype.has=M_;const B_=fs,T_=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},N_=function(o,t){return o.has(t)},Em=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,m=2&e?new B_:void 0;for(r.set(o,t),r.set(t,o);++u<a;){var p=o[u],k=t[u];if(n)var b=s?n(k,p,u,t,o,r):n(p,k,u,o,t,r);if(b!==void 0){if(b)continue;h=!1;break}if(m){if(!T_(t,(function(C,I){if(!N_(m,I)&&(p===C||i(p,C,e,n,r)))return m.push(I)}))){h=!1;break}}else if(p!==k&&!i(p,k,e,n,r)){h=!1;break}}return r.delete(o),r.delete(t),h},P_=function(o){var t=-1,e=Array(o.size);return o.forEach((function(n,i){e[++t]=[i,n]})),e},L_=function(o){var t=-1,e=Array(o.size);return o.forEach((function(n){e[++t]=n})),e};var Dm=ve?ve.prototype:void 0,Yl=Dm?Dm.valueOf:void 0;const O_=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 Kr(o),new Kr(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return si(+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=P_;case"[object Set]":var c=1&n;if(a||(a=L_),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=Em(a(o),a(t),n,i,r,s);return s.delete(o),d;case"[object Symbol]":if(Yl)return Yl.call(o)==Yl.call(t)}return!1};var z_=Object.prototype.hasOwnProperty;const R_=function(o,t,e,n,i,r){var s=1&e,a=ll(o),c=a.length;if(c!=ll(t).length&&!s)return!1;for(var l=c;l--;){var d=a[l];if(!(s?d in t:z_.call(t,d)))return!1}var u=r.get(o),h=r.get(t);if(u&&h)return u==t&&h==o;var m=!0;r.set(o,t),r.set(t,o);for(var p=s;++l<c;){var k=o[d=a[l]],b=t[d];if(n)var C=s?n(b,k,d,t,o,r):n(k,b,d,o,t,r);if(!(C===void 0?k===b||i(k,b,e,n,r):C)){m=!1;break}p||(p=d=="constructor")}if(m&&!p){var I=o.constructor,M=t.constructor;I==M||!("constructor"in o)||!("constructor"in t)||typeof I=="function"&&I instanceof I&&typeof M=="function"&&M instanceof M||(m=!1)}return r.delete(o),r.delete(t),m};var Im="[object Arguments]",Sm="[object Array]",ks="[object Object]",Mm=Object.prototype.hasOwnProperty;const F_=function(o,t,e,n,i,r){var s=$t(o),a=$t(t),c=s?Sm:hi(o),l=a?Sm:hi(t),d=(c=c==Im?ks:c)==ks,u=(l=l==Im?ks:l)==ks,h=c==l;if(h&&li(o)){if(!li(t))return!1;s=!0,d=!1}if(h&&!d)return r||(r=new Mn),s||sl(o)?Em(o,t,e,n,i,r):O_(o,t,c,e,n,i,r);if(!(1&e)){var m=d&&Mm.call(o,"__wrapped__"),p=u&&Mm.call(t,"__wrapped__");
8800if(m||p){var k=m?o.value():o,b=p?t.value():t;return r||(r=new Mn),i(k,b,e,n,r)}}return!!h&&(r||(r=new Mn),R_(o,t,e,n,i,r))},bs=function o(t,e,n,i,r){return t===e||(t==null||e==null||!ie(t)&&!ie(e)?t!=t&&e!=e:F_(t,e,n,i,o,r))},j_=function(o,t,e){var n=(e=typeof e=="function"?e:void 0)?e(o,t):void 0;return n===void 0?bs(o,t,void 0,e):!!n};class Bm extends De{constructor(t){super(t),this._config={childList:!0,characterData:!0,subtree:!0},this.domConverter=t.domConverter,this._domElements=new Set,this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(t){this._domElements.add(t),this.isEnabled&&this._mutationObserver.observe(t,this._config)}stopObserving(t){if(this._domElements.delete(t),this.isEnabled){this._mutationObserver.disconnect();for(const 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&&Zt(s.target)&&i.add(e.mapDomToView(s.target.parentNode))}}const r=[];for(const s of n)r.push({type:"text",node:s});for(const s of i){const a=e.mapViewToDom(s),c=Array.from(s.getChildren()),l=Array.from(e.domChildrenToView(a,{withChildren:!1}));j_(c,l,V_)||r.push({type:"children",node:s})}r.length&&this.document.fire("mutations",{mutations:r})}_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 V_(o,t){if(!Array.isArray(o))return o===t||!(!o.is("$text")||!t.is("$text"))&&o.data===t.data}class ws extends Ke{constructor(t){super(t),this._renderTimeoutId=null,this._isFocusChanging=!1,this.domEventType=["focus","blur"],this.useCapture=!0;const e=this.document;e.on("focus",(()=>this._handleFocus())),e.on("blur",((n,i)=>this._handleBlur(i))),e.on("beforeinput",(()=>{e.isFocused||this._handleFocus()}),{priority:"highest"})}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(t){this.fire(t.type,t)}destroy(){this._clearTimeout(),super.destroy()}_handleFocus(){this._clearTimeout(),this._isFocusChanging=!0,this._renderTimeoutId=setTimeout((()=>{this._renderTimeoutId=null,this.flush(),this.view.change((()=>{}))}),50)}_handleBlur(t){const e=this.document.selection.editableElement;e!==null&&e!==t.target||(this.document.isFocused=!1,this._isFocusChanging=!1,this.view.change((()=>{})))}_clearTimeout(){this._renderTimeoutId&&(clearTimeout(this._renderTimeoutId),this._renderTimeoutId=null)}}class H_ extends De{constructor(t){super(t),this.mutationObserver=t.getObserver(Bm),this.focusObserver=t.getObserver(ws),this.selection=this.document.selection,this.domConverter=t.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=pn((e=>{this.document.fire("selectionChangeDone",e)}),200),this._clearInfiniteLoopInterval=setInterval((()=>this._clearInfiniteLoop()),1e3),this._documentIsSelectingInactivityTimeoutDebounced=pn((()=>this.document.isSelecting=!1),5e3),this._loopbackCounter=0}observe(t){const e=t.ownerDocument,n=()=>{this.document.isSelecting&&(this._handleSelectionChange(e),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(t,"selectstart",(()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()}),{priority:"highest"}),this.listenTo(t,"keydown",n,{priority:"highest",useCapture:!0}
8800),this.listenTo(t,"keyup",n,{priority:"highest",useCapture:!0}),this._documents.has(e)||(this.listenTo(e,"mouseup",n,{priority:"highest",useCapture:!0}),this.listenTo(e,"selectionchange",(()=>{this.document.isComposing&&!v.isAndroid||(this._handleSelectionChange(e),this._documentIsSelectingInactivityTimeoutDebounced())})),this.listenTo(this.view.document,"compositionstart",(()=>{this._handleSelectionChange(e)}),{priority:"lowest"}),this._documents.add(e))}stopObserving(t){this.stopListening(t)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(t){if(!this.isEnabled)return;const e=t.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(e.anchorNode))return;this.mutationObserver.flush();const n=this.domConverter.domSelectionToView(e);if(n.rangeCount!=0){if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.selection.isEqual(n)||!this.domConverter.isDomSelectionCorrect(e))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.selection.isSimilar(n))this.view.forceRender();else{const i={oldSelection:this.selection,newSelection:n,domSelection:e};this.document.fire("selectionChange",i),this._fireSelectionChangeDoneDebounced(i)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class U_ extends Ke{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 Tm{constructor(t,e={}){this._files=e.cacheFiles?Nm(t):null,this._native=t}get files(){return this._files||(this._files=Nm(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 Nm(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 q_ extends Ke{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 Tm(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(v.isAndroid){const c=t.target.ownerDocument.defaultView.getSelection();a=Array.from(n.domConverter.domSelectionToView(c).getRanges())}if(v.isAndroid&&t.inputType=="insertCompositionText"&&s&&s.endsWith(` 8801`))this.fire(t.type,t,{inputType:"insertParagraph",targetRanges:[n.createRange(a[0].end)]});else if(t.inputType=="insertText"&&s&&s.includes(` 8802`)){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 G_ extends De{constructor(t){super(t),this.document.on("keydown",((e,n)=>{if(this.isEnabled&&((i=n.keyCode)==ot.arrowright||i==ot.arrowleft||i==ot.arrowup||i==ot.arrowdown)){const r=new Rn(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(r,n),r.stop.called&&e.stop()}var i}))}observe(){}stopObserving(){}}class W_ extends De{constructor(t){super(t);const e=this.document;
vendor: 4,251 bytes, line 8802
8802e.on("keydown",((n,i)=>{if(!this.isEnabled||i.keyCode!=ot.tab||i.ctrlKey)return;const r=new Rn(e,"tab",e.selection.getFirstRange());e.fire(r,i),r.stop.called&&n.stop()}))}observe(){}stopObserving(){}}const fe=function(o){return pl(o,5)};class K_ extends dt(){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 us(t),this.domConverter=new ps(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new d_(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new dm(this.document),this.addObserver(Bm),this.addObserver(ws),this.addObserver(H_),this.addObserver(k_),this.addObserver(I_),this.addObserver(U_),this.addObserver(G_),this.addObserver(q_),this.addObserver(W_),this.document.on("arrowKey",l_,{priority:"low"}),o_(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})),v.isiOS&&this.listenTo(this.document,"blur",((e,n)=>{this.domConverter.mapDomToView(n.domEvent.relatedTarget)||this.domConverter._clearDomSelection()})),this.listenTo(this.document,"mutations",((e,{mutations:n})=>{n.forEach((i=>this._renderer.markToSync(i.type,i.node)))}),{priority:"low"}),this.listenTo(this.document,"mutations",(()=>{this.forceRender()}),{priority:"lowest"})}attachDomRoot(t,e="main"){const n=this.document.getRoot(e);n._name=t.tagName.toLowerCase();const i={};for(const{name:s,value:a}of Array.from(t.attributes))i[s]=a,s==="class"?this._writer.addClass(a.split(" "),n):n.hasAttribute(s)||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)};r(),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=fe({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 m=bl(c);let p=m,k=null;for(l=(function(b){return typeof b=="number"?{top:b,bottom:b,left:b,right:b}:b})(l);p;){let b;b=nA(p==m?c:k),eA({parent:b,getRect:()=>
8802xh(c,p),alignToTop:u,ancestorOffset:d,forceScroll:h});const C=xh(c,p);if(tA({window:p,rect:C,viewportOffset:l,alignToTop:u,forceScroll:h}),p.parent!=p){if(k=p.frameElement,p=p.parent,!k)return}else p=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 E("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){E.rethrowUnexpectedError(e,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(ws).flush(),this.change((()=>{}))}destroy(){for(const t of this._observers.values())t.destroy();this.document.destroy(),this.stopListening()}createPositionAt(t,e){return q._createAt(t,e)}createPositionAfter(t){return q._createAfter(t)}createPositionBefore(t){return q._createBefore(t)}createRange(t,e){return new Z(t,e)}createRangeOn(t){return Z._createOn(t)}createRangeIn(t){return Z._createIn(t)}createSelection(...t){return new pe(...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 $e{is(){throw new Error("is() method is abstract")}}class fn extends $e{constructor(t){super(),this.parent=null,this._index=null,this._startOffset=null,this._attrs=ye(t)}get document(){return null}get index(){return this._index}get startOffset(){return this._startOffset}get offsetSize(){return 1}get endOffset(){return this.startOffset===null?null:this.startOffset+this.offsetSize}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=Ft(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=ye(t)}_removeAttribute(t){return this._attrs.delete(t)}_clearAttributes(){this._attrs.clear()}}fn.prototype.is=function(o){return o==="node"||o==="model:node"};class xi{constructor(t){this._nodes=[],this._offsetToNode=[],t&&this._insertNodes(0,t)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._offsetToNode.length}getNode(t){return this._nodes[t]||null}getNodeAtOffset(t){return this._offsetToNode[t]||null}getNodeIndex(t){return t.index}getNodeStartOffset(t){return t.startOffset}indexToOffset(t){if(t==this._nodes.length)return this.maxOffset;const e=this._nodes[t];if(!e)throw new E("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(e)}offsetToIndex(t){if(t==this._offsetToNode.length)return this._nodes.length;const e=this._offsetToNode[t];if(!e)throw new E("model-nodelist-offset-out-of-bounds",this,{offset:t,nodeList:this});return this.getNodeIndex(e)}
8802_insertNodes(t,e){for(const s of e)if(!(s instanceof fn))throw new E("model-nodelist-insertnodes-not-node",this);const n=Array.from(e),i=(function(s){const a=[];for(const c of s){const l=a.length;a.length+=c.offsetSize,a.fill(c,l)}return a})(n);let r=this.indexToOffset(t);this._nodes=Lh(this._nodes,n,t,0),this._offsetToNode=Lh(this._offsetToNode,i,r,0);for(let s=t;s<this._nodes.length;s++)this._nodes[s]._index=s,this._nodes[s]._startOffset=r,r+=this._nodes[s].offsetSize}_removeNodes(t,e=1){if(e==0)return[];let n=this.indexToOffset(t);const i=this._nodes.splice(t,e),r=i[i.length-1],s=r.startOffset+r.offsetSize-n;this._offsetToNode.splice(n,s);for(const a of i)a._index=null,a._startOffset=null;for(let a=t;a<this._nodes.length;a++)this._nodes[a]._index=a,this._nodes[a]._startOffset=n,n+=this._nodes[a].offsetSize;return i}toJSON(){return this._nodes.map((t=>t.toJSON()))}}class ht extends fn{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 ht(this.data,this.getAttributes())}static fromJSON(t){return new ht(t.data,t.attributes)}}ht.prototype.is=function(o){return o==="$text"||o==="model:$text"||o==="text"||o==="model:text"||o==="node"||o==="model:node"};class ke extends $e{constructor(t,e,n){if(super(),this.textNode=t,e<0||e>t.offsetSize)throw new E("model-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.offsetSize)throw new E("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()}}ke.prototype.is=function(o){return o==="$textProxy"||o==="model:$textProxy"||o==="textProxy"||o==="model:textProxy"};class ct extends fn{constructor(t,e,n){super(e),this._children=new xi,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)}getChildAtOffset(t){return this._children.getNodeAtOffset(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.getChildAtOffset(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 ct(this.name,this.getAttributes(),e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=(function(i){return typeof i=="string"?[new ht(i)]:(Kt(i)||(i=[i]),Array.from(i).map((r=>typeof r=="string"?new ht(r):r instanceof ke?new ht(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(ct.fromJSON(n)):e.push(ht.fromJSON(n))}return new ct(t.name,t.attributes,e)}}ct.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"};
8802class Pe{constructor(t){if(!t||!t.boundaries&&!t.startPosition)throw new E("model-tree-walker-no-start-position",null);const e=t.direction||"forward";if(e!="forward"&&e!="backward")throw new E("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=z._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=Ei(e,n),r=i||Pm(e,n,i);if(r instanceof ct){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,kn("elementStart",r,t,e,1)}if(r instanceof ht){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 ke(r,a,s);return e.offset+=s,this._position=e,kn("text",c,t,e,s)}return e.path.pop(),e.offset++,this._position=e,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():kn("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=Ei(e,i),s=r||Lm(e,i,r);if(s instanceof ct)return e.offset--,this.shallow?(this._position=e,kn("elementStart",s,t,e,1)):(e.path.push(s.maxOffset),this._position=e,this._visitedParent=s,this.ignoreElementEnd?this._previous():kn("elementEnd",s,t,e));if(s instanceof ht){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 ke(s,c-a,a);return e.offset-=a,this._position=e,kn("text",l,t,e,a)}return e.path.pop(),this._position=e,this._visitedParent=n.parent,kn("elementStart",n,t,e,1)}}function kn(o,t,e,n,i){return{done:!1,value:{type:o,item:t,previousPosition:e,nextPosition:n,length:i}}}class z extends $e{constructor(t,e,n="toNone"){if(super(),!t.is("element")&&!t.is("documentFragment"))throw new E("model-position-root-invalid",t);if(!(e instanceof Array)||e.length===0)throw new E("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.getChildAtOffset(this.path[e]),!t)throw new E("model-position-path-incorrect",this,{position:this});if(t.is("$text"))throw new E("model-position-path-incorrect",this,{position:this});return t}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return Ei(this,this.parent)}get nodeAfter(){const t=this.parent;return Pm(this,t,Ei(this,t))}get nodeBefore(){const t=this.parent;return Lm(this,t,Ei(this,t))}get isAtStart(){return this.offset===0}get isAtEnd(){return this.offset==this.parent.maxOffset}isValid(){if(this.offset<0)return!1;let t=this.root;for(let e=0;e<this.path.length-1;e++)if(t=t.getChildAtOffset(this.path[e]),!t)return!1;return this.offset<=t.maxOffset}compareWith(t){if(this.root!=t.root)return"different";const e=Ft(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"}}
8802getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new Pe(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=Ft(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 Om(t,this,n);if(i===-1)return Om(this,t,n)}return this.path.length===t.path.length||(this.path.length>t.path.length?Ql(this.path,e):Ql(t.path,e))}hasSameParentAs(t){return this.root!==t.root?!1:Ft(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=z._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)?z._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}_getTransformedByDeletion(t,e){const n=z._createAt(this);if(this.root!=t.root)return n;if(Ft(t.getParentPath(),this.getParentPath())=="same"){if(t.offset<this.offset){if(t.offset+e>this.offset)return null;n.offset-=e}}else if(Ft(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=z._createAt(this);if(this.root!=t.root)return n;if(Ft(t.getParentPath(),this.getParentPath())=="same")(t.offset<this.offset||t.offset==this.offset&&this.stickiness!="toPrevious")&&(n.offset+=e);else if(Ft(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 z._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=z._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 z)return new z(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 E("model-createpositionat-offset-required",[this,t])}if(!i.is("element")&&!i.is("documentFragment"))throw new E("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 E("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 E("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 z(e.graveyard,t.path);return n.stickiness=t.stickiness,n}if(!e.getRoot(t.root))throw new E("model-position-fromjson-no-root",e,{rootName:t.root});return new z(e.getRoot(t.root),t.path,t.stickiness)}}function Ei(o,t){const e=t.getChildAtOffset(o.offset);return e&&e.is("$text")&&e.startOffset<o.offset?e:null}function Pm(o,t,e){return e!==null?null:t.getChildAtOffset(o.offset)}function Lm(o,t,e){return e!==null?null:t.getChild(t.offsetToIndex(o.offset)-1)}
vendor: 7,738 bytes, line 8802
8802function Om(o,t,e){return e+1!==o.path.length&&!!Ql(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 Ql(o,t){for(;t<o.length;){if(o[t]!==0)return!1;t++}return!0}z.prototype.is=function(o){return o==="position"||o==="model:position"};class T extends $e{constructor(t,e){super(),this.start=z._createAt(t),this.end=e?z._createAt(e):z._createAt(t),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new Pe({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return Ft(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=z._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 T(this.start,t.start)),this.containsPosition(t.end)&&e.push(new T(t.end,this.end))):e.push(new T(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 T(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 T(i,r)}getMinimalFlatRanges(){const t=[],e=this.start.getCommonPath(this.end).length,n=z._createAt(this.start);let i=n.parent;for(;n.path.length>e+1;){const r=i.maxOffset-n.offset;r!==0&&t.push(new T(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 T(n,n.getShiftedBy(s))),n.offset=r,n.path.push(0)}return t}getWalker(t={}){return t.boundaries=this,new Pe(t)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new Pe(t);for(const n of e)yield n.item}*getPositions(t={}){t.boundaries=this;const e=new Pe(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 T(this.start,this.end)]}getTransformedByOperations(t){const e=[new T(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 T(e,n)}_getTransformedByMergeOperation(t){if(this.start.isEqual(t.targetPosition)&&this.end.isEqual(t.deletionPosition))return new T(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=z._createAt(n),e.offset=0):(t.deletionPosition.isEqual(e)||(n=t.deletionPosition),e=t.targetPosition),new T(e,n)):new T(e,n)}_getTransformedByInsertion(t,e,n=!1){if(n&&this.containsPosition(t))return[new T(this.start,t),new T(t.getShiftedBy(e),this.end._getTransformedByInsertion(t,e))];{const i=new T(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 T(u)]}const r=T._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 T(u,h)]}let a;const c=this.getDifference(r);let l=null;const d=this.getIntersection(r);if(c.length==1?l=new T(c[0].start._getTransformedByDeletion(t,n),c[0].end._getTransformedByDeletion(t,n)):c.length==2&&(l=new T(this.start,this.end._getTransformedByDeletion(t,n))),a=l?l._getTransformedByInsertion(s,n,d!==null||i):[],d){const u=new T(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 T(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(z._createAt(t,0),z._createAt(t,t.maxOffset))}static _createOn(t){return this._createFromPositionAndShift(z._createBefore(t),t.offsetSize)}static _createFromRanges(t){if(t.length===0)throw new E("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);for(let r=n-1;r>=0&&t[r].end.isEqual(i.start);r--)i.start=z._createAt(t[r].start);for(let r=n+1;r<t.length&&t[r].start.isEqual(i.end);r++)i.end=z._createAt(t[r].end);return i}static fromJSON(t,e){return new this(z.fromJSON(t.start,e),z.fromJSON(t.end,e))}}T.prototype.is=function(o){return o==="range"||o==="model:range"};class zm extends at(){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 E("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
8802set(e.viewPosition.parent,e.viewPosition.offset,n);e.modelPosition=z._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 T(this.toModelPosition(t.start),this.toModelPosition(t.end))}toViewRange(t){return new Z(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 q(t,e);for(;r<e;)n=t.getChild(s),i=this.getModelLength(n),r+=i,s++;return r==e?this._moveViewPositionToTextNode(new q(t,s)):this.findPositionIn(n,e-(r-i))}_moveViewPositionToTextNode(t){const e=t.nodeBefore,n=t.nodeAfter;return e instanceof ut?new q(e,e.data.length):n instanceof ut?new q(n,0):t}}class $_{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(t,e){e=As(e),t instanceof ke&&(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=As(e),t instanceof ke&&(t=this._getSymbolForTextProxy(t)),!!this.test(t,e)&&(this._consumable.get(t).set(e,!1),!0)}test(t,e){e=As(e),t instanceof ke&&(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=As(e),t instanceof ke&&(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 E("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 As(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]}class Rm extends at(){constructor(t){super(),this._conversionApi={dispatcher:this,...t},this._firedEventsMap=new WeakMap}convertChanges(t,e,n){const i=this._createConversionApi(n,t.getRefreshedItems());for(const 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(T._createFromPositionAndShift(s.position,s.length),i):s.type==="reinsert"?this._convertReinsert(T._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:"+
vendor: 4,503 bytes, line 8802
8802a.name)){const c=a.getRange();if(!Y_(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(Fm))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:T._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(Fm))this._testAndFire("insert",{...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:T._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:T._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={...this._conversionApi,consumable:new $_,writer:t,options:n,convertItem:r=>this._convertInsert(T._createOn(r),i),convertChildren:r=>this._convertInsert(T._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 Y_(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 Fm(o){return{item:o.item,range:T._createFromPositionAndShift(o.previousPosition,o.length)}}class Jt extends at($e){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;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const i of t._ranges)if(e.isEqual(i)){n=!0;break}if(!n)return!1}return!0}*getRanges(){for(const t of this._ranges)yield new T(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 T(t.start,t.end):null}getLastRange(){let t=null;
8802for(const e of this._ranges)t&&!e.end.isAfter(t.end)||(t=e);return t?new T(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 Jt)this._setRanges(e.getRanges(),e.isBackward);else if(e&&typeof e.getRanges=="function")this._setRanges(e.getRanges(),e.isBackward);else if(e instanceof T)this._setRanges([e],!!i&&!!i.backward);else if(e instanceof z)this._setRanges([new T(e)]);else if(e instanceof fn){const r=!!i&&!!i.backward;let s;if(n=="in")s=T._createIn(e);else if(n=="on")s=T._createOn(e);else{if(n===void 0)throw new E("model-selection-setto-required-second-parameter",[this,e]);s=new T(z._createAt(e,n))}this._setRanges([s],r)}else{if(!Kt(e))throw new E("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 T))throw new E("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 E("model-selection-setfocus-no-ranges",[this,t]);const n=z._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 T(n,i)),this._lastRangeBackward=!0):(this._pushRange(new T(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=Vm(e.start,t);Z_(n,e)&&(yield n);for(const r of e.getWalker()){const s=r.item;r.type=="elementEnd"&&Q_(s,t,e)&&(yield s)}const i=Vm(e.end,t);J_(i,e)&&(yield i)}}containsEntireContent(t=this.anchor.root){const e=z._createAt(t,0),n=z._createAt(t,"end");return e.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}_pushRange(t){this._checkRange(t),this._ranges.push(new T(t.start,t.end))}_checkRange(t){for(let e=0;e<this._ranges.length;e++)if(t.isIntersecting(this._ranges[e]))throw new E("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 jm(o,t){return!t.has(o)&&(t.add(o),o.root.document.model.schema.isBlock(o)&&!!o.parent)}function Q_(o,t,e){return jm(o,t)&&Zl(o,e)}function Vm(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&&jm(s,t))));return n.forEach((s=>t.add(s))),r}function Zl(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(T._createOn(e),!0):!0}function Z_(o,t){return!!o&&(!(!t.isCollapsed&&!o.isEmpty)||!t.start.isTouching(z._createAt(o,o.maxOffset))&&Zl(o,t))}function J_(o,t){return!!o&&(!(!t.isCollapsed&&!o.isEmpty)||!t.end.isTouching(z._createAt(o,0))&&Zl(o,t))}Jt.prototype.is=function(o){return o==="selection"||o==="model:selection"};class Ut extends at(T){constructor(t,e){super(t,e),X_.call(this)}detach(){this.stopListening()}toRange(){return new T(this.start,this.end)}static fromRange(t){return new Ut(t.start,t.end)}}function X_(){this.listenTo(this.root.document.model,"applyOperation",((o,t)=>{const e=t[0];e.isDocumentOperation&&tC.call(this,e)}),{priority:"low"})}function tC(o){const t=this.getTransformedByOperation(o),e=T._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
8802onPosition);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})}Ut.prototype.is=function(o){return o==="liveRange"||o==="model:liveRange"||o=="range"||o==="model:range"};const _s="selection:";class be extends at($e){constructor(t){super(),this._selection=new eC(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 _s+t}static _isStoreAttributeKey(t){return t.startsWith(_s)}}be.prototype.is=function(o){return o==="selection"||o=="model:selection"||o=="documentSelection"||o=="model:documentSelection"};class eC extends Jt{constructor(t){super(),this.markers=new he({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(_s)));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=ne();return this._overriddenGravityRegister.add(t),this._overriddenGravityRegister.size===1&&this._updateAttributes(!0),t}restoreGravity(t){if(!this._overriddenGravityRegister.has(t))throw new E("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()}
8802_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 E("document-selection-wrong-position",this,{range:e})}_prepareRange(t){if(this._checkRange(t),t.root==this._document.graveyard)return;const e=Ut.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=ye(this._getSurroundingAttributes()),n=ye(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(_s)&&(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=Di(i,e)),n||(n=Di(r,e)),!this.isGravityOverridden&&!n){let s=i;for(;s&&!n;)s=s.previousSibling,n=Di(s,e)}if(!n){let s=r;for(;s&&!n;)s=s.nextSibling,n=Di(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=Di(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 Di(o,t){if(!o)return null;if(o instanceof ke||o instanceof ht)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 Hm{constructor(t){this._dispatchers=t}add(t){for(const e of this._dispatchers)t(e);return this}}class nC extends Hm{elementToElement(t){return this.add((function(e){const n=Gm(e.model),i=Ii(e.view,"container");return n.attributes.length&&(n.children=!0),r=>{r.on(`insert:${n.name}`,oC(i,Ym(n)),{priority:e.converterPriority||"normal"}),(n.children||n.attributes.length)&&r.on("reduceChanges",$m(n),{priority:"low"})}})(t))}
8802elementToStructure(t){return this.add((function(e){const n=Gm(e.model),i=Ii(e.view,"container");return n.children=!0,r=>{if(r._conversionApi.schema.checkChild(n.name,"$text"))throw new E("conversion-element-to-structure-disallowed-text",r,{elementName:n.name});var s,a;r.on(`insert:${n.name}`,(s=i,a=Ym(n),(c,l,d)=>{if(!a(l.item,d.consumable,{preflight:!0}))return;const u=new Map;d.writer._registerSlotFactory((function(p,k,b){return(C,I)=>{const M=C.createContainerElement("$slot");let N=null;if(I==="children")N=Array.from(p.getChildren());else{if(typeof I!="function")throw new E("conversion-slot-mode-unknown",b.dispatcher,{modeOrFilter:I});N=Array.from(p.getChildren()).filter((G=>I(G)))}return k.set(M,N),M}})(l.item,u,d));const h=s(l.item,d,l);if(d.writer._clearSlotFactory(),!h)return;(function(p,k,b){const C=Array.from(k.values()).flat(),I=new Set(C);if(I.size!=C.length)throw new E("conversion-slot-filter-overlap",b.dispatcher,{element:p});if(I.size!=p.childCount)throw new E("conversion-slot-filter-incomplete",b.dispatcher,{element:p})})(l.item,u,d),a(l.item,d.consumable);const m=d.mapper.toViewPosition(l.range.start);d.mapper.bindElements(l.item,h),d.writer.insert(m,h),d.convertAttributes(l.item),(function(p,k,b,C){b.mapper.on("modelToViewPosition",N,{priority:"highest"});let I=null,M=null;for([I,M]of k)Qm(p,M,b,C),b.writer.move(b.writer.createRangeIn(I),b.writer.createPositionBefore(I)),b.writer.remove(I);function N(G,Q){const J=Q.modelPosition.nodeAfter,pt=M.indexOf(J);pt<0||(Q.viewPosition=Q.mapper.findPositionIn(I,pt))}b.mapper.off("modelToViewPosition",N)})(h,u,d,{reconversion:l.reconversion})}),{priority:e.converterPriority||"normal"}),r.on("reduceChanges",$m(n),{priority:"low"})}})(t))}attributeToElement(t){return this.add((function(e){e=fe(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]=Ii(e.view[s],"attribute");else e.view=Ii(e.view,"attribute");const r=Wm(e);return s=>{s.on(i,iC(r),{priority:e.converterPriority||"normal"})}})(t))}attributeToAttribute(t){return this.add((function(e){e=fe(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]=Km(e.view[s]);else e.view=Km(e.view);const r=Wm(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 m=d.mapper.toViewElement(l.item),p=d.writer;if(!m)throw new E("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)p.removeClass(b,m)}else if(u.key=="style")if(typeof u.value=="string"){const k=new Ll(p.document.stylesProcessor);k.setTo(u.value);for(const[b]of k.getStylesEntries())p.removeStyle(b,m)}else{const k=Object.keys(u.value);for(const b of k)p.removeStyle(b,m)}else p.removeAttribute(u.key,m);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)p.addClass(b,m)}else if(h.key=="style")if(typeof h.value=="string"){const k=new Ll(p.document.stylesProcessor);k.setTo(h.value);for(const[b,C]of k.getStylesEntries())p.setStyle(b,C,m)}else{const k=Object.keys(h.value);for(const b of k)p.setStyle(b,h.value[b],m)}else p.setAttribute(h.key,h.value,m)}),{priority:e.converterPriority||"normal"})}})(t))}markerToElement(t){return this.add((function(e){const n=Ii(e.view,"ui");return i=>{i.on(`addMarker:${e.model}`,rC(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)=>
8802{if(!s.item||!(s.item instanceof Jt||s.item instanceof be||s.item.is("$textProxy")))return;const c=Jl(i,s,a);if(!c||!a.consumable.consume(s.item,r.name))return;const l=a.writer,d=Um(l,c),u=l.document.selection;if(s.item instanceof Jt||s.item instanceof be)l.wrap(u.getFirstRange(),d);else{const h=a.mapper.toViewRange(s.range),m=l.wrap(h,d);for(const p of m.getItems())if(p.is("attributeElement")&&p.isSimilar(d)){a.mapper.bindElementToMarker(p,s.markerName);break}}}),{priority:e.converterPriority||"normal"}),n.on(`addMarker:${e.model}`,(function(r){return(s,a,c)=>{if(!a.item||!(a.item instanceof ct))return;const l=Jl(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 T._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=Jl(r,a,c);if(!l)return;const d=Um(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=fe(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)&&(qm(u,!1,l,c,d),qm(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 p of h)d.mapper.unbindElementFromMarkerName(p,l.markerName),p.is("containerElement")?(m(`data-${u.group}-start-before`,p),m(`data-${u.group}-start-after`,p),m(`data-${u.group}-end-before`,p),m(`data-${u.group}-end-after`,p)):d.writer.clear(d.writer.createRangeOn(p),p);d.writer.clearClonedElementsGroup(l.markerName),c.stop()}function m(p,k){if(k.hasAttribute(p)){const b=new Set(k.getAttribute(p).split(","));b.delete(u.name),b.size==0?d.writer.removeAttribute(p,k):d.writer.setAttribute(p,Array.from(b).join(","),k)}}}})(i),{priority:e.converterPriority||"normal"})}})(t))}}function Um(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 iC(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 Jt||e.item instanceof be)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 oC(o,t=aC){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),Qm(r,n.item.getChildren(),i,{reconversion:n.reconversion})}}function rC(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 qm(o,t,e,n,i){const r=t?o.start:o.end,s=r.nodeAfter&&r.n
8802odeAfter.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,m,p,k,b){const C=`data-${b.group}-${h?"start":"end"}-${m?"before":"after"}`,I=u.hasAttribute(C)?u.getAttribute(C).split(","):[];I.unshift(b.name),p.writer.setAttribute(C,I.join(","),u),p.mapper.bindElementToMarker(u,k.markerName)})(d,t,l,e,n,i)}(function(c,l,d,u,h){const m=`${h.group}-${l?"start":"end"}`,p=h.name?{name:h.name}:null,k=d.writer.createUIElement(m,p);d.writer.insert(c,k),d.mapper.bindElementToMarker(k,u.markerName)})(e.mapper.toViewPosition(r),t,e,n,i)}function Gm(o){return typeof o=="string"&&(o={name:o}),{name:o.name,attributes:o.attributes?gt(o.attributes):[],children:!!o.children}}function Ii(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||We.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 Wm(o){return o.model.values?(t,e,n)=>{const i=o.view[t];return i?i(t,e,n):null}:o.view}function Km(o){return typeof o=="string"?t=>({key:o,value:t}):typeof o=="object"?o.value?()=>o:t=>({key:o.key,value:t}):o}function Jl(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 $m(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=z._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 Ym(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 Qm(o,t,e,n){for(const i of t)sC(o.root,i,e,n)||e.convertItem(i)}function sC(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(z._createBefore(t))),!0)}function aC(o,t,{preflight:e}={}){return e?t.test(o,"insert"):t.consume(o,"insert")}function Zm(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 Jm(o,t,e){const n=e.createContext(o);return!!e.checkChild(n,"paragraph")&&!!e.checkChild(n.push("paragraph"),t)}function Xm(o,t){const e=t.createElement("paragraph");return t.insert(e,o),t.createPositionAt(e,0)}class cC extends Hm{elementToElement(t){return this.add(tg(t))}elementToAttribute(t){return this.add((function(e){e=fe(e),eg(e);const n=ng(e,!1),i=Xl(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=fe(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;let 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)),eg(e,n);const i=ng(e,!0);return r=>{r.on("element",i,{priority:e.converterPriority||"low"})}})(t))}elementToMarker(t){return this.add((function(e){const n=(function(i){return(r,s)=>{const a=typeof i=="string"?i:i(r,s);return s.writer.createElement("$marker",{"data-name":a})}})(e.model);return tg({...e,model:n})})(t))}dataToMarker(t){return this.add((function(e){e=fe(e),e.model||(e.model=s=>s?e.view+":"+s:e.view);const n={view:e.view,model:e.model},i=td(ig(n,"start")),r=td(ig(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=Ve.low,c=Ve.highest,l=Ve.get(e.converterPriority)/c;s.on("element",(function(d){return(u,h,m)=>{const p=`data-${d.view}`;function k(b,C){for(const I of C){const M=d.model(I,m),N=m.writer.createElement("$marker",{"data-name":M});m.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]}}(m.consumable.test(h.viewItem,{attributes:p+"-end-after"})||m.consumable.test(h.viewItem,{attributes:p+"-start-after"})||m.consumable.test(h.viewItem,{attributes:p+"-end-before"})||m.consumable.test(h.viewItem,{attributes:p+"-start-before"}))&&(h.modelRange||Object.assign(h,m.convertChildren(h.viewItem,h.modelCursor)),m.consumable.consume(h.viewItem,{attributes:p+"-end-after"})&&k(h.modelRange.end,h.viewItem.getAttribute(p+"-end-after").split(",")),m.consumable.consume(h.viewItem,{attributes:p+"-start-after"})&&k(h.modelRange.end,h.viewItem.getAttribute(p+"-start-after").split(",")),m.consumable.consume(h.viewItem,{attributes:p+"-end-before"})&&k(h.modelRange.start,h.viewItem.getAttribute(p+"-end-before").split(",")),m.consumable.consume(h.viewItem,{attributes:p+"-start-before"})&&k(h.modelRange.start,h.viewItem.getAttribute(p+"-start-before").split(",")))}})(n),{priority:a+l})}})(t))}}function tg(o){const t=td(o=fe(o)),e=Xl(o.view),n=e?`element:${e}`:"element";return i=>{i.on(n,t,{priority:o.converterPriority||"normal"})}}
8802function Xl(o){return typeof o=="string"?o:typeof o=="object"&&typeof o.name=="string"?o.name:null}function td(o){const t=new Ee(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 eg(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 ng(o,t){const e=new Ee(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"&&!Xl(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,m){let p=!1;for(const k of Array.from(d.getItems({shallow:h})))m.schema.checkAttribute(k,u.key)&&(p=!0,k.hasAttribute(u.key)||m.writer.setAttribute(u.key,u.value,k));return p})(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 ig(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 lC(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=og(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],m=l.slice(0,u);for(const[p,k]of m.entries())if(!d.has(p)){if(h.isEqual(k))d.add(p);else if(h.isIntersecting(k)){d.add(p),d.add(u);const b=h.getJoined(k);l.push(b)}}u++}return l.filter(((h,m)=>!d.has(m)))})(s),{backward:i.isBackward}),!1})(t,o)))}function og(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?T._createOn(a):null}if(!r.isCollapsed)return r;const s=r.start;return i.isEqual(s)?null:new T(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,m,p){const k=h.nodeAfter&&!p.isLimit(h.nodeAfter)||p.checkChild(h,"$text"),b=m.nodeBefore&&!p.isLimit(m.nodeBefore)||p.checkChild(m,"$text");return k||b})(i,r,n)){const h=i.nodeAfter&&n.isSelectable(i.nodeAfter)?null:n.getNearestSelectionRange(i,"forward"),m=r.nodeBefore&&n.isSelectable(r.nodeBefore)?null:n.getNearestSelectionRange(r,"backward"),p=h?h.start:i,k=m?m.end:r;return new T(p,k)}}const d=c&&!c.is("rootElement"),u=l&&!l.is("rootElement");if(d||u){const h=i.nodeAfter&&r.nodeBefore&&i.nodeAfter.parent===r.nodeBefore.parent,m=d&&(!h||!sg(i.nodeAfter,n)),p=u&&(!h||!sg(r.nodeBefore,n));let k=i,b=r;return m&&(k=z._createBefore(rg(c,n))),p&&(b=z._createAfter(rg(l,n))),new T(k,b)}return null})(o,t)}function rg(o,t){let e=o,n=e;for(;t.isLimit(n)&&n.parent;)e=n,n=n.parent;return e}function sg(o,t){return o&&t.isSelectable(o)}class dC extends dt(){constructor(t,e){super(),this.model=t,this.view=new K_(e),this.mapper=new zm,this.downcastDispatcher=new Rm({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 m=h.newSelection,p=[];for(const b of m.getRanges())p.push(d.toModelRange(b));const k=l.createSelection(p,{backward:m.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||v.isAndroid)for(let u=0;u<d.targetRanges.length;u++){const h=d.targetRanges[u],m=s.toModelRange(h),p=og(m,a);p&&!p.isEqual(m)&&(d.targetRanges[u]=s.toViewRange(p))}}),{priority:"high"}),this.downcastDispatcher.on("insert:$text",((l,d,u)=>{if(!u.consumable.consume(d.item,l.name))return;const h=u.writer,m=u.mapper.toViewPosition(d.range.start),p=h.createText(d.item.data);h.insert(m,p)}),{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),m=d.position.getShiftedBy(d.length),p=u.mapper.toViewPosition(m,{isPhantom:!0}),k=u.writer.createRange(h,p),b=u.writer.remove(k.getTrimmed());for(const C of u.writer.createRangeIn(b).getItems())u.mapper.unbindViewElement(C,{defer:!0})}),{priority:"low"}),this.downcastDispatcher.on("cleanSelection",((l,d,u)=>{const h=u.writer,m=h.document.selection;for(const p of m.getRanges())p.isCollapsed&&p.end.parent.isAttached()&&u.writer.mergeAttributes(p.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 m=[];for(const p of h.getRanges())m.push(u.mapper.toViewRange(p));u.writer.setSelection(m,{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 m=u.writer,p=h.getFirstPosition(),k=u.mapper.toViewPosition(p),b=m.breakAttributes(k);m.setSelection(b)}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((l=>{if(l.rootName=="$graveyard")return null;const d=new cm(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 E("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 Si{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 uC(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 Si),t.is("$text"))return e.add(t),e;t.is("element")&&e.add(t,Si.consumablesFromElement(t)),t.is("documentFragment")&&e.add(t);for(const n of t.getChildren())e=Si.createFrom(n,e);return e}}const Cs=["attributes","classes","styles"];class uC{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 Cs)e in t&&this._add(e,t[e])}test(t){if(t.name&&!this._canConsumeName)return this._canConsumeName;for(const e of Cs)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 Cs)e in t&&this._consume(e,t[e])}revert(t){t.name&&(this._canConsumeName=!0);for(const e of Cs)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 E("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 hC extends dt(){constructor(){super(),this._sourceDefinitions={},this._attributeProperties=Object.create(null),this._customChildChecks=new Map,this._customAttributeChecks=new Map,this._genericCheckSymbol=Symbol("$generic"),this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",((t,e)=>{e[0]=new Ye(e[0])}),{priority:"highest"}),this.on("checkChild",((t,e)=>{e[0]=new Ye(e[0]),e[1]=this.getDefinition(e[1])}),{priority:"highest"})}register(t,e){if(this._sourceDefinitions[t])throw new E("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 E("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(t,e)}checkAttribute(t,e){const n=this.getDefinition(t.last);if(!n)return!1;const i=this._evaluateAttributeChecks(t,e);return i!==void 0?i:n.allowAttributes.includes(e)}checkMerge(t,e){if(t instanceof z){const n=t.nodeBefore,i=t.nodeAfter;if(!(n instanceof ct))throw new E("schema-check-merge-no-element-before",this);if(!(i instanceof ct))throw new E("schema-check-merge-no-element-after",this);return this.checkMerge(n,i)}if(this.isLimit(t)||this.isLimit(e))return!1;for(const n of e.getChildren())if(!this.checkChild(t,n))return!1;return!0}addChildCheck(t,e){const n=e!==void 0?e:this._genericCheckSymbol,i=this._customChildChecks.get(n)||[];
8802i.push(t),this._customChildChecks.set(n,i)}addAttributeCheck(t,e){const n=e!==void 0?e:this._genericCheckSymbol,i=this._customAttributeChecks.get(n)||[];i.push(t),this._customAttributeChecks.set(n,i)}setAttributeProperties(t,e){this._attributeProperties[t]=Object.assign(this.getAttributeProperties(t),e)}getAttributeProperties(t){return this._attributeProperties[t]||Object.create(null)}getLimitElement(t){let e;for(t instanceof z?e=t.parent:e=(t instanceof T?[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 ht("",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 T(t);let n,i;const r=t.getAncestors().reverse().find((s=>this.isLimit(s)))||t.root;e!="both"&&e!="backward"||(n=new Pe({boundaries:T._createIn(r),startPosition:t,direction:"backward"})),e!="both"&&e!="forward"||(i=new Pe({boundaries:T._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 T._createOn(c.item);if(this.checkChild(c.nextPosition,"$text"))return new T(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"))ag(this,n,e);else{const i=T._createIn(n).getPositions();for(const r of i)ag(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 Ye(t)}_clearCache(){this._compiledDefinitions=null}_compile(){const t={},e=this._sourceDefinitions,n=Object.keys(e);for(const r of n)t[r]=mC(e[r],r);const i=Object.values(t);for(const r of i)gC(t,r),pC(t,r),fC(t,r),kC(t,r);for(const r of i)bC(t,r);for(const r of i)wC(t,r);for(const r of i)AC(t,r);for(const r of i)_C(t,r);for(const r of i)CC(t,r);this._compiledDefinitions=(function(r){const s={};for(const a of Object.values(r))s[a.name]={name:a.name,isBlock:!!a.isBlock,isContent:!!a.isContent,isInline:!!a.isInline,isLimit:!!a.isLimit,isObject:!!a.isObject,isSelectable:!!a.isSelectable,allowIn:Array.from(a.allowIn).filter((c=>!!r[c])),allowChildren:Array.from(a.allowChildren).filter((c=>!!r[c])),allowAttributes:Array.from(a.allowAttributes)};return s})(t)}_checkContextMatch(t,e){const n=t.last;let i=this._evaluateChildChecks(t,e);if(i=i!==void 0?i:e.allowIn.includes(n.name),!i)return!1;const r=this.getDefinition(n),s=t.trimLast();return!!r&&(s.length==0||this._checkContextMatch(s,r))}_evaluateChildChecks(t,e){const n=this._customChildChecks.get(this._genericCheckSymbol)||[],i=this._customChildChecks.get(e.name)||[];for(const r of[...n,...i]){const s=r(t,e);if(s!==void 0)return s}}_evaluateAttributeChecks(t,e){const n=this._customAttributeChecks.get(this._genericCheckSymbol)||[],i=this._customAttributeChecks.get(e)||[];for(const r of[...n,...i]){const s=r(t,e);if(s!==void 0)return s}}*_getValidRangesForRange(t,e){let n=t.start,i=t.start;for(const r of t.getItems({shallow:!0}))r.is("element")&&(yield*this._getValidRangesForRange(T._createIn(r),e)),this.checkAttribute(r,e)||(n.isEqual(i)||(yield new T(n,i)),n=z._createAfter(r)),i=z._createAfter(r);n.isEqual(i)||(yield new T(n,i))}findOptimalInsertionRange(t,e){const n=t.getSelectedElement();if(n&&this.isObject(n)&&!this.isInline(n))return e=="before"||e=="after"?new T(z._createAt(n,e)):T._createOn(n);const i=Mt(t.getSelectedBlocks());if(!i)return new T(t.focus);if(i.isEmpty)return new T(z._createAt(i,0));const r=z._createAfter(i);return t.focus.isTouching(r)?new T(r):new T(z._createBefore(i))}}class Ye{constructor(t){if(t instanceof Ye)return t;let e;e=typeof t=="string"?[t]:Array.isArray(t)?t:t.getAncestors({includeSelf:!0}),this._items=e.map(vC)}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 Ye([t]);return e._items=[...this._items,...e._items],e}trimLast(){const t=new Ye([]);return t._items=this._items.slice(0,-1),t}getItem(t){return this._items[t]}*getNames(){yield*this._items.map((t=>t.name))}endsWith(t){return Array.from(this.getNames()).join(" ").endsWith(t)}startsWith(t){return Array.from(this.getNames()).join(" ").startsWith(t)}}function mC(o,t){const e={name:t,allowIn:new Set,allowChildren:new Set,disallowIn:new Set,disallowChildren:new Set,allowContentOf:new Set,allowWhere:new Set,allowAttributes:new Set,disallowAttributes:new Set,allowAttributesOf:new Set,inheritTypesFrom:new Set};return(function(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),Ie(o,e,"allowIn"),Ie(o,e,"allowChildren"),Ie(o,e,"disallowIn"),Ie(o,e,"disallowChildren"),Ie(o,e,"allowContentOf"),Ie(o,e,"allowWhere"),Ie(o,e,"allowAttributes"),Ie(o,e,"disallowAttributes"),Ie(o,e,"allowAttributesOf"),Ie(o,e,"inheritTypesFrom"),(function(n,i){for(const r of n){const s=r.inheritAllFrom;s&&(i.allowContentOf.add(s),i.allowWhere.add(s),i.allowAttributesOf.add(s),i.inheritTypesFrom.add(s))}})(o,e),e}function gC(o,t){for(const e of t.allowIn){const n=o[e];n?n.allowChildren.add(t.name):t.allowIn.delete(e)}}function pC(o,t){for(const e of t.allowChildren){const n=o[e];n?n.allowIn.add(t.name):t.allowChildren.delete(e)}}function fC(o,t){for(const e of t.disallowIn){const n=o[e];n?n.disallowChildren.add(t.name):t.disallowIn.delete(e)}}function kC(o,t){for(const e of t.disallowChildren){const n=o[e];n?n.disallowIn.add(t.name):t.disallowChildren.delete(e)}}function bC(o,t){for(const e of t.disallowChildren)t.allowChildren.delete(e);for(const e of t.disallowIn)t.allowIn.delete(e);for(const e of t.disallowAttributes)t.allowAttributes.delete(e)}function wC(o,t){for(const e of t.allowContentOf){const n=o[e];
8802n&&(n.disallowChildren.forEach((i=>{t.allowChildren.has(i)||(t.disallowChildren.add(i),o[i].disallowIn.add(t.name))})),n.allowChildren.forEach((i=>{t.disallowChildren.has(i)||(t.allowChildren.add(i),o[i].allowIn.add(t.name))})))}}function AC(o,t){for(const e of t.allowWhere){const n=o[e];n&&(n.disallowIn.forEach((i=>{t.allowIn.has(i)||(t.disallowIn.add(i),o[i].disallowChildren.add(t.name))})),n.allowIn.forEach((i=>{t.disallowIn.has(i)||(t.allowIn.add(i),o[i].allowChildren.add(t.name))})))}}function _C(o,t){for(const e of t.allowAttributesOf){const n=o[e];if(!n)return;n.allowAttributes.forEach((i=>{t.disallowAttributes.has(i)||t.allowAttributes.add(i)}))}}function CC(o,t){for(const e of t.inheritTypesFrom){const n=o[e];if(n){const i=Object.keys(n).filter((r=>r.startsWith("is")));for(const r of i)r in t||(t[r]=n[r])}}}function Ie(o,t,e){for(const n of o){let i=n[e];typeof i=="string"&&(i=[i]),Array.isArray(i)&&i.forEach((r=>t[e].add(r)))}}function vC(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 ag(o,t,e){for(const n of t.getAttributeKeys())o.checkAttribute(t,n)||e.removeAttribute(n,t)}class yC extends at(){constructor(t){super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi={...t,consumable:null,writer:null,store:null,convertItem:(e,n)=>this._convertItem(e,n),convertChildren:(e,n)=>
8802this._convertChildren(e,n),safeInsert:(e,n)=>this._safeInsert(e,n),updateConversionResult:(e,n)=>this._updateConversionResult(e,n),splitToAllowedParent:(e,n)=>this._splitToAllowedParent(e,n),getSplitParts:e=>this._getSplitParts(e),keepEmptyElement:e=>this._keepEmptyElement(e)}}convert(t,e,n=["$root"]){this.fire("viewCleanup",t),this._modelCursor=(function(s,a){let c;for(const l of new Ye(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=z._createAt(u,0)}return c})(n,e),this.conversionApi.writer=e,this.conversionApi.consumable=Si.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=T._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"),m=a.createPositionBefore(u);l.has(h)?l.get(h).end=m.clone():l.set(h,new T(m.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 T))throw new E("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(t,e){let n=e.is("position")?e:z._createAt(e,0);const i=new T(n);for(const r of Array.from(t.getChildren())){const s=this._convertItem(r,n);s.modelRange instanceof T&&(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 Jm(e,t,n)?{position:Xm(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;for(const e of this._splitParts.keys())e.isEmpty&&!this._emptyElementsToKeep.has(e)&&(this.conversionApi.writer.remove(e),this._splitParts.delete(e),t=!0);t&&this._removeEmptyElements()}}class xC{getHtml(t){const e=A.document.implementation.createHTMLDocument("").createElement("div");return e.appendChild(t),e.innerHTML}}class EC{constructor(t){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new ps(t,{renderingMode:"data"}),this.htmlWriter=new xC}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){/<(?:html|body|head|meta)(?:\s[^>]*)?>/i.test(t.trim().slice(0,1e4))||(t=`<body>${t}</body>`);const e=this.domParser.parseFromString(t,"text/html"),n=e.createDocumentFragment(),i=e.body.childNodes;for(;i.length>0;)n.appendChild(i[0]);return n}}class DC extends at(){constructor(t,e){super(),this.model=t,this.mapper=new zm,this.downcastDispatcher=new Rm({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 yC({schema:t.schema}),this.viewDocument=new us(e),this.stylesProcessor=e,this.htmlProcessor=new EC(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new dm(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(!Jm(c,"$text",r)||i.viewItem.data.trim().length==0)return;c=Xm(c,a)}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"}),dt().prototype.decorate.call(this,"init"),dt().prototype.decorate.call(this,"set"),dt().prototype.decorate.call(this,"get"),dt().prototype.decorate.call(this,"toView"),dt().prototype.decorate.call(this,"toModel"),this.on("init",(()=>{this.fire("ready")}),{priority:"lowest"}),this.on("ready",(()=>{this.model.enqueueChange({isUndoable:!1},Zm)}),{priority:"lowest"})}get(t={}){const{rootName:e="main",trim:n="empty"}=t;if(!this._checkIfRootsExists([e]))throw new E("datacontroller-get-non-existent-root",this);const i=this.model.document.getRoot(e);return i.isAttached()||nt("datacontroller-get-detached-root",this),n!=="empty"||this.model.hasContent(i,{ignoreWhitespace
8802s:!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=T._createIn(t),s=new gn(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=T._createIn(c);for(const h of d.model.markers){const m=h.getRange(),p=m.isCollapsed,k=m.start.isEqual(u.start)||m.end.isEqual(u.end);if(p&&k)l.push([h.name,m]);else{const b=u.getIntersection(m);b&&l.push([h.name,b])}}return l.sort((([h,m],[p,k])=>{if(m.end.compareWith(k.start)!=="after")return 1;if(m.start.compareWith(k.end)!=="before")return-1;switch(m.start.compareWith(k.start)){case"before":return 1;case"after":return-1;default:switch(m.end.compareWith(k.end)){case"before":return 1;case"after":return-1;default:return p.localeCompare(h)}}})),new Map(l)})(t);return this.downcastDispatcher.convert(r,a,i,e),s}init(t){if(this.model.document.version)throw new E("datacontroller-init-document-not-empty",this);let e={};if(typeof t=="string"?e.main=t:e=t,!this._checkIfRootsExists(Object.keys(e)))throw new E("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 E("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)))}addStyleProcessorRules(t){t(this.stylesProcessor)}registerRawContentMatcher(t){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(t),this.htmlProcessor.registerRawContentMatcher(t)}destroy(){this.stopListening()}_checkIfRootsExists(t){for(const e of t)if(!this.model.document.getRoot(e))return!1;return!0}}class IC{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 E("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:t,dispatchers:[e],isDowncast:n})}for(t){if(!this._helpers.has(t))throw new E("conversion-for-unknown-group",this);return this._helpers.get(t)}elementToElement(t){this.for("downcast").elementToElement(t);for(const{model:e,view:n}of ed(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 ed(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 ed(t))this.for("upcast").attributeToAttribute({view:n,model:e})}_createConversionHelpers({name:t,dispatchers:e,isDowncast:n}){if(this._helpers.has(t))throw new E("conversion-group-exists",this);const i=n?new nC(e):new cC(e);this._helpers.set(t,i)}}function*ed(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*cg(e,n,i)}else yield*cg(o.model,o.view,o.upcastAlso)}function*cg(o,t,e){if(yield{model:o,view:t},e)for(const n of gt(e))yield{model:o,view:n}}class Xt{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)}}
vendor: 25,292 bytes, line 8802
8802function nd(o,t){const e=dg(t),n=e.reduce(((s,a)=>s+a.offsetSize),0),i=o.parent;Ti(o);const r=o.index;return i._insertChild(r,e),Bi(i,r+e.length),Bi(i,r),new T(o,o.getShiftedBy(n))}function lg(o){if(!o.isFlat)throw new E("operation-utils-remove-range-not-flat",this);const t=o.start.parent;Ti(o.start),Ti(o.end);const e=t._removeChildren(o.start.index,o.end.index-o.start.index);return Bi(t,o.start.index),e}function Mi(o,t){if(!o.isFlat)throw new E("operation-utils-move-range-not-flat",this);const e=lg(o);return nd(t=t._getTransformedByDeletion(o.start,o.end.offset-o.start.offset),e)}function dg(o){const t=[];(function e(n){if(typeof n=="string")t.push(new ht(n));else if(n instanceof ke)t.push(new ht(n.data,n.getAttributes()));else if(n instanceof fn)t.push(n);else if(Kt(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 ht&&i instanceof ht&&ug(n,i)&&(t.splice(e-1,2,new ht(i.data+n.data,i.getAttributes())),e--)}return t}function Bi(o,t){const e=o.getChild(t-1),n=o.getChild(t);if(e&&n&&e.is("$text")&&n.is("$text")&&ug(e,n)){const i=new ht(e.data+n.data,e.getAttributes());o._removeChildren(t-1,2),o._insertChild(t-1,i)}}function Ti(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 ht(t.data.substr(0,n),t.getAttributes()),s=new ht(t.data.substr(n),t.getAttributes());e._insertChild(i,[r,s])}}function ug(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 st extends Xt{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[T._createFromPositionAndShift(this.sourcePosition,this.howMany),T._createFromPositionAndShift(this.targetPosition,0)]}clone(){return new st(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 st(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 E("move-operation-nodes-do-not-exist",this);if(t===e&&n<i&&i<n+this.howMany)throw new E("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&Ft(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 E("move-operation-node-into-itself",this)}}_execute(){Mi(T._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=z.fromJSON(t.sourcePosition,e),i=z.fromJSON(t.targetPosition,e);return new this(n,t.howMany,i,t.baseVersion)}}class Bt extends Xt{constructor(t,e,n){super(n),this.position=t.clone(),this.position.stickiness="toNone",this.nodes=new xi(dg(e)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}get affectedSelectable(){return this.position.clone()}clone(){const t=new xi([...this.nodes].map((n=>n._clone(!0)))),e=new Bt(this.position,t,this.baseVersion);return e.shouldReceiveAttributes=this.shouldReceiveAttributes,e}getReversed(){const t=this.position.root.document.graveyard,e=new z(t,[0]);return new st(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}_validate(){const t=this.position.parent;if(!t||t.maxOffset<this.position.offset)throw new E("insert-operation-position-invalid",this)}_execute(){const t=this.nodes;this.nodes=new xi([...t].map((e=>e._clone(!0)))),nd(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(ct.fromJSON(r)):n.push(ht.fromJSON(r));const i=new Bt(z.fromJSON(t.position,e),n,t.baseVersion);return i.shouldReceiveAttributes=t.shouldReceiveAttributes,i}}class mt extends Xt{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 z(this.insertionPosition.root,t)}get movedRange(){const t=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new T(this.splitPosition,t)}get affectedSelectable(){const t=[T._createFromPositionAndShift(this.splitPosition,0),T._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&t.push(T._createFromPositionAndShift(this.graveyardPosition,0)),t}clone(){return new mt(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const t=this.splitPosition.root.document.graveyard,e=new z(t,[0]);return new Ct(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 E("split-operation-position-invalid",this);if(!t.parent)throw new E("split-operation-split-in-root",this);if(this.howMany!=t.maxOffset-this.splitPosition.offset)throw new E("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new E("split-operation-graveyard-position-invalid",this)}_execute(){const t=this.splitPosition.parent;if(this.graveyardPosition)Mi(T._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const e=t._clone();nd(this.insertionPosition,e)}Mi(new T(z._createAt(t,this.splitPosition.offset),z._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 z(t.root,e,"toPrevious")}static fromJSON(t,e){const n=z.fromJSON(t.splitPosition,e),i=z.fromJSON(t.insertionPosition,e),r=t.graveyardPosition?z.fromJSON(t.graveyardPosition,e):null;return new this(n,t.howMany,i,r,t.baseVersion)}}class Ct extends Xt{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 z(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const t=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new T(this.sourcePosition,t)}get affectedSelectable(){const t=this.sourcePosition.parent;return[T._createOn(t),T._createFromPositionAndShift(this.targetPosition,0),T._createFromPositionAndShift(this.graveyardPosition,0)]}clone(){return new Ct(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 z(this.sourcePosition.root,e)._getTransformedByMergeOperation(this);return new mt(t,this.howMany,n,this.graveyardPosition,this.baseVersion+1)}_validate(){const t=this.sourcePosition.parent,e=this.targetPosition.parent;if(!t.parent)throw new E("merge-operation-source-position-invalid",this);if(!e.parent)throw new E("merge-operation-target-position-invalid",this);if(this.howMany!=t.maxOffset)throw new E("merge-operation-how-many-invalid",this)}_execute(){const t=this.sourcePosition.parent;Mi(T._createIn(t),this.targetPosition),Mi(T._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=z.fromJSON(t.sourcePosition,e),i=z.fromJSON(t.targetPosition,e),r=z.fromJSON(t.graveyardPosition,e);return new this(n,t.howMany,i,r,t.baseVersion)}}class jt extends Xt{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 jt(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new jt(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 jt(t.name,t.oldRange?T.fromJSON(t.oldRange,e):null,t.newRange?T.fromJSON(t.newRange,e):null,e.model.markers,t.affectsData,t.baseVersion)}}const hg=function(o,t){return bs(o,t)};class xt extends Xt{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 E("attribute-operation-range-not-flat",this);for(const t of this.range.getItems({shallow:!0})){if(this.oldValue!==null&&!hg(t.getAttribute(this.key),this.oldValue))throw new E("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 E("attribute-operation-attribute-exists",this,{node:t,key:this.key})}}_execute(){hg(this.oldValue,this.newValue)||(function(t,e,n){Ti(t.start),Ti(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),Bi(r.parent,r.index)}Bi(t.end.parent,t.end.index)})(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(t,e){return new xt(T.fromJSON(t.range,e),t.key,t.oldValue,t.newValue,t.baseVersion)}}class Dt extends Xt{get type(){return"noop"}get affectedSelectable(){return null}clone(){return new Dt(this.baseVersion)}getReversed(){return new Dt(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}class qt extends Xt{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 qt(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new qt(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const t=this.position.nodeAfter;if(!(t instanceof ct))throw new E("rename-operation-wrong-position",this);if(t.name!==this.oldName)throw new E("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 qt(z.fromJSON(t.position,e),t.oldName,t.newName,t.baseVersion)}}class Le extends Xt{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 Le(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Le(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new E("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 E("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 E("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 E("rootattribute-operation-fromjson-no-root",this,{rootName:t.root});return new Le(e.getRoot(t.root),t.key,t.oldValue,t.newValue,t.baseVersion)}}class Se extends Xt{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 Se(this.rootName,this.elementName,this.isAdd,this._document,this.baseVersion)}getReversed(){return new Se(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 Se(t.rootName,t.elementName,t.isAdd,e,t.baseVersion)}}const se={};se[xt.className]=xt,se[Bt.className]=Bt,se[jt.className]=jt,se[st.className]=st,se[Dt.className]=Dt,se[Xt.className]=Xt,se[qt.className]=qt,se[Le.className]=Le,se[Se.className]=Se,se[mt.className]=mt,se[Ct.className]=Ct;class SC{static fromJSON(t,e){return se[t.__className].fromJSON(t,e)}}const id=new Map;function rt(o,t,e){let n=id.get(o);n||(n=new Map,id.set(o,n)),n.set(t,e)}function MC(o){return[o]}function mg(o,t,e={}){const n=(function(i,r){const s=id.get(i);return s&&s.has(r)?s.get(r):MC})(o.constructor,t.constructor);try{return n(o=o.clone(),t,e)}catch(i){throw i}}function BC(o,t,e){o=o.slice(),t=t.slice();const n=new TC(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=mg(c,d,n.getContext(c,d,!0)),h=mg(d,c,n.getContext(d,c,!1));n.updateRelation(c,d),n.setOriginalOperations(u,c),n.setOriginalOperations(h,d);for(const m of u)r.set(m,l+h.length);o.splice(a,1,...u),t.splice(l,1,...h)}return pg(o),pg(t),e.padWithNoOps,gg(o,s.nextBaseVersionB),gg(t,s.nextBaseVersionA),{operationsA:o,operationsB:t,originalOperations:i}}class TC{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 st)e instanceof Ct?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 st&&(t.targetPosition.isEqual(e.sourcePosition)||t.targetPosition.isBefore(e.sourcePosition)?this._setRelation(t,e,"insertBefore"):this._setRelation(t,e,"insertAfter"));else if(t instanceof mt){if(e instanceof Ct)t.splitPosition.isBefore(e.sourcePosition)&&this._setRelation(t,e,"splitBefore");else if(e instanceof st)if(t.splitPosition.isEqual(e.sourcePosition)||t.splitPosition.isBefore(e.sourcePosition))this._setRelation(t,e,"splitBefore");else{const n=T._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 Ct)e instanceof Ct?(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 mt?t.sourcePosition.isEqual(e.splitPosition)&&this._setRelation(t,e,"splitAtSource"):e instanceof st&&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 jt){const n=t.newRange;if(!n)return;if(e instanceof Ct){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 gg(o,t){for(const e of o)e.baseVersion=t++}function pg(o){const t=new Map;for(let e=0;e<o.length;e++){const n=o[e];n instanceof jt&&(n.baseVersion!==-1?t.set(n.name,{op:n,ranges:n.newRange?[n.newRange]:[]}):(n.newRange&&t.get(n.name).ranges.push(n.newRange),o.splice(e,1),e--))}for(const{op:e,ranges:n}of t.values())n.length?e.newRange=T._createFromRanges(n):e.newRange=null}function fg(o,t,e){const n=o.nodes.getNode(0).getAttribute(t);if(n==e)return null;const i=new T(o.position,o.position.getShiftedBy(o.howMany));return new xt(i,t,n,e,0)}function kg(o,t){return o.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany)===null}function Hn(o,t){const e=[];for(let n=0;n<o.length;n++){const i=o[n],r=new st(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}rt(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 Dt(0)]:n}return[o]})),rt(xt,Bt,((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=fg(t,o.key,o.oldValue);n&&e.unshift(n)}return e}return o.range=o.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[o]})),rt(xt,Ct,((o,t)=>{const e=[];o.range.start.hasSameParentAs(t.deletionPosition)&&(o.range.containsPosition(t.deletionPosition)||o.range.start.isEqual(t.deletionPosition))&&e.push(T._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)))})),rt(xt,st,((o,t)=>(function(n,i){const r=T._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))))),rt(xt,mt,((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 T(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]})),rt(Bt,xt,((o,t)=>{const e=[o];if(o.shouldReceiveAttributes&&o.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(o.position)){const n=fg(o,t.key,t.newValue);n&&e.push(n)}return e})),rt(Bt,Bt,((o,t,e)=>(o.position.isEqual(t.position)&&e.aIsStrong||(o.position=o.position._getTransformedByInsertOperation(t)),[o]))),rt(Bt,st,((o,t)=>(o.position=o.position._getTransformedByMoveOperation(t),[o]))),rt(Bt,mt,((o,t)=>(o.position=o.position._getTransformedBySplitOperation(t),[o]))),rt(Bt,Ct,((o,t)=>(o.position=o.position._getTransformedByMergeOperation(t),[o]))),rt(jt,Bt,((o,t)=>(o.oldRange&&(o.oldRange=o.oldRange._getTransformedByInsertOperation(t)[0]),o.newRange&&(o.newRange=o.newRange._getTransformedByInsertOperation(t)[0]),[o]))),rt(jt,jt,((o,t,e)=>{if(o.name==t.name){if(!e.aIsStrong)return[new Dt(0)];o.oldRange=t.newRange?t.newRange.clone():null}return[o]})),rt(jt,Ct,((o,t)=>(o.oldRange&&(o.oldRange=o.oldRange._getTransformedByMergeOperation(t)),o.newRange&&(o.newRange=o.newRange._getTransformedByMergeOperation(t)),[o]))),rt(jt,st,((o,t)=>{const e=[o];if(o.oldRange&&(o.oldRange=T._createFromRanges(o.oldRange._getTransformedByMoveOperation(t))),o.newRange){const n=o.newRange._getTransformedByMoveOperation(t);o.newRange=n[0];for(let i=1;i<n.length;i++){const r=o.clone();r.oldRange=null,r.newRange=n[i],r.baseVersion=-1,e.push(r)}}return e})),rt(jt,mt,((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=z._createAt(t.insertionPosition):o.newRange.start.isEqual(t.splitPosition)&&!e.abRelation.wasInLeftElement?o.newRange.start=z._createAt(t.moveTargetPosition):o.newRange.start=n.start,o.newRange.end.isEqual(t.splitPosition)&&e.abRelation.wasInRightElement?o.newRange.end=z._createAt(t.moveTargetPosition):o.newRange.end.isEqual(t.splitPosition)&&e.abRelation.wasEndBeforeMergedElement?o.newRange.end=z._createAt(t.insertionPosition):o.newRange.end=n.end,[o]}o.newRange=o.newRange._getTransformedBySplitOperation(t)}return[o]})),rt(Ct,Bt,((o,t)=>(o.sourcePosition.hasSameParentAs(t.position)&&(o.howMany+=t.howMany),o.sourcePosition=o.sourcePosition._getTransformedByInsertOperation(t),o.targetPosition=o.targetPosition._getTransformedByInsertOperation(t),[o]))),rt(Ct,Ct,((o,t,e)=>{if(o.sourcePosition.isEqual(t.sourcePosition)&&o.targetPosition.isEqual(t.targetPosition)){if
8802(e.bWasUndone){const n=t.graveyardPosition.path.slice();return n.push(0),o.sourcePosition=new z(t.graveyardPosition.root,n),o.howMany=0,[o]}return[new Dt(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 st(r,o.howMany,s,0)]}return[new Dt(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]})),rt(Ct,st,((o,t,e)=>{const n=T._createFromPositionAndShift(t.sourcePosition,t.howMany);return t.type=="remove"&&!e.bWasUndone&&o.deletionPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(o.sourcePosition)?[new Dt(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])})),rt(Ct,mt,((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)&&(t.graveyardPosition&&o.deletionPosition.isEqual(t.graveyardPosition)||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]})),rt(st,Bt,((o,t)=>{const e=T._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]})),rt(st,st,((o,t,e)=>{const n=T._createFromPositionAndShift(o.sourcePosition,o.howMany),i=T._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),kg(o,t)&&kg(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),Hn([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()),Hn([n],r);const c=Ft(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),Hn([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 m=Ft(h.start.getParentPath(),t.getMovedRangeStart().getParentPath())=="same",p=h._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,m);l.push(...p)}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 Dt(o.baseVersion)]:Hn(l,r)})),rt(st,mt,((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=T._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 T(t.splitPosition,i.end);return s=s._getTransformedBySplitOperation(t),Hn([new T(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>
vendor: 5,496 bytes, line 8802
88021&&s&&!e.aWasUndone&&r.push(T._createFromPositionAndShift(t.insertionPosition,1))}return Hn(r,n)})),rt(st,Ct,((o,t,e)=>{const n=T._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 Dt(0)]}else if(!e.aWasUndone){const r=[];let s=t.graveyardPosition.clone(),a=t.targetPosition._getTransformedByMergeOperation(t);const c=o.targetPosition.getTransformedByOperation(t);o.howMany>1&&(r.push(new st(o.sourcePosition,o.howMany-1,c,0)),s=s._getTransformedByMove(o.sourcePosition,c,o.howMany-1),a=a._getTransformedByMove(o.sourcePosition,c,o.howMany-1));const l=t.deletionPosition._getCombined(o.sourcePosition,c),d=new st(s,1,l,0),u=d.getMovedRangeStart().path.slice();u.push(0);const h=new z(d.targetPosition.root,u);a=a._getTransformedByMove(s,l,1);const m=new st(a,t.howMany,h,0);return r.push(d),r.push(m),r}}const i=T._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]})),rt(qt,Bt,((o,t)=>(o.position=o.position._getTransformedByInsertOperation(t),[o]))),rt(qt,Ct,((o,t)=>o.position.isEqual(t.deletionPosition)?(o.position=t.graveyardPosition.clone(),o.position.stickiness="toNext",[o]):(o.position=o.position._getTransformedByMergeOperation(t),[o]))),rt(qt,st,((o,t)=>(o.position=o.position._getTransformedByMoveOperation(t),[o]))),rt(qt,qt,((o,t,e)=>{if(o.position.isEqual(t.position)){if(!e.aIsStrong)return[new Dt(0)];o.oldName=t.newName}return[o]})),rt(qt,mt,((o,t)=>{if(Ft(o.position.path,t.splitPosition.getParentPath())=="same"&&!t.graveyardPosition){const e=new qt(o.position.getShiftedBy(1),o.oldName,o.newName,0);return[o,e]}return o.position=o.position._getTransformedBySplitOperation(t),[o]})),rt(Le,Le,((o,t,e)=>{if(o.root===t.root&&o.key===t.key){if(!e.aIsStrong||o.newValue===t.newValue)return[new Dt(0)];o.oldValue=t.newValue}return[o]})),rt(Se,Se,((o,t)=>o.rootName===t.rootName&&o.isAdd===t.isAdd?[new Dt(0)]:[o])),rt(mt,Bt,((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]))),rt(mt,Ct,((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 z(t.graveyardPosition.root,n),r=mt.getInsertionPosition(new z(t.graveyardPosition.root,n)),s=new mt(i,0,r,null,0);return o.splitPosition=o.splitPosition._getTransformedByMergeOperation(t),o.insertionPosition=mt.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=mt.getInsertionPosition(o.splitPosition),o.graveyardPosition&&(o.graveyardPosition=o.graveyardPosition._getTransformedByMergeOperation(t)),[o]})),rt(mt,st,((o,t,e)=>{const n=T._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 z(a.root,c);return[new st(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=mt.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=mt.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=mt.getInsertionPosition(o.splitPosition),[o]})),rt(mt,mt,((o,t,e)=>
8802{if(o.splitPosition.isEqual(t.splitPosition)){if(!o.graveyardPosition&&!t.graveyardPosition)return[new Dt(0)];if(o.graveyardPosition&&t.graveyardPosition&&o.graveyardPosition.isEqual(t.graveyardPosition))return[new Dt(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 st(t.moveTargetPosition,t.howMany,t.splitPosition,0)),o.howMany&&r.push(new st(o.splitPosition,o.howMany,o.moveTargetPosition,0)),r}return[new Dt(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 z(t.insertionPosition.root,n);return[o,new st(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=mt.getInsertionPosition(o.splitPosition),[o]}));class Nt extends at(z){constructor(t,e,n="toNone"){if(super(t,e,n),!this.root.is("rootElement"))throw new E("model-liveposition-root-not-rootelement",t);NC.call(this)}detach(){this.stopListening()}toPosition(){return new z(this.root,this.path.slice(),this.stickiness)}static fromPosition(t,e){return new this(t.root,t.path.slice(),e||t.stickiness)}}function NC(){this.listenTo(this.root.document.model,"applyOperation",((o,t)=>{const e=t[0];e.isDocumentOperation&&PC.call(this,e)}),{priority:"low"})}function PC(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)}}Nt.prototype.is=function(o){return o==="livePosition"||o==="model:livePosition"||o=="position"||o==="model:position"};class Un{constructor(t={}){typeof t=="string"&&(t=t==="transparent"?{isUndoable:!1}:{},nt("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 nt("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}}const Tr=class Tr{constructor(t){this._changesInElement=new Map,this._elementsSnapshots=new Map,this._elementChildrenSnapshots=new Map,this._elementState=new Map,this._changedMarkers=new Map,this._changedRoots=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set,this._markerCollection=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);const r=T._createFromPositionAndShift(e.sourcePosition,e.howMany);for(const s of r.getItems({shallow:!0}))this._setElementState(s,"move");break}case"rename":{if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);const n=T._createFromPositionAndShift(e.position,1);for(const i of this._markerCollection.getMarkersIntersectingRange(n)){const r=i.getData();this.bufferMarkerChange(i.name,r,r)}this._setElementState(e.position.nodeAfter,"rename");break}case"split":{const n=e.splitPosition.parent;if(!this._isInInsertedElement(n)){this._markRemove(n,e.splitPosition.offset,e.howMany);const i=T._createFromPositionAndShift(e.splitPosition,e.howMany);for(const r of i.getItems({shallow:!0}))this._setElementState(r,"move")}this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&(this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1),this._setElementState(e.graveyardPosition.nodeAfter,"move"));break}case"merge":{const 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),this._setElementState(n,"move");const r=e.targetPosition.parent;if(!this._isInInsertedElement(r)){this._markInsert(r,e.targetPosition.offset,n.maxOffset);const s=T._createFromPositionAndShift(e.sourcePosition,e.howMany);for(const a of s.getItems({shallow:!0}))this._setElementState(a,"move")}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}
8802getMarkersToAdd(){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._elementChildrenSnapshots.get(n),s=wg(n.getChildren()),a=LC(r.length,i);let c=0,l=0;for(const d of a)if(d==="i"){const u=this._getDiffActionForNode(s[c].node,"insert"),h=this._elementsSnapshots.get(s[c].node),m=this._getInsertDiff(n,c,u,s[c],h);e.push(m),c++}else if(d==="r"){const u=this._getDiffActionForNode(r[l].node,"remove"),h=this._getRemoveDiff(n,c,u,r[l]);e.push(h),l++}else if(d==="a"){const u=r[l].attributes,h=s[c].attributes;let m;if(s[c].name=="$text")m=new T(z._createAt(n,c),z._createAt(n,c+1));
8802else{const k=n.offsetToIndex(c);m=new T(z._createAt(n,c),z._createAt(n.getChild(k),0))}const p=this._getAttributesDiff(m,u,h);e.push(...p),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(OC),t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}
8802getChangedRoots(){return Array.from(this._changedRoots.values()).map((t=>{const e={...t};return e.state!==void 0&&delete e.attributes,e}))}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementChildrenSnapshots.clear(),this._elementsSnapshots.clear(),this._elementState.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems.clear(),this._cachedChanges=null}_refreshItem(t){if(this._isInInsertedElement(t.parent))return;this._markRemove(t.parent,t.startOffset,t.offsetSize),this._markInsert(t.parent,t.startOffset,t.offsetSize),this._refreshedItems.add(t),this._setElementState(t,"refresh");const e=T._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 e of t.getAttributeKeys())this._bufferRootAttributeChange(t.rootName,e,null,t.getAttribute(e));for(const e of this._markerCollection)if(e.getRange().root==t){const n=e.getData();this.bufferMarkerChange(e.name,{...n,range:null},n)}}}_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))}_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._makeSnapshots(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--)}_setElementState(t,e){if(!t.is("element"))return;const n=Tr._statesPriority.indexOf(this._elementState.get(t));Tr._statesPriority.indexOf(e)>n&&this._elementState.set(t,e)}_getDiffActionForNode(t,e){if(!t.is("element")||!this._elementsSnapshots.has(t))return e;const n=this._elementState.get(t);return n&&n!="move"?n:e}_getChangesForElement(t){let e;return this._changesInElement.has(t)?e=this._changesInElement.get(t):(e=[],this._changesInElement.set(t,e)),e}_makeSnapshots(t){if(this._elementChildrenSnapshots.has(t))return;const e=wg(t.getChildren());this._elementChildrenSnapshots.set(t,e);for(const n of e)this._elementsSnapshots.set(n.node,n)}_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,i,r){const s={type:"insert",position:z._createAt(t,e),name:i.name,attributes:new Map(i.attributes),length:1,changeCount:this._changeCount++,action:n};return n!="insert"&&r&&(s.before={name:r.name,attributes:new Map(r.attributes)}),s}_getRemoveDiff(t,e,n,i){return{type:"remove",action:n,position:z._createAt(t,e),name:i.name,attributes:new Map(i.attributes),length:1,changeCount:this._changeCount++}}_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 T(z._createAt(t,e),z._createAt(t,e+n));for(const r of i.getItems({shallow:!0}))r.is("element")&&(this._changesInElement.delete(r),this._removeAllNestedChanges(r,0,r.maxOffset))}};Tr._statesPriority=[void 0,"refresh","rename","move"];let od=Tr;function bg(o){return{node:o,name:o.is("$text")?"$text":o.name,attributes:new Map(o.getAttributes())}}function wg(o){const t=[];for(const e of o)if(e.is("$text"))for(let n=0;n<e.data.length;++n)t.push(bg(e));else t.push(bg(e));return t}function LC(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{if(r.howMany>1500)for(let s=0;s<r.howMany;s++)e.push("a");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 OC(o){const t="position"in o&&o.position.root.rootName=="$graveyard",e="range"in o&&o.range.root.rootName=="$graveyard";return!t&&!e}
vendor: 14,976 bytes, line 8802
8802class zC{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 E("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 vs extends ct{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}}vs.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"};const Ag="$graveyard";class RC extends at(){constructor(t){super(),this.model=t,this.history=new zC,this.selection=new be(this),this.roots=new he({idProperty:"rootName"}),this.differ=new od(t.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",Ag),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={...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,{...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(Ag)}createRoot(t="$root",e="main"){if(this.roots.get(e))throw new E("model-document-createroot-name-exists",this,{name:e});const n=new vs(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=em(this);return t.selection="[engine.model.DocumentSelection]",t.model="[engine.model.Model]",t}_handleChangeBlock(t){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(t),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",t.batch):this.fire("change",t.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){const t=this.getRoots();return t.length?t[0]:this.graveyard}_getDefaultRange(){const t=this._getDefaultRoot(),e=this.model,n=e.schema,i=e.createPositionFromPath(t,[0]);return n.getNearestSelectionRange(i)||e.createRange(i)}_validateSelectionRange(t){return t.start.isValid()&&t.end.isValid()&&_g(t.start)&&_g(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 _g(o){const t=o.textNode;if(t){const e=t.data,n=o.offset-t.startOffset;return!yl(e,n)&&!xl(e,n)}return!0}class FC extends at(){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(t){const e=t instanceof qn?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 qn?t.name:t;if(r.includes(","))throw new E("markercollection-incorrect-marker-name",this);const s=this._markers.get(r);if(s){const l=s.getData(),d=s.getRange();let u=!1;return d.isEqual(e)||(s._attachLiveRange(Ut.fromRange(e)),u=!0),n!=s.managedUsingOperations&&(s._managedUsingOperations=n,u=!0),typeof i=="boolean"&&i!=s.affectsData&&(s._affectsData=i,u=!0),u&&this.fire(`update:${r}`,s,d,e,l),s}const a=Ut.fromRange(e),c=new qn(r,a,n,i);return this._markers.set(r,c),this.fire(`update:${r}`,c,null,e,{...c.getData(),range:null}),c}_remove(t){const e=t instanceof qn?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 qn?t.name:t,n=this._markers.get(e);if(!n)throw new E("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 qn extends at($e){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 E("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new E("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new E("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new E("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new E("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}}qn.prototype.is=function(o){return o==="marker"||o==="model:marker"};class jC extends Xt{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 E("detach-operation-on-document-node",this)}_execute(){lg(T._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class Oe extends $e{constructor(t){super(),this.markers=new Map,this._children=new xi,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)}getChildAtOffset(t){return this._children.getNodeAtOffset(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.getChildAtOffset(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(ct.fromJSON(n)):e.push(ht.fromJSON(n));return new Oe(e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=(function(i){return typeof i=="string"?[new ht(i)]:(Kt(i)||(i=[i]),Array.from(i).map((r=>typeof r=="string"?new ht(r):r instanceof ke?new ht(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}}Oe.prototype.is=function(o){return o==="documentFragment"||o==="model:documentFragment"};class VC{constructor(t,e){this.model=t,this.batch=e}createText(t,e){return new ht(t,e)}createElement(t,e){return new ct(t,e)}createDocumentFragment(){return new Oe}cloneElement(t,e=!0){return t._clone(e)}insert(t,e,n=0){if(this._assertWriterUsedCorrectly(),t instanceof ht&&t.data=="")return;const i=z._createAt(e,n);if(t.parent){if(yg(t.root,i.root))return void this.move(T._createOn(t),i);if(t.root.document)throw new E("model-writer-insert-forbidden-move",this);this.remove(t)}const r=i.root.document?i.root.document.version:null,s=new Bt(i,t,r);if(t instanceof ht&&(s.shouldReceiveAttributes=!0),this.batch.addOperation(s),this.model.applyOperation(s),t instanceof Oe)for(const[a,c]of t.markers){const l=z._createAt(c.root,0),d={range:new T(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 Oe||e instanceof ct||e instanceof z?this.insert(this.createText(t),e,n):this.insert(this.createText(t,e),n,i)}insertElement(t,e,n,i){e instanceof Oe||e instanceof ct||e instanceof z?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 Oe||e instanceof ct?this.insert(this.createText(t),e,"end"):this.insert(this.createText(t,e),n,"end")}appendElement(t,e,n){e instanceof Oe||e instanceof ct?this.insert(this.createElement(t),e,"end"):this.insert(this.createElement(t,e),n,"end")}setAttribute(t,e,n){if(this._assertWriterUsedCorrectly(),n instanceof T){const i=n.getMinimalFlatRanges();for(const r of i)Cg(this,t,e,r)}else vg(this,t,e,n)}setAttributes(t,e){for(const[n,i]of ye(t))this.setAttribute(n,i,e)}removeAttribute(t,e){if(this._assertWriterUsedCorrectly(),e instanceof T){const n=e.getMinimalFlatRanges();for(const i of n)Cg(this,t,null,i)}else vg(this,t,null,e)}clearAttributes(t){this._assertWriterUsedCorrectly();const e=n=>{for(const i of n.getAttributeKeys())this.removeAttribute(i,n)};if(t instanceof T)for(const n of t.getItems())e(n);else e(t)}move(t,e,n){if(this._assertWriterUsedCorrectly(),!(t instanceof T))throw new E("writer-move-invalid-range",this);if(!t.isFlat)throw new E("writer-move-range-not-flat",this);const i=z._createAt(e,n);if(i.isEqual(t.start))return;if(this._addOperationForAffectedMarkers("move",t),!yg(t.root,i.root))throw new E("writer-move-different-document",this);const r=t.root.document?t.root.document.version:null,s=new st(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 T?t:T._createOn(t)).getMinimalFlatRanges().reverse();for(const n of e)this._addOperationForAffectedMarkers("move",n),HC(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 ct))throw new E("writer-merge-no-element-before",this);if(!(n instanceof ct))throw new E("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(T._createIn(n),z._createAt(e,"end")),this.remove(n)}_merge(t){const e=z._createAt(t.nodeBefore,"end"),n=z._createAt(t.nodeAfter,0),i=t.root.document.graveyard,r=new z(i,[0]),s=t.root.document.version,a=new Ct(n,t.nodeAfter.maxOffset,e,r,s);this.batch.addOperation(a),this.model.applyOperation(a)}rename(t,e){if(this._assertWriterUsedCorrectly(),!(t instanceof ct))throw new E("writer-rename-not-element-instance",this);const n=t.root.document?t.root.document.version:null,i=new qt(z._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 E("writer-split-element-no-parent",this);if(e||(e=r.parent),!t.parent.getAncestors({includeSelf:!0}).includes(e))throw new E("writer-split-invalid-limit-element",this);do{const s=r.root.document?r.root.document.version:null,a=r.maxOffset-t.offset,c=mt.getInsertionPosition(t),l=new mt(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 T(z._createAt(n,"end"),z._createAt(i,0))}}wrap(t,e){if(this._assertWriterUsedCorrectly(),!t.isFlat)throw new E("writer-wrap-range-not-flat",this);const n=e instanceof ct?e:new ct(e);
8802if(n.childCount>0)throw new E("writer-wrap-element-not-empty",this);if(n.parent!==null)throw new E("writer-wrap-element-attached",this);this.insert(n,t.start);const i=new T(t.start.getShiftedBy(1),t.end.getShiftedBy(1));this.move(i,z._createAt(n,0))}unwrap(t){if(this._assertWriterUsedCorrectly(),t.parent===null)throw new E("writer-unwrap-element-no-parent",this);this.move(T._createIn(t),this.createPositionAfter(t)),this.remove(t)}addMarker(t,e){if(this._assertWriterUsedCorrectly(),!e||typeof e.usingOperation!="boolean")throw new E("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 E("writer-addmarker-marker-exists",this);if(!i)throw new E("writer-addmarker-no-range",this);return n?(Ni(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 E("writer-updatemarker-marker-not-exists",this);if(!e)return nt("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 E("writer-updatemarker-wrong-options",this);const c=i.getRange(),l=e.range?e.range:c;r&&e.usingOperation!==i.managedUsingOperations?e.usingOperation?Ni(this,n,null,l,a):(Ni(this,n,c,null,a),this.model.markers._set(n,l,void 0,a)):i.managedUsingOperations?Ni(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 E("writer-removemarker-no-marker",this);const n=this.model.markers.get(e);if(!n.managedUsingOperations)return void this.model.markers._remove(e);Ni(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 E("writer-addroot-root-exists",this);const i=this.model.document,r=new Se(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 E("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 Se(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 ye(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=be._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=be._getStoreAttributeKey(t);this.removeAttribute(n,e.anchor.parent)}e._removeAttribute(t)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new E("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 Cg(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 T(l,s),h=u.root.document?r.version:null,m=new xt(u,t,a,e,h);o.batch.addOperation(m),i.applyOperation(m)}s instanceof z&&s!=l&&a!=e&&d()}function vg(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 Le(n,t,s,e,l)}else{a=new T(z._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 Ni(o,t,e,n,i){const r=o.model,s=r.document,a=new jt(t,e,n,r.markers,!!i,s.version);o.batch.addOperation(a),r.applyOperation(a)}function HC(o,t,e,n){let i;if(o.root.document){const r=n.document,s=new z(r.graveyard,[0]);i=new st(o,t,s,r.version)}else i=new jC(o,t);e.addOperation(i),n.applyOperation(i)}function yg(o,t){return o===t||o instanceof vs&&t instanceof vs}function UC(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)),Dg(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 m=(function(p){const k=p.parent,b=k.root.document.model.schema,C=k.getAncestors({parentFirst:!0,includeSelf:!0});for(const I of C){if(b.isLimit(I))return null;if(b.isBlock(I))return I}})(h);if(m&&h.isTouching(d.createPositionAt(m,0))){const p=d.createSelection(l);d.modifySelection(p,{direction:"backward"});const k=p.getLastPosition(),b=d.createRange(k,h);d.hasContent(b,{ignoreMarkers:!0})||(h=k)}}return[Nt.fromPosition(u,"toPrevious"),Nt.fromPosition(h,"toNext")]})(n);a.isTouching(c)||r.remove(r.createRange(a,c)),e.leaveUnmerged||((function(l,d,u){const h=l.model;if(!rd(l.model.schema,d,u))return;const[m,p]=(function(k,b){const C=k.getAncestors(),I=b.getAncestors();let M=0;for(;C[M]&&C[M]==I[M];)M++;return[C[M],I[M]]})(d,u);!m||!p||(!h.hasContent(m,{ignoreMarkers:!0})&&h.hasContent(p,{ignoreMarkers:!0})?Eg(l,d,u,m.parent):xg(l,d,u,m.parent))})(r,a,c),i.removeDisallowedAttributes(a.parent.getChildren(),r)),Ig(r,t,a),!e.doNotAutoparagraph&&(function(l,d){const u=l.checkChild(d,"$text"),h=l.checkChild(d,"paragraph");return!u&&h})(i,a)&&Dg(r,a,t,s),a.detach(),c.detach()}))}function xg(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)}rd(o.model.schema,t,e)&&xg(o,t,e,n)}}function Eg(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),rd(o.model.schema,t,e)&&Eg(o,t,e,n)}}function rd(o,t,e){const n=t.parent,i=e.parent;
vendor: 6,013 bytes, line 8802
8802return n!=i&&!o.isLimit(n)&&!o.isLimit(i)&&(function(r,s,a){const c=new T(r,s);for(const l of c.getWalker())if(a.isLimit(l.item))return!1;return!0})(t,e,o)}function Dg(o,t,e,n={}){const i=o.createElement("paragraph");o.model.schema.setAllowedAttributes(i,n,o),o.insert(i,t),Ig(o,e,o.createPositionAt(i,0))}function Ig(o,t,e){t instanceof be?o.setSelection(e):t.setTo(e)}function Sg(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 qC{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 E("insertcontent-invalid-insertion-position",this);this.position=n,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?T._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new T(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(t){this._checkAndSplitToAllowedPosition(t)?(this._appendToFragment(t),this._firstNode||(this._firstNode=t),this._lastNode=t):this.schema.isObject(t)||this._handleDisallowedNode(t)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const t=Nt.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=t.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=t.toPosition(),t.detach()}_handleDisallowedNode(t){t.is("element")&&this.handleNodes(t.getChildren())}_appendToFragment(t){if(!this.schema.checkChild(this.position,t))throw new E("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=Nt.fromPosition(t,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(t)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Nt.fromPosition(t,"toNext"))}_mergeOnLeft(){const t=this._firstNode;if(!(t instanceof ct)||!this._canMergeLeft(t))return;const e=Nt._createBefore(t);e.stickiness="toNext";const n=Nt.fromPosition(this.position,"toNext");this._affectedStart.isEqual(e)&&(this._affectedStart.detach(),this._affectedStart=Nt._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=Nt._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 ct)||!this._canMergeRight(t))return;const e=Nt._createAfter(t);if(e.stickiness="toNext",!this.position.isEqual(e))throw new E("insertcontent-invalid-insertion-position",this);this.position=z._createAt(e.nodeBefore,"end");const n=Nt.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(e)&&(this._affectedEnd.detach(),this._affectedEnd=Nt._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=Nt._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 ct&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(e,t)}_canMergeRight(t){const e=t.nextSibling;return e instanceof ct&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(t,e)}_insertAutoParagraph(){this._insertPartialFragment();const t=this.writer.createElement("paragraph");this.writer.insert(t,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=t,this.position=this.writer.createPositionAt(t,0)}_checkAndSplitToAllowedPosition(t){const e=this._getAllowedIn(this.position.parent,t);if(!e)return!1;for(e!=this.position.parent&&this._insertPartialFragment();e!=this.position.parent;)if(this.position.isAtStart){const n=this.position.parent;this.position=this.writer.createPositionBefore(n),n.isEmpty&&n.parent===e&&this.writer.remove(n)}
8802else 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 this.schema.checkChild(this.position.parent,t)||this._insertAutoParagraph(),!0}_getAllowedIn(t,e){return this.schema.checkChild(t,e)||this.schema.checkChild(t,"paragraph")&&this.schema.checkChild("paragraph",e)?t:this.schema.isLimit(t)?null:this._getAllowedIn(t.parent,e)}}function GC(o,t,e,n={}){if(!o.schema.isObject(t))throw new E("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=Mt(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,m,p,k){const b=h.model;if(p=="on")return void h.setSelection(m,"on");if(p!="after")throw new E("insertobject-invalid-place-parameter-value",b);let C=m.nextSibling;if(b.schema.isInline(m))return void h.setSelection(m,"after");!(C&&b.schema.checkChild(C,"$text"))&&b.schema.checkChild(m.parent,"paragraph")&&(C=h.createElement("paragraph"),b.schema.setAllowedAttributes(C,k,h),b.insertContent(C,h.createPositionAfter(m))),C&&h.setSelection(C,0)})(c,t,n.setSelection,a),u}))}function WC(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 m=d.position.offset-h.startOffset;if(YC(h,m,u))h=u?d.position.nodeAfter:d.position.nodeBefore;else{if($C(h.data,m,u))break;d.next()}}return d.position})(n,e):(function(d,u,h){const m=d.position.textNode;if(m){const p=m.data;let k=d.position.offset-m.startOffset;for(;yl(p,k)||u=="character"&&xl(p,k)||h&&Oh(p,k);)d.next(),k=d.position.offset-m.startOffset}return d.position})(n,i,s);if(a==(e?"elementStart":"elementEnd")){if(r.isSelectable(c))return z._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 KC(o,t){const e=o.root,n=z._createAt(e,t?"end":0);return t?new T(o,n):new T(n,o)}function $C(o,t,e){const n=t+(e?0:-1);return' ,.?!:;"-()'.includes(o.charAt(n))}function YC(o,t,e){return t===(e?o.offsetSize:0)}class QC extends dt(){constructor(){super(),this.markers=new FC,this.document=new RC(this),this.schema=new hC,this._pendingChanges=[],this._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((t=>this.decorate(t))),this.on("applyOperation",((t,e)=>{e[0]._validate()}),{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((()=>!0),"$marker"),lC(this),this.document.registerPostFixer(Zm),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 qC(i,a,c.anchor),d=[];let u;if(r.is("documentFragment")){if(r.markers.size){const p=[];for(const[k,b]of r.markers){const{start:C,end:I}=b,M=C.isEqual(I);p.push({position:C,name:k,isCollapsed:M},{position:I,name:k,isCollapsed:M})}p.sort((({position:k},{position:b})=>k.isBefore(b)?1:-1));for(const{position:k,name:b,isCollapsed:C}of p){let I=null,M=null;const N=k.parent===r&&k.isAtStart,G=k.parent===r&&k.isAtEnd;N||G?C&&(M=N?"start":"end"):(I=a.createElement("$marker"),a.insert(I,k)),d.push({name:b,element:I,collapsed:M})}}u=r.getChildren()}else u=[r];l.handleNodes(u);let h=l.getSelectionRange();if(r.is("documentFragment")&&d.length){const p=h?Ut.fromRange(h):null,k={};for(let b=d.length-1;b>=0;b--){const{name:C,element:I,collapsed:M}=d[b],N=!k[C];if(N&&(k[C]=[]),I){const G=a.createPositionAt(I,"before");k[C].push(G),a.remove(I)}else{const G=l.getAffectedRange();if(!G){M&&k[C].push(l.position);continue}M?k[C].push(G[M]):k[C].push(N?G.start:G.end)}}for(const[b,[C,I]]of Object.entries(k))C&&I&&C.root===I.root&&C.root.document&&!a.model.markers.has(b)&&a.addMarker(b,{usingOperation:!0,affectsData:!0,range:new T(C,I)});p&&(h=p.toRange(),p.detach())}h&&(c instanceof be?a.setSelection(h):c.setTo(h));const m=l.getAffectedRange()||i.createRange(c.anchor);return l.destroy(),m}))})(this,e,n)})),this.on("insertObject",((t,[e,n,i])=>{t.return=GC(this,e,n,i)})),this.on("canEditAt",(t=>{const e=!this.document.isReadOnly;t.return=e,e||t.stop()}))}
8802change(t){try{return this._pendingChanges.length===0?(this._pendingChanges.push({batch:new Un,callback:t}),this._runPendingChanges()[0]):t(this._currentWriter)}catch(e){E.rethrowUnexpectedError(e,this)}}enqueueChange(t,e){try{t?typeof t=="function"?(e=t,t=new Un):t instanceof Un||(t=new Un(t)):t=new Un,this._pendingChanges.push({batch:t,callback:e}),this._pendingChanges.length==1&&this._runPendingChanges()}catch(n){E.rethrowUnexpectedError(n,this)}}applyOperation(t){t._execute()}insertContent(t,e,n,...i){const r=sd(e,n);return this.fire("insertContent",[t,r,n,...i])}insertObject(t,e,n,i,...r){const s=sd(e,n);return this.fire("insertObject",[t,s,i,i,...r])}deleteContent(t,e){UC(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 Pe({boundaries:KC(d,a),singleCharacters:!0,direction:a?"forward":"backward"}),h={walker:u,schema:s,isForward:a,unit:c,treatEmojiAsSingleUnit:l};let m;for(;m=u.next();){if(m.done)return;const p=WC(h,m.value);if(p)return void(i instanceof be?n.change((k=>{k.setSelectionFocus(p)})):i.setFocus(p))}})(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],m=i.createRange(i.createPositionAt(r,0),h.start);Sg(i.createRange(h.end,i.createPositionAt(r,"end")),i),Sg(m,i)}return r}))})(this,t)}hasContent(t,e={}){const n=t instanceof T?t:T._createIn(t);if(n.isCollapsed)return!1;const{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=sd(t);return this.fire("canEditAt",[e])}createPositionFromPath(t,e,n){return new z(t,e,n)}createPositionAt(t,e){return z._createAt(t,e)}createPositionAfter(t){return z._createAfter(t)}createPositionBefore(t){return z._createBefore(t)}createRange(t,e){return new T(t,e)}createRangeIn(t){return T._createIn(t)}createRangeOn(t){return T._createOn(t)}createSelection(...t){return new Jt(...t)}createBatch(t){return new Un(t)}createOperationFromJSON(t){return SC.fromJSON(t,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const t=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;
vendor: 16,562 bytes, line 8802
8802){const e=this._pendingChanges[0].batch;this._currentWriter=new VC(this,e);const n=this._pendingChanges[0].callback(this._currentWriter);t.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return t}}function sd(o,t){if(o)return o instanceof Jt||o instanceof be?o:o instanceof fn?t||t===0?new Jt(o,t):o.is("rootElement")?new Jt(o,"in"):new Jt(o,"on"):new Jt(o)}class ZC extends Ke{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(t){this.fire(t.type,t)}}class ad extends Ke{constructor(){super(...arguments),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(t){this.fire(t.type,t)}}class Qe{constructor(t){this.document=t}createDocumentFragment(t){return new gn(this.document,t)}createElement(t,e,n){return new Qt(this.document,t,e,n)}createText(t){return new ut(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 Qt(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){Yt(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 q._createAt(t,e)}createPositionAfter(t){return q._createAfter(t)}createPositionBefore(t){return q._createBefore(t)}createRange(t,e){return new Z(t,e)}createRangeOn(t){return Z._createOn(t)}createRangeIn(t){return Z._createIn(t)}createSelection(...t){return new pe(...t)}}class Mg{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 cd(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)&&JC(r)&&!t.has(r))if(n.add(r),Symbol.iterator in r)try{for(const s of r)e.push(s)}catch(s){}else for(const s in r)s!=="defaultValue"&&e.push(r[s])}return n}function JC(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 Bg(o,t,e=new Set){if(o===t&&typeof(n=o)=="object"&&n!==null)return!0;var n;const i=cd(o,e),r=cd(t,e);for(const s of i)if(r.has(s))return!0;return!1}const ys=function(o,t,e){var n=!0,i=!0;if(typeof o!="function")throw new TypeError("Expected a function");return kt(e)&&(n="leading"in e?!!e.leading:n,i="trailing"in e?!!e.trailing:i),pn(o,t,{leading:n,maxWait:t,trailing:i})};class Tg extends Mg{constructor(t,e={}){super(e),this._editor=null,this._lifecyclePromise=null,this._initUsingData=!0,this._editables={},this._throttledSave=ys(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[s,a]of Object.entries(this._data.roots))a.isLoaded?(t[s]="",i[s]=n[s]||{}):e.push(s);const r={...this._config,extraPlugins:this._config.extraPlugins||[],lazyRoots:e,rootsAttributes:i,_watchdogInitialData:this._data};return delete r.initialData,r.extraPlugins.push(XC),this._initUsingData?this.create(t,r,r.context):Ue(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 Bg(this._editor,t.context,this._excludedProps)}_cloneEditorConfiguration(t){return fl(t,((e,n)=>Ue(e)||n==="context"?e:void 0))}}class XC{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;Object.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,{rangeJSON:{start:s,end:a},...c}=i,l=r.getRoot(s.root),d=t.createPositionFromPath(l,s.path,s.stickiness),u=t.createPositionFromPath(l,a.path,a.stickiness),h=t.createRange(d,u);t.addMarker(n,{range:h,...c})}))}_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({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 Pi=Symbol("MainQueueId");class t0 extends Mg{constructor(t,e={}){super(e),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new e0,this._watchdogConfig=e,this._creator=n=>t.create(n),this._destructor=n=>n.destroy(),this._actionQueues.onEmpty((()=>{this.state==="initializing"&&(this.state="ready",this._fire("stateChange"))}))}setCreator(t){this._creator=t}setDestructor(t){this._destructor=t}get context(){return this._context}create(t={}){return this._actionQueues.enqueue(Pi,(()=>(this._contextConfig=t,this._create())))}getItem(t){return this._getWatchdog(t)._item}getItemState(t){return this._getWatchdog(t).state}add(t){const e=Ng(t);return Promise.all(e.map((n=>this._actionQueues.enqueue(n.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 `ContextWatchdog#create()` method first.");let i;if(this._watchdogs.has(n.id))throw new Error(`Item with the given id is already added: '${n.id}'.`);if(n.type==="editor")return i=new Tg(null,this._watchdogConfig),i.setCreator(n.creator),i._setExcludedProperties(this._contextProps),n.destructor&&i.setDestructor(n.destructor),this._watchdogs.set(n.id,i),i.on("error",((r,{error:s,causesRestart:a})=>{this._fire("itemError",{itemId:n.id,error:s}),a&&this._actionQueues.enqueue(n.id,(()=>new Promise((c=>{const l=()=>{i.off("restart",l),this._fire("itemRestart",{itemId:n.id}),c()};i.on("restart",l)}))))})),i.create(n.sourceElementOrData,n.config,this._context);throw new Error(`Not supported item type: '${n.type}'.`)})))))}remove(t){const e=Ng(t);return Promise.all(e.map((n=>this._actionQueues.enqueue(n,(()=>{const i=this._getWatchdog(n);return this._watchdogs.delete(n),i.destroy()})))))}destroy(){return this._actionQueues.enqueue(Pi,(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_restart(){return this._actionQueues.enqueue(Pi,(()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch((t=>{console.error("An error happened during destroying the context or items.",t)})).then((()=>this._create())).then((()=>this._fire("restart"))))))}_create(){return Promise.resolve().then((()=>(this._startErrorHandling(),this._creator(this._contextConfig)))).then((t=>(this._context=t,this._contextProps=cd(this._context),Promise.all(Array.from(this._watchdogs.values()).map((e=>(e._setExcludedProperties(this._contextProps),e.create(void 0,void 0,this._context))))))))}_destroy(){return Promise.resolve().then((()=>{this._stopErrorHandling();const t=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map((e=>e.destroy()))).then((()=>this._destructor(t)))}))}_getWatchdog(t){const e=this._watchdogs.get(t);if(!e)throw new Error(`Item with the given id was not registered: ${t}.`);return e}_isErrorComingFromThisItem(t){for(const e of this._watchdogs.values())if(e._isErrorComingFromThisItem(t))return!1;return Bg(this._context,t.context)}}class e0{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(t){this._onEmptyCallbacks.push(t)}enqueue(t,e){const n=t===Pi;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(Pi),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 Ng(o){return Array.isArray(o)?o:[o]}class n0{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 E("commandcollection-command-not-found",this,{commandName:t});return n.execute(...e)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const t of this.commands())t.destroy()}}class i0 extends Rt{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)}}const ld="contentEditing",Pg="common";class o0{constructor(t){this.keystrokeInfos=new Map,this._editor=t;const e=t.config.get("menuBar.isVisible"),n=t.locale.t;this.addKeystrokeInfoCategory({id:ld,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:Pg}
8802),i&&i.forEach((r=>{this.addKeystrokeInfoGroup({categoryId:t,...r})}))}addKeystrokeInfoGroup({categoryId:t=ld,id:e,label:n,keystrokes:i}){const r=this.keystrokeInfos.get(t);if(!r)throw new E("accessibility-unknown-keystroke-info-category",this._editor,{groupId:e,categoryId:t});r.groups.set(e,{id:e,label:n,keystrokes:i||[]})}addKeystrokeInfos({categoryId:t=ld,groupId:e=Pg,keystrokes:n}){if(!this.keystrokeInfos.has(t))throw new E("accessibility-unknown-keystroke-info-category",this._editor,{categoryId:t,keystrokes:n});const i=this.keystrokeInfos.get(t);if(!i.groups.has(e))throw new E("accessibility-unknown-keystroke-info-group",this._editor,{groupId:e,categoryId:t,keystrokes:n});i.groups.get(e).keystrokes.push(...n)}}const Nr=class Nr extends dt(){constructor(t={}){if(super(),"sanitizeHtml"in t)throw new E("editor-config-sanitizehtml-not-supported");const e=this.constructor,{translations:n,...i}=e.defaultConfig||{},{translations:r=n,...s}=t,a=t.language||i.language;this._context=t.context||new Zh({language:a,translations:r}),this._context._addEditor(this,!t.context);const c=Array.from(e.builtinPlugins||[]);this.config=new sh(s,i),this.config.define("plugins",c),this.config.define(this._context._getEditorConfig()),this.plugins=new Qh(this,c,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new n0,this.set("state","initializing"),this.once("ready",(()=>this.state="ready"),{priority:"high"}),this.once("destroy",(()=>this.state="destroyed"),{priority:"high"}),this.model=new QC,this.on("change:isReadOnly",(()=>{this.model.document.isReadOnly=this.isReadOnly}));const l=new t_;this.data=new DC(this.model,l),this.editing=new dC(this.model,l),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new IC([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 i0(this),this.keystrokes.listenTo(this.editing.view.document),this.accessibility=new o0(this)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(t){throw new E("editor-isreadonly-has-no-setter")}enableReadOnlyMode(t){if(typeof t!="string"&&typeof t!="symbol")throw new E("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 E("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){E.rethrowUnexpectedError(n,this)}}focus(){this.editing.view.focus()}static create(...t){throw new Error("This is an abstract method.")}};Nr.Context=Zh,Nr.EditorWatchdog=Tg,Nr.ContextWatchdog=t0;let dd=Nr;function ud(o){return class extends o{updateSourceElement(t){if(!this.sourceElement)throw new E("editor-missing-sourceelement",this);const e=this.config.get("updateSourceElementOnDestroy"),n=this.sourceElement instanceof HTMLTextAreaElement;if(!e&&!n)return void fh(this.sourceElement,"");const i=typeof t=="string"?t:this.data.get();fh(this.sourceElement,i)}}}ud.updateSourceElement=ud(Object).prototype.updateSourceElement;class Lg extends os{static get pluginName(){return"PendingActions"}static get isOfficialPlugin(){return!0}init(){this.set("hasAny",!1),this._actions=new he({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(t){if(typeof t!="string")throw new E("pendingactions-add-invalid-message",this);const e=new(dt());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 K={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.
88026 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',cancel:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.591 10.177 4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>',caption:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 16h9a1 1 0 0 1 0 2H2a1 1 0 0 1 0-2z"/><path d="M17 1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14zm0 1.5H3a.5.5 0 0 0-.492.41L2.5 3v9a.5.5 0 0 0 .41.492L3 12.5h14a.5.5 0 0 0 .492-.41L17.5 12V3a.5.5 0 0 0-.41-.492L17 2.5z" fill-opacity=".6"/></svg>',check:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',image:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.66 9.118a.693.693 0 0 1 .956.032l3.65 3.411 2.422-2.238a.695.695 0 0 1 .945 0L17.5 13.6V2.5h-15v11.1l4.16-4.482ZM17.8 1c.652 0 1.2.47 1.2 1.1v14.362c0 .64-.532 1.038-1.184 1.038H2.184C1.532 17.5 1 17.103 1 16.462V2.1C1 1.47 1.537 1 2.2 1h15.6Zm-5.655 6a2.128 2.128 0 0 1 .157-2.364A2.133 2.133 0 1 1 12.145 7Z"/></svg>',imageUpload:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1C.538 1 0 1.47 0 2.1v14.363c0 .64.534 1.037 1.186 1.037h9.494a2.97 2.97 0 0 1-.414-.287 2.998 2.998 0 0 1-1.055-2.03 3.003 3.003 0 0 1 .693-2.185l.383-.455-.02.018-3.65-3.41a.695.695 0 0 0-.957-.034L1.5 13.6V2.5h15v5.535a2.97 2.97 0 0 1 1.412.932l.088.105V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.713 2.803a2.146 2.146 0 0 0-2.049 1.992 2.14 2.14 0 0 0 1.28 2.096 2.13 2.13 0 0 0 2.644-3.11 2.134 2.134 0 0 0-1.875-.978Z"/><path d="M15.522 19.1a.79.79 0 0 0 .79-.79v-5.373l2.059 2.455a.79.79 0 1 0 1.211-1.015l-3.352-3.995a.79.79 0 0 0-.995-.179.784.784 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017l1.936-2.306v5.185c0 .436.353.79.79.79Z"/><path d="M15.522 19.1a.79.79 0 0 0 .79-.79v-5.373l2.059 2.455a.79.79 0 1 0 1.211-1.015l-3.352-3.995a.79.79 0 0 0-.995-.179.784.784 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017l1.936-2.306v5.185c0 .436.353.79.79.79Z"/></svg>',imageAssetManager:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1c-.662 0-1.2.47-1.2 1.1v14.248c0 .64.533 1.152 1.185 1.152h6.623v-7.236L6.617 9.15a.694.694 0 0 0-.957-.033L1.602 13.55V2.553l14.798.003V9.7H18V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.723 2.805a2.094 2.094 0 0 0-1.621.832 2.127 2.127 0 0 0 1.136 3.357 2.13 2.13 0 0 0 2.611-1.506 2.133 2.133 0 0 0-.76-2.244 2.13 2.13 0 0 0-1.366-.44Z"/><path clip-rule="evenodd" d="M19.898 12.369v6.187a.844.844 0 0 1-.844.844h-8.719a.844.844 0 0 1-.843-.844v-7.312a.844.844 0 0 1 .843-.844h2.531a.843.843 0 0 1 .597.248l.838.852h4.75c.223 0 .441.114.6.272a.844.844 0 0 1 .247.597Zm-1.52.654-4.377.02-1.1-1.143H11v6h7.4l-.023-4.877Z"/></svg>',textAlternative:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.035 1C2.446 1 2 1.54 2 2.098V10.5h1.5v-8h13v8H18V2.098C18 1.539 17.48 1 16.9 1H3.035Zm10.453 2.61a1.885 1.885 0 0 0-1.442.736 1.89 1.89 0 0 0 1.011 2.976 1.903 1.903 0 0 0 2.253-1.114 1.887 1.887 0 0 0-1.822-2.598ZM7.463 8.163a.611.611 0 0 0-.432.154L5.071 10.5h5.119L7.88 8.348a.628.628 0 0 0-.417-.185Zm6.236 1.059a.62.62 0 0 0-.42.164L12.07 10.5h2.969l-.92-1.113a.618.618 0 0 0-.42-.165ZM.91 11.5a.91.91 0 0 0-.91.912v6.877c0 .505.405.91.91.91h18.178a.91.91 0 0 0 .912-.91v-6.877a.908.908 0 0 0-.912-.912H.91ZM3.668 13h1.947l2.135 5.7H5.898l-.28-.946H3.601l-.278.945H1.516L3.668 13Zm4.947 0h1.801v4.3h2.7v1.4h-4.5V13h-.001Zm4.5 0h5.4v1.4h-1.798v4.3h-1.701v-4.3h-1.9V13h-.001Zm-8.517 1.457-.614 2.059h1.262l-.648-2.059Z"/></svg>',loupe:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.68 13.74h-.001l4.209 4.208a1 1 0 1 0 1.414-1.414l-4.267-4.268a6 6 0 1 0-1.355 1.474ZM13 9a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"/></svg>',previousArrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/>
8802</svg>',nextArrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>',importExport:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 4.5 14 0H3v12.673l.868-1.041c.185-.222.4-.402.632-.54V1.5h8v5h5v7.626a2.24 2.24 0 0 1 1.5.822V4.5ZM14 5V2l3.3 3H14Zm-3.692 12.5c.062.105.133.206.213.303L11.52 19H8v-.876a2.243 2.243 0 0 0 1.82-.624h.488Zm7.518-.657a.75.75 0 0 0-1.152-.96L15.5 17.29V12H14v5.29l-1.174-1.408a.75.75 0 0 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Zm-15.056-.38a.75.75 0 0 1-.096-1.056l2.346-2.815a.95.95 0 0 1 1.46 0l2.346 2.815a.75.75 0 1 1-1.152.96L6.5 14.96V20H5v-5.04l-1.174 1.408a.75.75 0 0 1-1.056.096Z"/></svg>',paragraph:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.5 5.5H7v5h3.5a2.5 2.5 0 1 0 0-5zM5 3h6.5v.025a5 5 0 0 1 0 9.95V13H7v4a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/></svg>',plus:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2a1 1 0 0 0-1 1v6H3a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6V3a1 1 0 0 0-1-1Z"/></svg>',text:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555Zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13Z"/><path d="m12.09 17-.534-1.292.848-1.971.545 1.319L12.113 17h-.023Zm1.142-5.187.545 1.319L15.5 9.13l1.858 4.316h-3.45l.398.965h3.467L18.887 17H20l-3.873-9h-1.254l-1.641 3.813Z"/></svg>',alignLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',objectLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zm0-3H18v1.5h-4.5zm0-3H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M15.003 7v5.5a1 1 0 0 1-1 1H5.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H6.5V12h6.997V7.5z"/></svg>',objectRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2zm0-9h5v1.5H2zm0 3h5v1.5H2zm0 3h5v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectFullWidth:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18 7v5.5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1zm-1.505.5H3.504V12h12.991V7.5z"/></svg>',objectInline:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',pencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.3 17.37-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506 13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5 9.375 17H19v1.5H8z"/></svg>',pilcrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.999 2H15a1 1 0 0 1 0 2h-1.004v13a1 1 0 1 1-2 0V4H8.999v13a1 1 0 1 1-2 0v-7A4 4 0 0 1 3 6a4 4 0 0 1 3.999-4z"/></svg>',quote:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',threeVerticalDots:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>',dragIndicator:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 3.25a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 3.25a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M5 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M5 16.75a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 16.75a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/></svg>',redo:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.7
88025.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>',undo:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',bulletedList:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>',numberedList:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>',browseFiles:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',indent:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95 5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',outdent:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>',table:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 5.5v3h4v-3H3Zm0 4v3h4v-3H3Zm0 4v3h4v-3H3Zm5 3h4v-3H8v3Zm5 0h4v-3h-4v3Zm4-4v-3h-4v3h4Zm0-4v-3h-4v3h4Zm1.5 8A1.5 1.5 0 0 1 17 18H3a1.5 1.5 0 0 1-1.5-1.5V3c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13.5Zm-6.5-4v-3H8v3h4Zm0-4v-3H8v3h4Z"/></svg>'};var xs=P(7621),Li={attributes:{"data-cke":!0}};Li.setAttributes=H(),Li.insert=V().bind(null,"head"),Li.domAPI=j(),Li.insertStyleElement=U(),F()(xs.A,Li),xs.A&&xs.A.locals&&xs.A.locals;const jc=class jc extends ${constructor(){super();const t=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.set("isColorInherited",!0),this.set("isVisible",!0),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon",t.if("isVisible","ck-hidden",(e=>!e)),"ck-reset_all-excluded",t.if("isColorInherited","ck-icon_inherit-color")],viewBox:t.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(()=>{this._updateXMLContent(),this._colorFillPaths()})),this.on("change:fillColor",(()=>{this._colorFillPaths()}))}_updateXMLContent(){if(this.content){const t=new DOMParser().parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),e=t.getAttribute("viewBox");e&&(this.viewBox=e);for(const{name:n,value:i}of Array.from(t.attributes))jc.presentationalAttributeNames.includes(n)&&this.element.setAttribute(n,i);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;t.childNodes.length>0;)this.element.appendChild(t.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((t=>{t.style.fill=this.fillColor}))}};jc.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
8802-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"];let ae=jc;class Og extends ${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 Es=P(9715),Oi={attributes:{"data-cke":!0}};Oi.setAttributes=H(),Oi.insert=V().bind(null,"head"),Oi.domAPI=j(),Oi.insertStyleElement=U(),F()(Es.A,Oi),Es.A&&Es.A.locals&&Es.A.locals;class it extends ${constructor(t,e=new Og){super(t),this._focusDelayed=null;const n=this.bindTemplate,i=ne();this.set("_ariaPressed",!1),this.set("_ariaChecked",!1),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${i}`),this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("role",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._setupLabelView(e),this.iconView=new ae,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-pressed":n.to("_ariaPressed"),"aria-label":n.to("ariaLabel"),"aria-labelledby":n.to("ariaLabelledBy"),"aria-disabled":n.if("isEnabled",!0,(s=>!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()}))}};this.bind("_ariaPressed").to(this,"isOn",this,"isToggleable",this,"role",((s,a,c)=>!(!a||zg(c))&&String(!!s))),this.bind("_ariaChecked").to(this,"isOn",this,"isToggleable",this,"role",((s,a,c)=>!(!a||!zg(c))&&String(!!s))),v.isSafari&&(this._focusDelayed||(this._focusDelayed=vl((()=>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 $;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(e=>Jr(e)))}]}),t}_getTooltipString(t,e,n){return t?typeof t=="string"?t:(n&&(n=Jr(n)),t instanceof Function?t(e,n):`${e}${n?` (${n})`:""}`):""}}function zg(o){switch(o){case"radio":case"checkbox":case"option":case"switch":case"menuitemcheckbox":case"menuitemradio":return!0;default:return!1}}var Ds=P(7913),zi={attributes:{"data-cke":!0}};zi.setAttributes=H(),zi.insert=V().bind(null,"head"),zi.domAPI=j(),zi.insertStyleElement=U(),F()(Ds.A,zi),Ds.A&&Ds.A.locals&&Ds.A.locals;class r0 extends ${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 ae,this.iconView.content=e.icon,this.children.add(this.iconView));const i=new $(t);i.setTemplate({tag:"h2",attributes:{class:["ck","ck-form__header__label"],role:"presentation"},children:[{text:n.to("label")}]}),this.children.add(i)}}class we extends at(){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()}),t.keystrokeHandlerOptions)}this.on("forwardCycle",(()=>this.focusFirst()),{priority:"low"}),this.on("backwardCycle",(()=>this.focusLast()),{priority:"low"})}get first(){return this.focusables.find(hd)||null}get last(){return this.focusables.filter(hd).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)}chain(t){const e=()=>this.current===null?null:this.focusables.get(this.current);this.listenTo(t,"forwardCycle",(n=>{const i=e();this.focusNext(),i!==e()&&n.stop()}),{priority:"low"}),this.listenTo(t,"backwardCycle",(n=>{const i=e();this.focusPrevious(),i!==e()&&n.stop()}),{priority:"low"})}unchain(t){this.stopListening(t)}_focus(t,e){t&&this.focusTracker.focusedElement!==t.element&&t.focus(e)}_getDomFocusableItem(t){const e=this.focusables.length;if(!e)return null;const n=this.current;if(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(hd(s)){i=s;break}r=(r+e+t)%e}while(r!==n);return i}}function hd(o){return Ri(o)&&Ne(o.element)}function Ri(o){return!(!("focus"in o)||typeof o.focus!="function")}function s0(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(A.document,"mouseup",this._onDragEndBound),this.listenTo(A.document,"touchend",this._onDragEndBound),this.listenTo(A.document,"mousemove",this._onDragBound),this.listenTo(A.document,"touchmove",this._onDragBound)}_detachDragListeners(){this.stopListening(A.document,"mouseup",this._onDragEndBound),this.stopListening(A.document,"touchend",this._onDragEndBound),this.stopListening(A.document,"mousemove",this._onDragBound),this.stopListening(A.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))}}}var Is=P(9822),Fi={attributes:{"data-cke":!0}};Fi.setAttributes=H(),Fi.insert=V().bind(null,"head"),Fi.domAPI=j(),Fi.insertStyleElement=U(),F()(Is.A,Fi),Is.A&&Is.A.locals&&Is.A.locals;class a0 extends ${constructor(t){super(t),this.children=this.createCollection(),this.keystrokes=new Rt,this._focusTracker=new Et,this._focusables=new me,this.focusCycler=new we({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 it(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()}
vendor: 11,122 bytes, line 8802
8802_updateFocusCyclableItems(){Array.from(this.children).forEach((t=>{this._focusables.add(t),this._focusTracker.add(t.element)}))}}class c0 extends ${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 Ss=P(9819),ji={attributes:{"data-cke":!0}};ji.setAttributes=H(),ji.insert=V().bind(null,"head"),ji.domAPI=j(),ji.insertStyleElement=U(),F()(Ss.A,ji),Ss.A&&Ss.A.locals&&Ss.A.locals;const Ms="screen-center",Rg="editor-center",l0="editor-top-side",d0="editor-top-center",u0="editor-bottom-center",h0="editor-above-center",m0="editor-below-center",Fg=Pn("px"),Vc=class Vc extends s0($){constructor(t,{getCurrentDomRoot:e,getViewportOffset:n}){super(t),this.wasMoved=!1;const i=this.bindTemplate,r=t.t;this.set("className",""),this.set("ariaLabel",r("Editor dialog")),this.set("isModal",!1),this.set("position",Ms),this.set("_isVisible",!1),this.set("_isTransparent",!1),this.set("_top",0),this.set("_left",0),this._getCurrentDomRoot=e,this._getViewportOffset=n,this.decorate("moveTo"),this.parts=this.createCollection(),this.keystrokes=new Rt,this.focusTracker=new Et,this._focusables=new me,this._focusCycler=new we({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog-overlay",i.if("isModal","ck-dialog-overlay__transparent",(s=>!s)),i.if("_isVisible","ck-hidden",(s=>!s))],tabindex:"-1"},children:[{tag:"div",attributes:{tabindex:"-1",class:["ck","ck-dialog",i.if("isModal","ck-dialog_modal"),i.to("className")],role:"dialog","aria-label":i.to("ariaLabel"),style:{top:i.to("_top",(s=>Fg(s))),left:i.to("_left",(s=>Fg(s))),visibility:i.if("_isTransparent","hidden")}},children:this.parts}]})}render(){super.render(),this.keystrokes.set("Esc",((t,e)=>{this.fire("close",{source:"escKeyPress"}),e()})),this.on("drag",((t,{deltaX:e,deltaY:n})=>{this.wasMoved=!0,this.moveBy(e,n)})),this.listenTo(A.window,"resize",(()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()})),this.listenTo(A.document,"scroll",(()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()})),this.on("change:_isVisible",((t,e,n)=>{n&&(this._isTransparent=!0,setTimeout((()=>{this.updatePosition(),this._isTransparent=!1,this.focus()}),10))})),this.keystrokes.listenTo(this.element)}get dragHandleElement(){return this.headerView&&!this.isModal?this.headerView.element:null}setupParts({icon:t,title:e,hasCloseButton:n=!0,content:i,actionButtons:r}){e&&(this.headerView=new r0(this.locale,{icon:t}),n&&(this.closeButtonView=this._createCloseButton(),this.headerView.children.add(this.closeButtonView)),this.headerView.label=e,this.ariaLabel=e,this.parts.add(this.headerView,0)),i&&(i instanceof $&&(i=[i]),this.contentView=new c0(this.locale),this.contentView.children.addMany(i),this.parts.add(this.contentView)),r&&(this.actionsView=new a0(this.locale),this.actionsView.setButtons(r),this.parts.add(this.actionsView)),this._updateFocusCyclableItems()}focus(){this._focusCycler.focusFirst()}moveTo(t,e){const n=this._getViewportRect(),i=this._getDialogRect();t+i.width>n.right&&(t=n.right-i.width),t<n.left&&(t=n.left),e<n.top&&(e=n.top),this._moveTo(t,e)}_moveTo(t,e){this._left=t,this._top=e}moveBy(t,e){this.moveTo(this._left+t,this._top+e)}_moveOffScreen(){this._moveTo(-9999,-9999)}updatePosition(){if(!this.element||!this.element.parentNode)return;const t=this._getViewportRect();let e,n=this.position;this._getCurrentDomRoot()?e=this._getVisibleDomRootRect(t):n=Ms;const i=Vc.defaultOffset,r=this._getDialogRect();switch(n){case l0:if(e){const s=this.locale.contentLanguageDirection==="ltr"?e.right-r.width-i:e.left+i;this.moveTo(s,e.top+i)}else this._moveOffScreen();break;case Rg:e?this.moveTo(Math.round(e.left+e.width/2-r.width/2),Math.round(e.top+e.height/2-r.height/2)):this._moveOffScreen();break;case Ms:this.moveTo(Math.round((t.width-r.width)/2),Math.round((t.height-r.height)/2));break;case d0:e?this.moveTo(Math.round(e.left+e.width/2-r.width/2),e.top+i):this._moveOffScreen();break;case u0:e?this.moveTo(Math.round(e.left+e.width/2-r.width/2),e.bottom-r.height-i):this._moveOffScreen();break;case h0:e?this.moveTo(Math.round(e.left+e.width/2-r.width/2),e.top-r.height-i):this._moveOffScreen();break;case m0:e?this.moveTo(Math.round(e.left+e.width/2-r.width/2),e.bottom+i):this._moveOffScreen()}}_getVisibleDomRootRect(t){let e=new X(this._getCurrentDomRoot()).getVisible();return e?(e=t.getIntersection(e),e||null):null}_getDialogRect(){return new X(this.element.firstElementChild)}_getViewportRect(){const t=new X(A.window);if(this.isModal)return t;const e={top:0,bottom:0,left:0,right:0,...this._getViewportOffset()};return t.top+=e.top,t.height-=e.top,t.bottom-=e.bottom,t.height-=e.bottom,t.left+=e.left,t.right-=e.right,t.width-=e.left+e.right,t}_updateFocusCyclableItems(){const t=[];if(this.contentView)for(const e of this.contentView.children)Ri(e)&&t.push(e);this.actionsView&&t.push(this.actionsView),this.closeButtonView&&t.push(this.closeButtonView),t.forEach((e=>{var n;this._focusables.add(e),this.focusTracker.add(e.element),Ri(n=e)&&"focusCycler"in n&&n.focusCycler instanceof we&&this._focusCycler.chain(e.focusCycler)}))}_createCloseButton(){const t=new it(this.locale),e=this.locale.t;return t.set({label:e("Close"),tooltip:!0,icon:K.cancel}),t.on("execute",(()=>this.fire("close",{source:"closeButton"}))),t}};Vc.defaultOffset=15;let Vi=Vc;class Me extends R{static get pluginName(){return"Dialog"}static get isOfficialPlugin(){return!0}constructor(t){super(t);const e=t.t;this._initShowHideListeners(),this._initFocusToggler(),this._initMultiRootIntegration(),this.set({id:null,isOpen:!1}),t.accessibility.addKeystrokeInfos({categoryId:"navigation",keystrokes:[{label:e("Move focus in and out of an active dialog window"),keystroke:"Ctrl+F6",mayRequireFn:!0}]})}destroy(){super.destroy(),this._unlockBodyScroll()}_initShowHideListeners(){this.on("show",((t,e)=>{this._show(e)})),this.on("show",((t,e)=>{e.onShow&&e.onShow(this)}),{priority:"low"}),this.on("hide",(()=>{Me._visibleDialogPlugin&&Me._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 Vi(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.keystrokes.listenTo(h.element),l||(l=c?Ms:Rg),c&&this._lockBodyScroll(),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,Me._visibleDialogPlugin=this}hide(){Me._visibleDialogPlugin&&Me._visibleDialogPlugin.fire(`hide:${Me._visibleDialogPlugin.id}`)}_hide(){if(!this.view)return;const t=this.editor,e=this.view;e.isModal&&this._unlockBodyScroll(),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,Me._visibleDialogPlugin=null}_lockBodyScroll(){document.documentElement.classList.add("ck-dialog-scroll-locked")}_unlockBodyScroll(){document.documentElement.classList.remove("ck-dialog-scroll-locked")}}var Bs=P(278),Hi={attributes:{"data-cke":!0}};Hi.setAttributes=H(),Hi.insert=V().bind(null,"head"),Hi.domAPI=j(),Hi.insertStyleElement=U(),F()(Bs.A,Hi),Bs.A&&Bs.A.locals&&Bs.A.locals;class bn extends it{constructor(t,e=new Og){super(t,e),this._checkIconHolderView=new g0,this.set({hasCheckSpace:!1,_hasCheck:this.isToggleable});const n=this.bindTemplate;this.extendTemplate({attributes:{class:["ck-list-item-button",n.if("isToggleable","ck-list-item-button_toggleable")]}}),this.bind("_hasCheck").to(this,"hasCheckSpace",this,"isToggleable",((i,r)=>i||r))}render(){super.render(),this._hasCheck&&this.children.add(this._checkIconHolderView,0),this._watchCheckIconHolderMount()}_watchCheckIconHolderMount(){this._checkIconHolderView.bind("isOn").to(this,"isOn",(t=>this.isToggleable&&t)),this.on("change:_hasCheck",((t,e,n)=>{const{children:i,_checkIconHolderView:r}=this;n?i.add(r,0):i.remove(r)}))}}class g0 extends ${constructor(){super(),this._checkIconView=this._createCheckIconView();const t=this.bindTemplate;this.children=this.createCollection(),this.set("isOn",!1),this.setTemplate({tag:"span",children:this.children,attributes:{class:["ck","ck-list-item-button__check-holder",t.to("isOn",(e=>e?"ck-on":"ck-off"))]}})}render(){super.render(),this.isOn&&this.children.add(this._checkIconView,0),this._watchCheckIconMount()}_watchCheckIconMount(){this.on("change:isOn",((t,e,n)=>{const{children:i,_checkIconView:r}=this;n&&!i.has(r)?i.add(r):!n&&i.has(r)&&i.remove(r)}))}_createCheckIconView(){const t=new ae;return t.content=K.check,t.extendTemplate({attributes:{class:"ck-list-item-button__check-icon"}}),t}}var Ts=P(977),Ui={attributes:{"data-cke":!0}};Ui.setAttributes=H(),Ui.insert=V().bind(null,"head"),Ui.domAPI=j(),Ui.insertStyleElement=U(),F()(Ts.A,Ui),Ts.A&&Ts.A.locals&&Ts.A.locals;class Pt extends bn{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 Ns=P(7801),qi={attributes:{"data-cke":!0}};qi.setAttributes=H(),qi.insert=V().bind(null,"head"),qi.domAPI=j(),qi.insertStyleElement=U(),F()(Ns.A,qi),Ns.A&&Ns.A.locals&&Ns.A.locals;class Ps extends ${constructor(t){super(t),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${ne()}`;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 p0 extends ${constructor(t,e){super(t);const n=t.t,i=new Ps;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:[oe(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())),i]})}focus(){this.element.focus()}_createCategories(t){return t.map((e=>{const n=[oe(document,"h3",{},e.label),...Array.from(e.groups.values()).map((i=>
8802this._createGroup(i))).flat()];return e.description&&n.splice(1,0,oe(document,"p",{},e.description)),oe(document,"section",{},n)}))}_createGroup(t){const e=t.keystrokes.sort(((i,r)=>i.label.localeCompare(r.label))).map((i=>this._createGroupRow(i))).flat(),n=[oe(document,"dl",{},e)];return t.label&&n.unshift(oe(document,"h4",{},t.label)),n}_createGroupRow(t){const e=this.locale.t,n=oe(document,"dt"),i=oe(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(f0).join(""));return n.innerHTML=t.label,i.innerHTML=s.join(", ")+(t.mayRequireFn&&v.isMac?` ${e("(may require <kbd>Fn</kbd>)")}`:""),[n,i]}}function f0(o){return Jr(o).split("+").map((t=>`<kbd>${t}</kbd>`)).join("+")}const jg='<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 Ls=P(8527),Gi={attributes:{"data-cke":!0}};Gi.setAttributes=H(),Gi.insert=V().bind(null,"head"),Gi.domAPI=j(),Gi.insertStyleElement=U(),F()(Ls.A,Gi),Ls.A&&Ls.A.locals&&Ls.A.locals;class k0 extends R{constructor(){super(...arguments),this.contentView=null}static get requires(){return[Me]}static get pluginName(){return"AccessibilityHelp"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t;t.ui.componentFactory.add("accessibilityHelp",(()=>{const n=this._createButton(it);return n.set({tooltip:!0,withText:!1,label:e("Accessibility help")}),n})),t.ui.componentFactory.add("menuBar:accessibilityHelp",(()=>{const n=this._createButton(Pt);return n.label=e("Accessibility"),n})),t.keystrokes.set("Alt+0",((n,i)=>{this._toggleDialog(),i()})),this._setupRootLabels()}_createButton(t){const e=this.editor,n=e.plugins.get("Dialog"),i=new t(e.locale);return i.set({keystroke:"Alt+0",icon:jg,isToggleable:!0}),i.on("execute",(()=>this._toggleDialog())),i.bind("isOn").to(n,"id",(r=>r==="accessibilityHelp")),i}_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.",[Jr("Alt+0")])].filter((c=>c)).join(". ");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"})}))}_toggleDialog(){const t=this.editor,e=t.plugins.get("Dialog"),n=t.locale.t;this.contentView||(this.contentView=new p0(t.locale,t.accessibility.keystrokeInfos)),e.id==="accessibilityHelp"?e.hide():e.show({id:"accessibilityHelp",className:"ck-accessibility-help-dialog",title:n("Accessibility help"),icon:jg,hasCloseButton:!0,content:this.contentView})}}class b0 extends me{constructor(t,e=[]){super(e),this.locale=t}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new ge({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection,role:"application"},children:this}).render();let t=document.querySelector(".ck-body-wrapper");t||(t=oe(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 Os=P(4391),Wi={attributes:{"data-cke":!0}};Wi.setAttributes=H(),Wi.insert=V().bind(null,"head"),Wi.domAPI=j(),Wi.insertStyleElement=U(),F()(Os.A,Wi),Os.A&&Os.A.locals&&Os.A.locals;class zs extends it{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 $;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),t}}class Vg extends Hg(it){}class w0 extends Hg(bn){}function Hg(o){return class extends o{constructor(...t){super(...t),this.buttonView=this,this._fileInputView=new A0(this.locale),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.on("execute",(()=>{this._fileInputView.open()})),this.extendTemplate({attributes:{class:"ck-file-dialog-button"}})}render(){super.render(),this.children.add(this._fileInputView)}}}class A0 extends ${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 Ki='<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 Rs=P(25),$i={attributes:{"data-cke":!0}};$i.setAttributes=H(),$i.insert=V().bind(null,"head"),$i.domAPI=j(),$i.insertStyleElement=U(),F()(Rs.A,$i),Rs.A&&Rs.A.locals&&Rs.A.locals;class _0 extends ${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
vendor: 20,645 bytes, line 8802
8802d}focus(){this.buttonView.focus()}_createButtonView(){const t=new it(this.locale),e=t.bindTemplate;return t.set({withText:!0,icon:Ki}),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 Fs=P(7317),Yi={attributes:{"data-cke":!0}};Yi.setAttributes=H(),Yi.insert=V().bind(null,"head"),Yi.domAPI=j(),Yi.insertStyleElement=U(),F()(Fs.A,Yi),Fs.A&&Fs.A.locals&&Fs.A.locals,P(6931),P(9047);var js=P(4962),Qi={attributes:{"data-cke":!0}};Qi.setAttributes=H(),Qi.insert=V().bind(null,"head"),Qi.domAPI=j(),Qi.insertStyleElement=U(),F()(js.A,Qi),js.A&&js.A.locals&&js.A.locals;class Vs extends ${constructor(t,e){super(t);const n=`ck-labeled-field-view-${ne()}`,i=`ck-labeled-field-view-status-${ne()}`;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 Ps(this.locale);return e.for=t,e.bind("text").to(this,"label"),e}_createStatusView(t){const e=new $(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 C0 extends ${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 Et,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 Hs=P(253),Zi={attributes:{"data-cke":!0}};Zi.setAttributes=H(),Zi.insert=V().bind(null,"head"),Zi.domAPI=j(),Zi.insertStyleElement=U(),F()(Hs.A,Zi),Hs.A&&Hs.A.locals&&Hs.A.locals;class v0 extends C0{constructor(t){super(t),this.set("inputMode","text");const e=this.bindTemplate;this.extendTemplate({attributes:{inputmode:e.to("inputMode")}})}}class y0 extends v0{constructor(t){super(t),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var Us=P(1671),Ji={attributes:{"data-cke":!0}};Ji.setAttributes=H(),Ji.insert=V().bind(null,"head"),Ji.domAPI=j(),Ji.insertStyleElement=U(),F()(Us.A,Ji),Us.A&&Us.A.locals&&Us.A.locals;class x0 extends ${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():nt("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 qs=P(8149),Xi={attributes:{"data-cke":!0}};Xi.setAttributes=H(),Xi.insert=V().bind(null,"head"),Xi.domAPI=j(),Xi.insertStyleElement=U(),F()(qs.A,Xi),qs.A&&qs.A.locals&&qs.A.locals;const ii=class ii extends ${constructor(t,e,n){super(t);const i=this.bindTemplate;this.buttonView=e,this.panelView=n,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.panelView.bind("isVisible").to(this,"isOpen"),this.keystrokes=new Rt,this.focusTracker=new Et,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",i.to("class"),i.if("isEnabled","ck-disabled",(r=>!r))],id:i.to("id"),"aria-describedby":i.to("ariaDescribedById")},children:[e,n]}),e.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":i.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",(()=>{this.isOpen=!this.isOpen})),this.on("change:isOpen",((e,n,i)=>{if(i)if(this.panelPosition==="auto"){const r=ii._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=r?r.name:this._panelPositions[0].name}else this.panelView.position=this.panelPosition})),this.keystrokes.listenTo(this.element);const t=(e,n)=>{this.isOpen&&(this.isOpen=!1,n())};this.keystrokes.set("arrowdown",((e,n)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,n())})),this.keystrokes.set("arrowright",((e,n)=>{this.isOpen&&n()})),this.keystrokes.set("arrowleft",t),this.keystrokes.set("esc",t)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:t,north:e,southEast:n,southWest:i,northEast:r,northWest:s,southMiddleEast:a,southMiddleWest:c,northMiddleEast:l,northMiddleWest:d}=ii.defaultPanelPositions;return this.locale.uiLanguageDirection!=="rtl"?[n,i,a,c,t,r,s,l,d,e]:[i,n,c,a,t,s,r,d,l,e]}};ii.defaultPanelPositions={south:(t,e)=>({top:t.bottom,left:t.left-(e.width-t.width)/2,name:"s"}),southEast:t=>({top:t.bottom,left:t.left,name:"se"}),southWest:(t,e)=>({top:t.bottom,left:t.left-e.width+t.width,name:"sw"}),southMiddleEast:(t,e)=>({top:t.bottom,left:t.left-(e.width-t.width)/4,name:"sme"}),southMiddleWest:(t,e)=>({top:t.bottom,left:t.left-3*(e.width-t.width)/4,name:"smw"}),north:(t,e)=>({top:t.top-e.height,left:t.left-(e.width-t.width)/2,name:"n"}),northEast:(t,e)=>({top:t.top-e.height,left:t.left,name:"ne"}),northWest:(t,e)=>({top:t.top-e.height,left:t.left-e.width+t.width,name:"nw"}),northMiddleEast:(t,e)=>({top:t.top-e.height,left:t.left-(e.width-t.width)/4,name:"nme"}),northMiddleWest:(t,e)=>({top:t.top-e.height,left:t.left-3*(e.width-t.width)/4,name:"nmw"})},ii._getOptimalPosition=Zr;let md=ii;class E0 extends it{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 ae;return t.content=Ki,t.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),t}}var Gs=P(4767),to={attributes:{"data-cke":!0}};to.setAttributes=H(),to.insert=V().bind(null,"head"),to.domAPI=j(),to.insertStyleElement=U(),F()(Gs.A,to),Gs.A&&Gs.A.locals&&Gs.A.locals;var Ws=P(9554),eo={attributes:{"data-cke":!0}};eo.setAttributes=H(),eo.insert=V().bind(null,"head"),eo.domAPI=j(),eo.insertStyleElement=U(),F()(Ws.A,eo),Ws.A&&Ws.A.locals&&Ws.A.locals;class D0 extends bn{constructor(t){super(t);const e=this.bindTemplate;this.set({withText:!0,role:"menuitem"}),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{class:["ck-dropdown-menu-list__nested-menu__button"],"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",(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 ae;return t.content=Ki,t.extendTemplate({attributes:{class:"ck-dropdown-menu-list__nested-menu__button__arrow"}}),t}}class Ze extends ${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 gd extends ${constructor(t){super(t),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}class Ks extends ${constructor(t,e=new Ps){super(t);const n=this.bindTemplate,i=new Ys(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 gd)));t&&t.focus()}}}var $s=P(5199),no={attributes:{"data-cke":!0}};no.setAttributes=H(),no.insert=V().bind(null,"head"),no.domAPI=j(),no.insertStyleElement=U(),F()($s.A,no),$s.A&&$s.A.locals&&$s.A.locals;class Ys extends ${constructor(t){super(t),this._listItemGroupToChangeListeners=new WeakMap;const e=this.bindTemplate;this.focusables=new me,this.items=this.createCollection(),this.focusTracker=new Et,this.keystrokes=new Rt,this._focusCycler=new we({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 Ks?this._registerFocusableItemsGroup(t):t instanceof Ze&&this._registerFocusableListItem(t);this.items.on("change",((t,e)=>{for(const n of e.removed)n instanceof Ks?this._deregisterFocusableItemsGroup(n):n instanceof Ze&&this._deregisterFocusableListItem(n);for(const n of Array.from(e.added).reverse())n instanceof Ks?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)}}_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)}}class I0 extends Ys{constructor(t){super(t);const e=this.bindTemplate;this.role="menu",this.set("isVisible",!0),this.extendTemplate({attributes:{class:["ck-dropdown-menu-list",e.if("isVisible","ck-hidden",(n=>!n))]}})}}const S0={eastSouth:o=>({top:o.top,left:o.right-5,name:"es"}),eastNorth:(o,t)=>({top:o.top-t.height+o.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+o.height,left:o.left-t.width+5,name:"wn"})};var Qs=P(2171),io={attributes:{"data-cke":!0}};io.setAttributes=H(),io.insert=V().bind(null,"head"),io.domAPI=j(),io.insertStyleElement=U(),F()(Qs.A,io),Qs.A&&Qs.A.locals&&Qs.A.locals;const Gn={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.isEnabled&&(o.isOpen=!0)}))},openAndFocusOnEnterKeyPress(o){o.keystrokes.set("enter",((t,e)=>{o.focusTracker.focusedElement===o.buttonView.element&&(o.isOpen=!0,o.panelView.focus(),e())}))},closeOnArrowLeftKey(o){const t=o.locale.uiLanguageDirection==="rtl"?"arrowright":"arrowleft";o.keystrokes.set(t,((e,n)=>{o.isOpen&&(o.focus(),o.isOpen=!1,n())}))},closeOnEscKey(o){o.keystrokes.set("esc",((t,e)=>{o.isOpen&&(o.focus(),o.isOpen=!1,e())}))},closeOnParentClose(o,t){t.on("change:isOpen",((e,n,i)=>{i||e.source!==t||(o.isOpen=!1)}))}};var Zs=P(3710),oo={attributes:{"data-cke":!0}};oo.setAttributes=H(),oo.insert=V().bind(null,"head"),oo.domAPI=j(),oo.insertStyleElement=U(),F()(Zs.A,oo),Zs.A&&Zs.A.locals&&Zs.A.locals;const Ug=Pn("px"),M0={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}},te=class te extends ${constructor(t){super(t);const e=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class",void 0),this._pinWhenIsVisibleCallback=null,this._resizeObserver=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",e.to("position",(n=>`ck-balloon-panel_${n}`)),e.if("isVisible","ck-balloon-panel_visible"),e.if("withArrow","ck-balloon-panel_with-arrow"),e.to("class")],style:{top:e.to("top",Ug),left:e.to("left",Ug)}},children:this.content})}destroy(){this.hide(),super.destroy()}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(t){const e=Js(t.target);if(e&&!Ne(e))return!1;this.show();const n=te.defaultPositions,i=Object.assign({},{element:this.element,positions:[n.southArrowNorth,n.southArrowNorthMiddleWest,n.southArrowNorthMiddleEast,n.southArrowNorthWest,n.southArrowNorthEast,n.northArrowSouth,n.northArrowSouthMiddleWest,n.northArrowSouthMiddleEast,n.northArrowSouthWest,n.northArrowSouthEast,n.viewportStickyNorth],limiter:A.document.body,fitInViewport:!0},t),r=te._getOptimalPosition(i)||M0,s=parseInt(r.left),a=parseInt(r.top),c=r.name,l=r.config||{},{withArrow:d=!0}=l;return this.top=a,this.left=s,this.position=c,this.withArrow=d,!0}pin(t){this.unpin(),this._startPinning(t)&&(this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(t):this._stopPinning()},this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback))}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(t){if(!this.attachTo(t))return!1;let e=Js(t.target);const n=t.limiter?Js(t.limiter):A.document.body;if(this.listenTo(A.document,"scroll",((i,r)=>{const s=r.target,a=e&&s.contains(e),c=n&&s.contains(n);!a&&!c&&e&&n||this.attachTo(t)}),{useCapture:!0}),this.listenTo(A.window,"resize",(()=>{this.attachTo(t)})),!this._resizeObserver&&(e&&_t(e)&&(e=e.parentElement),e)){const i=()=>{Ne(e)||this.unpin()};this._resizeObserver=new mi(e,i)}return!0}_stopPinning(){this.stopListening(A.document,"scroll"),this.stopListening(A.window,"resize"),this._resizeObserver&&(this._resizeObserver.destroy(),this._resizeObserver=null)}static generatePositions(t={}){const{sideOffset:e=te.arrowSideOffset,heightOffset:n=te.arrowHeightOffset,stickyVerticalOffset:i=te.stickyVerticalOffset,config:r}=t;return{northWestArrowSouthWest:(c,l)=>({top:s(c,l),left:c.left-e,name:"arrow_sw",...r&&{config:r}}),northWestArrowSouthMiddleWest:(c,l)=>({top:s(c,l),left:c.left-.25*l.width-e,name:"arrow_smw",...r&&{config:r}}),northWestArrowSouth:(c,l)=>({top:s(c,l),left:c.left-l.width/2,name:"arrow_s",...r&&{config:r}}),northWestArrowSouthMiddleEast:(c,l)=>({top:s(c,l),left:c.left-.75*l.width+e,name:"arrow_sme",...r&&{config:r}}),northWestArrowSouthEast:(c,l)=>({top:s(c,l),left:c.left-l.width+e,name:"arrow_se",...r&&{config:r}}),northArrowSouthWest:(c,l)=>({top:s(c,l),left:c.left+c.width/2-e,name:"arrow_sw",...r&&{config:r}}),northArrowSouthMiddleWest:(c,l)=>({top:s(c,l),left:c.left+c.width/2-.25*l.width-e,name:"arrow_smw",...r&&{config:r}}),northArrowSouth:(c,l)=>({top:s(c,l),left:c.left+c.width/2-l.width/2,name:"arrow_s",...r&&{config:r}}),northArrowSouthMiddleEast:(c,l)=>({top:s(c,l),left:c.left+c.width/2-.75*l.width+e,name:"arrow_sme",...r&&{config:r}}),northArrowSouthEast:(c,l)=>({top:s(c,l),left:c.left+c.width/2-l.width+e,name:"arrow_se",...r&&{config:r}}),northEastArrowSouthWest:(c,l)=>({top:s(c,l),left:c.right-e,name:"arrow_sw",...r&&{config:r}}),northEastArrowSouthMiddleWest:(c,l)=>({top:s(c,l),left:c.right-.25*l.width-e,name:"arrow_smw",...r&&{config:r}}),northEastArrowSouth:(c,l)=>({top:s(c,l),left:c.right-l.width/2,name:"arrow_s",...r&&{config:r}}),northEastArrowSouthMiddleEast:(c,l)=>({top:s(c,l),left:c.right-.75*l.width+e,name:"arrow_sme",...r&&{config:r}}),northEastArrowSouthEast:(c,l)=>({top:s(c,l),left:c.right-l.width+e,name:"arrow_se",...r&&{config:r}}),southWestArrowNorthWest:c=>({top:a(c),left:c.left-e,name:"arrow_nw",...r&&{config:r}}),southWestArrowNorthMiddleWest:(c,l)=>({top:a(c),left:c.left-.25*l.width-e,name:"arrow_nmw",...r&&{config:r}}),southWestArrowNorth:(c,l)=>({top:a(c),left:c.left-l.width/2,name:"arrow_n",...r&&{config:r}}),southWestArrowNorthMiddleEast:(c,l)=>({top:a(c),left:c.left-.75*l.width+e,name:"arrow_nme",...r&&{config:r}}),southWestArrowNorthEast:(c,l)=>({top:a(c),left:c.left-l.width+e,name:"arrow_ne",...r&&{config:r}}),southArrowNorthWest:c=>({top:a(c),left:c.left+c.width/2-e,name:"arrow_nw",...r&&{config:r}}),southArrowNorthMiddleWest:(c,l)=>({top:a(c),left:c.left+c.width/2-.25*l.width-e,name:"arrow_nmw",...r&&{config:r}}),southArrowNorth:(c,l)=>({top:a(c),left:c.left+c.width/2-l.width/2,name:"arrow_n",...r&&{config:r}}),southArrowNorthMiddleEast:(c,l)=>({top:a(c),left:c.left+c.width/2-.75*l.width+e,name:"arrow_nme",...r&&{config:r}}),southArrowNorthEast:(c,l)=>({top:a(c),left:c.left+c.width/2-l.width+e,name:"arrow_ne",...r&&{config:r}}),southEastArrowNorthWest:c=>({top:a(c),left:c.right-e,name:"arrow_nw",...r&&{config:r}}),southEastArrowNorthMiddleWest:(c,l)=>({top:a(c),left:c.right-.25*l.width-e,name:"arrow_nmw",...r&&{config:r}}),southEastArrowNorth:(c,l)=>({top:a(c),left:c.right-l.width/2,name:"arrow_n",...r&&{config:r}}),southEastArrowNorthMiddleEast:(c,l)=>({top:a(c),left:c.right-.75*l.width+e,name:"arrow_nme",...r&&{config:r}}),southEastArrowNorthEast:(c,l)=>({top:a(c),left:c.right-l.width+e,name:"arrow_ne",...r&&{config:r}}),westArrowEast:(c,l)=>({top:c.top+c.height/2-l.height/2,left:c.left-l.width-n,name:"arrow_e",...r&&{config:r}}),eastArrowWest:(c,l)=>({top:c.top+c.height/2-l.height/2,left:c.right+n,name:"arrow_w",...r&&{config:r}}),viewportStickyNorth:(c,l,d,u)=>{const h=u||d;return c.getIntersection(h)?h.height-c.height>i?null:{top:h.top+i,left:c.left+c.width/2-l.width/2,name:"arrowless",config:{withArrow:!1,...r}}:null}};
8802function s(c,l){return c.top-l.height-n}function a(c){return c.bottom+n}}};te.arrowSideOffset=25,te.arrowHeightOffset=10,te.stickyVerticalOffset=20,te._getOptimalPosition=Zr,te.defaultPositions=te.generatePositions();let ze=te;function Js(o){return Ue(o)?o:Yr(o)?o.commonAncestorContainer:typeof o=="function"?Js(o()):null}var Xs=P(3610),ro={attributes:{"data-cke":!0}};ro.setAttributes=H(),ro.insert=V().bind(null,"head"),ro.domAPI=j(),ro.insertStyleElement=U(),F()(Xs.A,ro),Xs.A&&Xs.A.locals&&Xs.A.locals;class B0 extends ze{constructor(t){super(t);const e=this.bindTemplate;this.set({isVisible:!1,position:"se",class:null,top:0,left:0}),this.extendTemplate({tag:"div",attributes:{class:["ck-reset","ck-dropdown-menu__nested-menu__panel"],tabindex:"-1"},on:{selectstart:e.to((n=>{n.target.tagName.toLocaleLowerCase()!=="input"&&n.preventDefault()}))}})}focus(t=1){const{content:e}=this;e.length&&(t===1?e.first.focus():e.last.focus())}}var ta=P(7218),so={attributes:{"data-cke":!0}};so.setAttributes=H(),so.insert=V().bind(null,"head"),so.domAPI=j(),so.insertStyleElement=U(),F()(ta.A,so),ta.A&&ta.A.locals&&ta.A.locals;const Hc=class Hc extends ${constructor(t,e,n,i,r){super(t),this._bodyCollection=e,this.id=n,this.set({isOpen:!1,isEnabled:!0,panelPosition:"w",class:void 0,parentMenuView:null}),this.keystrokes=new Rt,this.focusTracker=new Et,this.buttonView=new D0(t),this.buttonView.delegate("mouseenter").to(this),this.buttonView.bind("isOn","isEnabled").to(this,"isOpen","isEnabled"),this.buttonView.label=i,this.panelView=new B0(t),this.panelView.isVisible=!0,this.listView=new I0(t),this.listView.bind("ariaLabel").to(this.buttonView,"label"),this.panelView.content.add(this.listView);const s=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown-menu-list__nested-menu",s.to("class"),s.if("isEnabled","ck-disabled",(a=>!a))],role:"presentation"},children:[this.buttonView]}),this.parentMenuView=r,this.parentMenuView&&this._handleParentMenuView(),this._attachBehaviors()}get _panelPositions(){const{westSouth:t,eastSouth:e,westNorth:n,eastNorth:i}=S0;return this.locale.uiLanguageDirection==="ltr"?[e,i,t,n]:[t,n,e,i]}render(){super.render(),this.panelView.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.focusTracker.add(this.listView),this.keystrokes.listenTo(this.element),this._mountPanelOnOpen()}destroy(){this._removePanelFromBody(),this.panelView.destroy(),super.destroy()}focus(){this.buttonView.focus()}_handleParentMenuView(){this.delegate(...Hc.DELEGATED_EVENTS).to(this.parentMenuView),Gn.closeOnParentClose(this,this.parentMenuView)}_attachBehaviors(){Gn.openOnButtonClick(this),Gn.openAndFocusOnEnterKeyPress(this),Gn.openOnArrowRightKey(this),Gn.closeOnEscKey(this),Gn.closeOnArrowLeftKey(this)}_mountPanelOnOpen(){const{panelView:t}=this;this.on("change:isOpen",((e,n,i)=>{e.source===this&&(i||!this._bodyCollection.has(t)?i&&!this._bodyCollection.has(t)&&this._addPanelToBody():this._removePanelFromBody())}))}_removePanelFromBody(){const{panelView:t,keystrokes:e}=this;this._bodyCollection.has(t)&&(this._bodyCollection.remove(t),e.stopListening(t.element))}_addPanelToBody(){const{panelView:t,buttonView:e,keystrokes:n}=this;this._bodyCollection.has(t)||(this._bodyCollection.add(t),n.listenTo(t.element),t.pin({positions:this._panelPositions,limiter:A.document.body,element:t.element,target:e.element,fitInViewport:!0}))}};Hc.DELEGATED_EVENTS=["mouseenter","execute","change:isOpen"];let qg=Hc;class Gg extends ${constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class T0 extends ${constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function Wg(o){if(Array.isArray(o))return{items:o,removeItems:[]};const t={items:[],removeItems:[]};return o?{...t,...o}:t}var ea=P(9677),ao={attributes:{"data-cke":!0}};ao.setAttributes=H(),ao.insert=V().bind(null,"head"),ao.domAPI=j(),ao.insertStyleElement=U(),F()(ea.A,ao),ea.A&&ea.A.locals&&ea.A.locals;const N0={alignLeft:K.alignLeft,bold:K.bold,importExport:K.importExport,paragraph:K.paragraph,plus:K.plus,text:K.text,threeVerticalDots:K.threeVerticalDots,pilcrow:K.pilcrow,dragIndicator:K.dragIndicator};class pd extends ${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 Et,this.keystrokes=new Rt,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new P0(t),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const r=t.uiLanguageDirection==="rtl";this._focusCycler=new we({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 O0(this):new L0(this)}render(){super.render(),this.focusTracker.add(this.element);for(const t of this.items)this.focusTracker.add(t);this.items.on("add",((t,e)=>{this.focusTracker.add(e)})),this.items.on("remove",((t,e)=>{this.focusTracker.remove(e)})),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=Wg(t),r=n||i.removeItems;return this._cleanItemsConfiguration(i.items,e,r).map((s=>kt(s)?this._createNestedToolbarDropdown(s,e,r):s==="|"?new Gg:s==="-"?new T0: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||(nt("toolbarview-line-break-ignored-when-grouping-items",a),!1):!(!kt(r)&&!e.has(r))||(nt("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=Je(this.locale);return i||nt("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=N0[r]||r||K.threeVerticalDots:l.buttonView.withText=!0,fd(l,(()=>l.toolbarView._buildItemsFromConfig(s,e,n))),l}}class P0 extends ${constructor(t){super(t),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class L0{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=>Ri(n)?n:null)),t.extendTemplate({attributes:{class:[e.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class O0{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)}
vendor: 7,599 bytes, line 8802
8802destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!Ne(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 X(t.lastChild),i=new X(t);if(!this.cachedPadding){const r=A.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 mi(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 Gg),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=Je(t);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition=t.uiLanguageDirection==="ltr"?"sw":"se",fd(n,this.groupedItems),n.buttonView.set({label:e("Show more items"),tooltip:!0,tooltipPosition:t.uiLanguageDirection==="rtl"?"se":"sw",icon:K.threeVerticalDots}),n}_updateFocusCyclableItems(){this.viewFocusables.clear(),this.ungroupedItems.map((t=>{Ri(t)&&this.viewFocusables.add(t)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}var na=P(1792),co={attributes:{"data-cke":!0}};co.setAttributes=H(),co.insert=V().bind(null,"head"),co.domAPI=j(),co.insertStyleElement=U(),F()(na.A,co),na.A&&na.A.locals&&na.A.locals;class ia extends ${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 Rt,this.focusTracker=new Et,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 it;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 it,e=t.bindTemplate;return t.icon=Ki,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 oa=P(1666),lo={attributes:{"data-cke":!0}};lo.setAttributes=H(),lo.insert=V().bind(null,"head"),lo.domAPI=j(),lo.insertStyleElement=U(),F()(oa.A,lo),oa.A&&oa.A.locals&&oa.A.locals;var ra=P(3629),uo={attributes:{"data-cke":!0}};uo.setAttributes=H(),uo.insert=V().bind(null,"head"),uo.domAPI=j(),uo.insertStyleElement=U(),F()(ra.A,uo),ra.A&&ra.A.locals&&ra.A.locals;function Je(o,t=E0){const e=typeof t=="function"?new t(o):t,n=new x0(o),i=new md(o,e,n);return e.bind("isEnabled").to(i),e instanceof ia?e.arrowView.bind("isOn").to(i,"isOpen"):e.bind("isOn").to(i,"isOpen"),(function(r){(function(s){ns({emitter:s,activator:()=>s.isRendered&&s.isOpen,callback:()=>{s.isOpen=!1},contextElements:()=>[s.element,...Zg(s.focusTracker).filter((a=>!s.element.contains(a)))]})})(r),(function(s){s.on("execute",(a=>{a.source instanceof zs||(s.isOpen=!1)}))})(r),(function(s){s.focusTracker.on("change:isFocused",((a,c,l)=>{!l&&s.isOpen&&(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)=>{l||s.focusTracker.elements.some((d=>d.contains(A.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 fd(o,t,e={}){o.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),o.isOpen?Kg(o,t,e):o.once("change:isOpen",(()=>Kg(o,t,e)),{priority:"highest"}),e.enableActiveItemFocusOnDropdownOpen&&Qg(o,(()=>o.toolbarView.items.find((n=>n.isOn))))}function Kg(o,t,e){const n=o.locale,i=n.t,r=o.toolbarView=new pd(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 me?r.items.bindTo(s).using((a=>a)):r.items.addMany(s),o.panelView.children.add(r),o.focusTracker.add(r),r.items.delegate("execute").to(o)}function $g(o,t,e={}){o.isOpen?Yg(o,t,e):o.once("change:isOpen",(()=>Yg(o,t,e)),{priority:"highest"}),Qg(o,(()=>o.listView.items.find((n=>n instanceof Ze&&n.children.first.isOn))))}function Yg(o,t,e){const n=o.locale,i=o.listView=new Ys(n),r=typeof t=="function"?t():t;i.ariaLabel=e.ariaLabel,i.role=e.role,Jg(o,i.items,r,n),o.panelView.children.add(i),i.items.delegate("execute").to(o)}function Qg(o,t){o.on("change:isOpen",(()=>{if(!o.isOpen)return;const e=t();e&&(typeof e.focus=="function"?e.focus():nt("ui-dropdown-focus-child-on-open-child-missing-focus",{view:e}))}),{priority:Ve.low-10})}function Zg(o){return[...o.elements,...o.externalViews.flatMap((t=>Zg(t.focusTracker)))]}function Jg(o,t,e,n){t.on("change",(()=>{const i=[...t].reduce(((s,a)=>(a instanceof Ze&&a.children.first instanceof bn&&s.push(a.children.first),s)),[]),r=i.some((s=>s.isToggleable));
8802i.forEach((s=>{s.hasCheckSpace=r}))})),t.bindTo(e).using((i=>{if(i.type==="separator")return new gd(n);if(i.type==="group"){const r=new Ks(n);return r.set({label:i.label}),Jg(o,r.items,i.items,n),r.items.delegate("execute").to(o),r}if(i.type==="button"||i.type==="switchbutton"){const r=i.model.role==="menuitemcheckbox"||i.model.role==="menuitemradio",s=new Ze(n);let a;return i.type==="button"?(a=new bn(n),a.set({isToggleable:r})):a=new zs(n),a.bind(...Object.keys(i.model)).to(i.model),a.delegate("execute").to(s),s.children.add(a),s}return null}))}const sa=(o,t,e)=>{const n=new y0(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 aa=P(1905),ho={attributes:{"data-cke":!0}};ho.setAttributes=H(),ho.insert=V().bind(null,"head"),ho.domAPI=j(),ho.insertStyleElement=U(),F()(aa.A,ho),aa.A&&aa.A.locals&&aa.A.locals;var ca=P(6309),mo={attributes:{"data-cke":!0}};mo.setAttributes=H(),mo.insert=V().bind(null,"head"),mo.domAPI=j(),mo.insertStyleElement=U(),F()(ca.A,mo),ca.A&&ca.A.locals&&ca.A.locals;class z0{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(kd(t),{callback:e,originalName:t})}create(t){if(!this.has(t))throw new E("componentfactory-item-missing",this,{name:t});return this._components.get(kd(t)).callback(this.editor.locale)}has(t){return this._components.has(kd(t))}}function kd(o){return String(o).toLowerCase()}var la=P(9205),go={attributes:{"data-cke":!0}};go.setAttributes=H(),go.insert=V().bind(null,"head"),go.domAPI=j(),go.insertStyleElement=U(),F()(la.A,go),la.A&&la.A.locals&&la.A.locals;const Xg="ck-tooltip",Tt=class Tt extends re(){constructor(t){if(super(),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._mutationObserver=null,Tt._editors.add(t),Tt._instance)return Tt._instance;Tt._instance=this,this.tooltipTextView=new $(t.locale),this.tooltipTextView.set("text",""),this.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:this.tooltipTextView.bindTemplate.to("text")}]}),this.balloonPanelView=new ze(t.locale),this.balloonPanelView.class=Xg,this.balloonPanelView.content.add(this.tooltipTextView),this._mutationObserver=(function(e){const n=new MutationObserver((()=>{e()}));return{attach(i){n.observe(i,{attributes:!0,attributeFilter:["data-cke-tooltip-text","data-cke-tooltip-position"]})},detach(){n.disconnect()}}})((()=>{this._updateTooltipPosition()})),this._pinTooltipDebounced=pn(this._pinTooltip,600),this._unpinTooltipDebounced=pn(this._unpinTooltip,400),this.listenTo(A.document,"keydown",this._onKeyDown.bind(this),{useCapture:!0}),this.listenTo(A.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(A.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(A.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(A.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(A.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(t){const e=t.ui.view&&t.ui.view.body;Tt._editors.delete(t),this.stopListening(t.ui),e&&e.has(this.balloonPanelView)&&e.remove(this.balloonPanelView),Tt._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),Tt._instance=null)}static getPositioningFunctions(t){const e=Tt.defaultBalloonPositions;return{s:[e.southArrowNorth,e.southArrowNorthEast,e.southArrowNorthWest],n:[e.northArrowSouth],e:[e.eastArrowWest],w:[e.westArrowEast],sw:[e.southArrowNorthEast],se:[e.southArrowNorthWest]}[t]}_onKeyDown(t,e){e.key==="Escape"&&this._currentElementWithTooltip&&(this._unpinTooltip(),e.stopPropagation())}_onEnterOrFocus(t,{target:e}){const n=wd(e);n?n!==this._currentElementWithTooltip&&(this._unpinTooltip(),t.name!=="focus"||n.matches(":hover")?this._pinTooltipDebounced(n,Ad(n)):this._pinTooltip(n,Ad(n))):t.name==="focus"&&this._unpinTooltip()}_onLeaveOrBlur(t,{target:e,relatedTarget:n}){if(t.name==="mouseleave"){if(!Ue(e))return;const i=this.balloonPanelView.element,r=i&&(i===n||i.contains(n)),s=!r&&e===i;if(r)return void this._unpinTooltipDebounced.cancel();if(!s&&this._currentElementWithTooltip&&e!==this._currentElementWithTooltip)return;const a=wd(e),c=wd(n);(s||a&&a!==c)&&this._unpinTooltipDebounced()}else{if(this._currentElementWithTooltip&&e!==this._currentElementWithTooltip)return;this._unpinTooltipDebounced()}}_onScroll(t,{target:e}){this._currentElementWithTooltip&&(e.contains(this.balloonPanelView.element)&&e.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(t,{text:e,position:n,cssClass:i}){this._unpinTooltip();const r=Mt(Tt._editors.values()).ui.view.body;r.has(this.balloonPanelView)||r.add(this.balloonPanelView),this.tooltipTextView.text=e,this.balloonPanelView.class=[Xg,i].filter((s=>s)).join(" "),this.balloonPanelView.pin({target:t,positions:Tt.getPositioningFunctions(n)}),this._mutationObserver.attach(t);for(const s of Tt._editors)this.listenTo(s.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=t,this._currentTooltipPosition=n}_unpinTooltip(){this._unpinTooltipDebounced.cancel(),this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const t of Tt._editors)this.stopListening(t.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this.tooltipTextView.text="",this._mutationObserver.detach()}_updateTooltipPosition(){if(!this._currentElementWithTooltip)return;const t=Ad(this._currentElementWithTooltip);Ne(this._currentElementWithTooltip)&&t.text?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:Tt.getPositioningFunctions(t.position)}):this._unpinTooltip()}};Tt.defaultBalloonPositions=ze.generatePositions({heightOffset:5,sideOffset:13}),Tt._editors=new Set,Tt._instance=null;let bd=Tt;function wd(o){return Ue(o)?o.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}function Ad(o){return{text:o.dataset.ckeTooltipText,position:o.dataset.ckeTooltipPosition||"s",cssClass:o.dataset.ckeTooltipClass||""}}class R0 extends re(){constructor(t){super(),this.editor=t,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=ys(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(m){return m.length>=40&&m.length<=255?"VALID":"INVALID"}if(!e)return"INVALID";let i="";try{i=atob(e)}catch(m){return"INVALID"}const r=i.split("-"),s=r[0],a=r[1];if(!a)return n(e);try{atob(a)}catch(m){try{if(atob(s),!atob(s).length)return n(e)}catch(p){return n(e)}}if(s.length<40||s.length>255)return"INVALID";let c="";try{atob(s),c=atob(a)}catch(m){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<kb||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 ze,n=ep(t),i=new F0(t.locale,n.label);e.content.add(i),e.set({class:"ck-powered-by-balloon"}),t.ui.view.body.add(e),this._balloonView=e}_showBalloon(){if(!this._lastFocusedEditableElement)return;const t=(function(e,n){const i=ep(e),r=i.side==="right"?(function(s,a){return tp(s,a,((c,l)=>c.left+c.width-l.width-a.horizontalOffset))})(n,i):(function(s,a){return tp(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 F0 extends ${constructor(t,e){super(t);const n=new ae,i=this.bindTemplate;n.set({content:`
vendor: 5,961 bytes, line 8802
8802<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>
8802 8803`,isColorInherited:!1}),n.extendTemplate({attributes:{style:{width:"53px",height:"10px"}}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-powered-by"],"aria-hidden":!0},children:[{tag:"a",attributes:{href:"https://ckeditor.com/powered-by-ckeditor/?utm_source=ckeditor&utm_medium=referral&utm_campaign=701Dn000000hVgmIAE_powered_by_ckeditor_logo",target:"_blank",tabindex:"-1"},children:[...e?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[e]}]:[],n],on:{dragstart:i.to((r=>r.preventDefault()))}}]})}}function tp(o,t,e){return(n,i)=>{const r=new X(o);if(r.width<350||r.height<50)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 ep(o){const t=o.config.get("ui.poweredBy"),e=t&&t.position||"border";return{position:e,label:"Powered by",verticalOffset:e==="inside"?5:0,horizontalOffset:5,side:o.locale.contentLanguageDirection==="ltr"?"right":"left",...t}}var da=P(1801),po={attributes:{"data-cke":!0}};po.setAttributes=H(),po.insert=V().bind(null,"head"),po.domAPI=j(),po.insertStyleElement=U(),F()(da.A,po),da.A&&da.A.locals&&da.A.locals;const np={POLITE:"polite",ASSERTIVE:"assertive"};class j0{constructor(t){this.editor=t,t.once("ready",(()=>{for(const e of Object.values(np))this.announce("",e)}))}announce(t,e=np.POLITE){const n=this.editor;if(!n.ui.view)return;this.view||(this.view=new V0(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 H0(n,i),this.view.regionViews.add(s)),s.announce({announcement:t,isUnsafeHTML:r})}}class V0 extends ${constructor(t){super(t),this.regionViews=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-aria-live-announcer"]},children:this.regionViews})}}class H0 extends ${constructor(t,e){super(t.locale),this.setTemplate({tag:"div",attributes:{"aria-live":e,"aria-relevant":"additions"},children:[{tag:"ul",attributes:{class:["ck","ck-aria-live-region-list"]}}]}),t.on("destroy",(()=>{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 ua=P(9481),fo={attributes:{"data-cke":!0}};fo.setAttributes=H(),fo.insert=V().bind(null,"head"),fo.domAPI=j(),fo.insertStyleElement=U(),F()(ua.A,fo),ua.A&&ua.A.locals&&ua.A.locals;class ha extends Ze{constructor(t,e){super(t);const n=this.bindTemplate;this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item"]},on:{mouseenter:n.to("mouseenter")}}),this.delegate("mouseenter").to(e)}}const Wn={toggleMenusAndFocusItemsOnHover(o){o.on("menu:mouseenter",(t=>{if(o.isFocusBorderEnabled||o.isOpen){if(o.isOpen)for(const e of o.menus){const n=t.path[0],i=n instanceof ha&&n.children.first===e;e.isOpen=(t.path.includes(e)||i)&&e.isEnabled}
vendor: 4,604 bytes, line 8803
8803t.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){ns({emitter:o,activator:()=>o.isOpen,callback:()=>o.close(),contextElements:()=>o.children.map((t=>t.element))})},enableFocusHighlightOnInteraction(o){let t=!1;o.on("change:isOpen",((e,n,i)=>{i||(t||(o.isFocusBorderEnabled=!1),t=!1)})),o.listenTo(o.element,"keydown",(()=>{t=!0}),{useCapture:!0}),o.listenTo(o.element,"keyup",(()=>{t=!1}),{useCapture:!0}),o.listenTo(o.element,"focus",(()=>{t&&(o.isFocusBorderEnabled=!0)}),{useCapture:!0})}},Xe={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}))},toggleOnButtonClick(o){o.buttonView.on("execute",(()=>{o.isOpen=!o.isOpen}))},openAndFocusOnEnterKeyPress(o){o.keystrokes.set("enter",((t,e)=>{o.focusTracker.focusedElement===o.buttonView.element&&(o.isOpen=!0,o.panelView.focus(),e())}))},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)}))}},U0={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"}),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"})},q0=[{menuId:"file",label:"File",groups:[{groupId:"export",items:["menuBar:exportPdf","menuBar:exportWord"]},{groupId:"import",items:["menuBar:importWord"]},{groupId:"revisionHistory",items:["menuBar:revisionHistory"]}]},{menuId:"edit",label:"Edit",groups:[{groupId:"undo",items:["menuBar:undo","menuBar:redo"]},{groupId:"selectAll",items:["menuBar:selectAll"]},{groupId:"findAndReplace",items:["menuBar:findAndReplace"]}]},{menuId:"view",label:"View",groups:[{groupId:"sourceEditing",items:["menuBar:sourceEditing"]},{groupId:"showBlocks",items:["menuBar:showBlocks"]},{groupId:"previewMergeFields",items:["menuBar:previewMergeFields"]},{groupId:"restrictedEditing",items:["menuBar:restrictedEditing"]}]},{menuId:"insert",label:"Insert",groups:[{groupId:"insertMainWidgets",items:["menuBar:insertImage","menuBar:ckbox","menuBar:ckfinder","menuBar:insertTable"]},{groupId:"insertInline",items:["menuBar:link","menuBar:comment","menuBar:insertMergeField"]},{groupId:"insertMinorWidgets",items:["menuBar:mediaEmbed","menuBar:insertTemplate","menuBar:specialCharacters","menuBar:blockQuote","menuBar:codeBlock","menuBar:htmlEmbed"]},{groupId:"insertStructureWidgets",items:["menuBar:horizontalLine","menuBar:pageBreak","menuBar:tableOfContents"]},{groupId:"restrictedEditingException",items:["menuBar:restrictedEditingException"]}]},{menuId:"format",label:"Format",groups:[{groupId:"textAndFont",items:[{menuId:"text",label:"Text",groups:[{groupId:"basicStyles",items:["menuBar:bold","menuBar:italic","menuBar:underline","menuBar:strikethrough","menuBar:superscript","menuBar:subscript","menuBar:code"]},{groupId:"textPartLanguage",items:["menuBar:textPartLanguage"]}]},{menuId:"font",label:"Font",groups:[{groupId:"fontProperties",items:["menuBar:fontSize","menuBar:fontFamily"]},{groupId:"fontColors",items:["menuBar:fontColor","menuBar:fontBackgroun
8803dColor"]},{groupId:"highlight",items:["menuBar:highlight"]}]},"menuBar:heading"]},{groupId:"list",items:["menuBar:bulletedList","menuBar:numberedList","menuBar:multiLevelList","menuBar:todoList"]},{groupId:"indent",items:["menuBar:alignment","menuBar:indent","menuBar:outdent"]},{groupId:"caseChange",items:["menuBar:caseChange"]},{groupId:"removeFormat",items:["menuBar:removeFormat"]}]},{menuId:"tools",label:"Tools",groups:[{groupId:"aiTools",items:["menuBar:aiAssistant","menuBar:aiCommands"]},{groupId:"tools",items:["menuBar:trackChanges","menuBar:commentsArchive"]}]},{menuId:"help",label:"Help",groups:[{groupId:"help",items:["menuBar:accessibilityHelp"]}]}];function G0({normalizedConfig:o,locale:t,componentFactory:e,extraItems:n}){const i=fe(o);return ip(o,i,n),(function(r,s){const a=s.removeItems,c=[];s.items=s.items.filter((({menuId:l})=>!a.includes(l)||(c.push(l),!1))),Kn(s.items,(l=>{l.groups=l.groups.filter((({groupId:d})=>!a.includes(d)||(c.push(d),!1)));for(const d of l.groups)d.items=d.items.filter((u=>{const h=sp(u);return!a.includes(h)||(c.push(h),!1)}))}));for(const l of a)c.includes(l)||nt("menu-bar-item-could-not-be-removed",{menuBarConfig:r,itemName:l})})(o,i),ip(o,i,i.addItems),(function(r,s,a){Kn(s.items,(c=>{for(const l of c.groups)l.items=l.items.filter((d=>{const u=typeof d=="string"&&!a.has(d);return u&&!s.isUsingDefaultConfig&&nt("menu-bar-item-unavailable",{menuBarConfig:r,parentMenuConfig:fe(c),componentName:d}),!u}))}))})(o,i,e),rp(o,i),(function(r,s){const a=s.t,c={File:a({string:"File",id:"MENU_BAR_MENU_FILE"}),Edit:a({string:"Edit",id:"MENU_BAR_MENU_EDIT"}),View:a({string:"View",id:"MENU_BAR_MENU_VIEW"}),Insert:a({string:"Insert",id:"MENU_BAR_MENU_INSERT"}),Format:a({string:"Format",id:"MENU_BAR_MENU_FORMAT"}),Tools:a({string:"Tools",id:"MENU_BAR_MENU_TOOLS"}),Help:a({string:"Help",id:"MENU_BAR_MENU_HELP"}),Text:a({string:"Text",id:"MENU_BAR_MENU_TEXT"}),Font:a({string:"Font",id:"MENU_BAR_MENU_FONT"})};Kn(r.items,(l=>{l.label in c&&(l.label=c[l.label])}))})(i,t),i}function ip(o,t,e){const n=[];if(e.length!=0){for(const r of e){const s=K0(r.position),a=$0(r.position);if(typeof(i=r)=="object"&&"menu"in i)if(a){const c=t.items.findIndex((l=>l.menuId===a));c!=-1?s==="before"?(t.items.splice(c,0,r.menu),n.push(r)):s==="after"&&(t.items.splice(c+1,0,r.menu),n.push(r)):op(t,r.menu,a,s)&&n.push(r)}else s==="start"?(t.items.unshift(r.menu),n.push(r)):s==="end"&&(t.items.push(r.menu),n.push(r));else W0(r)?Kn(t.items,(c=>{if(c.menuId===a)s==="start"?(c.groups.unshift(r.group),n.push(r)):s==="end"&&(c.groups.push(r.group),n.push(r));else{const l=c.groups.findIndex((d=>d.groupId===a));l!==-1&&(s==="before"?(c.groups.splice(l,0,r.group),n.push(r)):s==="after"&&(c.groups.splice(l+1,0,r.group),n.push(r)))}})):op(t,r.item,a,s)&&n.push(r)}var i;for(const r of e)n.includes(r)||nt("menu-bar-item-could-not-be-added",{menuBarConfig:o,addedItemConfig:r})}}function op(o,t,e,n){let i=!1;return Kn(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=>sp(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 rp(o,t){const e=t.isUsingDefaultConfig;let n=!1;t.items=t.items.filter((i=>!!i.groups.length||(_d(o,i,e),!1))),t.items.length?(Kn(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=>!(ap(s)&&!s.groups.length)||(_d(o,s,e),n=!0,!1)))})),n&&rp(o,t)):_d(o,o,e)}function _d(o,t,e){e||nt("menu-bar-menu-empty",{menuBarConfig:o,emptyMenuConfig:t})}function Kn(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)ap(r)&&e(r)}}function W0(o){return typeof o=="object"&&"group"in o}function K0(o){return o.startsWith("start")?"start":o.startsWith("end")?"end":o.startsWith("after")?"after":"before"}function $0(o){const t=o.match(/^[^:]+:(.+)/);return t?t[1]:null}function sp(o){return typeof o=="string"?o:o.menuId}function ap(o){return typeof o=="object"&&"menuId"in o}class Y0 extends dt(){constructor(t){super(),this.isReady=!1,this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[],this._extraMenuBarElements=[],this._lastFocusedForeignElement=null;const e=t.editing.view;this.editor=t,this.componentFactory=new z0(t),this.focusTracker=new Et,this.tooltipManager=new bd(t),this.poweredBy=new R0(t),this.ariaLiveAnnouncer=new j0(t),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",(()=>{this._bindBodyCollectionWithFocusTracker(),this.isReady=!0})),this.listenTo(e.document,"layoutChanged",this.update.bind(this)),this.listenTo(e,"scrollToTheSelection",this._handleScrollToTheSelection.bind(this)),this._initFocusTracking()}
vendor: 26,276 bytes, line 8803
8803get 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),this.editor.keystrokes.listenTo(t.element)):t.once("render",(()=>{this.focusTracker.add(t),this.editor.keystrokes.listenTo(t.element)})),this._focusableToolbarDefinitions.push({toolbarView:t,options:e})}extendMenuBar(t){this._extraMenuBarElements.push(t)}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_initMenuBar(t){const e=t.element;this.focusTracker.add(e),this.editor.keystrokes.listenTo(e);const n=(function(i){let r;return r="items"in i&&i.items?{items:i.items,removeItems:[],addItems:[],isVisible:!0,isUsingDefaultConfig:!1,...i}:{items:fe(q0),addItems:[],removeItems:[],isVisible:!0,isUsingDefaultConfig:!0,...i},r})(this.editor.config.get("menuBar")||{});t.fillFromConfig(n,this.componentFactory,this._extraMenuBarElements),this.editor.keystrokes.set("Esc",((i,r)=>{e.contains(this.editor.ui.focusTracker.focusedElement)&&(this._lastFocusedForeignElement?(this._lastFocusedForeignElement.focus(),this._lastFocusedForeignElement=null):this.editor.editing.view.focus(),r())})),this.editor.keystrokes.set("Alt+F9",((i,r)=>{e.contains(this.editor.ui.focusTracker.focusedElement)||(this._saveLastFocusedForeignElement(),t.isFocusBorderEnabled=!0,t.focus(),r())}))}_readViewportOffsetFromConfig(){const t=this.editor,e=t.config.get("ui.viewportOffset");if(e)return e;const n=t.config.get("toolbar.viewportTopOffset");return n?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:n}):{top:0}}_initFocusTracking(){const t=this.editor;let e;t.keystrokes.set("Alt+F10",((n,i)=>{this._saveLastFocusedForeignElement();const r=this._getCurrentFocusedToolbarDefinition();r&&e||(e=this._getFocusableCandidateToolbarDefinitions());for(let s=0;s<e.length;s++){const a=e.shift();if(e.push(a),a!==r&&this._focusFocusableCandidateToolbar(a)){r&&r.options.afterBlur&&r.options.afterBlur();break}}i()})),t.keystrokes.set("Esc",((n,i)=>{const r=this._getCurrentFocusedToolbarDefinition();r&&(this._lastFocusedForeignElement?(this._lastFocusedForeignElement.focus(),this._lastFocusedForeignElement=null):t.editing.view.focus(),r.options.afterBlur&&r.options.afterBlur(),i())}))}_saveLastFocusedForeignElement(){const t=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(t)&&!Array.from(this.editor.editing.view.domRoots.values()).includes(t)&&(this._lastFocusedForeignElement=t)}_getFocusableCandidateToolbarDefinitions(){const t=[];for(const e of this._focusableToolbarDefinitions){const{toolbarView:n,options:i}=e;(Ne(n.element)||i.beforeFocus)&&t.push(e)}return t.sort(((e,n)=>cp(e)-cp(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(),!!Ne(e.element)&&(e.focus(),!0)}_handleScrollToTheSelection(t,e){const n={top:0,bottom:0,left:0,right:0,...this.viewportOffset};e.viewportOffset.top+=n.top,e.viewportOffset.bottom+=n.bottom,e.viewportOffset.left+=n.left,e.viewportOffset.right+=n.right}_bindBodyCollectionWithFocusTracker(){const t=this.view.body;for(const e of t)this.focusTracker.add(e.element);t.on("add",((e,n)=>{this.focusTracker.add(n.element)})),t.on("remove",((e,n)=>{this.focusTracker.remove(n.element)}))}}function cp(o){const{toolbarView:t,options:e}=o;let n=10;return Ne(t.element)&&n--,e.isContextual&&n--,n}var ma=P(1185),ko={attributes:{"data-cke":!0}};ko.setAttributes=H(),ko.insert=V().bind(null,"head"),ko.domAPI=j(),ko.insertStyleElement=U(),F()(ma.A,ko),ma.A&&ma.A.locals&&ma.A.locals;class Q0 extends ${constructor(t){super(t),this.body=new b0(t)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class Z0 extends Q0{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 Ps;return e.text=t("Rich Text Editor"),e.extendTemplate({attributes:{class:"ck-voice-label"}}),e}}class J0 extends ${constructor(t,e,n){super(t),this.name=null,this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:t.contentLanguage,dir:t.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=n,this._hasExternalElement=!!this._editableElement,this._editingView=e}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(()=>this._updateIsFocusedClasses())),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}get hasExternalElement(){return this._hasExternalElement}_updateIsFocusedClasses(){const t=this._editingView;function e(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 X0 extends J0{constructor(t,e,n,i={}){super(t,e,n),this._options=i,this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();const t=this._editingView;t.change((e=>{const n=t.document.getRoot(this.name);e.setAttribute("aria-label",this.getEditableAriaLabel(),n)}))}getEditableAriaLabel(){const t=this.locale.t,e=this._options.label,n=this._editableElement,i=this.name;if(typeof e=="string")return e;if(typeof e=="object")return e[i];if(typeof e=="function")return e(this);if(n){const r=n.getAttribute("aria-label");if(r)return r}return t("Rich Text Editor. Editing area: %0",i)}}class Cd extends os{static get pluginName(){return"Notification"}static get isOfficialPlugin(){return!0}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 lp extends dt(){constructor(t,e){super(),e&&ym(this,e),t&&this.set(t)}}var ga=P(991),bo={attributes:{"data-cke":!0}};bo.setAttributes=H(),bo.insert=V().bind(null,"head"),bo.domAPI=j(),bo.insertStyleElement=U(),F()(ga.A,bo),ga.A&&ga.A.locals&&ga.A.locals;var pa=P(5380),wo={attributes:{"data-cke":!0}};wo.setAttributes=H(),wo.insert=V().bind(null,"head"),wo.domAPI=j(),wo.insertStyleElement=U(),F()(pa.A,wo),pa.A&&pa.A.locals&&pa.A.locals;const fa=Pn("px");class ka extends R{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.decorate("getPositionOptions"),this.set("visibleView",null),this.set("_numberOfStacks",0),this.set("_singleViewMode",!1)}static get pluginName(){return"ContextualBalloon"}static get isOfficialPlugin(){return!0}destroy(){super.destroy(),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy()}get view(){return this._view||this._createPanelView(),this._view}hasView(t){return Array.from(this._viewToStack.keys()).includes(t)}add(t){if(this._view||this._createPanelView(),this.hasView(t.view))throw new E("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 E("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.getPositionOptions()),this._fakePanelsView.updatePosition()}getPositionOptions(){let t=Array.from(this._visibleStack.values()).pop().position;return t&&(t.limiter||(t=Object.assign({},t,{limiter:this.positionLimiter})),t=Object.assign({},t,{viewportOffsetConfig:this.editor.ui.viewportOffset})),t}showStack(t){this.visibleStack=t;const e=this._idToStack.get(t);if(!e)throw new E("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==e&&this._showView(Array.from(e.values()).pop())}_createPanelView(){this._view=new ze(this.editor.locale),this.editor.ui.view.body.add(this._view),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(t){return Array.from(this._idToStack.entries()).find((e=>e[1]===t))[0]}_showNextStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)+1;t[e]||(e=0),this.showStack(this._getStackId(t[e]))}_showPrevStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)-1;t[e]||(e=t.length-1),this.showStack(this._getStackId(t[e]))}_createRotatorView(){const t=new tv(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 ev(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.getPositionOptions()),this._fakePanelsView.updatePosition(),i&&(this._singleViewMode=!0)}}class tv extends ${constructor(t){super(t);const e=t.t,n=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new Et,this.buttonPrevView=this._createButtonView(e("Previous"),K.previousArrow),this.buttonNextView=this._createButtonView(e("Next"),K.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 it(this.locale);return n.set({label:t,icon:e,tooltip:!0}),n}}class ev extends ${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=>i?"":"ck-hidden"))],style:{top:n.to("top",fa),left:n.to("left",fa),width:n.to("width",fa),height:n.to("height",fa)}},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 $;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 X(this._balloonPanelView.element);Object.assign(this,{top:t,left:e,width:n,height:i})}}}var ba=P(8298),Ao={attributes:{"data-cke":!0}};Ao.setAttributes=H(),Ao.insert=V().bind(null,"head"),Ao.domAPI=j(),Ao.insertStyleElement=U(),F()(ba.A,Ao),ba.A&&ba.A.locals&&ba.A.locals;const $n=Pn("px");class nv extends ${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 ge({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:e.to("isSticky",(n=>n?"block":"none")),height:e.to("isSticky",(n=>n?$n(this._contentPanelRect.height):null))}}}).render(),this.contentPanelElement=new ge({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?$n(this._contentPanelPlaceholder.getBoundingClientRect().width):null)),top:e.to("_stickyTopOffset",(n=>n&&$n(n))),bottom:e.to("_stickyBottomOffset",(n=>n&&$n(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(A.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 X(this.limiterElement);let e=t.getVisible();if(e){const n=new X(A.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=$n(-A.window.scrollX)}_stickToBottomOfLimiter(t){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!0,this._stickyTopOffset=null,this._stickyBottomOffset=t,this._marginLeft=$n(-A.window.scrollX)}_unstick(){this.isSticky=!1,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=null,this._stickyBottomOffset=null,this._marginLeft=null}get _contentPanelRect(){return new X(this.contentPanelElement)}}class iv extends Vs{constructor(t,e){const n=t.t,i=Object.assign({},{showResetButton:!0,showIcon:!0,creator:sa},e);super(t,i.creator),this.label=e.label,this._viewConfig=i,this._viewConfig.showIcon&&(this.iconView=new ae,this.iconView.content=K.loupe,this.fieldWrapperChildren.add(this.iconView,0),this.extendTemplate({attributes:{class:"ck-search__query_with-icon"}})),this._viewConfig.showResetButton&&(this.resetButtonView=new it(t),this.resetButtonView.set({label:n("Clear"),icon:K.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 ov extends ${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 rv extends ${constructor(t){super(t),this.children=this.createCollection(),this.focusTracker=new Et,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new we({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 dp=/[\\^$.*+?()[\]{}|]/g,sv=RegExp(dp.source);const up=function(o){return(o=Nl(o))&&sv.test(o)?o.replace(dp,"\\$&"):o};var wa=P(8107),_o={attributes:{"data-cke":!0}};_o.setAttributes=H(),_o.insert=V().bind(null,"head"),_o.domAPI=j(),_o.insertStyleElement=U(),F()(wa.A,_o),wa.A&&wa.A.locals&&wa.A.locals;class av extends ${constructor(t,e){super(t),this._config=e,this.filteredView=e.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new Et,this.keystrokes=new Rt,this.resultsView=new rv(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 ov,this._enableDefaultInfoViewBehavior(),this.on("render",(()=>{this.search("")}))),this.resultsView.children.addMany([this.infoView,this.filteredView]),this.focusCycler=new we({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(""),this.filteredView.element.scrollTo(0,0)}search(t){const e=t?new RegExp(up(t),"ig"):null,n=this.filteredView.filter(e);this.fire("search",{query:t,...n})}_createSearchTextQueryView(){const t=new iv(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 Aa=P(5727),Co={attributes:{"data-cke":!0}};Co.setAttributes=H(),Co.insert=V().bind(null,"head"),Co.domAPI=j(),Co.insertStyleElement=U(),F()(Aa.A,Co),Aa.A&&Aa.A.locals&&Aa.A.locals;const oi=class oi extends av{constructor(t,e){super(t,e),this._config=e;const n=Pn("px");this.extendTemplate({attributes:{class:["ck-autocomplete"]}});const i=this.resultsView.bindTemplate;this.resultsView.set("isVisible",!1),this.resultsView.set("_position","s"),this.resultsView.set("_width",0),this.resultsView.extendTemplate({attributes:{class:[i.if("isVisible","ck-hidden",(r=>!r)),i.to("_position",(r=>`ck-search__results_${r}`))],style:{width:i.to("_width",n)}}}),this.focusTracker.on("change:isFocused",((r,s,a)=>{this._updateResultsVisibility(),a?this.resultsView.element.scrollTop=0:e.resetOnBlur&&this.queryView.reset()})),this.on("search",(()=>{this._updateResultsVisibility(),this._updateResultsViewWidthAndPosition()})),this.keystrokes.set("esc",((r,s)=>{this.resultsView.isVisible&&(this.queryView.focus(),this.resultsView.isVisible=!1,s())})),this.listenTo(A.document,"scroll",(()=>{this._updateResultsViewWidthAndPosition()})),this.on("change:isEnabled",(()=>{this._updateResultsVisibility()})),this.filteredView.on("execute",((r,{value:s})=>{this.focus(),this.reset(),this.queryView.fieldView.value=this.queryView.fieldView.element.value=s,this.resultsView.isVisible=!1})),this.resultsView.on("change:isVisible",(()=>{this._updateResultsViewWidthAndPosition()}))}_updateResultsViewWidthAndPosition(){if(!this.resultsView.isVisible)return;this.resultsView._width=new X(this.queryView.fieldView.element).width;const t=oi._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:oi.defaultResultsPositions});this.resultsView._position=t?t.name:"s"}_updateResultsVisibility(){const t=this._config.queryMinChars===void 0?0:this._config.queryMinChars,e=this.queryView.fieldView.element.value.length;this.resultsView.isVisible=this.focusTracker.isFocused&&this.isEnabled&&e>=t}};oi.defaultResultsPositions=[t=>({top:t.bottom,left:t.left,name:"s"}),(t,e)=>({top:t.top-e.height,left:t.left,name:"n"})],oi._getOptimalPosition=Zr;let hp=oi;var _a=P(9529),vo={attributes:{"data-cke":!0}};vo.setAttributes=H(),vo.insert=V().bind(null,"head"),vo.domAPI=j(),vo.insertStyleElement=U(),F()(_a.A,vo),_a.A&&_a.A.locals&&_a.A.locals;var Ca=P(109),yo={attributes:{"data-cke":!0}};yo.setAttributes=H(),yo.insert=V().bind(null,"head"),yo.domAPI=j(),yo.insertStyleElement=U(),F()(Ca.A,yo),Ca.A&&Ca.A.locals&&Ca.A.locals;var va=P(2710),xo={attributes:{"data-cke":!0}};xo.setAttributes=H(),xo.insert=V().bind(null,"head"),xo.domAPI=j(),xo.insertStyleElement=U(),F()(va.A,xo),va.A&&va.A.locals&&va.A.locals;var ya=P(3344),Eo={attributes:{"data-cke":!0}};Eo.setAttributes=H(),Eo.insert=V().bind(null,"head"),Eo.domAPI=j(),Eo.insertStyleElement=U(),F()(ya.A,Eo),ya.A&&ya.A.locals&&ya.A.locals;class cv extends bn{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 ae;return t.content=Ki,t.extendTemplate({attributes:{class:"ck-menu-bar__menu__button__arrow"}}),t}}
8803var xa=P(9108),Do={attributes:{"data-cke":!0}};Do.setAttributes=H(),Do.insert=V().bind(null,"head"),Do.domAPI=j(),Do.insertStyleElement=U(),F()(xa.A,Do),xa.A&&xa.A.locals&&xa.A.locals;class lv extends ${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 Ea=P(4),Io={attributes:{"data-cke":!0}};Io.setAttributes=H(),Io.insert=V().bind(null,"head"),Io.domAPI=j(),Io.insertStyleElement=U(),F()(Ea.A,Io),Ea.A&&Ea.A.locals&&Ea.A.locals;const Uc=class Uc extends ${constructor(t){super(t);const e=this.bindTemplate;this.buttonView=new cv(t),this.buttonView.delegate("mouseenter").to(this),this.buttonView.bind("isOn","isEnabled").to(this,"isOpen","isEnabled"),this.panelView=new lv(t),this.panelView.bind("isVisible").to(this,"isOpen"),this.keystrokes=new Rt,this.focusTracker=new Et,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("panelPosition","w"),this.set("class",void 0),this.set("parentMenuView",null),this.setTemplate({tag:"div",attributes:{class:["ck","ck-menu-bar__menu",e.to("class"),e.if("isEnabled","ck-disabled",(n=>!n)),e.if("parentMenuView","ck-menu-bar__menu_top-level",(n=>!n))]},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),Xe.closeOnEscKey(this),this._repositionPanelOnOpen()}_attachBehaviors(){this.parentMenuView?(Xe.openOnButtonClick(this),Xe.openOnArrowRightKey(this),Xe.closeOnArrowLeftKey(this),Xe.openAndFocusOnEnterKeyPress(this),Xe.closeOnParentClose(this)):(this._propagateArrowKeystrokeEvents(),Xe.openAndFocusPanelOnArrowDownKey(this),Xe.toggleOnButtonClick(this))}_propagateArrowKeystrokeEvents(){this.keystrokes.set("arrowright",((t,e)=>{this.fire("arrowright"),e()})),this.keystrokes.set("arrowleft",((t,e)=>{this.fire("arrowleft"),e()}))}_repositionPanelOnOpen(){this.on("change:isOpen",((t,e,n)=>{if(!n)return;const i=Uc._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=i?i.name:this._panelPositions[0].name}))}focus(){this.buttonView.focus()}get _panelPositions(){const{southEast:t,southWest:e,northEast:n,northWest:i,westSouth:r,eastSouth:s,westNorth:a,eastNorth:c}=U0;return this.locale.uiLanguageDirection==="ltr"?this.parentMenuView?[s,c,r,a]:[t,e,n,i]:this.parentMenuView?[r,a,s,c]:[e,t,i,n]}};Uc._getOptimalPosition=Zr;let tn=Uc;class Da extends Ys{constructor(t){super(t),this.role="menu",this.items.on("change",this._setItemsCheckSpace.bind(this))}_setItemsCheckSpace(){const t=Array.from(this.items).some((e=>{const n=mp(e);return n&&n.isToggleable}));this.items.forEach((e=>{const n=mp(e);n&&(n.hasCheckSpace=t)}))}}function mp(o){return o instanceof Ze?o.children.map((t=>(function(e){return typeof e=="object"&&"buttonView"in e&&e.buttonView instanceof it})(t)?t.buttonView:t)).find((t=>t instanceof bn)):null}class gp extends w0{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 Ia=P(497),So={attributes:{"data-cke":!0}};So.setAttributes=H(),So.insert=V().bind(null,"head"),So.domAPI=j(),So.insertStyleElement=U(),F()(Ia.A,So),Ia.A&&Ia.A.locals&&Ia.A.locals;const pp=["mouseenter","arrowleft","arrowright","change:isOpen"];class dv extends ${constructor(t){super(t),this.menus=[];const e=t.t,n=this.bindTemplate;this.set({isOpen:!1,isFocusBorderEnabled:!1}),this._setupIsOpenUpdater(),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-menu-bar",n.if("isFocusBorderEnabled","ck-menu-bar_focus-border-enabled")],"aria-label":e("Editor menu bar"),role:"menubar"},children:this.children})}
vendor: 4,483 bytes, line 8803
8803fillFromConfig(t,e,n=[]){const i=G0({normalizedConfig:t,locale:this.locale,componentFactory:e,extraItems:n}).items.map((r=>this._createMenu({componentFactory:e,menuDefinition:r})));this.children.addMany(i)}render(){super.render(),Wn.toggleMenusAndFocusItemsOnHover(this),Wn.closeMenusWhenTheBarCloses(this),Wn.closeMenuWhenAnotherOnTheSameLevelOpens(this),Wn.focusCycleMenusOnArrows(this),Wn.closeOnClickOutside(this),Wn.enableFocusHighlightOnInteraction(this)}focus(){this.children.first&&this.children.first.focus()}close(){for(const t of this.children)t.isOpen=!1}registerMenu(t,e=null){e?(t.delegate(...pp).to(e),t.parentMenuView=e):t.delegate(...pp).to(this,(n=>"menu:"+n)),t._attachBehaviors(),this.menus.push(t)}_createMenu({componentFactory:t,menuDefinition:e,parentMenuView:n}){const i=this.locale,r=new tn(i);return this.registerMenu(r,n),r.buttonView.set({label:e.label}),r.once("change:isOpen",(()=>{const s=new Da(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 ha(i,e);if(kt(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 gd(i))}return r}_createMenuItemContentFromFactory({componentName:t,parentMenuView:e,componentFactory:n}){const i=n.create(t);return i instanceof tn||i instanceof Pt||i instanceof gp?(this._registerMenuTree(i,e),i.on("execute",(()=>{this.close()})),i):(nt("menu-bar-component-unsupported",{componentName:t,componentView:i}),null)}_registerMenuTree(t,e){if(!(t instanceof tn))return void t.delegate("mouseenter").to(e);this.registerMenu(t,e);const n=t.panelView.children.filter((r=>r instanceof Da))[0];if(!n)return void t.delegate("mouseenter").to(e);const i=n.items.filter((r=>r instanceof Ze));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 uv extends Y0{constructor(t,e){super(t),this.view=e,this._toolbarConfig=Wg(t.config.get("toolbar")),this._elementReplacer=new Ab,this.listenTo(t.editing.view,"scrollToTheSelection",this._handleScrollToTheSelectionWithStickyPanel.bind(this))}get element(){return this.view.element}init(t){const e=this.editor,n=this.view,i=e.editing.view,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&&this._initMenuBar(n.menuBarView),this._initDialogPluginIntegration(),this._initContextualBalloonIntegration(),this.fire("ready")}destroy(){super.destroy();const t=this.view,e=this.editor.editing.view;this._elementReplacer.restore(),e.getDomRoot(t.editable.name)&&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),Xh({view:e,element:n,isDirectHost:!1,keepOnFocus:!0})}_initContextualBalloonIntegration(){if(!this.editor.plugins.has("ContextualBalloon"))return;const{stickyPanel:t}=this.view,e=this.editor.plugins.get("ContextualBalloon");e.on("getPositionOptions",(i=>{const r=i.return;if(!r||!t.isSticky||!t.element)return;const s=new X(t.element).height,a=typeof r.target=="function"?r.target():r.target,c=typeof r.limiter=="function"?r.limiter():r.limiter;if(a&&c&&new X(a).height>=new X(c).height-s)return;const l={...r.viewportOffsetConfig},d=(l.top||0)+s;
8803i.return={...r,viewportOffsetConfig:{...l,top:d}}}),{priority:"low"});const n=()=>{e.visibleView&&e.updatePosition()};this.listenTo(t,"change:isSticky",n),this.listenTo(this.editor.ui,"change:viewportOffset",n)}_handleScrollToTheSelectionWithStickyPanel(t,e,n){const i=this.view.stickyPanel;if(i.isSticky){const r=new X(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 X(t.contentPanelElement);r[1]<s.bottom+Vi.defaultOffset&&(r[1]=s.bottom+Vi.defaultOffset)}),{priority:"high"})}),{priority:"low"})}}var Sa=P(7388),Mo={attributes:{"data-cke":!0}};Mo.setAttributes=H(),Mo.insert=V().bind(null,"head"),Mo.domAPI=j(),Mo.insertStyleElement=U(),F()(Sa.A,Mo),Sa.A&&Sa.A.locals&&Sa.A.locals;class hv extends Z0{constructor(t,e,n={}){super(t),this.stickyPanel=new nv(t),this.toolbar=new pd(t,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),n.useMenuBar&&(this.menuBarView=new dv(t)),this.editable=new X0(t,e,void 0,{label:n.label})}render(){super.render(),this.menuBarView?this.stickyPanel.content.addMany([this.menuBarView,this.toolbar]):this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class mv extends ud(dd){constructor(t,e={}){if(!Ma(t)&&e.initialData!==void 0)throw new E("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 Ma(s)?(a=s,a instanceof HTMLTextAreaElement?a.value:a.innerHTML):s;var a})(t)),Ma(t)&&(this.sourceElement=t),this.model.document.createRoot();const n=!this.config.get("toolbar.shouldNotGroupWhenFull"),i=this.config.get("menuBar"),r=new hv(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:n,useMenuBar:i.isVisible,label:this.config.get("label")});this.ui=new uv(this,r),(function(s){if(!an(s.updateSourceElement))throw new E("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();an(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(Ma(t)?t:null))).then((()=>i.data.init(i.config.get("initialData")))).then((()=>i.fire("ready"))).then((()=>i)))}))}}function Ma(o){return Ue(o)}class Bo extends Ke{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 Wt(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 Tm(e,{cacheFiles:n})};if(t.type=="drop"||t.type=="dragover"){const r=uh(t);i.dropRange=r&&this.view.domConverter.domRangeToView(r)}this.fire(t.type,t,i)}}const fp=["figcaption","li"],kp=["ol","ul"];function bp(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` 8804`;let t="",e=null;for(const n of o.getChildren())t+=gv(n,e)+bp(n),e=n;return t}
8804function gv(o,t){return t?o.is("element","li")&&!o.isEmpty&&o.getChild(0).is("containerElement")||kp.includes(o.name)&&kp.includes(t.name)?` 8805 8806`:o.is("containerElement")||t.is("containerElement")?fp.includes(o.name)||fp.includes(t.name)?` 8807`:o.is("element")&&o.getCustomProperty("dataPipeline:transparentRendering")||t.is("element")&&t.getCustomProperty("dataPipeline:transparentRendering")?"":` 8808 8809`:"":""}const pv=function(o,t){return o&&Dh(o,t,ui)},fv=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 Mn,u;if(!(u===void 0?bs(l,c,3,n,d):u))return!1}}return!0},wp=function(o){return o==o&&!kt(o)},kv=function(o){for(var t=ui(o),e=t.length;e--;){var n=t[e],i=o[n];t[e]=[n,i,wp(i)]}return t},Ap=function(o,t){return function(e){return e!=null&&e[o]===t&&(t!==void 0||o in Object(e))}},bv=function(o){var t=kv(o);return t.length==1&&t[0][2]?Ap(t[0][0],t[0][1]):function(e){return e===o||fv(e,o,t)}},wv=function(o,t){return o!=null&&t in Object(o)},Av=function(o,t,e){for(var n=-1,i=(t=cs(t,o)).length,r=!1;++n<i;){var s=zn(t[n]);if(!(r=o!=null&&e(o,s)))break;o=o[s]}return r||++n!=i?r:!!(i=o==null?0:o.length)&&il(i)&&Gr(s,i)&&($t(o)||qr(o))},_v=function(o,t){return o!=null&&Av(o,t,wv)},Cv=function(o,t){return Bl(o)&&wp(t)?Ap(zn(o),t):function(e){var n=wi(e,o);return n===void 0&&n===t?_v(e,o):bs(t,n,3)}},vv=function(o){return function(t){return t==null?void 0:t[o]}},yv=function(o){return function(t){return Pl(t,o)}},xv=function(o){return Bl(o)?vv(zn(o)):yv(o)},Ev=function(o){return typeof o=="function"?o:o==null?Ge:typeof o=="object"?$t(o)?Cv(o[0],o[1]):bv(o):xv(o)},Dv=function(o,t){var e={};return t=Ev(t),pv(o,(function(n,i,r){Ur(e,i,t(n,i,r))})),e};class To extends R{constructor(){super(...arguments),this._markersToCopy=new Map}static get pluginName(){return"ClipboardMarkersUtils"}static get isOfficialPlugin(){return!0}_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])=>
8809{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;return a&&a.start&&a.end&&(this._getMarkerClipboardConfig(r.name).duplicateOnPaste?i[this._getUniqueMarkerName(r.name)]=i[r.name]:c=!0,a=null),c||(i[r.name]={...a,[r.type]:s}),r.markerElement&&t.remove(r.markerElement),i}),{});return Dv(n,(i=>new T(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=ne().substring(1,6);return e.length===3?`${e.slice(0,2).join(":")}:${n}`:`${e.join(":")}:${n}`}}class ce extends R{static get pluginName(){return"ClipboardPipeline"}static get isOfficialPlugin(){return!0}static get requires(){return[To]}init(){this.editor.editing.view.addObserver(Bo),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(m){return m.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,((p,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 Wt(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",bp(s.
vendor: 6,920 bytes, line 8809
8809content))),s.method=="cut"&&t.model.deleteContent(e.selection)}),{priority:"low"})}}class _p{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("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(t=!1){this.isLocked&&!t||(this._batch=null,this._size=0)}}class Iv extends tt{constructor(t,e){super(t),this._buffer=new _p(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 Cp=["insertText","insertReplacementText"],Sv=[...Cp,"insertCompositionText"];class Mv extends De{constructor(t){super(t),this.focusObserver=t.getObserver(ws);const e=v.isAndroid?Sv:Cp,n=t.document;n.on("beforeinput",((i,r)=>{if(!this.isEnabled)return;const{data:s,targetRanges:a,inputType:c,domEvent:l}=r;if(!e.includes(c))return;this.focusObserver.flush();const d=new Wt(n,"insertText");n.fire(d,new Vn(t,l,{text:s,selection:t.createSelection(a)})),d.stop.called&&i.stop()})),v.isAndroid||n.on("compositionend",((i,{data:r,domEvent:s})=>{this.isEnabled&&r&&n.fire("insertText",new Vn(t,s,{text:r}))}),{priority:"lowest"})}observe(){}stopObserving(){}}class vp extends R{static get pluginName(){return"Input"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.model,n=t.editing.view,i=t.editing.mapper,r=e.document.selection;this._compositionQueue=new Bv(t),n.addObserver(Mv);const s=new Iv(t,t.config.get("typing.undoStep")||20);t.commands.add("insertText",s),t.commands.add("input",s),this.listenTo(n.document,"insertText",((a,c)=>{n.document.isComposing||c.preventDefault(),v.isAndroid&&n.document.isComposing&&this._compositionQueue.flush("next beforeinput");const{text:l,selection:d}=c;let u;u=d?Array.from(d.getRanges()).map((p=>i.toModelRange(p))):Array.from(r.getRanges());let h=l;if(v.isAndroid){const p=Array.from(u[0].getItems()).reduce(((k,b)=>k+(b.is("$textProxy")?b.data:"")),"");if(p&&(p.length<=h.length?h.startsWith(p)&&(h=h.substring(p.length),u[0].start=u[0].start.getShiftedBy(p.length)):p.startsWith(h)&&(u[0].start=u[0].start.getShiftedBy(h.length),h="")),h.length==0&&u[0].isCollapsed)return}const m={text:h,selection:e.createSelection(u)};v.isAndroid&&n.document.isComposing?this._compositionQueue.push(m):(t.execute("insertText",m),n.scrollToTheSelection())})),v.isAndroid?this.listenTo(n.document,"keydown",((a,c)=>{!r.isCollapsed&&c.keyCode==229&&n.document.isComposing&&yp(e,s)})):this.listenTo(n.document,"compositionstart",(()=>{r.isCollapsed||yp(e,s)})),v.isAndroid?(this.listenTo(n.document,"mutations",((a,{mutations:c})=>{if(n.document.isComposing)for(const{node:l}of c){const d=Tv(l,i),u=i.toModelElement(d);if(this._compositionQueue.isComposedElement(u))return void this._compositionQueue.flush("mutations")}})),this.listenTo(n.document,"compositionend",(()=>{this._compositionQueue.flush("composition end")})),this.listenTo(n.document,"compositionend",(()=>{const a=[];for(const c of this._compositionQueue.flushComposedElements()){const l=i.toViewElement(c);l&&a.push({type:"children",node:l})}a.length&&n.document.fire("mutations",{mutations:a})}),{priority:"lowest"})):this.listenTo(n.document,"compositionend",(()=>{n.document.fire("mutations",{mutations:[]})}),{priority:"lowest"})}destroy(){super.destroy(),this._compositionQueue.destroy()}}class Bv{constructor(t){this.flushDebounced=pn((()=>this.flush("timeout")),50),this._queue=[],this._compositionElements=new Set,this.editor=t}destroy(){for(this.flushDebounced.cancel(),this._compositionElements.clear();this._queue.length;)this.shift()}get length(){return this._queue.length}push(t){const e={text:t.text};if(t.selection){e.selectionRanges=[];for(const n of t.selection.getRanges())e.selectionRanges.push(Ut.fromRange(n)),this._compositionElements.add(n.start.parent)}this._queue.push(e),this.flushDebounced()}shift(){const t=this._queue.shift(),e={text:t.text};if(t.selectionRanges){const n=t.selectionRanges.map((i=>(function(r){const s=r.toRange();return r.detach(),s.root.rootName=="$graveyard"?null:s})(i))).filter((i=>!!i));n.length&&(e.selection=this.editor.model.createSelection(n))}return e}flush(t){const e=this.editor,n=e.model,i=e.editing.view;if(this.flushDebounced.cancel(),!this._queue.length)return;const r=e.commands.get("insertText").buffer;n.enqueueChange(r.batch,(()=>{for(r.lock();this._queue.length;){const s=this.shift();e.execute("insertText",s)}r.unlock()})),i.scrollToTheSelection()}isComposedElement(t){return this._compositionElements.has(t)}flushComposedElements(){const t=Array.from(this._compositionElements);return this._compositionElements.clear(),t}}function yp(o,t){if(!t.isEnabled)return;const e=t.buffer;e.lock(),o.enqueueChange(e.batch,(()=>{o.deleteContent(o.document.selection)})),e.unlock()}function Tv(o,t){let e=o.is("$text")?o.parent:o;for(;!t.toModelElement(e);)e=e.parent;return e}class xp extends tt{constructor(t,e){super(t),this.direction=e,this._buffer=new _p(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;
8809r.getFirstRange().getMinimalFlatRanges().forEach((l=>{c+=Xc(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 Ep="word",en="selection",Yn="backward",No="forward",Dp={deleteContent:{unit:en,direction:Yn},deleteContentBackward:{unit:"codePoint",direction:Yn},deleteWordBackward:{unit:Ep,direction:Yn},deleteHardLineBackward:{unit:en,direction:Yn},deleteSoftLineBackward:{unit:en,direction:Yn},deleteContentForward:{unit:"character",direction:No},deleteWordForward:{unit:Ep,direction:No},deleteHardLineForward:{unit:en,direction:No},deleteSoftLineForward:{unit:en,direction:No}};class Nv extends De{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=Dp[c];if(!l)return;const d={direction:l.direction,unit:l.unit,sequence:n};d.unit==en&&(d.selectionToRemove=t.createSelection(s[0])),c==="deleteContentBackward"&&(v.isAndroid&&(d.sequence=1),(function(h){if(h.length!=1||h[0].isCollapsed)return!1;const m=h[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let p=0;for(const{nextPosition:k,item:b}of m){if(k.parent.is("$text")){const C=k.parent.data,I=k.offset;if(yl(C,I)||xl(C,I)||Oh(C,I))continue;p++}else(b.is("containerElement")||b.is("emptyElement"))&&p++;if(p>1)return!0}return!1})(s)&&(d.unit=en,d.selectionToRemove=t.createSelection(s)));const u=new Rn(e,"delete",s[0]);e.fire(u,new Vn(t,a,d)),u.stop.called&&i.stop()})),v.isBlink&&(function(i){const r=i.view,s=r.document;let a=null,c=!1;function l(u){return u==ot.backspace||u==ot.delete}function d(u){return u==ot.backspace?Yn:No}s.on("keydown",((u,{keyCode:h})=>{a=h,c=!1})),s.on("keyup",((u,{keyCode:h,domEvent:m})=>{const p=s.selection,k=i.isEnabled&&h==a&&l(h)&&!p.isCollapsed&&!c;if(a=null,k){const b=p.getFirstRange(),C=new Rn(s,"delete",b),I={unit:en,direction:d(h),selectionToRemove:p};s.fire(C,new Vn(r,m,I))}})),s.on("beforeinput",((u,{inputType:h})=>{const m=Dp[h];l(a)&&m&&m.direction==d(a)&&(c=!0)}),{priority:"high"}),s.on("beforeinput",((u,{inputType:h,data:m})=>{a==ot.delete&&h=="insertText"&&m=="�"&&u.stop()}),{priority:"high"})})(this)}observe(){}stopObserving(){}}class Re extends R{static get pluginName(){return"Delete"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.editing.view,n=e.document,i=t.model.document;e.addObserver(Nv),this._undoOnBackspace=!1;const r=new xp(t,"forward");t.commands.add("deleteForward",r),t.commands.add("forwardDelete",r),t.commands.add("delete",new xp(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",m={sequence:l};if(u=="selection"){const p=Array.from(d.getRanges()).map((k=>t.editing.mapper.toModelRange(k)));m.selection=t.model.createSelection(p)}else m.unit=u;t.execute(h,m),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._und
8809oOnBackspace=!1,t.execute("undo"),a.preventDefault(),s.stop())}),{context:"$capture"}),this.listenTo(i,"change",(()=>{this._undoOnBackspace=!1})))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class Pv extends R{static get requires(){return[vp,Re]}static get pluginName(){return"Typing"}static get isOfficialPlugin(){return!0}}function Ip(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 Sp extends dt(){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}=Ip(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 Mp extends R{constructor(t){super(t),this._isNextGravityRestorationSkipped=!1,this.attributes=new Set,this._overrideUid=null}static get pluginName(){return"TwoStepCaretMovement"}static get isOfficialPlugin(){return!0}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==ot.arrowright,l=a.keyCode==ot.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&&le(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||!Fe(i,e))&&!!le(r,e)&&(Lo(t),Fe(i,e)&&le(r,e,!0)?Po(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?(Lo(t),this._restoreGravity(),le(r,e,!0)?Po(n,e):Ba(n,e,r),!0):r.isAtStart?!!Fe(i,e)&&(Lo(t),Ba(n,e,r),!0):!Fe(i,e)&&le(r,e,!0)?(Lo(t),Ba(n,e,r),!0):!!Bp(r,e)&&(r.isAtEnd&&!Fe(i,e)&&le(r,e)?(Lo(t),Ba(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(ad);let r=!1;this.listenTo(i,"mousedown",(()=>{r=!0})),this.listenTo(i,"selectionChange",(()=>{const s=this.attributes;if(!r||(r=!1,!n.isCollapsed)||!Fe(n,s))return;const a=n.getFirstPosition();le(a,s)&&(a.isAtStart||le(a,s,!0)?Po(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();Fe(e,n)&&le(i,n)&&Po(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=Fe(n,this.attributes)&&!Bp(a,this.attributes)}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{r&&(r=!1,s||t.model.enqueueChange((()=>{const a=n.getFirstPosition();Fe(n,this.attributes)&&le(a,this.attributes)&&(a.isAtStart||le(a,this.attributes,!0)?Po(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}))}}
8809function Fe(o,t){for(const e of t)if(o.hasAttribute(e))return!0;return!1}function Ba(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 Po(o,t){o.change((e=>{e.removeSelectionAttribute(t)}))}function Lo(o){o.preventDefault()}function Bp(o,t){return le(o.getShiftedBy(-1),t)}function le(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 Tp={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,"â"]}},Np={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},Lv=["symbols","mathematical","typography","quotes"];class Ov extends R{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}static get isOfficialPlugin(){return!0}constructor(t){super(t),t.config.define("typing",{transformations:{include:Lv}})}init(){const t=this.editor.model.document.selection;t.on("change:range",(()=>{this.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTransformationWatchers()}_enableTransformationWatchers(){const t=this.editor,e=t.model,n=t.plugins.get("Delete"),i=(function(s){const a=s.extra||[],c=s.remove||[],l=d=>!c.includes(d);return(function(d){const u=new Set;for(const h of d)if(typeof h=="string"&&Np[h])for(const m of Np[h])u.add(m);else u.add(h);return Array.from(u)})(s.include.concat(a).filter(l)).filter(l).map((d=>typeof d=="string"&&Tp[d]?Tp[d]:d)).filter((d=>typeof d=="object")).map((d=>({from:zv(d.from),to:Rv(d.to)})))})(t.config.get("typing.transformations")),r=new Sp(t.model,(s=>{for(const a of i)if(a.from.test(s))return{normalizedTransformation:a}}));r.on("matched:data",((s,a)=>{if(!a.batch.isTyping)return;const{from:c,to:l}=a.normalizedTransformation,d=c.exec(a.text),u=l(d.slice(1)),h=a.range;let m=d.index;e.enqueueChange((p=>{for(let k=1;k<d.length;k++){const b=d[k],C=u[k-1];if(C==null){m+=b.length;continue}const I=h.start.getShiftedBy(m),M=e.createRange(I,I.getShiftedBy(b.length)),N=Fv(I);e.insertContent(p.createText(C,N),M),m+=C.length}e.enqueueChange((()=>{n.requestUndoOnBackspace()}))}))})),r.bind("isEnabled").to(this)}}function zv(o){return typeof o=="string"?new RegExp(`(${up(o)})$`):o}function Rv(o){return typeof o=="string"?()=>[o]:o instanceof Array?()=>o:o}function Fv(o){return(o.textNode?o.textNode:o.nodeAfter).getAttributes()}function Qn(o){return new RegExp(`(^|\\s)(${o})([^${o}]*)(${o})$`)}function Ta(o,t,e,n){return n.createRange(Pp(o,t,e,!0,n),Pp(o,t,e,!1,n))}function Pp(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*Lp(o,t){for(const e of t)e&&o.getAttributeProperties(e[0]).copyOnEnter&&(yield e)}class jv extends tt{execute(){this.editor.model.change((t=>
vendor: 9,874 bytes, line 8809
8809{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=Lp(t.model.schema,n.getAttributes());return Op(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 Op(t,n.focus),!0;t.setSelection(c,0)}}return!1}}function Op(o,t){o.split(t),o.setSelection(t.parent.nextSibling,0)}const Vv={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class zp extends De{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;v.isSafari&&n&&s=="insertParagraph"&&(s="insertLineBreak");const a=r.domEvent,c=Vv[s];if(!c)return;const l=new Rn(e,"enter",r.targetRanges[0]);e.fire(l,new Vn(t,a,{isSoft:c.isSoft})),l.stop.called&&i.stop()}))}observe(){}stopObserving(){}}class Na extends R{static get pluginName(){return"Enter"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.editing.view,n=e.document,i=this.editor.t;e.addObserver(zp),t.commands.add("enter",new jv(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 Hv extends tt{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=Lp(i.schema,s.getAttributes());Rp(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?Rp(i,r,s.focus):h&&r.setSelection(d,0)}})(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!((vd(a,n)||vd(c,n))&&a!==c)})(t.schema,e.selection)}}function Rp(o,t,e){const n=t.createElement("softBreak");o.insertContent(n,e),t.setSelection(n,"after")}function vd(o,t){return!o.is("rootElement")&&(t.isLimit(o)||vd(o.parent,t))}class Uv extends R{static get pluginName(){return"ShiftEnter"}static get isOfficialPlugin(){return!0}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(zp),t.commands.add("shiftEnter",new Hv(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 qv extends at(){constructor(){super(...arguments),this._stack=[]}add(t,e){const n=this._stack,i=n[0];this._insertDescriptor(t);const r=n[0];i===r||yd(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||yd(i,r)||this.fire("change:top",{oldDescriptor:i,newDescriptor:r,writer:e})}_insertDescriptor(t){const e=this._stack,n=e.findIndex((r=>r.id===t.id));if(yd(t,e[n]))return;n>-1&&e.splice(n,1);let i=0;for(;e[i]&&Gv(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 yd(o,t){return o&&t&&o.priority==t.priority&&Pa(o.classes)==Pa(t.classes)}function Gv(o,t){return o.priority>t.priority||!(o.priority<t.priority)&&Pa(o.classes)>Pa(t.classes)}function Pa(o){return Array.isArray(o)?o.sort().join(","):o}const Wv='<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>',Fp="ck-widget_selected";function vt(o){return!!o.is("element")&&!!o.getCustomProperty("widget")}function xd(o,t,e={}){if(!o.is("containerElement"))throw new E("widget-to-widget-wrong-element-type",null,{element:o});return t.setAttribute("contenteditable","false",o),t.addClass("ck-widget",o),t.setCustomProperty("widget",!0,o),o.getFillerOffset=Yv,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 ae;return c.set("content",Wv),c.render(),a.appendChild(c.element),a}));i.insert(i.createPositionAt(n,0),r),i.addClass(["ck-widget_with-selection-handle"],n)})(o,t),jp(o,t),o}function Kv(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 $v(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 jp(o,t,e=Kv,n=$v){const i=new qv;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 Vp(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)})),jp(o,t),o}function Hp(o,t){const e=o.getSelectedElement();if(e){const n=nn(o);if(n)return t.createRange(t.createPositionAt(e,n))}return t.schema.findOptimalInsertionRange(o)}function Yv(){return null}const je="widget-type-around";function wn(o,t,e){return!!o&&vt(o)&&!e.isInline(t)}function nn(o){return o.getAttribute(je)}var La=P(8508),Oo={attributes:{"data-cke":!0}};Oo.setAttributes=H(),Oo.insert=V().bind(null,"head"),Oo.domAPI=j(),Oo.insertStyleElement=U(),F()(La.A,Oo),La.A&&La.A.locals&&La.A.locals;const Up=["before","after"],Qv=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,qp="ck-widget__type-around_disabled";class Zv extends R{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get isOfficialPlugin(){return!0}static get requires(){return[Na,Re]}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(qp,a):s.addClass(qp,a)})),r||t.model.change((s=>{s.removeSelectionAttribute(je)}))})),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=nn(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&&wn(c,s.item,e)&&((function(l,d,u){const h=l.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(m){const p=this.toDomElement(m);return(function(k,b){for(const C of Up){const I=new ge({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${C}`],title:b[C],"aria-hidden":"true"},children:[k.ownerDocument.importNode(Qv,!0)]});k.appendChild(I.render())}})(p,d),(function(k){const b=new ge({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});k.appendChild(b.render())})(p),p}));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
8809hema,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:[vt,"$text"],priority:"high"}),this._listenToIfEnabled(n,"change:range",((a,c)=>{c.directChange&&t.model.change((l=>{l.removeSelectionAttribute(je)}))})),this._listenToIfEnabled(e.document,"change:data",(()=>{const a=n.getSelectedElement();a&&wn(t.editing.mapper.toViewElement(a),a,i)||t.model.change((c=>{c.removeSelectionAttribute(je)}))})),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",((a,c,l)=>{const d=l.writer;if(this._currentFakeCaretModelElement){const p=l.mapper.toViewElement(this._currentFakeCaretModelElement);p&&(d.removeClass(Up.map(s),p),this._currentFakeCaretModelElement=null)}const u=c.selection.getSelectedElement();if(!u)return;const h=l.mapper.toViewElement(u);if(!wn(h,u,i))return;const m=nn(c.selection);m&&(d.addClass(s(m),h),this._currentFakeCaretModelElement=u)})),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",((a,c,l)=>{l||t.model.change((d=>{d.removeSelectionAttribute(je)}))}))}_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 m=Al(u,h);return m==="down"||m==="right"})(e.keyCode,n.locale.contentLanguageDirection),l=a.document.selection.getSelectedElement();let d;wn(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=nn(e.document.selection);return e.change((i=>n?n!==(t?"after":"before")?(i.removeSelectionAttribute(je),!0):!1:(i.setSelectionAttribute(je,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!!wn(e.editing.mapper.toViewElement(s),s,i)&&(n.change((a=>{r._setSelectionOverElement(s),a.setSelectionAttribute(je,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!!wn(r.toViewElement(a),a,i)&&(n.change((c=>{c.setSelection(a,"on"),c.setSelectionAttribute(je,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:wn(a,s,c)&&(this._insertParagraph(s,r.isSoft?"before":"after"),l=!0),l&&(r.preventDefault(),i.stop())}),{context:vt})}_enableInsertingParagraphsOnTypingKeystroke(){const t=this.editor.editing.view.document;this._listenToIfEnabled(t,"insertText",((e,n)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(n.selection=t.selection)}),{priority:"high"}),v.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=nn(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 m=(function(p,k){let b=k;for(const C of k.getAncestors({parentFirst:!0})){if(C.childCount>1||p.isLimit(C))break;b=C}return b})(i,u.start.parent);n.deleteContent(n.createSelection(m,"on"),{doNotAutoparagraph:!0})}else n.change((m=>{m.setSelection(u),t.execute(d?"deleteForward":"delete")}))}else n.change((h=>{h.setSelection(u),t.execute(d?"deleteForward":"delete")}))}s.preventDefault(),r.stop()}),{context:vt})}_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=nn(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;
8809if(r&&!r.is("documentSelection"))return;const a=nn(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")||nn(e)&&n.stop()}),{priority:"high"})}}function Jv(o){const t=o.model;return(e,n)=>{const i=n.keyCode==ot.arrowup,r=n.keyCode==ot.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 m=d.model;if(h){const p=u.isCollapsed?u.focus:u.getLastPosition(),k=Gp(m,p,"forward");if(!k)return null;const b=m.createRange(p,k),C=Wp(m.schema,b,"backward");return C?m.createRange(p,C):null}{const p=u.isCollapsed?u.focus:u.getFirstPosition(),k=Gp(m,p,"backward");if(!k)return null;const b=m.createRange(k,p),C=Wp(m.schema,b,"forward");return C?m.createRange(C,p):null}})(o,a,c);if(l){if(l.isCollapsed&&(a.isCollapsed||s))return;(l.isCollapsed||(function(d,u,h){const m=d.model,p=d.view.domConverter;if(h){const M=m.createSelection(u.start);m.modifySelection(M),M.focus.isAtEnd||u.start.isEqual(M.focus)||(u=m.createRange(M.focus,u.end))}const k=d.mapper.toViewRange(u),b=p.viewRangeToDom(k),C=X.getDomRangeRects(b);let I;for(const M of C)if(I!==void 0){if(Math.round(M.top)>=I)return!1;I=Math.max(I,Math.round(M.bottom))}else I=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 Gp(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 Wp(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 Oa=P(695),zo={attributes:{"data-cke":!0}};zo.setAttributes=H(),zo.insert=V().bind(null,"head"),zo.domAPI=j(),zo.insertStyleElement=U(),F()(Oa.A,zo),Oa.A&&Oa.A.locals&&Oa.A.locals;class Ro extends R{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get isOfficialPlugin(){return!0}static get requires(){return[Zv,Re]}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;vt(u)&&a.consumable.consume(l,"selection")&&c.setSelection(c.createRangeOn(u),{fake:!0,label:(h=u,h.getCustomProperty("widgetLabel").reduce(((m,p)=>typeof p=="function"?m?m+". "+p():p():m?m+". "+p:p),""))})})),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 m=h.item;vt(m)&&!Xv(m,d)&&(c.addClass(Fp,m),this._previouslySelected.add(m),d=m)}}),{priority:"low"}),e.addObserver(ad),this.listenTo(n,"mousedown",((...r)=>this._onMousedown(...r))),this.listenTo(n,"arrowKey",((...r)=>{this._handleSelectionChangeOnArrowKeyPress(...r)}),{context:[vt,"$text"]}),this.listenTo(n,"arrowKey",((...r)=>{this._preventDefaultOnArrowKeyPress(...r)}),{context:"$root"}),this.listenTo(n,"arrowKey",Jv(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:vt,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==ot.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("Move focus from an editable area back to the parent widget"),keystroke:"Esc"},{label:i("Insert a new paragraph directly after a widget"),keystroke:"Enter"},{label:i("Insert a new paragraph directly before a widget"),keystroke:"Shift+Enter"},{label:i("Move the caret to allow typing directly before a widget"),keystroke:[["arrowup"],["arrowleft"]]},{label:i("Move the caret to allow typing directly after a widget"),keystroke:[["arrowdown"],["arrowright"]]}]})}_onMousedown(t,e){const n=this.editor,i=n.editing.view,r=i.document;let s=e.target;if(!s)return;if(e.domEvent.detail>=3)return void(this._selectBlockContent(s)&&e.preventDefault());if(!vt(s)){const c=(function(l){let d=l;for(;d;){if(d.is("editableElement")||vt(d))return d;d=d.parent}return null})(s);if(!c)return;if(vt(c))s=c;else{const l=(function(d,u){const h=uh(u.domEvent);let m=null;if(m=h?d.domConverter.domRangeToView(h):d.createRange(d.createPositionAt(u.target,0)),!m)return null;const p=m.start;if(!p.parent)return null;let k=p.parent;return p.parent.is("editableElement")&&(p.isAtEnd&&p.nodeBefore?k=p.nodeBefore:p.isAtStart&&p.nodeAfter&&(k=p.nodeAfter)),k.is("$text")?k.parent:k})(i,e);if(!l||!vt(l))return;s=l}}v.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=>
vendor: 15,027 bytes, line 8809
8809{const l=r.isLimit(a)?null:(function(h,m){const p=new Pe({startPosition:h});for(const{item:k}of p){if(m.isLimit(k)||!k.is("element"))return null;if(m.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=Al(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(),m=r.getNearestSelectionRange(h,l?"forward":"backward");return void(m&&(i.change((p=>{p.setSelection(m)})),e.preventDefault(),t.stop()))}if(!s.isCollapsed&&!e.shiftKey){const h=s.getFirstPosition(),m=s.getLastPosition(),p=h.nodeAfter,k=m.nodeBefore;return void((p&&r.isObject(p)||k&&r.isObject(k))&&(i.change((b=>{b.setSelection(l?m: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(Fp,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(vt);if(!i)return!1;const r=e.toModelElement(i);return!!r&&(t.model.change((s=>{s.setSelection(r,"on")})),!0)}}function Xv(o,t){return!!t&&Array.from(o.getAncestors()).includes(t)}class za extends R{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[ka]}static get pluginName(){return"WidgetToolbarRepository"}static get isOfficialPlugin(){return!0}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||!vt(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 nt("widget-toolbar-no-items",{toolbarId:t});const s=this.editor,a=s.t,c=new pd(s.locale);if(c.ariaLabel=e||a("Widget toolbar"),this._toolbarDefinitions.has(t))throw new E("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)?Kp(this.editor,e):this._isToolbarInBalloon(t)||(t.initialized||(t.initialized=!0,t.view.fillFromConfig(t.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:t.view,position:$p(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);Kp(this.editor,i)}})))}_isToolbarVisible(t){return this._balloon.visibleView===t.view}_isToolbarInBalloon(t){return this._balloon.hasView(t.view)}}function Kp(o,t){const e=o.plugins.get("ContextualBalloon"),n=$p(o,t);e.updatePosition(n)}function $p(o,t){const e=o.editing.view,n=ze.defaultPositions;return{target:e.domConverter.mapViewToDom(t),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}var Ra=P(4095),Fo={attributes:{"data-cke":!0}};Fo.setAttributes=H(),Fo.insert=V().bind(null,"head"),Fo.domAPI=j(),Fo.insertStyleElement=U(),F()(Ra.A,Fo),Ra.A&&Ra.A.locals&&Ra.A.locals;const Ed=Pn("px");class ty extends ${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=>Ed(e))),top:t.to("top",(e=>Ed(e))),width:t.to("width",(e=>Ed(e)))}}})}}class Fa extends R{constructor(){super(...arguments),this.removeDropMarkerDelayed=vl((()=>this.removeDropMarker()),40),this._updateDropMarkerThrottled=ys((t=>this._updateDropMarker(t)),40),this._reconvertMarkerThrottled=ys((()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")}),0),this._dropTargetLineView=new ty,this._domEmitter=new(re()),this._scrollables=new Map}static get pluginName(){return"DragDropTarget"}static get isOfficialPlugin(){return!0}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=Yp(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=Yp(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:m,scrollY:p}=A.window,k=a?new X(a):null,b=l?new X(l):null,C=new X(u).excludeScrollbarsAndBorders(),I=k?k.bottom:C.top,M=b?b.top:C.bottom,N=A.window.getComputedStyle(u),G=I<=M?(I+M)/2:M;if(h.top<G&&G<h.bottom){const Q=C.left+parseFloat(N.paddingLeft),J=C.right-parseFloat(N.paddingRight),pt=Math.max(Q+m,h.left),St=Math.min(J+m,h.right);this._dropTargetLineView.set({isVisible:!0,left:pt,top:G+p,width:St-pt})}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=A.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 mi(n,this._reconvertMarkerThrottled);this._scrollables.set(e,{domElement:n,resizeObserver:i})}return new X(n).excludeScrollbarsAndBorders()}}function Yp(o,t,e,n,i,r,s){const a=o.model,c=o.editing.mapper;let l=Zp(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 ja(o,Zp(o,d.parent),n,i)}}}else if(a.schema.isInline(l))return ja(o,l,n,i)}if(a.schema.isBlock(l))return ja(o,l,n,i);if(a.schema.checkChild(l,"$block")){const d=Array.from(l.getChildren()).filter((m=>m.is("element")&&!ey(o,m)));let u=0,h=d.length;if(h==0)return a.createRange(a.createPositionAt(l,"end"));for(;u<h-1;){const m=Math.floor((u+h)/2);Qp(o,d[m],n,i)=="before"?h=m:u=m}return ja(o,d[u],n,i)}l=l.parent}return null}function ey(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 A.window.getComputedStyle(r).float!="none"}function ja(o,t,e,n){const i=o.model;return i.createRange(i.createPositionAt(t,Qp(o,t,e,n)))}function Qp(o,t,e,n){const i=o.editing.mapper,r=o.editing.view.domConverter,s=i.toViewElement(t),a=r.mapViewToDom(s),c=new X(a);return o.model.schema.isInline(t)?e<(c.left+c.right)/2?"before":"after":n<(c.top+c.bottom)/2?"before":"after"}function Zp(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)}class ny extends R{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new(re())}static get pluginName(){return"DragDropBlockToolbar"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;if(this.listenTo(t,"change:isReadOnly",((e,n,i)=>{i?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")})),v.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(A.document,"dragover",((n,i)=>this._handleBlockDragging(i))),this._domEmitter.listenTo(A.document,"drop",((n,i)=>this._handleBlockDragging(i))),this._domEmitter.listenTo(A.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(Bo).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;i&&i.closest(".ck-editor__editable")&&r.getObserver(Bo).onDomEvent({...t,type:t.type,dataTransfer:t.dataTransfer,target:i,clientX:e,clientY:n,preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}_handleBlockDragEnd(){this._isBlockDragging=!1}}var Va=P(7793),jo={attributes:{"data-cke":!0}};jo.setAttributes=H(),jo.insert=V().bind(null,"head"),jo.domAPI=j(),jo.insertStyleElement=U(),F()(Va.A,jo),Va.A&&Va.A.locals&&Va.A.locals;class iy extends R{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=vl((()=>this._clearDraggableAttributes()),40),this._blockMode=!1,this._domEmitter=new(re())}static get pluginName(){return"DragDrop"}static get isOfficialPlugin(){return!0}static get requires(){return[ce,Ro,Fa,ny]}init(){const t=this.editor,e=t.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,e.addObserver(Bo),e.addObserver(ad),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(t,"change:isReadOnly",((n,i,r)=>{r?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})),this.on("change:isEnabled",((n,i,r)=>{r||this._finalizeDragging(!1)})),v.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(Fa);this.listenTo(i,"dragstart",((s,a)=>
8809{if(a.target&&a.target.is("editableElement")||(this._prepareDraggedRange(a.target),!this._draggedRange))return void a.preventDefault();this._draggingUid=ne(),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(A.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"),v.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(Fa);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=""),Jp(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(ce);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=Jp(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(v.isAndroid||!r)return;this._clearDraggableAttributesDelayed.cancel();let s=Xp(r.target);if(v.isBlink&&!t.isReadOnly&&!s&&!n.selection.isCollapsed){const a=n.selection.getSelectedElement();a&&vt(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",(()=>{v.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(Fa).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?Xp(t):null;if(r){const l=e.editing.mapper.toModelElement(r);this._draggedRange=Ut.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=Ut.fromRange(a));const c=tf(n,s);if(s.length>1)this._draggedRange=Ut.fromRange(c),this._blockMode=!0;else if(s.length==1){const l=a.start.isTouching(c.start)&&a.end.isTouching(c.end);this._draggedRange=Ut.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=A.window.getComputedStyle(s);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=oe(A.document,"div",{style:"position: fixed; left: -999999px;"}),A.document.body.appendChild(this._previewContainer));const c=new X(s);if(s.contains(e))return;const l=parseFloat(a.paddingLeft),d=oe(A.document,"div");
vendor: 8,234 bytes, line 8809
8809d.className="ck ck-content",d.style.width=a.width,d.style.paddingLeft=`${c.left-n+l}px`,v.isiOS&&(d.style.backgroundColor="white"),i.domConverter.setContentOf(d,t.getData("text/html")),t.setDragImage(d,0,0),this._previewContainer.appendChild(d)}}function Jp(o){return v.isGecko?o.dropEffect:["all","copyMove"].includes(o.effectAllowed)?"move":"copy"}function Xp(o){if(o.is("editableElement"))return null;if(o.hasClass("ck-widget__selection-handle"))return o.findAncestor(vt);if(vt(o))return o;const t=o.findAncestor((e=>vt(e)||e.is("editableElement")));return vt(t)?t:null}function tf(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 tf(o,[i])}return o.createRange(r,s)}class oy extends R{static get pluginName(){return"PastePlainText"}static get isOfficialPlugin(){return!0}static get requires(){return[ce]}init(){const t=this.editor,e=t.model,n=t.editing.view,i=e.document.selection;n.addObserver(Bo),t.plugins.get(ce).on("contentInsertion",((r,s)=>{(function(a,c){let l=c.createRangeIn(a);if(a.childCount==1){const d=a.getChild(0);d.is("element")&&c.schema.isBlock(d)&&!c.schema.isObject(d)&&!c.schema.isLimit(d)&&(l=c.createRangeIn(d))}for(const d of l.getItems())if(!c.schema.isInline(d)||Array.from(d.getAttributeKeys()).find((u=>c.schema.getAttributeProperties(u).isFormatting)))return!1;return!0})(s.content,e)&&e.change((a=>{const c=Array.from(i.getAttributes()).filter((([d])=>e.schema.getAttributeProperties(d).isFormatting));i.isCollapsed||e.deleteContent(i,{doNotAutoparagraph:!0}),c.push(...i.getAttributes());const l=a.createRangeIn(s.content);for(const d of l.getItems())for(const u of c)e.schema.checkAttribute(d,u[0])&&a.setAttribute(u[0],u[1],d)}))}))}}class ef extends R{static get pluginName(){return"Clipboard"}static get isOfficialPlugin(){return!0}static get requires(){return[To,ce,iy,oy]}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 ry extends tt{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)||!nf(t.schema,n))do if(n=n.parent,!n)return;while(!nf(t.schema,n));t.change((i=>{i.setSelection(n,"in")}))}}function nf(o,t){return o.isLimit(t)&&(o.checkChild(t,"$text")||o.checkChild(t,"paragraph"))}const sy=wl("Ctrl+A");class ay extends R{static get pluginName(){return"SelectAllEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.t,n=t.editing.view.document;t.commands.add("selectAll",new ry(t)),this.listenTo(n,"keydown",((i,r)=>{Ln(r)===sy&&(t.execute("selectAll"),r.preventDefault())})),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Select all"),keystroke:"CTRL+A"}]})}}class cy extends R{static get pluginName(){return"SelectAllUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.ui.componentFactory.add("selectAll",(()=>{const e=this._createButton(it);return e.set({tooltip:!0}),e})),t.ui.componentFactory.add("menuBar:selectAll",(()=>this._createButton(Pt)))}_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 ly extends R{static get requires(){return[ay,cy]}static get pluginName(){return"SelectAll"}static get isOfficialPlugin(){return!0}}class of extends tt{constructor(t){super(t),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(t.data,"set",((e,n)=>{n[1]={...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=>!uy(u,c)));d.length&&(dy(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=BC([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 Dt(d.baseVersion)),e.addOperation(d),n.applyOperation(d),i.history.setOperationAsUndone(s,d)}}}}function dy(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 uy(o,t){return t.some((e=>e!==o&&e.containsRange(o,!0)))}class hy extends of{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,(()=>{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 my extends of{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 gy extends R{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.t;this._undoCommand=new hy(t),this._redoCommand=new my(t),t.commands.add("undo",this._und
8809oCommand),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 py extends R{static get pluginName(){return"UndoUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale,n=t.t,i=e.uiLanguageDirection=="ltr"?K.undo:K.redo,r=e.uiLanguageDirection=="ltr"?K.redo:K.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(it,t,e,n,i);return s.set({tooltip:!0}),s})),r.ui.componentFactory.add("menuBar:"+t,(()=>this._createButton(Pt,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 rf extends R{static get requires(){return[gy,py]}static get pluginName(){return"Undo"}static get isOfficialPlugin(){return!0}}class fy extends R{static get requires(){return[k0,ef,Na,ly,Uv,Pv,rf]}static get pluginName(){return"Essentials"}static get isOfficialPlugin(){return!0}}class ky extends dt(){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 Ae extends R{constructor(){super(...arguments),this.loaders=new he,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get isOfficialPlugin(){return!0}static get requires(){return[Lg]}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 nt("filerepository-no-upload-adapter"),null;const e=new sf(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 sf?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(Lg);if(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 sf extends dt(){constructor(t,e){super(),this.id=ne(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=e(this),this._reader=new ky,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 E("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 E("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)=>
8809{e.rejecter=i,e.isFulfilled=!1,t.then((r=>{e.isFulfilled=!0,n(r)})).catch((r=>{e.isFulfilled=!0,i(r)}))})),e}}const af="ckCsrfToken",by="abcdefghijklmnopqrstuvwxyz0123456789";function wy(){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})(af);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=by.charAt(r[s]%36);i+=Math.random()>.5?a.toUpperCase():a}return i})(40),t=af,e=o,document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+";path=/"),o}class Ay extends R{static get requires(){return[Ae]}static get pluginName(){return"CKFinderUploadAdapter"}static get isOfficialPlugin(){return!0}init(){const t=this.editor.config.get("ckfinder.uploadUrl");t&&(this.editor.plugins.get(Ae).createUploadAdapter=e=>new _y(e,t,this.editor.t))}}class _y{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",wy()),this.xhr.send(e)}}function on(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=Mt(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),m=o.model.createRangeOn(h);if(!m.containsRange(c)&&!c.end.isEqual(m.end))return;const p=e.exec(h.data.substr(0,c.end.offset));p&&o.model.enqueueChange((k=>{const b=k.createPositionAt(u,0),C=k.createPositionAt(u,p[0].length),I=new Ut(b,C);if(i({match:p})!==!1){k.remove(I);const M=o.model.document.selection.getFirstRange(),N=k.createRangeIn(u);!u.isEmpty||N.isEqual(M)||N.containsRange(M,!0)||k.remove(u)}I.detach(),o.model.enqueueChange((()=>{o.plugins.get("Delete").requestUndoOnBackspace()}))}))}))}function Zn(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:m}=a;const p=u+h+m;d+=a[0].length-p.length;const k=[d,d+u.length],b=[d+u.length+h.length,d+u.length+h.length+m.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)=>{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,m=h.parent,{text:p,range:k}=(function(M,N){let G=M.start;return{text:Array.from(M.getItems()).reduce(((J,pt)=>!pt.is("$text")&&!pt.is("$textProxy")||pt.getAttribute("code")?(G=N.createPositionAfter(pt),""):J+pt.data),""),range:N.createRange(G,M.end)}})(c.createRange(c.createPositionAt(m,0),h),c),b=r(p),C=cf(k.start,b.format,c),I=cf(k.start,b.remove,c);C.length&&I.length&&c.enqueueChange((M=>{if(n(M,C)!==!1){for(const N of I.reverse())M.remove(N);c.enqueueChange((()=>{o.plugins.get("Delete").requestUndoOnBackspace()}))}}))}))}function cf(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]))))}class Cy extends R{static get requires(){return[Re]}static get pluginName(){return"Autoformat"}static get isOfficialPlugin(){return!0}afterInit(){const t=this.editor,e=this.editor.t;this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats(),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Revert autoformatting action"),keystroke:"Backspace"}]})}_addListAutoformats(){const t=this.editor.commands;t.get("bulletedList")&&on(this.editor,this,/^[*-]\s$/,"bulletedList"),t.get("numberedList")&&on(this.editor,this,/^1[.|)]\s$/,"numberedList"),t.get("todoList")&&on(this.editor,this,/^\[\s?\]\s$/,"todoList"),t.get("checkTodoList")&&on(this.editor,this,/^\[\s?x\s?\]\s$/,(()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")}))}_addBasicStylesAutoformats(){const t=this.editor.commands;if(t.get("bold")){const e=Ha(this.editor,"bold");Zn(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,e),Zn(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,e)}if(t.get("italic")){const e=Ha(this.editor,"italic");Zn(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,e),Zn(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,e)}if(t.get("code")){const e=Ha(this.editor,"code");Zn(this.editor,this,/(`)([^`]+)(`)$/g,e)}if(t.get("strikethrough")){const e=Ha(this.editor,"strikethrough");Zn(this.editor,this,/(~~)([^~]+)(~~)$/g,e)}}_addHeadingAutoformats(){const t=this.editor.commands.get("heading");t&&t.modelElements.filter((e=>
vendor: 15,654 bytes, line 8809
8809e.match(/^heading[1-6]$/))).forEach((e=>{const n=e[7],i=new RegExp(`^(#{${n}})\\s$`);on(this.editor,this,i,(()=>{if(!t.isEnabled||t.value===e)return!1;this.editor.execute("heading",{value:e})}))}))}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&on(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const t=this.editor,e=t.model.document.selection;t.commands.get("codeBlock")&&on(t,this,/^```$/,(()=>{if(e.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})}))}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&on(this.editor,this,/^---$/,"horizontalLine")}}function Ha(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 lf extends tt{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 Jn="bold";class vy extends R{static get pluginName(){return"BoldEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:Jn}),t.model.schema.setAttributeProperties(Jn,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Jn,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(Jn,new lf(t,Jn)),t.keystrokes.set("CTRL+B",Jn),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Bold text"),keystroke:"CTRL+B"}]})}}function df({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"),c.bind("isOn").to(a,"value"),c instanceof Pt?c.set({role:"menuitemcheckbox"}):c.set({tooltip:!0}),e.listenTo(c,"execute",(()=>{o.execute(t),o.editing.view.focus()})),c}}const Dd="bold";class yy extends R{static get pluginName(){return"BoldUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,n=df({editor:t,commandName:Dd,plugin:this,icon:K.bold,label:e("Bold"),keystroke:"CTRL+B"});t.ui.componentFactory.add(Dd,(()=>n(it))),t.ui.componentFactory.add("menuBar:"+Dd,(()=>n(Pt)))}}class xy extends R{static get requires(){return[vy,yy]}static get pluginName(){return"Bold"}static get isOfficialPlugin(){return!0}}var Ua=P(4199),Vo={attributes:{"data-cke":!0}};Vo.setAttributes=H(),Vo.insert=V().bind(null,"head"),Vo.domAPI=j(),Vo.insertStyleElement=U(),F()(Ua.A,Vo),Ua.A&&Ua.A.locals&&Ua.A.locals;const Xn="italic";class Ey extends R{static get pluginName(){return"ItalicEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:Xn}),t.model.schema.setAttributeProperties(Xn,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Xn,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(Xn,new lf(t,Xn)),t.keystrokes.set("CTRL+I",Xn),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Italic text"),keystroke:"CTRL+I"}]})}}const Id="italic";class Dy extends R{static get pluginName(){return"ItalicUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,n=df({editor:t,commandName:Id,plugin:this,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.586 14.633.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",label:e("Italic")});t.ui.componentFactory.add(Id,(()=>n(it))),t.ui.componentFactory.add("menuBar:"+Id,(()=>n(Pt)))}}class Iy extends R{static get requires(){return[Ey,Dy]}static get pluginName(){return"Italic"}static get isOfficialPlugin(){return!0}}class Sy extends tt{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=>qa(l)||hf(n,l)));this._applyQuote(a,c)}else this._removeQuote(a,r.filter(qa))}))}_getValue(){const t=Mt(this.editor.model.document.selection.getSelectedBlocks());return!(!t||!qa(t))}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=Mt(t.getSelectedBlocks());return!!n&&hf(e,n)}_removeQuote(t,e){uf(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=[];uf(t,e).reverse().forEach((i=>{let r=qa(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 qa(o){return o.parent.name=="blockQuote"?o.parent:null}function uf(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 hf(o,t){const e=o.checkChild(t.parent,"blockQuote"),n=o.checkChild(["$root","blockQuote"],t);return e&&n}class My extends R{static get pluginName(){return"BlockQuoteEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[Na,Re]}init(){const t=this.editor,e=t.model.schema;t.commands.add("blockQuote",new Sy(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)=>{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 Ga=P(8708),Ho={attributes:{"data-cke":!0}};Ho.setAttributes=H(),Ho.insert=V().bind(null,"head"),Ho.domAPI=j(),Ho.insertStyleElement=U(),F()(Ga.A,Ho),Ga.A&&Ga.A.locals&&Ga.A.locals;class By extends R{static get pluginName(){return"BlockQuoteUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.ui.componentFactory.add("blockQuote",(()=>{const e=this._createButton(it);return e.set({tooltip:!0}),e})),t.ui.componentFactory.add("menuBar:blockQuote",(()=>{const e=this._createButton(Pt);return e.set({role:"menuitemcheckbox"}),e}))}_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:K.quote,isToggleable:!0}),r.bind("isEnabled").to(i,"isEnabled"),r.bind("isOn").to(i,"value"),this.listenTo(r,"execute",(()=>{e.execute("blockQuote"),e.editing.view.focus()})),r}}class Ty extends R{static get requires(){return[My,By]}static get pluginName(){return"BlockQuote"}static get isOfficialPlugin(){return!0}}class Ny extends R{static get pluginName(){return"CKBoxUI"}static get isOfficialPlugin(){return!0}afterInit(){const t=this.editor;t.commands.get("ckbox")&&(t.ui.componentFactory.add("ckbox",(()=>this._createFileToolbarButton())),t.ui.componentFactory.add("menuBar:ckbox",(()=>this._createFileMenuBarButton())),t.plugins.has("ImageInsertUI")&&t.plugins.get("ImageInsertUI").registerIntegration({name:"assetManager",observable:()=>t.commands.get("ckbox"),buttonViewCreator:()=>this._createImageToolbarButton(),formViewCreator:()=>this._createImageDropdownButton(),menuBarButtonViewCreator:e=>this._createImageMenuBarButton(e?"insertOnly":"insertNested")}))}_createButton(t){const e=this.editor,n=new t(e.locale),i=e.commands.get("ckbox");return n.bind("isOn","isEnabled").to(i,"value","isEnabled"),n.on("execute",(()=>{e.execute("ckbox")})),n}_createFileToolbarButton(){const t=this.editor.locale.t,e=this._createButton(it);return e.icon=K.browseFiles,e.label=t("Open file manager"),e.tooltip=!0,e}_createImageToolbarButton(){const t=this.editor.locale.t,e=this.editor.plugins.get("ImageInsertUI"),n=this._createButton(it);return n.icon=K.imageAssetManager,n.bind("label").to(e,"isImageSelected",(i=>t(i?"Replace image with file manager":"Insert image with file manager"))),n.tooltip=!0,n}_createImageDropdownButton(){const t=this.editor.locale.t,e=this.editor.plugins.get("ImageInsertUI"),n=this._createButton(it);return n.icon=K.imageAssetManager,n.withText=!0,n.bind("label").to(e,"isImageSelected",(i=>t(i?"Replace with file manager":"Insert with file manager"))),n.on("execute",(()=>{e.dropdownView.isOpen=!1})),n}_createFileMenuBarButton(){const t=this.editor.locale.t,e=this._createButton(Pt);return e.icon=K.browseFiles,e.withText=!0,e.label=t("File"),e}_createImageMenuBarButton(t){const e=this.editor.locale.t,n=this.editor.locale.t,i=this._createButton(Pt);switch(i.icon=K.imageAssetManager,i.withText=!0,t){case"insertOnly":i.label=e("Image");break;case"insertNested":i.label=n("With file manager")}return i}}var Py=["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","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],Uo=o=>{let t=0;for(let e=0;e<o.length;e++){let n=o[e];t=83*t+Py.indexOf(n)}return t},Sd=o=>{let t=o/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Md=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)},Bd=(o,t)=>(e=>e<0?-1:1)(o)*Math.pow(Math.abs(o),t),mf=class extends Error{constructor(o){super(o),this.name="ValidationError",this.message=o}},Ly=o=>{if(!o||o.length<6)throw new mf("The blurhash string must be at least 6 characters");let t=Uo(o[0]),e=Math.floor(t/9)+1,n=t%9+1;if(o.length!==4+2*n*e)throw new mf(`blurhash length mismatch: length is ${o.length} but it should be ${4+2*n*e}`)},Oy=o=>{let t=o>>8&255,e=255&o;return[Sd(o>>16),Sd(t),Sd(e)]},zy=(o,t)=>{let e=Math.floor(o/361),n=Math.floor(o/19)%19,i=o%19;return[Bd((e-9)/9,2)*t,Bd((n-9)/9,2)*t,Bd((i-9)/9,2)*t]},Ry=(o,t,e,n)=>{Ly(o),n|=1;let i=Uo(o[0]),r=Math.floor(i/9)+1,s=i%9+1,a=(Uo(o[1])+1)/166,c=new Array(s*r);for(let u=0;u<c.length;u++)if(u===0){let h=Uo(o.substring(2,6));c[u]=Oy(h)}else{let h=Uo(o.substring(4+2*u,6+2*u));c[u]=zy(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 m=0,p=0,k=0;for(let M=0;M<r;M++)for(let N=0;N<s;N++){let G=Math.cos(Math.PI*h*N/t)*Math.cos(Math.PI*u*M/e),Q=c[N+M*s];m+=Q[0]*G,p+=Q[1]*G,k+=Q[2]*G}let b=Md(m),C=Md(p),I=Md(k);d[4*h+0+u*l]=b,d[4*h+1+u*l]=C,d[4*h+2+u*l]=I,d[4*h+3+u*l]=255}return d};function gf(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}}function Td({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 Fy={"image/gif":"gif","image/jpeg":"jpg","image/png":"png","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};class jy extends tt{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"),e=t.dialog,n=t.categories,i=t.view,r=t.upload;return{theme:t.theme,language:t.language,tokenUrl:t.tokenUrl,serviceOrigin:t.serviceOrigin,forceDemoLabel:t.forceDemoLabel,choosableFileExtensions:t.choosableFileExtensions,assets:{onChoose:s=>this.fire("ckbox:choose",s)},dialog:{onClose:()=>this.fire("ckbox:close"),width:e&&e.width,height:e&&e.height},categories:n&&{icons:n.icons},view:i&&{openLastView:i.openLastView,startupFolderId:i.startupFolderId,startupCategoryId:i.startupCategoryId,hideMaximizeButton:i.hideMaximizeButton},upload:r&&{componentsHideTimeout:r.componentsHideTimeout,dialogMinimizeTimeout:r.dialogMinimizeTimeout}}}_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=oe(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;
8809const s=t.commands.get("insertImage"),a=t.commands.get("link"),c=(function({assets:d,isImageAllowed:u,isLinkAllowed:h}){return d.map((m=>(function(p){const k=p.data.metadata;return k?k.width&&k.height:!1})(m)?{id:m.data.id,type:"image",attributes:Vy(m)}:{id:m.data.id,type:"link",attributes:Hy(m)})).filter((m=>m.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],m=l===1;this._insertAsset(u,h,d,m),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:{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=ye(s.getAttributes()),d=e.createText(a,l);if(!n){const h=s.getLastPosition(),m=h.parent;m.name==="paragraph"&&m.isEmpty||i.execute("insertParagraph",{position:h});const p=r.insertContent(d);return e.setSelection(p),void i.execute("link",c)}const u=r.insertContent(d);e.setSelection(u)}i.execute("link",c)}}function Vy(o){const{imageFallbackUrl:t,imageSources:e}=gf(o.data.imageUrls),{description:n,width:i,height:r,blurHash:s}=o.data.metadata,a=(function(c){if(c)try{const l="32px",d=document.createElement("canvas");d.setAttribute("width",l),d.setAttribute("height",l);const u=d.getContext("2d");if(!u)return;const h=u.createImageData(32,32),m=Ry(c,32,32);return h.data.set(m),u.putImageData(h,0,0),d.toDataURL()}catch(l){return}})(s);return{imageFallbackUrl:t,imageSources:e,imageTextAlternative:n||"",imageWidth:i,imageHeight:r,...a?{imagePlaceholder:a}:null}}function Hy(o){return{linkName:o.data.name,linkHref:Uy(o)}}function Uy(o){const t=new URL(o.data.url);return t.searchParams.set("download","true"),t.toString()}class Nd extends R{static get pluginName(){return"CKBoxUtils"}static get isOfficialPlugin(){return!0}static get requires(){return["CloudServices"]}init(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;if(!e&&!n)return;t.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",defaultUploadCategories:null,ignoreDataId:!1,language:t.locale.uiLanguage,theme:"lark",tokenUrl:t.config.get("cloudServices.tokenUrl")});const i=t.plugins.get("CloudServices"),r=t.config.get("cloudServices.tokenUrl"),s=t.config.get("ckbox.tokenUrl");if(!s)throw new E("ckbox-plugin-missing-token-url",this);this._token=s==r?Promise.resolve(i.token):i.registerTokenUrl(s)}getToken(){return this._token}async 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]})(await this._token,e);if(n==null)throw Kc("ckbox-access-default-workspace-error"),t;return n}async getCategoryIdForFile(t,e){const n=(0,this.editor.t)("Cannot determine a category for the uploaded file."),i=this.editor.config.get("ckbox.defaultUploadCategories"),r=this._getAvailableCategories(e),s=typeof t=="string"?(a=await(async function(d,u){try{const h=await fetch(d,{method:"HEAD",cache:"force-cache",...u});return h.ok&&h.headers.get("content-type")||""}catch(h){return""}})(t,e),Fy[a]):t.name.match(/\.(?<ext>[^.]+)$/).groups.ext.toLowerCase();var a;const c=await 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}async _getAvailableCategories(t){const e=this.editor,n=this._token,{signal:i}=t,r=e.config.get("ckbox.serviceOrigin"),s=await this.getWorkspaceId();try{const c=[];let l,d=0;do{const u=await a(d);c.push(...u.items),l=u.totalCount-(d+50),d+=50}while(l>0);return c}catch(c){return i.throwIfAborted(),void Kc("ckbox-fetch-category-http-error")}async function a(c){const l=new URL("categories",r);return l.searchParams.set("limit",String(50)),l.searchParams.set("offset",String(c)),l.searchParams.set("workspaceId",s),Td({url:l,signal:i,authorization:(await n).value})}}}class qy extends R{static get requires(){return["ImageUploadEditing","ImageUploadProgress",Ae,ff]}static get pluginName(){return"CKBoxUploadAdapter"}static get isOfficialPlugin(){return!0}async afterInit(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;if(!e&&!n)return;const i=t.plugins.get(Ae),r=t.plugins.get(Nd);i.createUploadAdapter=c=>new Gy(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 Gy{constructor(t,e,n){this.loader=t,this.token=n.getToken(),this.ckboxUtils=n,this.editor=e,this.controller=new AbortController,this.serviceOrigin=e.config.get("ckbox.serviceOrigin")}async upload(){const t=this.ckboxUtils,e=this.editor.t,n=await this.loader.file,i=await t.getCategoryIdForFile(n,{signal:this.controller.signal}
vendor: 10,654 bytes, line 8809
8809),r=new URL("assets",this.serviceOrigin),s=new FormData;return r.searchParams.set("workspaceId",await t.getWorkspaceId()),s.append("categoryId",i),s.append("file",n),Td({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:(await this.token).value}).then((async a=>{const c=gf(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()}}const pf="NoPermission";class ff extends R{static get pluginName(){return"CKBoxEditing"}static get isOfficialPlugin(){return!0}static get requires(){return["LinkEditing","PictureEditing",qy,Nd]}init(){const t=this.editor;this._shouldBeInitialised()&&(this._checkImagePlugins(),bf()&&t.commands.add("ckbox",new jy(t)),(async function(e){const n=e.plugins.get(Nd),i=e.config.get("ckbox.serviceOrigin"),r=new URL("permissions",i),{value:s}=await n.getToken(),a=await Td({url:r,authorization:s,signal:new AbortController().signal});return Object.values(a).some((c=>c["asset:create"]))})(t).then((e=>{e||this._blockImageCommands()})))}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")||bf()}_blockImageCommands(){const t=this.editor,e=t.commands.get("uploadImage"),n=t.commands.get("ckboxImageEdit");e&&(e.isAccessAllowed=!1,e.forceDisabled(pf)),n&&n.forceDisabled(pf)}_checkImagePlugins(){const t=this.editor;t.plugins.has("ImageBlockEditing")||t.plugins.has("ImageInlineEditing")||Kc("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=>{if(!e.last.getAttribute("linkHref"))return!1}),"ckboxLinkId")}_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=kf(a,r.attributeOldValue);a.unwrap(c.toViewRange(r.range),d)}if(r.attributeNewValue){const d=kf(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),Ky(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 T(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 m=Wy(h,c._chosenAssets);for(const p of m){const k=p.type==="image"?"ckboxImageId":"ckboxLinkId";p.id!==h.getAttribute(k)&&(r.setAttribute(k,p.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 Wy(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 kf(o,t){const e=o.createAttributeElement("a",{"data-ckbox-resource-id":t},{priority:5});return o.setCustomProperty("link",!0,e),e}function Ky(o){return!!o.is("$text")||!(!o.is("element","imageInline")&&!o.is("element","imageBlock"))}function bf(){return!!window.CKBox}class $y extends R{static get pluginName(){return"CKBox"}static get isOfficialPlugin(){return!0}static get requires(){return[ff,Ny]}}var Wa=P(1866),qo={attributes:{"data-cke":!0}};qo.setAttributes=H(),qo.insert=V().bind(null,"head"),qo.domAPI=j(),qo.insertStyleElement=U(),F()(Wa.A,qo),Wa.A&&Wa.A.locals&&Wa.A.locals;class Yy extends R{static get pluginName(){return"CKFinderUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.ui.componentFactory.add("ckfinder",(()=>this._createFileToolbarButton())),t.ui.componentFactory.add("menuBar:ckfinder",(()=>this._createFileMenuBarButton())),t.plugins.has("ImageInsertUI")&&t.plugins.get("ImageInsertUI").registerIntegration({name:"assetManager",observable:()=>t.commands.get("ckfinder"),buttonViewCreator:()=>this._createImageToolbarButton(),formViewCreator:()=>this._createImageDropdownButton(),menuBarButtonViewCreator:e=>this._createImageMenuBarButton(e?"insertOnly":"insertNested")})}_createButton(t){const e=this.editor,n=new t(e.locale),i=e.commands.get("ckfinder");return n.bind("isEnabled").to(i),n.on("execute",(()=>{e.execute("ckfinder"),e.editing.view.focus()})),n}_createFileToolbarButton(){const t=this.editor.locale.t,e=this._createButton(it);return e.icon=K.browseFiles,e.label=t("Insert image or file"),e.tooltip=!0,e}_createImageToolbarButton(){const t=this.editor.locale.t,e=this.editor.plugins.get("ImageInsertUI"),n=this._createButton(it);return n.icon=K.imageAssetManager,n.bind("label").to(e,"isImageSelected",(i=>t(i?"Replace image with file manager":"Insert image with file manager"))),n.tooltip=!0,n}_createImageDropdownButton(){const t=this.editor.locale.t,e=this.editor.plugins.get("ImageInsertUI"),n=this._createButton(it);return n.icon=K.imageAssetManager,n.withText=!0,n.bind("label").to(e,"isImageSelected",(i=>t(i?"Replace with file manager":"Insert with file manager"))),n.on("execute",(()=>{e.dropdownView.isOpen=!1})),n}_createFileMenuBarButton(){const t=this.editor.locale.t,e=this._createButton(Pt);return e.icon=K.browseFiles,e.withText=!0,e.label=t("File"),e}_createImageMenuBarButton(t){const e=this.editor.locale.t,n=this.editor.locale.t,i=this._createButton(Pt);switch(i.icon=K.imageAssetManager,i.withText=!0,t){case"insertOnly":i.label=e("Image");break;case"insertNested":i.label=n("With file manager")}return i}}class Qy extends tt{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 E("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&&wf(t,d)})),r.on("file:choose:resizedImage",(s=>{const a=s.data.resizedUrl;if(a)wf(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 wf(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 Zy extends R{static get pluginName(){return"CKFinderEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[Cd,"LinkEditing"]}init(){const t=this.editor;if(!t.plugins.has("ImageBlockEditing")&&!t.plugins.has("ImageInlineEditing"))throw new E("ckfinder-missing-image-plugin",t);t.commands.add("ckfinder",new Qy(t))}}class Jy extends R{static get pluginName(){return"CKFinder"}static get isOfficialPlugin(){return!0}static get requires(){return["Link","CKFinderUploadAdapter",Zy,Yy]}}class Xy extends R{static get pluginName(){return"CloudServicesUploadAdapter"}static get isOfficialPlugin(){return!0}static get requires(){return["CloudServices",Ae]}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(Ae).createUploadAdapter=s=>new t1(this._uploadGateway,s)}}class t1{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 e1 extends R{static get pluginName(){return"EasyImage"}static get isOfficialPlugin(){return!0}
8809static get requires(){return[Xy,"ImageUpload"]}init(){const t=this.editor;t.plugins.has("ImageBlockEditing")||t.plugins.has("ImageInlineEditing")||nt("easy-image-image-feature-missing",t)}}class n1 extends tt{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}refresh(){const t=this.editor.model,e=Mt(t.document.selection.getSelectedBlocks());this.value=!!e&&e.is("element","paragraph"),this.isEnabled=!!e&&Af(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")&&Af(a,e.schema)&&r.rename(a,"paragraph")}))}}function Af(o,t){return t.checkChild(o.parent,"paragraph")&&!t.isObject(o)}class i1 extends tt{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 qc=class qc extends R{static get pluginName(){return"Paragraph"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.model;t.commands.add("paragraph",new n1(t)),t.commands.add("insertParagraph",new i1(t)),e.schema.register("paragraph",{inheritAllFrom:"$block"}),t.conversion.elementToElement({model:"paragraph",view:"p"}),t.conversion.for("upcast").elementToElement({model:(n,{writer:i})=>qc.paragraphLikeElements.has(n.name)?n.isEmpty?null:i.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}};qc.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);let Ka=qc;class o1 extends tt{constructor(t,e){super(t),this.modelElements=e}refresh(){const t=Mt(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some((e=>_f(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=>_f(a,i,e.schema)));for(const a of s)a.is("element",i)||r.rename(a,i)}))}}function _f(o,t,e){return e.checkChild(o.parent,t)&&!e.isObject(o)}const Cf="paragraph";class r1 extends R{static get pluginName(){return"HeadingEditing"}static get isOfficialPlugin(){return!0}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[Ka]}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 o1(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",Cf)&&s.childCount===0&&r.writer.rename(s,Cf)}))}_addDefaultH1Conversion(t){t.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:Ve.low+1})}}var $a=P(6269),Go={attributes:{"data-cke":!0}};Go.setAttributes=H(),Go.insert=V().bind(null,"head"),Go.domAPI=j(),Go.insertStyleElement=U(),F()($a.A,Go),$a.A&&$a.A.locals&&$a.A.locals;class s1 extends R{static get pluginName(){return"HeadingUI"}static get isOfficialPlugin(){return!0}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 he,l=t.commands.get("heading"),d=t.commands.get("paragraph"),u=[l];for(const m of n){const p={type:"button",model:new lp({label:m.title,class:m.class,role:"menuitemradio",withText:!0})};m.model==="paragraph"?(p.model.bind("isOn").to(d,"value"),p.model.set("commandName","paragraph"),u.push(d)):(p.model.bind("isOn").to(l,"value",(k=>
vendor: 4,091 bytes, line 8809
8809k===m.model)),p.model.set({commandName:"heading",commandValue:m.model})),c.add(p),a[m.model]=m.title}const h=Je(s);return $g(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",((...m)=>m.some((p=>p)))),h.buttonView.bind("label").to(l,"value",d,"value",((m,p)=>{const k=p?"paragraph":m;return typeof k=="boolean"?i:a[k]?a[k]:i})),h.buttonView.bind("ariaLabel").to(l,"value",d,"value",((m,p)=>{const k=p?"paragraph":m;return typeof k=="boolean"?r:a[k]?`${a[k]}, ${r}`:r})),this.listenTo(h,"execute",(m=>{const{commandName:p,commandValue:k}=m.source;t.execute(p,k?{value:k}:void 0),t.editing.view.focus()})),h})),t.ui.componentFactory.add("menuBar:heading",(s=>{const a=new tn(s),c=t.commands.get("heading"),l=t.commands.get("paragraph"),d=[c],u=new Da(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 m=new ha(s,a),p=new Pt(s);m.children.add(p),u.items.add(m),p.set({isToggleable:!0,label:h.title,role:"menuitemradio",class:h.class}),p.delegate("execute").to(a),p.on("execute",(()=>{const k=h.model==="paragraph"?"paragraph":"heading";t.execute(k,{value:h.model}),t.editing.view.focus()})),h.model==="paragraph"?(p.bind("isOn").to(l,"value"),d.push(l)):p.bind("isOn").to(c,"value",(k=>k===h.model))}return a.bind("isEnabled").toMany(d,"isEnabled",((...h)=>h.some((m=>m)))),a}))}}class a1 extends R{static get requires(){return[r1,s1]}static get pluginName(){return"Heading"}static get isOfficialPlugin(){return!0}}function vf(o){return o.createContainerElement("figure",{class:"image"},[o.createEmptyElement("img"),o.createSlot("children")])}function yf(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 Pd(o,t){const e=Mt(t.getSelectedBlocks());return!e||o.isObject(e)||e.isEmpty&&e.name!="listItem"?"imageBlock":"imageInline"}function Ya(o){return o&&o.endsWith("px")?parseInt(o):null}function xf(o){const t=Ya(o.getStyle("width")),e=Ya(o.getStyle("height"));return!(!t||!e)}const c1=/^(image|image-inline)$/;class Gt extends R{constructor(){super(...arguments),this._domEmitter=new(re())}static get pluginName(){return"ImageUtils"}static get isOfficialPlugin(){return!0}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=Ef(r,e||a,n);t={...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 A.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();
8809return this.isImage(e)?e:t.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(t){return t.findAncestor({classes:c1})}isImageAllowed(){const t=this.editor.model.document.selection;return(function(e,n){if(Ef(e,n,null)=="imageBlock"){const r=(function(s,a){const c=Hp(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),xd(t,e,{label:()=>{const i=this.findViewImgElement(t).getAttribute("alt");return i?`${i} ${n}`:n}})}isImageWidget(t){return!!t.getCustomProperty("image")&&vt(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 Ef(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")?Pd(n,t):n.checkChild(t,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}class l1 extends tt{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)}))}}class d1 extends R{static get requires(){return[Gt]}static get pluginName(){return"ImageTextAlternativeEditing"}static get isOfficialPlugin(){return!0}init(){this.editor.commands.add("imageTextAlternative",new l1(this.editor))}}var Qa=P(4062),Wo={attributes:{"data-cke":!0}};Wo.setAttributes=H(),Wo.insert=V().bind(null,"head"),Wo.domAPI=j(),Wo.insertStyleElement=U(),F()(Qa.A,Wo),Qa.A&&Qa.A.locals&&Qa.A.locals;var Za=P(2722),Ko={attributes:{"data-cke":!0}};Ko.setAttributes=H(),Ko.insert=V().bind(null,"head"),Ko.domAPI=j(),Ko.insertStyleElement=U(),F()(Za.A,Ko),Za.A&&Za.A.locals&&Za.A.locals;class u1 extends ${constructor(t){super(t);const e=this.locale.t;this.focusTracker=new Et,this.keystrokes=new Rt,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(e("Save"),K.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(e("Cancel"),K.cancel,"ck-button-cancel","cancel"),this._focusables=new me,this._focusCycler=new we({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),is({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 it(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 Vs(this.locale,sa);return e.label=t("Text alternative"),e}}function Df(o){const t=o.editing.view,e=ze.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 h1 extends R{static get requires(){return[ka]}
vendor: 10,198 bytes, line 8809
8809static get pluginName(){return"ImageTextAlternativeUI"}static get isOfficialPlugin(){return!0}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 it(n);return r.set({label:e("Change image text alternative"),icon:K.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(Il(u1))(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=Df(i);r.updatePosition(s)}})(t):this._hideForm(!0)})),ns({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:Df(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 If extends R{static get requires(){return[d1,h1]}static get pluginName(){return"ImageTextAlternative"}static get isOfficialPlugin(){return!0}}function Sf(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 Ja(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 Mf extends De{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))}}class m1 extends tt{constructor(t){super(t);const e=t.config.get("image.insert.type");t.plugins.has("ImageBlockEditing")||e==="block"&&nt("image-block-plugin-required"),t.plugins.has("ImageInlineEditing")||e==="inline"&&nt("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({...s,...r},l,t.imageType)}else i.insertImage({...s,...r},null,t.imageType)}))}}class g1 extends tt{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 Ld extends R{static get requires(){return[Gt]}static get pluginName(){return"ImageEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.conversion;t.editing.view.addObserver(Mf),e.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const n=new m1(t),i=new g1(t);t.commands.add("insertImage",n),t.commands.add("replaceImageSource",i),t.commands.add("imageInsert",n)}}class Bf extends R{static get requires(){return[Gt]}static get pluginName(){return"ImageSizeAttributes"}static get isOfficialPlugin(){return!0}afterInit(){this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline")}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["width","height"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["width","height"]})}_registerConverters(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 m=h.writer,p=h.mapper.toViewElement(u.item),k=n.findViewImgElement(p);if(u.attributeNewValue!==null?m.setAttribute(c,u.attributeNewValue,k):m.removeAttribute(c,k),u.item.hasAttribute("sources"))return;const b=u.item.hasAttribute("resizedWidth");if(t==="imageInline"&&!b&&!l)return;const C=u.item.getAttribute("width"),I=u.item.getAttribute("height");C&&I&&m.setStyle("aspect-ratio",`${C}/${I}`,k)}))}e.conversion.for("upcast").attributeToAttribute({view:{name:i,styles:{width:/.+/}},model:{key:"width",value:s=>xf(s)?Ya(s.getStyle("width")):null}}).attributeToAttribute({view:{name:i,key:"width"},model:"width"}).attributeToAttribute({view:{name:i,styles:{height:/.+/}},model:{key:"height",value:s=>xf(s)?Ya(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 Tf extends tt{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 m=h.getRange(),p=m.root.rootName!="$graveyard"?m.getJoined(u,!0):u;a.updateMarker(h,{range:p})}return{oldElement:r,newElement:d}})):null}}var Xa=P(7378),$o={attributes:{"data-cke":!0}};$o.setAttributes=H(),$o.insert=V().bind(null,"head"),$o.domAPI=j(),$o.insertStyleElement=U(),F()(Xa.A,$o),Xa.A&&Xa.A.locals&&Xa.A.locals;class Nf extends R{static get requires(){return[Gt]}static get pluginName(){return"ImagePlaceholder"}static get isOfficialPlugin(){return!0}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)=>{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(Mf),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 Pf extends R{static get requires(){return[Ld,Bf,Gt,Nf,ce]}static get pluginName(){return"ImageBlockEditing"}static get isOfficialPlugin(){return!0}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 Tf(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,i=t.plugins.get("ImageUtils");
8809n.for("dataDowncast").elementToStructure({model:"imageBlock",view:(r,{writer:s})=>vf(s)}),n.for("editingDowncast").elementToStructure({model:"imageBlock",view:(r,{writer:s})=>i.toImageWidget(vf(s),s,e("image widget"))}),n.for("downcast").add(Ja(i,"imageBlock","src")).add(Ja(i,"imageBlock","alt")).add(Sf(i,"imageBlock")),n.for("upcast").elementToElement({view:yf(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=Mt(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(Pd(e.schema,d)==="imageBlock"){const u=new Qe(n.document),h=c.map((m=>u.createElement("figure",{class:"image"},m)));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 tc=P(3350),Yo={attributes:{"data-cke":!0}};Yo.setAttributes=H(),Yo.insert=V().bind(null,"head"),Yo.domAPI=j(),Yo.insertStyleElement=U(),F()(tc.A,Yo),tc.A&&tc.A.locals&&tc.A.locals;class p1 extends ${constructor(t,e=[]){super(t),this.focusTracker=new Et,this.keystrokes=new Rt,this._focusables=new me,this.children=this.createCollection(),this._focusCycler=new we({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 _0&&this._focusables.addMany(n.children);this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:-1},children:this.children})}render(){super.render(),is({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()}}class Lf extends R{constructor(t){super(t),this._integrations=new Map,t.config.define("image.insert.integrations",["upload","assetManager","url"])}static get pluginName(){return"ImageInsertUI"}static get isOfficialPlugin(){return!0}static get requires(){return[Gt]}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),t.ui.componentFactory.add("menuBar:insertImage",(r=>this._createMenuBarComponent(r)))}registerIntegration({name:t,observable:e,buttonViewCreator:n,formViewCreator:i,menuBarButtonViewCreator:r,requiresForm:s=!1}){this._integrations.has(t)&&nt("image-insert-integration-exists",{name:t}),this._integrations.set(t,{observable:e,buttonViewCreator:n,menuBarButtonViewCreator:r,formViewCreator:i,requiresForm:s})}_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 ia(t,l),r.tooltip=!0,r.bind("label").to(this,"isImageSelected",(d=>n(d?"Replace image":"Insert image")))}const a=this.dropdownView=Je(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 p1(e.locale,l);a.panelView.children.add(d)})),a}_createMenuBarComponent(t){const e=t.t,n=this._prepareIntegrations();if(!n.length)return null;let i;const r=n[0];if(n.length==1)i=r.menuBarButtonViewCreator(!0);else{i=new tn(t);const s=new Da(t);i.panelView.children.add(s),i.buttonView.set({icon:K.image,label:e("Image")});for(const a of n){const c=new ha(t,i),l=a.menuBarButtonViewCreator(!1);c.children.add(l),s.items.add(c)}}return i}_prepareIntegrations(){const t=this.editor.config.get("image.insert.integrations"),e=[];
vendor: 9,225 bytes, line 8809
8809if(!t.length)return nt("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)||nt("image-insert-unknown-integration",{item:n});return e.length||nt("image-insert-integrations-not-registered"),e}}var ec=P(265),Qo={attributes:{"data-cke":!0}};Qo.setAttributes=H(),Qo.insert=V().bind(null,"head"),Qo.domAPI=j(),Qo.insertStyleElement=U(),F()(ec.A,Qo),ec.A&&ec.A.locals&&ec.A.locals;class f1 extends R{static get requires(){return[Pf,Ro,If,Lf]}static get pluginName(){return"ImageBlock"}static get isOfficialPlugin(){return!0}}class k1 extends R{static get requires(){return[Ld,Bf,Gt,Nf,ce]}static get pluginName(){return"ImageInlineEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.model.schema.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"],disallowIn:["caption"]}),this._setupConversion(),t.plugins.has("ImageBlockEditing")&&(t.commands.add("imageTypeInline",new Tf(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(Ja(i,"imageInline","src")).add(Ja(i,"imageInline","alt")).add(Sf(i,"imageInline")),n.for("upcast").elementToElement({view:yf(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(Pd(e.schema,d)==="imageInline"){const u=new Qe(n.document),h=c.map((m=>m.childCount===1?(Array.from(m.getAttributes()).forEach((p=>u.setAttribute(...p,i.findViewImgElement(m)))),m.getChild(0)):m));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 b1 extends R{static get requires(){return[k1,Ro,If,Lf]}static get pluginName(){return"ImageInline"}static get isOfficialPlugin(){return!0}}class w1 extends R{static get requires(){return[f1,b1]}static get pluginName(){return"Image"}static get isOfficialPlugin(){return!0}}class Of extends R{static get pluginName(){return"ImageCaptionUtils"}static get isOfficialPlugin(){return!0}static get requires(){return[Gt]}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 A1 extends tt{refresh(){const t=this.editor,e=t.plugins.get("ImageCaptionUtils"),n=t.plugins.get("ImageUtils");if(!t.plugins.has(Pf))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");let 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 _1 extends R{static get requires(){return[Gt,Of]}static get pluginName(){return"ImageCaptionEditing"}static get isOfficialPlugin(){return!0}constructor(t){super(t),this._savedCaptionsMap=new WeakMap}init(){const t=this.editor,e=t.model.schema;e.isRegistered("caption")?e.extend("caption",{allowIn:"imageBlock"}):e.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),t.commands.add("toggleImageCaption",new A1(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"),Xh({view:e,element:c,keepOnFocus:!0});const l=s.parent.getAttribute("alt");return Vp(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?ct.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 C1 extends R{static get requires(){return[Of]}static get pluginName(){return"ImageCaptionUI"}static get isOfficialPlugin(){return!0}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 it(r);return a.set({icon:K.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 nc=P(5247),Zo={attributes:{"data-cke":!0}};Zo.setAttributes=H(),Zo.insert=V().bind(null,"head"),Zo.domAPI=j(),Zo.insertStyleElement=U(),F()(nc.A,Zo),nc.A&&nc.A.locals&&nc.A.locals;class v1 extends R{static get requires(){return[_1,C1]}static get pluginName(){return"ImageCaption"}static get isOfficialPlugin(){return!0}}function zf(o){const t=o.map((e=>e.replace("+","\\+")));return new RegExp(`^image\\/(${t.join("|")})$`)}function y1(o){return new Promise(((t,e)=>{const n=o.getAttribute("src");fetch(n).then((i=>i.blob())).then((i=>{const r=Rf(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=A.document.createElement("img");l.addEventListener("load",(()=>{const d=A.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=Rf(s,r),c=a.replace("image/","");return new File([s],`image.${c}`,{type:a})}))}
8809)(n).then(t).catch(e):e(i)))}))}function Rf(o,t){return o.type?o.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class x1 extends R{static get pluginName(){return"ImageUploadUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.ui.componentFactory.add("uploadImage",(()=>this._createToolbarButton())),t.ui.componentFactory.add("imageUpload",(()=>this._createToolbarButton())),t.ui.componentFactory.add("menuBar:uploadImage",(()=>this._createMenuBarButton("standalone"))),t.plugins.has("ImageInsertUI")&&t.plugins.get("ImageInsertUI").registerIntegration({name:"upload",observable:()=>t.commands.get("uploadImage"),buttonViewCreator:()=>this._createToolbarButton(),formViewCreator:()=>this._createDropdownButton(),menuBarButtonViewCreator:e=>this._createMenuBarButton(e?"insertOnly":"insertNested")})}_createButton(t){const e=this.editor,n=e.locale,i=e.commands.get("uploadImage"),r=e.config.get("image.upload.types"),s=zf(r),a=new t(e.locale),c=n.t;return a.set({acceptedType:r.map((l=>`image/${l}`)).join(","),allowMultipleFiles:!0,label:c("Upload from computer"),icon:K.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}_createToolbarButton(){const t=this.editor.locale.t,e=this.editor.plugins.get("ImageInsertUI"),n=this.editor.commands.get("uploadImage"),i=this._createButton(Vg);return i.tooltip=!0,i.bind("label").to(e,"isImageSelected",n,"isAccessAllowed",((r,s)=>t(s?r?"Replace image from computer":"Upload image from computer":"You have no image upload permissions."))),i}_createDropdownButton(){const t=this.editor.locale.t,e=this.editor.plugins.get("ImageInsertUI"),n=this._createButton(Vg);return n.withText=!0,n.bind("label").to(e,"isImageSelected",(i=>t(i?"Replace from computer":"Upload from computer"))),n.on("execute",(()=>{e.dropdownView.isOpen=!1})),n}_createMenuBarButton(t){const e=this.editor.locale.t,n=this._createButton(gp);switch(n.withText=!0,t){case"standalone":n.label=e("Image from computer");break;case"insertOnly":n.label=e("Image");break;case"insertNested":n.label=e("From computer")}return n}}var ic=P(2267),Jo={attributes:{"data-cke":!0}};Jo.setAttributes=H(),Jo.insert=V().bind(null,"head"),Jo.domAPI=j(),Jo.insertStyleElement=U(),F()(ic.A,Jo),ic.A&&ic.A.locals&&ic.A.locals;var oc=P(7693),Xo={attributes:{"data-cke":!0}};Xo.setAttributes=H(),Xo.insert=V().bind(null,"head"),Xo.domAPI=j(),Xo.insertStyleElement=U(),F()(oc.A,Xo),oc.A&&oc.A.locals&&oc.A.locals;var rc=P(1559),tr={attributes:{"data-cke":!0}};tr.setAttributes=H(),tr.insert=V().bind(null,"head"),tr.domAPI=j(),tr.insertStyleElement=U(),F()(rc.A,tr),rc.A&&rc.A.locals&&rc.A.locals;class E1 extends R{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(Ae),d=a?n.attributeNewValue:null,u=this.placeholder,h=r.editing.mapper.toViewElement(s),m=i.writer;if(d=="reading")return Ff(h,m),void jf(c,u,h,m);if(d=="uploading"){const p=l.loaders.get(a);return Ff(h,m),void(p?(Vf(h,m),(function(k,b,C,I){const M=(function(N){const G=N.createUIElement("div",{class:"ck-progress-bar"});return N.setCustomProperty("progressBar",!0,G),G})(b);b.insert(b.createPositionAt(k,"end"),M),C.on("change:uploadedPercent",((N,G,Q)=>{I.change((J=>{J.setStyle("width",Q+"%",M)}))}))})(h,m,p,r.editing.view),(function(k,b,C,I){if(I.data){const M=k.findViewImgElement(b);C.setAttribute("src",I.data,M)}})(c,h,m,p)):jf(c,u,h,m))}d=="complete"&&l.loaders.get(a)&&(function(p,k,b){const C=k.createUIElement("div",{class:"ck-image-upload-complete-icon"});k.insert(k.createPositionAt(p,"end"),C),setTimeout((()=>{b.change((I=>I.remove(I.createRangeOn(C))))}),3e3)})(h,m,r.editing.view),(function(p,k){Uf(p,k,"progressBar")})(h,m),Vf(h,m),(function(p,k){k.removeClass("ck-appear",p)})(h,m)},this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}static get pluginName(){return"ImageUploadProgress"}static get isOfficialPlugin(){return!0}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 Ff(o,t){o.hasClass("ck-appear")||t.addClass("ck-appear",o)}function jf(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),Hf(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 Vf(o,t){o.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",o),Uf(o,t,"placeholder")}function Hf(o,t){for(const e of o.getChildren())if(e.getCustomProperty(t))return e}function Uf(o,t,e){const n=Hf(o,e);n&&t.remove(t.createRangeOn(n))}class D1 extends tt{constructor(t){super(t),this.set("isAccessAllowed",!0)}refresh(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.model.document.selection.getSelectedElement();this.isEnabled=e.isImageAllowed()||e.isImage(n)}execute(t){const e=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(Ae).createLoader(t),s=i.plugins.get("ImageUtils");r&&s.insertImage({...e,uploadId:r.id},n)}}class I1 extends R{static get requires(){return[Ae,Cd,ce,Gt]}static get pluginName(){return"ImageUploadEditing"}static get isOfficialPlugin(){return!0}constructor(t){super(t),t.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}init(){const t=this.editor,e=t.model.document,n=t.conversion,i=t.plugins.get(Ae),r=t.plugins.get("ImageUtils"),s=t.plugins.get("ClipboardPipeline"),a=zf(t.config.get("image.upload.types")),c=new D1(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((m=>!!m&&a.test(m.type)));if(h.length&&(l.stop(),t.model.change((m=>{d.targetRanges&&m.setSelection(d.targetRanges.map((p=>t.editing.mapper.toModelRange(p)))),t.execute("uploadImage",{file:h})})),!t.commands.get("uploadImage").isAccessAllowed)){const m=t.plugins.get("Notification"),p=t.locale.t;m.showWarning(p("You have no image upload permissions."),{namespace:"image"})}})),this.listenTo(s,"inputTransformation",((l,d)=>{const u=Array.from(t.editing.view.createRangeIn(d.content)).map((m=>m.item)).filter((m=>(function(p,k){return!(!p.isInlineImageView(k)||!k.getAttribute("src")||!k.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!k.getAttribute("src").match(/^blob:/g))})(r,m)&&!m.getAttribute("uploadProcessed"))).map((m=>({promise:y1(m),imageElement:m})));if(!u.length)return;const h=new Qe(t.editing.view.document);for(const m of u){h.setAttribute("uploadProcessed",!0,m.imageElement);const p=i.createLoader(m.promise);p&&(h.setAttribute("src","",m.imageElement),h.setAttribute("uploadId",p.id,m.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,m=u.position.root.rootName=="$graveyard";for(const p of S1(t,h)){const k=p.getAttribute("uploadId");if(!k)continue;const b=i.loaders.get(k);b&&(m?d.has(k)||b.abort():(d.add(k),this._uploadImageElements.set(k,p),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((m=>{m.setAttribute("src",h.default,d),this._parseAndSetSrcsetAttributeOnImage(h,d,m),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(Ae),s=e.plugins.get(Cd),a=e.plugins.get("ImageUtils"),c=this._uploadImageElements;return n.enqueueChange({isUndoable:!1},(d=>{d.setAttribute("uploadStatus","reading",c.get(t.id))}
8809)),t.read().then((()=>{const d=t.upload(),u=c.get(t.id);if(v.isSafari){const h=e.editing.mapper.toViewElement(u),m=a.findViewImgElement(h);e.editing.view.once("render",(()=>{if(!m.parent)return;const p=e.editing.view.domConverter.mapViewToDom(m.parent);if(!p)return;const k=p.style.display;p.style.display="none",p._ckHack=p.offsetHeight,p.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(", ");if(r!=""){const s={srcset:r};e.hasAttribute("width")||e.hasAttribute("height")||(s.width=i),n.setAttributes(s,e)}}}function S1(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))}class M1 extends R{static get pluginName(){return"ImageUpload"}static get isOfficialPlugin(){return!0}static get requires(){return[I1,x1,E1]}}var sc=P(4642),er={attributes:{"data-cke":!0}};er.setAttributes=H(),er.insert=V().bind(null,"head"),er.domAPI=j(),er.insertStyleElement=U(),F()(sc.A,er),sc.A&&sc.A.locals&&sc.A.locals;var ac=P(3469),nr={attributes:{"data-cke":!0}};nr.setAttributes=H(),nr.insert=V().bind(null,"head"),nr.domAPI=j(),nr.insertStyleElement=U(),F()(ac.A,nr),ac.A&&ac.A.locals&&ac.A.locals;class B1 extends tt{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)}}const cc={get inline(){return{name:"inline",title:"In line",icon:K.objectInline,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:K.objectLeft,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:K.objectBlockLeft,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:K.objectCenter,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:K.objectRight,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:K.objectBlockRight,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:K.objectCenter,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:K.objectRight,modelElements:["imageBlock"],className:"image-style-side"}}},qf={full:K.objectFullWidth,left:K.objectBlockLeft,right:K.objectBlockRight,center:K.objectCenter,inlineLeft:K.objectLeft,inlineRight:K.objectRight,inline:K.objectInline},Gf=[{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 Wf(o){nt("image-style-configuration-definition-invalid",o)}const Od={normalizeStyles:function(o){return(o.configuredStyles.options||[]).map((t=>(function(e){return e=typeof e=="string"?cc[e]?{...cc[e]}:{name:e}:(function(n,i){const r={...i};
8809for(const s in n)Object.prototype.hasOwnProperty.call(i,s)||(r[s]=n[s]);return r})(cc[e.name],e),typeof e.icon=="string"&&(e.icon=qf[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 Wf({style:e}),!1;{const a=[n?"imageBlock":null,i?"imageInline":null];if(!r.some((c=>a.includes(c))))return nt("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")?[...Gf]:[]},warnInvalidStyle:Wf,DEFAULT_OPTIONS:cc,DEFAULT_ICONS:qf,DEFAULT_DROPDOWN_DEFINITIONS:Gf};function Kf(o,t){for(const e of t)if(e.name===o)return e}class $f extends R{static get pluginName(){return"ImageStyleEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[Gt]}init(){const{normalizeStyles:t,getDefaultStylesConfiguration:e}=Od,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 B1(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=Kf(l.attributeNewValue,s),h=Kf(l.attributeOldValue,s),m=d.mapper.toViewElement(l.item),p=d.writer;h&&p.removeClass(h.className,m),u&&p.addClass(u.className,m)});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 m=u.viewItem,p=Mt(u.modelRange.getItems());if(p&&h.schema.checkAttribute(p,"imageStyle"))for(const k of l[p.name])h.consumable.consume(m,{classes:k.className})&&h.writer.setAttribute("imageStyle",k.name,p)}})(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(Gt),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 lc=P(6386),ir={attributes:{"data-cke":!0}};ir.setAttributes=H(),ir.insert=V().bind(null,"head"),ir.domAPI=j(),ir.insertStyleElement=U(),F()(lc.A,ir),lc.A&&lc.A.locals&&lc.A.locals;class T1 extends R{static get requires(){return[$f]}static get pluginName(){return"ImageStyleUI"}static get isOfficialPlugin(){return!0}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=Yf(t.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const r of n)this._createButton(r);const i=Yf([...e.filter(kt),...Od.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((m=>e.find((({name:p})=>Qf(p)===m)))).map((m=>{const p=n.create(m);return m===s&&(r=p),p}));
vendor: 25,208 bytes, line 8809
8809a.length!==l.length&&Od.warnInvalidStyle({dropdown:t});const d=Je(i,ia),u=d.buttonView,h=u.arrowView;return fd(d,l,{enableActiveItemFocusOnDropdownOpen:!0}),u.set({label:Zf(c,r.label),class:null,tooltip:!0}),h.unbind("label"),h.set({label:c}),u.bind("icon").toMany(l,"isOn",((...m)=>{const p=m.findIndex(Ge);return p<0?r.icon:l[p].icon})),u.bind("label").toMany(l,"isOn",((...m)=>{const p=m.findIndex(Ge);return Zf(c,p<0?r.label:l[p].label)})),u.bind("isOn").toMany(l,"isOn",((...m)=>m.some(Ge))),u.bind("class").toMany(l,"isOn",((...m)=>m.some(Ge)?"ck-splitbutton_flatten":void 0)),u.on("execute",(()=>{l.some((({isOn:m})=>m))?d.isOpen=!d.isOpen:r.fire("execute")})),d.bind("isEnabled").toMany(l,"isEnabled",((...m)=>m.some(Ge))),this.listenTo(d,"execute",(()=>{this.editor.editing.view.focus()})),d}))}_createButton(t){const e=t.name;this.editor.ui.componentFactory.add(Qf(e),(n=>{const i=this.editor.commands.get("imageStyle"),r=new it(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 Yf(o,t){for(const e of o)t[e.title]&&(e.title=t[e.title]);return o}function Qf(o){return`imageStyle:${o}`}function Zf(o,t){return(o?o+": ":"")+t}class N1 extends R{static get requires(){return[$f,T1]}static get pluginName(){return"ImageStyle"}static get isOfficialPlugin(){return!0}}class P1 extends R{static get requires(){return[za,Gt]}static get pluginName(){return"ImageToolbar"}static get isOfficialPlugin(){return!0}afterInit(){const t=this.editor,e=t.t,n=t.plugins.get(za),i=t.plugins.get("ImageUtils");var r;n.register("image",{ariaLabel:e("Image toolbar"),items:(r=t.config.get("image.toolbar")||[],r.map((s=>kt(s)?s.name:s))),getRelatedElement:s=>i.getClosestSelectedImageWidget(s)})}}class L1 extends R{static get requires(){return[Ld,Gt]}static get pluginName(){return"PictureEditing"}static get isOfficialPlugin(){return!0}afterInit(){const t=this.editor;t.plugins.has("ImageBlockEditing")&&t.model.schema.extend("imageBlock",{allowAttributes:["sources"]}),t.plugins.has("ImageInlineEditing")&&t.model.schema.extend("imageInline",{allowAttributes:["sources"]}),this._setupConversion(),this._setupImageUploadEditingIntegration()}_setupConversion(){const t=this.editor,e=t.conversion,n=t.plugins.get("ImageUtils");e.for("upcast").add((function(i){const r=["srcset","media","type","sizes"],s=(a,c,l)=>{const d=c.viewItem;if(!l.consumable.test(d,{name:!0}))return;const u=new Map;for(const p of d.getChildren())if(p.is("element","source")){const k={};for(const b of r)p.hasAttribute(b)&&l.consumable.test(p,{attributes:b})&&(k[b]=p.getAttribute(b));Object.keys(k).length&&u.set(p,k)}const h=i.findViewImgElement(d);if(!h)return;let m=c.modelCursor.parent;if(!m.is("element","imageBlock")){const p=l.convertItem(h,c.modelCursor);c.modelRange=p.modelRange,c.modelCursor=p.modelCursor,m=Mt(p.modelRange.getItems())}l.consumable.consume(d,{name:!0});for(const[p,k]of u)l.consumable.consume(p,{attributes:Object.keys(k)});u.size&&l.writer.setAttribute("sources",Array.from(u.values()),m),l.convertChildren(d,m)};return a=>{a.on("element:picture",s)}})(n)),e.for("downcast").add((function(i){const r=(s,a,c)=>{if(!c.consumable.consume(a.item,s.name))return;const l=c.writer,d=c.mapper.toViewElement(a.item),u=i.findViewImgElement(d),h=a.attributeNewValue;if(h&&h.length){const m=[];let p=u.parent;for(;p&&p.is("attributeElement");){const C=p.parent;l.unwrap(l.createRangeOn(u),p),m.unshift(p),p=C}const k=u.parent.is("element","picture"),b=k?u.parent:l.createContainerElement("picture",null);k||l.insert(l.createPositionBefore(u),b),l.remove(l.createRangeIn(b)),l.insert(l.createPositionAt(b,"end"),h.map((C=>l.createEmptyElement("source",C)))),l.move(l.createRangeOn(u),l.createPositionAt(b,"end"));for(const C of m)l.wrap(l.createRangeOn(b),C)}else if(u.parent.is("element","picture")){const m=u.parent;l.move(l.createRangeOn(u),l.createPositionBefore(m)),l.remove(m)}};return s=>{s.on("attribute:sources:imageBlock",r),s.on("attribute:sources:imageInline",r)}})(n))}_setupImageUploadEditingIntegration(){const t=this.editor;if(!t.plugins.has("ImageUploadEditing"))return;const e=t.plugins.get("ImageUploadEditing");this.listenTo(e,"uploadComplete",((n,{imageElement:i,data:r})=>{const s=r.sources;s&&t.model.change((a=>{a.setAttributes({sources:s},i)}))}))}}class O1 extends R{static get pluginName(){return"IndentEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.commands.add("indent",new Yh(t)),t.commands.add("outdent",new Yh(t))}}class z1 extends R{static get pluginName(){return"IndentUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale,n=t.t,i=e.uiLanguageDirection=="ltr"?K.indent:K.outdent,r=e.uiLanguageDirection=="ltr"?K.outdent:K.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(it,t,e,n);return r.set({tooltip:!0}),r})),i.ui.componentFactory.add("menuBar:"+t,(()=>this._createButton(Pt,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 R1 extends R{static get pluginName(){return"Indent"}static get isOfficialPlugin(){return!0}static get requires(){return[O1,z1]}}class F1{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")));if(a)for(const c of this._definitions){const l=ye(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 j1=function(o,t,e){var n=o.length;return e=e===void 0?n:e,!t&&e>=n?o:rm(o,t,e)};var V1=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const Jf=function(o){return V1.test(o)},H1=function(o){return o.split("")};var Xf="\\ud800-\\udfff",U1="["+Xf+"]",zd="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Rd="\\ud83c[\\udffb-\\udfff]",tk="[^"+Xf+"]",ek="(?:\\ud83c[\\udde6-\\uddff]){2}",nk="[\\ud800-\\udbff][\\udc00-\\udfff]",ik="(?:"+zd+"|"+Rd+")?",ok="[\\ufe0e\\ufe0f]?",q1=ok+ik+("(?:\\u200d(?:"+[tk,ek,nk].join("|")+")"+ok+ik+")*"),G1="(?:"+[tk+zd+"?",zd,ek,nk,U1].join("|")+")",W1=RegExp(Rd+"(?="+Rd+")|"+G1+q1,"g");const K1=function(o){return o.match(W1)||[]},$1=function(o){return Jf(o)?K1(o):H1(o)},Y1=(function(o){return function(t){t=Nl(t);var e=Jf(t)?$1(t):void 0,n=e?e[0]:t.charAt(0),i=e?j1(e,1).join(""):t.slice(1);return n[o]()+i}})("toUpperCase"),Q1=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Z1=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,J1=/^((\w+:(\/{2,})?)|(\W))/i,X1=["https?","ftps?","mailto"],dc="Ctrl+K";function rk(o,{writer:t}){const e=t.createAttributeElement("a",{href:o},{priority:5});return t.setCustomProperty("link",!0,e),e}function sk(o,t=X1){const e=String(o),n=t.join("|");return(function(i,r){return!!i.replace(Q1,"").match(r)})(e,new RegExp(`${"^(?:(?:<protocols>):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))".replace("<protocols>",n)}`,"i"))?e:"#"}function Fd(o,t){return!!o&&t.checkAttribute(o.name,"linkHref")}function jd(o,t){const e=(n=o,Z1.test(n)?"mailto:":t);var n;const i=!!e&&!ak(o);return o&&i?e+o:o}function ak(o){return J1.test(o)}function ck(o){window.open(o,"_blank","noopener")}class tx extends tt{constructor(){super(...arguments),this.manualDecorators=new he,this.automaticDecorators=new F1}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()||Mt(e.getSelectedBlocks());Fd(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=lk(i);let d=Ta(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=ye(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 m=lk(i);i.getAttribute("linkHref")===m&&(h=this._updateLinkContent(n,a,u,t),a.setSelection(a.createSelection(h)))}a.setAttribute("linkHref",t,h),r.forEach((m=>{a.setAttribute(m,!0,h)})),s.forEach((m=>{a.removeAttribute(m,h)}))}}}))}_getDecoratorStateFromModel(t){const e=this.editor.model,n=e.document.selection,i=n.getSelectedElement();return Fd(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 lk(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 ex extends tt{refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement();Fd(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?[Ta(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 nx extends dt(){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 uc=P(7719),or={attributes:{"data-cke":!0}};or.setAttributes=H(),or.insert=V().bind(null,"head"),or.domAPI=j(),or.insertStyleElement=U(),F()(uc.A,or),uc.A&&uc.A.locals&&uc.A.locals;const dk="automatic",ix=/^(https?:)?\/\//;class uk extends R{static get pluginName(){return"LinkEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[Mp,vp,ce]}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:rk}),t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(i,r)=>rk(sk(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 tx(t)),t.commands.add("unlink",new ex(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${Y1(s)}`});r.push(c)}return r})(t.config.get("link.decorators")));this._enableAutomaticDecorators(n.filter((i=>i.mode===dk))),this._enableManualDecorators(n.filter((i=>i.mode==="manual"))),t.plugins.get(Mp).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 m=Ta(u.getFirstPosition(),r,u.getAttribute(r),i.model),p=i.editing.mapper.toViewRange(m);for(const k of p.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 m of l.values())h.removeClass(a,m),l.delete(m)}))}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:dk,callback:i=>!!i&&ix.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 nx(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:{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(!(v.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(),ck(s))}),{context:"$capture"}),this.listenTo(e,"keydown",((n,i)=>{const r=t.commands.get("link").value;r&&i.keyCode===ot.enter&&i.altKey&&(n.stop(),ck(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=jd(c.getAttribute("linkHref"),n);s.setAttribute("linkHref",l,c)}}))}))}}var hc=P(3817),rr={attributes:{"data-cke":!0}};rr.setAttributes=H(),rr.insert=V().bind(null,"head"),rr.domAPI=j(),rr.insertStyleElement=U(),F()(hc.A,rr),hc.A&&hc.A.locals&&hc.A.locals;class ox extends ${constructor(t,e,n){super(t),this.focusTracker=new Et,this.keystrokes=new Rt,this._focusables=new me;const i=t.t;this._validators=n,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(i("Save"),K.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(i("Cancel"),K.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(e),this.children=this._createFormChildren(e.manualDecorators),this._focusCycler=new we({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(),is({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}isValid(){this.resetFormStatus();for(const t of this._validators){const e=t(this);if(e)return this.urlInputView.errorText=e,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null}_createUrlInput(){const t=this.locale.t,e=new Vs(this.locale,sa);return e.fieldView.inputMode="url",e.label=t("Link URL"),e}_createButton(t,e,n,i){const r=new it(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 zs(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 $;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 mc=P(8762),sr={attributes:{"data-cke":!0}};sr.setAttributes=H(),sr.insert=V().bind(null,"head"),sr.domAPI=j(),sr.insertStyleElement=U(),F()(mc.A,sr),mc.A&&mc.A.locals&&mc.A.locals;class rx extends ${constructor(t,e={}){super(t),this.focusTracker=new Et,this.keystrokes=new Rt,this._focusables=new me;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"),K.pencil,"edit"),this.set("href",void 0),this._linkConfig=e,this._focusCycler=new we({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 it(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.delegate("execute").to(this,n),i}_createPreviewButton(){const t=new it(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&&sk(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 Be="link-ui";class sx extends R{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[ka]}static get pluginName(){return"LinkUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=this.editor.t;t.editing.view.addObserver(ZC),this._balloon=t.plugins.get(ka),this._createToolbarLinkButton(),this._enableBalloonActivators(),t.conversion.for("editingDowncast").markerToHighlight({model:Be,view:{classes:["ck-fake-link-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:Be,view:(n,{writer:i})=>{if(!n.markerRange.isCollapsed)return null;const r=i.createUIElement("span");return i.addClass(["ck-fake-link-selection","ck-fake-link-selection_collapsed"],r),r}}),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Create link"),keystroke:dc},{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 rx(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(dc,((r,s)=>{this._addFormView(),s()})),e}_createFormView(){const t=this.editor,e=t.commands.get("link"),n=t.config.get("link.defaultProtocol"),i=new(Il(ox))(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=jd(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;t.ui.componentFactory.add("link",(()=>{const e=this._createButton(it);return e.set({tooltip:!0}),e})),t.ui.componentFactory.add("menuBar:link",(()=>{const e=this._createButton(Pt);return e.set({role:"menuitemcheckbox"}),e}))}_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">
8809<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:dc,isToggleable:!0}),r.bind("isEnabled").to(i,"isEnabled"),r.bind("isOn").to(i,"value",(a=>!!a)),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(dc,((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())})),ns({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(Be)){const r=Array.from(this.editor.editing.mapper.markerNameToElements(Be)),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&&vt(n))return Vd(e.getFirstPosition());{const i=e.getFirstRange().getTrimmed(),r=Vd(i.start),s=Vd(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(Be))e.updateMarker(Be,{range:n});else if(n.start.isAtEnd){const i=n.start.getLastMatchingPosition((({item:r})=>!t.schema.isContent(r)),{boundaries:n});e.addMarker(Be,{usingOperation:!1,affectsData:!1,range:e.createRange(i,n.end)})}else e.addMarker(Be,{usingOperation:!1,affectsData:!1,range:n})}
8809))}_hideFakeVisualSelection(){const t=this.editor.model;t.markers.has(Be)&&t.change((e=>{e.removeMarker(Be)}))}}function Vd(o){return o.getAncestors().find((t=>{return(e=t).is("attributeElement")&&!!e.getCustomProperty("link");var e}))||null}const hk=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class ax extends R{static get requires(){return[Re,uk]}static get pluginName(){return"AutoLink"}static get isOfficialPlugin(){return!0}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")?Ta(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)=>{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(hk);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 Sp(t.model,(n=>{if(!(function(r){return r.length>4&&r[r.length-1]===" "&&r[r.length-2]!==" "})(n))return;const i=mk(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}=Ip(t,e),r=mk(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=jd(t,this.editor.config.get("link.defaultProtocol"));this.isEnabled&&(function(r,s){return s.schema.checkAttributeInSelection(s.createSelection(r),"linkHref")})(e,n)&&ak(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 mk(o){const t=hk.exec(o);return t?t[2]:null}class cx extends R{static get requires(){return[uk,sx,ax]}static get pluginName(){return"Link"}static get isOfficialPlugin(){return!0}}var gc=P(4808),ar={attributes:{"data-cke":!0}};ar.setAttributes=H(),ar.insert=V().bind(null,"head"),ar.domAPI=j(),ar.insertStyleElement=U(),F()(gc.A,ar),gc.A&&gc.A.locals&&gc.A.locals;class de{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 Mt(new this(t,e)[Symbol.iterator]())}*[Symbol.iterator](){const t=[];for(const{node:e}of cr(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*cr(o,t="forward"){const e=t=="forward",n=[];let i=null;for(;It(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 lx{constructor(t){this._listHead=t}[Symbol.iterator](){return cr(this._listHead,"forward")}}class ti{static next(){return ne()}}function It(o){return!!o&&o.is("element")&&o.hasAttribute("listItemId")}function Hd(o,t={}){return[...rn(o,{...t,direction:"backward"}),...rn(o,{...t,direction:"forward"})]}function rn(o,t={}){const e=t.direction=="forward",n=Array.from(new de(o,{...t,includeSelf:e,sameIndent:!0,sameAttributes:"listItemId"}));return e?n:n.reverse()}function gk(o,t){const e=new de(o,{sameIndent:!0,sameAttributes:"listType",...t}),n=new de(o,{sameIndent:!0,sameAttributes:"listType",includeSelf:!0,direction:"forward",...t});return[...Array.from(e).reverse(),...n]}function An(o){return!de.first(o,{sameIndent:!0,sameAttributes:"listItemId"})}function pk(o){return!de.first(o,{direction:"forward",sameIndent:!0,sameAttributes:"listItemId"})}function lr(o,t={}){o=gt(o);const e=t.withNested!==!1,n=new Set;for(const i of o)for(const r of Hd(i,{higherIndent:e}))n.add(r);return _n(n)}function dx(o){o=gt(o);const t=new Set;for(const e of o)for(const n of gk(e))t.add(n);return _n(t)}function Ud(o,t){const e=rn(o,{direction:"forward"}),n=ti.next();for(const i of e)t.setAttribute("listItemId",n,i);return e}function qd(o,t,e){const n={};for(const[r,s]of t.getAttributes())r.startsWith("list")&&(n[r]=s);const i=rn(o,{direction:"forward"});for(const r of i)e.setAttributes(n,r);return i}function Gd(o,t,{expand:e,indentBy:n=1}={}){o=gt(o);const i=e?lr(o):o;for(const r of i){const s=r.getAttribute("listIndent")+n;s<0?pc(r,t):t.setAttribute("listIndent",s,r)}return i}function pc(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 dr(o){if(!o.length)return!1;const t=o[0].getAttribute("listItemId");return!!t&&!o.some((e=>e.getAttribute("listItemId")!=t))}function _n(o){return Array.from(o).filter((t=>t.root.rootName!=="$graveyard")).sort(((t,e)=>t.index-e.index))}function ur(o){const t=o.document.selection.getSelectedElement();return t&&o.schema.isObject(t)&&o.schema.isBlock(t)?t:null}function Wd(o,t){return t.checkChild(o.parent,"listItem")&&t.checkChild(o,"$text")&&!t.isObject(o)}function ux(o){return o=="numbered"||o=="customNumbered"}function hx(o,t,e){return rn(t,{direction:"forward"}).pop().index>o.index?qd(o,t,e):[]}class fk extends tt{constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model,e=kk(t.document.selection);t.change((n=>{const i=[];dr(e)&&!An(e[0])?(this._direction=="forward"&&i.push(...Gd(e,n)),i.push(...Ud(e[0],n))):this._direction=="forward"?i.push(...Gd(e,n,{expand:!0})):i.push(...(function(r,s){const a=lr(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,de.first(u,{lowerIndent:!0}));for(const u of a){if(c.has(u))continue;c.add(u);const h=u.getAttribute("listIndent")-1;
8809if(h<0)pc(u,s);else{if(u.getAttribute("listIndent")==l){const m=hx(u,d.get(u),s);for(const p of m)c.add(p);if(m.length)continue}s.setAttribute("listIndent",h,u)}}return _n(c)})(e,n));for(const r of i){if(!r.hasAttribute("listType"))continue;const s=de.first(r,{sameIndent:!0});s&&n.setAttribute("listType",s.getAttribute("listType"),r)}this._fireAfterExecute(i)}))}_fireAfterExecute(t){this.fire("afterExecute",_n(new Set(t)))}_checkEnabled(){let t=kk(this.editor.model.document.selection),e=t[0];if(!e)return!1;if(this._direction=="backward"||dr(t)&&!An(t[0]))return!0;t=lr(t),e=t[0];const n=de.first(e,{sameIndent:!0});return!!n&&n.getAttribute("listType")==e.getAttribute("listType")}}function kk(o){const t=Array.from(o.getSelectedBlocks()),e=t.findIndex((n=>!It(n)));return e!=-1&&(t.length=e),t}class fc extends tt{constructor(t,e,n={}){super(t),this.type=e,this._listWalkerOptions=n.multiLevel?{higherIndent:!0,lowerIndent:!0,sameAttributes:[]}:void 0}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.document,i=ur(e),r=Array.from(n.selection.getSelectedBlocks()).filter((a=>e.schema.checkAttribute(a,"listType")||Wd(a,e.schema))),s=t.forceValue!==void 0?!t.forceValue:this.value;e.change((a=>{if(s){const c=r[r.length-1],l=rn(c,{direction:"forward"}),d=[];l.length>1&&d.push(...Ud(l[1],a)),d.push(...pc(r,a)),d.push(...(function(u,h){const m=[];let p=Number.POSITIVE_INFINITY;for(const{node:k}of cr(u.nextSibling,"forward")){const b=k.getAttribute("listIndent");if(b==0)break;b<p&&(p=b);const C=b-p;h.setAttribute("listIndent",C,k),m.push(k)}return m})(c,a)),this._fireAfterExecute(d)}else if((i||n.selection.isCollapsed)&&It(r[0])){const c=gk(i||r[0],this._listWalkerOptions);for(const l of c)a.setAttributes({...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 lr(l,{withNested:!1}))d.getAttribute("listType")!=this.type&&(a.setAttributes({...t.additionalAttributes,listType:this.type},d),c.push(d));else!l.is("element","listItem")&&Wd(l,e.schema)&&a.rename(l,"listItem"),a.setAttributes({...t.additionalAttributes,listIndent:0,listItemId:ti.next(),listType:this.type},l),c.push(l);this._fireAfterExecute(c)}}))}_fireAfterExecute(t){this.fire("afterExecute",_n(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")||Wd(r,e))return!0;return!1}}class bk extends tt{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 de(u,{direction:"forward",higherIndent:!0})));i.push(...Gd([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 m=h.getLastPosition().parent,p=m.nextSibling;i.push(m),p&&p!==a&&p.getAttribute("listItemId")==d&&i.push(...qd(p,m,r))}else i.push(...qd(a,s,r));this._fireAfterExecute(i)}))}_fireAfterExecute(t){this.fire("afterExecute",_n(new Set(t)))}_checkEnabled(){const t=this.editor.model,e=t.document.selection,n=ur(t);if(e.isCollapsed||n){const i=n||e.getFirstPosition().parent;if(!It(i))return!1;const r=this._direction=="backward"?i.previousSibling:i.nextSibling;if(!r||dr([i,r]))return!1}else{const i=e.getLastPosition(),r=e.getFirstPosition();if(i.parent===r.parent||!It(i.parent))return!1}return!0}_getMergeSubjectElements(t,e){const n=ur(this.editor.model);let i,r;if(t.isCollapsed||n){const s=n||t.getFirstPosition().parent,a=An(s);this._direction=="backward"?(r=s,i=a&&!e?de.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 wk extends tt{constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute(){this.editor.model.change((t=>{const e=Ud(this._getStartBlock(),t);this._fireAfterExecute(e)}))}_fireAfterExecute(t){this.fire("afterExecute",_n(new Set(t)))}_checkEnabled(){const t=this.editor.model.document.selection,e=this._getStartBlock();return t.isCollapsed&&It(e)&&!An(e)}_getStartBlock(){const t=this.editor.model.document.selection.getFirstPosition().parent;return this._direction=="before"?t:t.nextSibling}}class mx extends R{static get pluginName(){return"ListUtils"}static get isOfficialPlugin(){return!0}expandListBlocksToCompleteList(t){return dx(t)}isFirstBlockOfListItem(t){return An(t)}isListItemBlock(t){return It(t)}expandListBlocksToCompleteItems(t,e={}){return lr(t,e)}isNumberedListType(t){return ux(t)}}function gx(o){return o.is("element","ol")||o.is("element","ul")}function Kd(o){return o.is("element","li")}function px(o,t,e,n=_k(e,t)){return o.createAttributeElement(Ak(e),null,{priority:2*t/100-100,id:n})}function fx(o,t,e){return o.createAttributeElement("li",null,{priority:(2*t+1)/100-100,id:e})}function Ak(o){return o=="numbered"||o=="customNumbered"?"ol":"ul"}function _k(o,t){return`list-${o}-${t}`}function _e(o,t){const e=o.nodeBefore;if(It(e)){let n=e;for(const{node:i}of cr(n,"backward"))if(n=i,t.has(n))return;t.set(e,n)}else{const n=o.nodeAfter;It(n)&&t.set(n,n)}}function kx(){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=ti.next(),a=(function(u){let h=0,m=u.parent;for(;m;){if(Kd(m))h++;else{const p=m.previousSibling;p&&Kd(p)&&h++}m=m.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 Ck(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(p,k,b){const C=b.createRangeOn(p);return k.toViewRange(C).getTrimmed().end.nodeBefore})(u,l,e);yk(h,c,l),(function(p,k){let b=p.parent;for(;b.is("attributeElement")&&["ul","ol","li"].includes(b.name);){const C=b.parent;k.unwrap(k.createRangeOn(p),b),b=C}})(h,c);const m=(function(p,k,b,C,{dataPipeline:I}){let M=C.createRangeOn(k);if(!An(p))return M;for(const N of b){if(N.scope!="itemMarker")continue;const G=N.createElement(C,p,{dataPipeline:I});if(!G||(C.setCustomProperty("listItemMarker",!0,G),N.canInjectMarkerIntoElement&&N.canInjectMarkerIntoElement(p)?C.insert(C.createPositionAt(k,0),G):(C.insert(M.start,G),M=C.createRange(C.createPositionBefore(G),C.createPositionAfter(k))),!N.createWrapperElement||!N.canWrapElement))continue;const Q=N.createWrapperElement(C,p,{dataPipeline:I});C.setCustomProperty("listItemWrapper",!0,Q),N.canWrapElement(p)?M=C.wrap(M,Q):(M=C.wrap(C.createRangeOn(G),Q),M=C.createRange(M.start,C.createPositionAfter(k)))}return M})(u,h,t,c,{dataPipeline:n});(function(p,k,b,C){if(!p.hasAttribute("listIndent"))return;const I=p.getAttribute("listIndent");let M=p;for(let N=I;N>=0;N--){const G=fx(C,N,M.getAttribute("listItemId")),Q=px(C,N,M.getAttribute("listType"));for(const J of b)J.scope!="list"&&J.scope!="item"||!M.hasAttribute(J.attributeName)||J.setAttributeOnDowncast(C,M.getAttribute(J.attributeName),J.scope=="list"?Q:G);if(k=C.wrap(k,G),k=C.wrap(k,Q),N==0||(M=de.first(M,{lowerIndent:!0}),!M))break}})(u,m,t,c)}}function vk(o,{dataPipeline:t}={}
vendor: 5,246 bytes, line 8809
8809){return(e,{writer:n})=>{if(!xk(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 yk(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 xk(o,t,e=Hd(o)){if(!It(o))return!1;for(const n of o.getAttributeKeys())if(!n.startsWith("selection:")&&!t.includes(n))return!1;return e.length<2}var kc=P(1232),hr={attributes:{"data-cke":!0}};hr.setAttributes=H(),hr.insert=V().bind(null,"head"),hr.domAPI=j(),hr.insertStyleElement=U(),F()(kc.A,hr),kc.A&&kc.A.locals&&kc.A.locals;var bc=P(6903),mr={attributes:{"data-cke":!0}};mr.setAttributes=H(),mr.insert=V().bind(null,"head"),mr.domAPI=j(),mr.insertStyleElement=U(),F()(bc.A,mr),bc.A&&bc.A.locals&&bc.A.locals;const wc=["listType","listIndent","listItemId"];class bx extends R{constructor(t){super(t),this._downcastStrategies=[],t.config.define("list.multiBlock",!0)}static get pluginName(){return"ListEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[Na,Re,mx,ce]}init(){const t=this.editor,e=t.model,n=t.config.get("list.multiBlock");if(t.plugins.has("LegacyListEditing"))throw new E("list-feature-conflict",this,{conflictPlugin:"LegacyListEditing"});e.schema.register("$listItem",{allowAttributes:wc}),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 wc)e.schema.setAttributeProperties(i,{copyOnReplace:!0});t.commands.add("numberedList",new fc(t,"numbered")),t.commands.add("bulletedList",new fc(t,"bulleted")),t.commands.add("customNumberedList",new fc(t,"customNumbered",{multiLevel:!0})),t.commands.add("customBulletedList",new fc(t,"customBulleted",{multiLevel:!0})),t.commands.add("indentList",new fk(t,"forward")),t.commands.add("outdentList",new fk(t,"backward")),t.commands.add("splitListItemBefore",new wk(t,"before")),t.commands.add("splitListItemAfter",new wk(t,"after")),n&&(t.commands.add("mergeListItemBackward",new bk(t,"backward")),t.commands.add("mergeListItemForward",new bk(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[...wc,...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;ur(t.model)||t.model.change((()=>{const a=s.getFirstPosition();if(s.isCollapsed&&r.direction=="backward"){if(!a.isAtStart)return;const c=a.parent;if(!It(c))return;if(de.first(c,{sameAttributes:"listType",sameIndent:!0})||c.getAttribute("listIndent")!==0){if(!e||!e.isEnabled)return;e.execute({shouldMergeOnBlocksContentLevel:Ek(t.model,"backward")})}else pk(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:Ek(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&&It(c)&&c.isEmpty&&!s.isSoft){const l=An(c),d=pk(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&&Hd(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
8809: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",kx())})),i||t.conversion.for("downcast").elementToElement({model:"listItem",view:"p"}),t.conversion.for("editingDowncast").elementToElement({model:r,view:vk(n),converterPriority:"high"}).add((l=>{var d;l.on("attribute",Ck(n,this._downcastStrategies,e)),l.on("remove",(d=e.schema,(u,h,m)=>{const{writer:p,mapper:k}=m,b=u.name.split(":")[1];if(!d.checkAttribute(b,"listItemId"))return;const C=k.toViewPosition(h.position),I=h.position.getShiftedBy(h.length),M=k.toViewPosition(I,{isPhantom:!0}),N=p.createRange(C,M).getTrimmed().end.nodeBefore;N&&yk(N,p,k)}))})),t.conversion.for("dataDowncast").elementToElement({model:r,view:vk(n,{dataPipeline:!0}),converterPriority:"high"}).add((l=>{l.on("attribute",Ck(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(!It(u)||!a.some((b=>b.scope=="itemMarker"&&b.canInjectMarkerIntoElement&&b.canInjectMarkerIntoElement(u))))return;const h=d.mapper.toViewElement(u),m=c.createRangeIn(h),p=m.getWalker();let k=m.start;for(const{item:b}of p){if(b.is("element")&&d.mapper.toModelElement(b)||b.is("$textProxy"))break;b.is("element")&&b.getCustomProperty("listItemMarker")&&(k=c.createPositionAfter(b),p.skip((({previousPosition:C})=>!C.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(),C=[],I=new Map,M=new Set;for(const N of b)if(N.type=="insert"&&N.name!="$text")_e(N.position,I),N.attributes.has("listItemId")?M.add(N.position.nodeAfter):_e(N.position.getShiftedBy(N.length),I);else if(N.type=="remove"&&N.attributes.has("listItemId"))_e(N.position,I);else if(N.type=="attribute"){const G=N.range.start.nodeAfter;u.includes(N.attributeKey)?(_e(N.range.start,I),N.attributeNewValue===null?(_e(N.range.start.getShiftedBy(1),I),p(G)&&C.push(G)):M.add(G)):It(G)&&p(G)&&C.push(G)}for(const N of I.values())C.push(...m(N,M));for(const N of new Set(C))d.reconvertItem(N)};function m(b,C){const I=[],M=new Set,N=[];for(const{node:G,previous:Q}of cr(b,"forward")){if(M.has(G))continue;const J=G.getAttribute("listIndent");Q&&J<Q.getAttribute("listIndent")&&(N.length=J+1),N[J]=Object.fromEntries(Array.from(G.getAttributes()).filter((([St])=>u.includes(St))));const pt=rn(G,{direction:"forward"});for(const St of pt)M.add(St),(p(St,pt)||k(St,N,C))&&I.push(St)}return I}function p(b,C){const I=d.mapper.toViewElement(b);if(!I)return!1;if(h.fire("checkElement",{modelElement:b,viewElement:I}))return!0;if(!b.is("element","paragraph")&&!b.is("element","listItem"))return!1;const M=xk(b,u,C);return!(!M||!I.is("element","p"))||!(M||!I.is("element","span"))}function k(b,C,I){if(I.has(b))return!1;const M=d.mapper.toViewElement(b);let N=C.length-1;for(let G=M.parent;!G.is("editableElement");G=G.parent){const Q=Kd(G),J=gx(G);if(!J&&!Q)continue;const pt="checkAttributes:"+(Q?"item":"list");if(h.fire(pt,{viewElement:G,modelAttributes:C[N]}))break;if(J&&(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==Ak(u.listType)&&d.id==_k(u.listType,u.listIndent)||(l.return=!0,l.stop())}))}_setupModelPostFixing(){const t=this.editor.model,e=this.getListAttributeNames();t.document.registerPostFixer((n=>
8809(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 m of c){if(m.type=="insert"&&m.name!="$text"){const p=m.position.nodeAfter;if(!i.schema.checkAttribute(p,"listItemId"))for(const k of Array.from(p.getAttributeKeys()))s.includes(k)&&(r.removeAttribute(k,p),u=!0);_e(m.position,l),m.attributes.has("listItemId")||_e(m.position.getShiftedBy(m.length),l);for(const{item:k,previousPosition:b}of i.createRangeIn(p))It(k)&&_e(b,l)}else m.type=="remove"?_e(m.position,l):m.type=="attribute"&&s.includes(m.attributeKey)&&(_e(m.range.start,l),m.attributeNewValue===null&&_e(m.range.start.getShiftedBy(1),l));if(!d&&m.type=="attribute"&&wc.includes(m.attributeKey)){const p=m.range.start.nodeAfter;m.attributeNewValue===null&&p&&p.is("element","listItem")?(r.rename(p,"paragraph"),u=!0):m.attributeOldValue===null&&p&&p.is("element")&&p.name!="listItem"&&(r.rename(p,"listItem"),u=!0)}}const h=new Set;for(const m of l.values())u=a.fire("postFixer",{listNodes:new lx(m),listHead:m,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 m=h.getAttribute("listIndent");if(m>c){let p;d===null?(d=m-c,p=c):(d>m&&(d=m),p=m-d),p>l+1&&(p=l+1),a.setAttribute("listIndent",p,h),u=!0,l=p}else d=null,c=m+1,l=m}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 m=h.getAttribute("listType"),p=h.getAttribute("listItemId");if(c.has(p)&&(p=ti.next()),c.add(p),h.is("element","listItem"))h.getAttribute("listItemId")!=p&&(l.setAttribute("listItemId",p,h),u=!0);else for(const k of rn(h,{direction:"forward"}))d.add(k),k.getAttribute("listType")!=m&&(p=ti.next(),m=k.getAttribute("listType")),k.getAttribute("listItemId")!=p&&(l.setAttribute("listItemId",p,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(It(c.parent))l=c.parent;else{if(!It(c.nodeBefore))return;l=c.nodeBefore}n.change((d=>{const u=l.getAttribute("listType"),h=l.getAttribute("listIndent"),m=a[0].getAttribute("listIndent")||0,p=Math.max(h-m,0);for(const k of a){const b=It(k);l.is("element","listItem")&&k.is("element","paragraph")&&d.rename(k,"listItem"),d.setAttributes({listIndent:(b?k.getAttribute("listIndent"):0)+p,listItemId:b?k.getAttribute("listItemId"):ti.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(It)&&r.remove(a),i.method=="copy"||i.method=="cut"){const c=Array.from(i.content.getChildren());dr(c)&&pc(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 Ek(o,t){const e=o.document.selection;if(!e.isCollapsed)return!ur(o);if(t==="forward")return!0;const n=e.getFirstPosition().parent,i=n.previousSibling;return!o.schema.isObject(i)&&(!!i.isEmpty||dr([n,i]))}function Dk(o,t,e,n){o.ui.componentFactory.add(t,(()=>{const i=Ik(it,o,t,e,n);return i.set({tooltip:!0,isToggleable:!0}),i})),o.ui.componentFactory.add(`menuBar:${t}`,(()=>{const i=Ik(Pt,o,t,e,n);return i.set({role:"menuitemcheckbox",isToggleable:!0}),i}))}function Ik(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 wx extends R{static get pluginName(){return"ListUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor.t;this.editor.ui.componentFactory.has("numberedList")||Dk(this.editor,"numberedList",t("Numbered List"),K.numberedList),this.editor.ui.componentFactory.has("bulletedList")||Dk(this.editor,"bulletedList",t("Bulleted List"),K.bulletedList)}}class Ax extends R{static get requires(){return[bx,wx]}static get pluginName(){return"List"}static get isOfficialPlugin(){return!0}}const _x=[{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 _x);var Ac=P(9968),gr={attributes:{"data-cke":!0}};gr.setAttributes=H(),gr.insert=V().bind(null,"head"),gr.domAPI=j(),gr.insertStyleElement=U(),F()(Ac.A,gr),Ac.A&&Ac.A.locals&&Ac.A.locals;var _c=P(7141),pr={attributes:{"data-cke":!0}};pr.setAttributes=H(),pr.insert=V().bind(null,"head"),pr.domAPI=j(),pr.insertStyleElement=U(),F()(_c.A,pr),_c.A&&_c.A.locals&&_c.A.locals;var Cc=P(8991),fr={attributes:{"data-cke":!0}};fr.setAttributes=H(),fr.insert=V().bind(null,"head"),fr.domAPI=j(),fr.insertStyleElement=U(),F()(Cc.A,fr),Cc.A&&Cc.A.locals&&Cc.A.locals;function Sk(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 Mk(o,t,e,n){return o.createContainerElement("figure",{class:"media"},[t.getMediaViewElement(o,e,n),o.createSlot()])}function Bk(o){const t=o.getSelectedElement();return t&&t.is("element","media")?t:null}function Tk(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 Cx extends tt{refresh(){const t=this.editor.model,e=t.document.selection,n=Bk(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=Hp(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=Bk(n);i?e.change((r=>{r.setAttribute("url",t,i)})):Tk(e,t,n,!0)}}class vx{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):(nt("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 Nk(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 Nk(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 Nk{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 ae,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.
8809637 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 ge({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 vc=P(7048),kr={attributes:{"data-cke":!0}};kr.setAttributes=H(),kr.insert=V().bind(null,"head"),kr.domAPI=j(),kr.insertStyleElement=U(),F()(vc.A,kr),vc.A&&vc.A.locals&&vc.A.locals;class yc extends R{static get pluginName(){return"MediaEmbedEditing"}static get isOfficialPlugin(){return!0}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\/shorts\/([\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+)/,/^instagram\.com\/reel\/(\w+)/]},{name:"twitter",url:[/^twitter\.com/,/^x\.com/]},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new vx(t.locale,t.config.get("mediaEmbed"))}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 Cx(t)),e.register("media",{inheritAllFrom
vendor: 5,406 bytes, line 8809
8809:"$blockObject",allowAttributes:["url"]}),i.for("dataDowncast").elementToStructure({model:"media",view:(c,{writer:l})=>{const d=c.getAttribute("url");return Mk(l,a,d,{elementName:s,renderMediaPreview:!!d&&r})}}),i.for("dataDowncast").add(Sk(a,{elementName:s,renderMediaPreview:r})),i.for("editingDowncast").elementToStructure({model:"media",view:(c,{writer:l})=>{const d=c.getAttribute("url");return(function(u,h,m){return h.setCustomProperty("media",!0,u),xd(u,h,{label:m})})(Mk(l,a,d,{elementName:s,renderForEditingView:!0}),l,n("media widget"))}}),i.for("editingDowncast").add(Sk(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:m}=u.convertChildren(d.viewItem,d.modelCursor);d.modelRange=h,d.modelCursor=m,Mt(h.getItems())||u.consumable.revert(d.viewItem,{name:!0,classes:"media"})}))}))}}const yx=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class xx extends R{static get requires(){return[ef,Re,rf]}static get pluginName(){return"AutoMediaEmbed"}static get isOfficialPlugin(){return!0}constructor(t){super(t),this._timeoutId=null,this._positionToInsert=null}init(){const t=this.editor,e=t.model.document,n=t.plugins.get("ClipboardPipeline");this.listenTo(n,"inputTransformation",(()=>{const i=e.selection.getFirstRange(),r=Nt.fromPosition(i.start);r.stickiness="toPrevious";const s=Nt.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&&(A.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(yc).registry,r=new Ut(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(yx)||!i.hasMedia(a))return void r.detach();n.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=Nt.fromPosition(t),this._timeoutId=A.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),Tk(n.model,a,l,!1),this._positionToInsert.detach(),this._positionToInsert=null})),n.plugins.get(Re).requestUndoOnBackspace()}),100)):r.detach()}}var xc=P(5651),br={attributes:{"data-cke":!0}};br.setAttributes=H(),br.insert=V().bind(null,"head"),br.domAPI=j(),br.insertStyleElement=U(),F()(xc.A,br),xc.A&&xc.A.locals&&xc.A.locals;class Ex extends ${constructor(t,e){super(e),this.focusTracker=new Et,this.keystrokes=new Rt,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this._validators=t,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView]})}render(){super.render(),is({view:this}),this.focusTracker.add(this.urlInputView.element),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.urlInputView.focus()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(t){this.urlInputView.fieldView.value=t.trim()}isValid(){this.resetFormStatus();for(const t of this._validators){const e=t(this);if(e)return this.urlInputView.errorText=e,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const t=this.locale.t,e=new Vs(this.locale,sa),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.inputMode="url",n.on("input",(()=>{e.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=n.element.value.trim()})),e}}class Dx extends R{static get requires(){return[yc,Me]}static get pluginName(){return"MediaEmbedUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.ui.componentFactory.add("mediaEmbed",(()=>{const e=this.editor.locale.t,n=this._createDialogButton(it);return n.tooltip=!0,n.label=e("Insert media"),n})),t.ui.componentFactory.add("menuBar:mediaEmbed",(()=>{const e=this.editor.locale.t,n=this._createDialogButton(Pt);return n.label=e("Media"),n}))}_createDialogButton(t){const e=this.editor,n=new t(e.locale),i=e.commands.get("mediaEmbed"),r=this.editor.plugins.get("Dialog");return n.icon='<svg viewBox="0 0 22 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.587 1.5c-.612 0-.601-.029-.601.551v14.84c0 .59-.01.559.591.559h18.846c.602 0 .591.03.591-.56V2.052c0-.58.01-.55-.591-.55H1.587Zm.701.971h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-14.24 1h13.008v12H4.467l.029-12Zm-2.208
88091h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003l-.029 1h-.974v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h.974v1h-.974v-1Zm16.448 0h1.003v1h-1.003v-1Z"/><path d="M8.374 6.648a.399.399 0 0 1 .395-.4.402.402 0 0 1 .2.049l5.148 2.824a.4.4 0 0 1 0 .7l-5.148 2.824a.403.403 0 0 1-.595-.35V6.648Z"/></svg>',n.bind("isEnabled").to(i,"isEnabled"),n.on("execute",(()=>{r.id==="mediaEmbed"?r.hide():this._showDialog()})),n}_showDialog(){const t=this.editor,e=t.plugins.get("Dialog"),n=t.commands.get("mediaEmbed"),i=t.locale.t;if(!this._formView){const r=t.plugins.get(yc).registry;this._formView=new(Il(Ex))((function(s,a){return[c=>{if(!c.url.length)return s("The URL must not be empty.")},c=>{if(!a.hasMedia(c.url))return s("This media URL is not supported.")}]})(t.t,r),t.locale),this._formView.on("submit",(()=>this._handleSubmitForm()))}e.show({id:"mediaEmbed",title:i("Insert media"),content:this._formView,isModal:!0,onShow:()=>{this._formView.url=n.value||"",this._formView.resetFormStatus(),this._formView.urlInputView.fieldView.select()},actionButtons:[{label:i("Cancel"),withText:!0,onExecute:()=>e.hide()},{label:i("Accept"),class:"ck-button-action",withText:!0,onExecute:()=>this._handleSubmitForm()}]})}_handleSubmitForm(){const t=this.editor,e=t.plugins.get("Dialog");this._formView.isValid()&&(t.execute("mediaEmbed",this._formView.url),e.hide(),t.editing.view.focus())}}var Ec=P(70),wr={attributes:{"data-cke":!0}};wr.setAttributes=H(),wr.insert=V().bind(null,"head"),wr.domAPI=j(),wr.insertStyleElement=U(),F()(Ec.A,wr),Ec.A&&Ec.A.locals&&Ec.A.locals;class Ix extends R{static get requires(){return[yc,Dx,xx,Ro]}static get pluginName(){return"MediaEmbed"}static get isOfficialPlugin(){return!0}}function Pk(o){return o!==void 0&&o.endsWith("px")}function ei(o){return o.toFixed(2).replace(/\.?0+$/,"")+"px"}function Sx(o,t,e){if(!o.childCount)return;const n=new Qe(o.document),i=(function(a,c){const l=c.createRangeIn(a),d=[],u=new Set;for(const h of l.getItems()){if(!h.is("element")||!h.name.match(/^(p|h\d+|li|div)$/))continue;let m=zx(h);if(m===void 0||parseFloat(m)!=0||Array.from(h.getClassNames()).find((p=>p.startsWith("MsoList")))||(m=void 0),h.hasStyle("mso-list")||m!==void 0&&u.has(m)){const p=Lx(h);d.push({element:h,id:p.id,order:p.order,indent:p.indent,marginLeft:m}),m!==void 0&&u.add(m)}else u.clear()}return d})(o,n);if(!i.length)return;const r={},s=[];for(const a of i)if(a.indent!==void 0){Mx(a)||(s.length=0);const c=`${a.id}:${a.indent}`,l=Math.min(a.indent-1,s.length);if(l<s.length&&s[l].id!==a.id&&(s.length=l),l<s.length-1)s.length=l+1;else{const u=Tx(a,t);if(l>s.length-1||s[l].listElement.name!=u.type){l==0&&u.type=="ol"&&a.id!==void 0&&r[c]&&(u.startIndex=r[c]);const h=Px(u,n,e);if(Pk(a.marginLeft)&&(l==0||Pk(s[l-1].marginLeft))){let m=a.marginLeft;l>0&&(m=ei(parseFloat(m)-parseFloat(s[l-1].marginLeft))),n.setStyle("padding-left",m,h)}if(s.length==0){const m=a.element.parent,p=m.getChildIndex(a.element)+1;n.insertChild(p,h,m)}else{const m=s[l-1].listItemElements;n.appendChild(h,m[m.length-1])}s[l]={...a,listElement:h,listItemElements:[]},l==0&&a.id!==void 0&&(r[c]=u.startIndex||1)}}const d=a.element.name=="li"?a.element:n.createElement("li");n.appendChild(d,s[l].listElement),s[l].listItemElements.push(d),l==0&&a.id!==void 0&&r[c]++,a.element!=d&&n.appendChild(a.element,d),Ox(a.element,n),n.removeStyle("text-indent",a.element),n.removeStyle("margin-left",a.element)}else{const c=s.find((l=>l.marginLeft==a.marginLeft));if(c){const l=c.listItemElements;n.appendChild(a.element,l[l.length-1]),n.removeStyle("margin-left",a.element)}else s.length=0}}function Mx(o){const t=o.element.previousSibling;return Bx(t||o.element.parent)}function Bx(o){return o.is("element","ol")||o.is("element","ul")}function Tx(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",m=null;if(d&&d[1]){const p=n.exec(d[1]);if(p&&p[1]&&(u=p[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 C=(function(M){if(M.getChild(0).is("$text"))return null;for(const N of M.getChildren()){if(!N.is("element","span"))continue;const G=N.getChild(0);if(G)return G.is("$text")?G:G.getChild(0)}return null})(b);if(!C)return null;const I=C._data;return I==="o"?"circle":I==="·"?"disc":I==="§"?"square":null})(o.element);k&&(u=k)}
8809else{const k=i.exec(d[1]);k&&k[1]&&(m=parseInt(k[1]))}l&&(h="ol")}return{type:h,startIndex:m,style:Nx(u),isLegalStyleList:l}}function Nx(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 Px(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 Lx(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 Ox(o,t){const e=new Ee({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 zx(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")?ei(96*n/72):e.endsWith("pc")?ei(12*n*96/72):e.endsWith("in")?ei(96*n):e.endsWith("cm")?ei(96*n/2.54):e.endsWith("mm")?ei(n/10*96/2.54):e})(t)}function Rx(o,t){if(!o.childCount)return;const e=new Qe(o.document),n=(function(r,s){const a=s.createRangeIn(r),c=new Ee({name:/v:(.+)/}),l=[];for(const d of a){if(d.type!="elementStart")continue;const u=d.item,h=u.previousSibling,m=h&&h.is("element")?h.name:null,p=["Chart"],k=c.match(u),b=u.getAttribute("o:gfxdata"),C=m==="v:shapetype",I=b&&p.some((M=>u.getAttribute("id").includes(M)));k&&b&&!C&&!I&&l.push(d.item.getAttribute("id"))}return l})(o,e);(function(r,s,a){const c=a.createRangeIn(s),l=new Ee({name:"img"}),d=[];for(const u of c)if(u.item.is("element")&&l.match(u.item)){const h=u.item,m=h.getAttribute("v:shapes")?h.getAttribute("v:shapes").split(" "):[];m.length&&m.every((p=>r.indexOf(p)>-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 m=h.item.getAttribute("id");if(r.includes(m))continue;d(h.item.parent.getChildren(),m)||l.push(h.item)}for(const h of l){const m={src:u(h)};h.hasAttribute("alt")&&(m.alt=h.getAttribute("alt"));const p=a.createElement("img",m);a.insertChild(h.index+1,p,h.parent)}function d(h,m){for(const p of h)if(p.is("element")&&(p.name=="img"&&p.getAttribute("v:shapes")==m||d(p.getChildren(),m)))return!0;return!1}function u(h){for(const m of h.getChildren())if(m.is("element")&&m.getAttribute("src"))return m.getAttribute("src")}})(n,o,e),(function(r,s){const a=s.createRangeIn(r),c=new Ee({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 Ee({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,${Fx(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 Fx(o){return btoa(o.match(/\w{2}/g).map((t=>String.fromCharCode(parseInt(t,16)))).join(""))}const jx=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,Vx=/xmlns:o="urn:schemas-microsoft-com/i;class Hx{constructor(t,e=!1){this.document=t,this.hasMultiLevelListPlugin=e}isActive(t){return jx.test(t)||Vx.test(t)}execute(t){const{body:e,stylesString:n}=t._parsedData;Sx(e,n,this.hasMultiLevelListPlugin),Rx(e,t.dataTransfer.getData("text/rtf")),(function(i){const r=[],s=new Qe(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 Lk(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 Ok(o,t){return!!o&&o.is("element")&&t.includes(o.name)}const Ux=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class qx{constructor(t){this.document=t}isActive(t){return Ux.test(t)}execute(t){const e=new Qe(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 us(r.document.stylesProcessor),a=new ps(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 m=Lk(h,"forward",r,{blockElements:c,inlineObjectElements:l}),p=Lk(h,"backward",r,{blockElements:c,inlineObjectElements:l}),k=Ok(m,c);(Ok(p,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 Gx=/<google-sheets-html-origin/i;class Wx{constructor(t){this.document=t}isActive(t){return Gx.test(t)}execute(t){const e=new Qe(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 zk(o){return o.replace(/<span(?: class="Apple-converted-s
8809pace"|)>(\s+)<\/span>/g,((t,e)=>e.length===1?" ":Array(e.length+1).join("Â ").substr(0,e.length)))}function Kx(o,t){const e=new DOMParser,n=(function(c){return zk(zk(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 us(l),u=new ps(d,{renderingMode:"data"}),h=c.createDocumentFragment(),m=c.body.childNodes;for(;m.length>0;)h.appendChild(m[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}}class $x extends R{static get pluginName(){return"PasteFromOffice"}static get isOfficialPlugin(){return!0}static get requires(){return[ce]}init(){const t=this.editor,e=t.plugins.get("ClipboardPipeline"),n=t.editing.view.document,i=[],r=this.editor.plugins.has("MultiLevelList");i.push(new Hx(n,r)),i.push(new qx(n)),i.push(new Wx(n)),e.on("inputTransformation",((s,a)=>{if(a._isTransformedWithPasteFromOffice||t.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const c=a.dataTransfer.getData("text/html"),l=i.find((d=>d.isActive(c)));l&&(a._parsedData||(a._parsedData=Kx(c,n.stylesProcessor)),l.execute(a),a._isTransformedWithPasteFromOffice=!0)}),{priority:"high"})}}function yt(o,t,e,n,i=1){t!=null&&i!=null&&t>i?n.setAttribute(o,t,e):n.removeAttribute(o,e)}function Cn(o,t,e={}){const n=o.createElement("tableCell",e);return o.insertElement("paragraph",n),o.insert(n,t),n}function $d(o,t){const e=t.parent.parent,n=parseInt(e.getAttribute("headingColumns")||"0"),{column:i}=o.getCellLocation(t);return!!n&&i<n}function Yx(){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 m=[],p=[];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 C=Array.from(b.getChildren()).filter((I=>I.is("element","tr")));for(const I of C)if(k&&b===k||b.name==="tbody"&&Array.from(I.getChildren()).length&&Array.from(I.getChildren()).every((M=>M.is("element","th"))))h++,m.push(I);else{p.push(I);const M=Qx(I);(!u||M<u)&&(u=M)}}return{headingRows:h,headingColumns:u||0,rows:[...m,...p]}})(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")),Cn(n.writer,n.writer.createPositionAt(d,"end"))}n.updateConversionResult(l,e)}}))}}function Rk(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 Qx(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 lt{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()}
8809skipRow(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 Zx(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 Zx{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 Fk(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),xd(a,c,{hasSelectionHandle:!0})})(s,n):s}}function jk(o={}){return(t,{writer:e})=>{const n=t.parent,i=n.parent,r=i.getChildIndex(n),s=new lt(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?Vp(e.createEditableElement(u),e):e.createContainerElement(u);break}return l}}function Vk(o={}){return(t,{writer:e})=>{if(!t.parent.is("element","tableCell")||!Hk(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 Hk(o){return o.parent.childCount==1&&!!o.getAttributeKeys().next().done}class Jx extends tt{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 Uk extends tt{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
8809stor("table");n.insertRows(c,{at:i?a:a+1,copyStructureFromAbove:!i})}}class qk extends tt{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 Gk extends tt{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 Wk(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 lt(o,{startRow:n,endRow:r,startColumn:i,endColumn:s,includeAllSlots:!0})];for(const{row:d,column:u,cell:h,isAnchor:m,cellAnchorRow:p,cellAnchorColumn:k}of l){const b=d-n,C=a.getChild(b);if(m){const I=e.cloneElement(h);e.append(I,C),Zk(I,d,u,r,s,e)}else(p<n||k<i)&&Cn(e,e.createPositionAt(C,"end"))}return(function(d,u,h,m,p){const k=parseInt(u.getAttribute("headingRows")||"0");k>0&&yt("headingRows",k-h,d,p,0);const b=parseInt(u.getAttribute("headingColumns")||"0");b>0&&yt("headingColumns",b-m,d,p,0)})(a,o,n,i,e),a}function Kk(o,t,e=0){const n=[],i=new lt(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 $k(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 lt(i,{startRow:r,endRow:d,includeAllSlots:!0})];let h,m=null;for(const p of u){const{row:k,column:b,cell:C}=p;C===o&&h===void 0&&(h=b),h!==void 0&&h===b&&k===d&&(m=Cn(e,p.getPositionBefore(),a))}return yt("rowspan",s,o,e),m}function Yk(o,t){const e=[],n=new lt(o);for(const i of n){const{column:r,cellWidth:s}=i;r<t&&t<=r+s-1&&e.push(i)}return e}function Qk(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=Cn(n,n.createPositionAfter(o),r);return yt("colspan",i,o,n),c}function Zk(o,t,e,n,i,r){const s=parseInt(o.getAttribute("colspan")||"1"),a=parseInt(o.getAttribute("rowspan")||"1");e+s-1>i&&yt("colspan",i-e+1,o,r,1),t+a-1>n&&yt("rowspan",n-t+1,o,r,1)}function Yd(o,t){const e=t.getColumns(o),n=new Array(e).fill(0);for(const{column:r}of new lt(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 Qd(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 Zd(o,t){Yd(o,t)||Qd(o,t)}function Jk(o,t){const e=Array.from(new lt(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 Xk(o,t){const e=Array.from(new lt(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 Dc extends tt{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,C){tb(k)||(tb(b)&&C.remove(C.createRangeIn(b)),C.move(C.createRangeIn(k),C.createPositionAt(b,"end"))),C.remove(k)})(l,c,s);const u=this.isHorizontal?"colspan":"rowspan",h=parseInt(n.getAttribute(u)||"1"),m=parseInt(i.getAttribute(u)||"1");s.setAttribute(u,h+m,c),s.setSelection(s.createRangeIn(c));const p=this.editor.plugins.get("TableUtils");
8809Zd(d.findAncestor("table"),p)}))}_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,m=(u.getAttribute("headingColumns")||0)>0;if(!h)return;const p=c=="right"?a:h,k=c=="right"?h:a,{column:b}=l.getCellLocation(p),{column:C}=l.getCellLocation(k),I=parseInt(p.getAttribute("colspan")||"1"),M=$d(l,p),N=$d(l,k);if(!(m&&M!=N))return b+I===C?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 m=parseInt(a.getAttribute("rowspan")||"1"),p=u.getAttribute("headingRows")||0,k=c=="down"&&h+m===p,b=c=="up"&&h===p;if(p&&(k||b))return null;const C=parseInt(a.getAttribute("rowspan")||"1"),I=c=="down"?h+C:h,M=[...new lt(u,{endRow:I})],N=M.find((J=>J.cell===a)),G=N.column,Q=M.find((({row:J,cellHeight:pt,column:St})=>St===G&&(c=="down"?J===I:I===J+pt)));return Q&&Q.cell?Q.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 tb(o){const t=o.getChild(0);return o.childCount==1&&t.is("element","paragraph")&&t.isEmpty}class Xx extends tt{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,m,p){const k=u.getChild(Math.min(h,p-1));let b=k.getChild(0),C=0;for(const I of k.getChildren()){if(C>m)return b;b=I,C+=parseInt(I.getAttribute("colspan")||"1")}return b})(s,i.first,a,e.getRows(s));c.setSelection(c.createPositionAt(d,0))}))}}class tE extends tt{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(),m=[u,h];return u.isBefore(h)?m:m.reverse()})(this.editor.model.document.selection,t),i=e.parent.parent,r=[...new lt(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:m})=>m<u.first)).cell:c.reverse().find((({column:m})=>m>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 eE extends tt{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=Kk(r,c,c>l?l:0);for(const{cell:h}of u)$k(h,c,d)}yt("headingRows",c,r,d,0)}))}_isInHeading(t,e){const n=parseInt(e.getAttribute("headingRows")||"0");return!!n&&t.parent.index<n}}class nE extends tt{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=>$d(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
vendor: 6,199 bytes, line 8809
8809stor("table"),{first:s,last:a}=e.getColumnIndexes(i),c=this.value?s:a+1;n.change((l=>{if(c){const d=Yk(r,c);for(const{cell:u,column:h}of d)Qk(u,h,c,l)}yt("headingColumns",c,r,l,0)}))}}function iE(o){if(o.is("element","tableColumnGroup"))return o;const t=o.getChildren();return Array.from(t).find((e=>e.is("element","tableColumnGroup")))}function oE(o){const t=iE(o);return t?Array.from(t.getChildren()):[]}class Lt extends R{static get pluginName(){return"TableUtils"}static get isOfficialPlugin(){return!0}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(t){const e=t.parent,n=e.parent,i=n.getChildIndex(e),r=new lt(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 Jd(t,n,0,i,r),e.headingRows&&yt("headingRows",Math.min(e.headingRows,i),n,t,0),e.headingColumns&&yt("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 E("tableutils-insertrows-insert-out-of-range",this,{options:e});n.change((d=>{const u=t.getAttribute("headingRows")||0;if(u>i&&yt("headingRows",u+r,t,d,0),!s&&(i===0||i===c))return void Jd(d,t,i,r,l);const h=s?Math.max(i,a):i,m=new lt(t,{endRow:h}),p=new Array(l).fill(1);for(const{row:k,column:b,cellHeight:C,cellWidth:I,cell:M}of m){const N=k+C-1,G=k<=a&&a<=N;k<i&&i<=N?(d.setAttribute("rowspan",C+r,M),p[b]=-I):s&&G&&(p[b]=I)}for(let k=0;k<r;k++){const b=d.createElement("tableRow");d.insert(b,t,i);for(let C=0;C<p.length;C++){const I=p[C],M=d.createPositionAt(b,"end");I>0&&Cn(d,M,I>1?{colspan:I}:void 0),C+=Math.abs(I)-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")&&ni(r,s,s.createPositionAt(d,i?"end":0));return}const l=new lt(t,{column:i,includeAllSlots:!0});for(const d of l){const{row:u,cell:h,cellAnchorColumn:m,cellAnchorRow:p,cellWidth:k,cellHeight:b}=d;if(m<i){s.setAttribute("colspan",k+r,h);const C=p+b-1;for(let I=u;I<=C;I++)l.skipRow(I)}else ni(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 E("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:m,last:p}){const k=new Map,b=[];for(const{row:C,column:I,cellHeight:M,cell:N}of new lt(h,{endRow:p})){const G=C+M-1;if(C>=m&&C<=p&&G>p){const Q=M-(p-C+1);k.set(I,{cell:N,rowspan:Q})}if(C<m&&G>=m){let Q;Q=G>=p?p-m+1:G-m+1,b.push({cell:N,rowspan:M-Q})}}return{cellsToMove:k,cellsToTrim:b}})(t,l);d.size&&(function(h,m,p,k){const b=new lt(h,{includeAllSlots:!0,row:m}),C=[...b],I=h.getChild(m);let M;for(const{column:N,cell:G,isAnchor:Q}of C)if(p.has(N)){const{cell:J,rowspan:pt}=p.get(N),St=M?k.createPositionAfter(M):k.createPositionAt(I,0);k.move(k.createRangeOn(J),St),yt("rowspan",pt,J,k),M=J}else Q&&(M=G)})(t,a+1,d,c);for(let h=a;h>=s;h--)c.remove(t.getChild(h));for(const{rowspan:h,cell:m}of u)yt("rowspan",h,m,c);(function(h,{first:m,last:p},k){const b=h.getAttribute("headingRows")||0;m<b&&yt("headingRows",p<b?b-(p-m+1):m,h,k,0)})(t,l,c),Yd(t,this)||Qd(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 m=Math.min(h-1,d.last)-d.first+1;u.setAttribute("headingColumns",h-m,l)}})(t,{first:i,last:s},a);const c=oE(t);for(let l=s;l>=i;l--){for(const{cell:d,column:u,cellWidth:h}of[...new lt(t)])u<=l&&h>1&&u+h>l?yt("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)}}Qd(t,this)||Yd(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}=eb(s,e);yt("colspan",l,t,a);const d={};c>1&&(d.colspan=c),r>1&&(d.rowspan=r),ni(s>e?e-1:s-1,a,a.createPositionAfter(t),d)}if(s<e){const c=e-s,l=[...new lt(i)],{column:d}=l.find((({cell:p})=>p===t)),u=l.filter((({cell:p,cellWidth:k,column:b})=>p!==t&&b===d||b<d&&b+k>d));for(const{cell:p,cellWidth:k}of u)a.setAttribute("colspan",k+c,p);const h={};r>1&&(h.rowspan=r),ni(c,a,a.createPositionAfter(t),h);const m=i.getAttribute("headingColumns")||0;m>d&&yt("headingColumns",m+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 lt(r,{startRow:s,endRow:s+a-1,includeAllSlots:!0})],{newCellsSpan:u,updatedSpan:h}=eb(a,e);yt("rowspan",h,t,l);const{column:m}=d.find((({cell:b})=>b===t)),p={};u>1&&(p.rowspan=u),c>1&&(p.colspan=c);let k=0;for(const b of d){const{column:C,row:I}=b,M=C===m;k>=u&&M&&(k=0),I>=s+h&&M&&(k||ni(1,l,b.getPositionBefore(),p),k++)}}if(a<e){const d=e-a,u=[...new lt(r,{startRow:0,endRow:s})];for(const{cell:p,cellHeight:k,row:b}of u)if(p!==t&&b+k>s){const C=k+d;l.setAttribute("rowspan",C,p)}const h={};c>1&&(h.colspan=c),Jd(l,r,s+1,d,1,h);const m=r.getAttribute("headingRows")||0;m>s&&yt("headingRows",m+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 lt(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=[];
8809for(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)}getColumnIndexes(t){const e=t[0].findAncestor("table"),n=[...new lt(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),m=Math.min(...l);return(d-u+1)*(h-m+1)})(e,n)==i}sortRanges(t){return Array.from(t).sort(rE)}_getFirstLastIndexesObject(t){const e=t.sort(((n,i)=>n-i));return{first:e[0],last:e[e.length-1]}}
8809_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 Jd(o,t,e,n,i,r={}){for(let s=0;s<n;s++){const a=o.createElement("tableRow");o.insert(a,t,e),ni(i,o,o.createPositionAt(a,"end"),r)}}function ni(o,t,e,n={}){for(let i=0;i<o;i++)Cn(t,e,n)}function eb(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 rE(o,t){const e=o.start,n=t.start;return e.isBefore(n)?-1:1}class sE extends tt{refresh(){const t=this.editor.plugins.get(Lt),e=t.getSelectedTableCells(this.editor.model.document.selection);this.isEnabled=t.isSelectionRectangular(e)}execute(){const t=this.editor.model,e=this.editor.plugins.get(Lt);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 C of l){const{row:I,column:M}=d.getCellLocation(C);u=ib(C,M,u,"colspan"),h=ib(C,I,h,"rowspan")}const{row:m,column:p}=d.getCellLocation(c),k=u-p,b=h-m;return{mergeWidth:k,mergeHeight:b}})(r,i,e);yt("colspan",s,r,n),yt("rowspan",a,r,n);for(const c of i)aE(c,r,n);Zd(r.findAncestor("table"),e),n.setSelection(r,"in")}))}}function aE(o,t,e){nb(o)||(nb(t)&&e.remove(e.createRangeIn(t)),e.move(e.createRangeIn(o),e.createPositionAt(t,"end"))),e.remove(o)}function nb(o){const t=o.getChild(0);return o.childCount==1&&t.is("element","paragraph")&&t.isEmpty}function ib(o,t,e,n){const i=parseInt(o.getAttribute(n)||"1");return Math.max(e,t+i)}class cE extends tt{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 lE extends tt{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 lt(s,{startColumn:l,endColumn:d}))u.push(e.createRangeOn(h.cell));e.change((h=>{h.setSelection(u)}))}}function dE(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")),mE(a)&&(c=a.range.start.findAncestor("table")),c&&!s.has(c)&&(r=uE(c,e)||r,r=hE(c,e)||r,s.add(c))}return r})(t,o)))}function uE(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 lt(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)yt("rowspan",i.rowspan,i.cell,t,1)}return e}function hE(o,t){let e=!1;const n=(function(a){const c=new Array(a.childCount).fill(0);for(const{rowIndex:l}of new lt(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++)Cn(t,t.createPositionAt(o.getChild(c),"end"));e=!0}}}return e}function mE(o){if(o.type!=="attribute")return!1;const t=o.attributeKey;return t==="headingRows"||t==="colspan"||t==="rowspan"}function gE(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=pE(s.position.nodeAfter,e)||r),s.type=="insert"&&s.name=="tableRow"&&(r=ob(s.position.nodeAfter,e)||r),s.type=="insert"&&s.name=="tableCell"&&(r=Xd(s.position.nodeAfter,e)||r),s.type!="remove"&&s.type!="insert"||!fE(s)||(r=Xd(s.position.parent,e)||r);return r})(t,o)))}function pE(o,t){let e=!1;for(const n of o.getChildren())n.is("element","tableRow")&&(e=ob(n,t)||e);return e}function ob(o,t){let e=!1;for(const n of o.getChildren())e=Xd(n,t)||e;return e}function Xd(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 fE(o){return!!o.position.parent.is("element","tableCell")&&(o.type=="insert"&&o.name=="$text"||o.type=="remove")}function kE(o,t){if(!o.is("element","paragraph"))return!1;const e=t.toViewElement(o);return!!e&&Hk(o)!==e.is("element","span")}
8809var Ic=P(8137),Ar={attributes:{"data-cke":!0}};Ar.setAttributes=H(),Ar.insert=V().bind(null,"head"),Ar.domAPI=j(),Ar.insertStyleElement=U(),F()(Ic.A,Ar),Ic.A&&Ic.A.locals&&Ic.A.locals;class bE extends R{static get pluginName(){return"TableEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[Lt]}constructor(t){super(t),this._additionalSlots=[]}init(){const t=this.editor,e=t.model,n=e.schema,i=t.conversion,r=t.plugins.get(Lt);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 m of h.getChildren())if(m.is("element","table"))return m})(c.viewItem);if(!d||!l.consumable.test(d,{name:!0}))return;l.consumable.consume(c.viewItem,{name:!0,classes:"table"});const u=Mt(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(Yx()),i.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Fk(r,{asWidget:!0,additionalSlots:this._additionalSlots})}),i.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Fk(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(Rk("td")),i.for("upcast").add(Rk("th")),i.for("editingDowncast").elementToElement({model:"tableCell",view:jk({asWidget:!0})}),i.for("dataDowncast").elementToElement({model:"tableCell",view:jk()}),i.for("editingDowncast").elementToElement({model:"paragraph",view:Vk({asWidget:!0}),converterPriority:"high"}),i.for("dataDowncast").elementToElement({model:"paragraph",view:Vk(),converterPriority:"high"}),i.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),i.for("upcast").attributeToAttribute({model:{key:"colspan",value:rb("colspan")},view:"colspan"}),i.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),i.for("upcast").attributeToAttribute({model:{key:"rowspan",value:rb("rowspan")},view:"rowspan"}),t.config.define("table.defaultHeadings.rows",0),t.config.define("table.defaultHeadings.columns",0),t.commands.add("insertTable",new Jx(t)),t.commands.add("insertTableRowAbove",new Uk(t,{order:"above"})),t.commands.add("insertTableRowBelow",new Uk(t,{order:"below"})),t.commands.add("insertTableColumnLeft",new qk(t,{order:"left"})),t.commands.add("insertTableColumnRight",new qk(t,{order:"right"})),t.commands.add("removeTableRow",new Xx(t)),t.commands.add("removeTableColumn",new tE(t)),t.commands.add("splitTableCellVertically",new Gk(t,{direction:"vertically"})),t.commands.add("splitTableCellHorizontally",new Gk(t,{direction:"horizontally"})),t.commands.add("mergeTableCells",new sE(t)),t.commands.add("mergeTableCellRight",new Dc(t,{direction:"right"})),t.commands.add("mergeTableCellLeft",new Dc(t,{direction:"left"})),t.commands.add("mergeTableCellDown",new Dc(t,{direction:"down"})),t.commands.add("mergeTableCellUp",new Dc(t,{direction:"up"})),t.commands.add("setTableColumnHeader",new nE(t)),t.commands.add("setTableRowHeader",new eE(t)),t.commands.add("selectTableRow",new cE(t)),t.commands.add("selectTableColumn",new lE(t)),dE(e),gE(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.findAnce
vendor: 7,869 bytes, line 8809
8809stor("table"),u=l.name=="tableRow");if(!d)continue;const h=d.getAttribute("headingRows")||0,m=d.getAttribute("headingColumns")||0,p=new lt(d);for(const k of p){const b=k.row<h||k.column<m?"th":"td",C=a.mapper.toViewElement(k.cell);C&&C.is("element")&&C.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=>kE(h,a.mapper)));for(const h of u)a.reconvertItem(h)}})(e,t.editing)}))}registerAdditionalSlot(t){this._additionalSlots.push(t)}}function rb(o){return t=>{const e=parseInt(t.getAttribute(o));return Number.isNaN(e)||e<=0?null:e}}var Sc=P(5032),_r={attributes:{"data-cke":!0}};_r.setAttributes=H(),_r.insert=V().bind(null,"head"),_r.domAPI=j(),_r.insertStyleElement=U(),F()(Sc.A,_r),Sc.A&&Sc.A.locals&&Sc.A.locals;class sb extends ${constructor(t){super(t);const e=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new Rt,this.focusTracker=new Et,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(),NA({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 it(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 wE extends R{static get pluginName(){return"TableUI"}static get isOfficialPlugin(){return!0}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=Je(i);let a;return s.bind("isEnabled").to(r),s.buttonView.set({icon:K.table,label:e("Insert table"),tooltip:!0}),s.on("change:isOpen",(()=>{a||(a=new sb(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 tn(i),a=new sb(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:K.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=Je(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 zs||r.editing.view.focus()})),s}_prepareMergeSplitButtonDropdown(t,e,n,i){const r=this.editor,s=Je(i,ia),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}
8809_fillDropdownWithListOptions(t,e){const n=this.editor,i=[],r=new he;for(const s of e)AE(s,n,i,r);return $g(t,r),i}}function AE(o,t,e,n){if(o.type==="button"||o.type==="switchbutton"){const i=o.model=new lp(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 Mc=P(8423),Cr={attributes:{"data-cke":!0}};Cr.setAttributes=H(),Cr.insert=V().bind(null,"head"),Cr.domAPI=j(),Cr.insertStyleElement=U(),F()(Mc.A,Cr),Mc.A&&Mc.A.locals&&Mc.A.locals;class vn extends R{static get pluginName(){return"TableSelection"}static get isOfficialPlugin(){return!0}static get requires(){return[Lt,Lt]}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"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const t=this.editor.plugins.get(Lt),e=this.editor.model.document.selection,n=t.getSelectedTableCells(e);return n.length==0?null:n}getSelectionAsFragment(){const t=this.editor.plugins.get(Lt),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}
vendor: 4,224 bytes, line 8809
8809=t.getRowIndexes(e),l=e[0].findAncestor("table");let d=c,u=s;if(t.isSelectionRectangular(e)){const m={firstColumn:r,lastColumn:s,firstRow:a,lastRow:c};d=Jk(l,m),u=Xk(l,m)}const h=Wk(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=Mt(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(Lt),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 m of c)s.deleteContent(h.createSelection(m,"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:p,cell:k}of new lt(t.findAncestor("table"),u))d[p-s].push(k);const h=r.row<i.row,m=r.column<i.column;return h&&d.reverse(),m&&d.forEach((p=>p.reverse())),{cells:d.flat(),backward:h||m}}}class _E extends R{static get pluginName(){return"TableClipboard"}static get isOfficialPlugin(){return!0}static get requires(){return[To,ce,vn,Lt]}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(vn),r=this.editor.plugins.get(To);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(Lt),s=this.editor.plugins.get(To),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)}))):Zd(a,r)}_replaceSelectedCells(t,e,n){const i=this.editor.plugins.get(Lt),r={width:i.getColumns(t),height:i.getRows(t)}
8809,s=(function(u,h,m,p){const k=u[0].findAncestor("table"),b=p.getColumnIndexes(u),C=p.getRowIndexes(u),I={firstColumn:b.first,lastColumn:b.last,firstRow:C.first,lastRow:C.last},M=u.length===1;return M&&(I.lastRow+=h.height-1,I.lastColumn+=h.width-1,(function(N,G,Q,J){const pt=J.getColumns(N),St=J.getRows(N);Q>pt&&J.insertColumns(N,{at:pt,columns:Q-pt}),G>St&&J.insertRows(N,{at:St,rows:G-St})})(k,I.lastRow+1,I.lastColumn+1,p)),M||!p.isSelectionRectangular(u)?(function(N,G,Q){const{firstRow:J,lastRow:pt,firstColumn:St,lastColumn:ub}=G,hb={first:J,last:pt},mb={first:St,last:ub};eu(N,St,hb,Q),eu(N,ub+1,hb,Q),tu(N,J,mb,Q),tu(N,pt+1,mb,Q,J)})(k,I,m):(I.lastRow=Jk(k,I),I.lastColumn=Xk(k,I)),I})(e,r,n,i),a=s.lastRow-s.firstRow+1,c=s.lastColumn-s.firstColumn+1;t=Wk(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,C,I){const M=new Array(I).fill(null).map((()=>new Array(C).fill(null)));for(const{column:N,row:G,cell:Q}of new lt(b))M[G][N]=Q;return M})(t,s,a),l=[...new lt(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:C,column:I}=b;I===i.firstColumn&&(u=b.getPositionBefore());const M=C-i.firstRow,N=I-i.firstColumn,G=c[M%a][N%s],Q=G?r.cloneElement(G):null,J=this._replaceTableSlotCell(b,Q,u,r);J&&(Zk(J,C,I,i.lastRow,i.lastColumn,r),d.push(J),u=r.createPositionAfter(J))}const h=parseInt(n.getAttribute("headingRows")||"0"),m=parseInt(n.getAttribute("headingColumns")||"0"),p=i.firstRow<h&&h<=i.lastRow,k=i.firstColumn<m&&m<=i.lastColumn;if(p){const b=tu(n,h,{first:i.firstColumn,last:i.lastColumn},r,i.firstRow);d.push(...b)}if(k){const b=eu(n,m,{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 tu(o,t,e,n,i=0){if(!(t<1))return Kk(o,t,i).filter((({column:r,cellWidth:s})=>ab(r,s,e))).map((({cell:r})=>$k(r,t,n)))}function eu(o,t,e,n){if(!(t<1))return Yk(o,t).filter((({row:i,cellHeight:r})=>ab(i,r,e))).map((({cell:i,column:r})=>Qk(i,r,t,n)))}function ab(o,t,e){const n=o+t-1,{first:i,last:r}=e;return o>=i&&o<=r||o<i&&n>=i}class CE extends R{static get pluginName(){return"TableKeyboard"}static get isOfficialPlugin(){return!0}static get requires(){return[vn,Lt]}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(Lt),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),m=h===0;if(!a&&m&&u===0)return void n.model.change((C=>{C.setSelection(C.createRangeOn(d))}));const p=h===l.childCount-1,k=u===i.getRows(d)-1;if(a&&k&&p&&(n.execute("insertTableRowBelow"),u===i.getRows(d)-1))return void n.model.change((C=>{C.setSelection(C.createRangeOn(d))}));let b;if(a&&p)b=d.getChild(u+1).getChild(0);else if(!a&&m){const C=d.getChild(u-1);b=C.getChild(C.childCount-1)}else b=l.getChild(h+(a?1:-1));n.model.change((C=>{C.setSelection(C.createRangeIn(b))}))}_onArrowKey(t,e){const n=this.editor,i=Al(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(Lt),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}
vendor: 4,866 bytes, line 8809
8809const 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 lt(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,m=["right","down"].includes(e),p=this.editor.plugins.get("TableSelection");if(n&&p.isEnabled){const k=p.getAnchorCell()||t;p.setCellSelection(k,h)}else{const k=i.createPositionAt(h,m?0:"end");i.change((b=>{b.setSelection(k)}))}}}class vE extends Ke{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(t){this.fire(t.type,t)}}class yE extends R{static get pluginName(){return"TableMouse"}static get isOfficialPlugin(){return!0}static get requires(){return[vn,Lt]}init(){this.editor.editing.view.addObserver(vE),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const t=this.editor,e=t.plugins.get(Lt);let n=!1;const i=t.plugins.get(vn);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&&cb(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(vn);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&&cb(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 cb(o,t){return o.parent.parent==t.parent.parent}var Bc=P(2329),vr={attributes:{"data-cke":!0}};vr.setAttributes=H(),vr.insert=V().bind(null,"head"),vr.domAPI=j(),vr.insertStyleElement=U(),F()(Bc.A,vr),Bc.A&&Bc.A.locals&&Bc.A.locals;class xE extends R{static get requires(){return[bE,wE,vn,yE,CE,_E,Ro]}static get pluginName(){return"Table"}static get isOfficialPlugin(){return!0}}function EE(o){const t=o.getSelectedElement();return t&&lb(t)?t:null}function DE(o){const t=o.getFirstPosition();if(!t)return null;let e=t.parent;for(;e;){if(e.is("element")&&lb(e))return e;e=e.parent}return null}function lb(o){return!!o.getCustomProperty("table")&&vt(o)}class IE extends R{static get requires(){return[za]}static get pluginName(){return"TableToolbar"}static get isOfficialPlugin(){return!0}afterInit(){const t=this.editor,e=t.t,n=t.plugins.get(za),i=t.config.get("table.contentToolbar"),r=t.config.get("table.tableToolbar");i&&n.register("tableContent",{ariaLabel:e("Table toolbar"),items:i,getRelatedElement:DE}),r&&n.register("table",{ariaLabel:e("Table toolbar"),items:r,getRelatedElement:EE})}}var Tc=P(5506),yr={attributes:{"data-cke":!0}};yr.setAttributes=H(),yr.insert=V().bind(null,"head"),yr.domAPI=j(),yr.insertStyleElement=U(),F()(Tc.A,yr),Tc.A&&Tc.A.locals&&Tc.A.locals;var Nc=P(2655),xr={attributes:{"data-cke":!0}};xr.setAttributes=H(),xr.insert=V().bind(null,"head"),xr.domAPI=j(),xr.insertStyleElement=U(),F()(Nc.A,xr),Nc.A&&Nc.A.locals&&Nc.A.locals;var Pc=P(4043),Er={attributes:{"data-cke":!0}};Er.setAttributes=H(),Er.insert=V().bind(null,"head"),Er.domAPI=j(),Er.
8809insertStyleElement=U(),F()(Pc.A,Er),Pc.A&&Pc.A.locals&&Pc.A.locals;var Lc=P(1623),Dr={attributes:{"data-cke":!0}};Dr.setAttributes=H(),Dr.insert=V().bind(null,"head"),Dr.domAPI=j(),Dr.insertStyleElement=U(),F()(Lc.A,Dr),Lc.A&&Lc.A.locals&&Lc.A.locals;var Oc=P(8986),Ir={attributes:{"data-cke":!0}};Ir.setAttributes=H(),Ir.insert=V().bind(null,"head"),Ir.domAPI=j(),Ir.insertStyleElement=U(),F()(Oc.A,Ir),Oc.A&&Oc.A.locals&&Oc.A.locals;var zc=P(5562),Sr={attributes:{"data-cke":!0}};Sr.setAttributes=H(),Sr.insert=V().bind(null,"head"),Sr.domAPI=j(),Sr.insertStyleElement=U(),F()(zc.A,Sr),zc.A&&zc.A.locals&&zc.A.locals;var Rc=P(4143),Mr={attributes:{"data-cke":!0}};Mr.setAttributes=H(),Mr.insert=V().bind(null,"head"),Mr.domAPI=j(),Mr.insertStyleElement=U(),F()(Rc.A,Mr),Rc.A&&Rc.A.locals&&Rc.A.locals;var Fc=P(8795),Br={attributes:{"data-cke":!0}};Br.setAttributes=H(),Br.insert=V().bind(null,"head"),Br.domAPI=j(),Br.insertStyleElement=U(),F()(Fc.A,Br),Fc.A&&Fc.A.locals&&Fc.A.locals;const SE={autoRefresh:!0},db=36e5;class nu extends dt(){constructor(t,e={}){if(super(),!t)throw new E("token-missing-token-url",this);e.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 E("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={...SE,...e}}init(){return new Promise(((t,e)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),t(this)):this.refreshToken().then(t).catch(e)}))}refreshToken(){const t=this._options.autoRefresh;return this._refresh().then((e=>(this._validateTokenValue(e),this.set("value",e),t&&this._registerRefreshTokenTimeout(),this))).catch((e=>{throw nt("token-refresh-failed",{autoRefresh:t}),t&&this._registerRefreshTokenTimeout(5e3),e}))}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 E("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(t){const e=t||this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout((()=>{this.refreshToken()}),e)}_getTokenRefreshTimeoutTime(){try{const[,t]=this.value.split("."),{exp:e}=JSON.parse(atob(t));return e?Math.floor((1e3*e-Date.now())/2):db}catch(t){return db}}static create(t,e={}){return new nu(t,e).init()}}const iu=/^data:(\S*?);base64,/;class ME extends at(){constructor(t,e,n){if(super(),!t)throw new E("fileuploader-missing-file",null);if(!e)throw new E("fileuploader-missing-token",null);if(!n)throw new E("fileuploader-missing-api-address",null);this.file=(function(i){if(typeof i!="string")return!1;const r=i.match(iu);return!(!r||!r.length)})(t)?(function(i,r=512){try{const s=i.match(iu)[1],a=atob(i.replace(iu,"")),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(s){throw new E("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 E("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 BE{constructor(t,e){if(!t)throw new E("uploadgateway-missing-token",null);if(!e)throw new E("uploadgateway-missing-api-address",null);this._token=t,this._apiAddress=e}upload(t){return new ME(t,this._token,this._apiAddress)}}class TE extends os{static get pluginName(){return"CloudServicesCore"}static get isOfficialPlugin(){return!0}createToken(t,e){return new nu(t,e)}createUploadGateway(t,e){return new BE(t,e)}}class NE extends os{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get isOfficialPlugin(){return!0}static get requires(){return[TE]}
8809async init(){const t=this.context.config.get("cloudServices")||{};for(const[n,i]of Object.entries(t))this[n]=i;if(!this.tokenUrl)return void(this.token=null);const e=this.context.plugins.get("CloudServicesCore");this.token=await e.createToken(this.tokenUrl).init(),this._tokens.set(this.tokenUrl,this.token)}async registerTokenUrl(t){if(this._tokens.has(t))return this.getTokenFor(t);const e=this.context.plugins.get("CloudServicesCore"),n=await e.createToken(t).init();return this._tokens.set(t,n),n}getTokenFor(t){const e=this._tokens.get(t);if(!e)throw new E("cloudservices-token-not-registered",this);return e}destroy(){super.destroy();for(const t of this._tokens.values())t.destroy()}}const Gc=class Gc extends mv{};Gc.builtinPlugins=[fy,Ay,Cy,xy,Iy,Ty,$y,Jy,NE,e1,a1,w1,v1,N1,P1,M1,R1,cx,Ax,Ix,Ka,$x,L1,xE,IE,Ov],Gc.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"};let ou=Gc})(),sn=sn.default})()))}
8809)(Pr,Pr.exports)),Pr.exports}var pb=OE();const zE=PE(pb),jE=LE({__proto__:null,default:zE},[pb]);export{jE 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.