|
|
import{al as rr,am as JL}from"./index-fb87886b.js";var sr={exports:{}};sr.exports;(function(Ce,Me){(function(to){const Ye=to.zh=to.zh||{};Ye.dictionary=Object.assign(Ye.dictionary||{},{"%0 of %1":"%0/%1",Accept:"接受","Align cell text to the bottom":"向下對齊","Align cell text to the center":"置中對齊","Align cell text to the left":"靠左對齊","Align cell text to the middle":"置中對齊","Align cell text to the right":"靠右對齊","Align cell text to the top":"向上對齊","Align table to the left":"靠左對齊","Align table to the right":"靠右對齊",Alignment:"對齊",Aquamarine:"淺綠色",Background:"背景顏色",Big:"大",Black:"黑色","Block quote":"段落引用","Block styles":"區塊樣式",Blue:"藍色",Bold:"粗體",Border:"邊框","Break text":"上及下","Bulleted List":"符號清單","Bulleted list styles toolbar":"無序清單工具列",Cancel:"取消","Caption for image: %0":"影像標題:%0","Caption for the image":"影像的標題","Cell properties":"儲存格屬性","Center table":"置中對齊","Centered image":"置中圖片","Change image text alternative":"修改圖片的替代文字","Choose heading":"選取標題",Circle:"空心圓點",Clear:"清除","Click to edit block":"點擊來編輯區塊",Code:"代碼",Color:"文字顏色","Color picker":"顏色選擇",Column:"欄",Dashed:"虛線",Decimal:"數字","Decimal with leading zero":"0開頭的數字","Decrease indent":"減少縮排",Default:"預設","Delete column":"刪除欄","Delete row":"刪除列","Dim grey":"淡灰色",Dimensions:"尺寸",Disc:"實心圓點","Document colors":"文件顏色",Dotted:"點線",Double:"雙線",Downloadable:"可下載","Drag to move":"拖曳來移動","Dropdown toolbar":"下拉選單","Edit block":"編輯區塊","Edit link":"編輯連結","Editor block content toolbar":"編輯器區塊內容工具列","Editor contextual toolbar":"編輯器關聯式工具列","Editor editing area: %0":"編輯器編輯區:%0","Editor toolbar":"編輯器工具","Enter image caption":"輸入圖片說明","Enter table caption":"輸入表標題","Font Background Color":"前景顏色","Font Color":"字體顏色","Font Family":"字型","Font Size":"字體大小","Full size image":"完整尺寸圖片",Green:"綠色",Grey:"灰色",Groove:"內凹線","Header column":"標題欄","Header row":"標題列",Heading:"標題","Heading 1":"標題 1","Heading 2":"標題 2","Heading 3":"標題 3","Heading 4":"標題 4","Heading 5":"標題 5","Heading 6":"標題 6",Height:"高度",HEX:"十六進位","Horizontal text alignment toolbar":"水平對齊","HTML object":"HTML 物件",Huge:"特大","Image resize list":"圖片縮放清單","Image toolbar":"圖片工具","image widget":"圖片小工具","In line":"行中","Increase indent":"增加縮排",Insert:"插入","Insert column left":"插入左方欄","Insert column right":"插入右方欄","Insert image":"插入圖片","Insert image via URL":"使用連結插入圖片","Insert media":"插入影音","Insert paragraph after block":"在這個區塊後面插入一個段落","Insert paragraph before block":"在這個區塊前面插入一個段落","Insert row above":"插入上方列","Insert row below":"插入下方列","Insert table":"插入表格",Inset:"內邊線",Italic:"斜體","Justify cell text":"分散對齊","Left aligned image":"向左對齊圖片","Light blue":"亮藍色","Light green":"亮綠色","Light grey":"亮灰色",Link:"連結","Link image":"圖片連結","Link URL":"連結˙ URL","List properties":"清單屬性","Lower-latin":"小寫拉丁字母","Lower–roman":"小寫羅馬數字","Media toolbar":"影音工具","Media URL":"影音網址","media widget":"影音小工具","Merge cell down":"合併下方儲存格","Merge cell left":"合併左方儲存格","Merge cell right":"合併右方儲存格","Merge cell up":"合併上方儲存格","Merge cells":"合併儲存格","Multiple styles":"多重樣式",Next:"下一","No results found":"找不到結果","No searchable items":"沒有可搜尋的項目",None:"無","Numbered List":"有序清單","Numbered list styles toolbar":"有序清單工具列","Open in a new tab":"在新視窗開啟","Open link in new tab":"在新視窗開啟連結","Open media in new tab":"在新分頁打開媒體",Orange:"橘色",Original:"原始圖片",Outset:"外框線",Padding:"儲存格留白",Paragraph:"段落","Paste the media URL in the input.":"在輸入框貼上影音網址。","Press Enter to type after or press Shift + Enter to type before the widget":"按下 Enter 在小工具後輸入,或按下 Shift + Enter 在小工具前輸入",Previous:"上一",Purple:"紫色",Red:"紅色",Redo:"重做","Remove color":"移除顏色","Replace from computer":"從電腦替換","Replace image":"替換圖片","Replace image from computer":"從電腦替換圖片","Resize image":"縮放圖片","Resize image to %0":"縮放圖片到 %0","Resize image to the original size":"縮放圖片到原始尺寸","Restore default":"重設至預設值","Reversed order":"反轉順序","Rich Text Editor":"富文本編輯器",Ridge:"凸起線","Right aligned image":"向右對齊圖片",Row:"列",Save:"儲存","Select all":"選取全部","Select column":"選擇欄","Select row":"選擇列","Show more items":"顯示更多","Side image":"側邊圖片",Small:"小",Solid:"實線",Source:"原始碼","Split cell horizontally":"水平分割儲存格","Split cell vertically":"垂直分割儲存格",Square:"方形","Start at":"起始於","Start index must be greater than 0.":"起始索引須大於 0。",Strikethrough:"刪除線",Style:"樣式",Styles:"樣式",Subscript:"下標",Superscript:"上標","Table alignment toolbar":"表格對齊","Table cell text alignment":"儲存格文字對齊","Table properties":"表格屬性","Table toolbar":"表格工具","Text alternative":"替代文字","Text styles":"文字樣式",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'顏色代碼錯誤。試試看 "#FF0000" 或 "rgb(255, 0, 0)" 或 "red"。',"The URL must not be empty.":"網址不能空白。",'The value is invalid. Try "10px" or "2em" or simply "2".':'尺寸代碼錯誤。試試看 "10px" 或 "2em" 或簡單寫 "2"。',"This link has no URL":"此連結沒有URL","This media URL is not supported.":"不支援此影音網址。",Tiny:"特小","Tip: Paste the URL into the content to embed faster.":"提示:在內容貼上網址更快崁入。","To-do List":"代辦清單","Toggle caption off":"關閉表標題","Toggle caption on":"開啟表標題","Toggle the circle list style":"切換為空心圓點標示","Toggle the decimal list style":"切換為數字標示","Toggle the decimal with leading zero list style":"切換為0開頭的數字標示","Toggle the disc list style":"切換為實心圓點標示","Toggle the lower–latin list style":"切換為小寫拉丁文字標示","Toggle the lower–roman list style":"切換為小寫羅馬數字標示","Toggle the square list style":"切換為方形標示","Toggle the upper–latin list style":"切換為大寫拉丁文字標示","Toggle the upper–roman list style":"切換為大寫羅馬數字標示",Turquoise:"藍綠色","Type or paste your content here.":"在此輸入或貼上你的內容。","Type your title":"輸入你的標題",Underline:"底線",Undo:"取消",Unlink:"移除連結",Update:"更新","Update image URL":"更新圖片連結","Upload failed":"上傳失敗","Upload from computer":"從電腦上傳","Upload image from computer":"從電腦上傳圖片","Upload in progress":"正在上傳","Upper-latin":"大寫拉丁字母","Upper-roman":"大寫羅馬數字","Vertical text alignment toolbar":"垂直對齊",White:"白色","Widget toolbar":"小工具",Width:"寬度","Wrap text":"文繞圖",Yellow:"黃色"}),Ye.getPluralForm=function(L){return 0}})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));/*!
|
|
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md.
|
|
|
*/(function(Ye,L){Ce.exports=L()})(self,()=>(()=>{var to={8168:(C,v,h)=>{const _=h(8874),x={};for(const g of Object.keys(_))x[_[g]]=g;const k={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"]}};C.exports=k;for(const g of Object.keys(k)){if(!("channels"in k[g]))throw new Error("missing channels property: "+g);if(!("labels"in k[g]))throw new Error("missing channel labels property: "+g);if(k[g].labels.length!==k[g].channels)throw new Error("channel and label counts mismatch: "+g);const{channels:f,labels:A}=k[g];delete k[g].channels,delete k[g].labels,Object.defineProperty(k[g],"channels",{value:f}),Object.defineProperty(k[g],"labels",{value:A})}k.rgb.hsl=function(g){const f=g[0]/255,A=g[1]/255,y=g[2]/255,E=Math.min(f,A,y),I=Math.max(f,A,y),N=I-E;let F,W;I===E?F=0:f===I?F=(A-y)/N:A===I?F=2+(y-f)/N:y===I&&(F=4+(f-A)/N),F=Math.min(F*60,360),F<0&&(F+=360);const j=(E+I)/2;return I===E?W=0:j<=.5?W=N/(I+E):W=N/(2-I-E),[F,W*100,j*100]},k.rgb.hsv=function(g){let f,A,y,E,I;const N=g[0]/255,F=g[1]/255,W=g[2]/255,j=Math.max(N,F,W),$=j-Math.min(N,F,W),Z=function(ot){return(j-ot)/6/$+1/2};return $===0?(E=0,I=0):(I=$/j,f=Z(N),A=Z(F),y=Z(W),N===j?E=y-A:F===j?E=.3333333333333333+f-y:W===j&&(E=.6666666666666666+A-f),E<0?E+=1:E>1&&(E-=1)),[E*360,I*100,j*100]},k.rgb.hwb=function(g){const f=g[0],A=g[1];let y=g[2];const E=k.rgb.hsl(g)[0],I=1/255*Math.min(f,Math.min(A,y));return y=1-.00392156862745098*Math.max(f,Math.max(A,y)),[E,I*100,y*100]},k.rgb.cmyk=function(g){const f=g[0]/255,A=g[1]/255,y=g[2]/255,E=Math.min(1-f,1-A,1-y),I=(1-f-E)/(1-E)||0,N=(1-A-E)/(1-E)||0,F=(1-y-E)/(1-E)||0;return[I*100,N*100,F*100,E*100]};function D(g,f){return(g[0]-f[0])**2+(g[1]-f[1])**2+(g[2]-f[2])**2}k.rgb.keyword=function(g){const f=x[g];if(f)return f;let A=1/0,y;for(const E of Object.keys(_)){const I=_[E],N=D(g,I);N<A&&(A=N,y=E)}return y},k.keyword.rgb=function(g){return _[g]},k.rgb.xyz=function(g){let f=g[0]/255,A=g[1]/255,y=g[2]/255;f=f>.04045?((f+.055)/1.055)**2.4:f/12.92,A=A>.04045?((A+.055)/1.055)**2.4:A/12.92,y=y>.04045?((y+.055)/1.055)**2.4:y/12.92;const E=f*.4124+A*.3576+y*.1805,I=f*.2126+A*.7152+y*.0722,N=f*.0193+A*.1192+y*.9505;return[E*100,I*100,N*100]},k.rgb.lab=function(g){const f=k.rgb.xyz(g);let A=f[0],y=f[1],E=f[2];A/=95.047,y/=100,E/=108.883,A=A>.008856?A**.3333333333333333:7.787*A+.13793103448275862,y=y>.008856?y**.3333333333333333:7.787*y+.13793103448275862,E=E>.008856?E**.3333333333333333:7.787*E+.13793103448275862;const I=116*y-16,N=500*(A-y),F=200*(y-E);return[I,N,F]},k.hsl.rgb=function(g){const f=g[0]/360,A=g[1]/100,y=g[2]/100;let E,I,N;if(A===0)return N=y*255,[N,N,N];y<.5?E=y*(1+A):E=y+A-y*A;const F=2*y-E,W=[0,0,0];for(let j=0;j<3;j++)I=f+.3333333333333333*-(j-1),I<0&&I++,I>1&&I--,6*I<1?N=F+(E-F)*6*I:2*I<1?N=E:3*I<2?N=F+(E-F)*(.6666666666666666-I)*6:N=F,W[j]=N*255;return W},k.hsl.hsv=function(g){const f=g[0];let A=g[1]/100,y=g[2]/100,E=A;const I=Math.max(y,.01);y*=2,A*=y<=1?y:2-y,E*=I<=1?I:2-I;const N=(y+A)/2,F=y===0?2*E/(I+E):2*A/(y+A);return[f,F*100,N*100]},k.hsv.rgb=function(g){const f=g[0]/60,A=g[1]/100;let y=g[2]/100;const E=Math.floor(f)%6,I=f-Math.floor(f),N=255*y*(1-A),F=255*y*(1-A*I),W=255*y*(1-A*(1-I));switch(y*=255,E){case 0:return[y,W,N];case 1:return[F,y,N];case 2:return[N,y,W];case 3:return[N,F,y];case 4:return[W,N,y];case 5:return[y,N,F]}},k.hsv.hsl=function(g){const f=g[0],A=g[1]/100,y=g[2]/100,E=Math.max(y,.01);let I,N;N=(2-A)*y;const F=(2-A)*E;return I=A*E,I/=F<=1?F:2-F,I=I||0,N/=2,[f,I*100,N*100]},k.hwb.rgb=function(g){const f=g[0]/360;let A=g[1]/100,y=g[2]/100;const E=A+y;let I;E>1&&(A/=E,y/=E);const N=Math.floor(6*f),F=1-y;I=6*f-N,N&1&&(I=1-I);const W=A+I*(F-A);let j,$,Z;switch(N){default:case 6:case 0:j=F,$=W,Z=A;break;case 1:j=W,$=F,Z=A;break;case 2:j=A,$=F,Z=W;break;case 3:j=A,$=W,Z=F;break;case 4:j=W,$=A,Z=F;break;case 5:j=F,$=A,Z=W;break}return[j*255,$*255,Z*255]},k.cmyk.rgb=function(g){const f=g[0]/100,A=g[1]/100,y=g[2]/100,E=g[3]/100,I=1-Math.min(1,f*(1-E)+E),N=1-Math.min(1,A*(1-E)+E),F=1-Math.min(1,y*(1-E)+E);return[I*255,N*255,F*255]},k.xyz.rgb=function(g){const f=g[0]/100,A=g[1]/100,y=g[2]/100;let E,I,N;return E=f*3.2406+A*-1.5372+y*-.4986,I=f*-.9689+A*1.8758+y*.0415,N=f*.0557+A*-.204+y*1.057,E=E>.0031308?1.055*E**.4166666666666667-.055:E*12.92,I=I>.0031308?1.055*I**.4166666666666667-.055:I*12.92,N=N>.0031308?1.055*N**.4166666666666667-.055:N*12.92,E=Math.min(Math.max(0,E),1),I=Math.min(Math.max(0,I),1),N=Math.min(Math.max(0,N),1),[E*255,I*255,N*255]},k.xyz.lab=function(g){let f=g[0],A=g[1],y=g[2];f/=95.047,A/=100,y/=108.883,f=f>.008856?f**.3333333333333333:7.787*f+.13793103448275862,A=A>.008856?A**.3333333333333333:7.787*A+.13793103448275862,y=y>.008856?y**.3333333333333333:7.787*y+.13793103448275862;const E=116*A-16,I=500*(f-A),N=200*(A-y);return[E,I,N]},k.lab.xyz=function(g){const f=g[0],A=g[1],y=g[2];let E,I,N;I=(f+16)/116,E=A/500+I,N=I-y/200;const F=I**3,W=E**3,j=N**3;return I=F>.008856?F:(I-.13793103448275862)/7.787,E=W>.008856?W:(E-.13793103448275862)/7.787,N=j>.008856?j:(N-.13793103448275862)/7.787,E*=95.047,I*=100,N*=108.883,[E,I,N]},k.lab.lch=function(g){const f=g[0],A=g[1],y=g[2];let E;E=Math.atan2(y,A)*360/2/Math.PI,E<0&&(E+=360);const N=Math.sqrt(A*A+y*y);return[f,N,E]},k.lch.lab=function(g){const f=g[0],A=g[1],E=g[2]/360*2*Math.PI,I=A*Math.cos(E),N=A*Math.sin(E);return[f,I,N]},k.rgb.ansi16=function(g,f=null){const[A,y,E]=g;let I=f===null?k.rgb.hsv(g)[2]:f;if(I=Math.round(I/50),I===0)return 30;let N=30+(Math.round(E/255)<<2|Math.round(y/255)<<1|Math.round(A/255));return I===2&&(N+=60),N},k.hsv.ansi16=function(g){return k.rgb.ansi16(k.hsv.rgb(g),g[2])},k.rgb.ansi256=function(g){const f=g[0],A=g[1],y=g[2];return f===A&&A===y?f<8?16:f>248?231:Math.round((f-8)/247*24)+232:16+36*Math.round(f/255*5)+6*Math.round(A/255*5)+Math.round(y/255*5)},k.ansi16.rgb=function(g){let f=g%10;if(f===0||f===7)return g>50&&(f+=3.5),f=f/10.5*255,[f,f,f];const A=(~~(g>50)+1)*.5,y=(f&1)*A*255,E=(f>>1&1)*A*255,I=(f>>2&1)*A*255;return[y,E,I]},k.ansi256.rgb=function(g){if(g>=232){const I=(g-232)*10+8;return[I,I,I]}g-=16;let f;const A=Math.floor(g/36)/5*255,y=Math.floor((f=g%36)/6)/5*255,E=f%6/5*255;return[A,y,E]},k.rgb.hex=function(g){const A=(((Math.round(g[0])&255)<<16)+((Math.round(g[1])&255)<<8)+(Math.round(g[2])&255)).toString(16).toUpperCase();return"000000".substring(A.length)+A},k.hex.rgb=function(g){const f=g.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!f)return[0,0,0];let A=f[0];f[0].length===3&&(A=A.split("").map(F=>F+F).join(""));const y=parseInt(A,16),E=y>>16&255,I=y>>8&255,N=y&255;return[E,I,N]},k.rgb.hcg=function(g){const f=g[0]/255,A=g[1]/255,y=g[2]/255,E=Math.max(Math.max(f,A),y),I=Math.min(Math.min(f,A),y),N=E-I;let F,W;return N<1?F=I/(1-N):F=0,N<=0?W=0:E===f?W=(A-y)/N%6:E===A?W=2+(y-f)/N:W=4+(f-A)/N,W/=6,W%=1,[W*360,N*100,F*100]},k.hsl.hcg=function(g){const f=g[1]/100,A=g[2]/100,y=A<.5?2*f*A:2*f*(1-A);let E=0;return y<1&&(E=(A-.5*y)/(1-y)),[g[0],y*100,E*100]},k.hsv.hcg=function(g){const f=g[1]/100,A=g[2]/100,y=f*A;let E=0;return y<1&&(E=(A-y)/(1-y)),[g[0],y*100,E*100]},k.hcg.rgb=function(g){const f=g[0]/360,A=g[1]/100,y=g[2]/100;if(A===0)return[y*255,y*255,y*255];const E=[0,0,0],I=f%1*6,N=I%1,F=1-N;let W=0;switch(Math.floor(I)){case 0:E[0]=1,E[1]=N,E[2]=0;break;case 1:E[0]=F,E[1]=1,E[2]=0;break;case 2:E[0]=0,E[1]=1,E[2]=N;break;case 3:E[0]=0,E[1]=F,E[2]=1;break;case 4:E[0]=N,E[1]=0,E[2]=1;break;default:E[0]=1,E[1]=0,E[2]=F}return W=(1-A)*y,[(A*E[0]+W)*255,(A*E[1]+W)*255,(A*E[2]+W)*255]},k.hcg.hsv=function(g){const f=g[1]/100,A=g[2]/100,y=f+A*(1-f);let E=0;return y>0&&(E=f/y),[g[0],E*100,y*100]},k.hcg.hsl=function(g){const f=g[1]/100,y=g[2]/100*(1-f)+.5*f;let E=0;return y>0&&y<.5?E=f/(2*y):y>=.5&&y<1&&(E=f/(2*(1-y))),[g[0],E*100,y*100]},k.hcg.hwb=function(g){const f=g[1]/100,A=g[2]/100,y=f+A*(1-f);return[g[0],(y-f)*100,(1-y)*100]},k.hwb.hcg=function(g){const f=g[1]/100,y=1-g[2]/100,E=y-f;let I=0;return E<1&&(I=(y-E)/(1-E)),[g[0],E*100,I*100]},k.apple.rgb=function(g){return[g[0]/65535*255,g[1]/65535*255,g[2]/65535*255]},k.rgb.apple=function(g){return[g[0]/255*65535,g[1]/255*65535,g[2]/255*65535]},k.gray.rgb=function(g){return[g[0]/100*255,g[0]/100*255,g[0]/100*255]},k.gray.hsl=function(g){return[0,0,g[0]]},k.gray.hsv=k.gray.hsl,k.gray.hwb=function(g){return[0,100,g[0]]},k.gray.cmyk=function(g){return[0,0,0,g[0]]},k.gray.lab=function(g){return[g[0],0,0]},k.gray.hex=function(g){const f=Math.round(g[0]/100*255)&255,y=((f<<16)+(f<<8)+f).toString(16).toUpperCase();return"000000".substring(y.length)+y},k.rgb.gray=function(g){return[(g[0]+g[1]+g[2])/3/255*100]}},2085:(C,v,h)=>{const _=h(8168),x=h(4111),k={},D=Object.keys(_);function g(A){const y=function(...E){const I=E[0];return I==null?I:(I.length>1&&(E=I),A(E))};return"conversion"in A&&(y.conversion=A.conversion),y}function f(A){const y=function(...E){const I=E[0];if(I==null)return I;I.length>1&&(E=I);const N=A(E);if(typeof N=="object")for(let F=N.length,W=0;W<F;W++)N[W]=Math.round(N[W]);return N};return"conversion"in A&&(y.conversion=A.conversion),y}D.forEach(A=>{k[A]={},Object.defineProperty(k[A],"channels",{value:_[A].channels}),Object.defineProperty(k[A],"labels",{value:_[A].labels});const y=x(A);Object.keys(y).forEach(I=>{const N=y[I];k[A][I]=f(N),k[A][I].raw=g(N)})}),C.exports=k},4111:(C,v,h)=>{const _=h(8168);function x(){const f={},A=Object.keys(_);for(let y=A.length,E=0;E<y;E++)f[A[E]]={distance:-1,parent:null};return f}function k(f){const A=x(),y=[f];for(A[f].distance=0;y.length;){const E=y.pop(),I=Object.keys(_[E]);for(let N=I.length,F=0;F<N;F++){const W=I[F],j=A[W];j.distance===-1&&(j.distance=A[E].distance+1,j.parent=E,y.unshift(W))}}return A}function D(f,A){return function(y){return A(f(y))}}function g(f,A){const y=[A[f].parent,f];let E=_[A[f].parent][f],I=A[f].parent;for(;A[I].parent;)y.unshift(A[I].parent),E=D(_[A[I].parent][I],E),I=A[I].parent;return E.conversion=y,E}C.exports=function(f){const A=k(f),y={},E=Object.keys(A);for(let I=E.length,N=0;N<I;N++){const F=E[N];A[F].parent!==null&&(y[F]=g(F,A))}return y}},8874:C=>{C.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},5363:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck-content code {
|
|
|
background-color: hsla(0, 0%, 78%, 0.3);
|
|
|
padding: .15em;
|
|
|
border-radius: 2px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable .ck-code_selected {
|
|
|
background-color: hsla(0, 0%, 78%, 0.5);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},3789:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck-content blockquote {
|
|
|
/* See #12 */
|
|
|
overflow: hidden;
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */
|
|
|
padding-right: 1.5em;
|
|
|
padding-left: 1.5em;
|
|
|
|
|
|
margin-left: 0;
|
|
|
margin-right: 0;
|
|
|
font-style: italic;
|
|
|
border-left: solid 5px hsl(0, 0%, 80%);
|
|
|
}
|
|
|
|
|
|
.ck-content[dir="rtl"] blockquote {
|
|
|
border-left: 0;
|
|
|
border-right: solid 5px hsl(0, 0%, 80%);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},799:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}.ck.ck-clipboard-drop-target-line{pointer-events:none;position:absolute}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}.ck.ck-clipboard-drop-target-line{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);height:0;margin-top:-1px}.ck.ck-clipboard-drop-target-line:before{border-style:solid;content:"";height:0;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-width)*-.5);width:0}[dir=ltr] .ck.ck-clipboard-drop-target-line:before{border-color:transparent transparent transparent var(--ck-clipboard-drop-target-color);border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height);left:-1px}[dir=rtl] .ck.ck-clipboard-drop-target-line:before{border-color:transparent var(--ck-clipboard-drop-target-color) transparent transparent;border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0;right:-1px}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-clipboard/theme/clipboard.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CAIF,kCAEC,mBAAoB,CADpB,iBAED,CC9BA,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CAOF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD,CAGD,kCAGC,gDAAiD,CADjD,sDAAuD,CADvD,QAAS,CAGT,eAwBD,CAtBC,yCAMC,kBAAmB,CALnB,UAAW,CAIX,QAAS,CAHT,iBAAkB,CAClB,uDAA0D,CAC1D,OAiBD,CArBA,mDAYE,sFAAuF,CADvF,+JAAoK,CAFpK,SAYF,CArBA,mDAmBE,sFAAuF,CADvF,+JAAmK,CAFnK,UAKF",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-editor__editable {
|
|
|
/*
|
|
|
* Vertical drop target (in text).
|
|
|
*/
|
|
|
& .ck.ck-clipboard-drop-target-position {
|
|
|
display: inline;
|
|
|
position: relative;
|
|
|
pointer-events: none;
|
|
|
|
|
|
& span {
|
|
|
position: absolute;
|
|
|
width: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles of the widget being dragged (its preview).
|
|
|
*/
|
|
|
& .ck-widget:-webkit-drag {
|
|
|
& > .ck-widget__selection-handle {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
& > .ck-widget__type-around {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-clipboard-drop-target-line {
|
|
|
position: absolute;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
: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 {
|
|
|
/*
|
|
|
* Vertical drop target (in text).
|
|
|
*/
|
|
|
& .ck.ck-clipboard-drop-target-position {
|
|
|
& span {
|
|
|
bottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));
|
|
|
top: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));
|
|
|
border: 1px solid var(--ck-clipboard-drop-target-color);
|
|
|
background: var(--ck-clipboard-drop-target-color);
|
|
|
margin-left: -1px;
|
|
|
|
|
|
/* The triangle above the marker */
|
|
|
&::after {
|
|
|
content: '';
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
left: 50%;
|
|
|
top: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));
|
|
|
|
|
|
transform: translateX(-50%);
|
|
|
border-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;
|
|
|
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));
|
|
|
border-style: solid;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles of the widget that it a drop target.
|
|
|
*/
|
|
|
& .ck-widget.ck-clipboard-drop-target-range {
|
|
|
outline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles of the widget being dragged (its preview).
|
|
|
*/
|
|
|
& .ck-widget:-webkit-drag {
|
|
|
zoom: 0.6;
|
|
|
outline: none !important;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-clipboard-drop-target-line {
|
|
|
height: 0;
|
|
|
border: 1px solid var(--ck-clipboard-drop-target-color);
|
|
|
background: var(--ck-clipboard-drop-target-color);
|
|
|
margin-top: -1px;
|
|
|
|
|
|
&::before {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
top: calc(-.5 * var(--ck-clipboard-drop-target-dot-width));
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-style: solid;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
left: -1px;
|
|
|
|
|
|
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);
|
|
|
border-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
right: -1px;
|
|
|
|
|
|
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;
|
|
|
border-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},3624:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-editor {
|
|
|
/* All the elements within \`.ck-editor\` are positioned relatively to it.
|
|
|
If any element needs to be positioned with respect to the <body>, etc.,
|
|
|
it must land outside of the \`.ck-editor\` in DOM. */
|
|
|
position: relative;
|
|
|
|
|
|
& .ck-editor__top .ck-sticky-panel .ck-toolbar {
|
|
|
/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */
|
|
|
z-index: var(--ck-z-modal);
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../mixins/_rounded.css";
|
|
|
|
|
|
.ck.ck-editor__top {
|
|
|
& .ck-sticky-panel {
|
|
|
& .ck-toolbar {
|
|
|
@mixin ck-rounded-corners {
|
|
|
border-bottom-left-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
}
|
|
|
|
|
|
border-bottom-width: 0;
|
|
|
}
|
|
|
|
|
|
& .ck-sticky-panel__content_sticky .ck-toolbar {
|
|
|
border-bottom-width: 1px;
|
|
|
|
|
|
@mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Note: Use ck-editor__main to make sure these styles don't apply to other editor types */
|
|
|
.ck.ck-editor__main > .ck-editor__editable {
|
|
|
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */
|
|
|
background: var(--ck-color-base-background);
|
|
|
|
|
|
@mixin ck-rounded-corners {
|
|
|
border-top-left-radius: 0;
|
|
|
border-top-right-radius: 0;
|
|
|
}
|
|
|
|
|
|
&:not(.ck-focused) {
|
|
|
border-color: var(--ck-color-base-border);
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},7372:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-engine/theme/placeholder.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC5BC,qDAEC,6CAA8C,CAD9C,WAED",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/* See ckeditor/ckeditor5#936. */
|
|
|
.ck.ck-placeholder,
|
|
|
.ck .ck-placeholder {
|
|
|
position: relative;
|
|
|
|
|
|
&::before {
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
content: attr(data-placeholder);
|
|
|
|
|
|
/* See ckeditor/ckeditor5#469. */
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* See ckeditor/ckeditor5#1987. */
|
|
|
.ck.ck-read-only .ck-placeholder {
|
|
|
&::before {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Rules for the \`ck-placeholder\` are loaded before the rules for \`ck-reset_all\` in the base CKEditor 5 DLL build.
|
|
|
* This fix overwrites the incorrectly set \`position: static\` from \`ck-reset_all\`.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/11418.
|
|
|
*/
|
|
|
.ck.ck-reset_all .ck-placeholder {
|
|
|
position: relative;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/* See ckeditor/ckeditor5#936. */
|
|
|
.ck.ck-placeholder, .ck .ck-placeholder {
|
|
|
&::before {
|
|
|
cursor: text;
|
|
|
color: var(--ck-color-engine-placeholder-text);
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},5037:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/* Elements marked by the Renderer as hidden should be invisible in the editor. */
|
|
|
.ck.ck-editor__editable span[data-ck-unsafe-element] {
|
|
|
display: none;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},5991:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck-content .text-tiny{font-size:.7em}.ck-content .text-small{font-size:.85em}.ck-content .text-big{font-size:1.4em}.ck-content .text-huge{font-size:1.8em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-font/theme/fontsize.css"],names:[],mappings:"AAUC,uBACC,cACD,CAEA,wBACC,eACD,CAEA,sBACC,eACD,CAEA,uBACC,eACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/* The values should be synchronized with the "FONT_SIZE_PRESET_UNITS" object in the "/src/fontsize/utils.js" file. */
|
|
|
|
|
|
/* Styles should be prefixed with the \`.ck-content\` class.
|
|
|
See https://github.com/ckeditor/ckeditor5/issues/6636 */
|
|
|
.ck-content {
|
|
|
& .text-tiny {
|
|
|
font-size: .7em;
|
|
|
}
|
|
|
|
|
|
& .text-small {
|
|
|
font-size: .85em;
|
|
|
}
|
|
|
|
|
|
& .text-big {
|
|
|
font-size: 1.4em;
|
|
|
}
|
|
|
|
|
|
& .text-huge {
|
|
|
font-size: 1.8em;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},4249:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-heading/theme/heading.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-heading_heading1 {
|
|
|
font-size: 20px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-heading_heading2 {
|
|
|
font-size: 17px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-heading_heading3 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.ck[class*="ck-heading_heading"] {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/* Resize dropdown's button label. */
|
|
|
.ck.ck-dropdown.ck-heading-dropdown {
|
|
|
& .ck-dropdown__button .ck-button__label {
|
|
|
width: 8em;
|
|
|
}
|
|
|
|
|
|
& .ck-dropdown__panel .ck-list__item {
|
|
|
min-width: 18em;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},1710:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,":root{--ck-html-object-embed-unfocused-outline-width:1px}.ck-widget.html-object-embed{background-color:var(--ck-color-base-foreground);font-size:var(--ck-font-size-base);min-width:calc(76px + var(--ck-spacing-standard));padding:var(--ck-spacing-small);padding-top:calc(var(--ck-font-size-tiny) + var(--ck-spacing-large))}.ck-widget.html-object-embed:not(.ck-widget_selected):not(:hover){outline:var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border)}.ck-widget.html-object-embed:before{background:#999;border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius);color:var(--ck-color-base-background);content:attr(data-html-object-embed-label);font-family:var(--ck-font-face);font-size:var(--ck-font-size-tiny);font-style:normal;font-weight:400;left:var(--ck-spacing-standard);padding:calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);position:absolute;top:0;transition:background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck-widget.html-object-embed .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before{margin-left:50px}.ck-widget.html-object-embed .html-object-embed__content{pointer-events:none}div.ck-widget.html-object-embed{margin:1em auto}span.ck-widget.html-object-embed{display:inline-block}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-html-support/theme/datafilter.css"],names:[],mappings:"AAKA,MACC,kDACD,CAEA,6BAEC,gDAAiD,CADjD,kCAAmC,CAKnC,iDAAkD,CAHlD,+BAAgC,CAEhC,oEAgCD,CA7BC,kEACC,wGACD,CAEA,oCAOC,eAA4B,CAG5B,iEAAkE,CAClE,qCAAsC,CAPtC,0CAA2C,CAS3C,+BAAgC,CADhC,kCAAmC,CAVnC,iBAAkB,CADlB,eAAmB,CAKnB,+BAAgC,CAGhC,yIAA0I,CAN1I,iBAAkB,CAElB,KAAM,CAGN,0GAMD,CAGA,2HACC,gBACD,CAEA,yDAEC,mBACD,CAGD,gCACC,eACD,CAEA,iCACC,oBACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-html-object-embed-unfocused-outline-width: 1px;
|
|
|
}
|
|
|
|
|
|
.ck-widget.html-object-embed {
|
|
|
font-size: var(--ck-font-size-base);
|
|
|
background-color: var(--ck-color-base-foreground);
|
|
|
padding: var(--ck-spacing-small);
|
|
|
/* Leave space for label */
|
|
|
padding-top: calc(var(--ck-font-size-tiny) + var(--ck-spacing-large));
|
|
|
min-width: calc(76px + var(--ck-spacing-standard));
|
|
|
|
|
|
&:not(.ck-widget_selected):not(:hover) {
|
|
|
outline: var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border);
|
|
|
}
|
|
|
|
|
|
&::before {
|
|
|
font-weight: normal;
|
|
|
font-style: normal;
|
|
|
position: absolute;
|
|
|
content: attr(data-html-object-embed-label);
|
|
|
top: 0;
|
|
|
left: var(--ck-spacing-standard);
|
|
|
background: hsl(0deg 0% 60%);
|
|
|
transition: background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);
|
|
|
padding: calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);
|
|
|
border-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);
|
|
|
color: var(--ck-color-base-background);
|
|
|
font-size: var(--ck-font-size-tiny);
|
|
|
font-family: var(--ck-font-face);
|
|
|
}
|
|
|
|
|
|
/* Make space for label. */
|
|
|
& .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before {
|
|
|
margin-left: 50px;
|
|
|
}
|
|
|
|
|
|
& .html-object-embed__content {
|
|
|
/* Disable user interaction with embed content */
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
div.ck-widget.html-object-embed {
|
|
|
margin: 1em auto;
|
|
|
}
|
|
|
|
|
|
span.ck-widget.html-object-embed {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
`],sourceRoot:""}]);const f=g},2430:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;height:auto;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image{z-index:1}.ck.ck-editor__editable .image.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable .image-inline img{height:auto}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBA2BD,CAjBC,uBAEC,aAAc,CAad,WAAY,CAVZ,aAAc,CAGd,cAAe,CAGf,cAKD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAKA,+BACC,SASD,CAHC,kDACC,SACD,CAMD,sCACC,SAkBD,CAZC,yDACC,SAUD,CAHC,qEACC,YACD,CAMF,0CACC,WACD,CAMC,0FACC,cACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck-content {
|
|
|
& .image {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
text-align: center;
|
|
|
|
|
|
/* Make sure there is some space between the content and the image. Center image by default. */
|
|
|
/* The first value should be equal to --ck-spacing-large variable if used in the editor context
|
|
|
to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */
|
|
|
margin: 0.9em auto;
|
|
|
|
|
|
/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */
|
|
|
min-width: 50px;
|
|
|
|
|
|
& img {
|
|
|
/* Prevent unnecessary margins caused by line-height (see #44). */
|
|
|
display: block;
|
|
|
|
|
|
/* Center the image if its width is smaller than the content's width. */
|
|
|
margin: 0 auto;
|
|
|
|
|
|
/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */
|
|
|
max-width: 100%;
|
|
|
|
|
|
/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */
|
|
|
min-width: 100%;
|
|
|
|
|
|
/* Keep proportions of the block image if the height is set and the image is wider than the editor width.
|
|
|
See https://github.com/ckeditor/ckeditor5/issues/14542. */
|
|
|
height: auto;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .image-inline {
|
|
|
/*
|
|
|
* Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).
|
|
|
* Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.
|
|
|
* This strange behavior does not happen with inline-flex.
|
|
|
*/
|
|
|
display: inline-flex;
|
|
|
|
|
|
/* While being resized, don't allow the image to exceed the width of the editing root. */
|
|
|
max-width: 100%;
|
|
|
|
|
|
/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */
|
|
|
align-items: flex-start;
|
|
|
|
|
|
/* When the picture is present it must act as a flex container to let the img resize properly */
|
|
|
& picture {
|
|
|
display: flex;
|
|
|
}
|
|
|
|
|
|
/* When the picture is present, it must act like a resizable img. */
|
|
|
& picture,
|
|
|
& img {
|
|
|
/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */
|
|
|
flex-grow: 1;
|
|
|
flex-shrink: 1;
|
|
|
|
|
|
/* Prevents overflowing the editing root boundaries when an inline image is very wide. */
|
|
|
max-width: 100%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable {
|
|
|
/*
|
|
|
* Inhertit the content styles padding of the <figcaption> in case the integration overrides \`text-align: center\`
|
|
|
* of \`.image\` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native
|
|
|
* caret does, and not at the edge of <figcaption>.
|
|
|
*/
|
|
|
& .image > figcaption.ck-placeholder::before {
|
|
|
padding-left: inherit;
|
|
|
padding-right: inherit;
|
|
|
|
|
|
/*
|
|
|
* Make sure the image caption placeholder doesn't overflow the placeholder area.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/9162.
|
|
|
*/
|
|
|
white-space: nowrap;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/15115.
|
|
|
*/
|
|
|
& .image {
|
|
|
z-index: 1;
|
|
|
|
|
|
/*
|
|
|
* Make sure the selected image always stays on top of its siblings.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/9108.
|
|
|
*/
|
|
|
&.ck-widget_selected {
|
|
|
z-index: 2;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/15115.
|
|
|
*/
|
|
|
& .image-inline {
|
|
|
z-index: 1;
|
|
|
|
|
|
/*
|
|
|
* Make sure the selected inline image always stays on top of its siblings.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/9108.
|
|
|
*/
|
|
|
&.ck-widget_selected {
|
|
|
z-index: 2;
|
|
|
|
|
|
/*
|
|
|
* Make sure the native browser selection style is not displayed.
|
|
|
* Inline image widgets have their own styles for the selected state and
|
|
|
* leaving this up to the browser is asking for a visual collision.
|
|
|
*/
|
|
|
& ::selection {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Keep proportions of the inline image if the height is set and the image is wider than the editor width.
|
|
|
See https://github.com/ckeditor/ckeditor5/issues/14542. */
|
|
|
& .image-inline img {
|
|
|
height: auto;
|
|
|
}
|
|
|
|
|
|
/* The inline image nested in the table should have its original size if not resized.
|
|
|
See https://github.com/ckeditor/ckeditor5/issues/9117. */
|
|
|
& td,
|
|
|
& th {
|
|
|
& .image-inline img {
|
|
|
max-width: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},2423:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,mDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAMD,CAGA,qEACC,iDACD,CAEA,sCACC,GACC,oEACD,CAEA,GACC,yDACD,CACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-color-image-caption-background: hsl(0, 0%, 97%);
|
|
|
--ck-color-image-caption-text: hsl(0, 0%, 20%);
|
|
|
--ck-color-image-caption-highligted-background: hsl(52deg 100% 50%);
|
|
|
}
|
|
|
|
|
|
/* Content styles */
|
|
|
.ck-content .image > figcaption {
|
|
|
display: table-caption;
|
|
|
caption-side: bottom;
|
|
|
word-break: break-word;
|
|
|
color: var(--ck-color-image-caption-text);
|
|
|
background-color: var(--ck-color-image-caption-background);
|
|
|
padding: .6em;
|
|
|
font-size: .75em;
|
|
|
outline-offset: -1px;
|
|
|
}
|
|
|
|
|
|
/* Editing styles */
|
|
|
.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {
|
|
|
animation: ck-image-caption-highlight .6s ease-out;
|
|
|
}
|
|
|
|
|
|
@keyframes ck-image-caption-highlight {
|
|
|
0% {
|
|
|
background-color: var(--ck-color-image-caption-highligted-background);
|
|
|
}
|
|
|
|
|
|
100% {
|
|
|
background-color: var(--ck-color-image-caption-background);
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},8879:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-image-insert-url .ck-image-insert-url__action-row{display:grid;grid-template-columns:repeat(2,1fr)}:root{--ck-image-insert-insert-by-url-width:250px}.ck.ck-image-insert-url{--ck-input-width:100%}.ck.ck-image-insert-url .ck-image-insert-url__action-row{grid-column-gap:var(--ck-spacing-large);margin-top:var(--ck-spacing-large)}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-cancel,.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-save{justify-content:center;min-width:auto}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}.ck.ck-image-insert-form>.ck.ck-button{display:block;padding:var(--ck-list-button-padding);width:100%}[dir=ltr] .ck.ck-image-insert-form>.ck.ck-button{text-align:left}[dir=rtl] .ck.ck-image-insert-form>.ck.ck-button{text-align:right}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:first-child){border-top:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:last-child){border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible,.ck.ck-image-insert-form>.ck.ck-image-insert-url{min-width:var(--ck-image-insert-insert-by-url-width)}.ck.ck-image-insert-form>.ck.ck-image-insert-url{padding:var(--ck-spacing-large)}.ck.ck-image-insert-form:focus{outline:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageinsert.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageinsert.css"],names:[],mappings:"AAMC,yDACC,YAAa,CACb,mCACD,CCFD,MACC,2CACD,CAEA,wBACC,qBAgBD,CAdC,yDACC,uCAAwC,CACxC,kCAWD,CATC,oJAEC,sBAAuB,CACvB,cACD,CAEA,sFACC,0BACD,CAKD,uCACC,aAAc,CAEd,qCAAsC,CADtC,UAUD,CAZA,iDAME,eAMF,CAZA,iDAUE,gBAEF,CAGC,8DACC,gDACD,CAEA,6DACC,mDACD,CAMD,6FAJC,oDAOD,CAHA,iDAEC,+BACD,CAEA,+BACC,YACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-image-insert-url {
|
|
|
& .ck-image-insert-url__action-row {
|
|
|
display: grid;
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-image-insert-insert-by-url-width: 250px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-image-insert-url {
|
|
|
--ck-input-width: 100%;
|
|
|
|
|
|
& .ck-image-insert-url__action-row {
|
|
|
grid-column-gap: var(--ck-spacing-large);
|
|
|
margin-top: var(--ck-spacing-large);
|
|
|
|
|
|
& .ck-button-save,
|
|
|
& .ck-button-cancel {
|
|
|
justify-content: center;
|
|
|
min-width: auto;
|
|
|
}
|
|
|
|
|
|
& .ck-button .ck-button__label {
|
|
|
color: var(--ck-color-text);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-image-insert-form {
|
|
|
& > .ck.ck-button {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
padding: var(--ck-list-button-padding);
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
text-align: left;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
text-align: right;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck.ck-collapsible {
|
|
|
&:not(:first-child) {
|
|
|
border-top: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
border-bottom: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
|
|
|
min-width: var(--ck-image-insert-insert-by-url-width);
|
|
|
}
|
|
|
|
|
|
/* This is the case when there are no other integrations configured than insert by URL */
|
|
|
& > .ck.ck-image-insert-url {
|
|
|
min-width: var(--ck-image-insert-insert-by-url-width);
|
|
|
padding: var(--ck-spacing-large);
|
|
|
}
|
|
|
|
|
|
&:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},31:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-editor__editable img.image_placeholder{background-size:100% 100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageplaceholder.css"],names:[],mappings:"AAMC,8CACC,yBACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-editor__editable {
|
|
|
& img.image_placeholder {
|
|
|
background-size: 100% 100%;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},2400:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck-content img.image_resized{height:auto}.ck-content .image.image_resized{box-sizing:border-box;display:block;max-width:100%}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}.ck.ck-editor__editable td .image-inline.image_resized img,.ck.ck-editor__editable th .image-inline.image_resized img{max-width:100%}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAMA,8BACC,WACD,CAEA,iCAQC,qBAAsB,CADtB,aAAc,CANd,cAkBD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAQC,sHACC,cACD,CAIF,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/* Preserve aspect ratio of the resized image after introducing image height attribute. */
|
|
|
.ck-content img.image_resized {
|
|
|
height: auto;
|
|
|
}
|
|
|
|
|
|
.ck-content .image.image_resized {
|
|
|
max-width: 100%;
|
|
|
/*
|
|
|
The \`<figure>\` element for resized images must not use \`display:table\` as browsers do not support \`max-width\` for it well.
|
|
|
See https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.
|
|
|
Fortunately, since we control the width, there is no risk that the image will look bad.
|
|
|
*/
|
|
|
display: block;
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
& img {
|
|
|
/* For resized images it is the \`<figure>\` element that determines the image width. */
|
|
|
width: 100%;
|
|
|
}
|
|
|
|
|
|
& > figcaption {
|
|
|
/* The \`<figure>\` element uses \`display:block\`, so \`<figcaption>\` also has to. */
|
|
|
display: block;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable {
|
|
|
/* The resized inline image nested in the table should respect its parent size.
|
|
|
See https://github.com/ckeditor/ckeditor5/issues/9117. */
|
|
|
& td,
|
|
|
& 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;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},3534:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-image-style-spacing: 1.5em;
|
|
|
--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);
|
|
|
}
|
|
|
|
|
|
.ck-content {
|
|
|
/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback
|
|
|
confirming successful application of the style if image width exceeds the editor's size.
|
|
|
See https://github.com/ckeditor/ckeditor5/issues/9342 */
|
|
|
& .image-style-block-align-left,
|
|
|
& .image-style-block-align-right {
|
|
|
max-width: calc(100% - var(--ck-image-style-spacing));
|
|
|
}
|
|
|
|
|
|
/* Allows displaying multiple floating images in the same line.
|
|
|
See https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */
|
|
|
& .image-style-align-left,
|
|
|
& .image-style-align-right {
|
|
|
clear: none;
|
|
|
}
|
|
|
|
|
|
& .image-style-side {
|
|
|
float: right;
|
|
|
margin-left: var(--ck-image-style-spacing);
|
|
|
max-width: 50%;
|
|
|
}
|
|
|
|
|
|
& .image-style-align-left {
|
|
|
float: left;
|
|
|
margin-right: var(--ck-image-style-spacing);
|
|
|
}
|
|
|
|
|
|
& .image-style-align-center {
|
|
|
margin-left: auto;
|
|
|
margin-right: auto;
|
|
|
}
|
|
|
|
|
|
& .image-style-align-right {
|
|
|
float: right;
|
|
|
margin-left: var(--ck-image-style-spacing);
|
|
|
}
|
|
|
|
|
|
& .image-style-block-align-right {
|
|
|
margin-right: 0;
|
|
|
margin-left: auto;
|
|
|
}
|
|
|
|
|
|
& .image-style-block-align-left {
|
|
|
margin-left: 0;
|
|
|
margin-right: auto;
|
|
|
}
|
|
|
|
|
|
/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */
|
|
|
& p + .image-style-align-left,
|
|
|
& p + .image-style-align-right,
|
|
|
& p + .image-style-side {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
& .image-inline {
|
|
|
&.image-style-align-left,
|
|
|
&.image-style-align-right {
|
|
|
margin-top: var(--ck-inline-image-style-spacing);
|
|
|
margin-bottom: var(--ck-inline-image-style-spacing);
|
|
|
}
|
|
|
|
|
|
&.image-style-align-left {
|
|
|
margin-right: var(--ck-inline-image-style-spacing);
|
|
|
}
|
|
|
|
|
|
&.image-style-align-right {
|
|
|
margin-left: var(--ck-inline-image-style-spacing);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-splitbutton {
|
|
|
/* The button should display as a regular drop-down if the action button
|
|
|
is forced to fire the same action as the arrow button. */
|
|
|
&.ck-splitbutton_flatten {
|
|
|
&:hover,
|
|
|
&.ck-splitbutton_open {
|
|
|
& > .ck-splitbutton__action:not(.ck-disabled),
|
|
|
& > .ck-splitbutton__arrow:not(.ck-disabled),
|
|
|
& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {
|
|
|
background-color: var(--ck-color-button-on-background);
|
|
|
|
|
|
&::after {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-splitbutton_open:hover {
|
|
|
& > .ck-splitbutton__action:not(.ck-disabled),
|
|
|
& > .ck-splitbutton__arrow:not(.ck-disabled),
|
|
|
& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {
|
|
|
background-color: var(--ck-color-button-on-hover-background);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},1547:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadicon.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFA0BD,CAtBC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck-image-upload-complete-icon {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
|
|
|
/*
|
|
|
* Smaller images should have the icon closer to the border.
|
|
|
* Match the icon position with the linked image indicator brought by the link image feature.
|
|
|
*/
|
|
|
top: min(var(--ck-spacing-medium), 6%);
|
|
|
right: min(var(--ck-spacing-medium), 6%);
|
|
|
border-radius: 50%;
|
|
|
z-index: 1;
|
|
|
|
|
|
&::after {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-color-image-upload-icon: hsl(0, 0%, 100%);
|
|
|
--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);
|
|
|
|
|
|
/* Match the icon size with the linked image indicator brought by the link image feature. */
|
|
|
--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 {
|
|
|
opacity: 0;
|
|
|
background: var(--ck-color-image-upload-icon-background);
|
|
|
animation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;
|
|
|
animation-fill-mode: forwards, forwards;
|
|
|
animation-duration: 500ms, 500ms;
|
|
|
|
|
|
/* To make animation scalable. */
|
|
|
font-size: calc(1px * var(--ck-image-upload-icon-size));
|
|
|
|
|
|
/* Hide completed upload icon after 3 seconds. */
|
|
|
animation-delay: 0ms, 3000ms;
|
|
|
|
|
|
/*
|
|
|
* Use CSS math to simulate container queries.
|
|
|
* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things
|
|
|
*/
|
|
|
overflow: hidden;
|
|
|
width: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));
|
|
|
height: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));
|
|
|
|
|
|
/* This is check icon element made from border-width mixed with animations. */
|
|
|
&::after {
|
|
|
/* Because of border transformation we need to "hard code" left position. */
|
|
|
left: 25%;
|
|
|
|
|
|
top: 50%;
|
|
|
opacity: 0;
|
|
|
height: 0;
|
|
|
width: 0;
|
|
|
|
|
|
transform: scaleX(-1) rotate(135deg);
|
|
|
transform-origin: left top;
|
|
|
border-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);
|
|
|
border-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);
|
|
|
|
|
|
animation-name: ck-upload-complete-icon-check;
|
|
|
animation-duration: 500ms;
|
|
|
animation-delay: 500ms;
|
|
|
animation-fill-mode: forwards;
|
|
|
|
|
|
/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes ck-upload-complete-icon-show {
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes ck-upload-complete-icon-hide {
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes ck-upload-complete-icon-check {
|
|
|
0% {
|
|
|
opacity: 1;
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
}
|
|
|
33% {
|
|
|
width: 0.3em;
|
|
|
height: 0;
|
|
|
}
|
|
|
100% {
|
|
|
opacity: 1;
|
|
|
width: 0.3em;
|
|
|
height: 0.45em;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},6618:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadloader.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck .ck-upload-placeholder-loader {
|
|
|
position: absolute;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
|
|
|
&::before {
|
|
|
content: '';
|
|
|
position: relative;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);
|
|
|
--ck-upload-placeholder-loader-size: 32px;
|
|
|
--ck-upload-placeholder-image-aspect-ratio: 2.8;
|
|
|
}
|
|
|
|
|
|
.ck .ck-image-upload-placeholder {
|
|
|
/* We need to control the full width of the SVG gray background. */
|
|
|
width: 100%;
|
|
|
margin: 0;
|
|
|
|
|
|
&.image-inline {
|
|
|
width: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );
|
|
|
}
|
|
|
|
|
|
& img {
|
|
|
/*
|
|
|
* This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.
|
|
|
* There's nothing special about this number except that it should make the image placeholder look like
|
|
|
* a real image during this short period after the upload started and before the image was read from the
|
|
|
* file system (and a rich preview was loaded).
|
|
|
*/
|
|
|
aspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck .ck-upload-placeholder-loader {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
|
|
|
&::before {
|
|
|
width: var(--ck-upload-placeholder-loader-size);
|
|
|
height: var(--ck-upload-placeholder-loader-size);
|
|
|
border-radius: 50%;
|
|
|
border-top: 3px solid var(--ck-color-upload-placeholder-loader);
|
|
|
border-right: 2px solid transparent;
|
|
|
animation: ck-upload-placeholder-loader 1s linear infinite;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes ck-upload-placeholder-loader {
|
|
|
to {
|
|
|
transform: rotate( 360deg );
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},2926:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadprogress.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBACD,CAID,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-editor__editable {
|
|
|
& .image,
|
|
|
& .image-inline {
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
/* Upload progress bar. */
|
|
|
& .image .ck-progress-bar,
|
|
|
& .image-inline .ck-progress-bar {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-editor__editable {
|
|
|
& .image,
|
|
|
& .image-inline {
|
|
|
/* Showing animation. */
|
|
|
&.ck-appear {
|
|
|
animation: fadeIn 700ms;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Upload progress bar. */
|
|
|
& .image .ck-progress-bar,
|
|
|
& .image-inline .ck-progress-bar {
|
|
|
height: 2px;
|
|
|
width: 0;
|
|
|
background: var(--ck-color-upload-bar-background);
|
|
|
transition: width 100ms;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes fadeIn {
|
|
|
from { opacity: 0; }
|
|
|
to { opacity: 1; }
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},5269:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/textalternativeform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
|
|
|
|
|
.ck.ck-text-alternative-form {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
|
& .ck-labeled-field-view {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
& .ck-label {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
@mixin ck-media-phone {
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
& .ck-labeled-field-view {
|
|
|
flex-basis: 100%;
|
|
|
}
|
|
|
|
|
|
& .ck-button {
|
|
|
flex-basis: 50%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@define-mixin ck-media-phone {
|
|
|
@media screen and (max-width: 600px) {
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},3925:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/* Class added to span element surrounding currently selected link. */
|
|
|
.ck .ck-link_selected {
|
|
|
background: var(--ck-color-link-selected-background);
|
|
|
|
|
|
/* Give linked inline images some outline to let the user know they are also part of the link. */
|
|
|
& span.image-inline {
|
|
|
outline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Classes used by the "fake visual selection" displayed in the content when an input
|
|
|
* in the link UI has focus (the browser does not render the native selection in this state).
|
|
|
*/
|
|
|
.ck .ck-fake-link-selection {
|
|
|
background: var(--ck-color-link-fake-selection);
|
|
|
}
|
|
|
|
|
|
/* A collapsed fake visual selection. */
|
|
|
.ck .ck-fake-link-selection_collapsed {
|
|
|
height: 100%;
|
|
|
border-right: 1px solid var(--ck-color-base-text);
|
|
|
margin-right: -1px;
|
|
|
outline: solid 1px hsla(0, 0%, 100%, .5);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},7536:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-link/theme/linkactions.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
|
|
|
|
|
.ck.ck-link-actions {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
|
& .ck-link-actions__preview {
|
|
|
display: inline-block;
|
|
|
|
|
|
& .ck-button__label {
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-media-phone {
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
& .ck-link-actions__preview {
|
|
|
flex-basis: 100%;
|
|
|
}
|
|
|
|
|
|
& .ck-button:not(.ck-link-actions__preview) {
|
|
|
flex-basis: 50%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@define-mixin ck-media-phone {
|
|
|
@media screen and (max-width: 600px) {
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
@import "../mixins/_focus.css";
|
|
|
@import "../mixins/_shadow.css";
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
|
|
|
|
|
.ck.ck-link-actions {
|
|
|
& .ck-button.ck-link-actions__preview {
|
|
|
padding-left: 0;
|
|
|
padding-right: 0;
|
|
|
|
|
|
& .ck-button__label {
|
|
|
padding: 0 var(--ck-spacing-medium);
|
|
|
color: var(--ck-color-link-default);
|
|
|
text-overflow: ellipsis;
|
|
|
cursor: pointer;
|
|
|
|
|
|
/* Match the box model of the link editor form's input so the balloon
|
|
|
does not change width when moving between actions and the form. */
|
|
|
max-width: var(--ck-input-width);
|
|
|
min-width: 3em;
|
|
|
text-align: center;
|
|
|
|
|
|
&:hover {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&,
|
|
|
&:hover,
|
|
|
&:focus,
|
|
|
&:active {
|
|
|
background: none;
|
|
|
}
|
|
|
|
|
|
&:active {
|
|
|
box-shadow: none;
|
|
|
}
|
|
|
|
|
|
&:focus {
|
|
|
& .ck-button__label {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
& .ck-button:not(:first-child) {
|
|
|
margin-left: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
& .ck-button:not(:last-child) {
|
|
|
margin-left: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-media-phone {
|
|
|
& .ck-button.ck-link-actions__preview {
|
|
|
margin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;
|
|
|
|
|
|
& .ck-button__label {
|
|
|
min-width: 0;
|
|
|
max-width: 100%;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-button:not(.ck-link-actions__preview) {
|
|
|
@mixin ck-dir ltr {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},4874:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-link/theme/linkform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD,CE/BF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
|
|
|
|
|
.ck.ck-link-form {
|
|
|
display: flex;
|
|
|
|
|
|
& .ck-label {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
@mixin ck-media-phone {
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
& .ck-labeled-field-view {
|
|
|
flex-basis: 100%;
|
|
|
}
|
|
|
|
|
|
& .ck-button {
|
|
|
flex-basis: 50%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Style link form differently when manual decorators are available.
|
|
|
* See: https://github.com/ckeditor/ckeditor5-link/issues/186.
|
|
|
*/
|
|
|
.ck.ck-link-form_layout-vertical {
|
|
|
display: block;
|
|
|
|
|
|
/*
|
|
|
* Whether the form is in the responsive mode or not, if there are decorator buttons
|
|
|
* keep the top margin of action buttons medium.
|
|
|
*/
|
|
|
& .ck-button {
|
|
|
&.ck-button-save,
|
|
|
&.ck-button-cancel {
|
|
|
margin-top: var(--ck-spacing-medium);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@define-mixin ck-media-phone {
|
|
|
@media screen and (max-width: 600px) {
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
/*
|
|
|
* Style link form differently when manual decorators are available.
|
|
|
* See: https://github.com/ckeditor/ckeditor5-link/issues/186.
|
|
|
*/
|
|
|
.ck.ck-link-form_layout-vertical {
|
|
|
padding: 0;
|
|
|
min-width: var(--ck-input-width);
|
|
|
|
|
|
& .ck-labeled-field-view {
|
|
|
margin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);
|
|
|
|
|
|
& .ck-input-text {
|
|
|
min-width: 0;
|
|
|
width: 100%;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck-button {
|
|
|
padding: var(--ck-spacing-standard);
|
|
|
margin: 0;
|
|
|
width: 50%;
|
|
|
border-radius: 0;
|
|
|
|
|
|
&:not(:focus) {
|
|
|
border-top: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
margin-left: 0;
|
|
|
|
|
|
&:last-of-type {
|
|
|
border-right: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Using additional \`.ck\` class for stronger CSS specificity than \`.ck.ck-link-form > :not(:first-child)\`. */
|
|
|
& .ck.ck-list {
|
|
|
margin: var(--ck-spacing-standard) var(--ck-spacing-large);
|
|
|
|
|
|
& .ck-button.ck-switchbutton {
|
|
|
padding: 0;
|
|
|
width: 100%;
|
|
|
|
|
|
&:hover {
|
|
|
background: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},4330:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,'.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{display:block;position:absolute}:root{--ck-link-image-indicator-icon-size:20;--ck-link-image-indicator-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{background-color:rgba(0,0,0,.4);background-image:url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;content:"";height:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size));overflow:hidden;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);width:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size))}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-link/theme/linkimage.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AASE,+FACC,aAAc,CACd,iBACD,CCPF,MAEC,sCAAuC,CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,83BAA+3B,CAG/3B,uBAA2B,CAD3B,2BAA4B,CAD5B,oBAAqB,CAGrB,kBAAmB,CAdnB,UAAW,CAsBX,oGAAuG,CAFvG,eAAgB,CAbhB,sCAAwC,CADxC,oCAAsC,CAetC,mGAED",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-editor__editable {
|
|
|
/* Linked image indicator */
|
|
|
& figure.image > a,
|
|
|
& a span.image-inline {
|
|
|
&::after {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
/* Match the icon size with the upload indicator brought by the image upload feature. */
|
|
|
--ck-link-image-indicator-icon-size: 20;
|
|
|
--ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px);
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable {
|
|
|
/* Linked image indicator */
|
|
|
& figure.image > a,
|
|
|
& a span.image-inline {
|
|
|
&::after {
|
|
|
content: "";
|
|
|
|
|
|
/*
|
|
|
* Smaller images should have the icon closer to the border.
|
|
|
* Match the icon position with the upload indicator brought by the image upload feature.
|
|
|
*/
|
|
|
top: min(var(--ck-spacing-medium), 6%);
|
|
|
right: min(var(--ck-spacing-medium), 6%);
|
|
|
|
|
|
background-color: hsla(0, 0%, 0%, .4);
|
|
|
background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");
|
|
|
background-size: 14px;
|
|
|
background-repeat: no-repeat;
|
|
|
background-position: center;
|
|
|
border-radius: 100%;
|
|
|
|
|
|
/*
|
|
|
* Use CSS math to simulate container queries.
|
|
|
* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things
|
|
|
*/
|
|
|
overflow: hidden;
|
|
|
width: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));
|
|
|
height: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
`],sourceRoot:""}]);const f=g},3190:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/documentlist.css"],names:[],mappings:"AAKA,8CACC,aACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck-editor__editable .ck-list-bogus-paragraph {
|
|
|
display: block;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},4784:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/list.css"],names:[],mappings:"AAKA,eACC,uBAiBD,CAfC,kBACC,2BAaD,CAXC,qBACC,2BASD,CAPC,wBACC,2BAKD,CAHC,2BACC,2BACD,CAMJ,eACC,oBAaD,CAXC,kBACC,sBASD,CAJE,6CACC,sBACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck-content ol {
|
|
|
list-style-type: decimal;
|
|
|
|
|
|
& ol {
|
|
|
list-style-type: lower-latin;
|
|
|
|
|
|
& ol {
|
|
|
list-style-type: lower-roman;
|
|
|
|
|
|
& ol {
|
|
|
list-style-type: upper-latin;
|
|
|
|
|
|
& ol {
|
|
|
list-style-type: upper-roman;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck-content ul {
|
|
|
list-style-type: disc;
|
|
|
|
|
|
& ul {
|
|
|
list-style-type: circle;
|
|
|
|
|
|
& ul {
|
|
|
list-style-type: square;
|
|
|
|
|
|
& ul {
|
|
|
list-style-type: square;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},9938:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-list-properties.ck-list-properties_without-styles{padding:var(--ck-spacing-large)}.ck.ck-list-properties.ck-list-properties_without-styles>*{min-width:14em}.ck.ck-list-properties.ck-list-properties_without-styles>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-list-styles-list{grid-template-columns:repeat(4,auto)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*{width:100%}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input{min-width:auto;width:100%}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order{background:transparent;margin-bottom:calc(var(--ck-spacing-tiny)*-1);padding-left:0;padding-right:0}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active,.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover{background:none;border-color:transparent;box-shadow:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-list/listproperties.css"],names:[],mappings:"AAOC,yDACC,+BASD,CAPC,2DACC,cAKD,CAHC,6DACC,qCACD,CASD,wFACC,oCACD,CAGA,mFACC,gDAWD,CARE,+GACC,UAKD,CAHC,iHACC,qCACD,CAMJ,8EACC,cAAe,CACf,UACD,CAEA,uEACC,sBAAuB,CAGvB,6CAAgD,CAFhD,cAAe,CACf,eAQD,CALC,2JAGC,eAAgB,CADhB,wBAAyB,CADzB,eAGD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-list-properties {
|
|
|
/* When there are no list styles and there is no collapsible. */
|
|
|
&.ck-list-properties_without-styles {
|
|
|
padding: var(--ck-spacing-large);
|
|
|
|
|
|
& > * {
|
|
|
min-width: 14em;
|
|
|
|
|
|
& + * {
|
|
|
margin-top: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* When the numbered list property fields (start at, reversed) should be displayed,
|
|
|
* more horizontal space is needed. Reconfigure the style grid to create that space.
|
|
|
*/
|
|
|
&.ck-list-properties_with-numbered-properties {
|
|
|
& > .ck-list-styles-list {
|
|
|
grid-template-columns: repeat( 4, auto );
|
|
|
}
|
|
|
|
|
|
/* When list styles are rendered and property fields are in a collapsible. */
|
|
|
& > .ck-collapsible {
|
|
|
border-top: 1px solid var(--ck-color-base-border);
|
|
|
|
|
|
& > .ck-collapsible__children {
|
|
|
& > * {
|
|
|
width: 100%;
|
|
|
|
|
|
& + * {
|
|
|
margin-top: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck.ck-numbered-list-properties__start-index .ck-input {
|
|
|
min-width: auto;
|
|
|
width: 100%;
|
|
|
}
|
|
|
|
|
|
& .ck.ck-numbered-list-properties__reversed-order {
|
|
|
background: transparent;
|
|
|
padding-left: 0;
|
|
|
padding-right: 0;
|
|
|
margin-bottom: calc(-1 * var(--ck-spacing-tiny));
|
|
|
|
|
|
&:active, &:hover {
|
|
|
box-shadow: none;
|
|
|
border-color: transparent;
|
|
|
background: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},2591:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-list-styles-list{display:grid}:root{--ck-list-style-button-size:44px}.ck.ck-list-styles-list{column-gap:var(--ck-spacing-medium);grid-template-columns:repeat(3,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-list-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-list-styles-list .ck-button,.ck.ck-list-styles-list .ck-button .ck-icon{height:var(--ck-list-style-button-size);width:var(--ck-list-style-button-size)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/liststyles.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-list/liststyles.css"],names:[],mappings:"AAKA,wBACC,YACD,CCFA,MACC,gCACD,CAEA,wBAGC,mCAAoC,CAFpC,oCAAwC,CAGxC,+BAAgC,CAFhC,gCA4BD,CAxBC,mCAiBC,sBAAuB,CAPvB,QAAS,CANT,SAmBD,CAJC,+EAhBA,uCAAwC,CADxC,sCAoBA",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-list-styles-list {
|
|
|
display: grid;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-list-style-button-size: 44px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-list-styles-list {
|
|
|
grid-template-columns: repeat( 3, auto );
|
|
|
row-gap: var(--ck-spacing-medium);
|
|
|
column-gap: var(--ck-spacing-medium);
|
|
|
padding: var(--ck-spacing-large);
|
|
|
|
|
|
& .ck-button {
|
|
|
/* Make the button look like a thumbnail (the icon "takes it all"). */
|
|
|
width: var(--ck-list-style-button-size);
|
|
|
height: var(--ck-list-style-button-size);
|
|
|
padding: 0;
|
|
|
|
|
|
/*
|
|
|
* Buttons are aligned by the grid so disable default button margins to not collide with the
|
|
|
* gaps in the grid.
|
|
|
*/
|
|
|
margin: 0;
|
|
|
|
|
|
/*
|
|
|
* Make sure the button border (which is displayed on focus, BTW) does not steal pixels
|
|
|
* from the button dimensions and, as a result, decrease the size of the icon
|
|
|
* (which becomes blurry as it scales down).
|
|
|
*/
|
|
|
box-sizing: content-box;
|
|
|
|
|
|
& .ck-icon {
|
|
|
width: var(--ck-list-style-button-size);
|
|
|
height: var(--ck-list-style-button-size);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},9292:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px;position:relative}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-content[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-content .todo-list .todo-list__label>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-content .todo-list .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}.ck-editor__editable.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{cursor:pointer}.ck-editor__editable.ck-content .todo-list .todo-list__label>input:hover:before,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-editor__editable.ck-content[dir=rtl] .todo-list .todo-list__label>span[contenteditable=false]>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:after{border-color:#fff}.ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/todolist.css"],names:[],mappings:"AAKA,MACC,kCACD,CAwEA,uBACC,eAwBD,CAtBC,0BAEC,iBAAkB,CADlB,iBAMD,CAHC,qCACC,cACD,CAIA,+CAlFD,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAiFC,CAFA,wDAhEA,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAgEA,CA5DD,sDAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qDAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+DACC,kBAA8B,CAC9B,oBACD,CAEA,8DACC,iBACD,CAwBA,wEACC,qBACD,CAEA,mGACC,iBACD,CAYD,kKAEC,cAKD,CAHC,4LACC,mCACD,CAMD,+FApHA,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAmHA,CAFA,wGAlGC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAkGD,CA9FA,sGAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qGAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+GACC,kBAA8B,CAC9B,oBACD,CAEA,8GACC,iBACD,CA2DA,uHACC,iBACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-todo-list-checkmark-size: 16px;
|
|
|
}
|
|
|
|
|
|
@define-mixin todo-list-checkbox {
|
|
|
-webkit-appearance: none;
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
width: var(--ck-todo-list-checkmark-size);
|
|
|
height: var(--ck-todo-list-checkmark-size);
|
|
|
vertical-align: middle;
|
|
|
|
|
|
/* Needed on iOS */
|
|
|
border: 0;
|
|
|
|
|
|
/* LTR styles */
|
|
|
left: -25px;
|
|
|
margin-right: -15px;
|
|
|
right: 0;
|
|
|
margin-left: 0;
|
|
|
|
|
|
/* RTL styles */
|
|
|
@nest [dir=rtl]& {
|
|
|
left: 0;
|
|
|
margin-right: 0;
|
|
|
right: -25px;
|
|
|
margin-left: -15px;
|
|
|
}
|
|
|
|
|
|
&::before {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
box-sizing: border-box;
|
|
|
content: '';
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
border: 1px solid hsl(0, 0%, 20%);
|
|
|
border-radius: 2px;
|
|
|
transition: 250ms ease-in-out box-shadow;
|
|
|
}
|
|
|
|
|
|
&::after {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
box-sizing: content-box;
|
|
|
pointer-events: none;
|
|
|
content: '';
|
|
|
|
|
|
/* Calculate tick position, size and border-width proportional to the checkmark size. */
|
|
|
left: calc( var(--ck-todo-list-checkmark-size) / 3 );
|
|
|
top: calc( var(--ck-todo-list-checkmark-size) / 5.3 );
|
|
|
width: calc( var(--ck-todo-list-checkmark-size) / 5.3 );
|
|
|
height: calc( var(--ck-todo-list-checkmark-size) / 2.6 );
|
|
|
border-style: solid;
|
|
|
border-color: transparent;
|
|
|
border-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0;
|
|
|
transform: rotate(45deg);
|
|
|
}
|
|
|
|
|
|
&[checked] {
|
|
|
&::before {
|
|
|
background: hsl(126, 64%, 41%);
|
|
|
border-color: hsl(126, 64%, 41%);
|
|
|
}
|
|
|
|
|
|
&::after {
|
|
|
border-color: hsl(0, 0%, 100%);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* To-do list content styles.
|
|
|
*/
|
|
|
.ck-content .todo-list {
|
|
|
list-style: none;
|
|
|
|
|
|
& li {
|
|
|
position: relative;
|
|
|
margin-bottom: 5px;
|
|
|
|
|
|
& .todo-list {
|
|
|
margin-top: 5px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .todo-list__label {
|
|
|
& > input {
|
|
|
@mixin todo-list-checkbox;
|
|
|
}
|
|
|
|
|
|
& .todo-list__label__description {
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
&.todo-list__label_without-description input[type=checkbox] {
|
|
|
position: absolute;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* To-do list editing view styles.
|
|
|
*/
|
|
|
.ck-editor__editable.ck-content .todo-list .todo-list__label {
|
|
|
/*
|
|
|
* To-do list should be interactive only during the editing
|
|
|
* (https://github.com/ckeditor/ckeditor5/issues/2090).
|
|
|
*/
|
|
|
& > input,
|
|
|
& > span[contenteditable=false] > input {
|
|
|
cursor: pointer;
|
|
|
|
|
|
&:hover::before {
|
|
|
box-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Document Lists - editing view has an additional span around checkbox.
|
|
|
*/
|
|
|
& > span[contenteditable=false] > input {
|
|
|
@mixin todo-list-checkbox;
|
|
|
}
|
|
|
|
|
|
&.todo-list__label_without-description {
|
|
|
& input[type=checkbox] {
|
|
|
position: absolute;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},8705:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck-content .media {
|
|
|
/* Don't allow floated content overlap the media.
|
|
|
https://github.com/ckeditor/ckeditor5-media-embed/issues/53 */
|
|
|
clear: both;
|
|
|
|
|
|
/* Make sure there is some space between the content and the media. */
|
|
|
/* The first value should be equal to --ck-spacing-large variable if used in the editor context
|
|
|
to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */
|
|
|
margin: 0.9em 0;
|
|
|
|
|
|
/* Make sure media is not overriden with Bootstrap default \`flex\` value.
|
|
|
See: https://github.com/ckeditor/ckeditor5/issues/1373. */
|
|
|
display: block;
|
|
|
|
|
|
/* Give the media some minimal width in the content to prevent them
|
|
|
from being "squashed" in tight spaces, e.g. in table cells (#44) */
|
|
|
min-width: 15em;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},1922:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck-media__wrapper {
|
|
|
& .ck-media__placeholder {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
|
|
|
|
& .ck-media__placeholder__url {
|
|
|
/* Otherwise the URL will overflow when the content is very narrow. */
|
|
|
max-width: 100%;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
& .ck-media__placeholder__url__text {
|
|
|
overflow: hidden;
|
|
|
display: block;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[data-oembed-url*="twitter.com"],
|
|
|
&[data-oembed-url*="google.com/maps"],
|
|
|
&[data-oembed-url*="goo.gl/maps"],
|
|
|
&[data-oembed-url*="maps.google.com"],
|
|
|
&[data-oembed-url*="maps.app.goo.gl"],
|
|
|
&[data-oembed-url*="facebook.com"],
|
|
|
&[data-oembed-url*="instagram.com"] {
|
|
|
& .ck-media__placeholder__icon * {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Disable all mouse interaction as long as the editor is not read–only.
|
|
|
https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */
|
|
|
.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
|
|
|
/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).
|
|
|
https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */
|
|
|
.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-media-embed-placeholder-icon-size: 3em;
|
|
|
|
|
|
--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);
|
|
|
--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);
|
|
|
}
|
|
|
|
|
|
.ck-media__wrapper {
|
|
|
margin: 0 auto;
|
|
|
|
|
|
& .ck-media__placeholder {
|
|
|
padding: calc( 3 * var(--ck-spacing-standard) );
|
|
|
background: var(--ck-color-base-foreground);
|
|
|
|
|
|
& .ck-media__placeholder__icon {
|
|
|
min-width: var(--ck-media-embed-placeholder-icon-size);
|
|
|
height: var(--ck-media-embed-placeholder-icon-size);
|
|
|
margin-bottom: var(--ck-spacing-large);
|
|
|
background-position: center;
|
|
|
background-size: cover;
|
|
|
|
|
|
& .ck-icon {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-media__placeholder__url__text {
|
|
|
color: var(--ck-color-media-embed-placeholder-url-text);
|
|
|
white-space: nowrap;
|
|
|
text-align: center;
|
|
|
font-style: italic;
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
&:hover {
|
|
|
color: var(--ck-color-media-embed-placeholder-url-text-hover);
|
|
|
cursor: pointer;
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[data-oembed-url*="open.spotify.com"] {
|
|
|
max-width: 300px;
|
|
|
max-height: 380px;
|
|
|
}
|
|
|
|
|
|
&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,
|
|
|
&[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,
|
|
|
&[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,
|
|
|
&[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {
|
|
|
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);
|
|
|
}
|
|
|
|
|
|
&[data-oembed-url*="facebook.com"] .ck-media__placeholder {
|
|
|
background: hsl(220, 46%, 48%);
|
|
|
|
|
|
& .ck-media__placeholder__icon {
|
|
|
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);
|
|
|
}
|
|
|
|
|
|
& .ck-media__placeholder__url__text {
|
|
|
color: hsl(220, 100%, 90%);
|
|
|
|
|
|
&:hover {
|
|
|
color: hsl(0, 0%, 100%);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[data-oembed-url*="instagram.com"] .ck-media__placeholder {
|
|
|
background: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));
|
|
|
|
|
|
& .ck-media__placeholder__icon {
|
|
|
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);
|
|
|
}
|
|
|
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
|
|
& .ck-media__placeholder__url__text {
|
|
|
color: hsl(302, 100%, 94%);
|
|
|
|
|
|
&:hover {
|
|
|
color: hsl(0, 0%, 100%);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {
|
|
|
/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */
|
|
|
background: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );
|
|
|
|
|
|
& .ck-media__placeholder__icon {
|
|
|
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);
|
|
|
}
|
|
|
|
|
|
& .ck-media__placeholder__url__text {
|
|
|
color: hsl(201, 100%, 86%);
|
|
|
|
|
|
&:hover {
|
|
|
color: hsl(0, 0%, 100%);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},7138:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
|
|
|
|
|
.ck.ck-media-form {
|
|
|
display: flex;
|
|
|
align-items: flex-start;
|
|
|
flex-direction: row;
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
|
& .ck-labeled-field-view {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
& .ck-label {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
@mixin ck-media-phone {
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
& .ck-labeled-field-view {
|
|
|
flex-basis: 100%;
|
|
|
}
|
|
|
|
|
|
& .ck-button {
|
|
|
flex-basis: 50%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@define-mixin ck-media-phone {
|
|
|
@media screen and (max-width: 600px) {
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},4420:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,'.ck-source-editing-area{overflow:hidden;position:relative}.ck-source-editing-area textarea,.ck-source-editing-area:after{border:1px solid transparent;font-family:monospace;font-size:var(--ck-font-size-normal);line-height:var(--ck-line-height-base);margin:0;padding:var(--ck-spacing-large);white-space:pre-wrap}.ck-source-editing-area:after{content:attr(data-value) " ";display:block;visibility:hidden}.ck-source-editing-area textarea{border-color:var(--ck-color-base-border);border-radius:0;box-sizing:border-box;height:100%;outline:none;overflow:hidden;position:absolute;resize:none;width:100%}.ck-rounded-corners .ck-source-editing-area textarea,.ck-source-editing-area textarea.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck-source-editing-area textarea:not([readonly]):focus{border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-source-editing/theme/sourceediting.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,wBAEC,eAAgB,CADhB,iBAED,CAEA,+DAIC,4BAA6B,CAG7B,qBAAsB,CADtB,oCAAqC,CADrC,sCAAuC,CAFvC,QAAS,CADT,+BAAgC,CAMhC,oBACD,CAEA,8BACC,4BAA6B,CAE7B,aAAc,CADd,iBAED,CAEA,iCASC,wCAAyC,CC7BzC,eAAgB,CD2BhB,qBAAsB,CAJtB,WAAY,CAEZ,YAAa,CACb,eAAgB,CALhB,iBAAkB,CAGlB,WAAY,CAFZ,UAkBD,CApBA,yGChBE,qCAAsC,CD4BtC,wBAAyB,CACzB,yBAOF,CAJC,uDEpCA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFwCA",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";
|
|
|
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css";
|
|
|
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";
|
|
|
|
|
|
.ck-source-editing-area {
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
|
|
|
.ck-source-editing-area::after,
|
|
|
.ck-source-editing-area textarea {
|
|
|
padding: var(--ck-spacing-large);
|
|
|
margin: 0;
|
|
|
border: 1px solid transparent;
|
|
|
line-height: var(--ck-line-height-base);
|
|
|
font-size: var(--ck-font-size-normal);
|
|
|
font-family: monospace;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
.ck-source-editing-area::after {
|
|
|
content: attr(data-value) " ";
|
|
|
visibility: hidden;
|
|
|
display: block;
|
|
|
}
|
|
|
|
|
|
.ck-source-editing-area textarea {
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
resize: none;
|
|
|
outline: none;
|
|
|
overflow: hidden;
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
border-color: var(--ck-color-base-border);
|
|
|
|
|
|
@mixin ck-rounded-corners {
|
|
|
border-top-left-radius: 0;
|
|
|
border-top-right-radius: 0;
|
|
|
}
|
|
|
|
|
|
&:not([readonly]):focus {
|
|
|
@mixin ck-focus-ring;
|
|
|
@mixin ck-box-shadow var(--ck-inner-shadow);
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A visual style of focused element's border.
|
|
|
*/
|
|
|
@define-mixin ck-focus-ring {
|
|
|
/* Disable native outline. */
|
|
|
outline: none;
|
|
|
border: var(--ck-focus-ring)
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},8624:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-dropdown.ck-style-dropdown.ck-style-dropdown_multiple-active>.ck-button>.ck-button__label{font-style:italic}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-style/style.css"],names:[],mappings:"AAKA,iGACC,iBACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-dropdown.ck-style-dropdown.ck-style-dropdown_multiple-active > .ck-button > .ck-button__label {
|
|
|
font-style: italic;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},7775:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,":root{--ck-style-panel-columns:3}.ck.ck-style-panel .ck-style-grid{display:grid;grid-template-columns:repeat(var(--ck-style-panel-columns),auto);justify-content:start}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button{display:flex;flex-direction:column;justify-content:space-between}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button .ck-style-grid__button__preview{align-content:center;align-items:center;display:flex;flex-basis:100%;flex-grow:1;justify-content:flex-start}:root{--ck-style-panel-button-width:120px;--ck-style-panel-button-height:80px;--ck-style-panel-button-label-background:#f0f0f0;--ck-style-panel-button-hover-label-background:#ebebeb;--ck-style-panel-button-hover-border-color:#b3b3b3}.ck.ck-style-panel .ck-style-grid{column-gap:var(--ck-spacing-large);row-gap:var(--ck-spacing-large)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button{--ck-color-button-default-hover-background:var(--ck-color-base-background);--ck-color-button-default-active-background:var(--ck-color-base-background);height:var(--ck-style-panel-button-height);padding:0;width:var(--ck-style-panel-button-width)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button .ck-button__label{flex-shrink:0;height:22px;line-height:22px;overflow:hidden;padding:0 var(--ck-spacing-medium);text-overflow:ellipsis;width:100%}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button .ck-style-grid__button__preview{background:var(--ck-color-base-background);border:2px solid var(--ck-color-base-background);opacity:.9;overflow:hidden;padding:var(--ck-spacing-medium);width:100%}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-disabled{--ck-color-button-default-disabled-background:var(--ck-color-base-foreground)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-disabled:not(:focus){border-color:var(--ck-style-panel-button-label-background)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-disabled .ck-style-grid__button__preview{border-color:var(--ck-color-base-foreground);filter:saturate(.3);opacity:.4}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-on{border-color:var(--ck-color-base-active)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-on .ck-button__label{box-shadow:0 -1px 0 var(--ck-color-base-active);z-index:1}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button.ck-on:hover{border-color:var(--ck-color-base-active-focus)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:not(.ck-on) .ck-button__label{background:var(--ck-style-panel-button-label-background)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:not(.ck-on):hover .ck-button__label{background:var(--ck-style-panel-button-hover-label-background)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:hover:not(.ck-disabled):not(.ck-on){border-color:var(--ck-style-panel-button-hover-border-color)}.ck.ck-style-panel .ck-style-grid .ck-style-grid__button:hover:not(.ck-disabled):not(.ck-on) .ck-style-grid__button__preview{opacity:1}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-style/theme/stylegrid.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-style/stylegrid.css"],names:[],mappings:"AAKA,MACC,0BACD,CAEA,kCACC,YAAa,CACb,gEAAiE,CACjE,qBAgBD,CAdC,yDACC,YAAa,CAEb,qBAAsB,CADtB,6BAWD,CARC,yFAEC,oBAAqB,CAErB,kBAAmB,CAHnB,YAAa,CAKb,eAAgB,CADhB,WAAY,CAFZ,0BAID,CCrBF,MACC,mCAAoC,CACpC,mCAAoC,CACpC,gDAA2D,CAC3D,sDAAiE,CACjE,kDACD,CAEA,kCAEC,kCAAmC,CADnC,+BAmFD,CAhFC,yDACC,0EAA2E,CAC3E,2EAA4E,CAI5E,0CAA2C,CAF3C,SAAU,CACV,wCA0ED,CAtEC,qEACC,4CACD,CAEA,2EAOC,aAAc,CANd,WAAY,CACZ,gBAAiB,CAGjB,eAAgB,CADhB,kCAAmC,CAEnC,sBAAuB,CAHvB,UAKD,CAEA,yFAMC,0CAA2C,CAC3C,gDAAiD,CAJjD,UAAW,CADX,eAAgB,CAGhB,gCAAiC,CAJjC,UAOD,CAEA,qEACC,6EAaD,CAVC,iFACC,0DACD,CAEA,qGAGC,4CAA6C,CAC7C,mBAAoB,CAHpB,UAID,CAGD,+DACC,wCAUD,CARC,iFACC,+CAAgD,CAChD,SACD,CAEA,qEACC,8CACD,CAIA,uFACC,wDACD,CAEA,6FACC,8DACD,CAGD,6FACC,4DAKD,CAHC,6HACC,SACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-style-panel-columns: 3;
|
|
|
}
|
|
|
|
|
|
.ck.ck-style-panel .ck-style-grid {
|
|
|
display: grid;
|
|
|
grid-template-columns: repeat(var(--ck-style-panel-columns),auto);
|
|
|
justify-content: start;
|
|
|
|
|
|
& .ck-style-grid__button {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
flex-direction: column;
|
|
|
|
|
|
& .ck-style-grid__button__preview {
|
|
|
display: flex;
|
|
|
align-content: center;
|
|
|
justify-content: flex-start;
|
|
|
align-items: center;
|
|
|
flex-grow: 1;
|
|
|
flex-basis: 100%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-style-panel-button-width: 120px;
|
|
|
--ck-style-panel-button-height: 80px;
|
|
|
--ck-style-panel-button-label-background: hsl(0, 0%, 94.1%);
|
|
|
--ck-style-panel-button-hover-label-background: hsl(0, 0%, 92.1%);
|
|
|
--ck-style-panel-button-hover-border-color: hsl(0, 0%, 70%);
|
|
|
}
|
|
|
|
|
|
.ck.ck-style-panel .ck-style-grid {
|
|
|
row-gap: var(--ck-spacing-large);
|
|
|
column-gap: var(--ck-spacing-large);
|
|
|
|
|
|
& .ck-style-grid__button {
|
|
|
--ck-color-button-default-hover-background: var(--ck-color-base-background);
|
|
|
--ck-color-button-default-active-background: var(--ck-color-base-background);
|
|
|
|
|
|
padding: 0;
|
|
|
width: var(--ck-style-panel-button-width);
|
|
|
height: var(--ck-style-panel-button-height);
|
|
|
|
|
|
/* Let default .ck-button :focus styles apply */
|
|
|
&:not(:focus) {
|
|
|
border: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
|
|
|
& .ck-button__label {
|
|
|
height: 22px;
|
|
|
line-height: 22px;
|
|
|
width: 100%;
|
|
|
padding: 0 var(--ck-spacing-medium);
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
flex-shrink: 0;
|
|
|
}
|
|
|
|
|
|
& .ck-style-grid__button__preview {
|
|
|
width: 100%;
|
|
|
overflow: hidden;
|
|
|
opacity: .9;
|
|
|
|
|
|
padding: var(--ck-spacing-medium);
|
|
|
background: var(--ck-color-base-background);
|
|
|
border: 2px solid var(--ck-color-base-background);
|
|
|
}
|
|
|
|
|
|
&.ck-disabled {
|
|
|
--ck-color-button-default-disabled-background: var(--ck-color-base-foreground);
|
|
|
|
|
|
/* Let default .ck-button :focus styles apply */
|
|
|
&:not(:focus) {
|
|
|
border-color: var(--ck-style-panel-button-label-background);
|
|
|
}
|
|
|
|
|
|
& .ck-style-grid__button__preview {
|
|
|
opacity: .4;
|
|
|
|
|
|
border-color: var(--ck-color-base-foreground);
|
|
|
filter: saturate(.3);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-on {
|
|
|
border-color: var(--ck-color-base-active);
|
|
|
|
|
|
& .ck-button__label {
|
|
|
box-shadow: 0 -1px 0 var(--ck-color-base-active);
|
|
|
z-index: 1; /* Stay on top of the preview with the shadow. */
|
|
|
}
|
|
|
|
|
|
&:hover {
|
|
|
border-color: var(--ck-color-base-active-focus);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&:not(.ck-on) {
|
|
|
& .ck-button__label {
|
|
|
background: var(--ck-style-panel-button-label-background);
|
|
|
}
|
|
|
|
|
|
&:hover .ck-button__label {
|
|
|
background: var(--ck-style-panel-button-hover-label-background);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&:hover:not(.ck-disabled):not(.ck-on) {
|
|
|
border-color: var(--ck-style-panel-button-hover-border-color);
|
|
|
|
|
|
& .ck-style-grid__button__preview {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},5634:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-style-panel .ck-style-panel__style-group>.ck-label{margin:var(--ck-spacing-large) 0}.ck.ck-style-panel .ck-style-panel__style-group:first-child>.ck-label{margin-top:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-style/stylegroup.css"],names:[],mappings:"AAMC,0DACC,gCACD,CAGC,sEACC,YACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-style-panel .ck-style-panel__style-group {
|
|
|
& > .ck-label {
|
|
|
margin: var(--ck-spacing-large) 0;
|
|
|
}
|
|
|
|
|
|
&:first-child {
|
|
|
& > .ck-label {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},4637:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,":root{--ck-style-panel-max-height:470px}.ck.ck-style-panel{max-height:var(--ck-style-panel-max-height);overflow-y:auto;padding:var(--ck-spacing-large)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-style/stylepanel.css"],names:[],mappings:"AAKA,MACC,iCACD,CAEA,mBAGC,2CAA4C,CAD5C,eAAgB,CADhB,+BAGD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-style-panel-max-height: 470px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-style-panel {
|
|
|
padding: var(--ck-spacing-large);
|
|
|
overflow-y: auto;
|
|
|
max-height: var(--ck-style-panel-max-height);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},9953:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/colorinput.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,YAAa,CACb,0BAA2B,CAF3B,UAgCD,CA5BC,0CAEC,WAAY,CADZ,cAED,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFAEC,eAAgB,CADhB,iBAOD,CAJC,0IAEC,aAAc,CADd,iBAED,CC1BF,+CAGE,4BAA6B,CAD7B,yBAcF,CAhBA,+CAQE,2BAA4B,CAD5B,wBASF,CAHC,2CACC,SACD,CAIA,wEACC,SA0CD,CA3CA,kFAKE,2BAA4B,CAD5B,wBAuCF,CApCE,8FACC,iCACD,CATF,kFAcE,4BAA6B,CAD7B,yBA8BF,CA3BE,8FACC,kCACD,CAGD,oFACC,oDACD,CAEA,4GC1CF,eD2DE,CAjBA,+PCtCD,qCDuDC,CAjBA,4GAKC,6CAA8C,CAD9C,WAAY,CADZ,UAcD,CAVC,oKAKC,cAA6B,CAC7B,iBAAkB,CAHlB,WAAY,CADZ,QAAS,CADT,QAAS,CAMT,uBAAwB,CACxB,oBAAqB,CAJrB,QAKD,CAKH,oDAIC,2BAA4B,CAC5B,4BAA6B,CAH7B,qEAAwE,CADxE,UA0BD,CApBC,gEACC,oDACD,CATD,8DAYE,yBAeF,CA3BA,8DAgBE,wBAWF,CARC,gEACC,uCAMD,CAPA,0EAKE,sCAAuC,CADvC,cAGF",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-input-color {
|
|
|
width: 100%;
|
|
|
display: flex;
|
|
|
flex-direction: row-reverse;
|
|
|
|
|
|
& > input.ck.ck-input-text {
|
|
|
min-width: auto;
|
|
|
flex-grow: 1;
|
|
|
}
|
|
|
|
|
|
& > div.ck.ck-dropdown {
|
|
|
min-width: auto;
|
|
|
|
|
|
/* This dropdown has no arrow but a color preview instead. */
|
|
|
& > .ck-input-color__button .ck-dropdown__arrow {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck.ck-input-color__button {
|
|
|
/* Resolving issue with misaligned buttons on Safari (see #10589) */
|
|
|
display: flex;
|
|
|
|
|
|
& .ck.ck-input-color__button__preview {
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
|
|
|
& > .ck.ck-input-color__button__preview__no-color-indicator {
|
|
|
position: absolute;
|
|
|
display: block;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
@import "../mixins/_rounded.css";
|
|
|
|
|
|
.ck.ck-input-color {
|
|
|
& > .ck.ck-input-text {
|
|
|
@mixin ck-dir ltr {
|
|
|
border-top-right-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
border-top-left-radius: 0;
|
|
|
border-bottom-left-radius: 0;
|
|
|
}
|
|
|
|
|
|
/* Make sure the focused input is always on top of the dropdown button so its
|
|
|
outline and border are never cropped (also when the input is read-only). */
|
|
|
&:focus {
|
|
|
z-index: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck.ck-dropdown {
|
|
|
& > .ck.ck-button.ck-input-color__button {
|
|
|
padding: 0;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
border-top-left-radius: 0;
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
|
|
&:not(:focus) {
|
|
|
border-left: 1px solid transparent;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
border-top-right-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
|
|
&:not(:focus) {
|
|
|
border-right: 1px solid transparent;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-disabled {
|
|
|
background: var(--ck-color-input-disabled-background);
|
|
|
}
|
|
|
|
|
|
& > .ck.ck-input-color__button__preview {
|
|
|
@mixin ck-rounded-corners;
|
|
|
|
|
|
width: 20px;
|
|
|
height: 20px;
|
|
|
border: 1px solid var(--ck-color-input-border);
|
|
|
|
|
|
& > .ck.ck-input-color__button__preview__no-color-indicator {
|
|
|
top: -30%;
|
|
|
left: 50%;
|
|
|
height: 150%;
|
|
|
width: 8%;
|
|
|
background: hsl(0, 100%, 50%);
|
|
|
border-radius: 2px;
|
|
|
transform: rotate(45deg);
|
|
|
transform-origin: 50%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck.ck-input-color__remove-color {
|
|
|
width: 100%;
|
|
|
padding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);
|
|
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
|
|
&:not(:focus) {
|
|
|
border-bottom: 1px solid var(--ck-color-input-border);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
border-top-right-radius: 0;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
border-top-left-radius: 0;
|
|
|
}
|
|
|
|
|
|
& .ck.ck-icon {
|
|
|
margin-right: var(--ck-spacing-standard);
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
margin-right: 0;
|
|
|
margin-left: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},7502:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/form.css"],names:[],mappings:"AAKA,YACC,mCAyBD,CAvBC,kBAEC,YACD,CAEA,8BACC,cAAe,CACf,OACD,CAEA,4BACC,cAWD,CARE,6DACC,4CACD,CAEA,mEACC,UACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-form {
|
|
|
padding: 0 0 var(--ck-spacing-large);
|
|
|
|
|
|
&:focus {
|
|
|
/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
& .ck.ck-input-text {
|
|
|
min-width: 100%;
|
|
|
width: 0;
|
|
|
}
|
|
|
|
|
|
& .ck.ck-dropdown {
|
|
|
min-width: 100%;
|
|
|
|
|
|
& .ck-dropdown__button {
|
|
|
&:not(:focus) {
|
|
|
border: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
|
|
|
& .ck-button__label {
|
|
|
width: 100%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},6908:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/formrow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/formrow.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD,CCbF,iBACC,4DA2BD,CAvBE,6CAEE,mCAMF,CARA,6CAME,oCAEF,CAGD,2BAEC,cAAe,CADf,UAED,CAEA,2CACC,kCAKD,CAHC,wEACC,0BACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-form__row {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
flex-wrap: nowrap;
|
|
|
justify-content: space-between;
|
|
|
|
|
|
/* Ignore labels that work as fieldset legends */
|
|
|
& > *:not(.ck-label) {
|
|
|
flex-grow: 1;
|
|
|
}
|
|
|
|
|
|
&.ck-table-form__action-row {
|
|
|
& .ck-button-save,
|
|
|
& .ck-button-cancel {
|
|
|
justify-content: center;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
.ck.ck-form__row {
|
|
|
padding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;
|
|
|
|
|
|
/* Ignore labels that work as fieldset legends */
|
|
|
& > *:not(.ck-label) {
|
|
|
& + * {
|
|
|
@mixin ck-dir ltr {
|
|
|
margin-left: var(--ck-spacing-large);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
margin-right: var(--ck-spacing-large);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck-label {
|
|
|
width: 100%;
|
|
|
min-width: 100%;
|
|
|
}
|
|
|
|
|
|
&.ck-table-form__action-row {
|
|
|
margin-top: var(--ck-spacing-large);
|
|
|
|
|
|
& .ck-button .ck-button__label {
|
|
|
color: var(--ck-color-text);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},468:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/inserttable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAUD,CARC,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck .ck-insert-table-dropdown__grid {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
flex-wrap: wrap;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
: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 {
|
|
|
/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */
|
|
|
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);
|
|
|
padding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;
|
|
|
}
|
|
|
|
|
|
.ck .ck-insert-table-dropdown__label,
|
|
|
.ck[dir=rtl] .ck-insert-table-dropdown__label {
|
|
|
text-align: center;
|
|
|
}
|
|
|
|
|
|
.ck .ck-insert-table-dropdown-grid-box {
|
|
|
min-width: var(--ck-insert-table-dropdown-box-width);
|
|
|
min-height: var(--ck-insert-table-dropdown-box-height);
|
|
|
margin: var(--ck-insert-table-dropdown-box-margin);
|
|
|
border: 1px solid var(--ck-color-base-border);
|
|
|
border-radius: 1px;
|
|
|
outline: none;
|
|
|
transition: none;
|
|
|
|
|
|
&:focus {
|
|
|
box-shadow: none;
|
|
|
}
|
|
|
|
|
|
&.ck-on {
|
|
|
border-color: var(--ck-color-focus-border);
|
|
|
background: var(--ck-color-focus-outer-shadow);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
`],sourceRoot:""}]);const f=g},2510:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck-content .table {
|
|
|
/* Give the table widget some air and center it horizontally */
|
|
|
/* The first value should be equal to --ck-spacing-large variable if used in the editor context
|
|
|
to avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */
|
|
|
margin: 0.9em auto;
|
|
|
display: table;
|
|
|
|
|
|
& table {
|
|
|
/* The table cells should have slight borders */
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
|
|
|
/* Table width and height are set on the parent <figure>. Make sure the table inside stretches
|
|
|
to the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
|
|
|
/* The outer border of the table should be slightly darker than the inner lines.
|
|
|
Also see https://github.com/ckeditor/ckeditor5-table/issues/50. */
|
|
|
border: 1px double hsl(0, 0%, 70%);
|
|
|
|
|
|
& td,
|
|
|
& th {
|
|
|
min-width: 2em;
|
|
|
padding: .4em;
|
|
|
|
|
|
/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it's not necessary here.
|
|
|
However, the border is a content style, so it should use .ck-content (so it works outside the editor).
|
|
|
Hence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */
|
|
|
border: 1px solid hsl(0, 0%, 75%);
|
|
|
}
|
|
|
|
|
|
& th {
|
|
|
font-weight: bold;
|
|
|
background: hsla(0, 0%, 0%, 5%);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Text alignment of the table header should match the editor settings and override the native browser styling,
|
|
|
when content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */
|
|
|
.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 {
|
|
|
/*
|
|
|
* Use display:inline-block to force Chrome/Safari to limit text mutations to this element.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/6062.
|
|
|
*/
|
|
|
display: inline-block;
|
|
|
|
|
|
/*
|
|
|
* Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/9117.
|
|
|
*/
|
|
|
width: 100%;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},1111:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,":root{--ck-color-selector-caption-background:#f7f7f7;--ck-color-selector-caption-text:#333;--ck-color-selector-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-selector-caption-background);caption-side:top;color:var(--ck-color-selector-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-selector-caption-highlighted-background)}to{background-color:var(--ck-color-selector-caption-background)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tablecaption.css"],names:[],mappings:"AAKA,MACC,8CAAuD,CACvD,qCAAiD,CACjD,uDACD,CAGA,8BAMC,4DAA6D,CAJ7D,gBAAiB,CAGjB,2CAA4C,CAJ5C,qBAAsB,CAOtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,iBAAkB,CADlB,qBAOD,CAIC,qEACC,iDACD,CAEA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,wEACD,CAEA,GACC,4DACD,CACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-color-selector-caption-background: hsl(0, 0%, 97%);
|
|
|
--ck-color-selector-caption-text: hsl(0, 0%, 20%);
|
|
|
--ck-color-selector-caption-highlighted-background: hsl(52deg 100% 50%);
|
|
|
}
|
|
|
|
|
|
/* Content styles */
|
|
|
.ck-content .table > figcaption {
|
|
|
display: table-caption;
|
|
|
caption-side: top;
|
|
|
word-break: break-word;
|
|
|
text-align: center;
|
|
|
color: var(--ck-color-selector-caption-text);
|
|
|
background-color: var(--ck-color-selector-caption-background);
|
|
|
padding: .6em;
|
|
|
font-size: .75em;
|
|
|
outline-offset: -1px;
|
|
|
}
|
|
|
|
|
|
/* Editing styles */
|
|
|
.ck.ck-editor__editable .table > figcaption {
|
|
|
&.table__caption_highlighted {
|
|
|
animation: ck-table-caption-highlight .6s ease-out;
|
|
|
}
|
|
|
|
|
|
&.ck-placeholder::before {
|
|
|
padding-left: inherit;
|
|
|
padding-right: inherit;
|
|
|
|
|
|
/*
|
|
|
* Make sure the table caption placeholder doesn't overflow the placeholder area.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/9162.
|
|
|
*/
|
|
|
white-space: nowrap;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes ck-table-caption-highlight {
|
|
|
0% {
|
|
|
background-color: var(--ck-color-selector-caption-highlighted-background);
|
|
|
}
|
|
|
|
|
|
100% {
|
|
|
background-color: var(--ck-color-selector-caption-background);
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},3964:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tablecellproperties.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tablecellproperties.css"],names:[],mappings:"AAOE,6FACC,cAiBD,CAdE,0HAEC,cACD,CAEA,yHAEC,cACD,CAEA,uHACC,WACD,CClBJ,kCACC,WAkBD,CAfE,2FACC,mBAAoB,CACpB,SAAU,CACV,SACD,CAGC,4GACC,eAAgB,CAGhB,qCACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-table-cell-properties-form {
|
|
|
& .ck-form__row {
|
|
|
&.ck-table-cell-properties-form__alignment-row {
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
& .ck.ck-toolbar {
|
|
|
&:first-of-type {
|
|
|
/* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */
|
|
|
flex-grow: 0.57;
|
|
|
}
|
|
|
|
|
|
&:last-of-type {
|
|
|
/* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */
|
|
|
flex-grow: 0.43;
|
|
|
}
|
|
|
|
|
|
& .ck-button {
|
|
|
flex-grow: 1;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-table-cell-properties-form {
|
|
|
width: 320px;
|
|
|
|
|
|
& .ck-form__row {
|
|
|
&.ck-table-cell-properties-form__padding-row {
|
|
|
align-self: flex-end;
|
|
|
padding: 0;
|
|
|
width: 25%;
|
|
|
}
|
|
|
|
|
|
&.ck-table-cell-properties-form__alignment-row {
|
|
|
& .ck.ck-toolbar {
|
|
|
background: none;
|
|
|
|
|
|
/* Compensate for missing input label that would push the margin (toolbar has no inputs). */
|
|
|
margin-top: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},7176:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,":root{--ck-color-selector-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width)*-0.5 - 0.5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table table{overflow:hidden}.ck-content .table td,.ck-content .table th{overflow-wrap:break-word;position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{bottom:0;cursor:col-resize;position:absolute;right:var(--ck-table-column-resizer-position-offset);top:0;user-select:none;width:var(--ck-table-column-resizer-width);z-index:var(--ck-z-default)}.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer,.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-selector-column-resizer-hover);bottom:-999999px;opacity:.25;top:-999999px}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tablecolumnresize.css"],names:[],mappings:"AAKA,MACC,oEAAqE,CACrE,mCAAoC,CAIpC,iGACD,CAEA,qCACC,kBACD,CAEA,yBACC,eACD,CAEA,4CAIC,wBAAyB,CACzB,iBACD,CAEA,wDAGC,QAAS,CAGT,iBAAkB,CALlB,iBAAkB,CAGlB,oDAAqD,CAFrD,KAAM,CAKN,gBAAiB,CAFjB,0CAA2C,CAG3C,2BACD,CAQA,qJACC,YACD,CAEA,8HAEC,8DAA+D,CAO/D,gBAAiB,CANjB,WAAa,CAKb,aAED,CAEA,iEACC,mDAAoD,CACpD,WACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-color-selector-column-resizer-hover: var(--ck-color-base-active);
|
|
|
--ck-table-column-resizer-width: 7px;
|
|
|
|
|
|
/* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border.
|
|
|
The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */
|
|
|
--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 {
|
|
|
/* To prevent text overflowing beyond its cell when columns are resized by resize handler
|
|
|
(https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */
|
|
|
overflow-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable .table .ck-table-column-resizer {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
bottom: 0;
|
|
|
right: var(--ck-table-column-resizer-position-offset);
|
|
|
width: var(--ck-table-column-resizer-width);
|
|
|
cursor: col-resize;
|
|
|
user-select: none;
|
|
|
z-index: var(--ck-z-default);
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
/* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again,
|
|
|
all resizers must be hidden while the table is dragged. */
|
|
|
.ck.ck-editor__editable .table[draggable] .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);
|
|
|
opacity: 0.25;
|
|
|
/* 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,
|
|
|
it is extended to an extremely high height. Even for screens with a very high pixel density, the resizer will fulfill its role as
|
|
|
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
|
|
|
unrealistic height for a single table. */
|
|
|
top: -999999px;
|
|
|
bottom: -999999px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer {
|
|
|
left: var(--ck-table-column-resizer-position-offset);
|
|
|
right: unset;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},8361:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,":root{--ck-color-selector-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-selector-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,gEACD,CAKE,8QAGC,2DAA4D,CAK5D,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-color-selector-focused-cell-background: hsla(212, 90%, 80%, .3);
|
|
|
}
|
|
|
|
|
|
.ck-widget.table {
|
|
|
& td,
|
|
|
& th {
|
|
|
&.ck-editor__nested-editable.ck-editor__nested-editable_focused,
|
|
|
&.ck-editor__nested-editable:focus {
|
|
|
/* A very slight background to highlight the focused cell */
|
|
|
background: var(--ck-color-selector-focused-cell-background);
|
|
|
|
|
|
/* Fixes the problem where surrounding cells cover the focused cell's border.
|
|
|
It does not fix the problem in all places but the UX is improved.
|
|
|
See https://github.com/ckeditor/ckeditor5-table/issues/29. */
|
|
|
border-style: none;
|
|
|
outline: 1px solid var(--ck-color-focus-border);
|
|
|
outline-offset: -1px; /* progressive enhancement - no IE support */
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},9429:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tableform.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableform.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAWE,wHACC,cACD,CAEA,8DAEC,kBAAmB,CADnB,cAgBD,CAbC,qFAGC,kBAAmB,CAFnB,YAAa,CACb,6BAMD,CAEA,sMACC,WACD,CAIF,4CAEC,iBAoBD,CAlBC,8EAGC,2DAAgE,CADhE,QAAS,CADT,iBAAkB,CAGlB,8BAA+B,CAG/B,SAUD,CAPC,oFACC,UAAW,CAGX,QAAS,CAFT,iBAAkB,CAClB,wDAA6D,CAE7D,0BACD,CChDH,MACC,0CAA2C,CAC3C,2CACD,CAMI,2FACC,kCAAmC,CACnC,iBACD,CAGD,8KAIC,cAAe,CADf,cAAe,CADf,UAGD,CAGD,8DACC,SAcD,CAZC,yMAEC,QACD,CAEA,iGACC,mBAAoB,CACpB,oBAAqB,CACrB,wCAAyC,CACzC,6CAA8C,CAC9C,gCACD,CAIF,4CACC,sCAyBD,CAvBC,8ECxCD,eDyDC,CAjBA,mMCpCA,qCDqDA,CAjBA,8EAGC,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAUD,CAPC,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAdD,8EAgBC,iEACD,CAGA,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-table-form {
|
|
|
& .ck-form__row {
|
|
|
&.ck-table-form__border-row {
|
|
|
flex-wrap: wrap;
|
|
|
}
|
|
|
|
|
|
&.ck-table-form__background-row {
|
|
|
flex-wrap: wrap;
|
|
|
}
|
|
|
|
|
|
&.ck-table-form__dimensions-row {
|
|
|
flex-wrap: wrap;
|
|
|
align-items: center;
|
|
|
|
|
|
& .ck-labeled-field-view {
|
|
|
display: flex;
|
|
|
flex-direction: column-reverse;
|
|
|
align-items: center;
|
|
|
|
|
|
& .ck.ck-dropdown {
|
|
|
flex-grow: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-table-form__dimension-operator {
|
|
|
flex-grow: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck.ck-labeled-field-view {
|
|
|
/* Allow absolute positioning of the status (error) balloons. */
|
|
|
position: relative;
|
|
|
|
|
|
& .ck.ck-labeled-field-view__status {
|
|
|
position: absolute;
|
|
|
left: 50%;
|
|
|
bottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );
|
|
|
transform: translate(-50%,100%);
|
|
|
|
|
|
/* Make sure the balloon status stays on top of other form elements. */
|
|
|
z-index: 1;
|
|
|
|
|
|
/* The arrow pointing towards the field. */
|
|
|
&::after {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
top: calc( -1 * var(--ck-table-properties-error-arrow-size) );
|
|
|
left: 50%;
|
|
|
transform: translateX( -50% );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../mixins/_rounded.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-table-properties-error-arrow-size: 6px;
|
|
|
--ck-table-properties-min-error-width: 150px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-table-form {
|
|
|
& .ck-form__row {
|
|
|
&.ck-table-form__border-row {
|
|
|
& .ck-labeled-field-view {
|
|
|
& > .ck-label {
|
|
|
font-size: var(--ck-font-size-tiny);
|
|
|
text-align: center;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-table-form__border-style,
|
|
|
& .ck-table-form__border-width {
|
|
|
width: 80px;
|
|
|
min-width: 80px;
|
|
|
max-width: 80px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-table-form__dimensions-row {
|
|
|
padding: 0;
|
|
|
|
|
|
& .ck-table-form__dimensions-row__width,
|
|
|
& .ck-table-form__dimensions-row__height {
|
|
|
margin: 0
|
|
|
}
|
|
|
|
|
|
& .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-labeled-field-view {
|
|
|
padding-top: var(--ck-spacing-standard);
|
|
|
|
|
|
& .ck.ck-labeled-field-view__status {
|
|
|
@mixin ck-rounded-corners;
|
|
|
|
|
|
background: var(--ck-color-base-error);
|
|
|
color: var(--ck-color-base-background);
|
|
|
padding: var(--ck-spacing-small) var(--ck-spacing-medium);
|
|
|
min-width: var(--ck-table-properties-min-error-width);
|
|
|
text-align: center;
|
|
|
|
|
|
/* The arrow pointing towards the field. */
|
|
|
&::after {
|
|
|
border-color: transparent transparent var(--ck-color-base-error) transparent;
|
|
|
border-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);
|
|
|
border-style: solid;
|
|
|
}
|
|
|
|
|
|
animation: ck-table-form-labeled-view-status-appear .15s ease both;
|
|
|
}
|
|
|
|
|
|
/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */
|
|
|
& .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;
|
|
|
}
|
|
|
|
|
|
100% {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},6596:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tableproperties.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableproperties.css"],names:[],mappings:"AAOE,mFAGC,sBAAuB,CADvB,YAAa,CADb,cAOD,CAHC,qHACC,gBACD,CCTH,6BACC,WAmBD,CAhBE,mFACC,mBAAoB,CACpB,SAYD,CAVC,kGACC,eAAgB,CAGhB,qCAKD,CAHC,uHACC,UACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-table-properties-form {
|
|
|
& .ck-form__row {
|
|
|
&.ck-table-properties-form__alignment-row {
|
|
|
flex-wrap: wrap;
|
|
|
flex-basis: 0;
|
|
|
align-content: baseline;
|
|
|
|
|
|
& .ck.ck-toolbar .ck-toolbar__items {
|
|
|
flex-wrap: nowrap;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-table-properties-form {
|
|
|
width: 320px;
|
|
|
|
|
|
& .ck-form__row {
|
|
|
&.ck-table-properties-form__alignment-row {
|
|
|
align-self: flex-end;
|
|
|
padding: 0;
|
|
|
|
|
|
& .ck.ck-toolbar {
|
|
|
background: none;
|
|
|
|
|
|
/* Compensate for missing input label that would push the margin (toolbar has no inputs). */
|
|
|
margin-top: var(--ck-spacing-standard);
|
|
|
|
|
|
& .ck-toolbar__items > * {
|
|
|
width: 40px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},1546:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable .table table {
|
|
|
& td.ck-editor__editable_selected,
|
|
|
& th.ck-editor__editable_selected {
|
|
|
position: relative;
|
|
|
caret-color: transparent;
|
|
|
outline: unset;
|
|
|
box-shadow: unset;
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5/issues/6446 */
|
|
|
&:after {
|
|
|
content: '';
|
|
|
pointer-events: none;
|
|
|
background-color: var(--ck-table-selected-cell-background);
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
bottom: 0;
|
|
|
}
|
|
|
|
|
|
& ::selection,
|
|
|
&:focus {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/9491.
|
|
|
*/
|
|
|
& .ck-widget {
|
|
|
outline: unset;
|
|
|
|
|
|
& > .ck-widget__selection-handle {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},3290:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-aria-live-announcer{left:-10000px;position:absolute;top:-10000px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/arialiveannouncer/arialiveannouncer.css"],names:[],mappings:"AAKA,2BAEC,aAAc,CADd,iBAAkB,CAElB,YACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-aria-live-announcer {
|
|
|
position: absolute;
|
|
|
left: -10000px;
|
|
|
top: -10000px;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},4029:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-autocomplete{position:relative}.ck.ck-autocomplete>.ck-search__results{position:absolute;z-index:var(--ck-z-modal)}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{bottom:100%}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{bottom:auto;top:100%}.ck.ck-autocomplete>.ck-search__results{border-radius:0}.ck-rounded-corners .ck.ck-autocomplete>.ck-search__results,.ck.ck-autocomplete>.ck-search__results.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-autocomplete>.ck-search__results{background:var(--ck-color-base-background);border:1px solid var(--ck-color-dropdown-panel-border);box-shadow:var(--ck-drop-shadow),0 0;max-height:200px;min-width:auto;overflow-y:auto}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:-1px}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/autocomplete/autocomplete.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/autocomplete/autocomplete.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,oBACC,iBAeD,CAbC,wCACC,iBAAkB,CAClB,yBAUD,CARC,6DACC,WACD,CAEA,6DAEC,WAAY,CADZ,QAED,CCVD,wCCEA,eDuBA,CAzBA,uHCMC,qCDmBD,CAzBA,wCAMC,0CAA2C,CAC3C,sDAAuD,CEPxD,oCAA8B,CFI7B,gBAAiB,CAIjB,cAAe,CAHf,eAoBD,CAfC,6DACC,2BAA4B,CAC5B,4BAA6B,CAG7B,kBACD,CAEA,6DACC,wBAAyB,CACzB,yBAA0B,CAG1B,eACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-autocomplete {
|
|
|
position: relative;
|
|
|
|
|
|
& > .ck-search__results {
|
|
|
position: absolute;
|
|
|
z-index: var(--ck-z-modal);
|
|
|
|
|
|
&.ck-search__results_n {
|
|
|
bottom: 100%;
|
|
|
}
|
|
|
|
|
|
&.ck-search__results_s {
|
|
|
top: 100%;
|
|
|
bottom: auto;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";
|
|
|
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";
|
|
|
|
|
|
.ck.ck-autocomplete {
|
|
|
& > .ck-search__results {
|
|
|
@mixin ck-rounded-corners;
|
|
|
@mixin ck-drop-shadow;
|
|
|
|
|
|
max-height: 200px;
|
|
|
overflow-y: auto;
|
|
|
background: var(--ck-color-base-background);
|
|
|
border: 1px solid var(--ck-color-dropdown-panel-border);
|
|
|
min-width: auto;
|
|
|
|
|
|
&.ck-search__results_n {
|
|
|
border-bottom-left-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
|
|
/* Prevent duplicated borders between the input and the results pane. */
|
|
|
margin-bottom: -1px;
|
|
|
}
|
|
|
|
|
|
&.ck-search__results_s {
|
|
|
border-top-left-radius: 0;
|
|
|
border-top-right-radius: 0;
|
|
|
|
|
|
/* Prevent duplicated borders between the input and the results pane. */
|
|
|
margin-top: -1px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},4971:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}[dir=ltr] .ck.ck-button,[dir=ltr] a.ck.ck-button{justify-content:left}[dir=rtl] .ck.ck-button,[dir=rtl] a.ck.ck-button{justify-content:right}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/button/button.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAQA,6BAMC,kBAAmB,CADnB,mBAAoB,CADpB,iBAAkB,CCHlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD0BD,CA9BA,iDASE,oBAqBF,CA9BA,iDAaE,qBAiBF,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEzBD,6BCAC,oDD4ID,CCzIE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eF6ID,CA5IA,wIEGE,qCFyIF,CA5IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAuID,CA7GC,oFGhCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHqCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAOA,gLKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDmIA,CChIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDgHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC/IC,mDDoJD,CCjJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDgID,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../mixins/_unselectable.css";
|
|
|
@import "../../mixins/_dir.css";
|
|
|
|
|
|
.ck.ck-button,
|
|
|
a.ck.ck-button {
|
|
|
@mixin ck-unselectable;
|
|
|
|
|
|
position: relative;
|
|
|
display: inline-flex;
|
|
|
align-items: center;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
justify-content: left;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
justify-content: right;
|
|
|
}
|
|
|
|
|
|
& .ck-button__label {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
&.ck-button_with-text {
|
|
|
& .ck-button__label {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Center the icon horizontally in a button without text. */
|
|
|
&:not(.ck-button_with-text) {
|
|
|
justify-content: center;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Makes element unselectable.
|
|
|
*/
|
|
|
@define-mixin ck-unselectable {
|
|
|
-moz-user-select: none;
|
|
|
-webkit-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_focus.css";
|
|
|
@import "../../../mixins/_shadow.css";
|
|
|
@import "../../../mixins/_disabled.css";
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
@import "../../mixins/_button.css";
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
.ck.ck-button,
|
|
|
a.ck.ck-button {
|
|
|
@mixin ck-button-colors --ck-color-button-default;
|
|
|
@mixin ck-rounded-corners;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
cursor: default;
|
|
|
vertical-align: middle;
|
|
|
padding: var(--ck-spacing-tiny);
|
|
|
text-align: center;
|
|
|
|
|
|
/* A very important piece of styling. Go to variable declaration to learn more. */
|
|
|
min-width: var(--ck-ui-component-min-height);
|
|
|
min-height: var(--ck-ui-component-min-height);
|
|
|
|
|
|
/* Normalize the height of the line. Removing this will break consistent height
|
|
|
among text and text-less buttons (with icons). */
|
|
|
line-height: 1;
|
|
|
|
|
|
/* Enable font size inheritance, which allows fluid UI scaling. */
|
|
|
font-size: inherit;
|
|
|
|
|
|
/* Avoid flickering when the foucs border shows up. */
|
|
|
border: 1px solid transparent;
|
|
|
|
|
|
/* Apply some smooth transition to the box-shadow and border. */
|
|
|
transition: box-shadow .2s ease-in-out, border .2s ease-in-out;
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */
|
|
|
-webkit-appearance: none;
|
|
|
|
|
|
&:active,
|
|
|
&:focus {
|
|
|
@mixin ck-focus-ring;
|
|
|
@mixin ck-box-shadow var(--ck-focus-outer-shadow);
|
|
|
}
|
|
|
|
|
|
/* Allow icon coloring using the text "color" property. */
|
|
|
& .ck-button__icon {
|
|
|
& use,
|
|
|
& use * {
|
|
|
color: inherit;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-button__label {
|
|
|
/* Enable font size inheritance, which allows fluid UI scaling. */
|
|
|
font-size: inherit;
|
|
|
font-weight: inherit;
|
|
|
color: inherit;
|
|
|
cursor: inherit;
|
|
|
|
|
|
/* Must be consistent with .ck-icon's vertical align. Otherwise, buttons with and
|
|
|
without labels (but with icons) have different sizes in Chrome */
|
|
|
vertical-align: middle;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
text-align: left;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
text-align: right;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-button__keystroke {
|
|
|
color: inherit;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
margin-left: var(--ck-spacing-large);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
margin-right: var(--ck-spacing-large);
|
|
|
}
|
|
|
|
|
|
font-weight: bold;
|
|
|
opacity: .7;
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */
|
|
|
&.ck-disabled {
|
|
|
&:active,
|
|
|
&:focus {
|
|
|
/* The disabled button should have a slightly less visible shadow when focused. */
|
|
|
@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);
|
|
|
}
|
|
|
|
|
|
& .ck-button__icon {
|
|
|
@mixin ck-disabled;
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */
|
|
|
& .ck-button__label {
|
|
|
@mixin ck-disabled;
|
|
|
}
|
|
|
|
|
|
& .ck-button__keystroke {
|
|
|
opacity: .3;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-button_with-text {
|
|
|
padding: var(--ck-spacing-tiny) var(--ck-spacing-standard);
|
|
|
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
|
|
& .ck-button__icon {
|
|
|
@mixin ck-dir ltr {
|
|
|
margin-left: calc(-1 * var(--ck-spacing-small));
|
|
|
margin-right: var(--ck-spacing-small);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
margin-right: calc(-1 * var(--ck-spacing-small));
|
|
|
margin-left: var(--ck-spacing-small);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-button_with-keystroke {
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
|
|
& .ck-button__label {
|
|
|
flex-grow: 1;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* A style of the button which is currently on, e.g. its feature is active. */
|
|
|
&.ck-on {
|
|
|
@mixin ck-button-colors --ck-color-button-on;
|
|
|
|
|
|
color: var(--ck-color-button-on-color);
|
|
|
}
|
|
|
|
|
|
&.ck-button-save {
|
|
|
color: var(--ck-color-button-save);
|
|
|
}
|
|
|
|
|
|
&.ck-button-cancel {
|
|
|
color: var(--ck-color-button-cancel);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* A style of the button which handles the primary action. */
|
|
|
.ck.ck-button-action,
|
|
|
a.ck.ck-button-action {
|
|
|
@mixin ck-button-colors --ck-color-button-action;
|
|
|
|
|
|
color: var(--ck-color-button-action-text);
|
|
|
}
|
|
|
|
|
|
.ck.ck-button-bold,
|
|
|
a.ck.ck-button-bold {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements a button of given background color.
|
|
|
*
|
|
|
* @param {String} $background - Background color of the button.
|
|
|
* @param {String} $border - Border color of the button.
|
|
|
*/
|
|
|
@define-mixin ck-button-colors $prefix {
|
|
|
background: var($(prefix)-background);
|
|
|
|
|
|
&:not(.ck-disabled) {
|
|
|
&:hover {
|
|
|
background: var($(prefix)-hover-background);
|
|
|
}
|
|
|
|
|
|
&:active {
|
|
|
background: var($(prefix)-active-background);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */
|
|
|
&.ck-disabled {
|
|
|
background: var($(prefix)-disabled-background);
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A visual style of focused element's border.
|
|
|
*/
|
|
|
@define-mixin ck-focus-ring {
|
|
|
/* Disable native outline. */
|
|
|
outline: none;
|
|
|
border: var(--ck-focus-ring)
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A class which indicates that an element holding it is disabled.
|
|
|
*/
|
|
|
@define-mixin ck-disabled {
|
|
|
opacity: var(--ck-disabled-opacity);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},7258:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eD4EA,CAxCA,yIChCC,qCDwED,CAxCA,2DAKE,gBAmCF,CAxCA,2DAUE,iBA8BF,CAxCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CAuBD,CApBC,2ECxDD,eDmEC,CAXA,6LCpDA,qCAAsC,CDsDpC,8CASF,CAXA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEhFA,kCFkFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-button.ck-switchbutton {
|
|
|
& .ck-button__toggle {
|
|
|
display: block;
|
|
|
|
|
|
& .ck-button__toggle__inner {
|
|
|
display: block;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
@import "../../../mixins/_disabled.css";
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature
|
|
|
of the component, floating–point numbers have been used which, for the default font size
|
|
|
(see: --ck-font-size-base), will generate simple integers. */
|
|
|
:root {
|
|
|
/* 34px at 13px font-size */
|
|
|
--ck-switch-button-toggle-width: 2.6153846154em;
|
|
|
/* 14px at 13px font-size */
|
|
|
--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);
|
|
|
--ck-switch-button-translation: calc(
|
|
|
var(--ck-switch-button-toggle-width) -
|
|
|
var(--ck-switch-button-toggle-inner-size) -
|
|
|
2px /* Border */
|
|
|
);
|
|
|
--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);
|
|
|
}
|
|
|
|
|
|
.ck.ck-button.ck-switchbutton {
|
|
|
/* Unlike a regular button, the switch button text color and background should never change.
|
|
|
* Changing toggle switch (background, outline) is enough to carry the information about the
|
|
|
* state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)
|
|
|
*/
|
|
|
&, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {
|
|
|
color: inherit;
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
& .ck-button__label {
|
|
|
@mixin ck-dir ltr {
|
|
|
/* Separate the label from the switch */
|
|
|
margin-right: calc(2 * var(--ck-spacing-large));
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
/* Separate the label from the switch */
|
|
|
margin-left: calc(2 * var(--ck-spacing-large));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-button__toggle {
|
|
|
@mixin ck-rounded-corners;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
/* Make sure the toggle is always to the right as far as possible. */
|
|
|
margin-left: auto;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
/* Make sure the toggle is always to the left as far as possible. */
|
|
|
margin-right: auto;
|
|
|
}
|
|
|
|
|
|
/* Apply some smooth transition to the box-shadow and border. */
|
|
|
/* Gently animate the background color of the toggle switch */
|
|
|
transition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;
|
|
|
border: 1px solid transparent;
|
|
|
width: var(--ck-switch-button-toggle-width);
|
|
|
background: var(--ck-color-switch-button-off-background);
|
|
|
|
|
|
& .ck-button__toggle__inner {
|
|
|
@mixin ck-rounded-corners {
|
|
|
border-radius: calc(.5 * var(--ck-border-radius));
|
|
|
}
|
|
|
|
|
|
width: var(--ck-switch-button-toggle-inner-size);
|
|
|
height: var(--ck-switch-button-toggle-inner-size);
|
|
|
background: var(--ck-color-switch-button-inner-background);
|
|
|
|
|
|
/* Gently animate the inner part of the toggle switch */
|
|
|
transition: all 300ms ease;
|
|
|
}
|
|
|
|
|
|
&:hover {
|
|
|
background: var(--ck-color-switch-button-off-hover-background);
|
|
|
|
|
|
& .ck-button__toggle__inner {
|
|
|
box-shadow: var(--ck-switch-button-inner-hover-shadow);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-disabled .ck-button__toggle {
|
|
|
@mixin ck-disabled;
|
|
|
}
|
|
|
|
|
|
/* Overriding default .ck-button:focus styles + an outline around the toogle */
|
|
|
&:focus {
|
|
|
border-color: transparent;
|
|
|
outline: none;
|
|
|
box-shadow: none;
|
|
|
|
|
|
& .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-offset: 1px;
|
|
|
outline: var(--ck-focus-ring);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
|
|
&.ck-on {
|
|
|
& .ck-button__toggle {
|
|
|
background: var(--ck-color-switch-button-on-background);
|
|
|
|
|
|
&:hover {
|
|
|
background: var(--ck-color-switch-button-on-hover-background);
|
|
|
}
|
|
|
|
|
|
& .ck-button__toggle__inner {
|
|
|
/*
|
|
|
* Move the toggle switch to the right. It will be animated.
|
|
|
*/
|
|
|
@mixin ck-dir ltr {
|
|
|
transform: translateX( var( --ck-switch-button-translation ) );
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
transform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A class which indicates that an element holding it is disabled.
|
|
|
*/
|
|
|
@define-mixin ck-disabled {
|
|
|
opacity: var(--ck-disabled-opacity);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},4095:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;color:inherit;font-weight:700;padding:var(--ck-list-button-padding);width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/collapsible/collapsible.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/collapsible/collapsible.css"],names:[],mappings:"AAMC,sEACC,YACD,CCHD,MACC,yDACD,CAGC,iCAIC,eAAgB,CAChB,aAAc,CAHd,eAAiB,CACjB,qCAAsC,CAFtC,UAoBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,gFACD,CAGC,mEACC,wBACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-collapsible.ck-collapsible_collapsed {
|
|
|
& > .ck-collapsible__children {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));
|
|
|
}
|
|
|
|
|
|
.ck.ck-collapsible {
|
|
|
& > .ck.ck-button {
|
|
|
width: 100%;
|
|
|
font-weight: bold;
|
|
|
padding: var(--ck-list-button-padding);
|
|
|
border-radius: 0;
|
|
|
color: inherit;
|
|
|
|
|
|
&:focus {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
&:active, &:not(:focus), &:hover:not(:focus) {
|
|
|
background: transparent;
|
|
|
border-color: transparent;
|
|
|
box-shadow: none;
|
|
|
}
|
|
|
|
|
|
& > .ck-icon {
|
|
|
margin-right: var(--ck-spacing-medium);
|
|
|
width: var(--ck-collapsible-arrow-size);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck-collapsible__children {
|
|
|
padding: var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large);
|
|
|
}
|
|
|
|
|
|
&.ck-collapsible_collapsed {
|
|
|
& > .ck.ck-button .ck-icon {
|
|
|
transform: rotate(-90deg);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},4923:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBAOC,QAAS,CALT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CACV,8BAA+B,CAL/B,oCAyCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,+DACC,gDACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-color-grid {
|
|
|
display: grid;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-color-grid-tile-size: 24px;
|
|
|
|
|
|
/* Not using global colors here because these may change but some colors in a pallette
|
|
|
* require special treatment. For instance, this ensures no matter what the UI text color is,
|
|
|
* the check icon will look good on the black color tile. */
|
|
|
--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);
|
|
|
}
|
|
|
|
|
|
.ck.ck-color-grid {
|
|
|
grid-gap: 5px;
|
|
|
padding: 8px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-color-grid__tile {
|
|
|
width: var(--ck-color-grid-tile-size);
|
|
|
height: var(--ck-color-grid-tile-size);
|
|
|
min-width: var(--ck-color-grid-tile-size);
|
|
|
min-height: var(--ck-color-grid-tile-size);
|
|
|
padding: 0;
|
|
|
transition: .2s ease box-shadow;
|
|
|
border: 0;
|
|
|
|
|
|
&.ck-disabled {
|
|
|
cursor: unset;
|
|
|
transition: unset;
|
|
|
}
|
|
|
|
|
|
&.ck-color-selector__color-tile_bordered {
|
|
|
box-shadow: 0 0 0 1px var(--ck-color-base-border);
|
|
|
}
|
|
|
|
|
|
& .ck.ck-icon {
|
|
|
display: none;
|
|
|
color: var(--ck-color-color-grid-check-icon);
|
|
|
}
|
|
|
|
|
|
&.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-icon {
|
|
|
display: block;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-on,
|
|
|
&:focus:not( .ck-disabled ),
|
|
|
&:hover:not( .ck-disabled ) {
|
|
|
/* Disable the default .ck-button's border ring. */
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
&:focus:not( .ck-disabled ),
|
|
|
&:hover:not( .ck-disabled ) {
|
|
|
box-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-color-grid__label {
|
|
|
padding: 0 var(--ck-spacing-standard);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},4257:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".color-picker-hex-input{width:max-content}.color-picker-hex-input .ck.ck-input{min-width:unset}.ck.ck-color-picker__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;margin:var(--ck-spacing-large) 0 0;width:unset}.ck.ck-color-picker__row .ck.ck-labeled-field-view{padding-top:unset}.ck.ck-color-picker__row .ck.ck-input-text{width:unset}.ck.ck-color-picker__row .ck-color-picker__hash-view{padding-right:var(--ck-spacing-medium);padding-top:var(--ck-spacing-tiny)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/colorpicker/colorpicker.css"],names:[],mappings:"AAKA,wBACC,iBAKD,CAHC,qCACC,eACD,CAGD,yBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAA8B,CAC9B,kCAAmC,CACnC,WAcD,CAZC,mDACC,iBACD,CAEA,2CACC,WACD,CAEA,qDAEC,sCAAuC,CADvC,kCAED",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.color-picker-hex-input {
|
|
|
width: max-content;
|
|
|
|
|
|
& .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-labeled-field-view {
|
|
|
padding-top: unset;
|
|
|
}
|
|
|
|
|
|
& .ck.ck-input-text {
|
|
|
width: unset;
|
|
|
}
|
|
|
|
|
|
& .ck-color-picker__hash-view {
|
|
|
padding-top: var(--ck-spacing-tiny);
|
|
|
padding-right: var(--ck-spacing-medium);
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},6306:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{align-items:center;display:flex}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{justify-content:flex-start}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{display:flex;flex-direction:row;justify-content:space-around}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-cancel,.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-save{flex:1}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{width:100%}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-left:var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment label.ck.ck-color-grid__label{font-weight:unset}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker{padding:8px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker{height:100px;min-width:180px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation){border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue){border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius)}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue-pointer),.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation-pointer){height:15px;width:15px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{padding:0 8px 8px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/colorselector/colorselector.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorselector/colorselector.css"],names:[],mappings:"AAUE,oLAGC,kBAAmB,CADnB,YAMD,CARA,wMAME,0BAEF,CAKA,iFACC,YAAa,CACb,kBAAmB,CACnB,4BAMD,CAJC,oMAEC,MACD,CCrBD,oLAEC,UACD,CAEA,0FAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,sGACC,gDACD,CAEA,gHAEE,uCAMF,CARA,gHAME,sCAEF,CAGD,6EACC,iBACD,CAKA,oEACC,WAoBD,CAlBC,sFACC,YAAa,CACb,eAeD,CAbC,wGACC,iEACD,CAEA,iGACC,iEACD,CAEA,yNAGC,WAAY,CADZ,UAED,CAIF,iFACC,iBACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
.ck.ck-color-selector {
|
|
|
/* View fragment with color grids. */
|
|
|
& .ck-color-grids-fragment {
|
|
|
& .ck-button.ck-color-selector__remove-color,
|
|
|
& .ck-button.ck-color-selector__color-picker {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
justify-content: flex-start;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* View fragment with a color picker. */
|
|
|
& .ck-color-picker-fragment {
|
|
|
& .ck.ck-color-selector_action-bar {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-around;
|
|
|
|
|
|
& .ck-button-save,
|
|
|
& .ck-button-cancel {
|
|
|
flex: 1
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
.ck.ck-color-selector {
|
|
|
/* View fragment with color grids. */
|
|
|
& .ck-color-grids-fragment {
|
|
|
& .ck-button.ck-color-selector__remove-color,
|
|
|
& .ck-button.ck-color-selector__color-picker {
|
|
|
width: 100%;
|
|
|
}
|
|
|
|
|
|
& .ck-button.ck-color-selector__color-picker {
|
|
|
padding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);
|
|
|
border-bottom-left-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
|
|
&:not(:focus) {
|
|
|
border-top: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
|
|
|
& .ck.ck-icon {
|
|
|
@mixin ck-dir ltr {
|
|
|
margin-right: var(--ck-spacing-standard);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
margin-left: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& label.ck.ck-color-grid__label {
|
|
|
font-weight: unset;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* View fragment with a color picker. */
|
|
|
& .ck-color-picker-fragment {
|
|
|
& .ck.ck-color-picker {
|
|
|
padding: 8px;
|
|
|
|
|
|
& .hex-color-picker {
|
|
|
height: 100px;
|
|
|
min-width: 180px;
|
|
|
|
|
|
&::part(saturation) {
|
|
|
border-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;
|
|
|
}
|
|
|
|
|
|
&::part(hue) {
|
|
|
border-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);
|
|
|
}
|
|
|
|
|
|
&::part(saturation-pointer),
|
|
|
&::part(hue-pointer) {
|
|
|
width: 15px;
|
|
|
height: 15px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck.ck-color-selector_action-bar {
|
|
|
padding: 0 8px 8px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},5062:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-modal)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}.ck.ck-dropdown__panel:focus{outline:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eHkHD,CAhCA,qFG9EE,qCH8GF,CAhCA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAuBD,CAnBC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD,CAEA,6BACC,YACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-dropdown-max-width: 75vw;
|
|
|
}
|
|
|
|
|
|
.ck.ck-dropdown {
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
|
|
|
& .ck-dropdown__arrow {
|
|
|
pointer-events: none;
|
|
|
z-index: var(--ck-z-default);
|
|
|
}
|
|
|
|
|
|
/* Dropdown button should span horizontally, e.g. in vertical toolbars */
|
|
|
& .ck-button.ck-dropdown__button {
|
|
|
width: 100%;
|
|
|
}
|
|
|
|
|
|
& .ck-dropdown__panel {
|
|
|
display: none;
|
|
|
z-index: var(--ck-z-modal);
|
|
|
max-width: var(--ck-dropdown-max-width);
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
&.ck-dropdown__panel-visible {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_ne,
|
|
|
&.ck-dropdown__panel_nw,
|
|
|
&.ck-dropdown__panel_n,
|
|
|
&.ck-dropdown__panel_nmw,
|
|
|
&.ck-dropdown__panel_nme {
|
|
|
bottom: 100%;
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_se,
|
|
|
&.ck-dropdown__panel_sw,
|
|
|
&.ck-dropdown__panel_smw,
|
|
|
&.ck-dropdown__panel_sme,
|
|
|
&.ck-dropdown__panel_s {
|
|
|
/*
|
|
|
* Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/1053.
|
|
|
*/
|
|
|
top: 100%;
|
|
|
bottom: auto;
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_ne,
|
|
|
&.ck-dropdown__panel_se {
|
|
|
left: 0px;
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_nw,
|
|
|
&.ck-dropdown__panel_sw {
|
|
|
right: 0px;
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_s,
|
|
|
&.ck-dropdown__panel_n {
|
|
|
/* Positioning panels relative to the center of the button */
|
|
|
left: 50%;
|
|
|
transform: translateX(-50%);
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_nmw,
|
|
|
&.ck-dropdown__panel_smw {
|
|
|
/* Positioning panels relative to the middle-west of the button */
|
|
|
left: 75%;
|
|
|
transform: translateX(-75%);
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_nme,
|
|
|
&.ck-dropdown__panel_sme {
|
|
|
/* Positioning panels relative to the middle-east of the button */
|
|
|
left: 25%;
|
|
|
transform: translateX(-25%);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/7874
|
|
|
*/
|
|
|
.ck.ck-toolbar .ck-dropdown__panel {
|
|
|
z-index: calc( var(--ck-z-modal) + 1 );
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
@import "../../../mixins/_disabled.css";
|
|
|
@import "../../../mixins/_shadow.css";
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));
|
|
|
}
|
|
|
|
|
|
.ck.ck-dropdown {
|
|
|
/* Enable font size inheritance, which allows fluid UI scaling. */
|
|
|
font-size: inherit;
|
|
|
|
|
|
& .ck-dropdown__arrow {
|
|
|
width: var(--ck-dropdown-arrow-size);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
& .ck-dropdown__arrow {
|
|
|
right: var(--ck-spacing-standard);
|
|
|
|
|
|
/* A space to accommodate the triangle. */
|
|
|
margin-left: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
& .ck-dropdown__arrow {
|
|
|
left: var(--ck-spacing-standard);
|
|
|
|
|
|
/* A space to accommodate the triangle. */
|
|
|
margin-right: var(--ck-spacing-small);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-disabled .ck-dropdown__arrow {
|
|
|
@mixin ck-disabled;
|
|
|
}
|
|
|
|
|
|
& .ck-button.ck-dropdown__button {
|
|
|
@mixin ck-dir ltr {
|
|
|
&:not(.ck-button_with-text) {
|
|
|
/* Make sure dropdowns with just an icon have the right inner spacing */
|
|
|
padding-left: var(--ck-spacing-small);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
&:not(.ck-button_with-text) {
|
|
|
/* Make sure dropdowns with just an icon have the right inner spacing */
|
|
|
padding-right: var(--ck-spacing-small);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* #23 */
|
|
|
& .ck-button__label {
|
|
|
width: 7em;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */
|
|
|
&.ck-disabled .ck-button__label {
|
|
|
@mixin ck-disabled;
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5/issues/816 */
|
|
|
&.ck-on {
|
|
|
border-bottom-left-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__button_label-width_auto .ck-button__label {
|
|
|
width: auto;
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5/issues/8699 */
|
|
|
&.ck-off:active,
|
|
|
&.ck-on:active {
|
|
|
box-shadow: none;
|
|
|
|
|
|
&:focus {
|
|
|
@mixin ck-box-shadow var(--ck-focus-outer-shadow);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-dropdown__panel {
|
|
|
@mixin ck-rounded-corners;
|
|
|
@mixin ck-drop-shadow;
|
|
|
|
|
|
background: var(--ck-color-dropdown-panel-background);
|
|
|
border: 1px solid var(--ck-color-dropdown-panel-border);
|
|
|
bottom: 0;
|
|
|
|
|
|
/* Make sure the panel is at least as wide as the drop-down's button. */
|
|
|
min-width: 100%;
|
|
|
|
|
|
/* Disabled corner border radius to be consistent with the .dropdown__button
|
|
|
https://github.com/ckeditor/ckeditor5/issues/816 */
|
|
|
&.ck-dropdown__panel_se {
|
|
|
border-top-left-radius: 0;
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_sw {
|
|
|
border-top-right-radius: 0;
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_ne {
|
|
|
border-bottom-left-radius: 0;
|
|
|
}
|
|
|
|
|
|
&.ck-dropdown__panel_nw {
|
|
|
border-bottom-right-radius: 0;
|
|
|
}
|
|
|
|
|
|
&:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A class which indicates that an element holding it is disabled.
|
|
|
*/
|
|
|
@define-mixin ck-disabled {
|
|
|
opacity: var(--ck-disabled-opacity);
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},1883:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
|
|
|
.ck.ck-dropdown .ck-dropdown__panel .ck-list {
|
|
|
/* Disabled radius of top-left border to be consistent with .dropdown__button
|
|
|
https://github.com/ckeditor/ckeditor5/issues/816 */
|
|
|
@mixin ck-rounded-corners {
|
|
|
border-top-left-radius: 0;
|
|
|
}
|
|
|
|
|
|
/* Make sure the button belonging to the first/last child of the list goes well with the
|
|
|
border radius of the entire panel. */
|
|
|
& .ck-list__item {
|
|
|
&:first-child .ck-button {
|
|
|
@mixin ck-rounded-corners {
|
|
|
border-top-left-radius: 0;
|
|
|
border-bottom-left-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&:last-child .ck-button {
|
|
|
@mixin ck-rounded-corners {
|
|
|
border-top-left-radius: 0;
|
|
|
border-top-right-radius: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},4791:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-splitbutton {
|
|
|
/* Enable font size inheritance, which allows fluid UI scaling. */
|
|
|
font-size: inherit;
|
|
|
|
|
|
& .ck-splitbutton__action:focus {
|
|
|
z-index: calc(var(--ck-z-default) + 1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-color-split-button-hover-background: hsl(0, 0%, 92%);
|
|
|
--ck-color-split-button-hover-border: hsl(0, 0%, 70%);
|
|
|
}
|
|
|
|
|
|
.ck.ck-splitbutton {
|
|
|
/*
|
|
|
* Note: ck-rounded and ck-dir mixins don't go together (because they both use @nest).
|
|
|
*/
|
|
|
&:hover > .ck-splitbutton__action,
|
|
|
&.ck-splitbutton_open > .ck-splitbutton__action {
|
|
|
@nest [dir="ltr"] & {
|
|
|
/* Don't round the action button on the right side */
|
|
|
border-top-right-radius: unset;
|
|
|
border-bottom-right-radius: unset;
|
|
|
}
|
|
|
|
|
|
@nest [dir="rtl"] & {
|
|
|
/* Don't round the action button on the left side */
|
|
|
border-top-left-radius: unset;
|
|
|
border-bottom-left-radius: unset;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck-splitbutton__arrow {
|
|
|
/* It's a text-less button and since the icon is positioned absolutely in such situation,
|
|
|
it must get some arbitrary min-width. */
|
|
|
min-width: unset;
|
|
|
|
|
|
@nest [dir="ltr"] & {
|
|
|
/* Don't round the arrow button on the left side */
|
|
|
border-top-left-radius: unset;
|
|
|
border-bottom-left-radius: unset;
|
|
|
}
|
|
|
|
|
|
@nest [dir="rtl"] & {
|
|
|
/* Don't round the arrow button on the right side */
|
|
|
border-top-right-radius: unset;
|
|
|
border-bottom-right-radius: unset;
|
|
|
}
|
|
|
|
|
|
& svg {
|
|
|
width: var(--ck-dropdown-arrow-size);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Make sure the divider stretches 100% height of the button
|
|
|
https://github.com/ckeditor/ckeditor5/issues/10936 */
|
|
|
& > .ck-splitbutton__arrow:not(:focus) {
|
|
|
border-top-width: 0px;
|
|
|
border-bottom-width: 0px;
|
|
|
}
|
|
|
|
|
|
/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling
|
|
|
as a whole. The background of both buttons should stand out and there should be a visual
|
|
|
separation between both buttons. */
|
|
|
&.ck-splitbutton_open,
|
|
|
&:hover {
|
|
|
/* When the split button hovered as a whole, not as individual buttons. */
|
|
|
& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {
|
|
|
background: var(--ck-color-split-button-hover-background);
|
|
|
}
|
|
|
|
|
|
/* Splitbutton separator needs to be set with the ::after pseudoselector
|
|
|
to display properly the borders on focus */
|
|
|
& > .ck-splitbutton__arrow:not(.ck-disabled)::after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
width: 1px;
|
|
|
height: 100%;
|
|
|
background-color: var(--ck-color-split-button-hover-border);
|
|
|
}
|
|
|
|
|
|
/* Make sure the divider between the buttons looks fine when the button is focused */
|
|
|
& > .ck-splitbutton__arrow:focus::after {
|
|
|
--ck-color-split-button-hover-border: var(--ck-color-focus-border);
|
|
|
}
|
|
|
|
|
|
@nest [dir="ltr"] & {
|
|
|
& > .ck-splitbutton__arrow:not(.ck-disabled)::after {
|
|
|
left: -1px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@nest [dir="rtl"] & {
|
|
|
& > .ck-splitbutton__arrow:not(.ck-disabled)::after {
|
|
|
right: -1px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Don't round the bottom left and right corners of the buttons when "open"
|
|
|
https://github.com/ckeditor/ckeditor5/issues/816 */
|
|
|
&.ck-splitbutton_open {
|
|
|
@mixin ck-rounded-corners {
|
|
|
& > .ck-splitbutton__action {
|
|
|
border-bottom-left-radius: 0;
|
|
|
}
|
|
|
|
|
|
& > .ck-splitbutton__arrow {
|
|
|
border-bottom-right-radius: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},2704:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-toolbar-dropdown-max-width: 60vw;
|
|
|
}
|
|
|
|
|
|
.ck.ck-toolbar-dropdown > .ck-dropdown__panel {
|
|
|
/* https://github.com/ckeditor/ckeditor5/issues/5586 */
|
|
|
width: max-content;
|
|
|
max-width: var(--ck-toolbar-dropdown-max-width);
|
|
|
|
|
|
& .ck-button {
|
|
|
&:focus {
|
|
|
z-index: calc(var(--ck-z-default) + 1);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-toolbar-dropdown .ck-toolbar {
|
|
|
border: 0;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},9847:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,oDACD,CAIA,gEACC,iDACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
@import "../../../mixins/_disabled.css";
|
|
|
@import "../../../mixins/_shadow.css";
|
|
|
@import "../../../mixins/_focus.css";
|
|
|
@import "../../mixins/_button.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-color-editable-blur-selection: hsl(0, 0%, 85%);
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable:not(.ck-editor__nested-editable) {
|
|
|
@mixin ck-rounded-corners;
|
|
|
|
|
|
&.ck-focused {
|
|
|
@mixin ck-focus-ring;
|
|
|
@mixin ck-box-shadow var(--ck-inner-shadow);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable_inline {
|
|
|
overflow: auto;
|
|
|
padding: 0 var(--ck-spacing-standard);
|
|
|
border: 1px solid transparent;
|
|
|
|
|
|
&[dir="ltr"] {
|
|
|
text-align: left;
|
|
|
}
|
|
|
|
|
|
&[dir="rtl"] {
|
|
|
text-align: right;
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */
|
|
|
& > *:first-child {
|
|
|
margin-top: var(--ck-spacing-large);
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5/issues/847 */
|
|
|
& > *:last-child {
|
|
|
/*
|
|
|
* This value should match with the default margins of the block elements (like .media or .image)
|
|
|
* to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).
|
|
|
*/
|
|
|
margin-bottom: var(--ck-spacing-large);
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5/issues/6517 */
|
|
|
&.ck-blurred ::selection {
|
|
|
background: var(--ck-color-editable-blur-selection);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */
|
|
|
.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);
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A visual style of focused element's border.
|
|
|
*/
|
|
|
@define-mixin ck-focus-ring {
|
|
|
/* Disable native outline. */
|
|
|
outline: none;
|
|
|
border: var(--ck-focus-ring)
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},1874:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__header h2.ck-form__header__label{flex-grow:1}:root{--ck-form-header-height:38px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}[dir=ltr] .ck.ck-form__header .ck-icon{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-form__header .ck-icon{margin-left:var(--ck-spacing-medium)}.ck.ck-form__header .ck-form__header__label{font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BAKD,CAHC,8CACC,WACD,CCPD,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAkBD,CAbC,uCAEE,qCAMF,CARA,uCAME,oCAEF,CAEA,4CACC,eACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-form__header {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
flex-wrap: nowrap;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
|
|
|
& h2.ck-form__header__label {
|
|
|
flex-grow: 1;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-form-header-height: 38px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-form__header {
|
|
|
padding: var(--ck-spacing-small) var(--ck-spacing-large);
|
|
|
height: var(--ck-form-header-height);
|
|
|
line-height: var(--ck-form-header-height);
|
|
|
border-bottom: 1px solid var(--ck-color-base-border);
|
|
|
|
|
|
& .ck-icon {
|
|
|
@mixin ck-dir ltr {
|
|
|
margin-right: var(--ck-spacing-medium);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
margin-left: var(--ck-spacing-medium);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-form__header__label {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},4746:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-highlighted-text mark{background:var(--ck-color-highlight-background);font-size:inherit;font-weight:inherit;line-height:inherit;vertical-align:initial}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css"],names:[],mappings:"AAKA,6BACC,+CAAgD,CAIhD,iBAAkB,CAFlB,mBAAoB,CACpB,mBAAoB,CAFpB,sBAID",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-highlighted-text mark {
|
|
|
background: var(--ck-color-highlight-background);
|
|
|
vertical-align: initial;
|
|
|
font-weight: inherit;
|
|
|
line-height: inherit;
|
|
|
font-size: inherit;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},1977:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/icon/icon.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-icon {
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));
|
|
|
}
|
|
|
|
|
|
.ck.ck-icon {
|
|
|
width: var(--ck-icon-size);
|
|
|
height: var(--ck-icon-size);
|
|
|
|
|
|
/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */
|
|
|
font-size: .8333350694em;
|
|
|
|
|
|
/* Inherit cursor style (#5). */
|
|
|
cursor: inherit;
|
|
|
|
|
|
/* This will prevent blurry icons on Firefox. See #340. */
|
|
|
will-change: transform;
|
|
|
|
|
|
& * {
|
|
|
/* Inherit cursor style (#5). */
|
|
|
cursor: inherit;
|
|
|
}
|
|
|
|
|
|
/* Allows dynamic coloring of an icon by inheriting its color from the parent. */
|
|
|
&.ck-icon_inherit-color {
|
|
|
color: inherit;
|
|
|
|
|
|
& * {
|
|
|
color: inherit;
|
|
|
|
|
|
&:not([fill]) {
|
|
|
/* Needed by FF. */
|
|
|
fill: currentColor;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},2470:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eD2CD,CAtCA,iECDE,qCDuCF,CAtCA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DA0BD,CAxBC,mBEnBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YFuBA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BG/BD,oDHkCC,CAGD,sBAEC,sCAAuC,CADvC,+CAMD,CAHC,4BGzCD,iDH2CC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
@import "../../../mixins/_focus.css";
|
|
|
@import "../../../mixins/_shadow.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-input-width: 18em;
|
|
|
|
|
|
/* Backward compatibility. */
|
|
|
--ck-input-text-width: var(--ck-input-width);
|
|
|
}
|
|
|
|
|
|
.ck.ck-input {
|
|
|
@mixin ck-rounded-corners;
|
|
|
|
|
|
background: var(--ck-color-input-background);
|
|
|
border: 1px solid var(--ck-color-input-border);
|
|
|
padding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);
|
|
|
min-width: var(--ck-input-width);
|
|
|
|
|
|
/* This is important to stay of the same height as surrounding buttons */
|
|
|
min-height: var(--ck-ui-component-min-height);
|
|
|
|
|
|
/* Apply some smooth transition to the box-shadow and border. */
|
|
|
transition: box-shadow .1s ease-in-out, border .1s ease-in-out;
|
|
|
|
|
|
&:focus {
|
|
|
@mixin ck-focus-ring;
|
|
|
@mixin ck-box-shadow var(--ck-focus-outer-shadow);
|
|
|
}
|
|
|
|
|
|
&[readonly] {
|
|
|
border: 1px solid var(--ck-color-input-disabled-border);
|
|
|
background: var(--ck-color-input-disabled-background);
|
|
|
color: var(--ck-color-input-disabled-text);
|
|
|
|
|
|
&:focus {
|
|
|
/* The read-only input should have a slightly less visible shadow when focused. */
|
|
|
@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-error {
|
|
|
border-color: var(--ck-color-input-error-border);
|
|
|
animation: ck-input-shake .3s ease both;
|
|
|
|
|
|
&:focus {
|
|
|
@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes ck-input-shake {
|
|
|
20% {
|
|
|
transform: translateX(-2px);
|
|
|
}
|
|
|
|
|
|
40% {
|
|
|
transform: translateX(2px);
|
|
|
}
|
|
|
|
|
|
60% {
|
|
|
transform: translateX(-1px);
|
|
|
}
|
|
|
|
|
|
80% {
|
|
|
transform: translateX(1px);
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A visual style of focused element's border.
|
|
|
*/
|
|
|
@define-mixin ck-focus-ring {
|
|
|
/* Disable native outline. */
|
|
|
outline: none;
|
|
|
border: var(--ck-focus-ring)
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},3525:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/label/label.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-label {
|
|
|
display: block;
|
|
|
}
|
|
|
|
|
|
.ck.ck-voice-label {
|
|
|
display: none;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-label {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},2933:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0;transform:translate(calc(var(--ck-spacing-medium)*-1),-6px) scale(.75);transform-origin:100% 0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eD+GD,CA1GA,2FCDE,qCD2GF,CAvGC,mEACC,UAoCD,CAlCC,gFACC,KAgCD,CAjCA,0FAIE,MAAS,CAGT,6DAA+D,CAF/D,oBA4BF,CAjCA,0FAWE,OAAU,CAEV,sEAA0E,CAD1E,uBAqBF,CAjCA,gFAkBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAH9C,mBAAoB,CAQpB,sBAAuB,CAKvB,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,4WAGE,+HAYF,CAfA,4WAOE,wIAQF,CAfA,wVAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-labeled-field-view {
|
|
|
& > .ck.ck-labeled-field-view__input-wrapper {
|
|
|
display: flex;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
& .ck.ck-label {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
|
|
|
: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(0.6 * var(--ck-font-size-base));
|
|
|
--ck-color-labeled-field-label-background: var(--ck-color-base-background);
|
|
|
}
|
|
|
|
|
|
.ck.ck-labeled-field-view {
|
|
|
@mixin ck-rounded-corners;
|
|
|
|
|
|
& > .ck.ck-labeled-field-view__input-wrapper {
|
|
|
width: 100%;
|
|
|
|
|
|
& > .ck.ck-label {
|
|
|
top: 0px;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
left: 0px;
|
|
|
transform-origin: 0 0;
|
|
|
/* By default, display the label scaled down above the field. */
|
|
|
transform: translate(var(--ck-spacing-medium), -6px) scale(.75);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
right: 0px;
|
|
|
transform-origin: 100% 0;
|
|
|
transform: translate(calc(-1 * var(--ck-spacing-medium)), -6px) scale(.75);
|
|
|
}
|
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
background: var(--ck-color-labeled-field-label-background);
|
|
|
padding: 0 calc(.5 * var(--ck-font-size-tiny));
|
|
|
line-height: initial;
|
|
|
font-weight: normal;
|
|
|
|
|
|
/* Prevent overflow when the label is longer than the input */
|
|
|
text-overflow: ellipsis;
|
|
|
overflow: hidden;
|
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
|
transition:
|
|
|
transform var(--ck-labeled-field-view-transition),
|
|
|
padding var(--ck-labeled-field-view-transition),
|
|
|
background var(--ck-labeled-field-view-transition);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-error {
|
|
|
& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {
|
|
|
color: var(--ck-color-base-error);
|
|
|
}
|
|
|
|
|
|
& .ck-input:not([readonly]) + .ck.ck-label {
|
|
|
color: var(--ck-color-base-error);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-labeled-field-view__status {
|
|
|
font-size: var(--ck-font-size-small);
|
|
|
margin-top: var(--ck-spacing-small);
|
|
|
|
|
|
/* Let the info wrap to the next line to avoid stretching the layout horizontally.
|
|
|
The status could be very long. */
|
|
|
white-space: normal;
|
|
|
|
|
|
&.ck-labeled-field-view__status_error {
|
|
|
color: var(--ck-color-base-error);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Disabled fields and fields that have no focus should fade out. */
|
|
|
&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,
|
|
|
&.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);
|
|
|
}
|
|
|
|
|
|
/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
|
|
&.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,
|
|
|
&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {
|
|
|
@mixin ck-dir ltr {
|
|
|
transform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
transform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);
|
|
|
}
|
|
|
|
|
|
/* Compensate for the default translate position. */
|
|
|
max-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));
|
|
|
|
|
|
background: transparent;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
/*------ DropdownView integration ----------------------------------------------------------------------------------- */
|
|
|
|
|
|
/* Make sure dropdown' background color in any of dropdown's state does not collide with labeled field. */
|
|
|
& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
/* When the dropdown is "empty", the labeled field label replaces its label. */
|
|
|
&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
|
|
|
/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */
|
|
|
&.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));
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},179:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}:root{--ck-list-button-padding:calc(var(--ck-line-height-base)*0.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*0.4*var(--ck-font-size-base))}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;width:100%}[dir=ltr] .ck.ck-list__item .ck-button{text-align:left}[dir=rtl] .ck.ck-list__item .ck-button{text-align:right}.ck.ck-list__item .ck-button{padding:var(--ck-list-button-padding)}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck-list .ck-list__group{padding-top:var(--ck-spacing-medium);:not(.ck-hidden)~&{border-top:1px solid var(--ck-color-base-border)}}.ck-list .ck-list__group>.ck-label{font-size:11px;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-medium) 0 var(--ck-spacing-medium)}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/list/list.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEdD,MACC,oJAGD,CAEA,YCLC,eDUD,CALA,+DCDE,qCDMF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cAgED,CA9DC,6BAGC,eAAgB,CAFhB,gBAAiB,CACjB,UA6CD,CA/CA,uCAME,eAyCF,CA/CA,uCAUE,gBAqCF,CA/CA,6BAgBC,qCA+BD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,iFACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,yBACC,oCAAqC,CAGrC,mBACC,gDACD,CAOD,CALC,mCACC,cAAe,CACf,eAAiB,CACjB,oFACD,CAGD,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../mixins/_unselectable.css";
|
|
|
|
|
|
.ck.ck-list {
|
|
|
@mixin ck-unselectable;
|
|
|
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
|
|
|
& .ck-list__item,
|
|
|
& .ck-list__separator {
|
|
|
display: block;
|
|
|
}
|
|
|
|
|
|
/* Make sure that whatever child of the list item gets focus, it remains on the
|
|
|
top. Thanks to that, styles like box-shadow, outline, etc. are not masked by
|
|
|
adjacent list items. */
|
|
|
& .ck-list__item > *:focus {
|
|
|
position: relative;
|
|
|
z-index: var(--ck-z-default);
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Makes element unselectable.
|
|
|
*/
|
|
|
@define-mixin ck-unselectable {
|
|
|
-moz-user-select: none;
|
|
|
-webkit-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_disabled.css";
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
@import "../../../mixins/_shadow.css";
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-list-button-padding:
|
|
|
calc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))
|
|
|
calc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));
|
|
|
}
|
|
|
|
|
|
.ck.ck-list {
|
|
|
@mixin ck-rounded-corners;
|
|
|
|
|
|
list-style-type: none;
|
|
|
background: var(--ck-color-list-background);
|
|
|
}
|
|
|
|
|
|
.ck.ck-list__item {
|
|
|
cursor: default;
|
|
|
min-width: 12em;
|
|
|
|
|
|
& .ck-button {
|
|
|
min-height: unset;
|
|
|
width: 100%;
|
|
|
border-radius: 0;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
text-align: left;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
text-align: right;
|
|
|
}
|
|
|
|
|
|
/* List items should have the same height. Use absolute units to make sure it is so
|
|
|
because e.g. different heading styles may have different height
|
|
|
https://github.com/ckeditor/ckeditor5-heading/issues/63 */
|
|
|
padding: var(--ck-list-button-padding);
|
|
|
|
|
|
& .ck-button__label {
|
|
|
/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */
|
|
|
line-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));
|
|
|
}
|
|
|
|
|
|
&:active {
|
|
|
box-shadow: none;
|
|
|
}
|
|
|
|
|
|
&.ck-on {
|
|
|
background: var(--ck-color-list-button-on-background);
|
|
|
color: var(--ck-color-list-button-on-text);
|
|
|
|
|
|
&:active {
|
|
|
box-shadow: none;
|
|
|
}
|
|
|
|
|
|
&:hover:not(.ck-disabled) {
|
|
|
background: var(--ck-color-list-button-on-background-focus);
|
|
|
}
|
|
|
|
|
|
&:focus:not(.ck-switchbutton):not(.ck-disabled) {
|
|
|
border-color: var(--ck-color-base-background);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&:hover:not(.ck-disabled) {
|
|
|
background: var(--ck-color-list-button-hover-background);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* It's unnecessary to change the background/text of a switch toggle; it has different ways
|
|
|
of conveying its state (like the switcher) */
|
|
|
& .ck-switchbutton {
|
|
|
&.ck-on {
|
|
|
background: var(--ck-color-list-background);
|
|
|
color: inherit;
|
|
|
|
|
|
&: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);
|
|
|
|
|
|
/* The group should have a border when it's not the first item. */
|
|
|
*:not(.ck-hidden) ~ & {
|
|
|
border-top: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
|
|
|
& > .ck-label {
|
|
|
font-size: 11px;
|
|
|
font-weight: bold;
|
|
|
padding: var(--ck-spacing-medium) var(--ck-spacing-medium) 0 var(--ck-spacing-medium);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-list__separator {
|
|
|
height: 1px;
|
|
|
width: 100%;
|
|
|
background: var(--ck-color-base-border);
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},4460:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
/* Make sure the balloon arrow does not float over its children. */
|
|
|
--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);
|
|
|
}
|
|
|
|
|
|
.ck.ck-balloon-panel {
|
|
|
display: none;
|
|
|
position: absolute;
|
|
|
|
|
|
z-index: var(--ck-z-modal);
|
|
|
|
|
|
&.ck-balloon-panel_with-arrow {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
content: "";
|
|
|
position: absolute;
|
|
|
}
|
|
|
|
|
|
&::before {
|
|
|
z-index: var(--ck-balloon-panel-arrow-z-index);
|
|
|
}
|
|
|
|
|
|
&::after {
|
|
|
z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[class*="arrow_n"] {
|
|
|
&::before {
|
|
|
z-index: var(--ck-balloon-panel-arrow-z-index);
|
|
|
}
|
|
|
|
|
|
&::after {
|
|
|
z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[class*="arrow_s"] {
|
|
|
&::before {
|
|
|
z-index: var(--ck-balloon-panel-arrow-z-index);
|
|
|
}
|
|
|
|
|
|
&::after {
|
|
|
z-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_visible {
|
|
|
display: block;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
@import "../../../mixins/_shadow.css";
|
|
|
|
|
|
: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 {
|
|
|
@mixin ck-rounded-corners;
|
|
|
@mixin ck-drop-shadow;
|
|
|
|
|
|
min-height: 15px;
|
|
|
|
|
|
background: var(--ck-color-panel-background);
|
|
|
border: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);
|
|
|
|
|
|
&.ck-balloon-panel_with-arrow {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
width: 0;
|
|
|
height: 0;
|
|
|
border-style: solid;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[class*="arrow_n"] {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
border-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);
|
|
|
}
|
|
|
|
|
|
&::before {
|
|
|
border-color: transparent transparent var(--ck-color-panel-border) transparent;
|
|
|
margin-top: calc( -1 * var(--ck-balloon-border-width) );
|
|
|
}
|
|
|
|
|
|
&::after {
|
|
|
border-color: transparent transparent var(--ck-color-panel-background) transparent;
|
|
|
margin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[class*="arrow_s"] {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
border-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);
|
|
|
}
|
|
|
|
|
|
&::before {
|
|
|
border-color: var(--ck-color-panel-border) transparent transparent;
|
|
|
filter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));
|
|
|
margin-bottom: calc( -1 * var(--ck-balloon-border-width) );
|
|
|
}
|
|
|
|
|
|
&::after {
|
|
|
border-color: var(--ck-color-panel-background) transparent transparent transparent;
|
|
|
margin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[class*="arrow_e"] {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
border-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);
|
|
|
}
|
|
|
|
|
|
&::before {
|
|
|
border-color: transparent transparent transparent var(--ck-color-panel-border);
|
|
|
margin-right: calc( -1 * var(--ck-balloon-border-width) );
|
|
|
}
|
|
|
|
|
|
&::after {
|
|
|
border-color: transparent transparent transparent var(--ck-color-panel-background);
|
|
|
margin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[class*="arrow_w"] {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
border-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;
|
|
|
}
|
|
|
|
|
|
&::before {
|
|
|
border-color: transparent var(--ck-color-panel-border) transparent transparent;
|
|
|
margin-left: calc( -1 * var(--ck-balloon-border-width) );
|
|
|
}
|
|
|
|
|
|
&::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-balloon-panel_arrow_n {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
left: 50%;
|
|
|
margin-left: calc(-1 * var(--ck-balloon-arrow-half-width));
|
|
|
top: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_nw {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
left: calc(2 * var(--ck-balloon-arrow-half-width));
|
|
|
top: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_ne {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
right: calc(2 * var(--ck-balloon-arrow-half-width));
|
|
|
top: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_s {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
left: 50%;
|
|
|
margin-left: calc(-1 * var(--ck-balloon-arrow-half-width));
|
|
|
bottom: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_sw {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
left: calc(2 * var(--ck-balloon-arrow-half-width));
|
|
|
bottom: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_se {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
right: calc(2 * var(--ck-balloon-arrow-half-width));
|
|
|
bottom: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_sme {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
right: 25%;
|
|
|
margin-right: calc(2 * var(--ck-balloon-arrow-half-width));
|
|
|
bottom: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_smw {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
left: 25%;
|
|
|
margin-left: calc(2 * var(--ck-balloon-arrow-half-width));
|
|
|
bottom: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_nme {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
right: 25%;
|
|
|
margin-right: calc(2 * var(--ck-balloon-arrow-half-width));
|
|
|
top: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_nmw {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
left: 25%;
|
|
|
margin-left: calc(2 * var(--ck-balloon-arrow-half-width));
|
|
|
top: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_e {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
right: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
margin-top: calc(-1 * var(--ck-balloon-arrow-half-width));
|
|
|
top: 50%;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-balloon-panel_arrow_w {
|
|
|
&::before,
|
|
|
&::after {
|
|
|
left: calc(-1 * var(--ck-balloon-arrow-height));
|
|
|
margin-top: calc(-1 * var(--ck-balloon-arrow-half-width));
|
|
|
top: 50%;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},7592:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck .ck-balloon-rotator__navigation {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
}
|
|
|
|
|
|
/* Buttons inside a toolbar should be centered when rotator bar is wider.
|
|
|
* See: https://github.com/ckeditor/ckeditor5-ui/issues/495
|
|
|
*/
|
|
|
.ck .ck-balloon-rotator__content .ck-toolbar {
|
|
|
justify-content: center;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.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);
|
|
|
|
|
|
/* Let's keep similar appearance to \`ck-toolbar\`. */
|
|
|
& > * {
|
|
|
margin-right: var(--ck-spacing-small);
|
|
|
margin-top: var(--ck-spacing-small);
|
|
|
margin-bottom: var(--ck-spacing-small);
|
|
|
}
|
|
|
|
|
|
/* Gives counter more breath than buttons. */
|
|
|
& .ck-balloon-rotator__counter {
|
|
|
margin-right: var(--ck-spacing-standard);
|
|
|
|
|
|
/* We need to use smaller margin because of previous button's right margin. */
|
|
|
margin-left: var(--ck-spacing-small);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck .ck-balloon-rotator__content {
|
|
|
|
|
|
/* Disable default annotation shadow inside rotator with fake panels. */
|
|
|
& .ck.ck-annotation-wrapper {
|
|
|
box-shadow: none;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},6356:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck .ck-fake-panel {
|
|
|
position: absolute;
|
|
|
|
|
|
/* Fake panels should be placed under main balloon content. */
|
|
|
z-index: calc(var(--ck-z-modal) - 1);
|
|
|
}
|
|
|
|
|
|
.ck .ck-fake-panel div {
|
|
|
position: absolute;
|
|
|
}
|
|
|
|
|
|
.ck .ck-fake-panel div:nth-child( 1 ) {
|
|
|
z-index: 2;
|
|
|
}
|
|
|
|
|
|
.ck .ck-fake-panel div:nth-child( 2 ) {
|
|
|
z-index: 1;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_shadow.css";
|
|
|
|
|
|
:root {
|
|
|
--ck-balloon-fake-panel-offset-horizontal: 6px;
|
|
|
--ck-balloon-fake-panel-offset-vertical: 6px;
|
|
|
}
|
|
|
|
|
|
/* Let's use \`.ck-balloon-panel\` appearance. See: balloonpanel.css. */
|
|
|
.ck .ck-fake-panel div {
|
|
|
@mixin ck-drop-shadow;
|
|
|
|
|
|
min-height: 15px;
|
|
|
|
|
|
background: var(--ck-color-panel-background);
|
|
|
border: 1px solid var(--ck-color-panel-border);
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
}
|
|
|
|
|
|
.ck .ck-fake-panel div:nth-child( 1 ) {
|
|
|
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);
|
|
|
}
|
|
|
|
|
|
/* If balloon is positioned above element, we need to move fake panel to the top. */
|
|
|
.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;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},3707:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-modal)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-sticky-panel {
|
|
|
& .ck-sticky-panel__content_sticky {
|
|
|
z-index: var(--ck-z-modal); /* #315 */
|
|
|
position: fixed;
|
|
|
top: 0;
|
|
|
}
|
|
|
|
|
|
& .ck-sticky-panel__content_sticky_bottom-limit {
|
|
|
top: auto;
|
|
|
position: absolute;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_shadow.css";
|
|
|
|
|
|
.ck.ck-sticky-panel {
|
|
|
& .ck-sticky-panel__content_sticky {
|
|
|
@mixin ck-drop-shadow;
|
|
|
|
|
|
border-width: 0 1px 1px;
|
|
|
border-top-left-radius: 0;
|
|
|
border-top-right-radius: 0;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},6603:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAmED,CAjEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA8CF,CA5CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDpEH",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
|
|
|
|
|
.ck-vertical-form .ck-button {
|
|
|
&::after {
|
|
|
content: "";
|
|
|
width: 0;
|
|
|
position: absolute;
|
|
|
right: -1px;
|
|
|
top: -1px;
|
|
|
bottom: -1px;
|
|
|
z-index: 1;
|
|
|
}
|
|
|
|
|
|
&:focus::after {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-responsive-form {
|
|
|
@mixin ck-media-phone {
|
|
|
& .ck-button {
|
|
|
&::after {
|
|
|
content: "";
|
|
|
width: 0;
|
|
|
position: absolute;
|
|
|
right: -1px;
|
|
|
top: -1px;
|
|
|
bottom: -1px;
|
|
|
z-index: 1;
|
|
|
}
|
|
|
|
|
|
&:focus::after {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@define-mixin ck-media-phone {
|
|
|
@media screen and (max-width: 600px) {
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
.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);
|
|
|
|
|
|
&:focus {
|
|
|
/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
& > :not(:first-child) {
|
|
|
margin-left: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
& > :not(:last-child) {
|
|
|
margin-left: var(--ck-spacing-standard);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-media-phone {
|
|
|
padding: 0;
|
|
|
width: calc(.8 * var(--ck-input-width));
|
|
|
|
|
|
& .ck-labeled-field-view {
|
|
|
margin: var(--ck-spacing-large) var(--ck-spacing-large) 0;
|
|
|
|
|
|
& .ck-input-text {
|
|
|
min-width: 0;
|
|
|
width: 100%;
|
|
|
}
|
|
|
|
|
|
/* Let the long error messages wrap in the narrow form. */
|
|
|
& .ck-labeled-field-view__error {
|
|
|
white-space: normal;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */
|
|
|
& > .ck-button:nth-last-child(2) {
|
|
|
&::after {
|
|
|
border-right: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck-button:nth-last-child(1),
|
|
|
& > .ck-button:nth-last-child(2) {
|
|
|
padding: var(--ck-spacing-standard);
|
|
|
margin-top: var(--ck-spacing-large);
|
|
|
border-radius: 0;
|
|
|
|
|
|
&:not(:focus) {
|
|
|
border-top: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
margin-left: 0;
|
|
|
|
|
|
&:last-of-type {
|
|
|
border-right: 1px solid var(--ck-color-base-border);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},9332:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{position:absolute;top:50%;transform:translateY(-50%)}[dir=ltr] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{left:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{right:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view .ck-search__reset{position:absolute;top:50%;transform:translateY(-50%)}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{display:block}.ck.ck-search>.ck-search__results>.ck-search__info:not(.ck-hidden)~*{display:none}:root{--ck-search-field-view-horizontal-spacing:calc(var(--ck-icon-size) + var(--ck-spacing-medium))}.ck.ck-search>.ck-labeled-field-view .ck-input{width:100%}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon{--ck-labeled-field-label-default-position-x:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon>.ck-labeled-field-view__input-wrapper>.ck-icon{opacity:.5;pointer-events:none}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input,[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input:not(.ck-input-text_empty){padding-left:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset{--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset.ck-labeled-field-view_empty{--ck-labeled-field-empty-unfocused-max-width:100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{background:none;min-height:auto;min-width:auto;opacity:.5;padding:0}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{left:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset:hover{opacity:1}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input:not(.ck-input-text_empty),[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{padding-right:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-search__results{min-width:100%}.ck.ck-search>.ck-search__results>.ck-search__info{padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-search>.ck-search__results>.ck-search__info *{white-space:normal}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{font-weight:700}.ck.ck-search>.ck-search__results>.ck-search__info>span:last-child{margin-top:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/search/search.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/search/search.css"],names:[],mappings:"AASE,oFACC,iBAAkB,CAClB,OAAQ,CACR,0BASD,CAZA,8FAME,6BAMF,CAZA,8FAUE,8BAEF,CAEA,uDACC,iBAAkB,CAClB,OAAQ,CACR,0BACD,CAKC,oEACC,aACD,CAGA,qEACC,YACD,CChCH,MACC,8FACD,CAIE,+CACC,UACD,CAEA,gEACC,0FAoBD,CAlBC,+GACC,UAAW,CACX,mBACD,CAEA,0EACC,UAWD,CAJE,kMACC,2DACD,CAKH,iEACC,sGAwCD,CAtCC,6FACC,6HACD,CAEA,mFAIC,eAAgB,CAFhB,eAAgB,CADhB,cAAe,CAIf,UAAW,CACX,SAaD,CAnBA,6FASE,8BAUF,CAnBA,6FAaE,6BAMF,CAHC,yFACC,SACD,CAGD,2EACC,UAWD,CAZA,oMAUE,4DAEF,CAIF,kCACC,cAkBD,CAhBC,mDAEC,wDAAyD,CADzD,UAcD,CAXC,qDACC,kBACD,CAEA,oEACC,eACD,CAEA,mEACC,mCACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
.ck.ck-search {
|
|
|
& > .ck-labeled-field-view {
|
|
|
& > .ck-labeled-field-view__input-wrapper > .ck-icon {
|
|
|
position: absolute;
|
|
|
top: 50%;
|
|
|
transform: translateY(-50%);
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
left: var(--ck-spacing-medium);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
right: var(--ck-spacing-medium);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-search__reset {
|
|
|
position: absolute;
|
|
|
top: 50%;
|
|
|
transform: translateY(-50%);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck-search__results {
|
|
|
& > .ck-search__info {
|
|
|
& > span:first-child {
|
|
|
display: block;
|
|
|
}
|
|
|
|
|
|
/* Hide the filtered view when nothing was found */
|
|
|
&:not(.ck-hidden) ~ * {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
: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-search__query_with-icon {
|
|
|
--ck-labeled-field-label-default-position-x: var(--ck-search-field-view-horizontal-spacing);
|
|
|
|
|
|
& > .ck-labeled-field-view__input-wrapper > .ck-icon {
|
|
|
opacity: .5;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
|
|
|
& .ck-input {
|
|
|
width: 100%;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
padding-left: var(--ck-search-field-view-horizontal-spacing);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
&:not(.ck-input-text_empty) {
|
|
|
padding-left: var(--ck-search-field-view-horizontal-spacing);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-search__query_with-reset {
|
|
|
--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-search-field-view-horizontal-spacing);
|
|
|
|
|
|
&.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-search__reset {
|
|
|
min-width: auto;
|
|
|
min-height: auto;
|
|
|
|
|
|
background: none;
|
|
|
opacity: .5;
|
|
|
padding: 0;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
right: var(--ck-spacing-medium);
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
left: var(--ck-spacing-medium);
|
|
|
}
|
|
|
|
|
|
&:hover {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-input {
|
|
|
width: 100%;
|
|
|
|
|
|
@mixin ck-dir ltr {
|
|
|
&:not(.ck-input-text_empty) {
|
|
|
padding-right: var(--ck-search-field-view-horizontal-spacing);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@mixin ck-dir rtl {
|
|
|
padding-right: var(--ck-search-field-view-horizontal-spacing);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck-search__results {
|
|
|
min-width: 100%;
|
|
|
|
|
|
& > .ck-search__info {
|
|
|
width: 100%;
|
|
|
padding: var(--ck-spacing-medium) var(--ck-spacing-large);
|
|
|
|
|
|
& * {
|
|
|
white-space: normal;
|
|
|
}
|
|
|
|
|
|
& > span:first-child {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
& > span:last-child {
|
|
|
margin-top: var(--ck-spacing-medium);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
`],sourceRoot:""}]);const f=g},6446:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-spinner-container{display:block;position:relative}.ck.ck-spinner{left:0;margin:0 auto;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:1}:root{--ck-toolbar-spinner-size:18px}.ck.ck-spinner-container{animation:rotate 1.5s linear infinite}.ck.ck-spinner,.ck.ck-spinner-container{height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}.ck.ck-spinner{border:2px solid var(--ck-color-text);border-radius:50%;border-top:2px solid transparent}@keyframes rotate{to{transform:rotate(1turn)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/spinner/spinner.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/spinner/spinner.css"],names:[],mappings:"AASA,yBACC,aAAc,CACd,iBACD,CAEA,eAGC,MAAO,CAEP,aAAc,CAJd,iBAAkB,CAGlB,OAAQ,CAFR,OAAQ,CAIR,0BAA2B,CAC3B,SACD,CCjBA,MACC,8BACD,CAEA,yBAGC,qCACD,CAEA,wCAJC,qCAAsC,CADtC,oCAWD,CANA,eAKC,qCAA6B,CAF7B,iBAAkB,CAElB,gCACD,CAEA,kBACC,GACC,uBACD,CACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-toolbar-spinner-size: 18px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-spinner-container {
|
|
|
display: block;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.ck.ck-spinner {
|
|
|
position: absolute;
|
|
|
top: 50%;
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
margin: 0 auto;
|
|
|
transform: translateY(-50%);
|
|
|
z-index: 1;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-toolbar-spinner-size: 18px;
|
|
|
}
|
|
|
|
|
|
.ck.ck-spinner-container {
|
|
|
width: var(--ck-toolbar-spinner-size);
|
|
|
height: var(--ck-toolbar-spinner-size);
|
|
|
animation: 1.5s infinite rotate linear;
|
|
|
}
|
|
|
|
|
|
.ck.ck-spinner {
|
|
|
width: var(--ck-toolbar-spinner-size);
|
|
|
height: var(--ck-toolbar-spinner-size);
|
|
|
border-radius: 50%;
|
|
|
border: 2px solid var(--ck-color-text);
|
|
|
border-top-color: transparent;
|
|
|
}
|
|
|
|
|
|
@keyframes rotate {
|
|
|
to {
|
|
|
transform: rotate(360deg)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
`],sourceRoot:""}]);const f=g},5224:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck-textarea{overflow-x:hidden}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/textarea/textarea.css"],names:[],mappings:"AASA,aACC,iBACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/*
|
|
|
* This fixes a problem in Firefox when the initial height of the complement does not match the number of rows.
|
|
|
* This bug is especially visible when rows=1.
|
|
|
*/
|
|
|
.ck-textarea {
|
|
|
overflow-x: hidden
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},4176:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-block-toolbar-button {
|
|
|
position: absolute;
|
|
|
z-index: var(--ck-z-default);
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
: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);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},4768:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck.ck-toolbar:focus{outline:none}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eDwGD,CA3GA,qECOE,qCDoGF,CA3GA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAuGD,CApGC,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAGD,qBACC,YACD,CAtGD,qCAyGE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../mixins/_unselectable.css";
|
|
|
|
|
|
.ck.ck-toolbar {
|
|
|
@mixin ck-unselectable;
|
|
|
|
|
|
display: flex;
|
|
|
flex-flow: row nowrap;
|
|
|
align-items: center;
|
|
|
|
|
|
& > .ck-toolbar__items {
|
|
|
display: flex;
|
|
|
flex-flow: row wrap;
|
|
|
align-items: center;
|
|
|
flex-grow: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
& .ck.ck-toolbar__separator {
|
|
|
display: inline-block;
|
|
|
|
|
|
/*
|
|
|
* A leading or trailing separator makes no sense (separates from nothing on one side).
|
|
|
* For instance, it can happen when toolbar items (also separators) are getting grouped one by one and
|
|
|
* moved to another toolbar in the dropdown.
|
|
|
*/
|
|
|
&:first-child,
|
|
|
&:last-child {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& .ck-toolbar__line-break {
|
|
|
flex-basis: 100%;
|
|
|
}
|
|
|
|
|
|
&.ck-toolbar_grouping > .ck-toolbar__items {
|
|
|
flex-wrap: nowrap;
|
|
|
}
|
|
|
|
|
|
&.ck-toolbar_vertical > .ck-toolbar__items {
|
|
|
flex-direction: column;
|
|
|
}
|
|
|
|
|
|
&.ck-toolbar_floating > .ck-toolbar__items {
|
|
|
flex-wrap: nowrap;
|
|
|
}
|
|
|
|
|
|
& > .ck.ck-toolbar__grouped-dropdown {
|
|
|
& > .ck-dropdown__button .ck-dropdown__arrow {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Makes element unselectable.
|
|
|
*/
|
|
|
@define-mixin ck-unselectable {
|
|
|
-moz-user-select: none;
|
|
|
-webkit-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
|
|
|
|
|
|
.ck.ck-toolbar {
|
|
|
@mixin ck-rounded-corners;
|
|
|
|
|
|
background: var(--ck-color-toolbar-background);
|
|
|
padding: 0 var(--ck-spacing-small);
|
|
|
border: 1px solid var(--ck-color-toolbar-border);
|
|
|
|
|
|
& .ck.ck-toolbar__separator {
|
|
|
align-self: stretch;
|
|
|
width: 1px;
|
|
|
min-width: 1px;
|
|
|
background: var(--ck-color-toolbar-border);
|
|
|
|
|
|
/*
|
|
|
* These margins make the separators look better in balloon toolbars (when aligned with the "tip").
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/7493.
|
|
|
*/
|
|
|
margin-top: var(--ck-spacing-small);
|
|
|
margin-bottom: var(--ck-spacing-small);
|
|
|
}
|
|
|
|
|
|
& .ck-toolbar__line-break {
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
& > .ck-toolbar__items {
|
|
|
& > *:not(.ck-toolbar__line-break) {
|
|
|
/* (#11) Separate toolbar items. */
|
|
|
margin-right: var(--ck-spacing-small);
|
|
|
}
|
|
|
|
|
|
/* Don't display a separator after an empty items container, for instance,
|
|
|
when all items were grouped */
|
|
|
&:empty + .ck.ck-toolbar__separator {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),
|
|
|
& > .ck.ck-toolbar__grouped-dropdown {
|
|
|
/* Make sure items wrapped to the next line have v-spacing */
|
|
|
margin-top: var(--ck-spacing-small);
|
|
|
margin-bottom: var(--ck-spacing-small);
|
|
|
}
|
|
|
|
|
|
&.ck-toolbar_vertical {
|
|
|
/* Items in a vertical toolbar span the entire width. */
|
|
|
padding: 0;
|
|
|
|
|
|
/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */
|
|
|
& > .ck-toolbar__items > .ck {
|
|
|
/* Items in a vertical toolbar should span the horizontal space. */
|
|
|
width: 100%;
|
|
|
|
|
|
/* Items in a vertical toolbar should have no margin. */
|
|
|
margin: 0;
|
|
|
|
|
|
/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */
|
|
|
border-radius: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-toolbar_compact {
|
|
|
/* No spacing around items. */
|
|
|
padding: 0;
|
|
|
|
|
|
& > .ck-toolbar__items > * {
|
|
|
/* Compact toolbar items have no spacing between them. */
|
|
|
margin: 0;
|
|
|
|
|
|
/* "Middle" children should have no rounded corners. */
|
|
|
&:not(:first-child):not(:last-child) {
|
|
|
border-radius: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
& > .ck.ck-toolbar__grouped-dropdown {
|
|
|
/*
|
|
|
* Dropdown button has asymmetric padding to fit the arrow.
|
|
|
* This button has no arrow so let's revert that padding back to normal.
|
|
|
*/
|
|
|
& > .ck.ck-button.ck-dropdown__button {
|
|
|
padding-left: var(--ck-spacing-tiny);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* A drop-down containing the nested toolbar with configured items. */
|
|
|
& .ck-toolbar__nested-toolbar-dropdown {
|
|
|
/* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */
|
|
|
& > .ck-dropdown__panel {
|
|
|
min-width: auto;
|
|
|
}
|
|
|
|
|
|
& > .ck-button > .ck-button__label {
|
|
|
max-width: 7em;
|
|
|
width: auto;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
@nest .ck-toolbar-container & {
|
|
|
border: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* stylelint-disable */
|
|
|
|
|
|
/*
|
|
|
* Styles for RTL toolbars.
|
|
|
*
|
|
|
* Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"
|
|
|
* because its parent is not controlled by the editor framework.
|
|
|
*/
|
|
|
[dir="rtl"] .ck.ck-toolbar,
|
|
|
.ck.ck-toolbar[dir="rtl"] {
|
|
|
& > .ck-toolbar__items > .ck {
|
|
|
margin-right: 0;
|
|
|
}
|
|
|
|
|
|
&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {
|
|
|
/* (#11) Separate toolbar items. */
|
|
|
margin-left: var(--ck-spacing-small);
|
|
|
}
|
|
|
|
|
|
& > .ck-toolbar__items > .ck:last-child {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
&.ck-toolbar_compact > .ck-toolbar__items > .ck {
|
|
|
/* No rounded corners on the right side of the first child. */
|
|
|
&:first-child {
|
|
|
border-top-left-radius: 0;
|
|
|
border-bottom-left-radius: 0;
|
|
|
}
|
|
|
|
|
|
/* No rounded corners on the left side of the last child. */
|
|
|
&:last-child {
|
|
|
border-top-right-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Separate the the separator form the grouping dropdown when some items are grouped. */
|
|
|
& > .ck.ck-toolbar__separator {
|
|
|
margin-left: var(--ck-spacing-small);
|
|
|
}
|
|
|
|
|
|
/* Some spacing between the items and the separator before the grouped items dropdown. */
|
|
|
&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {
|
|
|
margin-left: var(--ck-spacing-small);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for LTR toolbars.
|
|
|
*
|
|
|
* Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"
|
|
|
* because its parent is not controlled by the editor framework.
|
|
|
*/
|
|
|
[dir="ltr"] .ck.ck-toolbar,
|
|
|
.ck.ck-toolbar[dir="ltr"] {
|
|
|
& > .ck-toolbar__items > .ck:last-child {
|
|
|
margin-right: 0;
|
|
|
}
|
|
|
|
|
|
&.ck-toolbar_compact > .ck-toolbar__items > .ck {
|
|
|
/* No rounded corners on the right side of the first child. */
|
|
|
&:first-child {
|
|
|
border-top-right-radius: 0;
|
|
|
border-bottom-right-radius: 0;
|
|
|
}
|
|
|
|
|
|
/* No rounded corners on the left side of the last child. */
|
|
|
&:last-child {
|
|
|
border-top-left-radius: 0;
|
|
|
border-bottom-left-radius: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Separate the the separator form the grouping dropdown when some items are grouped. */
|
|
|
& > .ck.ck-toolbar__separator {
|
|
|
margin-right: var(--ck-spacing-small);
|
|
|
}
|
|
|
|
|
|
/* Some spacing between the items and the separator before the grouped items dropdown. */
|
|
|
&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {
|
|
|
margin-right: var(--ck-spacing-small);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* stylelint-enable */
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Implements rounded corner interface for .ck-rounded-corners class.
|
|
|
*
|
|
|
* @see $ck-border-radius
|
|
|
*/
|
|
|
@define-mixin ck-rounded-corners {
|
|
|
border-radius: 0;
|
|
|
|
|
|
@nest .ck-rounded-corners &,
|
|
|
&.ck-rounded-corners {
|
|
|
border-radius: var(--ck-border-radius);
|
|
|
@mixin-content;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},3888:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-tooltip-text-padding:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium);pointer-events:none;z-index:calc(var(--ck-z-modal) + 100)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip.ck-tooltip_multi-line .ck-tooltip__text{display:inline-block;padding:var(--ck-tooltip-text-padding) 0;white-space:break-spaces}.ck.ck-balloon-panel.ck-tooltip{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAKA,gCCGC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,6BAA8B,CAC9B,8DAA+D,CAE/D,kCAAmC,CDRnC,mBAAoB,CAEpB,qCACD,CCOC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAEA,wEAEC,oBAAqB,CACrB,wCAAyC,CAFzC,wBAGD,CApBD,gCAuBC,eAMD,CAHC,uCACC,YACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-balloon-panel.ck-tooltip {
|
|
|
/* Keep tooltips transparent for any interactions. */
|
|
|
pointer-events: none;
|
|
|
|
|
|
z-index: calc( var(--ck-z-modal) + 100 );
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../../../mixins/_rounded.css";
|
|
|
|
|
|
.ck.ck-balloon-panel.ck-tooltip {
|
|
|
--ck-balloon-border-width: 0px;
|
|
|
--ck-balloon-arrow-offset: 0px;
|
|
|
--ck-balloon-arrow-half-width: 4px;
|
|
|
--ck-balloon-arrow-height: 4px;
|
|
|
--ck-tooltip-text-padding: 4px;
|
|
|
--ck-color-panel-background: var(--ck-color-tooltip-background);
|
|
|
|
|
|
padding: 0 var(--ck-spacing-medium);
|
|
|
|
|
|
& .ck-tooltip__text {
|
|
|
font-size: .9em;
|
|
|
line-height: 1.5;
|
|
|
color: var(--ck-color-tooltip-text);
|
|
|
}
|
|
|
|
|
|
&.ck-tooltip_multi-line .ck-tooltip__text {
|
|
|
white-space: break-spaces;
|
|
|
display: inline-block;
|
|
|
padding: var(--ck-tooltip-text-padding) 0;
|
|
|
}
|
|
|
|
|
|
/* Reset balloon panel styles */
|
|
|
box-shadow: none;
|
|
|
|
|
|
/* Hide the default shadow of the .ck-balloon-panel tip */
|
|
|
&::before {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},5167:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-powered-by-line-height:10px;--ck-powered-by-padding-vertical:2px;--ck-powered-by-padding-horizontal:4px;--ck-powered-by-text-color:#4f4f4f;--ck-powered-by-border-radius:var(--ck-border-radius);--ck-powered-by-background:#fff;--ck-powered-by-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-powered-by-balloon{--ck-border-radius:var(--ck-powered-by-border-radius);background:var(--ck-powered-by-background);box-shadow:none;min-height:unset;z-index:calc(var(--ck-z-modal) - 1)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by{line-height:var(--ck-powered-by-line-height)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by a{align-items:center;cursor:pointer;display:flex;filter:grayscale(80%);line-height:var(--ck-powered-by-line-height);opacity:.66;padding:var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-powered-by__label{color:var(--ck-powered-by-text-color);cursor:pointer;font-size:7.5px;font-weight:700;letter-spacing:-.2px;line-height:normal;margin-right:4px;padding-left:2px;text-transform:uppercase}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-icon{cursor:pointer;display:block}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by:hover a{filter:grayscale(0);opacity:1}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_inside]{border-color:transparent}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-powered-by-border-color)}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-color-highlight-background:#ff0;--ck-color-light-red:#fcc;--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{word-wrap:break-word;background:transparent;border:0;margin:0;padding:0;text-decoration:none;transition:none;vertical-align:middle}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_hidden.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_reset.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_zindex.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_transition.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_poweredby.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,2EAGC,qBAAsB,CAEtB,WAAY,CACZ,eAAgB,CAFhB,UAGD,CCPA,MACC,gBAAiB,CACjB,4CACD,CCAA,oDAEC,yBACD,CCNA,MACC,gCAAiC,CACjC,oCAAqC,CACrC,sCAAuC,CACvC,kCAA2C,CAC3C,qDAAsD,CACtD,+BAA4C,CAC5C,yDACD,CAEA,2CACC,qDAAsD,CAGtD,0CAA2C,CAD3C,eAAgB,CAEhB,gBAAiB,CACjB,mCAiDD,CA/CC,6DACC,4CAoCD,CAlCC,+DAGC,kBAAmB,CAFnB,cAAe,CACf,YAAa,CAGb,qBAAsB,CACtB,4CAA6C,CAF7C,WAAY,CAGZ,qFACD,CAEA,mFASC,qCAAsC,CAFtC,cAAe,CANf,eAAgB,CAIhB,eAAiB,CAHjB,oBAAqB,CAMrB,kBAAmB,CAFnB,gBAAiB,CAHjB,gBAAiB,CACjB,wBAOD,CAEA,sEAEC,cAAe,CADf,aAED,CAGC,qEACC,mBAAqB,CACrB,SACD,CAIF,mEACC,wBACD,CAEA,mEACC,2BAA4B,CAC5B,8CACD,CChED,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CAIhE,oCAAyD,CAIzD,yBAAgD,CC3GhD,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJ2GD,CIrGA,2EAaC,oBAAqB,CANrB,sBAAuB,CADvB,QAAS,CAFT,QAAS,CACT,SAAU,CAGV,oBAAqB,CAErB,eAAgB,CADhB,qBAKD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A class which hides an element in DOM.
|
|
|
*/
|
|
|
.ck-hidden {
|
|
|
/* Override selector specificity. Otherwise, all elements with some display
|
|
|
style defined will override this one, which is not a desired result. */
|
|
|
display: none !important;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck.ck-reset,
|
|
|
.ck.ck-reset_all,
|
|
|
.ck-reset_all *:not(.ck-reset_all-excluded *) {
|
|
|
box-sizing: border-box;
|
|
|
width: auto;
|
|
|
height: auto;
|
|
|
position: static;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-z-default: 1;
|
|
|
--ck-z-modal: calc( var(--ck-z-default) + 999 );
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A class that disables all transitions of the element and its children.
|
|
|
*/
|
|
|
.ck-transitions-disabled,
|
|
|
.ck-transitions-disabled * {
|
|
|
transition: none !important;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-powered-by-line-height: 10px;
|
|
|
--ck-powered-by-padding-vertical: 2px;
|
|
|
--ck-powered-by-padding-horizontal: 4px;
|
|
|
--ck-powered-by-text-color: hsl(0, 0%, 31%);
|
|
|
--ck-powered-by-border-radius: var(--ck-border-radius);
|
|
|
--ck-powered-by-background: hsl(0, 0%, 100%);
|
|
|
--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);
|
|
|
|
|
|
box-shadow: none;
|
|
|
background: var(--ck-powered-by-background);
|
|
|
min-height: unset;
|
|
|
z-index: calc( var(--ck-z-modal) - 1 );
|
|
|
|
|
|
& .ck.ck-powered-by {
|
|
|
line-height: var(--ck-powered-by-line-height);
|
|
|
|
|
|
& a {
|
|
|
cursor: pointer;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
opacity: .66;
|
|
|
filter: grayscale(80%);
|
|
|
line-height: var(--ck-powered-by-line-height);
|
|
|
padding: var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal);
|
|
|
}
|
|
|
|
|
|
& .ck-powered-by__label {
|
|
|
font-size: 7.5px;
|
|
|
letter-spacing: -.2px;
|
|
|
padding-left: 2px;
|
|
|
text-transform: uppercase;
|
|
|
font-weight: bold;
|
|
|
margin-right: 4px;
|
|
|
cursor: pointer;
|
|
|
line-height: normal;
|
|
|
color: var(--ck-powered-by-text-color);
|
|
|
|
|
|
}
|
|
|
|
|
|
& .ck-icon {
|
|
|
display: block;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
|
|
|
&:hover {
|
|
|
& a {
|
|
|
filter: grayscale(0%);
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&[class*="position_inside"] {
|
|
|
border-color: transparent;
|
|
|
}
|
|
|
|
|
|
&[class*="position_border"] {
|
|
|
border: var(--ck-focus-ring);
|
|
|
border-color: var(--ck-powered-by-border-color);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-color-base-foreground: hsl(0, 0%, 98%);
|
|
|
--ck-color-base-background: hsl(0, 0%, 100%);
|
|
|
--ck-color-base-border: hsl(220, 6%, 81%);
|
|
|
--ck-color-base-action: hsl(104, 50.2%, 42.5%);
|
|
|
--ck-color-base-focus: hsl(209, 92%, 70%);
|
|
|
--ck-color-base-text: hsl(0, 0%, 20%);
|
|
|
--ck-color-base-active: hsl(218.1, 100%, 58%);
|
|
|
--ck-color-base-active-focus: hsl(218.2, 100%, 52.5%);
|
|
|
--ck-color-base-error: hsl(15, 100%, 43%);
|
|
|
|
|
|
/* -- Generic colors ------------------------------------------------------------------------ */
|
|
|
|
|
|
--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: hsl(212.4, 89.3%, 89%);
|
|
|
--ck-color-focus-disabled-shadow: hsla(209, 90%, 72%,.3);
|
|
|
--ck-color-focus-error-shadow: hsla(9,100%,56%,.3);
|
|
|
--ck-color-text: var(--ck-color-base-text);
|
|
|
--ck-color-shadow-drop: hsla(0, 0%, 0%, 0.15);
|
|
|
--ck-color-shadow-drop-active: hsla(0, 0%, 0%, 0.2);
|
|
|
--ck-color-shadow-inner: hsla(0, 0%, 0%, 0.1);
|
|
|
|
|
|
/* -- Buttons ------------------------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-button-default-background: transparent;
|
|
|
--ck-color-button-default-hover-background: hsl(0, 0%, 94.1%);
|
|
|
--ck-color-button-default-active-background: hsl(0, 0%, 94.1%);
|
|
|
--ck-color-button-default-disabled-background: transparent;
|
|
|
|
|
|
--ck-color-button-on-background: hsl(212, 100%, 97.1%);
|
|
|
--ck-color-button-on-hover-background: hsl(211.7, 100%, 92.9%);
|
|
|
--ck-color-button-on-active-background: hsl(211.7, 100%, 92.9%);
|
|
|
--ck-color-button-on-disabled-background: hsl(211, 15%, 95%);
|
|
|
--ck-color-button-on-color: hsl(218.1, 100%, 58%);
|
|
|
|
|
|
|
|
|
--ck-color-button-action-background: var(--ck-color-base-action);
|
|
|
--ck-color-button-action-hover-background: hsl(104, 53.2%, 40.2%);
|
|
|
--ck-color-button-action-active-background: hsl(104, 53.2%, 40.2%);
|
|
|
--ck-color-button-action-disabled-background: hsl(104, 44%, 58%);
|
|
|
--ck-color-button-action-text: var(--ck-color-base-background);
|
|
|
|
|
|
--ck-color-button-save: hsl(120, 100%, 27%);
|
|
|
--ck-color-button-cancel: hsl(15, 100%, 43%);
|
|
|
|
|
|
--ck-color-switch-button-off-background: hsl(0, 0%, 57.6%);
|
|
|
--ck-color-switch-button-off-hover-background: hsl(0, 0%, 49%);
|
|
|
--ck-color-switch-button-on-background: var(--ck-color-button-action-background);
|
|
|
--ck-color-switch-button-on-hover-background: hsl(104, 53.2%, 40.2%);
|
|
|
--ck-color-switch-button-inner-background: var(--ck-color-base-background);
|
|
|
--ck-color-switch-button-inner-shadow: hsla(0, 0%, 0%, 0.1);
|
|
|
|
|
|
/* -- Dropdown ------------------------------------------------------------------------------ */
|
|
|
|
|
|
--ck-color-dropdown-panel-background: var(--ck-color-base-background);
|
|
|
--ck-color-dropdown-panel-border: var(--ck-color-base-border);
|
|
|
|
|
|
/* -- Input --------------------------------------------------------------------------------- */
|
|
|
|
|
|
--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: hsl(0, 0%, 95%);
|
|
|
--ck-color-input-disabled-border: var(--ck-color-base-border);
|
|
|
--ck-color-input-disabled-text: hsl(0, 0%, 46%);
|
|
|
|
|
|
/* -- List ---------------------------------------------------------------------------------- */
|
|
|
|
|
|
--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);
|
|
|
|
|
|
/* -- Panel --------------------------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-panel-background: var(--ck-color-base-background);
|
|
|
--ck-color-panel-border: var(--ck-color-base-border);
|
|
|
|
|
|
/* -- Toolbar ------------------------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-toolbar-background: var(--ck-color-base-background);
|
|
|
--ck-color-toolbar-border: var(--ck-color-base-border);
|
|
|
|
|
|
/* -- Tooltip ------------------------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-tooltip-background: var(--ck-color-base-text);
|
|
|
--ck-color-tooltip-text: var(--ck-color-base-background);
|
|
|
|
|
|
/* -- Engine -------------------------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-engine-placeholder-text: hsl(0, 0%, 44%);
|
|
|
|
|
|
/* -- Upload -------------------------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-upload-bar-background: hsl(209, 92%, 70%);
|
|
|
|
|
|
/* -- Link -------------------------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-link-default: hsl(240, 100%, 47%);
|
|
|
--ck-color-link-selected-background: hsla(201, 100%, 56%, 0.1);
|
|
|
--ck-color-link-fake-selection: hsla(201, 100%, 56%, 0.3);
|
|
|
|
|
|
/* -- Search result highlight ---------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-highlight-background: hsl(60, 100%, 50%);
|
|
|
|
|
|
/* -- Generic colors ------------------------------------------------------------------------- */
|
|
|
|
|
|
--ck-color-light-red: hsl(0, 100%, 90%);
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
/**
|
|
|
* An opacity value of disabled UI item.
|
|
|
*/
|
|
|
--ck-disabled-opacity: .5;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
/**
|
|
|
* The geometry of the of focused element's outer shadow.
|
|
|
*/
|
|
|
--ck-focus-outer-shadow-geometry: 0 0 0 3px;
|
|
|
|
|
|
/**
|
|
|
* A visual style of focused element's outer shadow.
|
|
|
*/
|
|
|
--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);
|
|
|
|
|
|
/**
|
|
|
* A visual style of focused element's outer shadow (when disabled).
|
|
|
*/
|
|
|
--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);
|
|
|
|
|
|
/**
|
|
|
* A visual style of focused element's outer shadow (when has errors).
|
|
|
*/
|
|
|
--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);
|
|
|
|
|
|
/**
|
|
|
* A visual style of focused element's border or outline.
|
|
|
*/
|
|
|
--ck-focus-ring: 1px solid var(--ck-color-focus-border);
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--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;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
/* This is super-important. This is **manually** adjusted so a button without an icon
|
|
|
is never smaller than a button with icon, additionally making sure that text-less buttons
|
|
|
are perfect squares. The value is also shared by other components which should stay "in-line"
|
|
|
with buttons. */
|
|
|
--ck-ui-component-min-height: 2.3em;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Resets an element, ignoring its children.
|
|
|
*/
|
|
|
.ck.ck-reset,
|
|
|
.ck.ck-reset_all,
|
|
|
.ck-reset_all *:not(.ck-reset_all-excluded *) {
|
|
|
/* Do not include inheritable rules here. */
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
border: 0;
|
|
|
background: transparent;
|
|
|
text-decoration: none;
|
|
|
vertical-align: middle;
|
|
|
transition: none;
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */
|
|
|
word-wrap: break-word;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Resets an element AND its children.
|
|
|
*/
|
|
|
.ck.ck-reset_all,
|
|
|
.ck-reset_all *:not(.ck-reset_all-excluded *) {
|
|
|
/* These are rule inherited by all children elements. */
|
|
|
border-collapse: collapse;
|
|
|
font: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);
|
|
|
color: var(--ck-color-text);
|
|
|
text-align: left;
|
|
|
white-space: nowrap;
|
|
|
cursor: auto;
|
|
|
float: none;
|
|
|
}
|
|
|
|
|
|
.ck-reset_all {
|
|
|
& .ck-rtl *:not(.ck-reset_all-excluded *) {
|
|
|
text-align: right;
|
|
|
}
|
|
|
|
|
|
& iframe:not(.ck-reset_all-excluded *) {
|
|
|
/* For IE */
|
|
|
vertical-align: inherit;
|
|
|
}
|
|
|
|
|
|
& textarea:not(.ck-reset_all-excluded *) {
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
& textarea:not(.ck-reset_all-excluded *),
|
|
|
& input[type="text"]:not(.ck-reset_all-excluded *),
|
|
|
& input[type="password"]:not(.ck-reset_all-excluded *) {
|
|
|
cursor: text;
|
|
|
}
|
|
|
|
|
|
& textarea[disabled]:not(.ck-reset_all-excluded *),
|
|
|
& input[type="text"][disabled]:not(.ck-reset_all-excluded *),
|
|
|
& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
& fieldset:not(.ck-reset_all-excluded *) {
|
|
|
padding: 10px;
|
|
|
border: 2px groove hsl(255, 7%, 88%);
|
|
|
}
|
|
|
|
|
|
& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {
|
|
|
/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */
|
|
|
padding: 0;
|
|
|
border: 0
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Default UI rules for RTL languages.
|
|
|
*/
|
|
|
.ck[dir="rtl"],
|
|
|
.ck[dir="rtl"] .ck {
|
|
|
text-align: right;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* Default border-radius value.
|
|
|
*/
|
|
|
:root{
|
|
|
--ck-border-radius: 2px;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
/**
|
|
|
* A visual style of element's inner shadow (i.e. input).
|
|
|
*/
|
|
|
--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;
|
|
|
|
|
|
/**
|
|
|
* A visual style of element's drop shadow (i.e. panel).
|
|
|
*/
|
|
|
--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);
|
|
|
|
|
|
/**
|
|
|
* A visual style of element's active shadow (i.e. comment or suggestion).
|
|
|
*/
|
|
|
--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--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);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},7153:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widget.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-color-resizer: var(--ck-color-focus-border);
|
|
|
--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);
|
|
|
--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);
|
|
|
|
|
|
--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 {
|
|
|
/* This is neccessary for type around UI to be positioned properly. */
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.ck .ck-widget.ck-widget_with-selection-handle {
|
|
|
/* Make the widget wrapper a relative positioning container for the drag handle. */
|
|
|
position: relative;
|
|
|
|
|
|
& .ck-widget__selection-handle {
|
|
|
position: absolute;
|
|
|
|
|
|
& .ck-icon {
|
|
|
/* Make sure the icon in not a subject to font-size or line-height to avoid
|
|
|
unnecessary spacing around it. */
|
|
|
display: block;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */
|
|
|
&:hover > .ck-widget__selection-handle {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
|
|
|
/* Show the selection handle when the widget is selected, but not for nested widgets. */
|
|
|
&.ck-widget_selected > .ck-widget__selection-handle {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck .ck-size-view {
|
|
|
background: var(--ck-color-resizer-tooltip-background);
|
|
|
color: var(--ck-color-resizer-tooltip-text);
|
|
|
border: 1px solid var(--ck-color-resizer-tooltip-text);
|
|
|
border-radius: var(--ck-resizer-border-radius);
|
|
|
font-size: var(--ck-font-size-tiny);
|
|
|
display: block;
|
|
|
padding: 0 var(--ck-spacing-small);
|
|
|
height: var(--ck-resizer-tooltip-height);
|
|
|
line-height: var(--ck-resizer-tooltip-height);
|
|
|
|
|
|
&.ck-orientation-top-left,
|
|
|
&.ck-orientation-top-right,
|
|
|
&.ck-orientation-bottom-right,
|
|
|
&.ck-orientation-bottom-left,
|
|
|
&.ck-orientation-above-center {
|
|
|
position: absolute;
|
|
|
}
|
|
|
|
|
|
&.ck-orientation-top-left {
|
|
|
top: var(--ck-resizer-tooltip-offset);
|
|
|
left: var(--ck-resizer-tooltip-offset);
|
|
|
}
|
|
|
|
|
|
&.ck-orientation-top-right {
|
|
|
top: var(--ck-resizer-tooltip-offset);
|
|
|
right: var(--ck-resizer-tooltip-offset);
|
|
|
}
|
|
|
|
|
|
&.ck-orientation-bottom-right {
|
|
|
bottom: var(--ck-resizer-tooltip-offset);
|
|
|
right: var(--ck-resizer-tooltip-offset);
|
|
|
}
|
|
|
|
|
|
&.ck-orientation-bottom-left {
|
|
|
bottom: var(--ck-resizer-tooltip-offset);
|
|
|
left: var(--ck-resizer-tooltip-offset);
|
|
|
}
|
|
|
|
|
|
/* Class applied if the widget is too small to contain the size label */
|
|
|
&.ck-orientation-above-center {
|
|
|
top: calc(var(--ck-resizer-tooltip-height) * -1);
|
|
|
left: 50%;
|
|
|
transform: translate(-50%);
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
@import "../mixins/_focus.css";
|
|
|
@import "../mixins/_shadow.css";
|
|
|
|
|
|
: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: hsl(0, 0%, 87%);
|
|
|
--ck-color-widget-hover-border: hsl(43, 100%, 62%);
|
|
|
--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-width: var(--ck-widget-outline-thickness);
|
|
|
outline-style: solid;
|
|
|
outline-color: transparent;
|
|
|
transition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);
|
|
|
|
|
|
&.ck-widget_selected,
|
|
|
&.ck-widget_selected:hover {
|
|
|
outline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);
|
|
|
}
|
|
|
|
|
|
&:hover {
|
|
|
outline-color: var(--ck-color-widget-hover-border);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck .ck-editor__nested-editable {
|
|
|
border: 1px solid transparent;
|
|
|
|
|
|
/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.
|
|
|
These styles show a different border for a blink of an eye, so \`:focus\` need to have same styles applied. */
|
|
|
&.ck-editor__nested-editable_focused,
|
|
|
&:focus {
|
|
|
@mixin ck-focus-ring;
|
|
|
@mixin ck-box-shadow var(--ck-inner-shadow);
|
|
|
|
|
|
background-color: var(--ck-color-widget-editable-focus-background);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck .ck-widget.ck-widget_with-selection-handle {
|
|
|
& .ck-widget__selection-handle {
|
|
|
padding: 4px;
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
/* Background and opacity will be animated as the handler shows up or the widget gets selected. */
|
|
|
background-color: transparent;
|
|
|
opacity: 0;
|
|
|
|
|
|
/* Transition:
|
|
|
* background-color for the .ck-widget_selected state change,
|
|
|
* visibility for hiding the handler,
|
|
|
* opacity for the proper look of the icon when the handler disappears. */
|
|
|
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);
|
|
|
|
|
|
/* Make only top corners round. */
|
|
|
border-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;
|
|
|
|
|
|
/* Place the drag handler outside the widget wrapper. */
|
|
|
transform: translateY(-100%);
|
|
|
left: calc(0px - var(--ck-widget-outline-thickness));
|
|
|
top: 0;
|
|
|
|
|
|
& .ck-icon {
|
|
|
/* Make sure the dimensions of the icon are independent of the fon-size of the content. */
|
|
|
width: var(--ck-widget-handler-icon-size);
|
|
|
height: var(--ck-widget-handler-icon-size);
|
|
|
color: var(--ck-color-widget-drag-handler-icon-color);
|
|
|
|
|
|
/* The "selected" part of the icon is invisible by default */
|
|
|
& .ck-icon__selected-indicator {
|
|
|
opacity: 0;
|
|
|
|
|
|
/* Note: The animation is longer on purpose. Simply feels better. */
|
|
|
transition: opacity 300ms var(--ck-widget-handler-animation-curve);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */
|
|
|
&:hover .ck-icon .ck-icon__selected-indicator {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */
|
|
|
&:hover > .ck-widget__selection-handle {
|
|
|
opacity: 1;
|
|
|
background-color: var(--ck-color-widget-hover-border);
|
|
|
}
|
|
|
|
|
|
/* Show the selection handler when the widget is selected, but not for nested widgets. */
|
|
|
&.ck-widget_selected,
|
|
|
&.ck-widget_selected:hover {
|
|
|
& > .ck-widget__selection-handle {
|
|
|
opacity: 1;
|
|
|
background-color: var(--ck-color-focus-border);
|
|
|
|
|
|
/* When the widget is selected, notify the user using the proper look of the icon. */
|
|
|
& .ck-icon .ck-icon__selected-indicator {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* In a RTL environment, align the selection handler to the right side of the widget */
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
|
|
.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {
|
|
|
left: auto;
|
|
|
right: calc(0px - var(--ck-widget-outline-thickness));
|
|
|
}
|
|
|
|
|
|
/* https://github.com/ckeditor/ckeditor5/issues/6415 */
|
|
|
.ck.ck-editor__editable.ck-read-only .ck-widget {
|
|
|
/* Prevent the :hover outline from showing up because of the used outline-color transition. */
|
|
|
transition: none;
|
|
|
|
|
|
&:not(.ck-widget_selected) {
|
|
|
/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.
|
|
|
* See: https://github.com/ckeditor/ckeditor5/issues/1261
|
|
|
*
|
|
|
* Leave the unit because this custom property is used in calc() by other features.
|
|
|
* See: https://github.com/ckeditor/ckeditor5/issues/6775
|
|
|
*/
|
|
|
--ck-widget-outline-thickness: 0px;
|
|
|
}
|
|
|
|
|
|
&.ck-widget_with-selection-handle {
|
|
|
& .ck-widget__selection-handle,
|
|
|
& .ck-widget__selection-handle:hover {
|
|
|
background: var(--ck-color-widget-blurred-border);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Style the widget when it's selected but the editable it belongs to lost focus. */
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
|
|
.ck.ck-editor__editable.ck-blurred .ck-widget {
|
|
|
&.ck-widget_selected,
|
|
|
&.ck-widget_selected:hover {
|
|
|
outline-color: var(--ck-color-widget-blurred-border);
|
|
|
|
|
|
&.ck-widget_with-selection-handle {
|
|
|
& > .ck-widget__selection-handle,
|
|
|
& > .ck-widget__selection-handle:hover {
|
|
|
background: var(--ck-color-widget-blurred-border);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,
|
|
|
.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {
|
|
|
/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.
|
|
|
In fact, anything with overflow: hidden.
|
|
|
https://github.com/ckeditor/ckeditor5-block-quote/issues/28
|
|
|
https://github.com/ckeditor/ckeditor5-widget/issues/44
|
|
|
https://github.com/ckeditor/ckeditor5-widget/issues/66 */
|
|
|
margin-top: calc(1em + var(--ck-widget-handler-icon-size));
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A visual style of focused element's border.
|
|
|
*/
|
|
|
@define-mixin ck-focus-ring {
|
|
|
/* Disable native outline. */
|
|
|
outline: none;
|
|
|
border: var(--ck-focus-ring)
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* A helper to combine multiple shadows.
|
|
|
*/
|
|
|
@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {
|
|
|
box-shadow: $shadowA, $shadowB;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Gives an element a drop shadow so it looks like a floating panel.
|
|
|
*/
|
|
|
@define-mixin ck-drop-shadow {
|
|
|
@mixin ck-box-shadow var(--ck-drop-shadow);
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},4875:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widgetresize.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck .ck-widget_with-resizer {
|
|
|
/* Make the widget wrapper a relative positioning container for the drag handle. */
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.ck .ck-widget__resizer {
|
|
|
display: none;
|
|
|
position: absolute;
|
|
|
|
|
|
/* The wrapper itself should not interfere with the pointer device, only the handles should. */
|
|
|
pointer-events: none;
|
|
|
|
|
|
left: 0;
|
|
|
top: 0;
|
|
|
}
|
|
|
|
|
|
.ck-focused .ck-widget_with-resizer.ck-widget_selected {
|
|
|
& > .ck-widget__resizer {
|
|
|
display: block;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.ck .ck-widget__resizer__handle {
|
|
|
position: absolute;
|
|
|
|
|
|
/* Resizers are the only UI elements that should interfere with a pointer device. */
|
|
|
pointer-events: all;
|
|
|
|
|
|
&.ck-widget__resizer__handle-top-left,
|
|
|
&.ck-widget__resizer__handle-bottom-right {
|
|
|
cursor: nwse-resize;
|
|
|
}
|
|
|
|
|
|
&.ck-widget__resizer__handle-top-right,
|
|
|
&.ck-widget__resizer__handle-bottom-left {
|
|
|
cursor: nesw-resize;
|
|
|
}
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
:root {
|
|
|
--ck-resizer-size: 10px;
|
|
|
|
|
|
/* Set the resizer with a 50% offset. */
|
|
|
--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 {
|
|
|
width: var(--ck-resizer-size);
|
|
|
height: var(--ck-resizer-size);
|
|
|
background: var(--ck-color-focus-border);
|
|
|
border: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);
|
|
|
border-radius: var(--ck-resizer-border-radius);
|
|
|
|
|
|
&.ck-widget__resizer__handle-top-left {
|
|
|
top: var(--ck-resizer-offset);
|
|
|
left: var(--ck-resizer-offset);
|
|
|
}
|
|
|
|
|
|
&.ck-widget__resizer__handle-top-right {
|
|
|
top: var(--ck-resizer-offset);
|
|
|
right: var(--ck-resizer-offset);
|
|
|
}
|
|
|
|
|
|
&.ck-widget__resizer__handle-bottom-right {
|
|
|
bottom: var(--ck-resizer-offset);
|
|
|
right: var(--ck-resizer-offset);
|
|
|
}
|
|
|
|
|
|
&.ck-widget__resizer__handle-bottom-left {
|
|
|
bottom: var(--ck-resizer-offset);
|
|
|
left: var(--ck-resizer-offset);
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},2347:(C,v,h)=>{h.d(v,{Z:()=>f});var _=h(4015),x=h.n(_),k=h(3645),D=h.n(k),g=D()(x());g.push([C.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widgettypearound.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAkDD,CA1CC,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAoBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAlMF,SAAU,CACV,mBAmME,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:[`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
.ck .ck-widget {
|
|
|
/*
|
|
|
* Styles of the type around buttons
|
|
|
*/
|
|
|
& .ck-widget__type-around__button {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
overflow: hidden;
|
|
|
z-index: var(--ck-z-default);
|
|
|
|
|
|
& svg {
|
|
|
position: absolute;
|
|
|
top: 50%;
|
|
|
left: 50%;
|
|
|
z-index: calc(var(--ck-z-default) + 2);
|
|
|
}
|
|
|
|
|
|
&.ck-widget__type-around__button_before {
|
|
|
/* Place it in the middle of the outline */
|
|
|
top: calc(-0.5 * var(--ck-widget-outline-thickness));
|
|
|
left: min(10%, 30px);
|
|
|
|
|
|
transform: translateY(-50%);
|
|
|
}
|
|
|
|
|
|
&.ck-widget__type-around__button_after {
|
|
|
/* Place it in the middle of the outline */
|
|
|
bottom: calc(-0.5 * var(--ck-widget-outline-thickness));
|
|
|
right: min(10%, 30px);
|
|
|
|
|
|
transform: translateY(50%);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the buttons when:
|
|
|
* - the widget is selected,
|
|
|
* - or the button is being hovered (regardless of the widget state).
|
|
|
*/
|
|
|
&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,
|
|
|
& > .ck-widget__type-around > .ck-widget__type-around__button:hover {
|
|
|
&::after {
|
|
|
content: "";
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
top: 1px;
|
|
|
left: 1px;
|
|
|
z-index: calc(var(--ck-z-default) + 1);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.
|
|
|
*/
|
|
|
& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
|
|
|
display: none;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* When the widget is hovered the "fake caret" would normally be narrower than the
|
|
|
* extra outline displayed around the widget. Let's extend the "fake caret" to match
|
|
|
* the full width of the widget.
|
|
|
*/
|
|
|
&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
|
|
|
left: calc( -1 * var(--ck-widget-outline-thickness) );
|
|
|
right: calc( -1 * var(--ck-widget-outline-thickness) );
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).
|
|
|
*/
|
|
|
&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
|
|
|
top: calc( -1 * var(--ck-widget-outline-thickness) - 1px );
|
|
|
display: block;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).
|
|
|
*/
|
|
|
&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {
|
|
|
bottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );
|
|
|
display: block;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Integration with the read-only mode of the editor.
|
|
|
*/
|
|
|
.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Integration with the restricted editing mode (feature) of the editor.
|
|
|
*/
|
|
|
.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Integration with the #isEnabled property of the WidgetTypeAround plugin.
|
|
|
*/
|
|
|
.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {
|
|
|
display: none;
|
|
|
}
|
|
|
`,`/*
|
|
|
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
|
*/
|
|
|
|
|
|
: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);
|
|
|
}
|
|
|
|
|
|
@define-mixin ck-widget-type-around-button-visible {
|
|
|
opacity: 1;
|
|
|
pointer-events: auto;
|
|
|
}
|
|
|
|
|
|
@define-mixin ck-widget-type-around-button-hidden {
|
|
|
opacity: 0;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
|
|
|
.ck .ck-widget {
|
|
|
/*
|
|
|
* Styles of the type around buttons
|
|
|
*/
|
|
|
& .ck-widget__type-around__button {
|
|
|
width: var(--ck-widget-type-around-button-size);
|
|
|
height: var(--ck-widget-type-around-button-size);
|
|
|
background: var(--ck-color-widget-type-around-button);
|
|
|
border-radius: 100px;
|
|
|
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);
|
|
|
|
|
|
@mixin ck-widget-type-around-button-hidden;
|
|
|
|
|
|
& svg {
|
|
|
width: 10px;
|
|
|
height: 8px;
|
|
|
transform: translate(-50%,-50%);
|
|
|
transition: transform .5s ease;
|
|
|
margin-top: 1px;
|
|
|
|
|
|
& * {
|
|
|
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;
|
|
|
}
|
|
|
|
|
|
& line {
|
|
|
stroke-dasharray: 7;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&:hover {
|
|
|
/*
|
|
|
* Display the "sonar" around the button when hovered.
|
|
|
*/
|
|
|
animation: ck-widget-type-around-button-sonar 1s ease infinite;
|
|
|
|
|
|
/*
|
|
|
* Animate active button's icon.
|
|
|
*/
|
|
|
& svg {
|
|
|
& polyline {
|
|
|
animation: ck-widget-type-around-arrow-dash 2s linear;
|
|
|
}
|
|
|
|
|
|
& line {
|
|
|
animation: ck-widget-type-around-arrow-tip-dash 2s linear;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Show type around buttons when the widget gets selected or being hovered.
|
|
|
*/
|
|
|
&.ck-widget_selected,
|
|
|
&:hover {
|
|
|
& > .ck-widget__type-around > .ck-widget__type-around__button {
|
|
|
@mixin ck-widget-type-around-button-visible;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the buttons when the widget is NOT selected (but the buttons are visible
|
|
|
* and still can be hovered).
|
|
|
*/
|
|
|
&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {
|
|
|
background: var(--ck-color-widget-type-around-button-hover);
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the buttons when:
|
|
|
* - the widget is selected,
|
|
|
* - or the button is being hovered (regardless of the widget state).
|
|
|
*/
|
|
|
&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,
|
|
|
& > .ck-widget__type-around > .ck-widget__type-around__button:hover {
|
|
|
background: var(--ck-color-widget-type-around-button-active);
|
|
|
|
|
|
&::after {
|
|
|
width: calc(var(--ck-widget-type-around-button-size) - 2px);
|
|
|
height: calc(var(--ck-widget-type-around-button-size) - 2px);
|
|
|
border-radius: 100px;
|
|
|
background: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the "before" button when the widget has a selection handle. Because some space
|
|
|
* is consumed by the handle, the button must be moved slightly to the right to let it breathe.
|
|
|
*/
|
|
|
&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {
|
|
|
margin-left: 20px;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.
|
|
|
*/
|
|
|
& .ck-widget__type-around__fake-caret {
|
|
|
pointer-events: none;
|
|
|
height: 1px;
|
|
|
animation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;
|
|
|
|
|
|
/*
|
|
|
* The semi-transparent-outline+background combo improves the contrast
|
|
|
* when the background underneath the fake caret is dark.
|
|
|
*/
|
|
|
outline: solid 1px hsla(0, 0%, 100%, .5);
|
|
|
background: var(--ck-color-base-text);
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).
|
|
|
* Despite the widget being physically selected in the model, its outline should disappear.
|
|
|
*/
|
|
|
&.ck-widget_selected {
|
|
|
&.ck-widget_type-around_show-fake-caret_before,
|
|
|
&.ck-widget_type-around_show-fake-caret_after {
|
|
|
outline-color: transparent;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
&.ck-widget_type-around_show-fake-caret_before,
|
|
|
&.ck-widget_type-around_show-fake-caret_after {
|
|
|
/*
|
|
|
* When the "fake caret" is visible we simulate that the widget is not selected
|
|
|
* (despite being physically selected), so the outline color should be for the
|
|
|
* unselected widget.
|
|
|
*/
|
|
|
&.ck-widget_selected:hover {
|
|
|
outline-color: var(--ck-color-widget-hover-border);
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).
|
|
|
* In this state, the type around buttons would collide with the fake carets so they should disappear.
|
|
|
*/
|
|
|
& > .ck-widget__type-around > .ck-widget__type-around__button {
|
|
|
@mixin ck-widget-type-around-button-hidden;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Fake horizontal caret integration with the selection handle. When the caret is visible, simply
|
|
|
* hide the handle because it intersects with the caret (and does not make much sense anyway).
|
|
|
*/
|
|
|
&.ck-widget_with-selection-handle {
|
|
|
&.ck-widget_selected,
|
|
|
&.ck-widget_selected:hover {
|
|
|
& > .ck-widget__selection-handle {
|
|
|
opacity: 0
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Fake horizontal caret integration with the resize UI. When the caret is visible, simply
|
|
|
* hide the resize UI because it creates too much noise. It can be visible when the user
|
|
|
* hovers the widget, though.
|
|
|
*/
|
|
|
&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {
|
|
|
opacity: 0
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the "before" button when the widget has a selection handle in an RTL environment.
|
|
|
* The selection handler is aligned to the right side of the widget so there is no need to create
|
|
|
* additional space for it next to the "before" button.
|
|
|
*/
|
|
|
.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;
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Hide type around buttons when the widget is selected as a child of a selected
|
|
|
* nested editable (e.g. mulit-cell table selection).
|
|
|
*
|
|
|
* See https://github.com/ckeditor/ckeditor5/issues/7263.
|
|
|
*/
|
|
|
.ck-editor__nested-editable.ck-editor__editable_selected {
|
|
|
& .ck-widget {
|
|
|
&.ck-widget_selected,
|
|
|
&:hover {
|
|
|
& > .ck-widget__type-around > .ck-widget__type-around__button {
|
|
|
@mixin ck-widget-type-around-button-hidden;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).
|
|
|
*/
|
|
|
.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);
|
|
|
|
|
|
& svg * {
|
|
|
stroke: hsl(0,0%,60%);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes ck-widget-type-around-arrow-dash {
|
|
|
0% {
|
|
|
stroke-dashoffset: 10;
|
|
|
}
|
|
|
20%, 100% {
|
|
|
stroke-dashoffset: 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@keyframes ck-widget-type-around-arrow-tip-dash {
|
|
|
0%, 20% {
|
|
|
stroke-dashoffset: 7;
|
|
|
}
|
|
|
40%, 100% {
|
|
|
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));
|
|
|
}
|
|
|
100% {
|
|
|
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;
|
|
|
}
|
|
|
100% {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
`],sourceRoot:""}]);const f=g},3645:C=>{C.exports=function(v){var h=[];return h.toString=function(){return this.map(function(x){var k=v(x);return x[2]?"@media ".concat(x[2]," {").concat(k,"}"):k}).join("")},h.i=function(_,x,k){typeof _=="string"&&(_=[[null,_,""]]);var D={};if(k)for(var g=0;g<this.length;g++){var f=this[g][0];f!=null&&(D[f]=!0)}for(var A=0;A<_.length;A++){var y=[].concat(_[A]);k&&D[y[0]]||(x&&(y[2]?y[2]="".concat(x," and ").concat(y[2]):y[2]=x),h.push(y))}},h}},4015:C=>{function v(g,f){return D(g)||k(g,f)||_(g,f)||h()}function h(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _(g,f){if(g){if(typeof g=="string")return x(g,f);var A=Object.prototype.toString.call(g).slice(8,-1);if(A==="Object"&&g.constructor&&(A=g.constructor.name),A==="Map"||A==="Set")return Array.from(g);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return x(g,f)}}function x(g,f){(f==null||f>g.length)&&(f=g.length);for(var A=0,y=new Array(f);A<f;A++)y[A]=g[A];return y}function k(g,f){var A=g&&(typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"]);if(A!=null){var y=[],E=!0,I=!1,N,F;try{for(A=A.call(g);!(E=(N=A.next()).done)&&(y.push(N.value),!(f&&y.length===f));E=!0);}catch(W){I=!0,F=W}finally{try{!E&&A.return!=null&&A.return()}finally{if(I)throw F}}return y}}function D(g){if(Array.isArray(g))return g}C.exports=function(f){var A=v(f,4),y=A[1],E=A[3];if(!E)return y;if(typeof btoa=="function"){var I=btoa(unescape(encodeURIComponent(JSON.stringify(E)))),N="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(I),F="/*# ".concat(N," */"),W=E.sources.map(function(j){return"/*# sourceURL=".concat(E.sourceRoot||"").concat(j," */")});return[y].concat(W).concat([F]).join(`
|
|
|
`)}return[y].join(`
|
|
|
`)}},3379:(C,v,h)=>{var _=function(){var $;return function(){return typeof $>"u"&&($=!!(window&&document&&document.all&&!window.atob)),$}}(),x=function(){var $={};return function(ot){if(typeof $[ot]>"u"){var rt=document.querySelector(ot);if(window.HTMLIFrameElement&&rt instanceof window.HTMLIFrameElement)try{rt=rt.contentDocument.head}catch{rt=null}$[ot]=rt}return $[ot]}}(),k=[];function D(j){for(var $=-1,Z=0;Z<k.length;Z++)if(k[Z].identifier===j){$=Z;break}return $}function g(j,$){for(var Z={},ot=[],rt=0;rt<j.length;rt++){var Ct=j[rt],zt=$.base?Ct[0]+$.base:Ct[0],se=Z[zt]||0,He="".concat(zt," ").concat(se);Z[zt]=se+1;var Ot=D(He),xt={css:Ct[1],media:Ct[2],sourceMap:Ct[3]};Ot!==-1?(k[Ot].references++,k[Ot].updater(xt)):k.push({identifier:He,updater:W(xt,$),references:1}),ot.push(He)}return ot}function f(j){var $=document.createElement("style"),Z=j.attributes||{};if(typeof Z.nonce>"u"){var ot=h.nc;ot&&(Z.nonce=ot)}if(Object.keys(Z).forEach(function(Ct){$.setAttribute(Ct,Z[Ct])}),typeof j.insert=="function")j.insert($);else{var rt=x(j.insert||"head");if(!rt)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");rt.appendChild($)}return $}function A(j){if(j.parentNode===null)return!1;j.parentNode.removeChild(j)}var y=function(){var $=[];return function(ot,rt){return $[ot]=rt,$.filter(Boolean).join(`
|
|
|
`)}}();function E(j,$,Z,ot){var rt=Z?"":ot.media?"@media ".concat(ot.media," {").concat(ot.css,"}"):ot.css;if(j.styleSheet)j.styleSheet.cssText=y($,rt);else{var Ct=document.createTextNode(rt),zt=j.childNodes;zt[$]&&j.removeChild(zt[$]),zt.length?j.insertBefore(Ct,zt[$]):j.appendChild(Ct)}}function I(j,$,Z){var ot=Z.css,rt=Z.media,Ct=Z.sourceMap;if(rt?j.setAttribute("media",rt):j.removeAttribute("media"),Ct&&typeof btoa<"u"&&(ot+=`
|
|
|
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(Ct))))," */")),j.styleSheet)j.styleSheet.cssText=ot;else{for(;j.firstChild;)j.removeChild(j.firstChild);j.appendChild(document.createTextNode(ot))}}var N=null,F=0;function W(j,$){var Z,ot,rt;if($.singleton){var Ct=F++;Z=N||(N=f($)),ot=E.bind(null,Z,Ct,!1),rt=E.bind(null,Z,Ct,!0)}else Z=f($),ot=I.bind(null,Z,$),rt=function(){A(Z)};return ot(j),function(se){if(se){if(se.css===j.css&&se.media===j.media&&se.sourceMap===j.sourceMap)return;ot(j=se)}else rt()}}C.exports=function(j,$){$=$||{},!$.singleton&&typeof $.singleton!="boolean"&&($.singleton=_()),j=j||[];var Z=g(j,$);return function(rt){if(rt=rt||[],Object.prototype.toString.call(rt)==="[object Array]"){for(var Ct=0;Ct<Z.length;Ct++){var zt=Z[Ct],se=D(zt);k[se].references--}for(var He=g(rt,$),Ot=0;Ot<Z.length;Ot++){var xt=Z[Ot],qt=D(xt);k[qt].references===0&&(k[qt].updater(),k.splice(qt,1))}Z=He}}}}},Ye={};function L(C){var v=Ye[C];if(v!==void 0)return v.exports;var h=Ye[C]={id:C,exports:{}};return to[C](h,h.exports,L),h.exports}L.n=C=>{var v=C&&C.__esModule?()=>C.default:()=>C;return L.d(v,{a:v}),v},L.d=(C,v)=>{for(var h in v)L.o(v,h)&&!L.o(C,h)&&Object.defineProperty(C,h,{enumerable:!0,get:v[h]})},L.o=(C,v)=>Object.prototype.hasOwnProperty.call(C,v),L.nc=void 0;var Zo={};return(()=>{L.d(Zo,{default:()=>QL});function C({emitter:o,activator:t,callback:e,contextElements:n}){o.listenTo(document,"mousedown",(i,r)=>{if(!t())return;const s=typeof r.composedPath=="function"?r.composedPath():[],a=typeof n=="function"?n():n;for(const c of a)if(c.contains(r.target)||s.includes(c))return;e()})}function v(o){class t extends o{disableCssTransitions(){this._isCssTransitionsDisabled=!0}enableCssTransitions(){this._isCssTransitionsDisabled=!1}constructor(...n){super(...n),this.set("_isCssTransitionsDisabled",!1),this.initializeCssTransitionDisablerMixin()}initializeCssTransitionDisablerMixin(){this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}}return t}function h({view:o}){o.listenTo(o.element,"submit",(t,e)=>{e.preventDefault(),o.fire("submit")},{useCapture:!0})}function _({keystrokeHandler:o,focusTracker:t,gridItems:e,numberOfColumns:n,uiLanguageDirection:i}){const r=typeof n=="number"?()=>n:n;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}));function s(l){return d=>{const u=e.find(b=>b.element===t.focusedElement),m=e.getIndex(u),p=l(m,e);e.get(p).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}}function x(){try{return navigator.userAgent.toLowerCase()}catch{return""}}const k=x(),g={isMac:f(k),isWindows:A(k),isGecko:y(k),isSafari:E(k),isiOS:I(k),isAndroid:N(k),isBlink:F(k),features:{isRegExpUnicodePropertySupported:W()}};function f(o){return o.indexOf("macintosh")>-1}function A(o){return o.indexOf("windows")>-1}function y(o){return!!o.match(/gecko\/\d+/)}function E(o){return o.indexOf(" applewebkit/")>-1&&o.indexOf("chrome")===-1}function I(o){return!!o.match(/iphone|ipad/i)||f(o)&&navigator.maxTouchPoints>0}function N(o){return o.indexOf("android")>-1}function F(o){return o.indexOf("chrome/")>-1&&o.indexOf("edge/")<0}function W(){let o=!1;try{o="ć".search(new RegExp("[\\p{L}]","u"))===0}catch{}return o}function j(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=$(i,r,e);return n?Ct(s,r.length):rt(r,s)}function $(o,t,e){const n=Z(o,t,e);if(n===-1)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const i=ot(o,n),r=ot(t,n),s=Z(i,r,e),a=o.length-s,c=t.length-s;return{firstIndex:n,lastIndexOld:a,lastIndexNew:c}}function Z(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 ot(o,t){return o.slice(t).reverse()}function rt(o,t){const e=[],{firstIndex:n,lastIndexOld:i,lastIndexNew:r}=t;return r-n>0&&e.push({index:n,type:"insert",values:o.slice(n,r)}),i-n>0&&e.push({index:n+(r-n),type:"delete",howMany:i-n}),e}function Ct(o,t){const{firstIndex:e,lastIndexOld:n,lastIndexNew:i}=o;if(e===-1)return Array(t).fill("equal");let r=[];return e>0&&(r=r.concat(Array(e).fill("equal"))),i-e>0&&(r=r.concat(Array(i-e).fill("insert"))),n-e>0&&(r=r.concat(Array(n-e).fill("delete"))),i<t&&(r=r.concat(Array(t-i).fill("equal"))),r}function zt(o,t,e){e=e||function(S,B){return S===B};const n=o.length,i=t.length;if(n>200||i>200||n+i>300)return zt.fastDiff(o,t,e,!0);let r,s;if(i<n){const S=o;o=t,t=S,r="delete",s="insert"}else r="insert",s="delete";const a=o.length,c=t.length,l=c-a,d={},u={};function m(S){const B=(u[S-1]!==void 0?u[S-1]:-1)+1,z=u[S+1]!==void 0?u[S+1]:-1,V=B>z?-1:1;d[S+V]&&(d[S]=d[S+V].slice(0)),d[S]||(d[S]=[]),d[S].push(B>z?r:s);let X=Math.max(B,z),at=X-S;for(;at<a&&X<c&&e(o[at],t[X]);)at++,X++,d[S].push("equal");return X}let p=0,b;do{for(b=-p;b<l;b++)u[b]=m(b);for(b=l+p;b>l;b--)u[b]=m(b);u[l]=m(l),p++}while(u[l]!==c);return d[l].slice(1)}zt.fastDiff=j;function se(){return function o(){o.called=!0}}const He=se;class Ot{constructor(t,e){this.source=t,this.name=e,this.path=[],this.stop=He(),this.off=He()}}const xt=new Array(256).fill("").map((o,t)=>("0"+t.toString(16)).slice(-2));function qt(){const o=Math.random()*4294967296>>>0,t=Math.random()*4294967296>>>0,e=Math.random()*4294967296>>>0,n=Math.random()*4294967296>>>0;return"e"+xt[o>>0&255]+xt[o>>8&255]+xt[o>>16&255]+xt[o>>24&255]+xt[t>>0&255]+xt[t>>8&255]+xt[t>>16&255]+xt[t>>24&255]+xt[e>>0&255]+xt[e>>8&255]+xt[e>>16&255]+xt[e>>24&255]+xt[n>>0&255]+xt[n>>8&255]+xt[n>>16&255]+xt[n>>24&255]}const Qt={get(o="normal"){return typeof o!="number"?this[o]||this.normal:o},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function tl(o,t){const e=Qt.get(t.priority);for(let n=0;n<o.length;n++)if(Qt.get(o[n].priority)<e){o.splice(n,0,t);return}o.push(t)}const pb="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class w extends Error{constructor(t,e,n){super(kb(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 w(t.message,e);throw n.stack=t.stack,n}}function eO(o,t){}function el(o){return`
|
|
|
Read more: ${pb}#error-${o}`}function kb(o,t){const e=new WeakSet,i=t?` ${JSON.stringify(t,(s,a)=>{if(typeof a=="object"&&a!==null){if(e.has(a))return`[object ${a.constructor.name}]`;e.add(a)}return a})}`:"",r=el(o);return o+i+r}function nO(o,t){const e=el(o);return t?[o,t,e]:[o,e]}const bb="40.2.0",wb=new Date(2023,11,12);if(globalThis.CKEDITOR_VERSION)throw new w("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=bb;const Cn=Symbol("listeningTo"),ar=Symbol("emitterId"),Be=Symbol("delegations"),nl=ct(Object);function ct(o){if(!o)return nl;class t extends o{on(n,i,r){this.listenTo(this,n,i,r)}once(n,i,r){let s=!1;const a=(c,...l)=>{s||(s=!0,c.off(),i.call(this,c,...l))};this.listenTo(this,n,a,r)}off(n,i){this.stopListening(this,n,i)}listenTo(n,i,r,s={}){let a,c;this[Cn]||(this[Cn]={});const l=this[Cn];cr(n)||ol(n);const d=cr(n);(a=l[d])||(a=l[d]={emitter:n,callbacks:{}}),(c=a.callbacks[i])||(c=a.callbacks[i]=[]),c.push(r),vb(this,n,i,r,s)}stopListening(n,i,r){const s=this[Cn];let a=n&&cr(n);const c=s&&a?s[a]:void 0,l=c&&i?c.callbacks[i]:void 0;if(!(!s||n&&!c||i&&!l))if(r)dr(this,n,i,r),l.indexOf(r)!==-1&&(l.length===1?delete c.callbacks[i]:dr(this,n,i,r));else if(l){for(;r=l.pop();)dr(this,n,i,r);delete c.callbacks[i]}else if(c){for(i in c.callbacks)this.stopListening(n,i);delete s[a]}else{for(a in s)this.stopListening(s[a].emitter);delete this[Cn]}}fire(n,...i){try{const r=n instanceof Ot?n:new Ot(this,n),s=r.name;let a=rl(this,s);if(r.path.push(this),a){const l=[r,...i];a=Array.from(a);for(let d=0;d<a.length&&(a[d].callback.apply(this,l),r.off.called&&(delete r.off.called,this._removeEventListener(s,a[d].callback)),!r.stop.called);d++);}const c=this[Be];if(c){const l=c.get(s),d=c.get("*");l&&sl(l,r,i),d&&sl(d,r,i)}return r.return}catch(r){w.rethrowUnexpectedError(r,this)}}delegate(...n){return{to:(i,r)=>{this[Be]||(this[Be]=new Map),n.forEach(s=>{const a=this[Be].get(s);a?a.set(i,r):this[Be].set(s,new Map([[i,r]]))})}}}stopDelegating(n,i){if(this[Be])if(!n)this[Be].clear();else if(!i)this[Be].delete(n);else{const r=this[Be].get(n);r&&r.delete(i)}}_addEventListener(n,i,r){_b(this,n);const s=lr(this,n),a=Qt.get(r.priority),c={callback:i,priority:a};for(const l of s)tl(l,c)}_removeEventListener(n,i){const r=lr(this,n);for(const s of r)for(let a=0;a<s.length;a++)s[a].callback==i&&(s.splice(a,1),a--)}}return t}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(o=>{ct[o]=nl.prototype[o]});function Ab(o,t){const e=o[Cn];return e&&e[t]?e[t].emitter:null}function ol(o,t){o[ar]||(o[ar]=t||qt())}function cr(o){return o[ar]}function il(o){return o._events||Object.defineProperty(o,"_events",{value:{}}),o._events}function Cb(){return{callbacks:[],childEvents:[]}}function _b(o,t){const e=il(o);if(e[t])return;let n=t,i=null;const r=[];for(;n!==""&&!e[n];)e[n]=Cb(),r.push(e[n]),i&&e[n].childEvents.push(i),i=n,n=n.substr(0,n.lastIndexOf(":"));if(n!==""){for(const s of r)s.callbacks=e[n].callbacks.slice();e[n].childEvents.push(i)}}function lr(o,t){const e=il(o)[t];if(!e)return[];let n=[e.callbacks];for(let i=0;i<e.childEvents.length;i++){const r=lr(o,e.childEvents[i]);n=n.concat(r)}return n}function rl(o,t){let e;return!o._events||!(e=o._events[t])||!e.callbacks.length?t.indexOf(":")>-1?rl(o,t.substr(0,t.lastIndexOf(":"))):null:e.callbacks}function sl(o,t,e){for(let[n,i]of o){i?typeof i=="function"&&(i=i(t.name)):i=t.name;const r=new Ot(t.source,i);r.path=[...t.path],n.fire(r,...e)}}function vb(o,t,e,n,i){t._addEventListener?t._addEventListener(e,n,i):o._addEventListener.call(t,e,n,i)}function dr(o,t,e,n){t._removeEventListener?t._removeEventListener(e,n):o._removeEventListener.call(t,e,n)}function yb(o){var t=typeof o;return o!=null&&(t=="object"||t=="function")}const bt=yb,Ko=Symbol("observableProperties"),Yo=Symbol("boundObservables"),Qo=Symbol("boundProperties"),_n=Symbol("decoratedMethods"),al=Symbol("decoratedOriginal"),cl=st(ct());function st(o){if(!o)return cl;class t extends o{set(n,i){if(bt(n)){Object.keys(n).forEach(s=>{this.set(s,n[s])},this);return}ur(this);const r=this[Ko];if(n in this&&!r.has(n))throw new w("observable-set-cannot-override",this);Object.defineProperty(this,n,{enumerable:!0,configurable:!0,get(){return r.get(n)},set(s){const a=r.get(n);let c=this.fire(`set:${n}`,n,s,a);c===void 0&&(c=s),(a!==c||!r.has(n))&&(r.set(n,c),this.fire(`change:${n}`,n,c,a))}}),this[n]=i}bind(...n){if(!n.length||!ll(n))throw new w("observable-bind-wrong-properties",this);if(new Set(n).size!==n.length)throw new w("observable-bind-duplicate-properties",this);ur(this);const i=this[Qo];n.forEach(s=>{if(i.has(s))throw new w("observable-bind-rebind",this)});const r=new Map;return n.forEach(s=>{const a={property:s,to:[]};i.set(s,a),r.set(s,a)}),{to:xb,toMany:Eb,_observable:this,_bindProperties:n,_to:[],_bindings:r}}unbind(...n){if(!this[Ko])return;const i=this[Qo],r=this[Yo];if(n.length){if(!ll(n))throw new w("observable-unbind-wrong-properties",this);n.forEach(s=>{const a=i.get(s);a&&(a.to.forEach(([c,l])=>{const d=r.get(c),u=d[l];u.delete(a),u.size||delete d[l],Object.keys(d).length||(r.delete(c),this.stopListening(c,"change"))}),i.delete(s))})}else r.forEach((s,a)=>{this.stopListening(a,"change")}),r.clear(),i.clear()}decorate(n){ur(this);const i=this[n];if(!i)throw new w("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:n});this.on(n,(r,s)=>{r.return=i.apply(this,s)}),this[n]=function(...r){return this.fire(n,r)},this[n][al]=i,this[_n]||(this[_n]=[]),this[_n].push(n)}stopListening(n,i,r){if(!n&&this[_n]){for(const s of this[_n])this[s]=this[s][al];delete this[_n]}super.stopListening(n,i,r)}}return t}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(o=>{st[o]=cl.prototype[o]});function ur(o){o[Ko]||(Object.defineProperty(o,Ko,{value:new Map}),Object.defineProperty(o,Yo,{value:new Map}),Object.defineProperty(o,Qo,{value:new Map}))}function xb(...o){const t=Sb(...o),e=Array.from(this._bindings.keys()),n=e.length;if(!t.callback&&t.to.length>1)throw new w("observable-bind-to-no-callback",this);if(n>1&&t.callback)throw new w("observable-bind-to-extra-callback",this);t.to.forEach(i=>{if(i.properties.length&&i.properties.length!==n)throw new w("observable-bind-to-properties-length",this);i.properties.length||(i.properties=this._bindProperties)}),this._to=t.to,t.callback&&(this._bindings.get(e[0]).callback=t.callback),Mb(this._observable,this._to),Ib(this),this._bindProperties.forEach(i=>{dl(this._observable,i)})}function Eb(o,t,e){if(this._bindings.size>1)throw new w("observable-bind-to-many-not-one-binding",this);this.to(...Db(o,t),e)}function Db(o,t){const e=o.map(n=>[n,t]);return Array.prototype.concat.apply([],e)}function ll(o){return o.every(t=>typeof t=="string")}function Sb(...o){if(!o.length)throw new w("observable-bind-to-parse-error",null);const t={to:[]};let e;return typeof o[o.length-1]=="function"&&(t.callback=o.pop()),o.forEach(n=>{if(typeof n=="string")e.properties.push(n);else if(typeof n=="object")e={observable:n,properties:[]},t.to.push(e);else throw new w("observable-bind-to-parse-error",null)}),t}function Tb(o,t,e,n){const i=o[Yo],r=i.get(e),s=r||{};s[n]||(s[n]=new Set),s[n].add(t),r||i.set(e,s)}function Ib(o){let t;o._bindings.forEach((e,n)=>{o._to.forEach(i=>{t=i.properties[e.callback?0:o._bindProperties.indexOf(n)],e.to.push([i.observable,t]),Tb(o._observable,e,i.observable,t)})})}function dl(o,t){const n=o[Qo].get(t);let i;n.callback?i=n.callback.apply(o,n.to.map(r=>r[0][r[1]])):(i=n.to[0],i=i[0][i[1]]),Object.prototype.hasOwnProperty.call(o,t)?o[t]=i:o.set(t,i)}function Mb(o,t){t.forEach(e=>{const n=o[Yo];let i;n.get(e.observable)||o.listenTo(e.observable,"change",(r,s)=>{i=n.get(e.observable)[s],i&&i.forEach(a=>{dl(o,a.property)})})})}class ul{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 hr(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 Jt(o){return!!(o&&o[Symbol.iterator])}var Bb=typeof rr=="object"&&rr&&rr.Object===Object&&rr;const hl=Bb;var Nb=typeof self=="object"&&self&&self.Object===Object&&self,zb=hl||Nb||Function("return this")();const me=zb;var Pb=me.Symbol;const _e=Pb;var gl=Object.prototype,Lb=gl.hasOwnProperty,Ob=gl.toString,eo=_e?_e.toStringTag:void 0;function Rb(o){var t=Lb.call(o,eo),e=o[eo];try{o[eo]=void 0;var n=!0}catch{}var i=Ob.call(o);return n&&(t?o[eo]=e:delete o[eo]),i}const jb=Rb;var Fb=Object.prototype,Vb=Fb.toString;function Hb(o){return Vb.call(o)}const Ub=Hb;var Gb="[object Null]",qb="[object Undefined]",ml=_e?_e.toStringTag:void 0;function Wb(o){return o==null?o===void 0?qb:Gb:ml&&ml in Object(o)?jb(o):Ub(o)}const Ue=Wb;var $b=Array.isArray;const Gt=$b;function Zb(o){return o!=null&&typeof o=="object"}const ae=Zb;var Kb="[object String]";function Yb(o){return typeof o=="string"||!Gt(o)&&ae(o)&&Ue(o)==Kb}const fl=Yb;function no(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]);(fl(n)||!Jt(n))&&(n=[n]);for(let s of n)fl(s)&&(s=o.createTextNode(s)),r.appendChild(s);return r}function Qb(o,t){return function(e){return o(t(e))}}const pl=Qb;var Jb=pl(Object.getPrototypeOf,Object);const gr=Jb;var Xb="[object Object]",tw=Function.prototype,ew=Object.prototype,kl=tw.toString,nw=ew.hasOwnProperty,ow=kl.call(Object);function iw(o){if(!ae(o)||Ue(o)!=Xb)return!1;var t=gr(o);if(t===null)return!0;var e=nw.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&kl.call(e)==ow}const Wt=iw;function rw(){this.__data__=[],this.size=0}const sw=rw;function aw(o,t){return o===t||o!==o&&t!==t}const oo=aw;function cw(o,t){for(var e=o.length;e--;)if(oo(o[e][0],t))return e;return-1}const Jo=cw;var lw=Array.prototype,dw=lw.splice;function uw(o){var t=this.__data__,e=Jo(t,o);if(e<0)return!1;var n=t.length-1;return e==n?t.pop():dw.call(t,e,1),--this.size,!0}const hw=uw;function gw(o){var t=this.__data__,e=Jo(t,o);return e<0?void 0:t[e][1]}const mw=gw;function fw(o){return Jo(this.__data__,o)>-1}const pw=fw;function kw(o,t){var e=this.__data__,n=Jo(e,o);return n<0?(++this.size,e.push([o,t])):e[n][1]=t,this}const bw=kw;function vn(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])}}vn.prototype.clear=sw,vn.prototype.delete=hw,vn.prototype.get=mw,vn.prototype.has=pw,vn.prototype.set=bw;const Xo=vn;function ww(){this.__data__=new Xo,this.size=0}const Aw=ww;function Cw(o){var t=this.__data__,e=t.delete(o);return this.size=t.size,e}const _w=Cw;function vw(o){return this.__data__.get(o)}const yw=vw;function xw(o){return this.__data__.has(o)}const Ew=xw;var Dw="[object AsyncFunction]",Sw="[object Function]",Tw="[object GeneratorFunction]",Iw="[object Proxy]";function Mw(o){if(!bt(o))return!1;var t=Ue(o);return t==Sw||t==Tw||t==Dw||t==Iw}const Qe=Mw;var Bw=me["__core-js_shared__"];const mr=Bw;var bl=function(){var o=/[^.]+$/.exec(mr&&mr.keys&&mr.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();function Nw(o){return!!bl&&bl in o}const zw=Nw;var Pw=Function.prototype,Lw=Pw.toString;function Ow(o){if(o!=null){try{return Lw.call(o)}catch{}try{return o+""}catch{}}return""}const Je=Ow;var Rw=/[\\^$.*+?()[\]{}|]/g,jw=/^\[object .+?Constructor\]$/,Fw=Function.prototype,Vw=Object.prototype,Hw=Fw.toString,Uw=Vw.hasOwnProperty,Gw=RegExp("^"+Hw.call(Uw).replace(Rw,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qw(o){if(!bt(o)||zw(o))return!1;var t=Qe(o)?Gw:jw;return t.test(Je(o))}const Ww=qw;function $w(o,t){return o==null?void 0:o[t]}const Zw=$w;function Kw(o,t){var e=Zw(o,t);return Ww(e)?e:void 0}const Xe=Kw;var Yw=Xe(me,"Map");const io=Yw;var Qw=Xe(Object,"create");const ro=Qw;function Jw(){this.__data__=ro?ro(null):{},this.size=0}const Xw=Jw;function tA(o){var t=this.has(o)&&delete this.__data__[o];return this.size-=t?1:0,t}const eA=tA;var nA="__lodash_hash_undefined__",oA=Object.prototype,iA=oA.hasOwnProperty;function rA(o){var t=this.__data__;if(ro){var e=t[o];return e===nA?void 0:e}return iA.call(t,o)?t[o]:void 0}const sA=rA;var aA=Object.prototype,cA=aA.hasOwnProperty;function lA(o){var t=this.__data__;return ro?t[o]!==void 0:cA.call(t,o)}const dA=lA;var uA="__lodash_hash_undefined__";function hA(o,t){var e=this.__data__;return this.size+=this.has(o)?0:1,e[o]=ro&&t===void 0?uA:t,this}const gA=hA;function yn(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])}}yn.prototype.clear=Xw,yn.prototype.delete=eA,yn.prototype.get=sA,yn.prototype.has=dA,yn.prototype.set=gA;const wl=yn;function mA(){this.size=0,this.__data__={hash:new wl,map:new(io||Xo),string:new wl}}const fA=mA;function pA(o){var t=typeof o;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?o!=="__proto__":o===null}const kA=pA;function bA(o,t){var e=o.__data__;return kA(t)?e[typeof t=="string"?"string":"hash"]:e.map}const ti=bA;function wA(o){var t=ti(this,o).delete(o);return this.size-=t?1:0,t}const AA=wA;function CA(o){return ti(this,o).get(o)}const _A=CA;function vA(o){return ti(this,o).has(o)}const yA=vA;function xA(o,t){var e=ti(this,o),n=e.size;return e.set(o,t),this.size+=e.size==n?0:1,this}const EA=xA;function xn(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])}}xn.prototype.clear=fA,xn.prototype.delete=AA,xn.prototype.get=_A,xn.prototype.has=yA,xn.prototype.set=EA;const ei=xn;var DA=200;function SA(o,t){var e=this.__data__;if(e instanceof Xo){var n=e.__data__;if(!io||n.length<DA-1)return n.push([o,t]),this.size=++e.size,this;e=this.__data__=new ei(n)}return e.set(o,t),this.size=e.size,this}const TA=SA;function En(o){var t=this.__data__=new Xo(o);this.size=t.size}En.prototype.clear=Aw,En.prototype.delete=_w,En.prototype.get=yw,En.prototype.has=Ew,En.prototype.set=TA;const so=En;function IA(o,t){for(var e=-1,n=o==null?0:o.length;++e<n&&t(o[e],e,o)!==!1;);return o}const MA=IA;var BA=function(){try{var o=Xe(Object,"defineProperty");return o({},"",{}),o}catch{}}();const ni=BA;function NA(o,t,e){t=="__proto__"&&ni?ni(o,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):o[t]=e}const fr=NA;var zA=Object.prototype,PA=zA.hasOwnProperty;function LA(o,t,e){var n=o[t];(!(PA.call(o,t)&&oo(n,e))||e===void 0&&!(t in o))&&fr(o,t,e)}const pr=LA;function OA(o,t,e,n){var i=!e;e||(e={});for(var r=-1,s=t.length;++r<s;){var a=t[r],c=n?n(e[a],o[a],a,e,o):void 0;c===void 0&&(c=o[a]),i?fr(e,a,c):pr(e,a,c)}return e}const Dn=OA;function RA(o,t){for(var e=-1,n=Array(o);++e<o;)n[e]=t(e);return n}const jA=RA;var FA="[object Arguments]";function VA(o){return ae(o)&&Ue(o)==FA}const Al=VA;var Cl=Object.prototype,HA=Cl.hasOwnProperty,UA=Cl.propertyIsEnumerable,GA=Al(function(){return arguments}())?Al:function(o){return ae(o)&&HA.call(o,"callee")&&!UA.call(o,"callee")};const kr=GA;function qA(){return!1}const WA=qA;var _l=Me&&!Me.nodeType&&Me,vl=_l&&!0&&Ce&&!Ce.nodeType&&Ce,$A=vl&&vl.exports===_l,yl=$A?me.Buffer:void 0,ZA=yl?yl.isBuffer:void 0,KA=ZA||WA;const ao=KA;var YA=9007199254740991,QA=/^(?:0|[1-9]\d*)$/;function JA(o,t){var e=typeof o;return t=t??YA,!!t&&(e=="number"||e!="symbol"&&QA.test(o))&&o>-1&&o%1==0&&o<t}const br=JA;var XA=9007199254740991;function tC(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=XA}const xl=tC;var eC="[object Arguments]",nC="[object Array]",oC="[object Boolean]",iC="[object Date]",rC="[object Error]",sC="[object Function]",aC="[object Map]",cC="[object Number]",lC="[object Object]",dC="[object RegExp]",uC="[object Set]",hC="[object String]",gC="[object WeakMap]",mC="[object ArrayBuffer]",fC="[object DataView]",pC="[object Float32Array]",kC="[object Float64Array]",bC="[object Int8Array]",wC="[object Int16Array]",AC="[object Int32Array]",CC="[object Uint8Array]",_C="[object Uint8ClampedArray]",vC="[object Uint16Array]",yC="[object Uint32Array]",wt={};wt[pC]=wt[kC]=wt[bC]=wt[wC]=wt[AC]=wt[CC]=wt[_C]=wt[vC]=wt[yC]=!0,wt[eC]=wt[nC]=wt[mC]=wt[oC]=wt[fC]=wt[iC]=wt[rC]=wt[sC]=wt[aC]=wt[cC]=wt[lC]=wt[dC]=wt[uC]=wt[hC]=wt[gC]=!1;function xC(o){return ae(o)&&xl(o.length)&&!!wt[Ue(o)]}const EC=xC;function DC(o){return function(t){return o(t)}}const oi=DC;var El=Me&&!Me.nodeType&&Me,co=El&&!0&&Ce&&!Ce.nodeType&&Ce,SC=co&&co.exports===El,wr=SC&&hl.process,TC=function(){try{var o=co&&co.require&&co.require("util").types;return o||wr&&wr.binding&&wr.binding("util")}catch{}}();const Sn=TC;var Dl=Sn&&Sn.isTypedArray,IC=Dl?oi(Dl):EC;const Ar=IC;var MC=Object.prototype,BC=MC.hasOwnProperty;function NC(o,t){var e=Gt(o),n=!e&&kr(o),i=!e&&!n&&ao(o),r=!e&&!n&&!i&&Ar(o),s=e||n||i||r,a=s?jA(o.length,String):[],c=a.length;for(var l in o)(t||BC.call(o,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||r&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||br(l,c)))&&a.push(l);return a}const Sl=NC;var zC=Object.prototype;function PC(o){var t=o&&o.constructor,e=typeof t=="function"&&t.prototype||zC;return o===e}const Cr=PC;var LC=pl(Object.keys,Object);const OC=LC;var RC=Object.prototype,jC=RC.hasOwnProperty;function FC(o){if(!Cr(o))return OC(o);var t=[];for(var e in Object(o))jC.call(o,e)&&e!="constructor"&&t.push(e);return t}const VC=FC;function HC(o){return o!=null&&xl(o.length)&&!Qe(o)}const ii=HC;function UC(o){return ii(o)?Sl(o):VC(o)}const _r=UC;function GC(o,t){return o&&Dn(t,_r(t),o)}const qC=GC;function WC(o){var t=[];if(o!=null)for(var e in Object(o))t.push(e);return t}const $C=WC;var ZC=Object.prototype,KC=ZC.hasOwnProperty;function YC(o){if(!bt(o))return $C(o);var t=Cr(o),e=[];for(var n in o)n=="constructor"&&(t||!KC.call(o,n))||e.push(n);return e}const QC=YC;function JC(o){return ii(o)?Sl(o,!0):QC(o)}const Tn=JC;function XC(o,t){return o&&Dn(t,Tn(t),o)}const t_=XC;var Tl=Me&&!Me.nodeType&&Me,Il=Tl&&!0&&Ce&&!Ce.nodeType&&Ce,e_=Il&&Il.exports===Tl,Ml=e_?me.Buffer:void 0,Bl=Ml?Ml.allocUnsafe:void 0;function n_(o,t){if(t)return o.slice();var e=o.length,n=Bl?Bl(e):new o.constructor(e);return o.copy(n),n}const Nl=n_;function o_(o,t){var e=-1,n=o.length;for(t||(t=Array(n));++e<n;)t[e]=o[e];return t}const vr=o_;function i_(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}const r_=i_;function s_(){return[]}const zl=s_;var a_=Object.prototype,c_=a_.propertyIsEnumerable,Pl=Object.getOwnPropertySymbols,l_=Pl?function(o){return o==null?[]:(o=Object(o),r_(Pl(o),function(t){return c_.call(o,t)}))}:zl;const yr=l_;function d_(o,t){return Dn(o,yr(o),t)}const u_=d_;function h_(o,t){for(var e=-1,n=t.length,i=o.length;++e<n;)o[i+e]=t[e];return o}const Ll=h_;var g_=Object.getOwnPropertySymbols,m_=g_?function(o){for(var t=[];o;)Ll(t,yr(o)),o=gr(o);return t}:zl;const Ol=m_;function f_(o,t){return Dn(o,Ol(o),t)}const p_=f_;function k_(o,t,e){var n=t(o);return Gt(o)?n:Ll(n,e(o))}const Rl=k_;function b_(o){return Rl(o,_r,yr)}const xr=b_;function w_(o){return Rl(o,Tn,Ol)}const A_=w_;var C_=Xe(me,"DataView");const Er=C_;var __=Xe(me,"Promise");const Dr=__;var v_=Xe(me,"Set");const Sr=v_;var y_=Xe(me,"WeakMap");const Tr=y_;var jl="[object Map]",x_="[object Object]",Fl="[object Promise]",Vl="[object Set]",Hl="[object WeakMap]",Ul="[object DataView]",E_=Je(Er),D_=Je(io),S_=Je(Dr),T_=Je(Sr),I_=Je(Tr),tn=Ue;(Er&&tn(new Er(new ArrayBuffer(1)))!=Ul||io&&tn(new io)!=jl||Dr&&tn(Dr.resolve())!=Fl||Sr&&tn(new Sr)!=Vl||Tr&&tn(new Tr)!=Hl)&&(tn=function(o){var t=Ue(o),e=t==x_?o.constructor:void 0,n=e?Je(e):"";if(n)switch(n){case E_:return Ul;case D_:return jl;case S_:return Fl;case T_:return Vl;case I_:return Hl}return t});const lo=tn;var M_=Object.prototype,B_=M_.hasOwnProperty;function N_(o){var t=o.length,e=new o.constructor(t);return t&&typeof o[0]=="string"&&B_.call(o,"index")&&(e.index=o.index,e.input=o.input),e}const z_=N_;var P_=me.Uint8Array;const ri=P_;function L_(o){var t=new o.constructor(o.byteLength);return new ri(t).set(new ri(o)),t}const Ir=L_;function O_(o,t){var e=t?Ir(o.buffer):o.buffer;return new o.constructor(e,o.byteOffset,o.byteLength)}const R_=O_;var j_=/\w*$/;function F_(o){var t=new o.constructor(o.source,j_.exec(o));return t.lastIndex=o.lastIndex,t}const V_=F_;var Gl=_e?_e.prototype:void 0,ql=Gl?Gl.valueOf:void 0;function H_(o){return ql?Object(ql.call(o)):{}}const U_=H_;function G_(o,t){var e=t?Ir(o.buffer):o.buffer;return new o.constructor(e,o.byteOffset,o.length)}const Wl=G_;var q_="[object Boolean]",W_="[object Date]",$_="[object Map]",Z_="[object Number]",K_="[object RegExp]",Y_="[object Set]",Q_="[object String]",J_="[object Symbol]",X_="[object ArrayBuffer]",t0="[object DataView]",e0="[object Float32Array]",n0="[object Float64Array]",o0="[object Int8Array]",i0="[object Int16Array]",r0="[object Int32Array]",s0="[object Uint8Array]",a0="[object Uint8ClampedArray]",c0="[object Uint16Array]",l0="[object Uint32Array]";function d0(o,t,e){var n=o.constructor;switch(t){case X_:return Ir(o);case q_:case W_:return new n(+o);case t0:return R_(o,e);case e0:case n0:case o0:case i0:case r0:case s0:case a0:case c0:case l0:return Wl(o,e);case $_:return new n;case Z_:case Q_:return new n(o);case K_:return V_(o);case Y_:return new n;case J_:return U_(o)}}const u0=d0;var $l=Object.create,h0=function(){function o(){}return function(t){if(!bt(t))return{};if($l)return $l(t);o.prototype=t;var e=new o;return o.prototype=void 0,e}}();const g0=h0;function m0(o){return typeof o.constructor=="function"&&!Cr(o)?g0(gr(o)):{}}const Zl=m0;var f0="[object Map]";function p0(o){return ae(o)&&lo(o)==f0}const k0=p0;var Kl=Sn&&Sn.isMap,b0=Kl?oi(Kl):k0;const w0=b0;var A0="[object Set]";function C0(o){return ae(o)&&lo(o)==A0}const _0=C0;var Yl=Sn&&Sn.isSet,v0=Yl?oi(Yl):_0;const y0=v0;var x0=1,E0=2,D0=4,Ql="[object Arguments]",S0="[object Array]",T0="[object Boolean]",I0="[object Date]",M0="[object Error]",Jl="[object Function]",B0="[object GeneratorFunction]",N0="[object Map]",z0="[object Number]",Xl="[object Object]",P0="[object RegExp]",L0="[object Set]",O0="[object String]",R0="[object Symbol]",j0="[object WeakMap]",F0="[object ArrayBuffer]",V0="[object DataView]",H0="[object Float32Array]",U0="[object Float64Array]",G0="[object Int8Array]",q0="[object Int16Array]",W0="[object Int32Array]",$0="[object Uint8Array]",Z0="[object Uint8ClampedArray]",K0="[object Uint16Array]",Y0="[object Uint32Array]",pt={};pt[Ql]=pt[S0]=pt[F0]=pt[V0]=pt[T0]=pt[I0]=pt[H0]=pt[U0]=pt[G0]=pt[q0]=pt[W0]=pt[N0]=pt[z0]=pt[Xl]=pt[P0]=pt[L0]=pt[O0]=pt[R0]=pt[$0]=pt[Z0]=pt[K0]=pt[Y0]=!0,pt[M0]=pt[Jl]=pt[j0]=!1;function si(o,t,e,n,i,r){var s,a=t&x0,c=t&E0,l=t&D0;if(e&&(s=i?e(o,n,i,r):e(o)),s!==void 0)return s;if(!bt(o))return o;var d=Gt(o);if(d){if(s=z_(o),!a)return vr(o,s)}else{var u=lo(o),m=u==Jl||u==B0;if(ao(o))return Nl(o,a);if(u==Xl||u==Ql||m&&!i){if(s=c||m?{}:Zl(o),!a)return c?p_(o,t_(s,o)):u_(o,qC(s,o))}else{if(!pt[u])return i?o:{};s=u0(o,u,a)}}r||(r=new so);var p=r.get(o);if(p)return p;r.set(o,s),y0(o)?o.forEach(function(B){s.add(si(B,t,e,B,o,r))}):w0(o)&&o.forEach(function(B,z){s.set(z,si(B,t,e,z,o,r))});var b=l?c?A_:xr:c?Tn:_r,S=d?void 0:b(o);return MA(S||o,function(B,z){S&&(z=B,B=o[z]),pr(s,z,si(B,t,e,z,o,r))}),s}const Mr=si;var Q0=1,J0=4;function X0(o,t){return t=typeof t=="function"?t:void 0,Mr(o,Q0|J0,t)}const Br=X0;function tv(o){return ae(o)&&o.nodeType===1&&!Wt(o)}const en=tv;class td{constructor(t,e){this._config={},e&&this.define(ed(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(Wt(e)){this._setObjectToTarget(t,e,i);return}const r=e.split(".");e=r.pop();for(const s of r)Wt(t[s])||(t[s]={}),t=t[s];if(Wt(n)){Wt(t[e])||(t[e]={}),t=t[e],this._setObjectToTarget(t,n,i);return}i&&typeof t[e]<"u"||(t[e]=n)}_getFromSource(t,e){const n=e.split(".");e=n.pop();for(const i of n){if(!Wt(t[i])){t=null;break}t=t[i]}return t?ed(t[e]):void 0}_setObjectToTarget(t,e,n){Object.keys(e).forEach(i=>{this._setToTarget(t,i,e[i],n)})}}function ed(o){return Br(o,ev)}function ev(o){return en(o)||typeof o=="function"?o:void 0}function Ge(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 ai(o){const t=Object.prototype.toString.apply(o);return t=="[object Window]"||t=="[object global]"}const nd=Xt(ct());function Xt(o){if(!o)return nd;class t extends o{listenTo(n,i,r,s={}){if(Ge(n)||ai(n)){const a={capture:!!s.useCapture,passive:!!s.usePassive},c=this._getProxyEmitter(n,a)||new nv(n,a);this.listenTo(c,i,r,s)}else super.listenTo(n,i,r,s)}stopListening(n,i,r){if(Ge(n)||ai(n)){const s=this._getAllProxyEmitters(n);for(const a of s)this.stopListening(a,i,r)}else super.stopListening(n,i,r)}_getProxyEmitter(n,i){return Ab(this,od(n,i))}_getAllProxyEmitters(n){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(i=>this._getProxyEmitter(n,i)).filter(i=>!!i)}}return t}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(o=>{Xt[o]=nd.prototype[o]});class nv extends ct(){constructor(t,e){super(),ol(this,od(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),ct().prototype._addEventListener.call(this,t,e,n)}_removeEventListener(t,e){ct().prototype._removeEventListener.call(this,t,e),this.detach(t)}_createDomListener(t){const e=n=>{this.fire(t,n)};return e.removeListener=()=>{this._domNode.removeEventListener(t,e,this._options),delete this._domListeners[t]},e}}function ov(o){return o["data-ck-expando"]||(o["data-ck-expando"]=qt())}function od(o,t){let e=ov(o);for(const n of Object.keys(t).sort())t[n]&&(e+="-"+n);return e}let Nr;try{Nr={window,document}}catch{Nr={window:{},document:{}}}const U=Nr;function iv(o){const t=[];let e=o;for(;e&&e.nodeType!=Node.DOCUMENT_NODE;)t.unshift(e),e=e.parentNode;return t}function rv(o){return o instanceof HTMLTextAreaElement?o.value:o.innerHTML}function St(o){return Object.prototype.toString.call(o)=="[object Text]"}function ci(o){return Object.prototype.toString.apply(o)=="[object Range]"}function id(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 rd(o){return!o||!o.parentNode||o.offsetParent===U.document.body?null:o.offsetParent}const sd=["top","right","bottom","left","width","height"];class J{constructor(t){const e=ci(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),zr(t)||e)if(e){const n=J.getDomRangeRects(t);li(this,J.getBoundingRect(n))}else li(this,t.getBoundingClientRect());else if(ai(t)){const{innerWidth:n,innerHeight:i}=t;li(this,{top:0,right:n,bottom:i,left:0,width:n,height:i})}else li(this,t)}clone(){return new J(this)}moveTo(t,e){return this.top=e,this.right=t+this.width,this.bottom=e+this.height,this.left=t,this}moveBy(t,e){return this.top+=e,this.right+=t,this.left+=t,this.bottom+=e,this}getIntersection(t){const e={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left),width:0,height:0};if(e.width=e.right-e.left,e.height=e.bottom-e.top,e.width<0||e.height<0)return null;{const n=new J(e);return n._source=this._source,n}}getIntersectionArea(t){const e=this.getIntersection(t);return e?e.getArea():0}getArea(){return this.width*this.height}getVisible(){const t=this._source;let e=this.clone();if(ad(t))return e;let n=t,i=t.parentNode||t.commonAncestorContainer,r;for(;i&&!ad(i);){const s=sv(i)==="visible";n instanceof HTMLElement&&cd(n)==="absolute"&&(r=n);const a=cd(i);if(s||r&&(a==="relative"&&s||a!=="relative")){n=i,i=i.parentNode;continue}const c=new J(i),l=e.getIntersection(c);if(l)l.getArea()<e.getArea()&&(e=l);else return null;n=i,i=i.parentNode}return e}isEqual(t){for(const e of sd)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}=U.window,n=this.clone().moveBy(t,e);if(zr(n._source)){const i=rd(n._source);i&&av(n,i)}return n}excludeScrollbarsAndBorders(){const t=this._source;let e,n,i;if(ai(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=id(t);e=t.offsetWidth-t.clientWidth-r.left-r.right,n=t.offsetHeight-t.clientHeight-r.top-r.bottom,i=t.ownerDocument.defaultView.getComputedStyle(t).direction,this.left+=r.left,this.top+=r.top,this.right-=r.right,this.bottom-=r.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=e,i==="ltr"?this.right-=e:this.left+=e,this.height-=n,this.bottom-=n,this}static getDomRangeRects(t){const e=[],n=Array.from(t.getClientRects());if(n.length)for(const i of n)e.push(new J(i));else{let i=t.startContainer;St(i)&&(i=i.parentNode);const r=new J(i.getBoundingClientRect());r.right=r.left,r.width=0,e.push(r)}return e}static getBoundingRect(t){const e={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let n=0;for(const i of t)n++,e.left=Math.min(e.left,i.left),e.top=Math.min(e.top,i.top),e.right=Math.max(e.right,i.right),e.bottom=Math.max(e.bottom,i.bottom);return n==0?null:(e.width=e.right-e.left,e.height=e.bottom-e.top,new J(e))}}function li(o,t){for(const e of sd)o[e]=t[e]}function ad(o){return zr(o)?o===o.ownerDocument.body:!1}function zr(o){return o!==null&&typeof o=="object"&&o.nodeType===1&&typeof o.getBoundingClientRect=="function"}function cd(o){return o instanceof HTMLElement?o.ownerDocument.defaultView.getComputedStyle(o).position:"static"}function sv(o){return o instanceof HTMLElement?o.ownerDocument.defaultView.getComputedStyle(o).overflow:"visible"}function av(o,t){const e=new J(t),n=id(t);let i=0,r=0;i-=e.left,r-=e.top,i+=t.scrollLeft,r+=t.scrollTop,i-=n.left,r-=n.top,o.moveBy(i,r)}class kt{constructor(t,e){kt._observerInstance||kt._createObserver(),this._element=t,this._callback=e,kt._addElementCallback(t,e),kt._observerInstance.observe(t)}get element(){return this._element}destroy(){kt._deleteElementCallback(this._element,this._callback)}static _addElementCallback(t,e){kt._elementCallbacks||(kt._elementCallbacks=new Map);let n=kt._elementCallbacks.get(t);n||(n=new Set,kt._elementCallbacks.set(t,n)),n.add(e)}static _deleteElementCallback(t,e){const n=kt._getElementCallbacks(t);n&&(n.delete(e),n.size||(kt._elementCallbacks.delete(t),kt._observerInstance.unobserve(t))),kt._elementCallbacks&&!kt._elementCallbacks.size&&(kt._observerInstance=null,kt._elementCallbacks=null)}static _getElementCallbacks(t){return kt._elementCallbacks?kt._elementCallbacks.get(t):null}static _createObserver(){kt._observerInstance=new U.window.ResizeObserver(t=>{for(const e of t){const n=kt._getElementCallbacks(e.target);if(n)for(const i of n)i(e)}})}}kt._observerInstance=null,kt._elementCallbacks=null;function ld(o,t){o instanceof HTMLTextAreaElement&&(o.value=t),o.innerHTML=t}function uo(o){return t=>t+o}function di(o){let t=0;for(;o.previousSibling;)o=o.previousSibling,t++;return t}function dd(o,t,e){o.insertBefore(e,o.childNodes[t]||null)}function ho(o){return o&&o.nodeType===Node.COMMENT_NODE}function ud(o){try{U.document.createAttribute(o)}catch{return!1}return!0}function nn(o){return!!(o&&o.getClientRects&&o.getClientRects().length)}function Pr({element:o,target:t,positions:e,limiter:n,fitInViewport:i,viewportOffsetConfig:r}){Qe(t)&&(t=t()),Qe(n)&&(n=n());const s=rd(o),a=cv(r),c=new J(o),l=hd(t,a);let d;if(!l||!a.getIntersection(l))return null;const u={targetRect:l,elementRect:c,positionedElementAncestor:s,viewportRect:a};if(!n&&!i)d=new gd(e[0],u);else{if(n){const m=hd(n,a);m&&(u.limiterRect=m)}d=lv(e,u)}return d}function hd(o,t){const e=new J(o).getVisible();return e?e.getIntersection(t):null}function cv(o){o=Object.assign({top:0,bottom:0,left:0,right:0},o);const t=new J(U.window);return t.top+=o.top,t.height-=o.top,t.bottom-=o.bottom,t.height-=o.bottom,t}function lv(o,t){const{elementRect:e}=t,n=e.getArea(),i=o.map(a=>new gd(a,t)).filter(a=>!!a.name);let r=0,s=null;for(const a of i){const{limiterIntersectionArea:c,viewportIntersectionArea:l}=a;if(c===n)return a;const d=l**2+c**2;d>r&&(r=d,s=a)}return s}class gd{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._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top),this._cachedRect)}get _absoluteRect(){return this._cachedAbsoluteRect?this._cachedAbsoluteRect:(this._cachedAbsoluteRect=this._rect.toAbsoluteRect(),this._cachedAbsoluteRect)}}function md(o){const t=o.parentNode;t&&t.removeChild(o)}function dv({target:o,viewportOffset:t=0,ancestorOffset:e=0,alignToTop:n,forceScroll:i}){const r=Lr(o);let s=r,a=null;for(t=gv(t);s;){let c;s==r?c=wd(o):c=wd(a),hv({parent:c,getRect:()=>Ad(o,s),alignToTop:n,ancestorOffset:e,forceScroll:i});const l=Ad(o,s);if(uv({window:s,rect:l,viewportOffset:t,alignToTop:n,forceScroll:i}),s.parent!=s){if(a=s.frameElement,s=s.parent,!a)return}else s=null}}function uv({window:o,rect:t,alignToTop:e,forceScroll:n,viewportOffset:i}){const r=t.clone().moveBy(0,i.bottom),s=t.clone().moveBy(0,-i.top),a=new J(o).excludeScrollbarsAndBorders(),c=[s,r],l=e&&n,d=c.every(S=>a.contains(S));let{scrollX:u,scrollY:m}=o;const p=u,b=m;l?m-=a.top-t.top+i.top:d||(pd(s,a)?m-=a.top-t.top+i.top:fd(r,a)&&(e?m+=t.top-a.top-i.top:m+=t.bottom-a.bottom+i.bottom)),d||(kd(t,a)?u-=a.left-t.left+i.left:bd(t,a)&&(u+=t.right-a.right+i.right)),(u!=p||m!==b)&&o.scrollTo(u,m)}function hv({parent:o,getRect:t,alignToTop:e,forceScroll:n,ancestorOffset:i=0,limiterElement:r}){const s=Lr(o),a=e&&n;let c,l,d;const u=r||s.document.body;for(;o!=u;)l=t(),c=new J(o).excludeScrollbarsAndBorders(),d=c.contains(l),a?o.scrollTop-=c.top-l.top+i:d||(pd(l,c)?o.scrollTop-=c.top-l.top+i:fd(l,c)&&(e?o.scrollTop+=l.top-c.top-i:o.scrollTop+=l.bottom-c.bottom+i)),d||(kd(l,c)?o.scrollLeft-=c.left-l.left+i:bd(l,c)&&(o.scrollLeft+=l.right-c.right+i)),o=o.parentNode}function fd(o,t){return o.bottom>t.bottom}function pd(o,t){return o.top<t.top}function kd(o,t){return o.left<t.left}function bd(o,t){return o.right>t.right}function Lr(o){return ci(o)?o.startContainer.ownerDocument.defaultView:o.ownerDocument.defaultView}function wd(o){if(ci(o)){let t=o.commonAncestorContainer;return St(t)&&(t=t.parentNode),t}else return o.parentNode}function Ad(o,t){const e=Lr(o),n=new J(o);if(e===t)return n;{let i=e;for(;i!=t;){const r=i.frameElement,s=new J(r).excludeScrollbarsAndBorders();n.moveBy(s.left,s.top),i=i.parent}}return n}function gv(o){return typeof o=="number"?{top:o,bottom:o,left:o,right:o}:o}const mv={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},fv={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},tt=Av(),pv=Object.fromEntries(Object.entries(tt).map(([o,t])=>[t,o.charAt(0).toUpperCase()+o.slice(1)]));function In(o){let t;if(typeof o=="string"){if(t=tt[o.toLowerCase()],!t)throw new w("keyboard-unknown-key",null,{key:o})}else t=o.keyCode+(o.altKey?tt.alt:0)+(o.ctrlKey?tt.ctrl:0)+(o.shiftKey?tt.shift:0)+(o.metaKey?tt.cmd:0);return t}function go(o){return typeof o=="string"&&(o=Cv(o)),o.map(t=>typeof t=="string"?bv(t):t).reduce((t,e)=>e+t,0)}function Cd(o){let t=go(o);return Object.entries(g.isMac||g.isiOS?mv:fv).reduce((i,[r,s])=>(t&tt[r]&&(t&=~tt[r],i+=s),i),"")+(t?pv[t]:"")}function kv(o){return o==tt.arrowright||o==tt.arrowleft||o==tt.arrowup||o==tt.arrowdown}function Or(o,t){const e=t==="ltr";switch(o){case tt.arrowleft:return e?"left":"right";case tt.arrowright:return e?"right":"left";case tt.arrowup:return"up";case tt.arrowdown:return"down"}}function bv(o){if(o.endsWith("!"))return In(o.slice(0,-1));const t=In(o);return(g.isMac||g.isiOS)&&t==tt.ctrl?tt.cmd:t}function wv(o,t){const e=Or(o,t);return e==="down"||e==="right"}function Av(){const o={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++){const e=String.fromCharCode(t);o[e.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;for(const t of"`-=[];',./\\")o[t]=t.charCodeAt(0);return o}function Cv(o){return o.split("+").map(t=>t.trim())}function _t(o){return Array.isArray(o)?o:[o]}U.window.CKEDITOR_TRANSLATIONS||(U.window.CKEDITOR_TRANSLATIONS={});function _v(o,t,e=1){if(typeof e!="number")throw new w("translation-service-quantity-not-a-number",null,{quantity:e});const n=yv();n===1&&(o=Object.keys(U.window.CKEDITOR_TRANSLATIONS)[0]);const i=t.id||t.string;if(n===0||!vv(o,i))return e!==1?t.plural:t.string;const r=U.window.CKEDITOR_TRANSLATIONS[o].dictionary,s=U.window.CKEDITOR_TRANSLATIONS[o].getPluralForm||(l=>l===1?0:1),a=r[i];if(typeof a=="string")return a;const c=Number(s(e));return a[c]}function vv(o,t){return!!U.window.CKEDITOR_TRANSLATIONS[o]&&!!U.window.CKEDITOR_TRANSLATIONS[o].dictionary[t]}function yv(){return Object.keys(U.window.CKEDITOR_TRANSLATIONS).length}const xv=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function _d(o){return xv.includes(o)?"rtl":"ltr"}class Ev{constructor({uiLanguage:t="en",contentLanguage:e}={}){this.uiLanguage=t,this.contentLanguage=e||this.uiLanguage,this.uiLanguageDirection=_d(this.uiLanguage),this.contentLanguageDirection=_d(this.contentLanguage),this.t=(n,i)=>this._t(n,i)}get language(){return this.uiLanguage}_t(t,e=[]){e=_t(e),typeof t=="string"&&(t={string:t});const i=!!t.plural?e[0]:1,r=_v(this.uiLanguage,t,i);return Dv(r,e)}}function Dv(o,t){return o.replace(/%(\d+)/g,(e,n)=>n<t.length?t[n]:e)}class te extends ct(){constructor(t={},e={}){super();const n=Jt(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)}addMany(t,e){if(e===void 0)e=this._items.length;else if(e>this._items.length||e<0)throw new w("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")e=this._items[t];else throw new w("collection-get-invalid-arg",this);return e||null}has(t){if(typeof t=="string")return this._itemMap.has(t);{const e=this._idProperty,n=t[e];return n&&this._itemMap.has(n)}}getIndex(t){let e;return typeof t=="string"?e=this._itemMap.get(t):e=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 w("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){this._skippedIndexesFromExternal.push(s);return}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(null,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 w("collection-add-invalid-id",this);if(this.get(n))throw new w("collection-add-item-already-exists",this)}else t[e]=n=qt();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 w("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 Tt(o){const t=o.next();return t.done?null:t.value}class Bt extends Xt(st()){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(t){if(this._elements.has(t))throw new w("focustracker-add-element-already-exist",this);this.listenTo(t,"focus",()=>this._focus(t),{useCapture:!0}),this.listenTo(t,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(t)}remove(t){t===this.focusedElement&&this._blur(),this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t))}destroy(){this.stopListening()}_focus(t){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=t,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}class Vt{constructor(){this._listener=new(Xt())}listenTo(t){this._listener.listenTo(t,"keydown",(e,n)=>{this._listener.fire("_keydown:"+In(n),n)})}set(t,e,n={}){const i=go(t),r=n.priority;this._listener.listenTo(this._listener,"_keydown:"+i,(s,a)=>{e(a,()=>{a.preventDefault(),a.stopPropagation(),s.stop()}),s.return=!0},{priority:r})}press(t){return!!this._listener.fire("_keydown:"+In(t),t)}stopListening(t){this._listener.stopListening(t)}destroy(){this.stopListening()}}function Sv(o){const t=new Map;for(const e in o)t.set(e,o[e]);return t}function Ne(o){return Jt(o)?new Map(o):Sv(o)}const Tv=1e4;function Iv(o,t,e,n){if(Math.max(t.length,o.length)>Tv)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 Rr(o,t){let e;function n(...i){n.cancel(),e=setTimeout(()=>o(...i),t)}return n.cancel=()=>{clearTimeout(e)},n}function Mv(o){function t(u){return u.length>=40&&u.length<=255?"VALID":"INVALID"}if(!o)return"INVALID";let e="";try{e=atob(o)}catch{return"INVALID"}const n=e.split("-"),i=n[0],r=n[1];if(!r)return t(o);try{atob(r)}catch{try{if(atob(i),!atob(i).length)return t(o)}catch{return t(o)}}if(i.length<40||i.length>255)return"INVALID";let s="";try{atob(i),s=atob(r)}catch{return"INVALID"}if(s.length!==8)return"INVALID";const a=Number(s.substring(0,4)),c=Number(s.substring(4,6))-1,l=Number(s.substring(6,8)),d=new Date(a,c,l);return d<wb||isNaN(Number(d))?"INVALID":"VALID"}function Bv(o){return!!o&&o.length==1&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(o)}function Nv(o){return!!o&&o.length==1&&/[\ud800-\udbff]/.test(o)}function zv(o){return!!o&&o.length==1&&/[\udc00-\udfff]/.test(o)}function jr(o,t){return Nv(o.charAt(t-1))&&zv(o.charAt(t))}function Fr(o,t){return Bv(o.charAt(t))}const Pv=Lv();function vd(o,t){const e=String(o).matchAll(Pv);return Array.from(e).some(n=>n.index<t&&t<n.index+n[0].length)}function Lv(){const o=[/\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],t=/\p{Regional_Indicator}{2}/u.source,e="(?:"+o.map(i=>i.source).join("|")+")",n=`${t}|${e}(?:${e})*`;return new RegExp(n,"ug")}class ce extends te{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||!Ov(t))throw new w("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)}}function Ov(o){return o.every(t=>typeof t=="string")}var Rv=L(3379),R=L.n(Rv),yd=L(5167),Vr={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Vr.insert="head",Vr.singleton=!0,R()(yd.Z,Vr),yd.Z.locals;class G extends Xt(st()){constructor(t){super(),this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new te,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(e,n)=>{n.locale=t,n.t=t&&t.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=$t.bind(this,this)}createCollection(t){const e=new ce(t);return this._viewCollections.add(e),e}registerChild(t){Jt(t)||(t=[t]);for(const e of t)this._unboundChildren.add(e)}deregisterChild(t){Jt(t)||(t=[t]);for(const e of t)this._unboundChildren.remove(e)}setTemplate(t){this.template=new $t(t)}extendTemplate(t){$t.extend(this.template,t)}render(){if(this.isRendered)throw new w("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(t=>t.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}const jv="http://www.w3.org/1999/xhtml";class $t extends ct(){constructor(t){super(),Object.assign(this,Sd(Dd(t))),this._isRendered=!1,this._revertData=null}render(){const t=this._renderNode({intoFragment:!0});return this._isRendered=!0,t}apply(t){return this._revertData=zd(),this._renderNode({node:t,intoFragment:!1,isApplying:!0,revertData:this._revertData}),t}revert(t){if(!this._revertData)throw new w("ui-template-revert-not-applied",[this,t]);this._revertTemplateFromNode(t,this._revertData)}*getViews(){function*t(e){if(e.children)for(const n of e.children)hi(n)?yield n:Hr(n)&&(yield*t(n))}yield*t(this)}static bind(t,e){return{to(n,i){return new Fv({eventNameOrFunction:n,attribute:n,observable:t,emitter:e,callback:i})},if(n,i,r){return new xd({observable:t,emitter:e,attribute:n,valueIfTrue:i,callback:r})}}}static extend(t,e){if(t._isRendered)throw new w("template-extend-render",[this,t]);Bd(t,Sd(Dd(e)))}_renderNode(t){let e;if(t.node?e=this.tag&&this.text:e=this.tag?this.text:!this.text,e)throw new w("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||jv,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(""),ui(this.text)?this._bindToObservable({schema:this.text,updater:Hv(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=Nd(s)?s[0].ns:null;if(ui(s)){const c=Nd(s)?s[0].value:s;n&&Pd(i)&&c.unshift(r),this._bindToObservable({schema:c,updater:Uv(e,i,a),data:t})}else if(i=="style"&&typeof s[0]!="string")this._renderStyleAttribute(s[0],t);else{n&&r&&Pd(i)&&s.unshift(r);const c=s.map(l=>l&&(l.value||l)).reduce((l,d)=>l.concat(d),[]).reduce(Id,"");Mn(c)||e.setAttributeNS(a,i,c)}}}_renderStyleAttribute(t,e){const n=e.node;for(const i in t){const r=t[i];ui(r)?this._bindToObservable({schema:[r],updater:Gv(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(Ur(s)){if(!i){s.setParent(e);for(const a of s)n.appendChild(a.element)}}else if(hi(s))i||(s.isRendered||s.render(),n.appendChild(s.element));else if(Ge(s))n.appendChild(s);else if(i){const a=t.revertData,c=zd();a.children.push(c),s._renderNode({intoFragment:!1,node:n.childNodes[r++],isApplying:!0,revertData:c})}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;Ed(t,e,n);const r=t.filter(s=>!Mn(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){t.textContent=e.text;return}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 mo{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=()=>Ed(t,e,n);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,i),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,i)}}}class Fv extends mo{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 xd extends mo{constructor(t){super(t),this.valueIfTrue=t.valueIfTrue}getValue(t){const e=super.getValue(t);return Mn(e)?!1:this.valueIfTrue||!0}}function ui(o){return o?(o.value&&(o=o.value),Array.isArray(o)?o.some(ui):o instanceof mo):!1}function Vv(o,t){return o.map(e=>e instanceof mo?e.getValue(t):e)}function Ed(o,t,{node:e}){const n=Vv(o,e);let i;o.length==1&&o[0]instanceof xd?i=n[0]:i=n.reduce(Id,""),Mn(i)?t.remove():t.set(i)}function Hv(o){return{set(t){o.textContent=t},remove(){o.textContent=""}}}function Uv(o,t,e){return{set(n){o.setAttributeNS(e,t,n)},remove(){o.removeAttributeNS(e,t)}}}function Gv(o,t){return{set(e){o.style[t]=e},remove(){o.style[t]=null}}}function Dd(o){return Br(o,e=>{if(e&&(e instanceof mo||Hr(e)||hi(e)||Ur(e)))return e})}function Sd(o){if(typeof o=="string"?o=$v(o):o.text&&Zv(o),o.on&&(o.eventListeners=Wv(o.on),delete o.on),!o.text){o.attributes&&qv(o.attributes);const t=[];if(o.children)if(Ur(o.children))t.push(o.children);else for(const e of o.children)Hr(e)||hi(e)||Ge(e)?t.push(e):t.push(new $t(e));o.children=t}return o}function qv(o){for(const t in o)o[t].value&&(o[t].value=_t(o[t].value)),Td(o,t)}function Wv(o){for(const t in o)Td(o,t);return o}function $v(o){return{text:[o]}}function Zv(o){o.text=_t(o.text)}function Td(o,t){o[t]=_t(o[t])}function Id(o,t){return Mn(t)?o:Mn(o)?t:`${o} ${t}`}function Md(o,t){for(const e in t)o[e]?o[e].push(...t[e]):o[e]=t[e]}function Bd(o,t){if(t.attributes&&(o.attributes||(o.attributes={}),Md(o.attributes,t.attributes)),t.eventListeners&&(o.eventListeners||(o.eventListeners={}),Md(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 w("ui-template-extend-children-mismatch",o);let e=0;for(const n of t.children)Bd(o.children[e++],n)}}function Mn(o){return!o&&o!==0}function hi(o){return o instanceof G}function Hr(o){return o instanceof $t}function Ur(o){return o instanceof ce}function Nd(o){return bt(o[0])&&o[0].ns}function zd(){return{children:[],bindings:[],attributes:{}}}function Pd(o){return o=="class"||o=="style"}class Kv extends ce{constructor(t,e=[]){super(e),this.locale=t}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new $t({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let t=document.querySelector(".ck-body-wrapper");t||(t=no(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 Ld=L(1977),Gr={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Gr.insert="head",Gr.singleton=!0,R()(Ld.Z,Gr),Ld.Z.locals;class ze extends G{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 e=new DOMParser().parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),n=e.getAttribute("viewBox");n&&(this.viewBox=n);for(const{name:i,value:r}of Array.from(e.attributes))ze.presentationalAttributeNames.includes(i)&&this.element.setAttribute(i,r);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;e.childNodes.length>0;)this.element.appendChild(e.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(t=>{t.style.fill=this.fillColor})}}ze.presentationalAttributeNames=["alignment-baseline","baseline-shift","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"];class Yv extends G{constructor(){super(),this.set({style:void 0,text:void 0,id:void 0});const t=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:t.to("style"),id:t.to("id")},children:[{text:t.to("text")}]})}}var Od=L(4971),qr={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};qr.insert="head",qr.singleton=!0,R()(Od.Z,qr),Od.Z.locals;class et extends G{constructor(t,e=new Yv){super(t),this._focusDelayed=null;const n=this.bindTemplate,i=qt();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 ze,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-label":n.to("ariaLabel"),"aria-labelledby":n.to("ariaLabelledBy"),"aria-disabled":n.if("isEnabled",!0,s=>!s),"aria-pressed":n.to("isOn",s=>this.isToggleable?String(!!s):!1),"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()})}};g.isSafari&&(this._focusDelayed||(this._focusDelayed=Rr(()=>this.focus(),0)),r.on.mousedown=n.to(()=>{this._focusDelayed()}),r.on.mouseup=n.to(()=>{this._focusDelayed.cancel()})),this.setTemplate(r)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}destroy(){this._focusDelayed&&this._focusDelayed.cancel(),super.destroy()}_setupLabelView(t){return t.bind("text","style","id").to(this,"label","labelStyle","ariaLabelledBy"),t}_createKeystrokeView(){const t=new G;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",e=>Cd(e))}]}),t}_getTooltipString(t,e,n){return t?typeof t=="string"?t:(n&&(n=Cd(n)),t instanceof Function?t(e,n):`${e}${n?` (${n})`:""}`):""}}var Rd=L(7258),Wr={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Wr.insert="head",Wr.singleton=!0,R()(Rd.Z,Wr),Rd.Z.locals;class gi extends et{constructor(t){super(t),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const t=new G;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),t}}function Qv(o,t){const e=o.t,n={Black:e("Black"),"Dim grey":e("Dim grey"),Grey:e("Grey"),"Light grey":e("Light grey"),White:e("White"),Red:e("Red"),Orange:e("Orange"),Yellow:e("Yellow"),"Light green":e("Light green"),Green:e("Green"),Aquamarine:e("Aquamarine"),Turquoise:e("Turquoise"),"Light blue":e("Light blue"),Blue:e("Blue"),Purple:e("Purple")};return t.map(i=>{const r=n[i.label];return r&&r!=i.label&&(i.label=r),i})}function Jv(o){return o.map(Xv).filter(t=>!!t)}function Xv(o){return typeof o=="string"?{model:o,label:o,hasBorder:!1,view:{name:"span",styles:{color:o}}}:{model:o.color,label:o.label||o.color,hasBorder:o.hasBorder===void 0?!1:o.hasBorder,view:{name:"span",styles:{color:`${o.color}`}}}}const ty='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M16.935 5.328a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.829 0L3.5 13.107a1.999 1.999 0 1 1 2.828-2.829l.707.707a1 1 0 0 0 1.414 0l5.658-5.657a2 2 0 0 1 2.828 0z"/><path d="M14.814 6.035 8.448 12.4a1 1 0 0 1-1.414 0l-1.413-1.415A1 1 0 1 0 4.207 12.4l2.829 2.829a1 1 0 0 0 1.414 0l7.778-7.778a1 1 0 1 0-1.414-1.415z"/></svg>';class jd extends et{constructor(t){super(t);const e=this.bindTemplate;this.set("color",void 0),this.set("hasBorder",!1),this.icon=ty,this.extendTemplate({attributes:{style:{backgroundColor:e.to("color")},class:["ck","ck-color-grid__tile",e.if("hasBorder","ck-color-selector__color-tile_bordered")]}})}render(){super.render(),this.iconView.fillColor="hsl(0, 0%, 100%)"}}var Fd=L(4923),$r={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};$r.insert="head",$r.singleton=!0,R()(Fd.Z,$r),Fd.Z.locals;class Vd extends G{constructor(t,e){super(t);const n=e&&e.colorDefinitions?e.colorDefinitions:[];this.columns=e&&e.columns?e.columns:5;const i={gridTemplateColumns:`repeat( ${this.columns}, 1fr)`};this.set("selectedColor",void 0),this.items=this.createCollection(),this.focusTracker=new Bt,this.keystrokes=new Vt,this.items.on("add",(r,s)=>{s.isOn=s.color===this.selectedColor}),n.forEach(r=>{const s=new jd;s.set({color:r.color,label:r.label,tooltip:!0,hasBorder:r.options.hasBorder}),s.on("execute",()=>{this.fire("execute",{value:r.color,hasBorder:r.options.hasBorder,label:r.label})}),this.items.add(s)}),this.setTemplate({tag:"div",children:this.items,attributes:{class:["ck","ck-color-grid"],style:i}}),this.on("change:selectedColor",(r,s,a)=>{for(const c of this.items)c.isOn=c.color===a})}focus(){this.items.length&&this.items.first.focus()}focusLast(){this.items.length&&this.items.last.focus()}render(){super.render();for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",(t,e)=>{this.focusTracker.add(e.element)}),this.items.on("remove",(t,e)=>{this.focusTracker.remove(e.element)}),this.keystrokes.listenTo(this.element),_({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:this.columns,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}}var Hd=L(8874);const Ud=ey;var Gd={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function ey(o){var t,e=[],n=1,i;if(typeof o=="string")if(Hd[o])e=Hd[o].slice(),i="rgb";else if(o==="transparent")n=0,i="rgb",e=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(o)){var r=o.slice(1),s=r.length,a=s<=4;n=1,a?(e=[parseInt(r[0]+r[0],16),parseInt(r[1]+r[1],16),parseInt(r[2]+r[2],16)],s===4&&(n=parseInt(r[3]+r[3],16)/255)):(e=[parseInt(r[0]+r[1],16),parseInt(r[2]+r[3],16),parseInt(r[4]+r[5],16)],s===8&&(n=parseInt(r[6]+r[7],16)/255)),e[0]||(e[0]=0),e[1]||(e[1]=0),e[2]||(e[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(o)){var c=t[1],l=c==="rgb",r=c.replace(/a$/,"");i=r;var s=r==="cmyk"?4:r==="gray"?1:3;e=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(m,p){if(/%$/.test(m))return p===s?parseFloat(m)/100:r==="rgb"?parseFloat(m)*255/100:parseFloat(m);if(r[p]==="h"){if(/deg$/.test(m))return parseFloat(m);if(Gd[m]!==void 0)return Gd[m]}return parseFloat(m)}),c===r&&e.push(1),n=l||e[s]===void 0?1:e[s],e=e.slice(0,s)}else o.length>10&&/[0-9](?:\s|\/)/.test(o)&&(e=o.match(/([0-9]+)/g).map(function(d){return parseFloat(d)}),i=o.match(/([a-z])/gi).join("").toLowerCase());else isNaN(o)?Array.isArray(o)||o.length?(e=[o[0],o[1],o[2]],i="rgb",n=o.length===4?o[3]:1):o instanceof Object&&(o.r!=null||o.red!=null||o.R!=null?(i="rgb",e=[o.r||o.red||o.R||0,o.g||o.green||o.G||0,o.b||o.blue||o.B||0]):(i="hsl",e=[o.h||o.hue||o.H||0,o.s||o.saturation||o.S||0,o.l||o.lightness||o.L||o.b||o.brightness]),n=o.a||o.alpha||o.opacity||1,o.opacity!=null&&(n/=100)):(i="rgb",e=[o>>>16,(o&65280)>>>8,o&255]);return{space:i,values:e,alpha:n}}var qd=L(2085);function Wd(o,t){if(!o)return"";const e=$d(o);if(!e)return"";if(e.space===t)return o;if(!iy(e))return"";const i=qd[e.space][t];if(!i)return"";const r=i(e.space==="hex"?e.hexValue:e.values);return oy(r,t)}function ny(o){if(!o)return"";const t=$d(o);return t?t.space==="hex"?t.hexValue:Wd(o,"hex"):"#000"}function oy(o,t){switch(t){case"hex":return`#${o}`;case"rgb":return`rgb( ${o[0]}, ${o[1]}, ${o[2]} )`;case"hsl":return`hsl( ${o[0]}, ${o[1]}%, ${o[2]}% )`;case"hwb":return`hwb( ${o[0]}, ${o[1]}, ${o[2]} )`;case"lab":return`lab( ${o[0]}% ${o[1]} ${o[2]} )`;case"lch":return`lch( ${o[0]}% ${o[1]} ${o[2]} )`;default:return""}}function $d(o){if(o.startsWith("#")){const e=Ud(o);return{space:"hex",values:e.values,hexValue:o,alpha:e.alpha}}const t=Ud(o);return t.space?t:null}function iy(o){return Object.keys(qd).includes(o.space)}var ry=function(){return me.Date.now()};const Zr=ry;var sy=/\s/;function ay(o){for(var t=o.length;t--&&sy.test(o.charAt(t)););return t}const cy=ay;var ly=/^\s+/;function dy(o){return o&&o.slice(0,cy(o)+1).replace(ly,"")}const uy=dy;var hy="[object Symbol]";function gy(o){return typeof o=="symbol"||ae(o)&&Ue(o)==hy}const mi=gy;var Zd=0/0,my=/^[-+]0x[0-9a-f]+$/i,fy=/^0b[01]+$/i,py=/^0o[0-7]+$/i,ky=parseInt;function by(o){if(typeof o=="number")return o;if(mi(o))return Zd;if(bt(o)){var t=typeof o.valueOf=="function"?o.valueOf():o;o=bt(t)?t+"":t}if(typeof o!="string")return o===0?o:+o;o=uy(o);var e=fy.test(o);return e||py.test(o)?ky(o.slice(2),e?2:8):my.test(o)?Zd:+o}const Kd=by;var wy="Expected a function",Ay=Math.max,Cy=Math.min;function _y(o,t,e){var n,i,r,s,a,c,l=0,d=!1,u=!1,m=!0;if(typeof o!="function")throw new TypeError(wy);t=Kd(t)||0,bt(e)&&(d=!!e.leading,u="maxWait"in e,r=u?Ay(Kd(e.maxWait)||0,t):r,m="trailing"in e?!!e.trailing:m);function p(H){var Y=n,q=i;return n=i=void 0,l=H,s=o.apply(q,Y),s}function b(H){return l=H,a=setTimeout(z,t),d?p(H):s}function S(H){var Y=H-c,q=H-l,At=t-Y;return u?Cy(At,r-q):At}function B(H){var Y=H-c,q=H-l;return c===void 0||Y>=t||Y<0||u&&q>=r}function z(){var H=Zr();if(B(H))return V(H);a=setTimeout(z,S(H))}function V(H){return a=void 0,m&&n?p(H):(n=i=void 0,s)}function X(){a!==void 0&&clearTimeout(a),l=0,n=c=i=a=void 0}function at(){return a===void 0?s:V(Zr())}function ft(){var H=Zr(),Y=B(H);if(n=arguments,i=this,c=H,Y){if(a===void 0)return b(c);if(u)return clearTimeout(a),a=setTimeout(z,t),p(c)}return a===void 0&&(a=setTimeout(z,t)),s}return ft.cancel=X,ft.flush=at,ft}const Bn=_y;var Yd=L(3525),Kr={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Kr.insert="head",Kr.singleton=!0,R()(Yd.Z,Kr),Yd.Z.locals;class fo extends G{constructor(t){super(t),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${qt()}`;const e=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:e.to("for")},children:[{text:e.to("text")}]})}}var Qd=L(2933),Yr={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Yr.insert="head",Yr.singleton=!0,R()(Qd.Z,Yr),Qd.Z.locals;class po extends G{constructor(t,e){super(t);const n=`ck-labeled-field-view-${qt()}`,i=`ck-labeled-field-view-status-${qt()}`;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 fo(this.locale);return e.for=t,e.bind("text").to(this,"label"),e}_createStatusView(t){const e=new G(this.locale),n=this.bindTemplate;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",i=>!i)],id:t,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),e}focus(t){this.fieldView.focus(t)}}class vy extends G{constructor(t){super(t),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.focusTracker=new Bt,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",e.if("isFocused","ck-input_focused"),e.if("isEmpty","ck-input-text_empty"),e.if("hasError","ck-error")],id:e.to("id"),placeholder:e.to("placeholder"),readonly:e.to("isReadOnly"),"aria-invalid":e.if("hasError",!0),"aria-describedby":e.to("ariaDescribedById")},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=yy(this.element)}_setDomElementValue(t){this.element.value=!t&&t!==0?"":t}}function yy(o){return!o.value}var Jd=L(2470),Qr={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Qr.insert="head",Qr.singleton=!0,R()(Jd.Z,Qr),Jd.Z.locals;class xy extends vy{constructor(t){super(t),this.set("inputMode","text");const e=this.bindTemplate;this.extendTemplate({attributes:{inputmode:e.to("inputMode")}})}}class Ey extends xy{constructor(t){super(t),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var Xd=L(5224),Jr={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Jr.insert="head",Jr.singleton=!0,R()(Xd.Z,Jr),Xd.Z.locals;class Dy extends G{constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",e.to("position",n=>`ck-dropdown__panel_${n}`),e.if("isVisible","ck-dropdown__panel-visible")],tabindex:"-1"},children:this.children,on:{selectstart:e.to(n=>{n.target.tagName.toLocaleLowerCase()!=="input"&&n.preventDefault()})}})}focus(){if(this.children.length){const t=this.children.first;typeof t.focus=="function"?t.focus():(this.children.first,void 0)}}focusLast(){if(this.children.length){const t=this.children.last;typeof t.focusLast=="function"?t.focusLast():t.focus()}}}var tu=L(5062),Xr={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Xr.insert="head",Xr.singleton=!0,R()(tu.Z,Xr),tu.Z.locals;class Nn extends G{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 Vt,this.focusTracker=new Bt,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=Nn._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}=Nn.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]}}Nn.defaultPanelPositions={south:(o,t)=>({top:o.bottom,left:o.left-(t.width-o.width)/2,name:"s"}),southEast:o=>({top:o.bottom,left:o.left,name:"se"}),southWest:(o,t)=>({top:o.bottom,left:o.left-t.width+o.width,name:"sw"}),southMiddleEast:(o,t)=>({top:o.bottom,left:o.left-(t.width-o.width)/4,name:"sme"}),southMiddleWest:(o,t)=>({top:o.bottom,left:o.left-(t.width-o.width)*3/4,name:"smw"}),north:(o,t)=>({top:o.top-t.height,left:o.left-(t.width-o.width)/2,name:"n"}),northEast:(o,t)=>({top:o.top-t.height,left:o.left,name:"ne"}),northWest:(o,t)=>({top:o.top-t.height,left:o.left-t.width+o.width,name:"nw"}),northMiddleEast:(o,t)=>({top:o.top-t.height,left:o.left-(t.width-o.width)/4,name:"nme"}),northMiddleWest:(o,t)=>({top:o.top-t.height,left:o.left-(t.width-o.width)*3/4,name:"nmw"})},Nn._getOptimalPosition=Pr;const ts='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>';class eu extends et{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 ze;return t.content=ts,t.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),t}}class fe extends ct(){constructor(t){if(super(),this.focusables=t.focusables,this.focusTracker=t.focusTracker,this.keystrokeHandler=t.keystrokeHandler,this.actions=t.actions,t.actions&&t.keystrokeHandler)for(const e in t.actions){let n=t.actions[e];typeof n=="string"&&(n=[n]);for(const i of n)t.keystrokeHandler.set(i,(r,s)=>{this[e](),s()})}this.on("forwardCycle",()=>this.focusFirst(),{priority:"low"}),this.on("backwardCycle",()=>this.focusLast(),{priority:"low"})}get first(){return this.focusables.find(es)||null}get last(){return this.focusables.filter(es).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let t=null;return this.focusTracker.focusedElement===null?null:(this.focusables.find((e,n)=>{const i=e.element===this.focusTracker.focusedElement;return i&&(t=n),i}),t)}focusFirst(){this._focus(this.first,1)}focusLast(){this._focus(this.last,-1)}focusNext(){const t=this.next;t&&this.focusables.getIndex(t)===this.current||(t===this.first?this.fire("forwardCycle"):this._focus(t,1))}focusPrevious(){const t=this.previous;t&&this.focusables.getIndex(t)===this.current||(t===this.last?this.fire("backwardCycle"):this._focus(t,-1))}_focus(t,e){t&&t.focus(e)}_getFocusableItem(t){const e=this.current,n=this.focusables.length;if(!n)return null;if(e===null)return this[t===1?"first":"last"];let i=(e+n+t)%n;do{const r=this.focusables.get(i);if(es(r))return r;i=(i+n+t)%n}while(i!==e);return null}}function es(o){return!!("focus"in o&&nn(o.element))}class nu extends G{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class Sy extends G{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function Ty(o){return o.bindTemplate.to(t=>{t.target===o.element&&t.preventDefault()})}function ou(o){if(Array.isArray(o))return{items:o,removeItems:[]};const t={items:[],removeItems:[]};return o?{...t,...o}:t}class M extends st(){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",iu,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),this._disableStack.size==0&&(this.off("set:isEnabled",iu),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function iu(o){o.return=!1,o.stop()}class Q extends st(){constructor(t){super(),this.editor=t,this.set("value",void 0),this.set("isEnabled",!1),this._affectsData=!0,this._isEnabledBasedOnSelection=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.listenTo(t,"change:isReadOnly",()=>{this.refresh()}),this.on("set:isEnabled",e=>{if(!this.affectsData)return;const n=t.model.document.selection,r=!(n.getFirstPosition().root.rootName=="$graveyard")&&t.model.canEditAt(n);(t.isReadOnly||this._isEnabledBasedOnSelection&&!r)&&(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",ru,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),this._disableStack.size==0&&(this.off("set:isEnabled",ru),this.refresh())}execute(...t){}destroy(){this.stopListening()}}function ru(o){o.return=!1,o.stop()}class su extends Q{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...t){const e=this._getFirstEnabledCommand();return!!e&&e.execute(t)}registerChildCommand(t,e={}){tl(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 au extends ct(){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 w("plugincollection-plugin-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;p(t),S(t);const s=t.filter(H=>!u(H,e)),a=[...b(s)];ft(a,n);const c=X(a);return at(c,"init").then(()=>at(c,"afterInit")).then(()=>c);function l(H){return typeof H=="function"}function d(H){return l(H)&&!!H.isContextPlugin}function u(H,Y){return Y.some(q=>q===H||m(H)===q||m(q)===H)}function m(H){return l(H)?H.pluginName||H.name:H}function p(H,Y=new Set){H.forEach(q=>{l(q)&&(Y.has(q)||(Y.add(q),q.pluginName&&!i._availablePlugins.has(q.pluginName)&&i._availablePlugins.set(q.pluginName,q),q.requires&&p(q.requires,Y)))})}function b(H,Y=new Set){return H.map(q=>l(q)?q:i._availablePlugins.get(q)).reduce((q,At)=>Y.has(At)?q:(Y.add(At),At.requires&&(S(At.requires,At),b(At.requires,Y).forEach(An=>q.add(An))),q.add(At)),new Set)}function S(H,Y=null){H.map(q=>l(q)?q:i._availablePlugins.get(q)||q).forEach(q=>{B(q,Y),z(q,Y),V(q,Y)})}function B(H,Y){if(!l(H))throw Y?new w("plugincollection-soft-required",r,{missingPlugin:H,requiredBy:m(Y)}):new w("plugincollection-plugin-not-found",r,{plugin:H})}function z(H,Y){if(d(Y)&&!d(H))throw new w("plugincollection-context-required",r,{plugin:m(H),requiredBy:m(Y)})}function V(H,Y){if(Y&&u(H,e))throw new w("plugincollection-required",r,{plugin:m(H),requiredBy:m(Y)})}function X(H){return H.map(Y=>{let q=i._contextPlugins.get(Y);return q=q||new Y(r),i._add(Y,q),q})}function at(H,Y){return H.reduce((q,At)=>!At[Y]||i._contextPlugins.has(At)?q:q.then(At[Y].bind(At)),Promise.resolve())}function ft(H,Y){for(const q of Y){if(typeof q!="function")throw new w("plugincollection-replace-plugin-invalid-type",null,{pluginItem:q});const At=q.pluginName;if(!At)throw new w("plugincollection-replace-plugin-missing-name",null,{pluginItem:q});if(q.requires&&q.requires.length)throw new w("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:At});const An=i._availablePlugins.get(At);if(!An)throw new w("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:At});const fb=H.indexOf(An);if(fb===-1){if(i._contextPlugins.has(An))return;throw new w("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:At})}if(An.requires&&An.requires.length)throw new w("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:At});H.splice(fb,1,q),i._availablePlugins.set(At,q)}}}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 w("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:t});this._plugins.set(n,e)}}}class cu{constructor(t){this._contextOwner=null,this.config=new td(t,this.constructor.defaultConfig);const e=this.constructor.builtinPlugins;this.config.define("plugins",e),this.plugins=new au(this,e);const n=this.config.get("language")||{};this.locale=new Ev({uiLanguage:typeof n=="string"?n:n.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new te}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 w("context-initplugins-constructor-only",null,{Plugin:n});if(n.isContextPlugin!==!0)throw new w("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 w("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 fi extends st(){constructor(t){super(),this.context=t}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}var lu=L(7372),ns={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ns.insert="head",ns.singleton=!0,R()(lu.Z,ns),lu.Z.locals;const pi=new WeakMap;let du=!1;function uu({view:o,element:t,text:e,isDirectHost:n=!0,keepOnFocus:i=!1}){const r=o.document;pi.has(r)||(pi.set(r,new Map),r.registerPostFixer(a=>os(r,a)),r.on("change:isComposing",()=>{o.change(a=>os(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&&zy();function s(a){pi.get(r).set(t,{text:a,isDirectHost:n,keepOnFocus:i,hostElement:n?t:null}),o.change(c=>os(r,c))}}function Iy(o,t){return t.hasClass("ck-placeholder")?!1:(o.addClass("ck-placeholder",t),!0)}function My(o,t){return t.hasClass("ck-placeholder")?(o.removeClass("ck-placeholder",t),!0):!1}function By(o,t){if(!o.isAttached()||Array.from(o.getChildren()).some(s=>!s.is("uiElement")))return!1;const n=o.document,r=n.selection.anchor;return n.isComposing&&r&&r.parent===o?!1:t||!n.isFocused?!0:!!r&&r.parent!==o}function os(o,t){const e=pi.get(o),n=[];let i=!1;for(const[r,s]of e)s.isDirectHost&&(n.push(r),hu(t,r,s)&&(i=!0));for(const[r,s]of e){if(s.isDirectHost)continue;const a=Ny(r);a&&(n.includes(a)||(s.hostElement=a,hu(t,r,s)&&(i=!0)))}return i}function hu(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)&&By(r,e.keepOnFocus)?Iy(o,r)&&(s=!0):My(o,r)&&(s=!0),s}function Ny(o){if(o.childCount){const t=o.getChild(0);if(t.is("element")&&!t.is("uiElement")&&!t.is("attributeElement"))return t}return null}function zy(){du||void 0,du=!0}class on{is(){throw new Error("is() method is abstract")}}var Py=4;function Ly(o){return Mr(o,Py)}const gu=Ly;class rn extends ct(on){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 w("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?!1:!this.isBefore(t)}_remove(){this.parent._removeChildren(this.index)}_fireChange(t,e){this.fire(`change:${t}`,e),this.parent&&this.parent._fireChange(t,e)}toJSON(){const t=gu(this);return delete t.parent,t}}rn.prototype.is=function(o){return o==="node"||o==="view:node"};class ht extends rn{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 ht?this===t||this.data===t.data:!1}_clone(){return new ht(this.document,this.data)}}ht.prototype.is=function(o){return o==="$text"||o==="view:$text"||o==="text"||o==="view:text"||o==="node"||o==="view:node"};class ve extends on{constructor(t,e,n){if(super(),this.textNode=t,e<0||e>t.data.length)throw new w("view-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.data.length)throw new w("view-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(t={}){const e=[];let n=t.includeSelf?this.textNode:this.parent;for(;n!==null;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}}ve.prototype.is=function(o){return o==="$textProxy"||o==="view:$textProxy"||o==="textProxy"||o==="view:textProxy"};class 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=mu(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=mu(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)?e:null}}function mu(o,t){if(typeof t=="function")return t(o);const e={};return t.name&&(e.name=Oy(t.name,o.name),!e.name)||t.attributes&&(e.attributes=Vy(t.attributes,o),!e.attributes)||t.classes&&(e.classes=Hy(t.classes,o),!e.classes)||t.styles&&(e.styles=Uy(t.styles,o),!e.styles)?null:e}function Oy(o,t){return o instanceof RegExp?!!t.match(o):o===t}function is(o,t,e){const n=Ry(o),i=Array.from(t),r=[];if(n.forEach(([s,a])=>{i.forEach(c=>{jy(s,c)&&Fy(a,c,e)&&r.push(c)})}),!(!n.length||r.length<n.length))return r}function Ry(o){return Array.isArray(o)?o.map(t=>Wt(t)?((t.key===void 0||t.value===void 0)&&void 0,[t.key,t.value]):[t,!0]):Wt(o)?Object.entries(o):[[o,!0]]}function jy(o,t){return o===!0||o===t||o instanceof RegExp&&t.match(o)}function Fy(o,t,e){if(o===!0)return!0;const n=e(t);return o===n||o instanceof RegExp&&!!String(n).match(o)}function Vy(o,t){const e=new Set(t.getAttributeKeys());return Wt(o)?(o.style!==void 0&&void 0,o.class!==void 0&&void 0):(e.delete("style"),e.delete("class")),is(o,e,n=>t.getAttribute(n))}function Hy(o,t){return is(o,t.getClassNames(),()=>{})}function Uy(o,t){return is(o,t.getStyleNames(!0),e=>t.getStyle(e))}var Gy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qy=/^\w*$/;function Wy(o,t){if(Gt(o))return!1;var e=typeof o;return e=="number"||e=="symbol"||e=="boolean"||o==null||mi(o)?!0:qy.test(o)||!Gy.test(o)||t!=null&&o in Object(t)}const $y=Wy;var Zy="Expected a function";function rs(o,t){if(typeof o!="function"||t!=null&&typeof t!="function")throw new TypeError(Zy);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(rs.Cache||ei),e}rs.Cache=ei;const Ky=rs;var Yy=500;function Qy(o){var t=Ky(o,function(n){return e.size===Yy&&e.clear(),n}),e=t.cache;return t}const Jy=Qy;var Xy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t1=/\\(\\)?/g,e1=Jy(function(o){var t=[];return o.charCodeAt(0)===46&&t.push(""),o.replace(Xy,function(e,n,i,r){t.push(i?r.replace(t1,"$1"):n||e)}),t});const n1=e1;function o1(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}const fu=o1;var i1=1/0,pu=_e?_e.prototype:void 0,ku=pu?pu.toString:void 0;function bu(o){if(typeof o=="string")return o;if(Gt(o))return fu(o,bu)+"";if(mi(o))return ku?ku.call(o):"";var t=o+"";return t=="0"&&1/o==-i1?"-0":t}const r1=bu;function s1(o){return o==null?"":r1(o)}const ko=s1;function a1(o,t){return Gt(o)?o:$y(o,t)?[o]:n1(ko(o))}const ss=a1;function c1(o){var t=o==null?0:o.length;return t?o[t-1]:void 0}const l1=c1;var d1=1/0;function u1(o){if(typeof o=="string"||mi(o))return o;var t=o+"";return t=="0"&&1/o==-d1?"-0":t}const as=u1;function h1(o,t){t=ss(t,o);for(var e=0,n=t.length;o!=null&&e<n;)o=o[as(t[e++])];return e&&e==n?o:void 0}const wu=h1;function g1(o,t,e){var n=-1,i=o.length;t<0&&(t=-t>i?0:i+t),e=e>i?i:e,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}const Au=g1;function m1(o,t){return t.length<2?o:wu(o,Au(t,0,-1))}const f1=m1;function p1(o,t){return t=ss(t,o),o=f1(o,t),o==null||delete o[as(l1(t))]}const k1=p1;function b1(o,t){return o==null?!0:k1(o,t)}const w1=b1;function A1(o,t,e){var n=o==null?void 0:wu(o,t);return n===void 0?e:n}const ki=A1;function C1(o,t,e){(e!==void 0&&!oo(o[t],e)||e===void 0&&!(t in o))&&fr(o,t,e)}const cs=C1;function _1(o){return function(t,e,n){for(var i=-1,r=Object(t),s=n(t),a=s.length;a--;){var c=s[o?a:++i];if(e(r[c],c,r)===!1)break}return t}}var v1=_1();const y1=v1;function x1(o){return ae(o)&&ii(o)}const E1=x1;function D1(o,t){if(!(t==="constructor"&&typeof o[t]=="function")&&t!="__proto__")return o[t]}const ls=D1;function S1(o){return Dn(o,Tn(o))}const T1=S1;function I1(o,t,e,n,i,r,s){var a=ls(o,e),c=ls(t,e),l=s.get(c);if(l){cs(o,e,l);return}var d=r?r(a,c,e+"",o,t,s):void 0,u=d===void 0;if(u){var m=Gt(c),p=!m&&ao(c),b=!m&&!p&&Ar(c);d=c,m||p||b?Gt(a)?d=a:E1(a)?d=vr(a):p?(u=!1,d=Nl(c,!0)):b?(u=!1,d=Wl(c,!0)):d=[]:Wt(c)||kr(c)?(d=a,kr(a)?d=T1(a):(!bt(a)||Qe(a))&&(d=Zl(c))):u=!1}u&&(s.set(c,d),i(d,c,n,r,s),s.delete(c)),cs(o,e,d)}const M1=I1;function Cu(o,t,e,n,i){o!==t&&y1(t,function(r,s){if(i||(i=new so),bt(r))M1(o,t,s,e,Cu,n,i);else{var a=n?n(ls(o,s),r,s+"",o,t,i):void 0;a===void 0&&(a=r),cs(o,s,a)}},Tn)}const _u=Cu;function B1(o){return o}const sn=B1;function N1(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)}const z1=N1;var vu=Math.max;function P1(o,t,e){return t=vu(t===void 0?o.length-1:t,0),function(){for(var n=arguments,i=-1,r=vu(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),z1(o,this,a)}}const L1=P1;function O1(o){return function(){return o}}const R1=O1;var j1=ni?function(o,t){return ni(o,"toString",{configurable:!0,enumerable:!1,value:R1(t),writable:!0})}:sn;const F1=j1;var V1=800,H1=16,U1=Date.now;function G1(o){var t=0,e=0;return function(){var n=U1(),i=H1-(n-e);if(e=n,i>0){if(++t>=V1)return arguments[0]}else t=0;return o.apply(void 0,arguments)}}var q1=G1(F1);const W1=q1;function $1(o,t){return W1(L1(o,t,sn),o+"")}const yu=$1;function Z1(o,t,e){if(!bt(e))return!1;var n=typeof t;return(n=="number"?ii(e)&&br(t,e.length):n=="string"&&t in e)?oo(e[t],o):!1}const K1=Z1;function Y1(o){return yu(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&&K1(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})}const ds=Y1;var Q1=ds(function(o,t,e){_u(o,t,e)});const xu=Q1;function J1(o,t,e,n){if(!bt(o))return o;t=ss(t,o);for(var i=-1,r=t.length,s=r-1,a=o;a!=null&&++i<r;){var c=as(t[i]),l=e;if(c==="__proto__"||c==="constructor"||c==="prototype")return o;if(i!=s){var d=a[c];l=n?n(d,c,a):void 0,l===void 0&&(l=bt(d)?d:br(t[i+1])?[]:{})}pr(a,c,l),a=a[c]}return o}const X1=J1;function tx(o,t,e){return o==null?o:X1(o,t,e)}const ex=tx;class nx{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=ix(t);for(const[n,i]of e)this._styleProcessor.toNormalizedForm(n,i,this._styles)}has(t){if(this.isEmpty)return!1;const n=this._styleProcessor.getReducedForm(t,this._styles).find(([i])=>i===t);return Array.isArray(n)}set(t,e){if(bt(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=us(t);w1(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]&&!bt(this._styles[t]))return this._styles[t];const n=this._styleProcessor.getReducedForm(t,this._styles).find(([i])=>i===t);if(Array.isArray(n))return n[1]}getStyleNames(t=!1){return this.isEmpty?[]:t?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map(([n])=>n)}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 i=e.splice(0,e.length-1).join("."),r=ki(this._styles,i);if(!r)return;!Object.keys(r).length&&this.remove(i)}}class ox{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(t,e,n){if(bt(e)){hs(n,us(t),e);return}if(this._normalizers.has(t)){const i=this._normalizers.get(t),{path:r,value:s}=i(e);hs(n,r,s)}else hs(n,t,e)}getNormalized(t,e){if(!t)return xu({},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 ki(e,n);const i=n(t,e);if(i)return i}return ki(e,us(t))}getReducedForm(t,e){const n=this.getNormalized(t,e);return n===void 0?[]:this._reducers.has(t)?this._reducers.get(t)(n):[[t,n]]}getStyleNames(t){const e=Array.from(this._consumables.keys()).filter(i=>{const r=this.getNormalized(i,t);return r&&typeof r=="object"?Object.keys(r).length:r}),n=new Set([...e,...Object.keys(t)]);return Array.from(n)}getRelatedStyles(t){return this._consumables.get(t)||[]}setNormalizer(t,e){this._normalizers.set(t,e)}setExtractor(t,e){this._extractors.set(t,e)}setReducer(t,e){this._reducers.set(t,e)}setStyleRelation(t,e){this._mapStyleNames(t,e);for(const n of e)this._mapStyleNames(n,[t])}_mapStyleNames(t,e){this._consumables.has(t)||this._consumables.set(t,[]),this._consumables.get(t).push(...e)}}function ix(o){let t=null,e=0,n=0,i=null;const r=new Map;if(o==="")return r;o.charAt(o.length-1)!=";"&&(o=o+";");for(let s=0;s<o.length;s++){const a=o.charAt(s);if(t===null)switch(a){case":":i||(i=o.substr(e,s-e),n=s+1);break;case'"':case"'":t=a;break;case";":{const c=o.substr(n,s-n);i&&r.set(i.trim(),c.trim()),i=null,e=s+1;break}}else a===t&&(t=null)}return r}function us(o){return o.replace("-",".")}function hs(o,t,e){let n=e;bt(e)&&(n=xu({},ki(o,t),e)),ex(o,t,n)}class ne extends rn{constructor(t,e,n,i){if(super(t),this._unsafeAttributesToRender=[],this._customProperties=new Map,this.name=e,this._attrs=rx(n),this._children=[],i&&this._insertChild(0,i),this._classes=new Set,this._attrs.has("class")){const r=this._attrs.get("class");Eu(this._classes,r),this._attrs.delete("class")}this._styles=new nx(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>0&&(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 ne))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=sx(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"?Eu(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):!1:t=="style"?this._styles.isEmpty?!1:(this._styles.clear(),!0):this._attrs.delete(t)}_addClass(t){this._fireChange("attributes",this);for(const e of _t(t))this._classes.add(e)}_removeClass(t){this._fireChange("attributes",this);for(const e of _t(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 _t(t))this._styles.remove(e)}_setCustomProperty(t,e){this._customProperties.set(t,e)}_removeCustomProperty(t){return this._customProperties.delete(t)}}ne.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"};function rx(o){const t=Ne(o);for(const[e,n]of t)n===null?t.delete(e):typeof n!="string"&&t.set(e,String(n));return t}function Eu(o,t){const e=t.split(/\s+/);o.clear(),e.forEach(n=>o.add(n))}function sx(o,t){return typeof t=="string"?[new ht(o,t)]:(Jt(t)||(t=[t]),Array.from(t).map(e=>typeof e=="string"?new ht(o,e):e instanceof ve?new ht(o,e.data):e))}class bo extends ne{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=Du}}bo.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"};function Du(){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}class bi extends st(bo){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()}}bi.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 Su=Symbol("rootName");class Tu extends bi{constructor(t,e){super(t,e),this.rootName="main"}get rootName(){return this.getCustomProperty(Su)}set rootName(t){this._setCustomProperty(Su,t)}set _name(t){this.name=t}}Tu.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 an{constructor(t={}){if(!t.boundaries&&!t.startPosition)throw new w("view-tree-walker-no-start-position",null);if(t.direction&&t.direction!="forward"&&t.direction!="backward")throw new w("view-tree-walker-unknown-direction",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,t.startPosition?this._position=O._createAt(t.startPosition):this._position=O._createAt(t.boundaries[t.direction=="backward"?"end":"start"]),this.direction=t.direction||"forward",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}get position(){return this._position}skip(t){let e,n;do n=this.position,e=this.next();while(!e.done&&t(e.value));e.done||(this._position=n)}next(){return 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 ht){if(t.isAtEnd)return this._position=O._createAfter(n),this._next();i=n.data[t.offset]}else i=n.getChild(t.offset);if(i instanceof ne){if(!this.shallow)t=new O(i,0);else{if(this.boundaries&&this.boundaries.end.isBefore(t))return{done:!0,value:void 0};t.offset++}return this._position=t,this._formatReturnValue("elementStart",i,e,t,1)}if(i instanceof ht){if(this.singleCharacters)return t=new O(i,0),this._position=t,this._next();let r=i.data.length,s;return i==this._boundaryEndParent?(r=this.boundaries.end.offset,s=new ve(i,0,r),t=O._createAfter(s)):(s=new ve(i,0,i.data.length),t.offset++),this._position=t,this._formatReturnValue("text",s,e,t,r)}if(typeof i=="string"){let r;this.singleCharacters?r=1:r=(n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length)-t.offset;const s=new ve(n,t.offset,r);return t.offset+=r,this._position=t,this._formatReturnValue("text",s,e,t,r)}return t=O._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 ht){if(t.isAtStart)return this._position=O._createBefore(n),this._previous();i=n.data[t.offset-1]}else i=n.getChild(t.offset-1);if(i instanceof ne)return this.shallow?(t.offset--,this._position=t,this._formatReturnValue("elementStart",i,e,t,1)):(t=new O(i,i.childCount),this._position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",i,e,t));if(i instanceof ht){if(this.singleCharacters)return t=new O(i,i.data.length),this._position=t,this._previous();let r=i.data.length,s;if(i==this._boundaryStartParent){const a=this.boundaries.start.offset;s=new ve(i,a,i.data.length-a),r=s.data.length,t=O._createBefore(s)}else s=new ve(i,0,i.data.length),t.offset--;return this._position=t,this._formatReturnValue("text",s,e,t,r)}if(typeof i=="string"){let r;if(this.singleCharacters)r=1;else{const a=n===this._boundaryStartParent?this.boundaries.start.offset:0;r=t.offset-a}t.offset-=r;const s=new ve(n,t.offset,r);return this._position=t,this._formatReturnValue("text",s,e,t,r)}return t=O._createBefore(n),this._position=t,this._formatReturnValue("elementStart",n,e,t,1)}_formatReturnValue(t,e,n,i,r){return e instanceof ve&&(e.offsetInText+e.data.length==e.textNode.data.length&&(this.direction=="forward"&&!(this.boundaries&&this.boundaries.end.isEqual(this.position))?(i=O._createAfter(e.textNode),this._position=i):n=O._createAfter(e.textNode)),e.offsetInText===0&&(this.direction=="backward"&&!(this.boundaries&&this.boundaries.start.isEqual(this.position))?(i=O._createBefore(e.textNode),this._position=i):n=O._createBefore(e.textNode))),{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:i,length:r}}}}class O extends on{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 bi);)if(t.parent)t=t.parent;else return null;return t}getShiftedBy(t){const e=O._createAt(this),n=e.offset+t;return e.offset=n<0?0:n,e}getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new an(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 an(t)}clone(){return new O(this.parent,this.offset)}static _createAt(t,e){if(t instanceof O)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 w("view-createpositionat-offset-required",n)}return new O(n,e)}}static _createAfter(t){if(t.is("$textProxy"))return new O(t.textNode,t.offsetInText+t.data.length);if(!t.parent)throw new w("view-position-after-root",t,{root:t});return new O(t.parent,t.index+1)}static _createBefore(t){if(t.is("$textProxy"))return new O(t.textNode,t.offsetInText);if(!t.parent)throw new w("view-position-before-root",t,{root:t});return new O(t.parent,t.index)}}O.prototype.is=function(o){return o==="position"||o==="view:position"};class K extends on{constructor(t,e=null){super(),this.start=t.clone(),this.end=e?e.clone():t.clone()}*[Symbol.iterator](){yield*new an({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(wi,{direction:"backward"}),e=this.end.getLastMatchingPosition(wi);return t.parent.is("$text")&&t.isAtStart&&(t=O._createBefore(t.parent)),e.parent.is("$text")&&e.isAtEnd&&(e=O._createAfter(e.parent)),new K(t,e)}getTrimmed(){let t=this.start.getLastMatchingPosition(wi);if(t.isAfter(this.end)||t.isEqual(this.end))return new K(t,t);let e=this.end.getLastMatchingPosition(wi,{direction:"backward"});const n=t.nodeAfter,i=e.nodeBefore;return n&&n.is("$text")&&(t=new O(n,0)),i&&i.is("$text")&&(e=new O(i,i.data.length)),new K(t,e)}isEqual(t){return this==t||this.start.isEqual(t.start)&&this.end.isEqual(t.end)}containsPosition(t){return t.isAfter(this.start)&&t.isBefore(this.end)}containsRange(t,e=!1){t.isCollapsed&&(e=!1);const n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),i=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&i}getDifference(t){const e=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&e.push(new K(this.start,t.start)),this.containsPosition(t.end)&&e.push(new K(t.end,this.end))):e.push(this.clone()),e}getIntersection(t){if(this.isIntersecting(t)){let e=this.start,n=this.end;return this.containsPosition(t.start)&&(e=t.start),this.containsPosition(t.end)&&(n=t.end),new K(e,n)}return null}getWalker(t={}){return t.boundaries=this,new an(t)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let t=this.start.nodeAfter,e=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(t=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(e=this.end.parent.previousSibling),t&&t.is("element")&&t===e?t:null}clone(){return new K(this.start,this.end)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new an(t);for(const n of e)yield n.item}*getPositions(t={}){t.boundaries=this;const e=new an(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 O(t,e),new O(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(O._createBefore(t),e)}}K.prototype.is=function(o){return o==="range"||o==="view:range"};function wi(o){return!!(o.item.is("attributeElement")||o.item.is("uiElement"))}class pe extends ct(on){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=hr(this.getRanges()),n=hr(t.getRanges());if(e!=n)return!1;if(e==0)return!0;for(let i of this.getRanges()){i=i.getTrimmed();let r=!1;for(let s of t.getRanges())if(s=s.getTrimmed(),i.start.isEqual(s.start)&&i.end.isEqual(s.end)){r=!0;break}if(!r)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 gs)this._setRanges(e.getRanges(),e.isBackward),this._setFakeOptions({fake:e.isFake,label:e.fakeSelectionLabel});else if(e instanceof K)this._setRanges([e],i&&i.backward),this._setFakeOptions(i);else if(e instanceof O)this._setRanges([new K(e)]),this._setFakeOptions(i);else if(e instanceof rn){const r=!!i&&!!i.backward;let s;if(n===void 0)throw new w("view-selection-setto-required-second-parameter",this);n=="in"?s=K._createIn(e):n=="on"?s=K._createOn(e):s=new K(O._createAt(e,n)),this._setRanges([s],r),this._setFakeOptions(i)}else if(Jt(e))this._setRanges(e,i&&i.backward),this._setFakeOptions(i);else throw new w("view-selection-setto-not-selectable",this);this.fire("change")}setFocus(t,e){if(this.anchor===null)throw new w("view-selection-setfocus-no-ranges",this);const n=O._createAt(t,e);if(n.compareWith(this.focus)=="same")return;const i=this.anchor;this._ranges.pop(),n.compareWith(i)=="before"?this._addRange(new K(n,i),!0):this._addRange(new K(i,n)),this.fire("change")}_setRanges(t,e=!1){t=Array.from(t),this._ranges=[];for(const n of t)this._addRange(n);this._lastRangeBackward=!!e}_setFakeOptions(t={}){this._isFake=!!t.fake,this._fakeSelectionLabel=t.fake&&t.label||""}_addRange(t,e=!1){if(!(t instanceof K))throw new w("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 w("view-selection-range-intersects",this,{addedRange:t,intersectingRange:e});this._ranges.push(new K(t.start,t.end))}}pe.prototype.is=function(o){return o==="selection"||o==="view:selection"};class gs extends ct(on){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)}}gs.prototype.is=function(o){return o==="selection"||o=="documentSelection"||o=="view:selection"||o=="view:documentSelection"};class zn extends Ot{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 ms=Symbol("bubbling contexts");function fs(o){class t extends o{fire(n,...i){try{const r=n instanceof Ot?n:new Ot(this,n),s=ps(this);if(!s.size)return;if(wo(r,"capturing",this),Pn(s,"$capture",r,...i))return r.return;const a=r.startRange||this.selection.getFirstRange(),c=a?a.getContainedElement():null,l=c?!!Iu(s,c):!1;let d=c||ax(a);if(wo(r,"atTarget",d),!l){if(Pn(s,"$text",r,...i))return r.return;wo(r,"bubbling",d)}for(;d;){if(d.is("rootElement")){if(Pn(s,"$root",r,...i))return r.return}else if(d.is("element")&&Pn(s,d.name,r,...i))return r.return;if(Pn(s,d,r,...i))return r.return;d=d.parent,wo(r,"bubbling",d)}return wo(r,"bubbling",this),Pn(s,"$document",r,...i),r.return}catch(r){w.rethrowUnexpectedError(r,this)}}_addEventListener(n,i,r){const s=_t(r.context||"$document"),a=ps(this);for(const c of s){let l=a.get(c);l||(l=new(ct()),a.set(c,l)),this.listenTo(l,n,i,r)}}_removeEventListener(n,i){const r=ps(this);for(const s of r.values())this.stopListening(s,n,i)}}return t}{const o=fs(Object);["fire","_addEventListener","_removeEventListener"].forEach(t=>{fs[t]=o.prototype[t]})}function wo(o,t,e){o instanceof zn&&(o._eventPhase=t,o._currentTarget=e)}function Pn(o,t,e,...n){const i=typeof t=="string"?o.get(t):Iu(o,t);return i?(i.fire(e,...n),e.stop.called):!1}function Iu(o,t){for(const[e,n]of o)if(typeof e=="function"&&e(t))return n;return null}function ps(o){return o[ms]||(o[ms]=new Map),o[ms]}function ax(o){if(!o)return null;const t=o.start.parent,e=o.end.parent,n=t.getPath(),i=e.getPath();return n.length>i.length?t:e}class Ai extends fs(st()){constructor(t){super(),this._postFixers=new Set,this.selection=new gs,this.roots=new te({idProperty:"rootName"}),this.stylesProcessor=t,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1)}getRoot(t="main"){return this.roots.get(t)}registerPostFixer(t){this._postFixers.add(t)}destroy(){this.roots.forEach(t=>t.destroy()),this.stopListening()}_callPostFixers(t){let e=!1;do for(const n of this._postFixers)if(e=n(t),e)break;while(e)}}const Mu=10;class cn extends ne{constructor(t,e,n,i){super(t,e,n,i),this._priority=Mu,this._id=null,this._clonesGroup=null,this.getFillerOffset=cx}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(this.id===null)throw new w("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}}cn.DEFAULT_PRIORITY=Mu,cn.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"};function cx(){if(ks(this))return null;let o=this.parent;for(;o&&o.is("attributeElement");){if(ks(o)>1)return null;o=o.parent}return!o||ks(o)>1?null:this.childCount}function ks(o){return Array.from(o.getChildren()).filter(t=>!t.is("uiElement")).length}class bs extends ne{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=lx}_insertChild(t,e){if(e&&(e instanceof rn||Array.from(e).length>0))throw new w("view-emptyelement-cannot-add",[this,e]);return 0}}bs.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"};function lx(){return null}class Ci extends ne{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=ux}_insertChild(t,e){if(e&&(e instanceof rn||Array.from(e).length>0))throw new w("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}}Ci.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"};function dx(o){o.document.on("arrowKey",(t,e)=>hx(t,e,o.domConverter),{priority:"low"})}function ux(){return null}function hx(o,t,e){if(t.keyCode==tt.arrowright){const n=t.domTarget.ownerDocument.defaultView.getSelection(),i=n.rangeCount==1&&n.getRangeAt(0).collapsed;if(i||t.shiftKey){const r=n.focusNode,s=n.focusOffset,a=e.domPositionToView(r,s);if(a===null)return;let c=!1;const l=a.getLastMatchingPosition(d=>(d.item.is("uiElement")&&(c=!0),!!(d.item.is("uiElement")||d.item.is("attributeElement"))));if(c){const d=e.viewPositionToDom(l);i?n.collapse(d.parent,d.offset):n.extend(d.parent,d.offset)}}}}class ws extends ne{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=gx}_insertChild(t,e){if(e&&(e instanceof rn||Array.from(e).length>0))throw new w("view-rawelement-cannot-add",[this,e]);return 0}render(t,e){}}ws.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"};function gx(){return null}class ln extends ct(on){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=mx(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)}}ln.prototype.is=function(o){return o==="documentFragment"||o==="view:documentFragment"};function mx(o,t){return typeof t=="string"?[new ht(o,t)]:(Jt(t)||(t=[t]),Array.from(t).map(e=>typeof e=="string"?new ht(o,e):e instanceof ve?new ht(o,e.data):e))}class Bu{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 ln(this.document,t)}createText(t){return new ht(this.document,t)}createAttributeElement(t,e,n={}){const i=new cn(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;Wt(n)?i=n:r=n;const s=new bo(this.document,t,e,r);return i.renderUnsafeAttributes&&s._unsafeAttributesToRender.push(...i.renderUnsafeAttributes),s}createEditableElement(t,e,n={}){const i=new bi(this.document,t,e);return n.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),i}createEmptyElement(t,e,n={}){const i=new bs(this.document,t,e);return n.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),i}createUIElement(t,e,n){const i=new Ci(this.document,t,e);return n&&(i.render=n),i}createRawElement(t,e,n,i={}){const r=new ws(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){Wt(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 O?this._breakAttributes(t):this._breakAttributesRange(t)}breakContainer(t){const e=t.parent;if(!e.is("containerElement"))throw new w("view-writer-break-non-container-element",this.document);if(!e.parent)throw new w("view-writer-break-root",this.document);if(t.isAtStart)return O._createBefore(e);if(!t.isAtEnd){const n=e._clone(!1);this.insert(O._createAfter(e),n);const i=new K(t,O._createAt(e,"end")),r=new O(n,0);this.move(i,r)}return O._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 O(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 zu(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 O(i,s))}return t}mergeContainers(t){const e=t.nodeBefore,n=t.nodeAfter;if(!e||!n||!e.is("containerElement")||!n.is("containerElement"))throw new w("view-writer-merge-containers-invalid-position",this.document);const i=e.getChild(e.childCount-1),r=i instanceof ht?O._createAt(i,"end"):O._createAt(e,"end");return this.move(K._createIn(n),O._createAt(e,"end")),this.remove(K._createOn(n)),r}insert(t,e){e=Jt(e)?[...e]:[e],Pu(e,this.document);const n=e.reduce((s,a)=>{const c=s[s.length-1],l=!a.is("uiElement");return!c||c.breakAttributes!=l?s.push({breakAttributes:l,nodes:[a]}):c.nodes.push(a),s},[]);let i=null,r=t;for(const{nodes:s,breakAttributes:a}of n){const c=this._insertNodes(r,s,a);i||(i=c.start),r=c.end}return i?new K(i,r):new K(t)}remove(t){const e=t instanceof K?t:K._createOn(t);if(Ao(e,this.document),e.isCollapsed)return new ln(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 ln(this.document,a)}clear(t,e){Ao(t,this.document);const n=t.getWalker({direction:"backward",ignoreElementEnd:!0});for(const i of n){const r=i.item;let s;if(r.is("element")&&e.isSimilar(r))s=K._createOn(r);else if(!i.nextPosition.isAfter(t.start)&&r.is("$textProxy")){const a=r.getAncestors().find(c=>c.is("element")&&e.isSimilar(c));a&&(s=K._createIn(a))}s&&(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)){e=this._breakAttributes(e,!0);const i=e.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 cn))throw new w("view-writer-wrap-invalid-attribute",this.document);if(Ao(t,this.document),t.isCollapsed){let n=t.start;n.parent.is("element")&&!fx(n.parent)&&(n=n.getLastMatchingPosition(r=>r.item.is("uiElement"))),n=this._wrapPosition(n,e);const i=this.document.selection;return i.isCollapsed&&i.getFirstPosition().isEqual(t.start)&&this.setSelection(n),new K(n)}else return this._wrapRange(t,e)}unwrap(t,e){if(!(e instanceof cn))throw new w("view-writer-unwrap-invalid-attribute",this.document);if(Ao(t,this.document),t.isCollapsed)return t;const{start:n,end:i}=this._breakAttributesRange(t,!0),r=n.parent,s=this._unwrapChildren(r,n.offset,i.offset,e),a=this.mergeAttributes(s.start);a.isEqual(s.start)||s.end.offset--;const c=this.mergeAttributes(s.end);return new K(a,c)}rename(t,e){const n=new bo(this.document,t,e.getAttributes());return this.insert(O._createAfter(e),n),this.move(K._createIn(e),O._createAt(n,0)),this.remove(K._createOn(e)),n}clearClonedElementsGroup(t){this._cloneGroups.delete(t)}createPositionAt(t,e){return O._createAt(t,e)}createPositionAfter(t){return O._createAfter(t)}createPositionBefore(t){return O._createBefore(t)}createRange(t,e){return new K(t,e)}createRangeOn(t){return K._createOn(t)}createRangeIn(t){return K._createIn(t)}createSelection(...t){return new pe(...t)}createSlot(t="children"){if(!this._slotFactory)throw new w("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;if(n?i=As(t):i=t.parent.is("$text")?t.parent.parent:t.parent,!i)throw new w("view-writer-invalid-position-container",this.document);let r;n?r=this._breakAttributes(t,!0):r=t.parent.is("$text")?Cs(t):t;const s=i._insertChild(r.offset,e);for(const d of e)this._addToClonedElementsGroup(d);const a=r.getShiftedBy(s),c=this.mergeAttributes(r);c.isEqual(r)||a.offset--;const l=this.mergeAttributes(a);return new K(c,l)}_wrapChildren(t,e,n,i){let r=e;const s=[];for(;r<n;){const c=t.getChild(r),l=c.is("$text"),d=c.is("attributeElement");if(d&&this._wrapAttributeElement(i,c))s.push(new O(t,r));else if(l||!d||px(i,c)){const u=i._clone();c._remove(),u._appendChild(c),t._insertChild(r,u),this._addToClonedElementsGroup(u),s.push(new O(t,r))}else this._wrapChildren(c,0,c.childCount,i);r++}let a=0;for(const c of s){if(c.offset-=a,c.offset==e)continue;this.mergeAttributes(c).isEqual(c)||(a++,n--)}return K._createFromParentsAndOffsets(t,e,t,n)}_unwrapChildren(t,e,n,i){let r=e;const s=[];for(;r<n;){const c=t.getChild(r);if(!c.is("attributeElement")){r++;continue}if(c.isSimilar(i)){const l=c.getChildren(),d=c.childCount;c._remove(),t._insertChild(r,l),this._removeFromClonedElementsGroup(c),s.push(new O(t,r),new O(t,r+d)),r+=d,n+=d-1;continue}if(this._unwrapAttributeElement(i,c)){s.push(new O(t,r),new O(t,r+1)),r++;continue}this._unwrapChildren(c,0,c.childCount,i),r++}let a=0;for(const c of s){if(c.offset-=a,c.offset==e||c.offset==n)continue;this.mergeAttributes(c).isEqual(c)||(a++,n--)}return K._createFromParentsAndOffsets(t,e,t,n)}_wrapRange(t,e){const{start:n,end:i}=this._breakAttributesRange(t,!0),r=n.parent,s=this._wrapChildren(r,n.offset,i.offset,e),a=this.mergeAttributes(s.start);a.isEqual(s.start)||s.end.offset--;const c=this.mergeAttributes(s.end);return new K(a,c)}_wrapPosition(t,e){if(e.isSimilar(t.parent))return Nu(t.clone());t.parent.is("$text")&&(t=Cs(t));const n=this.createAttributeElement("_wrapPosition-fake-element");n._priority=Number.POSITIVE_INFINITY,n.isSimilar=()=>!1,t.parent._insertChild(t.offset,n);const i=new K(t,t.getShiftedBy(1));this.wrap(i,e);const r=new O(n.parent,n.index);n._remove();const s=r.nodeBefore,a=r.nodeAfter;return s instanceof ht&&a instanceof ht?zu(s,a):Nu(r)}_wrapAttributeElement(t,e){if(!Lu(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(!Lu(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(Ao(t,this.document),t.isCollapsed){const c=this._breakAttributes(t.start,e);return new K(c,c)}const r=this._breakAttributes(i,e),s=r.parent.childCount,a=this._breakAttributes(n,e);return r.offset+=r.parent.childCount-s,new K(a,r)}_breakAttributes(t,e=!1){const n=t.offset,i=t.parent;if(t.parent.is("emptyElement"))throw new w("view-writer-cannot-break-empty-element",this.document);if(t.parent.is("uiElement"))throw new w("view-writer-cannot-break-ui-element",this.document);if(t.parent.is("rawElement"))throw new w("view-writer-cannot-break-raw-element",this.document);if(!e&&i.is("$text")&&_s(i.parent)||_s(i))return t.clone();if(i.is("$text"))return this._breakAttributes(Cs(t),e);const r=i.childCount;if(n==r){const s=new O(i.parent,i.index+1);return this._breakAttributes(s,e)}else if(n===0){const s=new O(i.parent,i.index);return this._breakAttributes(s,e)}else{const s=i.index+1,a=i._clone();i.parent._insertChild(s,a),this._addToClonedElementsGroup(a);const c=i.childCount-n,l=i._removeChildren(n,c);a._appendChild(l);const d=new O(i.parent,s);return this._breakAttributes(d,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)}}function fx(o){return Array.from(o.getChildren()).some(t=>!t.is("uiElement"))}function As(o){let t=o.parent;for(;!_s(t);){if(!t)return;t=t.parent}return t}function px(o,t){return o.priority<t.priority?!0:o.priority>t.priority?!1:o.getIdentity()<t.getIdentity()}function Nu(o){const t=o.nodeBefore;if(t&&t.is("$text"))return new O(t,t.data.length);const e=o.nodeAfter;return e&&e.is("$text")?new O(e,0):o}function Cs(o){if(o.offset==o.parent.data.length)return new O(o.parent.parent,o.parent.index+1);if(o.offset===0)return new O(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 ht(o.root.document,t)),new O(o.parent.parent,o.parent.index+1)}function zu(o,t){const e=o.data.length;return o._data+=t.data,t._remove(),new O(o,e)}const kx=[ht,cn,bo,bs,ws,Ci];function Pu(o,t){for(const e of o){if(!kx.some(n=>e instanceof n))throw new w("view-writer-insert-invalid-node-type",t);e.is("$text")||Pu(e.getChildren(),t)}}function _s(o){return o&&(o.is("containerElement")||o.is("documentFragment"))}function Ao(o,t){const e=As(o.start),n=As(o.end);if(!e||!n||e!==n)throw new w("view-writer-invalid-range-container",t)}function Lu(o,t){return o.id===null&&t.id===null}const Ou=o=>o.createTextNode(" "),Ru=o=>{const t=o.createElement("span");return t.dataset.ckeFiller="true",t.innerText=" ",t},ju=o=>{const t=o.createElement("br");return t.dataset.ckeFiller="true",t},ke=7,Co="".repeat(ke);function oe(o){return typeof o=="string"?o.substr(0,ke)===Co:St(o)&&o.data.substr(0,ke)===Co}function _o(o){return o.data.length==ke&&oe(o)}function Fu(o){const t=typeof o=="string"?o:o.data;return oe(o)?t.slice(ke):t}function bx(o){o.document.on("arrowKey",wx,{priority:"low"})}function wx(o,t){if(t.keyCode==tt.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;oe(n)&&i<=ke&&e.collapse(n,0)}}}var Vu=L(5037),vs={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};vs.insert="head",vs.singleton=!0,R()(Vu.Z,vs),Vu.Z.locals;class Ax extends st(){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),g.isBlink&&!g.isAndroid&&this.on("change:isSelecting",()=>{this.isSelecting||this.render()}),this.set("isComposing",!1),this.on("change:isComposing",()=>{this.isComposing||this.render()})}markToSync(t,e){if(t==="text")this.domConverter.mapViewToDom(e.parent)&&this.markedTexts.add(e);else{if(!this.domConverter.mapViewToDom(e))return;if(t==="attributes")this.markedAttributes.add(e);else if(t==="children")this.markedChildren.add(e);else throw new w("view-renderer-unknown-type",this)}}render(){if(this.isComposing&&!g.isAndroid)return;let t=null;const e=g.isBlink&&!g.isAndroid?!this.isSelecting:!0;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=O._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;oe(n.parent)?this._inlineFiller=n.parent:this._inlineFiller=Hu(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,_x);if(s.indexOf("update")!==-1){const a={equal:0,insert:0,delete:0};for(const c of s)if(c==="update"){const l=a.equal+a.insert,d=a.equal+a.delete,u=t.getChild(l);u&&!u.is("uiElement")&&!u.is("rawElement")&&this._updateElementMappings(u,n[d]),md(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")?O._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&&St(e.parent)&&oe(e.parent))}_removeInlineFiller(){const t=this._inlineFiller;if(!oe(t))throw new w("view-renderer-filler-was-lost",this);_o(t)?t.remove():t.data=t.data.substr(ke),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")||!Cx(e)||n===e.getFillerOffset())return!1;const i=t.nodeBefore,r=t.nodeAfter;return!(i instanceof ht||r instanceof ht||g.isAndroid&&(i||r))}_updateText(t,e){const n=this.domConverter.findCorrespondingDomText(t);let r=this.domConverter.viewToDom(t).data;const s=e.inlineFillerPosition;s&&s.parent==t.parent&&s.offset==t.index&&(r=Co+r),Uu(n,r)}_updateAttrs(t){const e=this.domConverter.mapViewToDom(t);if(!e)return;const n=Array.from(e.attributes).map(r=>r.name),i=t.getAttributeKeys();for(const r of i)this.domConverter.setDomElementAttribute(e,r,t.getAttribute(r),t);for(const r of n)t.hasAttribute(r)||this.domConverter.removeDomElementAttribute(e,r)}_updateChildren(t,e){const n=this.domConverter.mapViewToDom(t);if(!n)return;if(g.isAndroid){let u=null;for(const m of Array.from(n.childNodes)){if(u&&St(u)&&St(m)){n.normalize();break}u=m}}const i=e.inlineFillerPosition,r=n.childNodes,s=Array.from(this.domConverter.viewChildrenToDom(t,{bind:!0}));i&&i.parent===t&&Hu(n.ownerDocument,s,i.offset);const a=this._diffNodeLists(r,s),c=this._findUpdateActions(a,r,s,vx);let l=0;const d=new Set;for(const u of c)u==="delete"?(d.add(r[l]),md(r[l])):(u==="equal"||u==="update")&&l++;l=0;for(const u of c)u==="insert"?(dd(n,l,s[l]),l++):u==="update"?(Uu(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=Ex(t,this._fakeSelectionContainer),zt(t,e,yx.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(zt(s,a,i).map(d=>d==="equal"?"update":d)),r.push("equal"),s=[],a=[]),c[l]++;return r.concat(zt(s,a,i).map(l=>l==="equal"?"update":l))}_markDescendantTextToSync(t){if(t){if(t.is("$text"))this.markedTexts.add(t);else if(t.is("element"))for(const e of t.getChildren())this._markDescendantTextToSync(e)}}_updateSelection(){if(g.isBlink&&!g.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(this.selection.rangeCount===0){this._removeDomSelection(),this._removeFakeSelection();return}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&&g.isAndroid||this._updateDomSelection(t))}_updateFakeSelection(t){const e=t.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=Dx(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),g.isGecko&&xx(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)?!0: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 Cx(o){if(o.getAttribute("contenteditable")=="false")return!1;const t=o.findAncestor(e=>e.hasAttribute("contenteditable"));return!t||t.getAttribute("contenteditable")=="true"}function Hu(o,t,e){const n=t instanceof Array?t:t.childNodes,i=n[e];if(St(i))return i.data=Co+i.data,i;{const r=o.createTextNode(Co);return Array.isArray(t)?n.splice(e,0,r):dd(t,e,r),r}}function _x(o,t){return Ge(o)&&Ge(t)&&!St(o)&&!St(t)&&!ho(o)&&!ho(t)&&o.tagName.toLowerCase()===t.tagName.toLowerCase()}function vx(o,t){return Ge(o)&&Ge(t)&&St(o)&&St(t)}function yx(o,t,e){return t===e?!0:St(t)&&St(e)?t.data===e.data:!!(o.isBlockFiller(t)&&o.isBlockFiller(e))}function xx(o,t){const e=o.parent;if(e.nodeType!=Node.ELEMENT_NODE||o.offset!=e.childNodes.length-1)return;const n=e.childNodes[o.offset];n&&n.tagName=="BR"&&t.addRange(t.getRangeAt(0))}function Ex(o,t){const e=Array.from(o);return e.length==0||!t||e[e.length-1]==t&&e.pop(),e}function Dx(o){const t=o.createElement("div");return t.className="ck-fake-selection-container",Object.assign(t.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),t.textContent=" ",t}function Uu(o,t){const e=o.data;if(e==t)return;const n=j(e,t);for(const i of n)i.type==="insert"?o.insertData(i.index,i.values.join("")):o.deleteData(i.index,i.howMany)}const Sx=ju(U.document),Tx=Ou(U.document),Ix=Ru(U.document),_i="data-ck-unsafe-attribute-",Gu="data-ck-unsafe-element";class vi{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"],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"?U.document:U.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 Array.from(t.children))this.unbindDomElement(n)}}bindDocumentFragments(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}shouldRenderAttribute(t,e,n){return this.renderingMode==="data"?!0:(t=t.toLowerCase(),t.startsWith("on")||t==="srcdoc"&&e.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i)?!1:n==="img"&&(t==="src"||t==="srcset")||n==="source"&&t==="srcset"?!0:!e.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(t,e){if(this.renderingMode==="data"){t.innerHTML=e;return}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)&&($u(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)}else{const n=t;if(this.mapViewToDom(n))if(n.getCustomProperty("editingPipeline:doNotReuseOnce"))this._elementsWithTemporaryCustomProperties.add(n);else return this.mapViewToDom(n);let i;if(n.is("documentFragment"))i=this._domDocument.createDocumentFragment(),e.bind&&this.bindDocumentFragments(i,n);else{if(n.is("uiElement"))return n.name==="$comment"?i=this._domDocument.createComment(n.getCustomProperty("$rawContent")):i=n.render(this._domDocument,this),e.bind&&this.bindElements(i,n),i;this._shouldRenameElement(n.name)?($u(n.name),i=this._createReplacementDomElement(n.name)):n.hasAttribute("xmlns")?i=this._domDocument.createElementNS(n.getAttribute("xmlns"),n.name):i=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.appendChild(r);return i}}setDomElementAttribute(t,e,n,i){const r=this.shouldRenderAttribute(e,n,t.tagName.toLowerCase())||i&&i.shouldRenderUnsafeAttribute(e);if(r||void 0,!ud(e)){return}t.hasAttribute(e)&&!r?t.removeAttribute(e):t.hasAttribute(_i+e)&&r&&t.removeAttribute(_i+e),t.setAttribute(r?e:_i+e,n)}removeDomElementAttribute(t,e){e!=Gu&&(t.removeAttribute(e),t.removeAttribute(_i+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")&&!Tt(r.getAttributes());s&&this.renderingMode=="data"?yield*this.viewChildrenToDom(r,e):(s&&void 0,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 oe(n)&&(i+=ke),{parent:n,offset:i}}else{let n,i,r;if(t.offset===0){if(n=this.mapViewToDom(e),!n)return null;r=n.childNodes[0]}else{const a=t.nodeBefore;if(i=a.is("$text")?this.findCorrespondingDomText(a):this.mapViewToDom(a),!i)return null;n=i.parentNode,r=i.nextSibling}if(St(r)&&oe(r))return{parent:r,offset:ke};const s=i?di(i)+1:0;return{parent:n,offset:s}}}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}*domChildrenToView(t,e={},n=[]){for(let i=0;i<t.childNodes.length;i++){const r=t.childNodes[i],s=this._domToView(r,e,n),a=s.next().value;a!==null&&(this._isBlockViewElement(a)&&this._processDomInlineNodes(t,n,e),yield a,s.next())}this._processDomInlineNodes(t,n,e)}domSelectionToView(t){if(Nx(t))return new pe([]);if(t.rangeCount===1){let i=t.getRangeAt(0).startContainer;St(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 K(e,n):null}domPositionToView(t,e=0){if(this.isBlockFiller(t))return this.domPositionToView(t.parentNode,di(t));const n=this.mapDomToView(t);if(n&&(n.is("uiElement")||n.is("rawElement")))return O._createBefore(n);if(St(t)){if(_o(t))return this.domPositionToView(t.parentNode,di(t));const i=this.findCorrespondingViewText(t);let r=e;return i?(oe(t)&&(r-=ke,r=r<0?0:r),new O(i,r)):null}else{if(e===0){const i=this.mapDomToView(t);if(i)return new O(i,0)}else{const i=t.childNodes[e-1];if(St(i)&&_o(i)||i&&this.isBlockFiller(i))return this.domPositionToView(i.parentNode,di(i));const r=St(i)?this.findCorrespondingViewText(i):this.mapDomToView(i);if(r&&r.parent)return new O(r.parent,r.index+1)}return null}}mapDomToView(t){return this.getHostViewElement(t)||this._domToViewMapping.get(t)}findCorrespondingViewText(t){if(_o(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 ht?r:null}}else{const i=this.mapDomToView(t.parentNode);if(i){const r=i.getChild(0);return r instanceof ht?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}=U.window,r=[];qu(e,s=>{const{scrollLeft:a,scrollTop:c}=s;r.push([a,c])}),e.focus(),qu(e,s=>{const[a,c]=r.shift();s.scrollLeft=a,s.scrollTop=c}),U.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(Sx):t.tagName==="BR"&&Wu(t,this.blockElements)&&t.parentNode.childNodes.length===1?!0:t.isEqualNode(Ix)||Bx(t,this.blockElements)}isDomSelectionBackward(t){if(t.isCollapsed)return!1;const e=this._domDocument.createRange();try{e.setStart(t.anchorNode,t.anchorOffset),e.setEnd(t.focusNode,t.focusOffset)}catch{return!1}const n=e.collapsed;return e.detach(),n}getHostViewElement(t){const e=iv(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 Ou(this._domDocument);case"markedNbsp":return Ru(this._domDocument);case"br":return ju(this._domDocument)}}_isDomSelectionPositionCorrect(t,e){if(St(t)&&oe(t)&&e<ke||this.isElement(t)&&oe(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(ho(t)&&e.skipComments)return null;if(St(t)){if(_o(t))return null;{const r=t.data;if(r==="")return null;const s=new ht(this.document,r);return n.push(s),s}}else{let r=this.mapDomToView(t);if(r)return this._isInlineObjectElement(r)&&n.push(r),r;if(this.isDocumentFragment(t))r=new ln(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(ho(t))return r._setCustomProperty("$rawContent",t.data),r}yield r;const s=[];if(e.withChildren!==!1)for(const a of this.domChildrenToView(t,e,s))r._appendChild(a);if(this._isInlineObjectElement(r))n.push(r);else for(const a of s)n.push(a)}}_processDomInlineNodes(t,e,n){if(!e.length||t&&!this.isDocumentFragment(t)&&!this._isBlockDomElement(t))return;let i=!1;for(let r=0;r<e.length;r++){const s=e[r];if(!s.is("$text")){i=!1;continue}let a,c=!1;if(Mx(s,this.preElements))a=Fu(s.data);else{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,m=d?!1:!oe(s.data);n.withChildren!==!1&&(u&&(a=a.replace(/^ /,"")),m&&(a=a.replace(/ $/,""))),a=Fu(a),a=a.replace(/ \u00A0/g," ");const p=d&&d.is("element")&&d.name!="br",b=d&&d.is("$text")&&d.data.charAt(0)==" ";(/[ \u00A0]\u00A0$/.test(a)||!d||p||b)&&(a=a.replace(/\u00A0$/," ")),(u||l&&l.is("element")&&l.name!="br")&&(a=a.replace(/^\u00A0/," "))}a.length==0&&s.parent?(s._remove(),e.splice(r,1),r--):(s._data=a,i=c)}e.length=0}_processDataFromViewText(t){let e=t.data;if(t.getAncestors().some(n=>this.preElements.includes(n.name)))return e;if(e.charAt(0)==" "){const n=this._getTouchingInlineViewNode(t,!1);(n&&n.is("$textProxy")&&this._nodeEndsWithSpace(n)||!n)&&(e=" "+e.substr(1))}if(e.charAt(e.length-1)==" "){const n=this._getTouchingInlineViewNode(t,!0),i=n&&n.is("$textProxy")&&n.data.charAt(0)==" ";(e.charAt(e.length-2)==" "||!n||i)&&(e=e.substr(0,e.length-1)+" ")}return e.replace(/ {2}/g," ")}_nodeEndsWithSpace(t){if(t.getAncestors().some(n=>this.preElements.includes(n.name)))return!1;const e=this._processDataFromViewText(t);return e.charAt(e.length-1)==" "}_getTouchingInlineViewNode(t,e){const n=new an({startPosition:e?O._createAfter(t):O._createBefore(t),direction:e?"forward":"backward"});for(const i of n){if(i.item.is("element","br"))return null;if(this._isInlineObjectElement(i.item))return i.item;if(i.item.is("containerElement"))return null;if(i.item.is("$textProxy"))return i.item}return null}_isBlockDomElement(t){return this.isElement(t)&&this.blockElements.includes(t.tagName.toLowerCase())}_isBlockViewElement(t){return t.is("element")&&this.blockElements.includes(t.name)}_isInlineObjectElement(t){return t.is("element")?t.name=="br"||this.inlineObjectElements.includes(t.name)||!!this._inlineObjectElementMatcher.match(t):!1}_createViewElement(t,e){if(ho(t))return new Ci(this.document,"$comment");const n=e.keepOriginalCase?t.tagName:t.tagName.toLowerCase();return new ne(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(Gu,t),e){for(;e.firstChild;)n.appendChild(e.firstChild);for(const i of e.getAttributeNames())n.setAttribute(i,e.getAttribute(i))}return n}}function Mx(o,t){return o.getAncestors().some(e=>e.is("element")&&t.includes(e.name))}function qu(o,t){let e=o;for(;e;)t(e),e=e.parentElement}function Bx(o,t){return o.isEqualNode(Tx)&&Wu(o,t)&&o.parentNode.childNodes.length===1}function Wu(o,t){const e=o.parentNode;return!!e&&!!e.tagName&&t.includes(e.tagName.toLowerCase())}function $u(o){o==="script"&&void 0,o==="style"&&void 0}function Nx(o){if(!g.isGecko||!o.rangeCount)return!1;const t=o.getRangeAt(0).startContainer;try{Object.prototype.toString.call(t)}catch{return!0}return!1}class ye extends Xt(){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?!1:t.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}var zx=ds(function(o,t){Dn(t,Tn(t),o)});const Zu=zx;class Ln{constructor(t,e,n){this.view=t,this.document=t.document,this.domEvent=e,this.domTarget=e.target,Zu(this,n)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class qe extends ye{constructor(){super(...arguments),this.useCapture=!1}observe(t){(typeof this.domEventType=="string"?[this.domEventType]:this.domEventType).forEach(n=>{this.listenTo(t,n,(i,r)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(r.target)&&this.onDomEvent(r)},{useCapture:this.useCapture})})}stopObserving(t){this.stopListening(t)}fire(t,e,n){this.isEnabled&&this.document.fire(t,new Ln(this.view,e,n))}}class Px extends qe{constructor(){super(...arguments),this.domEventType=["keydown","keyup"]}onDomEvent(t){const e={keyCode:t.keyCode,altKey:t.altKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,metaKey:t.metaKey,get keystroke(){return In(this)}};this.fire(t.type,t,e)}}class Lx extends ye{constructor(t){super(t),this._fireSelectionChangeDoneDebounced=Bn(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==tt.arrowleft||t==tt.arrowup)&&n.setTo(n.getFirstPosition()),(t==tt.arrowright||t==tt.arrowdown)&&n.setTo(n.getLastPosition());const i={oldSelection:e,newSelection:n,domSelection:null};this.document.fire("selectionChange",i),this._fireSelectionChangeDoneDebounced(i)}}var Ox="__lodash_hash_undefined__";function Rx(o){return this.__data__.set(o,Ox),this}const jx=Rx;function Fx(o){return this.__data__.has(o)}const Vx=Fx;function yi(o){var t=-1,e=o==null?0:o.length;for(this.__data__=new ei;++t<e;)this.add(o[t])}yi.prototype.add=yi.prototype.push=jx,yi.prototype.has=Vx;const Hx=yi;function Ux(o,t){for(var e=-1,n=o==null?0:o.length;++e<n;)if(t(o[e],e,o))return!0;return!1}const Gx=Ux;function qx(o,t){return o.has(t)}const Wx=qx;var $x=1,Zx=2;function Kx(o,t,e,n,i,r){var s=e&$x,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,m=!0,p=e&Zx?new Hx:void 0;for(r.set(o,t),r.set(t,o);++u<a;){var b=o[u],S=t[u];if(n)var B=s?n(S,b,u,t,o,r):n(b,S,u,o,t,r);if(B!==void 0){if(B)continue;m=!1;break}if(p){if(!Gx(t,function(z,V){if(!Wx(p,V)&&(b===z||i(b,z,e,n,r)))return p.push(V)})){m=!1;break}}else if(!(b===S||i(b,S,e,n,r))){m=!1;break}}return r.delete(o),r.delete(t),m}const Ku=Kx;function Yx(o){var t=-1,e=Array(o.size);return o.forEach(function(n,i){e[++t]=[i,n]}),e}const Qx=Yx;function Jx(o){var t=-1,e=Array(o.size);return o.forEach(function(n){e[++t]=n}),e}const Xx=Jx;var t2=1,e2=2,n2="[object Boolean]",o2="[object Date]",i2="[object Error]",r2="[object Map]",s2="[object Number]",a2="[object RegExp]",c2="[object Set]",l2="[object String]",d2="[object Symbol]",u2="[object ArrayBuffer]",h2="[object DataView]",Yu=_e?_e.prototype:void 0,ys=Yu?Yu.valueOf:void 0;function g2(o,t,e,n,i,r,s){switch(e){case h2:if(o.byteLength!=t.byteLength||o.byteOffset!=t.byteOffset)return!1;o=o.buffer,t=t.buffer;case u2:return!(o.byteLength!=t.byteLength||!r(new ri(o),new ri(t)));case n2:case o2:case s2:return oo(+o,+t);case i2:return o.name==t.name&&o.message==t.message;case a2:case l2:return o==t+"";case r2:var a=Qx;case c2:var c=n&t2;if(a||(a=Xx),o.size!=t.size&&!c)return!1;var l=s.get(o);if(l)return l==t;n|=e2,s.set(o,t);var d=Ku(a(o),a(t),n,i,r,s);return s.delete(o),d;case d2:if(ys)return ys.call(o)==ys.call(t)}return!1}const m2=g2;var f2=1,p2=Object.prototype,k2=p2.hasOwnProperty;function b2(o,t,e,n,i,r){var s=e&f2,a=xr(o),c=a.length,l=xr(t),d=l.length;if(c!=d&&!s)return!1;for(var u=c;u--;){var m=a[u];if(!(s?m in t:k2.call(t,m)))return!1}var p=r.get(o),b=r.get(t);if(p&&b)return p==t&&b==o;var S=!0;r.set(o,t),r.set(t,o);for(var B=s;++u<c;){m=a[u];var z=o[m],V=t[m];if(n)var X=s?n(V,z,m,t,o,r):n(z,V,m,o,t,r);if(!(X===void 0?z===V||i(z,V,e,n,r):X)){S=!1;break}B||(B=m=="constructor")}if(S&&!B){var at=o.constructor,ft=t.constructor;at!=ft&&"constructor"in o&&"constructor"in t&&!(typeof at=="function"&&at instanceof at&&typeof ft=="function"&&ft instanceof ft)&&(S=!1)}return r.delete(o),r.delete(t),S}const w2=b2;var A2=1,Qu="[object Arguments]",Ju="[object Array]",xi="[object Object]",C2=Object.prototype,Xu=C2.hasOwnProperty;function _2(o,t,e,n,i,r){var s=Gt(o),a=Gt(t),c=s?Ju:lo(o),l=a?Ju:lo(t);c=c==Qu?xi:c,l=l==Qu?xi:l;var d=c==xi,u=l==xi,m=c==l;if(m&&ao(o)){if(!ao(t))return!1;s=!0,d=!1}if(m&&!d)return r||(r=new so),s||Ar(o)?Ku(o,t,e,n,i,r):m2(o,t,c,e,n,i,r);if(!(e&A2)){var p=d&&Xu.call(o,"__wrapped__"),b=u&&Xu.call(t,"__wrapped__");if(p||b){var S=p?o.value():o,B=b?t.value():t;return r||(r=new so),i(S,B,e,n,r)}}return m?(r||(r=new so),w2(o,t,e,n,i,r)):!1}const v2=_2;function th(o,t,e,n,i){return o===t?!0:o==null||t==null||!ae(o)&&!ae(t)?o!==o&&t!==t:v2(o,t,e,n,th,i)}const eh=th;function y2(o,t,e){e=typeof e=="function"?e:void 0;var n=e?e(o,t):void 0;return n===void 0?eh(o,t,void 0,e):!!n}const x2=y2;class nh extends ye{constructor(t){super(t),this._config={childList:!0,characterData:!0,subtree:!0},this.domConverter=t.domConverter,this.renderer=t._renderer,this._domElements=new Set,this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(t){this._domElements.add(t),this.isEnabled&&this._mutationObserver.observe(t,this._config)}stopObserving(t){if(this._domElements.delete(t),this.isEnabled){this._mutationObserver.disconnect();for(const e of this._domElements)this._mutationObserver.observe(e,this._config)}}enable(){super.enable();for(const t of this._domElements)this._mutationObserver.observe(t,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(t){if(t.length===0)return;const e=this.domConverter,n=new Set,i=new Set;for(const s of t){const a=e.mapDomToView(s.target);a&&(a.is("uiElement")||a.is("rawElement")||s.type==="childList"&&!this._isBogusBrMutation(s)&&i.add(a))}for(const s of t){const a=e.mapDomToView(s.target);if(!(a&&(a.is("uiElement")||a.is("rawElement")))&&s.type==="characterData"){const c=e.findCorrespondingViewText(s.target);c&&!i.has(c.parent)?n.add(c):!c&&oe(s.target)&&i.add(e.mapDomToView(s.target.parentNode))}}let r=!1;for(const s of n)r=!0,this.renderer.markToSync("text",s);for(const s of i){const a=e.mapViewToDom(s),c=Array.from(s.getChildren()),l=Array.from(e.domChildrenToView(a,{withChildren:!1}));x2(c,l,E2)||(r=!0,this.renderer.markToSync("children",s))}r&&this.view.forceRender()}_isBogusBrMutation(t){let e=null;return t.nextSibling===null&&t.removedNodes.length===0&&t.addedNodes.length==1&&(e=this.domConverter.domToView(t.addedNodes[0],{withChildren:!1})),e&&e.is("element","br")}}function E2(o,t){if(!Array.isArray(o))return o===t?!0:o.is("$text")&&t.is("$text")?o.data===t.data:!1}class Ei extends qe{constructor(t){super(t),this._isFocusChanging=!1,this.domEventType=["focus","blur"],this.useCapture=!0;const e=this.document;e.on("focus",()=>{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{this.flush(),t.change(()=>{})},50)}),e.on("blur",(n,i)=>{const r=e.selection.editableElement;(r===null||r===i.target)&&(e.isFocused=!1,this._isFocusChanging=!1,t.change(()=>{}))})}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(t){this.fire(t.type,t)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class D2 extends ye{constructor(t){super(t),this.mutationObserver=t.getObserver(nh),this.focusObserver=t.getObserver(Ei),this.selection=this.document.selection,this.domConverter=t.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=Bn(e=>{this.document.fire("selectionChangeDone",e)},200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._documentIsSelectingInactivityTimeoutDebounced=Bn(()=>this.document.isSelecting=!1,5e3),this._loopbackCounter=0}observe(t){const e=t.ownerDocument,n=()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()},i=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,e),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(t,"selectstart",n,{priority:"highest"}),this.listenTo(t,"keydown",i,{priority:"highest",useCapture:!0}),this.listenTo(t,"keyup",i,{priority:"highest",useCapture:!0}),!this._documents.has(e)&&(this.listenTo(e,"mouseup",i,{priority:"highest",useCapture:!0}),this.listenTo(e,"selectionchange",(r,s)=>{this.document.isComposing&&!g.isAndroid||(this._handleSelectionChange(s,e),this._documentIsSelectingInactivityTimeoutDebounced())}),this._documents.add(e))}stopObserving(t){this.stopListening(t)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(t,e){if(!this.isEnabled)return;const n=e.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(n.anchorNode))return;this.mutationObserver.flush();const i=this.domConverter.domSelectionToView(n);if(i.rangeCount==0){this.view.hasDomSelection=!1;return}if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!(this.selection.isEqual(i)&&this.domConverter.isDomSelectionCorrect(n))){if(++this._loopbackCounter>60){this._reportInfiniteLoop();return}if(this.selection.isSimilar(i))this.view.forceRender();else{const r={oldSelection:this.selection,newSelection:i,domSelection:n};this.document.fire("selectionChange",r),this._fireSelectionChangeDoneDebounced(r)}}}_clearInfiniteLoop(){this._loopbackCounter=0}}class S2 extends qe{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 oh{constructor(t,e={}){this._files=e.cacheFiles?ih(t):null,this._native=t}get files(){return this._files||(this._files=ih(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 ih(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 T2 extends qe{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 oh(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);if(l)return n.createRange(l,d);if(d)return n.createRange(d)}).filter(c=>!!c);else if(g.isAndroid){const c=t.target.ownerDocument.defaultView.getSelection();a=Array.from(n.domConverter.domSelectionToView(c).getRanges())}if(g.isAndroid&&t.inputType=="insertCompositionText"&&s&&s.endsWith(`
|
|
|
`)){this.fire(t.type,t,{inputType:"insertParagraph",targetRanges:[n.createRange(a[0].end)]});return}if(t.inputType=="insertText"&&s&&s.includes(`
|
|
|
`)){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()])}return}this.fire(t.type,t,{data:s,dataTransfer:r,targetRanges:a,inputType:t.inputType,isComposing:t.isComposing})}}class I2 extends ye{constructor(t){super(t),this.document.on("keydown",(e,n)=>{if(this.isEnabled&&kv(n.keyCode)){const i=new zn(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(i,n),i.stop.called&&e.stop()}})}observe(){}stopObserving(){}}class M2 extends ye{constructor(t){super(t);const e=this.document;e.on("keydown",(n,i)=>{if(!this.isEnabled||i.keyCode!=tt.tab||i.ctrlKey)return;const r=new zn(e,"tab",e.selection.getFirstRange());e.fire(r,i),r.stop.called&&n.stop()})}observe(){}stopObserving(){}}var B2=1,N2=4;function z2(o){return Mr(o,B2|N2)}const Pe=z2;class P2 extends st(){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 Ai(t),this.domConverter=new vi(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Ax(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new Bu(this.document),this.addObserver(nh),this.addObserver(Ei),this.addObserver(D2),this.addObserver(Px),this.addObserver(Lx),this.addObserver(S2),this.addObserver(I2),this.addObserver(T2),this.addObserver(M2),bx(this),dx(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}),g.isiOS&&this.listenTo(this.document,"blur",(e,n)=>{this.domConverter.mapDomToView(n.domEvent.relatedTarget)||this.domConverter._clearDomSelection()})}attachDomRoot(t,e="main"){const n=this.document.getRoot(e);n._name=t.tagName.toLowerCase();const i={};for(const{name:s,value:a}of Array.from(t.attributes))i[s]=a,s==="class"?this._writer.addClass(a.split(" "),n):this._writer.setAttribute(s,a,n);this._initialDomRootAttributes.set(t,i);const r=()=>{this._writer.setAttribute("contenteditable",(!n.isReadOnly).toString(),n),n.isReadOnly?this._writer.addClass("ck-read-only",n):this._writer.removeClass("ck-read-only",n)};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=Pe({alignToTop:t,forceScroll:e,viewportOffset:n,ancestorOffset:i});typeof n=="number"&&(n={top:n,bottom:n,left:n,right:n});const a={target:this.domConverter.viewRangeToDom(r),viewportOffset:n,ancestorOffset:i,alignToTop:t,forceScroll:e};this.fire("scrollToTheSelection",a,s),dv(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 w("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){w.rethrowUnexpectedError(e,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(Ei).flush(),this.change(()=>{})}destroy(){for(const t of this._observers.values())t.destroy();this.document.destroy(),this.stopListening()}createPositionAt(t,e){return O._createAt(t,e)}createPositionAfter(t){return O._createAfter(t)}createPositionBefore(t){return O._createBefore(t)}createRange(t,e){return new K(t,e)}createRangeOn(t){return K._createOn(t)}createRangeIn(t){return K._createIn(t)}createSelection(...t){return new pe(...t)}_disableRendering(t){this._renderingDisabled=t,t==!1&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class We{is(){throw new Error("is() method is abstract")}}class dn extends We{constructor(t){super(),this.parent=null,this._attrs=Ne(t)}get document(){return null}get index(){let t;if(!this.parent)return null;if((t=this.parent.getChildIndex(this))===null)throw new w("model-node-not-found-in-parent",this);return t}get startOffset(){let t;if(!this.parent)return null;if((t=this.parent.getChildStartOffset(this))===null)throw new w("model-node-not-found-in-parent",this);return t}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const t=this.index;return t!==null&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return t!==null&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}isAttached(){return this.parent===null?!1: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?!1:!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=Ne(t)}_removeAttribute(t){return this._attrs.delete(t)}_clearAttributes(){this._attrs.clear()}}dn.prototype.is=function(o){return o==="node"||o==="model:node"};class vo{constructor(t){this._nodes=[],t&&this._insertNodes(0,t)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((t,e)=>t+e.offsetSize,0)}getNode(t){return this._nodes[t]||null}getNodeIndex(t){const e=this._nodes.indexOf(t);return e==-1?null:e}getNodeStartOffset(t){const e=this.getNodeIndex(t);return e===null?null:this._nodes.slice(0,e).reduce((n,i)=>n+i.offsetSize,0)}indexToOffset(t){if(t==this._nodes.length)return this.maxOffset;const e=this._nodes[t];if(!e)throw new w("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(e)}offsetToIndex(t){let e=0;for(const n of this._nodes){if(t>=e&&t<e+n.offsetSize)return this.getNodeIndex(n);e+=n.offsetSize}if(e!=t)throw new w("model-nodelist-offset-out-of-bounds",this,{offset:t,nodeList:this});return this.length}_insertNodes(t,e){for(const n of e)if(!(n instanceof dn))throw new w("model-nodelist-insertnodes-not-node",this);this._nodes=Iv(this._nodes,Array.from(e),t,0)}_removeNodes(t,e=1){return this._nodes.splice(t,e)}toJSON(){return this._nodes.map(t=>t.toJSON())}}class gt extends dn{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 gt(this.data,this.getAttributes())}static fromJSON(t){return new gt(t.data,t.attributes)}}gt.prototype.is=function(o){return o==="$text"||o==="model:$text"||o==="text"||o==="model:text"||o==="node"||o==="model:node"};class be extends We{constructor(t,e,n){if(super(),this.textNode=t,e<0||e>t.offsetSize)throw new w("model-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.offsetSize)throw new w("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()}}be.prototype.is=function(o){return o==="$textProxy"||o==="model:$textProxy"||o==="textProxy"||o==="model:textProxy"};class lt extends dn{constructor(t,e,n){super(e),this._children=new vo,this.name=t,n&&this._insertChild(0,n)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return this.childCount===0}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}offsetToIndex(t){return this._children.offsetToIndex(t)}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}findAncestor(t,e={}){let n=e.includeSelf?this:this.parent;for(;n;){if(n.name===t)return n;n=n.parent}return null}toJSON(){const t=super.toJSON();if(t.name=this.name,this._children.length>0){t.children=[];for(const e of this._children)t.children.push(e.toJSON())}return t}_clone(t=!1){const e=t?Array.from(this._children).map(n=>n._clone(!0)):void 0;return new lt(this.name,this.getAttributes(),e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=L2(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(lt.fromJSON(n)):e.push(gt.fromJSON(n))}return new lt(t.name,t.attributes,e)}}lt.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"};function L2(o){return typeof o=="string"?[new gt(o)]:(Jt(o)||(o=[o]),Array.from(o).map(t=>typeof t=="string"?new gt(t):t instanceof be?new gt(t.data,t.getAttributes()):t))}class we{constructor(t){if(!t||!t.boundaries&&!t.startPosition)throw new w("model-tree-walker-no-start-position",null);const e=t.direction||"forward";if(e!="forward"&&e!="backward")throw new w("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=P._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=yo(e,n),r=i||rh(e,n,i);if(r instanceof lt){if(!this.shallow)e.path.push(0),this._visitedParent=r;else{if(this.boundaries&&this.boundaries.end.isBefore(e))return{done:!0,value:void 0};e.offset++}return this._position=e,un("elementStart",r,t,e,1)}if(r instanceof gt){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 be(r,a,s);return e.offset+=s,this._position=e,un("text",c,t,e,s)}return e.path.pop(),e.offset++,this._position=e,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():un("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=yo(e,i),s=r||sh(e,i,r);if(s instanceof lt)return e.offset--,this.shallow?(this._position=e,un("elementStart",s,t,e,1)):(e.path.push(s.maxOffset),this._position=e,this._visitedParent=s,this.ignoreElementEnd?this._previous():un("elementEnd",s,t,e));if(s instanceof gt){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 be(s,c-a,a);return e.offset-=a,this._position=e,un("text",l,t,e,a)}return e.path.pop(),this._position=e,this._visitedParent=n.parent,un("elementStart",n,t,e,1)}}function un(o,t,e,n,i){return{done:!1,value:{type:o,item:t,previousPosition:e,nextPosition:n,length:i}}}class P extends We{constructor(t,e,n="toNone"){if(super(),!t.is("element")&&!t.is("documentFragment"))throw new w("model-position-root-invalid",t);if(!(e instanceof Array)||e.length===0)throw new w("model-position-path-incorrect-format",t,{path:e});t.is("rootElement")?e=e.slice():(e=[...t.getPath(),...e],t=t.root),this.root=t,this.path=e,this.stickiness=n}get offset(){return this.path[this.path.length-1]}set offset(t){this.path[this.path.length-1]=t}get parent(){let t=this.root;for(let e=0;e<this.path.length-1;e++)if(t=t.getChild(t.offsetToIndex(this.path[e])),!t)throw new w("model-position-path-incorrect",this,{position:this});if(t.is("$text"))throw new w("model-position-path-incorrect",this,{position:this});return t}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return yo(this,this.parent)}get nodeAfter(){const t=this.parent;return rh(this,t,yo(this,t))}get nodeBefore(){const t=this.parent;return sh(this,t,yo(this,t))}get isAtStart(){return this.offset===0}get isAtEnd(){return this.offset==this.parent.maxOffset}compareWith(t){if(this.root!=t.root)return"different";const e=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"}}getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new we(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 ah(t,this,n);if(i===-1)return ah(this,t,n)}return this.path.length===t.path.length?!0:this.path.length>t.path.length?xs(this.path,e):xs(t.path,e)}hasSameParentAs(t){if(this.root!==t.root)return!1;const e=this.getParentPath(),n=t.getParentPath();return Ft(e,n)=="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=P._createAt(this);break}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,n=e.containsPosition(this)||e.start.isEqual(this);let i;return n?(i=this._getCombined(t.sourcePosition,t.targetPosition),t.sourcePosition.isBefore(t.targetPosition)&&(i=i._getTransformedByDeletion(t.deletionPosition,1))):this.isEqual(t.deletionPosition)?i=P._createAt(t.deletionPosition):i=this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),i}_getTransformedByDeletion(t,e){const n=P._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=P._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 P._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=P._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 P)return new P(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 w("model-createpositionat-offset-required",[this,t])}if(!i.is("element")&&!i.is("documentFragment"))throw new w("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 w("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 w("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 P(e.graveyard,t.path);return n.stickiness=t.stickiness,n}if(!e.getRoot(t.root))throw new w("model-position-fromjson-no-root",e,{rootName:t.root});return new P(e.getRoot(t.root),t.path,t.stickiness)}}P.prototype.is=function(o){return o==="position"||o==="model:position"};function yo(o,t){const e=t.getChild(t.offsetToIndex(o.offset));return e&&e.is("$text")&&e.startOffset<o.offset?e:null}function rh(o,t,e){return e!==null?null:t.getChild(t.offsetToIndex(o.offset))}function sh(o,t,e){return e!==null?null:t.getChild(t.offsetToIndex(o.offset)-1)}function ah(o,t,e){return!(e+1===o.path.length||!xs(t.path,e+1)||!O2(o,e+1))}function xs(o,t){for(;t<o.length;){if(o[t]!==0)return!1;t++}return!0}function O2(o,t){let e=o.parent,n=o.path.length-1,i=0;for(;n>=t;){if(o.path[n]+i!==e.maxOffset)return!1;i=1,n--,e=e.parent}return!0}class T extends We{constructor(t,e){super(),this.start=P._createAt(t),this.end=e?P._createAt(e):P._createAt(t),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new we({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){const t=this.start.getParentPath(),e=this.end.getParentPath();return Ft(t,e)=="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=P._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||(this.start.isBefore(t.start)?n=e?this.end.isTouching(t.start):this.end.isEqual(t.start):n=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=P._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 we(t)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new we(t);for(const n of e)yield n.item}*getPositions(t={}){t.boundaries=this;const e=new we(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=P._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),m=this.end._getTransformedByMove(t,e,n);return[new T(u,m)]}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))),l?a=l._getTransformedByInsertion(s,n,d!==null||i):a=[],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(P._createAt(t,0),P._createAt(t,t.maxOffset))}static _createOn(t){return this._createFromPositionAndShift(P._createBefore(t),t.offsetSize)}static _createFromRanges(t){if(t.length===0)throw new w("range-create-from-ranges-empty-array",null);if(t.length==1)return t[0].clone();const e=t[0];t.sort((r,s)=>r.start.isAfter(s.start)?1:-1);const n=t.indexOf(e),i=new this(e.start,e.end);if(n>0)for(let r=n-1;t[r].end.isEqual(i.start);r++)i.start=P._createAt(t[r].start);for(let r=n+1;r<t.length&&t[r].start.isEqual(i.end);r++)i.end=P._createAt(t[r].end);return i}static fromJSON(t,e){return new this(P.fromJSON(t.start,e),P.fromJSON(t.end,e))}}T.prototype.is=function(o){return o==="range"||o==="model:range"};class ch extends ct(){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 w("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._toModelOffset(e.viewPosition.parent,e.viewPosition.offset,n);e.modelPosition=P._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 K(this.toViewPosition(t.start),this.toViewPosition(t.end))}toModelPosition(t){const e={viewPosition:t,mapper:this};return this.fire("viewToModelPosition",e),e.modelPosition}toViewPosition(t,e={}){const n={modelPosition:t,mapper:this,isPhantom:e.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}markerNameToElements(t){const e=this._markerNameToElements.get(t);if(!e)return null;const n=new Set;for(const i of e)if(i.is("attributeElement"))for(const r of i.getElementsWithSameId())n.add(r);else n.add(i);return n}registerViewToModelLength(t,e){this._viewToModelLengthCallbacks.set(t,e)}findMappedViewAncestor(t){let e=t.parent;for(;!this._viewToModelMapping.has(e);)e=e.parent;return e}_toModelOffset(t,e,n){if(n!=t){const r=this._toModelOffset(t.parent,t.index,n),s=this._toModelOffset(t,e,t);return r+s}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 O(t,e);for(;r<e;)n=t.getChild(s),i=this.getModelLength(n),r+=i,s++;return r==e?this._moveViewPositionToTextNode(new O(t,s)):this.findPositionIn(n,e-(r-i))}_moveViewPositionToTextNode(t){const e=t.nodeBefore,n=t.nodeAfter;return e instanceof ht?new O(e,e.data.length):n instanceof ht?new O(n,0):t}}class R2{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(t,e){e=Di(e),t instanceof be&&(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=Di(e),t instanceof be&&(t=this._getSymbolForTextProxy(t)),this.test(t,e)?(this._consumable.get(t).set(e,!1),!0):!1}test(t,e){e=Di(e),t instanceof be&&(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=Di(e),t instanceof be&&(t=this._getSymbolForTextProxy(t));const n=this.test(t,e);return n===!1?(this._consumable.get(t).set(e,!0),!0):n===!0?!1: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 w("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 Di(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 lh extends ct(){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:"+a.name)){const c=a.getRange();if(!j2(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(dh))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(dh))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=F2(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)s.set(r,new Set([i]));else if(!a.has(i))a.add(i);else return;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 R2,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 j2(o,t,e){const n=t.getRange(),i=Array.from(o.getAncestors());return i.shift(),i.reverse(),!i.some(s=>{if(n.containsItem(s))return!!e.toViewElement(s).getCustomProperty("addHighlight")})}function F2(o,t){const e=t.item.is("element")?t.item.name:"$text";return`${o}:${e}`}function dh(o){const t=o.item,e=T._createFromPositionAndShift(o.previousPosition,o.length);return{item:t,range:e}}class ie extends ct(We){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:!1}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;for(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 ie)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 P)this._setRanges([new T(e)]);else if(e instanceof dn){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)s=new T(P._createAt(e,n));else throw new w("model-selection-setto-required-second-parameter",[this,e]);this._setRanges([s],r)}else if(Jt(e))this._setRanges(e,i&&!!i.backward);else throw new w("model-selection-setto-not-selectable",[this,e])}_setRanges(t,e=!1){const n=Array.from(t),i=n.some(r=>{if(!(r instanceof T))throw new w("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 w("model-selection-setfocus-no-ranges",[this,t]);const n=P._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=hh(e.start,t);H2(n,e)&&(yield n);for(const r of e.getWalker()){const s=r.item;r.type=="elementEnd"&&V2(s,t,e)&&(yield s)}const i=hh(e.end,t);U2(i,e)&&(yield i)}}containsEntireContent(t=this.anchor.root){const e=P._createAt(t,0),n=P._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 w("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()}}ie.prototype.is=function(o){return o==="selection"||o==="model:selection"};function uh(o,t){return t.has(o)?!1:(t.add(o),o.root.document.model.schema.isBlock(o)&&!!o.parent)}function V2(o,t,e){return uh(o,t)&&Es(o,e)}function hh(o,t){const n=o.parent.root.document.model.schema,i=o.parent.getAncestors({parentFirst:!0,includeSelf:!0});let r=!1;const s=i.find(a=>r?!1:(r=n.isLimit(a),!r&&uh(a,t)));return i.forEach(a=>t.add(a)),s}function Es(o,t){const e=G2(o);return e?!t.containsRange(T._createOn(e),!0):!0}function H2(o,t){return o?t.isCollapsed||o.isEmpty?!0:t.start.isTouching(P._createAt(o,o.maxOffset))?!1:Es(o,t):!1}function U2(o,t){return o?t.isCollapsed||o.isEmpty?!0:t.end.isTouching(P._createAt(o,0))?!1:Es(o,t):!1}function G2(o){const t=o.root.document.model.schema;let e=o.parent;for(;e;){if(t.isBlock(e))return e;e=e.parent}}class Zt extends ct(T){constructor(t,e){super(t,e),q2.call(this)}detach(){this.stopListening()}toRange(){return new T(this.start,this.end)}static fromRange(t){return new Zt(t.start,t.end)}}Zt.prototype.is=function(o){return o==="liveRange"||o==="model:liveRange"||o=="range"||o==="model:range"};function q2(){this.listenTo(this.root.document.model,"applyOperation",(o,t)=>{const e=t[0];e.isDocumentOperation&&W2.call(this,e)},{priority:"low"})}function W2(o){const t=this.getTransformedByOperation(o),e=T._createFromRanges(t),n=!e.isEqual(this),i=$2(this,o);let r=null;if(n){e.root.rootName=="$graveyard"&&(o.type=="remove"?r=o.sourcePosition:r=o.deletionPosition);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})}function $2(o,t){switch(t.type){case"insert":return o.containsPosition(t.position);case"move":case"remove":case"reinsert":case"merge":return o.containsPosition(t.sourcePosition)||o.start.isEqual(t.sourcePosition)||o.containsPosition(t.targetPosition);case"split":return o.containsPosition(t.splitPosition)||o.containsPosition(t.insertionPosition)}return!1}const xo="selection:";class Ae extends ct(We){constructor(t){super(),this._selection=new Z2(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 xo+t}static _isStoreAttributeKey(t){return t.startsWith(xo)}}Ae.prototype.is=function(o){return o==="selection"||o=="model:selection"||o=="documentSelection"||o=="model:documentSelection"};class Z2 extends ie{constructor(t){super(),this.markers=new te({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)=>{K2(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=qt();return this._overriddenGravityRegister.add(t),this._overriddenGravityRegister.size===1&&this._updateAttributes(!0),t}restoreGravity(t){if(!this._overriddenGravityRegister.has(t))throw new w("document-selection-gravity-wrong-restore",this,{uid:t});this._overriddenGravityRegister.delete(t),this.isGravityOverridden||this._updateAttributes(!0)}observeMarkers(t){this._observedMarkers.add(t),this.updateMarkers()}_replaceAllRanges(t){this._validateSelectionRanges(t),super._replaceAllRanges(t)}_popRange(){this._ranges.pop().detach()}_pushRange(t){const e=this._prepareRange(t);e&&this._ranges.push(e)}_validateSelectionRanges(t){for(const e of t)if(!this._document._validateSelectionRange(e))throw new w("document-selection-wrong-position",this,{range:e})}_prepareRange(t){if(this._checkRange(t),t.root==this._document.graveyard)return;const e=Zt.fromRange(t);return e.on("change:range",(n,i,r)=>{if(this._hasChangedRange=!0,e.root==this._document.graveyard){this._selectionRestorePosition=r.deletionPosition;const s=this._ranges.indexOf(e);this._ranges.splice(s,1),e.detach()}}),e}updateMarkers(){if(!this._observedMarkers.size)return;const t=[];let e=!1;for(const i of this._model.markers){const r=i.name.split(":",1)[0];if(!this._observedMarkers.has(r))continue;const s=i.getRange();for(const a of this.getRanges())s.containsRange(a,!a.isCollapsed)&&t.push(i)}const n=Array.from(this.markers);for(const i of t)this.markers.has(i)||(this.markers.add(i),e=!0);for(const i of Array.from(this.markers))t.includes(i)||(this.markers.remove(i),e=!0);e&&this.fire("change:marker",{oldMarkers:n,directChange:!1})}_updateMarker(t,e){const n=t.name.split(":",1)[0];if(!this._observedMarkers.has(n))return;let i=!1;const r=Array.from(this.markers),s=this.markers.has(t);if(!e)s&&(this.markers.remove(t),i=!0);else{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)}i&&this.fire("change:marker",{oldMarkers:r,directChange:!1})}_updateAttributes(t){const e=Ne(this._getSurroundingAttributes()),n=Ne(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"||super.getAttribute(t)===e?!1:(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))?!1:(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(xo)&&(yield[e.substr(xo.length),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=Eo(i,e)),n||(n=Eo(r,e)),!this.isGravityOverridden&&!n){let s=i;for(;s&&!n;)s=s.previousSibling,n=Eo(s,e)}if(!n){let s=r;for(;s&&!n;)s=s.nextSibling,n=Eo(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=Eo(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 Eo(o,t){if(!o)return null;if(o instanceof be||o instanceof gt)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}function K2(o,t){const e=o.document.differ;for(const n of e.getChanges()){if(n.type!="insert")continue;const i=n.position.parent;n.length===i.maxOffset&&o.enqueueChange(t,s=>{const a=Array.from(i.getAttributeKeys()).filter(c=>c.startsWith(xo));for(const c of a)s.removeAttribute(c,i)})}}class gh{constructor(t){this._dispatchers=t}add(t){for(const e of this._dispatchers)t(e);return this}}class Y2 extends gh{elementToElement(t){return this.add(mE(t))}elementToStructure(t){return this.add(fE(t))}attributeToElement(t){return this.add(pE(t))}attributeToAttribute(t){return this.add(kE(t))}markerToElement(t){return this.add(bE(t))}markerToHighlight(t){return this.add(AE(t))}markerToData(t){return this.add(wE(t))}}function mh(){return(o,t,e)=>{if(!e.consumable.consume(t.item,o.name))return;const n=e.writer,i=e.mapper.toViewPosition(t.range.start),r=n.createText(t.item.data);n.insert(i,r)}}function fh(){return(o,t,e)=>{e.convertAttributes(t.item),!t.reconversion&&t.item.is("element")&&!t.item.isEmpty&&e.convertChildren(t.item)}}function Q2(){return(o,t,e)=>{const n=e.mapper.toViewPosition(t.position),i=t.position.getShiftedBy(t.length),r=e.mapper.toViewPosition(i,{isPhantom:!0}),s=e.writer.createRange(n,r),a=e.writer.remove(s.getTrimmed());for(const c of e.writer.createRangeIn(a).getItems())e.mapper.unbindViewElement(c,{defer:!0})}}function ph(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 J2(){return(o,t,e)=>{const n=t.selection;if(n.isCollapsed||!e.consumable.consume(n,"selection"))return;const i=[];for(const r of n.getRanges())i.push(e.mapper.toViewRange(r));e.writer.setSelection(i,{backward:n.isBackward})}}function X2(){return(o,t,e)=>{const n=t.selection;if(!n.isCollapsed||!e.consumable.consume(n,"selection"))return;const i=e.writer,r=n.getFirstPosition(),s=e.mapper.toViewPosition(r),a=i.breakAttributes(s);i.setSelection(a)}}function tE(){return(o,t,e)=>{const n=e.writer,i=n.document.selection;for(const r of i.getRanges())r.isCollapsed&&r.end.parent.isAttached()&&e.writer.mergeAttributes(r.start);n.setSelection(null)}}function eE(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 ie||e.item instanceof Ae)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 nE(o,t=DE){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),vh(r,n.item.getChildren(),i,{reconversion:n.reconversion})}}function oE(o,t){return(e,n,i)=>{if(!t(n.item,i.consumable,{preflight:!0}))return;const r=new Map;i.writer._registerSlotFactory(vE(n.item,r,i));const s=o(n.item,i,n);if(i.writer._clearSlotFactory(),!s)return;yE(n.item,r,i),t(n.item,i.consumable);const a=i.mapper.toViewPosition(n.range.start);i.mapper.bindElements(n.item,s),i.writer.insert(a,s),i.convertAttributes(n.item),xE(s,r,i,{reconversion:n.reconversion})}}function iE(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 rE(){return(o,t,e)=>{const n=e.mapper.markerNameToElements(t.markerName);if(n){for(const i of n)e.mapper.unbindElementFromMarkerName(i,t.markerName),e.writer.clear(e.writer.createRangeOn(i),i);e.writer.clearClonedElementsGroup(t.markerName),o.stop()}}}function sE(o){return(t,e,n)=>{const i=o(e.markerName,n);if(!i)return;const r=e.markerRange;n.consumable.consume(r,t.name)&&(kh(r,!1,n,e,i),kh(r,!0,n,e,i),t.stop())}}function kh(o,t,e,n,i){const r=t?o.start:o.end,s=r.nodeAfter&&r.nodeAfter.is("element")?r.nodeAfter:null,a=r.nodeBefore&&r.nodeBefore.is("element")?r.nodeBefore:null;if(s||a){let l,d;t&&s||!t&&!a?(l=s,d=!0):(l=a,d=!1);const u=e.mapper.toViewElement(l);if(u){aE(u,t,d,e,n,i);return}}const c=e.mapper.toViewPosition(r);cE(c,t,e,n,i)}function aE(o,t,e,n,i,r){const s=`data-${r.group}-${t?"start":"end"}-${e?"before":"after"}`,a=o.hasAttribute(s)?o.getAttribute(s).split(","):[];a.unshift(r.name),n.writer.setAttribute(s,a.join(","),o),n.mapper.bindElementToMarker(o,i.markerName)}function cE(o,t,e,n,i){const r=`${i.group}-${t?"start":"end"}`,s=i.name?{name:i.name}:null,a=e.writer.createUIElement(r,s);e.writer.insert(o,a),e.mapper.bindElementToMarker(a,n.markerName)}function lE(o){return(t,e,n)=>{const i=o(e.markerName,n);if(!i)return;const r=n.mapper.markerNameToElements(e.markerName);if(!r)return;for(const a of r)n.mapper.unbindElementFromMarkerName(a,e.markerName),a.is("containerElement")?(s(`data-${i.group}-start-before`,a),s(`data-${i.group}-start-after`,a),s(`data-${i.group}-end-before`,a),s(`data-${i.group}-end-after`,a)):n.writer.clear(n.writer.createRangeOn(a),a);n.writer.clearClonedElementsGroup(e.markerName),t.stop();function s(a,c){if(c.hasAttribute(a)){const l=new Set(c.getAttribute(a).split(","));l.delete(i.name),l.size==0?n.writer.removeAttribute(a,c):n.writer.setAttribute(a,Array.from(l).join(","),c)}}}}function dE(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.mapper.toViewElement(e.item),a=n.writer;if(!s)throw new w("conversion-attribute-to-attribute-on-text",n.dispatcher,e);if(e.attributeOldValue!==null&&i)if(i.key=="class"){const c=_t(i.value);for(const l of c)a.removeClass(l,s)}else if(i.key=="style"){const c=Object.keys(i.value);for(const l of c)a.removeStyle(l,s)}else a.removeAttribute(i.key,s);if(e.attributeNewValue!==null&&r)if(r.key=="class"){const c=_t(r.value);for(const l of c)a.addClass(l,s)}else if(r.key=="style"){const c=Object.keys(r.value);for(const l of c)a.setStyle(l,r.value[l],s)}else a.setAttribute(r.key,r.value,s)}}function uE(o){return(t,e,n)=>{if(!e.item||!(e.item instanceof ie||e.item instanceof Ae)&&!e.item.is("$textProxy"))return;const i=Ds(o,e,n);if(!i||!n.consumable.consume(e.item,t.name))return;const r=n.writer,s=ph(r,i),a=r.document.selection;if(e.item instanceof ie||e.item instanceof Ae)r.wrap(a.getFirstRange(),s);else{const c=n.mapper.toViewRange(e.range),l=r.wrap(c,s);for(const d of l.getItems())if(d.is("attributeElement")&&d.isSimilar(s)){n.mapper.bindElementToMarker(d,e.markerName);break}}}}function hE(o){return(t,e,n)=>{if(!e.item||!(e.item instanceof lt))return;const i=Ds(o,e,n);if(!i||!n.consumable.test(e.item,t.name))return;const r=n.mapper.toViewElement(e.item);if(r&&r.getCustomProperty("addHighlight")){n.consumable.consume(e.item,t.name);for(const a of T._createIn(e.item))n.consumable.consume(a.item,t.name);r.getCustomProperty("addHighlight")(r,i,n.writer),n.mapper.bindElementToMarker(r,e.markerName)}}}function gE(o){return(t,e,n)=>{if(e.markerRange.isCollapsed)return;const i=Ds(o,e,n);if(!i)return;const r=ph(n.writer,i),s=n.mapper.markerNameToElements(e.markerName);if(s){for(const a of s)n.mapper.unbindElementFromMarkerName(a,e.markerName),a.is("attributeElement")?n.writer.unwrap(n.writer.createRangeOn(a),r):a.getCustomProperty("removeHighlight")(a,i.id,n.writer);n.writer.clearClonedElementsGroup(e.markerName),t.stop()}}}function mE(o){const t=bh(o.model),e=Do(o.view,"container");return t.attributes.length&&(t.children=!0),n=>{n.on(`insert:${t.name}`,nE(e,_h(t)),{priority:o.converterPriority||"normal"}),(t.children||t.attributes.length)&&n.on("reduceChanges",Ch(t),{priority:"low"})}}function fE(o){const t=bh(o.model),e=Do(o.view,"container");return t.children=!0,n=>{if(n._conversionApi.schema.checkChild(t.name,"$text"))throw new w("conversion-element-to-structure-disallowed-text",n,{elementName:t.name});n.on(`insert:${t.name}`,oE(e,_h(t)),{priority:o.converterPriority||"normal"}),n.on("reduceChanges",Ch(t),{priority:"low"})}}function pE(o){o=Pe(o);let t=o.model;typeof t=="string"&&(t={key:t});let e=`attribute:${t.key}`;if(t.name&&(e+=":"+t.name),t.values)for(const i of t.values)o.view[i]=Do(o.view[i],"attribute");else o.view=Do(o.view,"attribute");const n=wh(o);return i=>{i.on(e,eE(n),{priority:o.converterPriority||"normal"})}}function kE(o){o=Pe(o);let t=o.model;typeof t=="string"&&(t={key:t});let e=`attribute:${t.key}`;if(t.name&&(e+=":"+t.name),t.values)for(const i of t.values)o.view[i]=Ah(o.view[i]);else o.view=Ah(o.view);const n=wh(o);return i=>{i.on(e,dE(n),{priority:o.converterPriority||"normal"})}}function bE(o){const t=Do(o.view,"ui");return e=>{e.on(`addMarker:${o.model}`,iE(t),{priority:o.converterPriority||"normal"}),e.on(`removeMarker:${o.model}`,rE(),{priority:o.converterPriority||"normal"})}}function wE(o){o=Pe(o);const t=o.model;let e=o.view;return e||(e=n=>({group:t,name:n.substr(o.model.length+1)})),n=>{n.on(`addMarker:${t}`,sE(e),{priority:o.converterPriority||"normal"}),n.on(`removeMarker:${t}`,lE(e),{priority:o.converterPriority||"normal"})}}function AE(o){return t=>{t.on(`addMarker:${o.model}`,uE(o.view),{priority:o.converterPriority||"normal"}),t.on(`addMarker:${o.model}`,hE(o.view),{priority:o.converterPriority||"normal"}),t.on(`removeMarker:${o.model}`,gE(o.view),{priority:o.converterPriority||"normal"})}}function bh(o){return typeof o=="string"&&(o={name:o}),{name:o.name,attributes:o.attributes?_t(o.attributes):[],children:!!o.children}}function Do(o,t){return typeof o=="function"?o:(e,n)=>CE(o,n,t)}function CE(o,t,e){typeof o=="string"&&(o={name:o});let n;const i=t.writer,r=Object.assign({},o.attributes);if(e=="container")n=i.createContainerElement(o.name,r);else if(e=="attribute"){const s={priority:o.priority||cn.DEFAULT_PRIORITY};n=i.createAttributeElement(o.name,r,s)}else n=i.createUIElement(o.name,r);if(o.styles){const s=Object.keys(o.styles);for(const a of s)i.setStyle(a,o.styles[a],n)}if(o.classes){const s=o.classes;if(typeof s=="string")i.addClass(s,n);else for(const a of s)i.addClass(a,n)}return n}function wh(o){return o.model.values?(t,e,n)=>{const i=o.view[t];return i?i(t,e,n):null}:o.view}function Ah(o){return typeof o=="string"?t=>({key:o,value:t}):typeof o=="object"?o.value?()=>o:t=>({key:o.key,value:t}):o}function Ds(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 _E(o){return(t,e)=>{if(!t.is("element",o.name))return!1;if(e.type=="attribute"){if(o.attributes.includes(e.attributeKey))return!0}else if(o.children)return!0;return!1}}function Ch(o){const t=_E(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)){i.push(r);continue}if(!n.reconvertedElements.has(s)){n.reconvertedElements.add(s);const a=P._createBefore(s);let c=i.length;for(let l=i.length-1;l>=0;l--){const d=i[l],m=(d.type=="attribute"?d.range.start:d.position).compareWith(a);if(m=="before"||d.type=="remove"&&m=="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})}}n.changes=i}}function _h(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):!1}}function vE(o,t,e){return(n,i)=>{const r=n.createContainerElement("$slot");let s=null;if(i==="children")s=Array.from(o.getChildren());else if(typeof i=="function")s=Array.from(o.getChildren()).filter(a=>i(a));else throw new w("conversion-slot-mode-unknown",e.dispatcher,{modeOrFilter:i});return t.set(r,s),r}}function yE(o,t,e){const n=Array.from(t.values()).flat(),i=new Set(n);if(i.size!=n.length)throw new w("conversion-slot-filter-overlap",e.dispatcher,{element:o});if(i.size!=o.childCount)throw new w("conversion-slot-filter-incomplete",e.dispatcher,{element:o})}function xE(o,t,e,n){e.mapper.on("modelToViewPosition",s,{priority:"highest"});let i=null,r=null;for([i,r]of t)vh(o,r,e,n),e.writer.move(e.writer.createRangeIn(i),e.writer.createPositionBefore(i)),e.writer.remove(i);e.mapper.off("modelToViewPosition",s);function s(a,c){const l=c.modelPosition.nodeAfter,d=r.indexOf(l);d<0||(c.viewPosition=c.mapper.findPositionIn(i,d))}}function vh(o,t,e,n){for(const i of t)EE(o.root,i,e,n)||e.convertItem(i)}function EE(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)?!1:(i.move(i.createRangeOn(s),r.toViewPosition(P._createBefore(t))),!0)}function DE(o,t,{preflight:e}={}){return e?t.test(o,"insert"):t.consume(o,"insert")}function yh(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 xh(o,t,e){const n=e.createContext(o);return!(!e.checkChild(n,"paragraph")||!e.checkChild(n.push("paragraph"),t))}function Eh(o,t){const e=t.createElement("paragraph");return t.insert(e,o),t.createPositionAt(e,0)}class SE extends gh{elementToElement(t){return this.add(Sh(t))}elementToAttribute(t){return this.add(ME(t))}attributeToAttribute(t){return this.add(BE(t))}elementToMarker(t){return this.add(NE(t))}dataToMarker(t){return this.add(zE(t))}}function Dh(){return(o,t,e)=>{if(!t.modelRange&&e.consumable.consume(t.viewItem,{name:!0})){const{modelRange:n,modelCursor:i}=e.convertChildren(t.viewItem,t.modelCursor);t.modelRange=n,t.modelCursor=i}}}function TE(){return(o,t,{schema:e,consumable:n,writer:i})=>{let r=t.modelCursor;if(!n.test(t.viewItem))return;if(!e.checkChild(r,"$text")){if(!xh(r,"$text",e)||t.viewItem.data.trim().length==0)return;const a=r.nodeBefore;r=Eh(r,i),a&&a.is("element","$marker")&&(i.move(i.createRangeOn(a),r),r=i.createPositionAfter(a))}n.consume(t.viewItem);const s=i.createText(t.viewItem.data);i.insert(s,r),t.modelRange=i.createRange(r,r.getShiftedBy(s.offsetSize)),t.modelCursor=t.modelRange.end}}function IE(o,t){return(e,n)=>{const i=n.newSelection,r=[];for(const a of i.getRanges())r.push(t.toModelRange(a));const s=o.createSelection(r,{backward:i.isBackward});s.isEqual(o.document.selection)||o.change(a=>{a.setSelection(s)})}}function Sh(o){o=Pe(o);const t=Ts(o),e=Ss(o.view),n=e?`element:${e}`:"element";return i=>{i.on(n,t,{priority:o.converterPriority||"normal"})}}function ME(o){o=Pe(o),Th(o);const t=Ih(o,!1),e=Ss(o.view),n=e?`element:${e}`:"element";return i=>{i.on(n,t,{priority:o.converterPriority||"low"})}}function BE(o){o=Pe(o);let t=null;(typeof o.view=="string"||o.view.key)&&(t=OE(o)),Th(o,t);const e=Ih(o,!0);return n=>{n.on("element",e,{priority:o.converterPriority||"low"})}}function NE(o){const t=FE(o.model);return Sh({...o,model:t})}function zE(o){o=Pe(o),o.model||(o.model=i=>i?o.view+":"+i:o.view);const t={view:o.view,model:o.model},e=Ts(Mh(t,"start")),n=Ts(Mh(t,"end"));return i=>{i.on(`element:${o.view}-start`,e,{priority:o.converterPriority||"normal"}),i.on(`element:${o.view}-end`,n,{priority:o.converterPriority||"normal"});const r=Qt.low,s=Qt.highest,a=Qt.get(o.converterPriority)/s;i.on("element",PE(t),{priority:r+a})}}function PE(o){return(t,e,n)=>{const i=`data-${o.view}`;if(!n.consumable.test(e.viewItem,{attributes:i+"-end-after"})&&!n.consumable.test(e.viewItem,{attributes:i+"-start-after"})&&!n.consumable.test(e.viewItem,{attributes:i+"-end-before"})&&!n.consumable.test(e.viewItem,{attributes:i+"-start-before"}))return;e.modelRange||Object.assign(e,n.convertChildren(e.viewItem,e.modelCursor)),n.consumable.consume(e.viewItem,{attributes:i+"-end-after"})&&r(e.modelRange.end,e.viewItem.getAttribute(i+"-end-after").split(",")),n.consumable.consume(e.viewItem,{attributes:i+"-start-after"})&&r(e.modelRange.end,e.viewItem.getAttribute(i+"-start-after").split(",")),n.consumable.consume(e.viewItem,{attributes:i+"-end-before"})&&r(e.modelRange.start,e.viewItem.getAttribute(i+"-end-before").split(",")),n.consumable.consume(e.viewItem,{attributes:i+"-start-before"})&&r(e.modelRange.start,e.viewItem.getAttribute(i+"-start-before").split(","));function r(s,a){for(const c of a){const l=o.model(c,n),d=n.writer.createElement("$marker",{"data-name":l});n.writer.insert(d,s),e.modelCursor.isEqual(s)?e.modelCursor=e.modelCursor.getShiftedBy(1):e.modelCursor=e.modelCursor._getTransformedByInsertion(s,1),e.modelRange=e.modelRange._getTransformedByInsertion(s,1)[0]}}}}function Ss(o){return typeof o=="string"?o:typeof o=="object"&&typeof o.name=="string"?o.name:null}function Ts(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=LE(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 LE(o,t,e){return o instanceof Function?o(t,e):e.writer.createElement(o)}function OE(o){typeof o.view=="string"&&(o.view={key:o.view});const t=o.view.key;let e;if(t=="class"||t=="style")e={[t=="class"?"classes":"styles"]:o.view.value};else{const n=typeof o.view.value>"u"?/[\s\S]*/:o.view.value;e={attributes:{[t]:n}}}return o.view.name&&(e.name=o.view.name),o.view=e,t}function Th(o,t=null){const e=t===null?!0:r=>r.getAttribute(t),n=typeof o.model!="object"?o.model:o.model.key,i=typeof o.model!="object"||typeof o.model.value>"u"?e:o.model.value;o.model={key:n,value:i}}function Ih(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||(RE(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)),jE(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 RE(o,t){const e=typeof o=="function"?o(t):o;return typeof e=="object"&&!Ss(e)?!1:!e.classes&&!e.attributes&&!e.styles}function jE(o,t,e,n){let i=!1;for(const r of Array.from(o.getItems({shallow:e})))n.schema.checkAttribute(r,t.key)&&(i=!0,!r.hasAttribute(t.key)&&n.writer.setAttribute(t.key,t.value,r));return i}function FE(o){return(t,e)=>{const n=typeof o=="string"?o:o(t,e);return e.writer.createElement("$marker",{"data-name":n})}}function Mh(o,t){const e=(n,i)=>{const r=n.getAttribute("name"),s=o.model(r,i);return i.writer.createElement("$marker",{"data-name":s})};return{view:`${o.view}-${t}`,model:e}}function VE(o){o.document.registerPostFixer(t=>HE(t,o))}function HE(o,t){const e=t.document.selection,n=t.schema,i=[];let r=!1;for(const s of e.getRanges()){const a=Bh(s,n);a&&!a.isEqual(s)?(i.push(a),r=!0):i.push(s)}return r&&o.setSelection(WE(i),{backward:e.isBackward}),!1}function Bh(o,t){return o.isCollapsed?UE(o,t):GE(o,t)}function UE(o,t){const e=o.start,n=t.getNearestSelectionRange(e);if(!n){const r=e.getAncestors().reverse().find(s=>t.isObject(s));return r?T._createOn(r):null}if(!n.isCollapsed)return n;const i=n.start;return e.isEqual(i)?null:new T(i)}function GE(o,t){const{start:e,end:n}=o,i=t.checkChild(e,"$text"),r=t.checkChild(n,"$text"),s=t.getLimitElement(e),a=t.getLimitElement(n);if(s===a){if(i&&r)return null;if(qE(e,n,t)){const u=e.nodeAfter&&t.isSelectable(e.nodeAfter)?null:t.getNearestSelectionRange(e,"forward"),p=n.nodeBefore&&t.isSelectable(n.nodeBefore)?null:t.getNearestSelectionRange(n,"backward"),b=u?u.start:e,S=p?p.end:n;return new T(b,S)}}const c=s&&!s.is("rootElement"),l=a&&!a.is("rootElement");if(c||l){const d=e.nodeAfter&&n.nodeBefore&&e.nodeAfter.parent===n.nodeBefore.parent,u=c&&(!d||!zh(e.nodeAfter,t)),m=l&&(!d||!zh(n.nodeBefore,t));let p=e,b=n;return u&&(p=P._createBefore(Nh(s,t))),m&&(b=P._createAfter(Nh(a,t))),new T(p,b)}return null}function Nh(o,t){let e=o,n=e;for(;t.isLimit(n)&&n.parent;)e=n,n=n.parent;return e}function qE(o,t,e){const n=o.nodeAfter&&!e.isLimit(o.nodeAfter)||e.checkChild(o,"$text"),i=t.nodeBefore&&!e.isLimit(t.nodeBefore)||e.checkChild(t,"$text");return n||i}function WE(o){const t=[...o],e=new Set;let n=1;for(;n<t.length;){const r=t[n],s=t.slice(0,n);for(const[a,c]of s.entries())if(!e.has(a)){if(r.isEqual(c))e.add(a);else if(r.isIntersecting(c)){e.add(a),e.add(n);const l=r.getJoined(c);t.push(l)}}n++}return t.filter((r,s)=>!e.has(s))}function zh(o,t){return o&&t.isSelectable(o)}class $E extends st(){constructor(t,e){super(),this.model=t,this.view=new P2(e),this.mapper=new ch,this.downcastDispatcher=new lh({mapper:this.mapper,schema:t.schema});const n=this.model.document,i=n.selection,r=this.model.markers;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(n,"change",()=>{this.view.change(s=>{this.downcastDispatcher.convertChanges(n.differ,r,s),this.downcastDispatcher.convertSelection(i,r,s)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",IE(this.model,this.mapper)),this.listenTo(this.view.document,"beforeinput",ZE(this.mapper,this.model.schema,this.view),{priority:"high"}),this.downcastDispatcher.on("insert:$text",mh(),{priority:"lowest"}),this.downcastDispatcher.on("insert",fh(),{priority:"lowest"}),this.downcastDispatcher.on("remove",Q2(),{priority:"low"}),this.downcastDispatcher.on("cleanSelection",tE()),this.downcastDispatcher.on("selection",J2(),{priority:"low"}),this.downcastDispatcher.on("selection",X2(),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(s=>{if(s.rootName=="$graveyard")return null;const a=new Tu(this.view.document,s.name);return a.rootName=s.rootName,this.mapper.bindElements(s,a),a})}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 w("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)})}}function ZE(o,t,e){return(n,i)=>{if(!(e.document.isComposing&&!g.isAndroid))for(let r=0;r<i.targetRanges.length;r++){const s=i.targetRanges[r],a=o.toModelRange(s),c=Bh(a,t);!c||c.isEqual(a)||(i.targetRanges[r]=o.toViewRange(c))}}}class So{constructor(){this._consumables=new Map}add(t,e){let n;if(t.is("$text")||t.is("documentFragment")){this._consumables.set(t,!0);return}this._consumables.has(t)?n=this._consumables.get(t):(n=new KE(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):!1}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 So),t.is("$text"))return e.add(t),e;t.is("element")&&e.add(t,So.consumablesFromElement(t)),t.is("documentFragment")&&e.add(t);for(const n of t.getChildren())e=So.createFrom(n,e);return e}}const Si=["attributes","classes","styles"];class KE{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 Si)e in t&&this._add(e,t[e])}test(t){if(t.name&&!this._canConsumeName)return this._canConsumeName;for(const e of Si)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 Si)e in t&&this._consume(e,t[e])}revert(t){t.name&&(this._canConsumeName=!0);for(const e of Si)e in t&&this._revert(e,t[e])}_add(t,e){const n=Gt(e)?e:[e],i=this._consumables[t];for(const r of n){if(t==="attributes"&&(r==="class"||r==="style"))throw new w("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)?e:[e],i=this._consumables[t];for(const r of n)if(t==="attributes"&&(r==="class"||r==="style")){const s=r=="class"?"classes":"styles",a=this._test(s,[...this._consumables[s].keys()]);if(a!==!0)return a}else{const s=i.get(r);if(s===void 0)return null;if(!s)return!1}return!0}_consume(t,e){const n=Gt(e)?e:[e],i=this._consumables[t];for(const r of n)if(t==="attributes"&&(r==="class"||r==="style")){const s=r=="class"?"classes":"styles";this._consume(s,[...this._consumables[s].keys()])}else if(i.set(r,!1),t=="styles")for(const s of this.element.document.stylesProcessor.getRelatedStyles(r))i.set(s,!1)}_revert(t,e){const n=Gt(e)?e:[e],i=this._consumables[t];for(const r of n)if(t==="attributes"&&(r==="class"||r==="style")){const s=r=="class"?"classes":"styles";this._revert(s,[...this._consumables[s].keys()])}else i.get(r)===!1&&i.set(r,!0)}}class YE extends st(){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(t,e)=>{e[0]=new hn(e[0])},{priority:"highest"}),this.on("checkChild",(t,e)=>{e[0]=new hn(e[0]),e[1]=this.getDefinition(e[1])},{priority:"highest"})}register(t,e){if(this._sourceDefinitions[t])throw new w("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 w("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 typeof t=="string"?e=t:"is"in t&&(t.is("$text")||t.is("$textProxy"))?e="$text":e=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):!1}isObject(t){const e=this.getDefinition(t);return e?!!(e.isObject||e.isLimit&&e.isSelectable&&e.isContent):!1}isInline(t){const e=this.getDefinition(t);return!!(e&&e.isInline)}isSelectable(t){const e=this.getDefinition(t);return e?!!(e.isSelectable||e.isObject):!1}isContent(t){const e=this.getDefinition(t);return e?!!(e.isContent||e.isObject):!1}checkChild(t,e){return e?this._checkContextMatch(e,t):!1}checkAttribute(t,e){const n=this.getDefinition(t.last);return n?n.allowAttributes.includes(e):!1}checkMerge(t,e){if(t instanceof P){const n=t.nodeBefore,i=t.nodeAfter;if(!(n instanceof lt))throw new w("schema-check-merge-no-element-before",this);if(!(i instanceof lt))throw new w("schema-check-merge-no-element-after",this);return this.checkMerge(n,i)}for(const n of e.getChildren())if(!this.checkChild(t,n))return!1;return!0}addChildCheck(t){this.on("checkChild",(e,[n,i])=>{if(!i)return;const r=t(n,i);typeof r=="boolean"&&(e.stop(),e.return=r)},{priority:"high"})}addAttributeCheck(t){this.on("checkAttribute",(e,[n,i])=>{const r=t(n,i);typeof r=="boolean"&&(e.stop(),e.return=r)},{priority:"high"})}setAttributeProperties(t,e){this._attributeProperties[t]=Object.assign(this.getAttributeProperties(t),e)}getAttributeProperties(t){return this._attributeProperties[t]||{}}getLimitElement(t){let e;for(t instanceof P?e=t.parent:e=(t instanceof T?[t]:Array.from(t.getRanges())).reduce((i,r)=>{const s=r.getCommonAncestor();return i?i.getCommonAncestor(s,{includeSelf:!0}):s},null);!this.isLimit(e)&&e.parent;)e=e.parent;return e}checkAttributeInSelection(t,e){if(t.isCollapsed){const i=[...t.getFirstPosition().getAncestors(),new gt("",t.getAttributes())];return this.checkAttribute(i,e)}else{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=hD(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 we({boundaries:T._createIn(r),startPosition:t,direction:"backward"})),(e=="both"||e=="forward")&&(i=new we({boundaries:T._createIn(r),startPosition:t}));for(const s of uD(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"))Ph(this,n,e);else{const r=T._createIn(n).getPositions();for(const s of r){const a=s.nodeBefore||s.parent;Ph(this,a,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 hn(t)}_clearCache(){this._compiledDefinitions=null}_compile(){const t={},e=this._sourceDefinitions,n=Object.keys(e);for(const i of n)t[i]=QE(e[i],i);for(const i of n)JE(t,i);for(const i of n)XE(t,i);for(const i of n)tD(t,i);for(const i of n)eD(t,i),nD(t,i);for(const i of n)oD(t,i),iD(t,i),rD(t,i);this._compiledDefinitions=t}_checkContextMatch(t,e,n=e.length-1){const i=e.getItem(n);if(t.allowIn.includes(i.name)){if(n==0)return!0;{const r=this.getDefinition(i);return this._checkContextMatch(r,e,n-1)}}else return!1}*_getValidRangesForRange(t,e){let n=t.start,i=t.start;for(const r of t.getItems({shallow:!0}))r.is("element")&&(yield*this._getValidRangesForRange(T._createIn(r),e)),this.checkAttribute(r,e)||(n.isEqual(i)||(yield new T(n,i)),n=P._createAfter(r)),i=P._createAfter(r);n.isEqual(i)||(yield new T(n,i))}}class hn{constructor(t){if(t instanceof hn)return t;let e;typeof t=="string"?e=[t]:Array.isArray(t)?e=t:e=t.getAncestors({includeSelf:!0}),this._items=e.map(dD)}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 hn([t]);return e._items=[...this._items,...e._items],e}getItem(t){return this._items[t]}*getNames(){yield*this._items.map(t=>t.name)}endsWith(t){return Array.from(this.getNames()).join(" ").endsWith(t)}startsWith(t){return Array.from(this.getNames()).join(" ").startsWith(t)}}function QE(o,t){const e={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return sD(o,e),gn(o,e,"allowIn"),gn(o,e,"allowContentOf"),gn(o,e,"allowWhere"),gn(o,e,"allowAttributes"),gn(o,e,"allowAttributesOf"),gn(o,e,"allowChildren"),gn(o,e,"inheritTypesFrom"),aD(o,e),e}function JE(o,t){const e=o[t];for(const n of e.allowChildren){const i=o[n];i&&i.allowIn.push(t)}e.allowChildren.length=0}function XE(o,t){for(const e of o[t].allowContentOf)o[e]&&cD(o,e).forEach(i=>{i.allowIn.push(t)});delete o[t].allowContentOf}function tD(o,t){for(const e of o[t].allowWhere){const n=o[e];if(n){const i=n.allowIn;o[t].allowIn.push(...i)}}delete o[t].allowWhere}function eD(o,t){for(const e of o[t].allowAttributesOf){const n=o[e];if(n){const i=n.allowAttributes;o[t].allowAttributes.push(...i)}}delete o[t].allowAttributesOf}function nD(o,t){const e=o[t];for(const n of e.inheritTypesFrom){const i=o[n];if(i){const r=Object.keys(i).filter(s=>s.startsWith("is"));for(const s of r)s in e||(e[s]=i[s])}}delete e.inheritTypesFrom}function oD(o,t){const e=o[t],n=e.allowIn.filter(i=>o[i]);e.allowIn=Array.from(new Set(n))}function iD(o,t){const e=o[t];for(const n of e.allowIn)o[n].allowChildren.push(t)}function rD(o,t){const e=o[t];e.allowAttributes=Array.from(new Set(e.allowAttributes))}function sD(o,t){for(const e of o){const n=Object.keys(e).filter(i=>i.startsWith("is"));for(const i of n)t[i]=!!e[i]}}function gn(o,t,e){for(const n of o){const i=n[e];typeof i=="string"?t[e].push(i):Array.isArray(i)&&t[e].push(...i)}}function aD(o,t){for(const e of o){const n=e.inheritAllFrom;n&&(t.allowContentOf.push(n),t.allowWhere.push(n),t.allowAttributesOf.push(n),t.inheritTypesFrom.push(n))}}function cD(o,t){const e=o[t];return lD(o).filter(n=>n.allowIn.includes(e.name))}function lD(o){return Object.keys(o).map(t=>o[t])}function dD(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){return o.getAttribute(t)}}}function*uD(o,t){let e=!1;for(;!e;){if(e=!0,o){const n=o.next();n.done||(e=!1,yield{walker:o,value:n.value})}if(t){const n=t.next();n.done||(e=!1,yield{walker:t,value:n.value})}}}function*hD(o){for(const t of o)yield*t.getMinimalFlatRanges()}function Ph(o,t,e){for(const n of t.getAttributeKeys())o.checkAttribute(t,n)||e.removeAttribute(n,t)}class gD extends ct(){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)=>this._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=fD(n,e),this.conversionApi.writer=e,this.conversionApi.consumable=So.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=mD(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 w("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(t,e){let n=e.is("position")?e:P._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):!1}_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);r?e.modelCursor=i.createPositionAt(r,0):e.modelCursor=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 xh(e,t,n)?{position:Eh(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 this._splitParts.has(t)?e=this._splitParts.get(t):e=[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()}}function mD(o,t){const e=new Set,n=new Map,i=T._createIn(o).getItems();for(const r of i)r.is("element","$marker")&&e.add(r);for(const r of e){const s=r.getAttribute("data-name"),a=t.createPositionBefore(r);n.has(s)?n.get(s).end=a.clone():n.set(s,new T(a.clone())),t.remove(r)}return n}function fD(o,t){let e;for(const n of new hn(o)){const i={};for(const s of n.getAttributeKeys())i[s]=n.getAttribute(s);const r=t.createElement(n.name,i);e&&t.insert(r,e),e=P._createAt(r,0)}return e}class pD{getHtml(t){const n=U.document.implementation.createHTMLDocument("").createElement("div");return n.appendChild(t),n.innerHTML}}class kD{constructor(t){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new vi(t,{renderingMode:"data"}),this.htmlWriter=new pD}toData(t){const e=this.domConverter.viewToDom(t);return this.htmlWriter.getHtml(e)}toView(t){const e=this._toDom(t);return this.domConverter.domToView(e,{skipComments:this.skipComments})}registerRawContentMatcher(t){this.domConverter.registerRawContentMatcher(t)}useFillerType(t){this.domConverter.blockFillerMode=t=="marked"?"markedNbsp":"nbsp"}_toDom(t){t.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(t=`<body>${t}</body>`);const e=this.domParser.parseFromString(t,"text/html"),n=e.createDocumentFragment(),i=e.body.childNodes;for(;i.length>0;)n.appendChild(i[0]);return n}}class bD extends ct(){constructor(t,e){super(),this.model=t,this.mapper=new ch,this.downcastDispatcher=new lh({mapper:this.mapper,schema:t.schema}),this.downcastDispatcher.on("insert:$text",mh(),{priority:"lowest"}),this.downcastDispatcher.on("insert",fh(),{priority:"lowest"}),this.upcastDispatcher=new gD({schema:t.schema}),this.viewDocument=new Ai(e),this.stylesProcessor=e,this.htmlProcessor=new kD(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Bu(this.viewDocument),this.upcastDispatcher.on("text",TE(),{priority:"lowest"}),this.upcastDispatcher.on("element",Dh(),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",Dh(),{priority:"lowest"}),st().prototype.decorate.call(this,"init"),st().prototype.decorate.call(this,"set"),st().prototype.decorate.call(this,"get"),st().prototype.decorate.call(this,"toView"),st().prototype.decorate.call(this,"toModel"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},yh)},{priority:"lowest"})}get(t={}){const{rootName:e="main",trim:n="empty"}=t;if(!this._checkIfRootsExists([e]))throw new w("datacontroller-get-non-existent-root",this);const i=this.model.document.getRoot(e);return i.isAttached()||void 0,n==="empty"&&!this.model.hasContent(i,{ignoreWhitespaces:!0})?"":this.stringify(i,t)}stringify(t,e={}){const n=this.toView(t,e);return this.processor.toData(n)}toView(t,e={}){const n=this.viewDocument,i=this._viewWriter;this.mapper.clearBindings();const r=T._createIn(t),s=new ln(n);this.mapper.bindElements(t,s);const a=t.is("documentFragment")?t.markers:wD(t);return this.downcastDispatcher.convert(r,a,i,e),s}init(t){if(this.model.document.version)throw new w("datacontroller-init-document-not-empty",this);let e={};if(typeof t=="string"?e.main=t:e=t,!this._checkIfRootsExists(Object.keys(e)))throw new w("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 w("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}}function wD(o){const t=[],e=o.root.document;if(!e)return new Map;const n=T._createIn(o);for(const i of e.model.markers){const r=i.getRange(),s=r.isCollapsed,a=r.start.isEqual(n.start)||r.end.isEqual(n.end);if(s&&a)t.push([i.name,r]);else{const c=n.getIntersection(r);c&&t.push([i.name,c])}}return t.sort(([i,r],[s,a])=>{if(r.end.compareWith(a.start)!=="after")return 1;if(r.start.compareWith(a.end)!=="before")return-1;switch(r.start.compareWith(a.start)){case"before":return 1;case"after":return-1;default:switch(r.end.compareWith(a.end)){case"before":return 1;case"after":return-1;default:return s.localeCompare(i)}}}),new Map(t)}class AD{constructor(t,e){this._helpers=new Map,this._downcast=_t(t),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=_t(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 w("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:t,dispatchers:[e],isDowncast:n})}for(t){if(!this._helpers.has(t))throw new w("conversion-for-unknown-group",this);return this._helpers.get(t)}elementToElement(t){this.for("downcast").elementToElement(t);for(const{model:e,view:n}of Is(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 Is(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 Is(t))this.for("upcast").attributeToAttribute({view:n,model:e})}_createConversionHelpers({name:t,dispatchers:e,isDowncast:n}){if(this._helpers.has(t))throw new w("conversion-group-exists",this);const i=n?new Y2(e):new SE(e);this._helpers.set(t,i)}}function*Is(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*Lh(e,n,i)}else yield*Lh(o.model,o.view,o.upcastAlso)}function*Lh(o,t,e){if(yield{model:o,view:t},e)for(const n of _t(e))yield{model:o,view:n}}class re{constructor(t){this.baseVersion=t,this.isDocumentOperation=this.baseVersion!==null,this.batch=null}_validate(){}toJSON(){const t=Object.assign({},this);return t.__className=this.constructor.className,delete t.batch,delete t.isDocumentOperation,t}static get className(){return"Operation"}static fromJSON(t,e){return new this(t.baseVersion)}}function Ms(o,t){const e=Rh(t),n=e.reduce((s,a)=>s+a.offsetSize,0),i=o.parent;Mo(o);const r=o.index;return i._insertChild(r,e),Io(i,r+e.length),Io(i,r),new T(o,o.getShiftedBy(n))}function Oh(o){if(!o.isFlat)throw new w("operation-utils-remove-range-not-flat",this);const t=o.start.parent;Mo(o.start),Mo(o.end);const e=t._removeChildren(o.start.index,o.end.index-o.start.index);return Io(t,o.start.index),e}function To(o,t){if(!o.isFlat)throw new w("operation-utils-move-range-not-flat",this);const e=Oh(o);return t=t._getTransformedByDeletion(o.start,o.end.offset-o.start.offset),Ms(t,e)}function CD(o,t,e){Mo(o.start),Mo(o.end);for(const n of o.getItems({shallow:!0})){const i=n.is("$textProxy")?n.textNode:n;e!==null?i._setAttribute(t,e):i._removeAttribute(t),Io(i.parent,i.index)}Io(o.end.parent,o.end.index)}function Rh(o){const t=[];function e(n){if(typeof n=="string")t.push(new gt(n));else if(n instanceof be)t.push(new gt(n.data,n.getAttributes()));else if(n instanceof dn)t.push(n);else if(Jt(n))for(const i of n)e(i)}e(o);for(let n=1;n<t.length;n++){const i=t[n],r=t[n-1];i instanceof gt&&r instanceof gt&&jh(i,r)&&(t.splice(n-1,2,new gt(r.data+i.data,r.getAttributes())),n--)}return t}function Io(o,t){const e=o.getChild(t-1),n=o.getChild(t);if(e&&n&&e.is("$text")&&n.is("$text")&&jh(e,n)){const i=new gt(e.data+n.data,e.getAttributes());o._removeChildren(t-1,2),o._insertChild(t-1,i)}}function Mo(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 gt(t.data.substr(0,n),t.getAttributes()),s=new gt(t.data.substr(n),t.getAttributes());e._insertChild(i,[r,s])}}function jh(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 it extends re{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 it(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 it(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 w("move-operation-nodes-do-not-exist",this);if(t===e&&n<i&&i<n+this.howMany)throw new w("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 w("move-operation-node-into-itself",this)}}_execute(){To(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=P.fromJSON(t.sourcePosition,e),i=P.fromJSON(t.targetPosition,e);return new this(n,t.howMany,i,t.baseVersion)}}class Pt extends re{constructor(t,e,n){super(n),this.position=t.clone(),this.position.stickiness="toNone",this.nodes=new vo(Rh(e)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}get affectedSelectable(){return this.position.clone()}clone(){const t=new vo([...this.nodes].map(n=>n._clone(!0))),e=new Pt(this.position,t,this.baseVersion);return e.shouldReceiveAttributes=this.shouldReceiveAttributes,e}getReversed(){const t=this.position.root.document.graveyard,e=new P(t,[0]);return new it(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}_validate(){const t=this.position.parent;if(!t||t.maxOffset<this.position.offset)throw new w("insert-operation-position-invalid",this)}_execute(){const t=this.nodes;this.nodes=new vo([...t].map(e=>e._clone(!0))),Ms(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(lt.fromJSON(r)):n.push(gt.fromJSON(r));const i=new Pt(P.fromJSON(t.position,e),n,t.baseVersion);return i.shouldReceiveAttributes=t.shouldReceiveAttributes,i}}class mt extends re{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 P(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 P(t,[0]);return new vt(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 w("split-operation-position-invalid",this);if(t.parent){if(this.howMany!=t.maxOffset-this.splitPosition.offset)throw new w("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new w("split-operation-graveyard-position-invalid",this)}else throw new w("split-operation-split-in-root",this)}_execute(){const t=this.splitPosition.parent;if(this.graveyardPosition)To(T._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const n=t._clone();Ms(this.insertionPosition,n)}const e=new T(P._createAt(t,this.splitPosition.offset),P._createAt(t,t.maxOffset));To(e,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 P(t.root,e,"toPrevious")}static fromJSON(t,e){const n=P.fromJSON(t.splitPosition,e),i=P.fromJSON(t.insertionPosition,e),r=t.graveyardPosition?P.fromJSON(t.graveyardPosition,e):null;return new this(n,t.howMany,i,r,t.baseVersion)}}class vt extends re{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 P(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 vt(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 P(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)if(e.parent){if(this.howMany!=t.maxOffset)throw new w("merge-operation-how-many-invalid",this)}else throw new w("merge-operation-target-position-invalid",this);else throw new w("merge-operation-source-position-invalid",this)}_execute(){const t=this.sourcePosition.parent,e=T._createIn(t);To(e,this.targetPosition),To(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=P.fromJSON(t.sourcePosition,e),i=P.fromJSON(t.targetPosition,e),r=P.fromJSON(t.graveyardPosition,e);return new this(n,t.howMany,i,r,t.baseVersion)}}class Kt extends re{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 Kt(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Kt(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 Kt(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)}}function _D(o,t){return eh(o,t)}const Ti=_D;class Et extends re{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 Et(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Et(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 w("attribute-operation-range-not-flat",this);for(const t of this.range.getItems({shallow:!0})){if(this.oldValue!==null&&!Ti(t.getAttribute(this.key),this.oldValue))throw new w("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 w("attribute-operation-attribute-exists",this,{node:t,key:this.key})}}_execute(){Ti(this.oldValue,this.newValue)||CD(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(t,e){return new Et(T.fromJSON(t.range,e),t.key,t.oldValue,t.newValue,t.baseVersion)}}class It extends re{get type(){return"noop"}get affectedSelectable(){return null}clone(){return new It(this.baseVersion)}getReversed(){return new It(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}class Yt extends re{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 Yt(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Yt(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const t=this.position.nodeAfter;if(t instanceof lt){if(t.name!==this.oldName)throw new w("rename-operation-wrong-name",this)}else throw new w("rename-operation-wrong-position",this)}_execute(){const t=this.position.nodeAfter;t.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 Yt(P.fromJSON(t.position,e),t.oldName,t.newName,t.baseVersion)}}class Le extends re{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 w("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 w("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 w("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 w("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 xe extends re{constructor(t,e,n,i,r){if(super(r),this.rootName=t,this.elementName=e,this.isAdd=n,this._document=i,!this._document.getRoot(this.rootName)){const s=this._document.createRoot(this.elementName,this.rootName);s._isAttached=!1}}get type(){return this.isAdd?"addRoot":"detachRoot"}get affectedSelectable(){return this._document.getRoot(this.rootName)}clone(){return new xe(this.rootName,this.elementName,this.isAdd,this._document,this.baseVersion)}getReversed(){return new xe(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 xe(t.rootName,t.elementName,t.isAdd,e,t.baseVersion)}}const le={};le[Et.className]=Et,le[Pt.className]=Pt,le[Kt.className]=Kt,le[it.className]=it,le[It.className]=It,le[re.className]=re,le[Yt.className]=Yt,le[Le.className]=Le,le[xe.className]=xe,le[mt.className]=mt,le[vt.className]=vt;class vD{static fromJSON(t,e){return le[t.__className].fromJSON(t,e)}}const Bs=new Map;function nt(o,t,e){let n=Bs.get(o);n||(n=new Map,Bs.set(o,n)),n.set(t,e)}function yD(o,t){const e=Bs.get(o);return e&&e.has(t)?e.get(t):xD}function xD(o){return[o]}function Fh(o,t,e={}){const n=yD(o.constructor,t.constructor);try{return o=o.clone(),n(o,t,e)}catch(i){throw i}}function ED(o,t,e){o=o.slice(),t=t.slice();const n=new DD(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=Fh(c,d,n.getContext(c,d,!0)),m=Fh(d,c,n.getContext(d,c,!1));n.updateRelation(c,d),n.setOriginalOperations(u,c),n.setOriginalOperations(m,d);for(const p of u)r.set(p,l+m.length);o.splice(a,1,...u),t.splice(l,1,...m)}if(e.padWithNoOps){const c=o.length-s.originalOperationsACount,l=t.length-s.originalOperationsBCount;Hh(o,l-c),Hh(t,c-l)}return Vh(o,s.nextBaseVersionB),Vh(t,s.nextBaseVersionA),{operationsA:o,operationsB:t,originalOperations:i}}class DD{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 it)e instanceof vt?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 it&&(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 vt)t.splitPosition.isBefore(e.sourcePosition)&&this._setRelation(t,e,"splitBefore");else if(e instanceof it)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 vt)e instanceof vt?(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");else if(t instanceof Kt){const n=t.newRange;if(!n)return;if(e instanceof it){const i=T._createFromPositionAndShift(e.sourcePosition,e.howMany),r=i.containsPosition(n.start)||i.start.isEqual(n.start),s=i.containsPosition(n.end)||i.end.isEqual(n.end);(r||s)&&!i.containsRange(n)&&this._setRelation(t,e,{side:r?"left":"right",path:r?n.start.path.slice():n.end.path.slice()})}else if(e instanceof vt){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 Vh(o,t){for(const e of o)e.baseVersion=t++}function Hh(o,t){for(let e=0;e<t;e++)o.push(new It(0))}nt(Et,Et,(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 Et(r,o.key,o.oldValue,o.newValue,0)),i=o.range.getIntersection(t.range);return i&&e.aIsStrong&&n.push(new Et(i,t.key,t.newValue,o.newValue,0)),n.length==0?[new It(0)]:n}else return[o]}),nt(Et,Pt,(o,t)=>{if(o.range.start.hasSameParentAs(t.position)&&o.range.containsPosition(t.position)){const n=o.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map(i=>new Et(i,o.key,o.oldValue,o.newValue,o.baseVersion));if(t.shouldReceiveAttributes){const i=Uh(t,o.key,o.oldValue);i&&n.unshift(i)}return n}return o.range=o.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[o]});function Uh(o,t,e){const i=o.nodes.getNode(0).getAttribute(t);if(i==e)return null;const r=new T(o.position,o.position.getShiftedBy(o.howMany));return new Et(r,t,i,e,0)}nt(Et,vt,(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 Et(i,o.key,o.oldValue,o.newValue,o.baseVersion))}),nt(Et,it,(o,t)=>SD(o.range,t).map(n=>new Et(n,o.key,o.oldValue,o.newValue,o.baseVersion)));function SD(o,t){const e=T._createFromPositionAndShift(t.sourcePosition,t.howMany);let n=null,i=[];e.containsRange(o,!0)?n=o:o.start.hasSameParentAs(e.start)?(i=o.getDifference(e),n=o.getIntersection(e)):i=[o];const r=[];for(let s of i){s=s._getTransformedByDeletion(t.sourcePosition,t.howMany);const a=t.getMovedRangeStart(),c=s.start.hasSameParentAs(a),l=s._getTransformedByInsertion(a,t.howMany,c);r.push(...l)}return n&&r.push(n._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany,!1)[0]),r}nt(Et,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]}),nt(Pt,Et,(o,t)=>{const e=[o];if(o.shouldReceiveAttributes&&o.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(o.position)){const n=Uh(o,t.key,t.newValue);n&&e.push(n)}return e}),nt(Pt,Pt,(o,t,e)=>o.position.isEqual(t.position)&&e.aIsStrong?[o]:(o.position=o.position._getTransformedByInsertOperation(t),[o])),nt(Pt,it,(o,t)=>(o.position=o.position._getTransformedByMoveOperation(t),[o])),nt(Pt,mt,(o,t)=>(o.position=o.position._getTransformedBySplitOperation(t),[o])),nt(Pt,vt,(o,t)=>(o.position=o.position._getTransformedByMergeOperation(t),[o])),nt(Kt,Pt,(o,t)=>(o.oldRange&&(o.oldRange=o.oldRange._getTransformedByInsertOperation(t)[0]),o.newRange&&(o.newRange=o.newRange._getTransformedByInsertOperation(t)[0]),[o])),nt(Kt,Kt,(o,t,e)=>{if(o.name==t.name)if(e.aIsStrong)o.oldRange=t.newRange?t.newRange.clone():null;else return[new It(0)];return[o]}),nt(Kt,vt,(o,t)=>(o.oldRange&&(o.oldRange=o.oldRange._getTransformedByMergeOperation(t)),o.newRange&&(o.newRange=o.newRange._getTransformedByMergeOperation(t)),[o])),nt(Kt,it,(o,t,e)=>{if(o.oldRange&&(o.oldRange=T._createFromRanges(o.oldRange._getTransformedByMoveOperation(t))),o.newRange){if(e.abRelation){const n=T._createFromRanges(o.newRange._getTransformedByMoveOperation(t));if(e.abRelation.side=="left"&&t.targetPosition.isEqual(o.newRange.start))return o.newRange.end=n.end,o.newRange.start.path=e.abRelation.path,[o];if(e.abRelation.side=="right"&&t.targetPosition.isEqual(o.newRange.end))return o.newRange.start=n.start,o.newRange.end.path=e.abRelation.path,[o]}o.newRange=T._createFromRanges(o.newRange._getTransformedByMoveOperation(t))}return[o]}),nt(Kt,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=P._createAt(t.insertionPosition):o.newRange.start.isEqual(t.splitPosition)&&!e.abRelation.wasInLeftElement&&(o.newRange.start=P._createAt(t.moveTargetPosition)),o.newRange.end.isEqual(t.splitPosition)&&e.abRelation.wasInRightElement?o.newRange.end=P._createAt(t.moveTargetPosition):o.newRange.end.isEqual(t.splitPosition)&&e.abRelation.wasEndBeforeMergedElement?o.newRange.end=P._createAt(t.insertionPosition):o.newRange.end=n.end,[o]}o.newRange=o.newRange._getTransformedBySplitOperation(t)}return[o]}),nt(vt,Pt,(o,t)=>(o.sourcePosition.hasSameParentAs(t.position)&&(o.howMany+=t.howMany),o.sourcePosition=o.sourcePosition._getTransformedByInsertOperation(t),o.targetPosition=o.targetPosition._getTransformedByInsertOperation(t),[o])),nt(vt,vt,(o,t,e)=>{if(o.sourcePosition.isEqual(t.sourcePosition)&&o.targetPosition.isEqual(t.targetPosition))if(e.bWasUndone){const n=t.graveyardPosition.path.slice();return n.push(0),o.sourcePosition=new P(t.graveyardPosition.root,n),o.howMany=0,[o]}else return[new It(0)];if(o.sourcePosition.isEqual(t.sourcePosition)&&!o.targetPosition.isEqual(t.targetPosition)&&!e.bWasUndone&&e.abRelation!="splitAtSource"){const n=o.targetPosition.root.rootName=="$graveyard",i=t.targetPosition.root.rootName=="$graveyard";if(i&&!n||!(n&&!i)&&e.aIsStrong){const c=t.targetPosition._getTransformedByMergeOperation(t),l=o.targetPosition._getTransformedByMergeOperation(t);return[new it(c,o.howMany,l,0)]}else return[new It(0)]}return o.sourcePosition.hasSameParentAs(t.targetPosition)&&(o.howMany+=t.howMany),o.sourcePosition=o.sourcePosition._getTransformedByMergeOperation(t),o.targetPosition=o.targetPosition._getTransformedByMergeOperation(t),(!o.graveyardPosition.isEqual(t.graveyardPosition)||!e.aIsStrong)&&(o.graveyardPosition=o.graveyardPosition._getTransformedByMergeOperation(t)),[o]}),nt(vt,it,(o,t,e)=>{const n=T._createFromPositionAndShift(t.sourcePosition,t.howMany);return t.type=="remove"&&!e.bWasUndone&&!e.forceWeakRemove&&o.deletionPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(o.sourcePosition)?[new It(0)]:(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.graveyardPosition.isEqual(t.targetPosition)||(o.graveyardPosition=o.graveyardPosition._getTransformedByMoveOperation(t)),[o])}),nt(vt,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)){const n=t.howMany!=0,i=t.graveyardPosition&&o.deletionPosition.isEqual(t.graveyardPosition);if(n||i||e.abRelation=="mergeTargetNotMoved")return o.sourcePosition=o.sourcePosition._getTransformedBySplitOperation(t),[o]}if(o.sourcePosition.isEqual(t.splitPosition)){if(e.abRelation=="mergeSourceNotMoved")return o.howMany=0,o.targetPosition=o.targetPosition._getTransformedBySplitOperation(t),[o];if(e.abRelation=="mergeSameElement"||o.sourcePosition.offset>0)return o.sourcePosition=t.moveTargetPosition.clone(),o.targetPosition=o.targetPosition._getTransformedBySplitOperation(t),[o]}return o.sourcePosition.hasSameParentAs(t.splitPosition)&&(o.howMany=t.splitPosition.offset),o.sourcePosition=o.sourcePosition._getTransformedBySplitOperation(t),o.targetPosition=o.targetPosition._getTransformedBySplitOperation(t),[o]}),nt(it,Pt,(o,t)=>{const n=T._createFromPositionAndShift(o.sourcePosition,o.howMany)._getTransformedByInsertOperation(t,!1)[0];return o.sourcePosition=n.start,o.howMany=n.end.offset-n.start.offset,o.targetPosition.isEqual(t.position)||(o.targetPosition=o.targetPosition._getTransformedByInsertOperation(t)),[o]}),nt(it,it,(o,t,e)=>{const n=T._createFromPositionAndShift(o.sourcePosition,o.howMany),i=T._createFromPositionAndShift(t.sourcePosition,t.howMany);let r=e.aIsStrong,s=!e.aIsStrong;e.abRelation=="insertBefore"||e.baRelation=="insertAfter"?s=!0:(e.abRelation=="insertAfter"||e.baRelation=="insertBefore")&&(s=!1);let a;if(o.targetPosition.isEqual(t.targetPosition)&&s?a=o.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):a=o.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Gh(o,t)&&Gh(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),On([n],a);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()),On([n],a);const d=Ft(o.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if(d=="prefix"||d=="extension")return n.start=n.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),n.end=n.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),On([n],a);o.type=="remove"&&t.type!="remove"&&!e.aWasUndone&&!e.forceWeakRemove?r=!0:o.type!="remove"&&t.type=="remove"&&!e.bWasUndone&&!e.forceWeakRemove&&(r=!1);const u=[],m=n.getDifference(i);for(const b of m){b.start=b.start._getTransformedByDeletion(t.sourcePosition,t.howMany),b.end=b.end._getTransformedByDeletion(t.sourcePosition,t.howMany);const S=Ft(b.start.getParentPath(),t.getMovedRangeStart().getParentPath())=="same",B=b._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,S);u.push(...B)}const p=n.getIntersection(i);return p!==null&&r&&(p.start=p.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),p.end=p.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),u.length===0?u.push(p):u.length==1?i.start.isBefore(n.start)||i.start.isEqual(n.start)?u.unshift(p):u.push(p):u.splice(1,0,p)),u.length===0?[new It(o.baseVersion)]:On(u,a)}),nt(it,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 a=new T(t.splitPosition,i.end);a=a._getTransformedBySplitOperation(t);const c=[new T(i.start,t.splitPosition),a];return On(c,n)}o.targetPosition.isEqual(t.splitPosition)&&e.abRelation=="insertAtSource"&&(n=t.moveTargetPosition),o.targetPosition.isEqual(t.insertionPosition)&&e.abRelation=="insertBetween"&&(n=o.targetPosition);const s=[i._getTransformedBySplitOperation(t)];if(t.graveyardPosition){const a=i.start.isEqual(t.graveyardPosition)||i.containsPosition(t.graveyardPosition);o.howMany>1&&a&&!e.aWasUndone&&s.push(T._createFromPositionAndShift(t.insertionPosition,1))}return On(s,n)}),nt(it,vt,(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(!e.aWasUndone){const s=[];let a=t.graveyardPosition.clone(),c=t.targetPosition._getTransformedByMergeOperation(t);o.howMany>1&&(s.push(new it(o.sourcePosition,o.howMany-1,o.targetPosition,0)),a=a._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany-1),c=c._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany-1));const l=t.deletionPosition._getCombined(o.sourcePosition,o.targetPosition),d=new it(a,1,l,0),u=d.getMovedRangeStart().path.slice();u.push(0);const m=new P(d.targetPosition.root,u);c=c._getTransformedByMove(a,l,1);const p=new it(c,t.howMany,m,0);return s.push(d),s.push(p),s}}else if(o.howMany==1)return e.bWasUndone?(o.sourcePosition=t.graveyardPosition.clone(),o.targetPosition=o.targetPosition._getTransformedByMergeOperation(t),[o]):[new It(0)]}const r=T._createFromPositionAndShift(o.sourcePosition,o.howMany)._getTransformedByMergeOperation(t);return o.sourcePosition=r.start,o.howMany=r.end.offset-r.start.offset,o.targetPosition=o.targetPosition._getTransformedByMergeOperation(t),[o]}),nt(Yt,Pt,(o,t)=>(o.position=o.position._getTransformedByInsertOperation(t),[o])),nt(Yt,vt,(o,t)=>o.position.isEqual(t.deletionPosition)?(o.position=t.graveyardPosition.clone(),o.position.stickiness="toNext",[o]):(o.position=o.position._getTransformedByMergeOperation(t),[o])),nt(Yt,it,(o,t)=>(o.position=o.position._getTransformedByMoveOperation(t),[o])),nt(Yt,Yt,(o,t,e)=>{if(o.position.isEqual(t.position))if(e.aIsStrong)o.oldName=t.newName;else return[new It(0)];return[o]}),nt(Yt,mt,(o,t)=>{const e=o.position.path,n=t.splitPosition.getParentPath();if(Ft(e,n)=="same"&&!t.graveyardPosition){const i=new Yt(o.position.getShiftedBy(1),o.oldName,o.newName,0);return[o,i]}return o.position=o.position._getTransformedBySplitOperation(t),[o]}),nt(Le,Le,(o,t,e)=>{if(o.root===t.root&&o.key===t.key){if(!e.aIsStrong||o.newValue===t.newValue)return[new It(0)];o.oldValue=t.newValue}return[o]}),nt(xe,xe,(o,t)=>o.rootName===t.rootName&&o.isAdd===t.isAdd?[new It(0)]:[o]),nt(mt,Pt,(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])),nt(mt,vt,(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 P(t.graveyardPosition.root,n),r=mt.getInsertionPosition(new P(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]}),nt(mt,it,(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 P(a.root,c);return[new it(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]}),nt(mt,mt,(o,t,e)=>{if(o.splitPosition.isEqual(t.splitPosition)){if(!o.graveyardPosition&&!t.graveyardPosition)return[new It(0)];if(o.graveyardPosition&&t.graveyardPosition&&o.graveyardPosition.isEqual(t.graveyardPosition))return[new It(0)];if(e.abRelation=="splitBefore")return o.howMany=0,o.graveyardPosition=o.graveyardPosition._getTransformedBySplitOperation(t),[o]}if(o.graveyardPosition&&t.graveyardPosition&&o.graveyardPosition.isEqual(t.graveyardPosition)){const n=o.splitPosition.root.rootName=="$graveyard",i=t.splitPosition.root.rootName=="$graveyard";if(i&&!n||!(n&&!i)&&e.aIsStrong){const c=[];return t.howMany&&c.push(new it(t.moveTargetPosition,t.howMany,t.splitPosition,0)),o.howMany&&c.push(new it(o.splitPosition,o.howMany,o.moveTargetPosition,0)),c}else return[new It(0)]}if(o.graveyardPosition&&(o.graveyardPosition=o.graveyardPosition._getTransformedBySplitOperation(t)),o.splitPosition.isEqual(t.insertionPosition)&&e.abRelation=="splitBefore")return o.howMany++,[o];if(t.splitPosition.isEqual(o.insertionPosition)&&e.baRelation=="splitBefore"){const n=t.insertionPosition.path.slice();n.push(0);const i=new P(t.insertionPosition.root,n),r=new it(o.insertionPosition,1,i,0);return[o,r]}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]});function Gh(o,t){return o.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany)===null}function On(o,t){const e=[];for(let n=0;n<o.length;n++){const i=o[n],r=new it(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}class Mt extends ct(P){constructor(t,e,n="toNone"){if(super(t,e,n),!this.root.is("rootElement"))throw new w("model-liveposition-root-not-rootelement",t);TD.call(this)}detach(){this.stopListening()}toPosition(){return new P(this.root,this.path.slice(),this.stickiness)}static fromPosition(t,e){return new this(t.root,t.path.slice(),e||t.stickiness)}}Mt.prototype.is=function(o){return o==="livePosition"||o==="model:livePosition"||o=="position"||o==="model:position"};function TD(){this.listenTo(this.root.document.model,"applyOperation",(o,t)=>{const e=t[0];e.isDocumentOperation&&ID.call(this,e)},{priority:"low"})}function ID(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)}}class Rn{constructor(t={}){typeof t=="string"&&(t=t==="transparent"?{isUndoable:!1}:{},void 0);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"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}}class MD{constructor(t){this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changedRoots=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set,this._markerCollection=t}get isEmpty(){return this._changesInElement.size==0&&this._changedMarkers.size==0&&this._changedRoots.size==0}bufferOperation(t){const e=t;switch(e.type){case"insert":{if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break}case"addAttribute":case"removeAttribute":case"changeAttribute":{for(const n of e.range.getItems({shallow:!0}))this._isInInsertedElement(n.parent)||this._markAttribute(n);break}case"remove":case"move":case"reinsert":{if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;const n=this._isInInsertedElement(e.sourcePosition.parent),i=this._isInInsertedElement(e.targetPosition.parent);n||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),i||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break}case"rename":{if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);const n=T._createFromPositionAndShift(e.position,1);for(const i of this._markerCollection.getMarkersIntersectingRange(n)){const r=i.getData();this.bufferMarkerChange(i.name,r,r)}break}case"split":{const n=e.splitPosition.parent;this._isInInsertedElement(n)||this._markRemove(n,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break}case"merge":{const n=e.sourcePosition.parent;this._isInInsertedElement(n.parent)||this._markRemove(n.parent,n.startOffset,1);const i=e.graveyardPosition.parent;this._markInsert(i,e.graveyardPosition.offset,1);const r=e.targetPosition.parent;this._isInInsertedElement(r)||this._markInsert(r,e.targetPosition.offset,n.maxOffset);break}case"detachRoot":case"addRoot":{const n=e.affectedSelectable;if(!n._isLoaded||n.isAttached()==e.isAdd)return;this._bufferRootStateChange(e.rootName,e.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":{if(!e.root._isLoaded)return;const n=e.root.rootName;this._bufferRootAttributeChange(n,e.key,e.oldValue,e.newValue);break}}this._cachedChanges=null}bufferMarkerChange(t,e,n){e.range&&e.range.root.is("rootElement")&&!e.range.root._isLoaded&&(e.range=null),n.range&&n.range.root.is("rootElement")&&!n.range.root._isLoaded&&(n.range=null);let i=this._changedMarkers.get(t);i?i.newMarkerData=n:(i={newMarkerData:n,oldMarkerData:e},this._changedMarkers.set(t,i)),i.oldMarkerData.range==null&&n.range==null&&this._changedMarkers.delete(t)}getMarkersToRemove(){const t=[];for(const[e,n]of this._changedMarkers)n.oldMarkerData.range!=null&&t.push({name:e,range:n.oldMarkerData.range});return t}getMarkersToAdd(){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._changesInElement.size>0||this._changedRoots.size>0)return!0;for(const{newMarkerData:t,oldMarkerData:e}of this._changedMarkers.values()){if(t.affectsData!==e.affectsData)return!0;if(t.affectsData){const n=t.range&&!e.range,i=!t.range&&e.range,r=t.range&&e.range&&!t.range.isEqual(e.range);if(n||i||r)return!0}}return!1}getChanges(t={}){if(this._cachedChanges)return t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let e=[];for(const n of this._changesInElement.keys()){const i=this._changesInElement.get(n).sort((d,u)=>d.offset===u.offset?d.type!=u.type?d.type=="remove"?-1:1:0:d.offset<u.offset?-1:1),r=this._elementSnapshots.get(n),s=qh(n.getChildren()),a=BD(r.length,i);let c=0,l=0;for(const d of a)if(d==="i")e.push(this._getInsertDiff(n,c,s[c])),c++;else if(d==="r")e.push(this._getRemoveDiff(n,c,r[l])),l++;else if(d==="a"){const u=s[c].attributes,m=r[l].attributes;let p;if(s[c].name=="$text")p=new T(P._createAt(n,c),P._createAt(n,c+1));else{const b=n.offsetToIndex(c);p=new T(P._createAt(n,c),P._createAt(n.getChild(b),0))}e.push(...this._getAttributesDiff(p,m,u)),c++,l++}else c++,l++}e.sort((n,i)=>n.position.root!=i.position.root?n.position.root.rootName<i.position.root.rootName?-1:1:n.position.isEqual(i.position)?n.changeCount-i.changeCount:n.position.isBefore(i.position)?-1:1);for(let n=1,i=0;n<e.length;n++){const r=e[i],s=e[n],a=r.type=="remove"&&s.type=="remove"&&r.name=="$text"&&s.name=="$text"&&r.position.isEqual(s.position),c=r.type=="insert"&&s.type=="insert"&&r.name=="$text"&&s.name=="$text"&&r.position.parent==s.position.parent&&r.position.offset+r.length==s.position.offset,l=r.type=="attribute"&&s.type=="attribute"&&r.position.parent==s.position.parent&&r.range.isFlat&&s.range.isFlat&&r.position.offset+r.length==s.position.offset&&r.attributeKey==s.attributeKey&&r.attributeOldValue==s.attributeOldValue&&r.attributeNewValue==s.attributeNewValue;a||c||l?(r.length++,l&&(r.range.end=r.range.end.getShiftedBy(1)),e[n]=null):i=n}e=e.filter(n=>n);for(const n of e)delete n.changeCount,n.type=="attribute"&&(delete n.position,delete n.length);return this._changeCount=0,this._cachedChangesWithGraveyard=e,this._cachedChanges=e.filter(ND),t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){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._elementSnapshots.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_bufferRootStateChange(t,e){if(!this._changedRoots.has(t)){this._changedRoots.set(t,{name:t,state:e?"attached":"detached"});return}const n=this._changedRoots.get(t);n.state!==void 0?(delete n.state,n.attributes===void 0&&this._changedRoots.delete(t)):n.state=e?"attached":"detached"}_bufferRootAttributeChange(t,e,n,i){const r=this._changedRoots.get(t)||{name:t},s=r.attributes||{};if(s[e]){const a=s[e];i===a.oldValue?delete s[e]:a.newValue=i}else s[e]={oldValue:n,newValue:i};Object.entries(s).length===0?(delete r.attributes,r.state===void 0&&this._changedRoots.delete(t)):(r.attributes=s,this._changedRoots.set(t,r))}_refreshItem(t){if(this._isInInsertedElement(t.parent))return;this._markRemove(t.parent,t.startOffset,t.offsetSize),this._markInsert(t.parent,t.startOffset,t.offsetSize),this._refreshedItems.add(t);const e=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)}}}_markInsert(t,e,n){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const i={type:"insert",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,i)}_markRemove(t,e,n){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const i={type:"remove",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,i),this._removeAllNestedChanges(t,e,n)}_markAttribute(t){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const e={type:"attribute",offset:t.startOffset,howMany:t.offsetSize,count:this._changeCount++};this._markChange(t.parent,e)}_markChange(t,e){this._makeSnapshot(t);const n=this._getChangesForElement(t);this._handleChange(e,n),n.push(e);for(let i=0;i<n.length;i++)n[i].howMany<1&&(n.splice(i,1),i--)}_getChangesForElement(t){let e;return this._changesInElement.has(t)?e=this._changesInElement.get(t):(e=[],this._changesInElement.set(t,e)),e}_makeSnapshot(t){this._elementSnapshots.has(t)||this._elementSnapshots.set(t,qh(t.getChildren()))}_handleChange(t,e){t.nodesToHandle=t.howMany;for(const n of e){const i=t.offset+t.howMany,r=n.offset+n.howMany;if(t.type=="insert"&&(n.type=="insert"&&(t.offset<=n.offset?n.offset+=t.howMany:t.offset<r&&(n.howMany+=t.nodesToHandle,t.nodesToHandle=0)),n.type=="remove"&&t.offset<n.offset&&(n.offset+=t.howMany),n.type=="attribute")){if(t.offset<=n.offset)n.offset+=t.howMany;else if(t.offset<r){const s=n.howMany;n.howMany=t.offset-n.offset,e.unshift({type:"attribute",offset:i,howMany:s-n.howMany,count:this._changeCount++})}}if(t.type=="remove"){if(n.type=="insert"){if(i<=n.offset)n.offset-=t.howMany;else if(i<=r)if(t.offset<n.offset){const s=i-n.offset;n.offset=t.offset,n.howMany-=s,t.nodesToHandle-=s}else n.howMany-=t.nodesToHandle,t.nodesToHandle=0;else if(t.offset<=n.offset)t.nodesToHandle-=n.howMany,n.howMany=0;else if(t.offset<r){const s=r-t.offset;n.howMany-=s,t.nodesToHandle-=s}}if(n.type=="remove"&&(i<=n.offset?n.offset-=t.howMany:t.offset<n.offset&&(t.nodesToHandle+=n.howMany,n.howMany=0)),n.type=="attribute"){if(i<=n.offset)n.offset-=t.howMany;else if(t.offset<n.offset){const s=i-n.offset;n.offset=t.offset,n.howMany-=s}else if(t.offset<r)if(i<=r){const s=n.howMany;n.howMany=t.offset-n.offset;const a=s-n.howMany-t.nodesToHandle;e.unshift({type:"attribute",offset:t.offset,howMany:a,count:this._changeCount++})}else n.howMany-=r-t.offset}}if(t.type=="attribute"){if(n.type=="insert")if(t.offset<n.offset&&i>n.offset){if(i>r){const s={type:"attribute",offset:r,howMany:i-r,count:this._changeCount++};this._handleChange(s,e),e.push(s)}t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}else t.offset>=n.offset&&t.offset<r&&(i>r?(t.nodesToHandle=i-r,t.offset=r):t.nodesToHandle=0);if(n.type=="remove"&&t.offset<n.offset&&i>n.offset){const s={type:"attribute",offset:n.offset,howMany:i-n.offset,count:this._changeCount++};this._handleChange(s,e),e.push(s),t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}n.type=="attribute"&&(t.offset>=n.offset&&i<=r?(t.nodesToHandle=0,t.howMany=0,t.offset=0):t.offset<=n.offset&&i>=r&&(n.howMany=0))}}t.howMany=t.nodesToHandle,delete t.nodesToHandle}_getInsertDiff(t,e,n){return{type:"insert",position:P._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(t,e,n){return{type:"remove",position:P._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(t,e,n){const i=[];n=new Map(n);for(const[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(P._createAt(t,e),P._createAt(t,e+n));for(const r of i.getItems({shallow:!0}))r.is("element")&&(this._elementSnapshots.delete(r),this._changesInElement.delete(r),this._removeAllNestedChanges(r,0,r.maxOffset))}}function qh(o){const t=[];for(const e of o)if(e.is("$text"))for(let n=0;n<e.data.length;n++)t.push({name:"$text",attributes:new Map(e.getAttributes())});else t.push({name:e.name,attributes:new Map(e.getAttributes())});return t}function BD(o,t){const e=[];let n=0,i=0;for(const r of t){if(r.offset>n){for(let s=0;s<r.offset-n;s++)e.push("e");i+=r.offset-n}if(r.type=="insert"){for(let s=0;s<r.howMany;s++)e.push("i");n=r.offset+r.howMany}else if(r.type=="remove"){for(let s=0;s<r.howMany;s++)e.push("r");n=r.offset,i+=r.howMany}else e.push(..."a".repeat(r.howMany).split("")),n=r.offset+r.howMany,i+=r.howMany}if(i<o)for(let r=0;r<o-i-n;r++)e.push("e");return e}function ND(o){const t="position"in o&&o.position.root.rootName=="$graveyard",e="range"in o&&o.range.root.rootName=="$graveyard";return!t&&!e}class zD{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 w("model-document-history-addoperation-incorrect-version",this,{operation:t,historyVersion:this.version});this._operations.push(t),this._version++,this._baseVersionToOperationIndex.set(t.baseVersion,this._operations.length-1)}getOperations(t,e=this.version){if(!this._operations.length)return[];const n=this._operations[0];t===void 0&&(t=n.baseVersion);let i=e-1;for(const[a,c]of this._gaps)t>a&&t<c&&(t=c),i>a&&i<c&&(i=a-1);if(i<n.baseVersion||t>this.lastOperation.baseVersion)return[];let r=this._baseVersionToOperationIndex.get(t);r===void 0&&(r=0);let s=this._baseVersionToOperationIndex.get(i);return s===void 0&&(s=this._operations.length-1),this._operations.slice(r,s+1)}getOperation(t){const e=this._baseVersionToOperationIndex.get(t);if(e!==void 0)return this._operations[e]}setOperationAsUndone(t,e){this._undoPairs.set(e,t),this._undoneOperations.add(t)}isUndoingOperation(t){return this._undoPairs.has(t)}isUndoneOperation(t){return this._undoneOperations.has(t)}getUndoneOperation(t){return this._undoPairs.get(t)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class Ii extends lt{constructor(t,e,n="main"){super(e),this._isAttached=!0,this._isLoaded=!0,this._document=t,this.rootName=n}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}Ii.prototype.is=function(o,t){return t?t===this.name&&(o==="rootElement"||o==="model:rootElement"||o==="element"||o==="model:element"):o==="rootElement"||o==="model:rootElement"||o==="element"||o==="model:element"||o==="node"||o==="model:node"};const Wh="$graveyard";class PD extends ct(){constructor(t){super(),this.model=t,this.history=new zD,this.selection=new Ae(this),this.roots=new te({idProperty:"rootName"}),this.differ=new MD(t.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",Wh),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(Wh)}createRoot(t="$root",e="main"){if(this.roots.get(e))throw new w("model-document-createroot-name-exists",this,{name:e});const n=new Ii(this,t,e);return this.roots.add(n),n}destroy(){this.selection.destroy(),this.stopListening()}getRoot(t="main"){return this.roots.get(t)}getRootNames(t=!1){return this.getRoots(t).map(e=>e.rootName)}getRoots(t=!1){return this.roots.filter(e=>e!=this.graveyard&&(t||e.isAttached())&&e._isLoaded)}registerPostFixer(t){this._postFixers.add(t)}toJSON(){const t=gu(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 $h(t.start)&&$h(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 $h(o){const t=o.textNode;if(t){const e=t.data,n=o.offset-t.startOffset;return!jr(e,n)&&!Fr(e,n)}return!0}class LD extends ct(){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(t){const e=t instanceof jn?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 jn?t.name:t;if(r.includes(","))throw new w("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(Zt.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=Zt.fromRange(e),c=new jn(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 jn?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):!1}_refresh(t){const e=t instanceof jn?t.name:t,n=this._markers.get(e);if(!n)throw new w("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 jn extends ct(We){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 w("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new w("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new w("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new w("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new w("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(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}}jn.prototype.is=function(o){return o==="marker"||o==="model:marker"};class OD extends re{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 w("detach-operation-on-document-node",this)}_execute(){Oh(T._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class Oe extends We{constructor(t){super(),this.markers=new Map,this._children=new vo,t&&this._insertChild(0,t)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return this.childCount===0}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}isAttached(){return!1}getAncestors(){return[]}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}getPath(){return[]}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}offsetToIndex(t){return this._children.offsetToIndex(t)}toJSON(){const t=[];for(const e of this._children)t.push(e.toJSON());return t}static fromJSON(t){const e=[];for(const n of t)n.name?e.push(lt.fromJSON(n)):e.push(gt.fromJSON(n));return new Oe(e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=RD(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"};function RD(o){return typeof o=="string"?[new gt(o)]:(Jt(o)||(o=[o]),Array.from(o).map(t=>typeof t=="string"?new gt(t):t instanceof be?new gt(t.data,t.getAttributes()):t))}class jD{constructor(t,e){this.model=t,this.batch=e}createText(t,e){return new gt(t,e)}createElement(t,e){return new lt(t,e)}createDocumentFragment(){return new Oe}cloneElement(t,e=!0){return t._clone(e)}insert(t,e,n=0){if(this._assertWriterUsedCorrectly(),t instanceof gt&&t.data=="")return;const i=P._createAt(e,n);if(t.parent)if(Yh(t.root,i.root)){this.move(T._createOn(t),i);return}else{if(t.root.document)throw new w("model-writer-insert-forbidden-move",this);this.remove(t)}const r=i.root.document?i.root.document.version:null,s=new Pt(i,t,r);if(t instanceof gt&&(s.shouldReceiveAttributes=!0),this.batch.addOperation(s),this.model.applyOperation(s),t instanceof Oe)for(const[a,c]of t.markers){const l=P._createAt(c.root,0),u={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,u):this.addMarker(a,u)}}insertText(t,e,n,i){e instanceof Oe||e instanceof lt||e instanceof P?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 lt||e instanceof P?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 lt?this.insert(this.createText(t),e,"end"):this.insert(this.createText(t,e),n,"end")}appendElement(t,e,n){e instanceof Oe||e instanceof lt?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)Zh(this,t,e,r)}else Kh(this,t,e,n)}setAttributes(t,e){for(const[n,i]of Ne(t))this.setAttribute(n,i,e)}removeAttribute(t,e){if(this._assertWriterUsedCorrectly(),e instanceof T){const n=e.getMinimalFlatRanges();for(const i of n)Zh(this,t,null,i)}else Kh(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))e(t);else for(const n of t.getItems())e(n)}move(t,e,n){if(this._assertWriterUsedCorrectly(),!(t instanceof T))throw new w("writer-move-invalid-range",this);if(!t.isFlat)throw new w("writer-move-range-not-flat",this);const i=P._createAt(e,n);if(i.isEqual(t.start))return;if(this._addOperationForAffectedMarkers("move",t),!Yh(t.root,i.root))throw new w("writer-move-different-document",this);const r=t.root.document?t.root.document.version:null,s=new it(t.start,t.end.offset-t.start.offset,i,r);this.batch.addOperation(s),this.model.applyOperation(s)}remove(t){this._assertWriterUsedCorrectly();const n=(t instanceof T?t:T._createOn(t)).getMinimalFlatRanges().reverse();for(const i of n)this._addOperationForAffectedMarkers("move",i),FD(i.start,i.end.offset-i.start.offset,this.batch,this.model)}merge(t){this._assertWriterUsedCorrectly();const e=t.nodeBefore,n=t.nodeAfter;if(this._addOperationForAffectedMarkers("merge",t),!(e instanceof lt))throw new w("writer-merge-no-element-before",this);if(!(n instanceof lt))throw new w("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),P._createAt(e,"end")),this.remove(n)}_merge(t){const e=P._createAt(t.nodeBefore,"end"),n=P._createAt(t.nodeAfter,0),i=t.root.document.graveyard,r=new P(i,[0]),s=t.root.document.version,a=new vt(n,t.nodeAfter.maxOffset,e,r,s);this.batch.addOperation(a),this.model.applyOperation(a)}rename(t,e){if(this._assertWriterUsedCorrectly(),!(t instanceof lt))throw new w("writer-rename-not-element-instance",this);const n=t.root.document?t.root.document.version:null,i=new Yt(P._createBefore(t),t.name,e,n);this.batch.addOperation(i),this.model.applyOperation(i)}split(t,e){this._assertWriterUsedCorrectly();let n=t.parent;if(!n.parent)throw new w("writer-split-element-no-parent",this);if(e||(e=n.parent),!t.parent.getAncestors({includeSelf:!0}).includes(e))throw new w("writer-split-invalid-limit-element",this);let i,r;do{const s=n.root.document?n.root.document.version:null,a=n.maxOffset-t.offset,c=mt.getInsertionPosition(t),l=new mt(t,a,c,null,s);this.batch.addOperation(l),this.model.applyOperation(l),!i&&!r&&(i=n,r=t.parent.nextSibling),t=this.createPositionAfter(t.parent),n=t.parent}while(n!==e);return{position:t,range:new T(P._createAt(i,"end"),P._createAt(r,0))}}wrap(t,e){if(this._assertWriterUsedCorrectly(),!t.isFlat)throw new w("writer-wrap-range-not-flat",this);const n=e instanceof lt?e:new lt(e);if(n.childCount>0)throw new w("writer-wrap-element-not-empty",this);if(n.parent!==null)throw new w("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,P._createAt(n,0))}unwrap(t){if(this._assertWriterUsedCorrectly(),t.parent===null)throw new w("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 w("writer-addmarker-no-usingoperation",this);const n=e.usingOperation,i=e.range,r=e.affectsData===void 0?!1:e.affectsData;if(this.model.markers.has(t))throw new w("writer-addmarker-marker-exists",this);if(!i)throw new w("writer-addmarker-no-range",this);return n?(Bo(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 w("writer-updatemarker-marker-not-exists",this);if(!e){this.model.markers._refresh(i);return}const r=typeof e.usingOperation=="boolean",s=typeof e.affectsData=="boolean",a=s?e.affectsData:i.affectsData;if(!r&&!e.range&&!s)throw new w("writer-updatemarker-wrong-options",this);const c=i.getRange(),l=e.range?e.range:c;if(r&&e.usingOperation!==i.managedUsingOperations){e.usingOperation?Bo(this,n,null,l,a):(Bo(this,n,c,null,a),this.model.markers._set(n,l,void 0,a));return}i.managedUsingOperations?Bo(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 w("writer-removemarker-no-marker",this);const n=this.model.markers.get(e);if(!n.managedUsingOperations){this.model.markers._remove(e);return}const i=n.getRange();Bo(this,e,i,null,n.affectsData)}addRoot(t,e="$root"){this._assertWriterUsedCorrectly();const n=this.model.document.getRoot(t);if(n&&n.isAttached())throw new w("writer-addroot-root-exists",this);const i=this.model.document,r=new xe(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 w("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 xe(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 Ne(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=Ae._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=Ae._getStoreAttributeKey(t);this.removeAttribute(n,e.anchor.parent)}e._removeAttribute(t)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new w("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,m=i.start.nodeAfter==c;r=l||d||u||m}r&&this.updateMarker(n.name,{range:i})}}}function Zh(o,t,e,n){const i=o.model,r=i.document;let s=n.start,a,c,l;for(const u of n.getWalker({shallow:!0}))l=u.item.getAttribute(t),a&&c!=l&&(c!=e&&d(),s=a),a=u.nextPosition,c=l;a instanceof P&&a!=s&&c!=e&&d();function d(){const u=new T(s,a),m=u.root.document?r.version:null,p=new Et(u,t,c,e,m);o.batch.addOperation(p),i.applyOperation(p)}}function Kh(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 d=n.document?r.version:null;c=new Le(n,t,s,e,d)}else{a=new T(P._createBefore(n),o.createPositionAfter(n));const d=a.root.document?r.version:null;c=new Et(a,t,s,e,d)}o.batch.addOperation(c),i.applyOperation(c)}}function Bo(o,t,e,n,i){const r=o.model,s=r.document,a=new Kt(t,e,n,r.markers,!!i,s.version);o.batch.addOperation(a),r.applyOperation(a)}function FD(o,t,e,n){let i;if(o.root.document){const r=n.document,s=new P(r.graveyard,[0]);i=new it(o,t,s,r.version)}else i=new OD(o,t);e.addOperation(i),n.applyOperation(i)}function Yh(o,t){return o===t||o instanceof Ii&&t instanceof Ii}function VD(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&&YD(i,t)){KD(r,t);return}const s={};if(!e.doNotAutoparagraph){const l=t.getSelectedElement();l&&Object.assign(s,i.getAttributesWithProperty(l,"copyOnReplace",!0))}const[a,c]=HD(n);a.isTouching(c)||r.remove(r.createRange(a,c)),e.leaveUnmerged||(GD(r,a,c),i.removeDisallowedAttributes(a.parent.getChildren(),r)),tg(r,t,a),!e.doNotAutoparagraph&&$D(i,a)&&Xh(r,a,t,s),a.detach(),c.detach()})}function HD(o){const t=o.root.document.model,e=o.start;let n=o.end;if(t.hasContent(o,{ignoreMarkers:!0})){const i=UD(n);if(i&&n.isTouching(t.createPositionAt(i,0))){const r=t.createSelection(o);t.modifySelection(r,{direction:"backward"});const s=r.getLastPosition(),a=t.createRange(s,n);t.hasContent(a,{ignoreMarkers:!0})||(n=s)}}return[Mt.fromPosition(e,"toPrevious"),Mt.fromPosition(n,"toNext")]}function UD(o){const t=o.parent,e=t.root.document.model.schema,n=t.getAncestors({parentFirst:!0,includeSelf:!0});for(const i of n){if(e.isLimit(i))return null;if(e.isBlock(i))return i}}function GD(o,t,e){const n=o.model;if(!Ns(o.model.schema,t,e))return;const[i,r]=WD(t,e);!i||!r||(!n.hasContent(i,{ignoreMarkers:!0})&&n.hasContent(r,{ignoreMarkers:!0})?Jh(o,t,e,i.parent):Qh(o,t,e,i.parent))}function Qh(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),e.isEqual(t)||o.insert(r,t),o.merge(t);e.parent.isEmpty;){const s=e.parent;e=o.createPositionBefore(s),o.remove(s)}Ns(o.model.schema,t,e)&&Qh(o,t,e,n)}}function Jh(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),e.isEqual(t)||o.insert(i,e);t.parent.isEmpty;){const s=t.parent;t=o.createPositionBefore(s),o.remove(s)}e=o.createPositionBefore(r),qD(o,e),Ns(o.model.schema,t,e)&&Jh(o,t,e,n)}}function qD(o,t){const e=t.nodeBefore,n=t.nodeAfter;e.name!=n.name&&o.rename(e,n.name),o.clearAttributes(e),o.setAttributes(Object.fromEntries(n.getAttributes()),e),o.merge(t)}function Ns(o,t,e){const n=t.parent,i=e.parent;return n==i||o.isLimit(n)||o.isLimit(i)?!1:ZD(t,e,o)}function WD(o,t){const e=o.getAncestors(),n=t.getAncestors();let i=0;for(;e[i]&&e[i]==n[i];)i++;return[e[i],n[i]]}function $D(o,t){const e=o.checkChild(t,"$text"),n=o.checkChild(t,"paragraph");return!e&&n}function ZD(o,t,e){const n=new T(o,t);for(const i of n.getWalker())if(e.isLimit(i.item))return!1;return!0}function Xh(o,t,e,n={}){const i=o.createElement("paragraph");o.model.schema.setAllowedAttributes(i,n,o),o.insert(i,t),tg(o,e,o.createPositionAt(i,0))}function KD(o,t){const e=o.model.schema.getLimitElement(t);o.remove(o.createRangeIn(e)),Xh(o,o.createPositionAt(e,0),t)}function YD(o,t){const e=o.getLimitElement(t);if(!t.containsEntireContent(e))return!1;const n=t.getFirstRange();return n.start.parent==n.end.parent?!1:o.checkChild(e,"paragraph")}function tg(o,t,e){t instanceof Ae?o.setSelection(e):t.setTo(e)}function QD(o,t){return o.change(e=>{const n=e.createDocumentFragment(),i=t.getFirstRange();if(!i||i.isCollapsed)return n;const r=i.start.root,s=i.start.getCommonPath(i.end),a=r.getNodeByPath(s);let c;i.start.parent==i.end.parent?c=i:c=e.createRange(e.createPositionAt(a,i.start.path[s.length]),e.createPositionAt(a,i.end.path[s.length]+1));const l=c.end.offset-c.start.offset;for(const d of c.getItems({shallow:!0}))d.is("$textProxy")?e.appendText(d.data,d.getAttributes(),n):e.append(e.cloneElement(d,!0),n);if(c!=i){const d=i._getTransformedByMove(c.start,e.createPositionAt(n,0),l)[0],u=e.createRange(e.createPositionAt(n,0),d.start),m=e.createRange(d.end,e.createPositionAt(n,"end"));eg(m,e),eg(u,e)}return n})}function eg(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)}})}function JD(o,t,e){return o.change(n=>{const i=e||o.document.selection;i.isCollapsed||o.deleteContent(i,{doNotAutoparagraph:!0});const r=new XD(o,n,i.anchor),s=[];let a;if(t.is("documentFragment")){if(t.markers.size){const d=[];for(const[u,m]of t.markers){const{start:p,end:b}=m,S=p.isEqual(b);d.push({position:p,name:u,isCollapsed:S},{position:b,name:u,isCollapsed:S})}d.sort(({position:u},{position:m})=>u.isBefore(m)?1:-1);for(const{position:u,name:m,isCollapsed:p}of d){let b=null,S=null;const B=u.parent===t&&u.isAtStart,z=u.parent===t&&u.isAtEnd;!B&&!z?(b=n.createElement("$marker"),n.insert(b,u)):p&&(S=B?"start":"end"),s.push({name:m,element:b,collapsed:S})}}a=t.getChildren()}else a=[t];r.handleNodes(a);let c=r.getSelectionRange();if(t.is("documentFragment")&&s.length){const d=c?Zt.fromRange(c):null,u={};for(let m=s.length-1;m>=0;m--){const{name:p,element:b,collapsed:S}=s[m],B=!u[p];if(B&&(u[p]=[]),b){const z=n.createPositionAt(b,"before");u[p].push(z),n.remove(b)}else{const z=r.getAffectedRange();if(!z){S&&u[p].push(r.position);continue}S?u[p].push(z[S]):u[p].push(B?z.start:z.end)}}for(const[m,[p,b]]of Object.entries(u))p&&b&&p.root===b.root&&n.addMarker(m,{usingOperation:!0,affectsData:!0,range:new T(p,b)});d&&(c=d.toRange(),d.detach())}c&&(i instanceof Ae?n.setSelection(c):i.setTo(c));const l=r.getAffectedRange()||o.createRange(i.anchor);return r.destroy(),l})}class XD{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 w("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){if(this.schema.isObject(t)){this._handleObject(t);return}let e=this._checkAndAutoParagraphToAllowedPosition(t);if(!e&&(e=this._checkAndSplitToAllowedPosition(t),!e)){this._handleDisallowedNode(t);return}this._appendToFragment(t),this._firstNode||(this._firstNode=t),this._lastNode=t}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const t=Mt.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=t.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=t.toPosition(),t.detach()}_handleObject(t){this._checkAndSplitToAllowedPosition(t)?this._appendToFragment(t):this._tryAutoparagraphing(t)}_handleDisallowedNode(t){t.is("element")?this.handleNodes(t.getChildren()):this._tryAutoparagraphing(t)}_appendToFragment(t){if(!this.schema.checkChild(this.position,t))throw new w("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=Mt.fromPosition(t,"toPrevious")),(!this._affectedEnd||this._affectedEnd.isBefore(t))&&(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Mt.fromPosition(t,"toNext"))}_mergeOnLeft(){const t=this._firstNode;if(!(t instanceof lt)||!this._canMergeLeft(t))return;const e=Mt._createBefore(t);e.stickiness="toNext";const n=Mt.fromPosition(this.position,"toNext");this._affectedStart.isEqual(e)&&(this._affectedStart.detach(),this._affectedStart=Mt._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=Mt._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 lt)||!this._canMergeRight(t))return;const e=Mt._createAfter(t);if(e.stickiness="toNext",!this.position.isEqual(e))throw new w("insertcontent-invalid-insertion-position",this);this.position=P._createAt(e.nodeBefore,"end");const n=Mt.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(e)&&(this._affectedEnd.detach(),this._affectedEnd=Mt._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=Mt._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 lt&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(e,t)}_canMergeRight(t){const e=t.nextSibling;return e instanceof lt&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(t,e)}_tryAutoparagraphing(t){const e=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,e)&&this.schema.checkChild(e,t)&&(e._appendChild(t),this._handleNode(e))}_checkAndAutoParagraphToAllowedPosition(t){if(this.schema.checkChild(this.position.parent,t))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",t))return!1;this._insertPartialFragment();const e=this.writer.createElement("paragraph");return this.writer.insert(e,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=e,this.position=this.writer.createPositionAt(e,0),!0}_checkAndSplitToAllowedPosition(t){const e=this._getAllowedIn(this.position.parent,t);if(!e)return!1;for(e!=this.position.parent&&this._insertPartialFragment();e!=this.position.parent;)if(this.position.isAtStart){const n=this.position.parent;this.position=this.writer.createPositionBefore(n),n.isEmpty&&n.parent===e&&this.writer.remove(n)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const n=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=n,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(t,e){return this.schema.checkChild(t,e)?t:this.schema.isLimit(t)?null:this._getAllowedIn(t.parent,e)}}function ng(o,t,e="auto"){const n=o.getSelectedElement();if(n&&t.schema.isObject(n)&&!t.schema.isInline(n))return e=="before"||e=="after"?t.createRange(t.createPositionAt(n,e)):t.createRangeOn(n);const i=Tt(o.getSelectedBlocks());if(!i)return t.createRange(o.focus);if(i.isEmpty)return t.createRange(t.createPositionAt(i,0));const r=t.createPositionAfter(i);return o.focus.isTouching(r)?t.createRange(r):t.createRange(t.createPositionBefore(i))}function t5(o,t,e,n={}){if(!o.schema.isObject(t))throw new w("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(ng(i,o,n.findOptimalPosition)));const s=Tt(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&&e5(c,t,n.setSelection,a),u})}function e5(o,t,e,n){const i=o.model;if(e=="on"){o.setSelection(t,"on");return}if(e!="after")throw new w("insertobject-invalid-place-parameter-value",i);let r=t.nextSibling;if(i.schema.isInline(t)){o.setSelection(t,"after");return}!(r&&i.schema.checkChild(r,"$text"))&&i.schema.checkChild(t.parent,"paragraph")&&(r=o.createElement("paragraph"),i.schema.setAllowedAttributes(r,n,o),i.insertContent(r,o.createPositionAfter(t))),r&&o.setSelection(r,0)}const n5=' ,.?!:;"-()';function o5(o,t,e={}){const n=o.schema,i=e.direction!="backward",r=e.unit?e.unit:"character",s=!!e.treatEmojiAsSingleUnit,a=t.focus,c=new we({boundaries:a5(a,i),singleCharacters:!0,direction:i?"forward":"backward"}),l={walker:c,schema:n,isForward:i,unit:r,treatEmojiAsSingleUnit:s};let d;for(;d=c.next();){if(d.done)return;const u=i5(l,d.value);if(u){t instanceof Ae?o.change(m=>{m.setSelectionFocus(u)}):t.setFocus(u);return}}}function i5(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"?s5(n,e):r5(n,i,s);if(a==(e?"elementStart":"elementEnd")){if(r.isSelectable(c))return P._createAt(c,e?"after":"before");if(r.checkChild(l,"$text"))return l}else{if(r.isLimit(c)){n.skip(()=>!0);return}if(r.checkChild(l,"$text"))return l}}function r5(o,t,e){const n=o.position.textNode;if(n){const i=n.data;let r=o.position.offset-n.startOffset;for(;jr(i,r)||t=="character"&&Fr(i,r)||e&&vd(i,r);)o.next(),r=o.position.offset-n.startOffset}return o.position}function s5(o,t){let e=o.position.textNode;for(e||(e=t?o.position.nodeAfter:o.position.nodeBefore);e&&e.is("$text");){const n=o.position.offset-e.startOffset;if(l5(e,n,t))e=t?o.position.nodeAfter:o.position.nodeBefore;else{if(c5(e.data,n,t))break;o.next()}}return o.position}function a5(o,t){const e=o.root,n=P._createAt(e,t?"end":0);return t?new T(o,n):new T(n,o)}function c5(o,t,e){const n=t+(e?0:-1);return n5.includes(o.charAt(n))}function l5(o,t,e){return t===(e?o.offsetSize:0)}class d5 extends st(){constructor(){super(),this.markers=new LD,this.document=new PD(this),this.schema=new YE,this._pendingChanges=[],this._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(t=>this.decorate(t)),this.on("applyOperation",(t,e)=>{e[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((t,e)=>{if(e.name==="$marker")return!0}),VE(this),this.document.registerPostFixer(yh),this.on("insertContent",(t,[e,n])=>{t.return=JD(this,e,n)}),this.on("insertObject",(t,[e,n,i])=>{t.return=t5(this,e,n,i)}),this.on("canEditAt",t=>{const e=!this.document.isReadOnly;t.return=e,e||t.stop()})}change(t){try{return this._pendingChanges.length===0?(this._pendingChanges.push({batch:new Rn,callback:t}),this._runPendingChanges()[0]):t(this._currentWriter)}catch(e){w.rethrowUnexpectedError(e,this)}}enqueueChange(t,e){try{t?typeof t=="function"?(e=t,t=new Rn):t instanceof Rn||(t=new Rn(t)):t=new Rn,this._pendingChanges.push({batch:t,callback:e}),this._pendingChanges.length==1&&this._runPendingChanges()}catch(n){w.rethrowUnexpectedError(n,this)}}applyOperation(t){t._execute()}insertContent(t,e,n,...i){const r=zs(e,n);return this.fire("insertContent",[t,r,n,...i])}insertObject(t,e,n,i,...r){const s=zs(e,n);return this.fire("insertObject",[t,s,i,i,...r])}deleteContent(t,e){VD(this,t,e)}modifySelection(t,e){o5(this,t,e)}getSelectedContent(t){return QD(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))if(s.is("$textProxy"))if(i){if(s.data.search(/\S/)!==-1)return!0}else return!0;else return!0;return!1}canEditAt(t){const e=zs(t);return this.fire("canEditAt",[e])}createPositionFromPath(t,e,n){return new P(t,e,n)}createPositionAt(t,e){return P._createAt(t,e)}createPositionAfter(t){return P._createAfter(t)}createPositionBefore(t){return P._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 ie(...t)}createBatch(t){return new Rn(t)}createOperationFromJSON(t){return vD.fromJSON(t,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const t=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){const e=this._pendingChanges[0].batch;this._currentWriter=new jD(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 zs(o,t){if(o)return o instanceof ie||o instanceof Ae?o:o instanceof dn?t||t===0?new ie(o,t):o.is("rootElement")?new ie(o,"in"):new ie(o,"on"):new ie(o)}class u5 extends qe{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(t){this.fire(t.type,t)}}class Mi extends qe{constructor(){super(...arguments),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(t){this.fire(t.type,t)}}class Re{constructor(t){this.document=t}createDocumentFragment(t){return new ln(this.document,t)}createElement(t,e,n){return new ne(this.document,t,e,n)}createText(t){return new ht(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 ne(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){Wt(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 O._createAt(t,e)}createPositionAfter(t){return O._createAfter(t)}createPositionBefore(t){return O._createBefore(t)}createRange(t,e){return new K(t,e)}createRangeOn(t){return K._createOn(t)}createRangeIn(t){return K._createIn(t)}createSelection(...t){return new pe(...t)}}class h5{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 w("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 g5 extends Vt{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)}}class m5 extends st(){constructor(t={}){super();const e=this.constructor,n=t.language||e.defaultConfig&&e.defaultConfig.language;this._context=t.context||new cu({language:n}),this._context._addEditor(this,!t.context);const i=Array.from(e.builtinPlugins||[]);this.config=new td(t,e.defaultConfig),this.config.define("plugins",i),this.config.define(this._context._getEditorConfig()),this.plugins=new au(this,i,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new h5,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new d5,this.on("change:isReadOnly",()=>{this.model.document.isReadOnly=this.isReadOnly});const r=new ox;this.data=new bD(this.model,r),this.editing=new $E(this.model,r),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new AD([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 g5(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(t){throw new w("editor-isreadonly-has-no-setter")}enableReadOnlyMode(t){if(typeof t!="string"&&typeof t!="symbol")throw new w("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 w("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))}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){w.rethrowUnexpectedError(n,this)}}focus(){this.editing.view.focus()}static create(...t){throw new Error("This is an abstract method.")}}function f5(o){if(!Qe(o.updateSourceElement))throw new w("attachtoform-missing-elementapi-interface",o);const t=o.sourceElement;if(p5(t)&&t.form){let e;const n=t.form,i=()=>o.updateSourceElement();Qe(n.submit)&&(e=n.submit,n.submit=()=>{i(),e.apply(n)}),n.addEventListener("submit",i),o.on("destroy",()=>{n.removeEventListener("submit",i),e&&(n.submit=e)})}}function p5(o){return!!o&&o.tagName.toLowerCase()==="textarea"}function Bi(o){class t extends o{setData(n){this.data.set(n)}getData(n){return this.data.get(n)}}return t}{const o=Bi(Object);Bi.setData=o.prototype.setData,Bi.getData=o.prototype.getData}function Ps(o){class t extends o{updateSourceElement(n){if(!this.sourceElement)throw new w("editor-missing-sourceelement",this);const i=this.config.get("updateSourceElementOnDestroy"),r=this.sourceElement instanceof HTMLTextAreaElement;if(!i&&!r){ld(this.sourceElement,"");return}const s=typeof n=="string"?n:this.data.get();ld(this.sourceElement,s)}}return t}Ps.updateSourceElement=Ps(Object).prototype.updateSourceElement;class Ni extends fi{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new te({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(t){if(typeof t!="string")throw new w("pendingactions-add-invalid-message",this);const e=new(st());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 og='<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>',k5='<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>',ig='<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>',b5='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.333 2 .19 2.263a5.899 5.899 0 0 1 1.458.604L14.714 3.4 16.6 5.286l-1.467 1.733c.263.452.468.942.605 1.46L18 8.666v2.666l-2.263.19a5.899 5.899 0 0 1-.604 1.458l1.467 1.733-1.886 1.886-1.733-1.467a5.899 5.899 0 0 1-1.46.605L11.334 18H8.667l-.19-2.263a5.899 5.899 0 0 1-1.458-.604L5.286 16.6 3.4 14.714l1.467-1.733a5.899 5.899 0 0 1-.604-1.458L2 11.333V8.667l2.262-.189a5.899 5.899 0 0 1 .605-1.459L3.4 5.286 5.286 3.4l1.733 1.467a5.899 5.899 0 0 1 1.46-.605L8.666 2h2.666zM10 6.267a3.733 3.733 0 1 0 0 7.466 3.733 3.733 0 0 0 0-7.466z"/></svg>',rg='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m8.636 9.531-2.758 3.94a.5.5 0 0 0 .122.696l3.224 2.284h1.314l2.636-3.736L8.636 9.53zm.288 8.451L5.14 15.396a2 2 0 0 1-.491-2.786l6.673-9.53a2 2 0 0 1 2.785-.49l3.742 2.62a2 2 0 0 1 .491 2.785l-7.269 10.053-2.147-.066z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>',dt={bold:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',cancel:og,caption:k5,check:ig,cog:b5,eraser:rg,history:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11 1a9 9 0 1 1-8.027 13.075l1.128-1.129A7.502 7.502 0 0 0 18.5 10a7.5 7.5 0 1 0-14.962.759l-.745-.746-.76.76A9 9 0 0 1 11 1z"/><path d="M.475 8.17a.75.75 0 0 1 .978.047l.075.082 1.284 1.643 1.681-1.284a.75.75 0 0 1 .978.057l.073.083a.75.75 0 0 1-.057.978l-.083.073-2.27 1.737a.75.75 0 0 1-.973-.052l-.074-.082-1.741-2.23a.75.75 0 0 1 .13-1.052z"/><path d="M11.5 5v4.999l3.196 3.196-1.06 1.06L10.1 10.72l-.1-.113V5z"/></svg>',image:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.66 9.118a.693.693 0 0 1 .956.032l3.65 3.411 2.422-2.238a.695.695 0 0 1 .945 0L17.5 13.6V2.5h-15v11.1l4.16-4.482ZM17.8 1c.652 0 1.2.47 1.2 1.1v12.862c0 .64-.532 1.038-1.184 1.038H2.184C1.532 16 1 15.603 1 14.962V2.1C1 1.47 1.537 1 2.2 1h15.6Zm-5.655 6a2.129 2.129 0 0 1 .157-2.364 2.133 2.133 0 1 1-.157 2.363Z"/></svg>',imageUpload:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.2 1C.536 1 0 1.47 0 2.1v12.863C0 15.603.547 16 1.199 16h6.3c.908-1.19 1.892-2.41 2.8-3.6L6.615 9.15a.694.694 0 0 0-.957-.033L1.5 13.5v-11h15v6c.6.6 1.012.857 1.5 1.5V2.1c0-.63-.55-1.1-1.201-1.1h-15.6Zm11.724 2.805a2.133 2.133 0 0 0-.998.283 2.129 2.129 0 0 0-.992 1.295c-.074.27-.095.55-.057.828a2.136 2.136 0 0 0 1.56 1.783 2.13 2.13 0 0 0 2.612-1.506 2.129 2.129 0 0 0-2.125-2.683Z"/><path d="M15.208 19.011c.436 0 .79-.327.79-.763v-5.4l2.059 2.455a.79.79 0 0 0 1.212-1.015l-3.352-3.995a.79.79 0 0 0-.996-.179.786.786 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017L14.5 12.9v5.3c0 .437.272.811.709.811Z"/></svg>',imageAssetManager:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1C.54 1 0 1.47 0 2.1v12.86c0 .64.448 1.029 1.1 1.039h6.4v-6l-.885-.85a.692.692 0 0 0-.955-.033L1.5 13.5v-11h15V10H18V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.723 2.805a2.129 2.129 0 0 0-1.621.832A2.125 2.125 0 0 0 11.146 7a2.13 2.13 0 0 0 3.905-.512 2.135 2.135 0 0 0-.76-2.244 2.13 2.13 0 0 0-1.367-.44Z"/><path clip-rule="evenodd" d="M19.5 12.5v6.156c0 .224-.192.439-.35.597a.844.844 0 0 1-.597.247H9.834a.844.844 0 0 1-.843-.844v-7.312a.844.844 0 0 1 .843-.844h2.532c.223 0 .476.049.634.207l1 .793h4.5c.224 0 .491.214.65.372.158.158.35.404.35.628ZM18 13h-4.5l-1-1h-2v6H18v-5Z"/></svg>',imageUrl:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_355_284)"><path d="M1.201 1C.54 1 0 1.47 0 2.1v12.863C0 15.603.548 16 1.2 16H8c.022-1.034.222-1.961.783-2.9L9.5 12 6.617 9.15a.694.694 0 0 0-.957-.033L1.5 13.5v-11h15v5.8c.58.188 1.012.43 1.5.8v-7c0-.63-.547-1.1-1.2-1.1H1.202Zm11.723 2.805a2.133 2.133 0 0 0-.996.283 2.131 2.131 0 0 0-.994 1.295 2.136 2.136 0 0 0 1.506 2.611 2.13 2.13 0 0 0 2.61-1.505 2.128 2.128 0 0 0-2.126-2.684Z"/><path d="M16.63 10.294a3.003 3.003 0 0 0-4.142.887l-.117.177a.649.649 0 0 0-.096.493.665.665 0 0 0 .278.417.7.7 0 0 0 .944-.233 1.741 1.741 0 0 1 2.478-.464 1.869 1.869 0 0 1 .476 2.55.634.634 0 0 0-.071.5.648.648 0 0 0 .309.397.628.628 0 0 0 .869-.19l.027-.042a3.226 3.226 0 0 0-.956-4.492Zm-6.061 3.781-.044.065a3.228 3.228 0 0 0 .82 4.404 3.005 3.005 0 0 0 4.275-.799l.13-.196a.626.626 0 0 0 .092-.475.642.642 0 0 0-.268-.402.713.713 0 0 0-.99.26l-.018.028a1.742 1.742 0 0 1-2.477.462 1.87 1.87 0 0 1-.476-2.551l.03-.047a.647.647 0 0 0 .086-.485.66.66 0 0 0-.275-.407l-.04-.027a.609.609 0 0 0-.845.17Z"/><path d="M15.312 13.925c.24-.36.154-.837-.19-1.067-.346-.229-.82-.123-1.059.237l-1.268 1.907c-.239.36-.153.837.192 1.066.345.23.818.124 1.057-.236l1.268-1.907Z"/></g><defs><clipPath id="clip0_355_284"><rect width="20" height="20"/></clipPath></defs></svg>',lowVision:`<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22 2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>
|
|
|
`,textAlternative:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M.91 10.488A.909.909 0 0 0 0 11.4v6.877c0 .505.405.91.91.91h18.178a.909.909 0 0 0 .912-.91V11.4a.91.91 0 0 0-.912-.912H.91Zm2.758 1.5h1.947l2.135 5.7H5.898l-.28-.946H3.601l-.278.945H1.516l2.152-5.7Zm4.947 0h1.801v4.3h2.7v1.4h-4.5v-5.7Zm4.5 0h5.4v1.4h-1.798v4.3h-1.701v-4.3h-1.9v-1.4Zm-8.517 1.457-.614 2.059h1.262l-.648-2.06Z"/><path d="M3.035 0C2.446 0 2 .54 2 1.098V9.5h1.5v-8h13v8H18V1.098C18 .539 17.48 0 16.9 0H3.035Zm10.453 2.61a1.885 1.885 0 0 0-1.442.736 1.894 1.894 0 0 0-.376 1.396 1.89 1.89 0 0 0 1.387 1.58c.485.13 1.004.063 1.439-.187a1.887 1.887 0 0 0-1.008-3.526ZM7.463 7.163a.611.611 0 0 0-.432.154L5.071 9.5h5.119L7.88 7.348a.627.627 0 0 0-.417-.184Zm6.236 1.059a.62.62 0 0 0-.42.164L12.07 9.5h2.969l-.92-1.113a.617.617 0 0 0-.42-.164Z"/></svg>',loupe:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.68 13.74h-.001l4.209 4.208a1 1 0 1 0 1.414-1.414l-4.267-4.268a6 6 0 1 0-1.355 1.474ZM13 9a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"/></svg>',importExport:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 4.5 14 0H3v12.673l.868-1.041c.185-.222.4-.402.632-.54V1.5h8v5h5v7.626a2.24 2.24 0 0 1 1.5.822V4.5ZM14 5V2l3.3 3H14Zm-3.692 12.5c.062.105.133.206.213.303L11.52 19H8v-.876a2.243 2.243 0 0 0 1.82-.624h.488Zm7.518-.657a.75.75 0 0 0-1.152-.96L15.5 17.29V12H14v5.29l-1.174-1.408a.75.75 0 0 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Zm-15.056-.38a.75.75 0 0 1-.096-1.056l2.346-2.815a.95.95 0 0 1 1.46 0l2.346 2.815a.75.75 0 1 1-1.152.96L6.5 14.96V20H5v-5.04l-1.174 1.408a.75.75 0 0 1-1.056.096Z"/></svg>',paragraph:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.5 5.5H7v5h3.5a2.5 2.5 0 1 0 0-5zM5 3h6.5v.025a5 5 0 0 1 0 9.95V13H7v4a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/></svg>',plus:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2a1 1 0 0 0-1 1v6H3a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6V3a1 1 0 0 0-1-1Z"/></svg>',text:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555Zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13Z"/><path d="m12.09 17-.534-1.292.848-1.971.545 1.319L12.113 17h-.023Zm1.142-5.187.545 1.319L15.5 9.13l1.858 4.316h-3.45l.398.965h3.467L18.887 17H20l-3.873-9h-1.254l-1.641 3.813Z"/></svg>',alignBottom:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.239 13.938-2.88-1.663a.75.75 0 0 1 .75-1.3L9 12.067V4.75a.75.75 0 1 1 1.5 0v7.318l1.89-1.093a.75.75 0 0 1 .75 1.3l-2.879 1.663a.752.752 0 0 1-.511.187.752.752 0 0 1-.511-.187zM4.25 17a.75.75 0 1 1 0-1.5h10.5a.75.75 0 0 1 0 1.5H4.25z"/></svg>',alignMiddle:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.75 11.875a.752.752 0 0 1 .508.184l2.883 1.666a.75.75 0 0 1-.659 1.344l-.091-.044-1.892-1.093.001 4.318a.75.75 0 1 1-1.5 0v-4.317l-1.89 1.092a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .51-.187zM15.25 9a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM9.75.375a.75.75 0 0 1 .75.75v4.318l1.89-1.093.092-.045a.75.75 0 0 1 .659 1.344l-2.883 1.667a.752.752 0 0 1-.508.184.752.752 0 0 1-.511-.187L6.359 5.65a.75.75 0 0 1 .75-1.299L9 5.442V1.125a.75.75 0 0 1 .75-.75z"/></svg>',alignTop:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m10.261 7.062 2.88 1.663a.75.75 0 0 1-.75 1.3L10.5 8.933v7.317a.75.75 0 1 1-1.5 0V8.932l-1.89 1.093a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .511-.187.752.752 0 0 1 .511.187zM15.25 4a.75.75 0 1 1 0 1.5H4.75a.75.75 0 0 1 0-1.5h10.5z"/></svg>',alignLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',alignCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>',alignRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>',alignJustify:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',objectLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zm0-3H18v1.5h-4.5zm0-3H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M15.003 7v5.5a1 1 0 0 1-1 1H5.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H6.5V12h6.997V7.5z"/></svg>',objectRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2zm0-9h5v1.5H2zm0 3h5v1.5H2zm0 3h5v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectFullWidth:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18 7v5.5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1zm-1.505.5H3.504V12h12.991V7.5z"/></svg>',objectInline:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectSizeFull:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M18.095 2H1.905C.853 2 0 2.895 0 4v12c0 1.105.853 2 1.905 2h16.19C19.147 18 20 17.105 20 16V4c0-1.105-.853-2-1.905-2zm0 1.5c.263 0 .476.224.476.5v12c0 .276-.213.5-.476.5H1.905a.489.489 0 0 1-.476-.5V4c0-.276.213-.5.476-.5h16.19z"/></svg>',objectSizeLarge:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M13 6H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5h11z"/></svg>',objectSizeSmall:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M7 10H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5h5z"/></svg>',objectSizeMedium:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M10 8H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-6a.5.5 0 0 1 .5-.5h8z"/></svg>',pencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.3 17.37-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506 13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5 9.375 17H19v1.5H8z"/></svg>',pilcrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.999 2H15a1 1 0 0 1 0 2h-1.004v13a1 1 0 1 1-2 0V4H8.999v13a1 1 0 1 1-2 0v-7A4 4 0 0 1 3 6a4 4 0 0 1 3.999-4z"/></svg>',quote:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',threeVerticalDots:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>',dragIndicator:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 3.25a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 3.25a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M5 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M5 16.75a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 16.75a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/></svg>'};var sg=L(4768),Ls={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ls.insert="head",Ls.singleton=!0,R()(sg.Z,Ls),sg.Z.locals;const{threeVerticalDots:ag}=dt,w5={alignLeft:dt.alignLeft,bold:dt.bold,importExport:dt.importExport,paragraph:dt.paragraph,plus:dt.plus,text:dt.text,threeVerticalDots:dt.threeVerticalDots,pilcrow:dt.pilcrow,dragIndicator:dt.dragIndicator};class Os extends G{constructor(t,e){super(t);const n=this.bindTemplate,i=this.t;this.options=e||{},this.set("ariaLabel",i("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Bt,this.keystrokes=new Vt,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new A5(t),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const r=t.uiLanguageDirection==="rtl";this._focusCycler=new fe({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")];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:Ty(this)}}),this._behavior=this.options.shouldGroupWhenFull?new _5(this):new C5(this)}render(){super.render(),this.focusTracker.add(this.element);for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",(t,e)=>{this.focusTracker.add(e.element)}),this.items.on("remove",(t,e)=>{this.focusTracker.remove(e.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(t,e,n){this.items.addMany(this._buildItemsFromConfig(t,e,n))}_buildItemsFromConfig(t,e,n){const i=ou(t),r=n||i.removeItems;return this._cleanItemsConfiguration(i.items,e,r).map(a=>bt(a)?this._createNestedToolbarDropdown(a,e,r):a==="|"?new nu:a==="-"?new Sy:e.create(a)).filter(a=>!!a)}_cleanItemsConfiguration(t,e,n){const i=t.filter((r,s,a)=>r==="|"?!0:n.indexOf(r)!==-1?!1:r==="-"?this.options.shouldGroupWhenFull?!1:!0:!bt(r)&&!e.has(r)?!1:!0);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=this.locale,d=de(l);return i||void 0,d.class="ck-toolbar__nested-toolbar-dropdown",d.buttonView.set({label:i,tooltip:a,withText:!!c}),r!==!1?d.buttonView.icon=w5[r]||r||ag:d.buttonView.withText=!0,Us(d,()=>d.toolbarView._buildItemsFromConfig(s,e,n)),d}}class A5 extends G{constructor(t){super(t),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class C5{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=>n),t.extendTemplate({attributes:{class:[e.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class _5{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._updateFocusCycleableItems.bind(this)),t.children.on("change",this._updateFocusCycleableItems.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)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!nn(this.viewElement)){this.shouldUpdateGroupingOnNextResize=!0;return}const t=this.groupedItems.length;let e;for(;this._areItemsOverflowing;)this._groupLastItem(),e=!0;if(!e&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==t&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const t=this.viewElement,e=this.viewLocale.uiLanguageDirection,n=new J(t.lastChild),i=new J(t);if(!this.cachedPadding){const r=U.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 kt(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 nu),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=de(t);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition=t.uiLanguageDirection==="ltr"?"sw":"se",Us(n,this.groupedItems),n.buttonView.set({label:e("Show more items"),tooltip:!0,tooltipPosition:t.uiLanguageDirection==="rtl"?"se":"sw",icon:ag}),n}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(t=>{this.viewFocusables.add(t)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}class Rs extends G{constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",e.if("isVisible","ck-hidden",n=>!n)],role:"presentation"},children:this.children})}focus(){this.children.first&&this.children.first.focus()}}class cg extends G{constructor(t){super(t),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}class zi extends G{constructor(t,e=new fo){super(t);const n=this.bindTemplate,i=new dg(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 cg));t&&t.focus()}}}var lg=L(179),js={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};js.insert="head",js.singleton=!0,R()(lg.Z,js),lg.Z.locals;class dg extends G{constructor(t){super(t),this._listItemGroupToChangeListeners=new WeakMap;const e=this.bindTemplate;this.focusables=new ce,this.items=this.createCollection(),this.focusTracker=new Bt,this.keystrokes=new Vt,this._focusCycler=new fe({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 zi?this._registerFocusableItemsGroup(t):t instanceof Rs&&this._registerFocusableListItem(t);this.items.on("change",(t,e)=>{for(const n of e.removed)n instanceof zi?this._deregisterFocusableItemsGroup(n):this._deregisterFocusableListItem(n);for(const n of Array.from(e.added).reverse())n instanceof zi?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=typeof e<"u"?e+r:void 0;this._registerFocusableListItem(i,s)});const n=this._getOnGroupItemsChangeCallback(t);this._listItemGroupToChangeListeners.set(t,n),t.items.on("change",n)}_deregisterFocusableItemsGroup(t){for(const e of t.items)this._deregisterFocusableListItem(e);t.items.off("change",this._listItemGroupToChangeListeners.get(t)),this._listItemGroupToChangeListeners.delete(t)}}var ug=L(4791),Fs={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Fs.insert="head",Fs.singleton=!0,R()(ug.Z,Fs),ug.Z.locals;class Pi extends G{constructor(t,e){super(t);const n=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(e),this.arrowView=this._createArrowView(),this.keystrokes=new Vt,this.focusTracker=new Bt,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",n.to("class"),n.if("isVisible","ck-hidden",i=>!i),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(t,e)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),e())}),this.keystrokes.set("arrowleft",(t,e)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),e())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(t){const e=t||new et;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 et,e=t.bindTemplate;return t.icon=ts,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 hg=L(2704),Vs={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Vs.insert="head",Vs.singleton=!0,R()(hg.Z,Vs),hg.Z.locals;var gg=L(1883),Hs={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Hs.insert="head",Hs.singleton=!0,R()(gg.Z,Hs),gg.Z.locals;function de(o,t=eu){const e=typeof t=="function"?new t(o):t,n=new Dy(o),i=new Nn(o,e,n);return e.bind("isEnabled").to(i),e instanceof Pi?e.arrowView.bind("isOn").to(i,"isOpen"):e.bind("isOn").to(i,"isOpen"),v5(i),i}function Us(o,t,e={}){o.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),o.isOpen?mg(o,t,e):o.once("change:isOpen",()=>mg(o,t,e),{priority:"highest"}),e.enableActiveItemFocusOnDropdownOpen&&qs(o,()=>o.toolbarView.items.find(n=>n.isOn))}function mg(o,t,e){const n=o.locale,i=n.t,r=o.toolbarView=new Os(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 ce?r.items.bindTo(s).using(a=>a):r.items.addMany(s),o.panelView.children.add(r),r.items.delegate("execute").to(o)}function Gs(o,t,e={}){o.isOpen?fg(o,t,e):o.once("change:isOpen",()=>fg(o,t,e),{priority:"highest"}),qs(o,()=>o.listView.items.find(n=>n instanceof Rs?n.children.first.isOn:!1))}function fg(o,t,e){const n=o.locale,i=o.listView=new dg(n),r=typeof t=="function"?t():t;i.ariaLabel=e.ariaLabel,i.role=e.role,pg(o,i.items,r,n),o.panelView.children.add(i),i.items.delegate("execute").to(o)}function qs(o,t){o.on("change:isOpen",()=>{if(!o.isOpen)return;const e=t();e&&(typeof e.focus=="function"?e.focus():void 0)},{priority:Qt.low-10})}function v5(o){y5(o),x5(o),E5(o),D5(o),S5(o),T5(o)}function y5(o){o.on("render",()=>{C({emitter:o,activator:()=>o.isOpen,callback:()=>{o.isOpen=!1},contextElements:()=>[o.element,...o.focusTracker._elements]})})}function x5(o){o.on("execute",t=>{t.source instanceof gi||(o.isOpen=!1)})}function E5(o){o.focusTracker.on("change:isFocused",(t,e,n)=>{o.isOpen&&!n&&(o.isOpen=!1)})}function D5(o){o.keystrokes.set("arrowdown",(t,e)=>{o.isOpen&&(o.panelView.focus(),e())}),o.keystrokes.set("arrowup",(t,e)=>{o.isOpen&&(o.panelView.focusLast(),e())})}function S5(o){o.on("change:isOpen",(t,e,n)=>{if(n)return;const i=o.panelView.element;i&&i.contains(U.document.activeElement)&&o.buttonView.focus()})}function T5(o){o.on("change:isOpen",(t,e,n)=>{n&&o.panelView.focus()},{priority:"low"})}function pg(o,t,e,n){t.bindTo(e).using(i=>{if(i.type==="separator")return new cg(n);if(i.type==="group"){const r=new zi(n);return r.set({label:i.label}),pg(o,r.items,i.items,n),r.items.delegate("execute").to(o),r}else if(i.type==="button"||i.type==="switchbutton"){const r=new Rs(n);let s;return i.type==="button"?(s=new et(n),s.extendTemplate({attributes:{"aria-checked":s.bindTemplate.to("isOn")}})):s=new gi(n),s.bind(...Object.keys(i.model)).to(i.model),s.delegate("execute").to(r),r.children.add(s),r}return null})}const No=(o,t,e)=>{const n=new Ey(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},zo=(o,t=0,e=1)=>o>e?e:o<t?t:o,Rt=(o,t=0,e=Math.pow(10,t))=>Math.round(e*o)/e,I5=o=>P5(Ws(o)),Ws=o=>(o[0]==="#"&&(o=o.substring(1)),o.length<6?{r:parseInt(o[0]+o[0],16),g:parseInt(o[1]+o[1],16),b:parseInt(o[2]+o[2],16),a:o.length===4?Rt(parseInt(o[3]+o[3],16)/255,2):1}:{r:parseInt(o.substring(0,2),16),g:parseInt(o.substring(2,4),16),b:parseInt(o.substring(4,6),16),a:o.length===8?Rt(parseInt(o.substring(6,8),16)/255,2):1}),M5=o=>z5(N5(o)),B5=({h:o,s:t,v:e,a:n})=>{const i=(200-t)*e/100;return{h:Rt(o),s:Rt(i>0&&i<200?t*e/100/(i<=100?i:200-i)*100:0),l:Rt(i/2),a:Rt(n,2)}},$s=o=>{const{h:t,s:e,l:n}=B5(o);return`hsl(${t}, ${e}%, ${n}%)`},N5=({h:o,s:t,v:e,a:n})=>{o=o/360*6,t=t/100,e=e/100;const i=Math.floor(o),r=e*(1-t),s=e*(1-(o-i)*t),a=e*(1-(1-o+i)*t),c=i%6;return{r:Rt([e,s,r,r,a,e][c]*255),g:Rt([a,e,e,s,r,r][c]*255),b:Rt([r,r,a,e,e,s][c]*255),a:Rt(n,2)}},Li=o=>{const t=o.toString(16);return t.length<2?"0"+t:t},z5=({r:o,g:t,b:e,a:n})=>{const i=n<1?Li(Rt(n*255)):"";return"#"+Li(o)+Li(t)+Li(e)+i},P5=({r:o,g:t,b:e,a:n})=>{const i=Math.max(o,t,e),r=i-Math.min(o,t,e),s=r?i===o?(t-e)/r:i===t?2+(e-o)/r:4+(o-t)/r:0;return{h:Rt(60*(s<0?s+6:s)),s:Rt(i?r/i*100:0),v:Rt(i/255*100),a:n}},kg=(o,t)=>{if(o===t)return!0;for(const e in o)if(o[e]!==t[e])return!1;return!0},L5=(o,t)=>o.toLowerCase()===t.toLowerCase()?!0:kg(Ws(o),Ws(t)),bg={},wg=o=>{let t=bg[o];return t||(t=document.createElement("template"),t.innerHTML=o,bg[o]=t),t},Zs=(o,t,e)=>{o.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:e}))};let Fn=!1;const Ks=o=>"touches"in o,O5=o=>Fn&&!Ks(o)?!1:(Fn||(Fn=Ks(o)),!0),Ag=(o,t)=>{const e=Ks(t)?t.touches[0]:t,n=o.el.getBoundingClientRect();Zs(o.el,"move",o.getMove({x:zo((e.pageX-(n.left+window.pageXOffset))/n.width),y:zo((e.pageY-(n.top+window.pageYOffset))/n.height)}))},R5=(o,t)=>{const e=t.keyCode;e>40||o.xy&&e<37||e<33||(t.preventDefault(),Zs(o.el,"move",o.getMove({x:e===39?.01:e===37?-.01:e===34?.05:e===33?-.05:e===35?1:e===36?-1:0,y:e===40?.01:e===38?-.01:0},!0)))};class Cg{constructor(t,e,n,i){const r=wg(`<div role="slider" tabindex="0" part="${e}" ${n}><div part="${e}-pointer"></div></div>`);t.appendChild(r.content.cloneNode(!0));const s=t.querySelector(`[part=${e}]`);s.addEventListener("mousedown",this),s.addEventListener("touchstart",this),s.addEventListener("keydown",this),this.el=s,this.xy=i,this.nodes=[s.firstChild,s]}set dragging(t){const e=t?document.addEventListener:document.removeEventListener;e(Fn?"touchmove":"mousemove",this),e(Fn?"touchend":"mouseup",this)}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":if(t.preventDefault(),!O5(t)||!Fn&&t.button!=0)return;this.el.focus(),Ag(this,t),this.dragging=!0;break;case"mousemove":case"touchmove":t.preventDefault(),Ag(this,t);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":R5(this,t);break}}style(t){t.forEach((e,n)=>{for(const i in e)this.nodes[n].style.setProperty(i,e[i])})}}class j5 extends Cg{constructor(t){super(t,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:t}){this.h=t,this.style([{left:`${t/360*100}%`,color:$s({h:t,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${Rt(t)}`)}getMove(t,e){return{h:e?zo(this.h+t.x*360,0,360):360*t.x}}}class F5 extends Cg{constructor(t){super(t,"saturation",'aria-label="Color"',!0)}update(t){this.hsva=t,this.style([{top:`${100-t.v}%`,left:`${t.s}%`,color:$s(t)},{"background-color":$s({h:t.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${Rt(t.s)}%, Brightness ${Rt(t.v)}%`)}getMove(t,e){return{s:e?zo(this.hsva.s+t.x*100,0,100):t.x*100,v:e?zo(this.hsva.v-t.y*100,0,100):Math.round(100-t.y*100)}}}const V5=':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',H5="[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}",U5="[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}",Oi=Symbol("same"),Ys=Symbol("color"),_g=Symbol("hsva"),Qs=Symbol("update"),vg=Symbol("parts"),yg=Symbol("css"),xg=Symbol("sliders");class G5 extends HTMLElement{static get observedAttributes(){return["color"]}get[yg](){return[V5,H5,U5]}get[xg](){return[F5,j5]}get color(){return this[Ys]}set color(t){if(!this[Oi](t)){const e=this.colorModel.toHsva(t);this[Qs](e),this[Ys]=t}}constructor(){super();const t=wg(`<style>${this[yg].join("")}</style>`),e=this.attachShadow({mode:"open"});e.appendChild(t.content.cloneNode(!0)),e.addEventListener("move",this),this[vg]=this[xg].map(n=>new n(e))}connectedCallback(){if(this.hasOwnProperty("color")){const t=this.color;delete this.color,this.color=t}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(t,e,n){const i=this.colorModel.fromAttr(n);this[Oi](i)||(this.color=i)}handleEvent(t){const e=this[_g],n={...e,...t.detail};this[Qs](n);let i;!kg(n,e)&&!this[Oi](i=this.colorModel.fromHsva(n))&&(this[Ys]=i,Zs(this,"color-changed",{value:i}))}[Oi](t){return this.color&&this.colorModel.equal(t,this.color)}[Qs](t){this[_g]=t,this[vg].forEach(e=>e.update(t))}}const q5={defaultColor:"#000",toHsva:I5,fromHsva:({h:o,s:t,v:e})=>M5({h:o,s:t,v:e,a:1}),equal:L5,fromAttr:o=>o};class W5 extends G5{get colorModel(){return q5}}class $5 extends W5{}customElements.define("hex-color-picker",$5);var Eg=L(4257),Js={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Js.insert="head",Js.singleton=!0,R()(Eg.Z,Js),Eg.Z.locals;const Z5=150;class K5 extends G{constructor(t,e={}){super(t),this.set({color:"",_hexColor:""}),this.hexInputRow=this._createInputRow();const n=this.createCollection();e.hideInput||n.add(this.hexInputRow),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker"],tabindex:-1},children:n}),this._config=e,this._debounceColorPickerEvent=Bn(i=>{this.set("color",i),this.fire("colorSelected",{color:this.color})},Z5,{leading:!0}),this.on("set:color",(i,r,s)=>{i.return=Wd(s,this._config.format||"hsl")}),this.on("change:color",()=>{this._hexColor=Xs(this.color)}),this.on("change:_hexColor",()=>{document.activeElement!==this.picker&&this.picker.setAttribute("color",this._hexColor),Xs(this.color)!=Xs(this._hexColor)&&(this.color=this._hexColor)})}render(){if(super.render(),this.picker=U.document.createElement("hex-color-picker"),this.picker.setAttribute("class","hex-color-picker"),this.picker.setAttribute("tabindex","-1"),this._createSlidersView(),this.element){this.hexInputRow.element?this.element.insertBefore(this.picker,this.hexInputRow.element):this.element.appendChild(this.picker);const t=document.createElement("style");t.textContent='[role="slider"]:focus [part$="pointer"] {border: 1px solid #fff;outline: 1px solid var(--ck-color-focus-border);box-shadow: 0 0 0 2px #fff;}',this.picker.shadowRoot.appendChild(t)}this.picker.addEventListener("color-changed",t=>{const n=t.detail.value;this._debounceColorPickerEvent(n)})}focus(){!this._config.hideInput&&(g.isGecko||g.isiOS||g.isSafari)&&this.hexInputRow.children.get(1).focus(),this.slidersView.first.focus()}_createSlidersView(){const n=[...this.picker.shadowRoot.children].filter(i=>i.getAttribute("role")==="slider").map(i=>new Y5(i));this.slidersView=this.createCollection(),n.forEach(i=>{this.slidersView.add(i)})}_createInputRow(){const t=new Q5,e=this._createColorInput();return new J5(this.locale,[t,e])}_createColorInput(){const t=new po(this.locale,No),{t:e}=this.locale;return t.set({label:e("HEX"),class:"color-picker-hex-input"}),t.fieldView.bind("value").to(this,"_hexColor",n=>t.isFocused?t.fieldView.value:n.startsWith("#")?n.substring(1):n),t.fieldView.on("input",()=>{const n=t.fieldView.element.value;if(n){const i=n.trim(),r=i.startsWith("#")?i.substring(1):i;[3,4,6,8].includes(r.length)&&/(([0-9a-fA-F]{2}){3,4}|([0-9a-fA-F]){3,4})/.test(r)&&this._debounceColorPickerEvent("#"+r)}}),t}}function Xs(o){let t=ny(o);return t||(t="#000"),t.length===4&&(t="#"+[t[1],t[1],t[2],t[2],t[3],t[3]].join("")),t.toLowerCase()}class Y5 extends G{constructor(t){super(),this.element=t}focus(){this.element.focus()}}class Q5 extends G{constructor(t){super(t),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker__hash-view"]},children:"#"})}}class J5 extends G{constructor(t,e){super(t),this.children=this.createCollection(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker__row"]},children:this.children})}}class X5 extends st(te){constructor(t){super(t),this.set("isEmpty",!0),this.on("change",()=>{this.set("isEmpty",this.length===0)})}add(t,e){return this.find(n=>n.color===t.color)?this:super.add(t,e)}hasColor(t){return!!this.find(e=>e.color===t)}}const tS='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.209 18.717A8.5 8.5 0 1 1 18.686 9.6h-.008l.002.12a3 3 0 0 1-2.866 2.997h-.268l-.046-.002v.002h-4.791a2 2 0 1 0 0 4 1 1 0 1 1-.128 1.992 8.665 8.665 0 0 1-.372.008Zm-3.918-7.01a1.25 1.25 0 1 0-2.415-.648 1.25 1.25 0 0 0 2.415.647ZM5.723 8.18a1.25 1.25 0 1 0 .647-2.414 1.25 1.25 0 0 0-.647 2.414ZM9.76 6.155a1.25 1.25 0 1 0 .647-2.415 1.25 1.25 0 0 0-.647 2.415Zm4.028 1.759a1.25 1.25 0 1 0 .647-2.415 1.25 1.25 0 0 0-.647 2.415Z"/></svg>';class eS extends G{constructor(t,{colors:e,columns:n,removeButtonLabel:i,documentColorsLabel:r,documentColorsCount:s,colorPickerLabel:a,focusTracker:c,focusables:l}){super(t);const d=this.bindTemplate;this.set("isVisible",!0),this.focusTracker=c,this.items=this.createCollection(),this.colorDefinitions=e,this.columns=n,this.documentColors=new X5,this.documentColorsCount=s,this._focusables=l,this._removeButtonLabel=i,this._colorPickerLabel=a,this._documentColorsLabel=r,this.setTemplate({tag:"div",attributes:{class:["ck-color-grids-fragment",d.if("isVisible","ck-hidden",u=>!u)]},children:this.items}),this.removeColorButtonView=this._createRemoveColorButton(),this.items.add(this.removeColorButtonView)}updateDocumentColors(t,e){const n=t.document,i=this.documentColorsCount;this.documentColors.clear();for(const r of n.getRoots()){const s=t.createRangeIn(r);for(const a of s.getItems())if(a.is("$textProxy")&&a.hasAttribute(e)&&(this._addColorToDocumentColors(a.getAttribute(e)),this.documentColors.length>=i))return}}updateSelectedColors(){const t=this.documentColorsGrid,e=this.staticColorsGrid,n=this.selectedColor;e.selectedColor=n,t&&(t.selectedColor=n)}render(){if(super.render(),this.staticColorsGrid=this._createStaticColorsGrid(),this.items.add(this.staticColorsGrid),this.documentColorsCount){const t=$t.bind(this.documentColors,this.documentColors),e=new fo(this.locale);e.text=this._documentColorsLabel,e.extendTemplate({attributes:{class:["ck","ck-color-grid__label",t.if("isEmpty","ck-hidden")]}}),this.items.add(e),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid)}this._createColorPickerButton(),this._addColorSelectorElementsToFocusTracker(),this.focus()}focus(){this.removeColorButtonView.focus()}destroy(){super.destroy()}addColorPickerButton(){this.colorPickerButtonView&&(this.items.add(this.colorPickerButtonView),this.focusTracker.add(this.colorPickerButtonView.element),this._focusables.add(this.colorPickerButtonView))}_addColorSelectorElementsToFocusTracker(){this.focusTracker.add(this.removeColorButtonView.element),this._focusables.add(this.removeColorButtonView),this.staticColorsGrid&&(this.focusTracker.add(this.staticColorsGrid.element),this._focusables.add(this.staticColorsGrid)),this.documentColorsGrid&&(this.focusTracker.add(this.documentColorsGrid.element),this._focusables.add(this.documentColorsGrid))}_createColorPickerButton(){this.colorPickerButtonView=new et,this.colorPickerButtonView.set({label:this._colorPickerLabel,withText:!0,icon:tS,class:"ck-color-selector__color-picker"}),this.colorPickerButtonView.on("execute",()=>{this.fire("colorPicker:show")})}_createRemoveColorButton(){const t=new et;return t.set({withText:!0,icon:rg,label:this._removeButtonLabel}),t.class="ck-color-selector__remove-color",t.on("execute",()=>{this.fire("execute",{value:null,source:"removeColorButton"})}),t.render(),t}_createStaticColorsGrid(){const t=new Vd(this.locale,{colorDefinitions:this.colorDefinitions,columns:this.columns});return t.on("execute",(e,n)=>{this.fire("execute",{value:n.value,source:"staticColorsGrid"})}),t}_createDocumentColorsGrid(){const t=$t.bind(this.documentColors,this.documentColors),e=new Vd(this.locale,{columns:this.columns});return e.extendTemplate({attributes:{class:t.if("isEmpty","ck-hidden")}}),e.items.bindTo(this.documentColors).using(n=>{const i=new jd;return i.set({color:n.color,hasBorder:n.options&&n.options.hasBorder}),n.label&&i.set({label:n.label,tooltip:!0}),i.on("execute",()=>{this.fire("execute",{value:n.color,source:"documentColorsGrid"})}),i}),this.documentColors.on("change:isEmpty",(n,i,r)=>{r&&(e.selectedColor=null)}),e}_addColorToDocumentColors(t){const e=this.colorDefinitions.find(n=>n.color===t);e?this.documentColors.add(Object.assign({},e)):this.documentColors.add({color:t,label:t,options:{hasBorder:!1}})}}class nS extends G{constructor(t,{focusTracker:e,focusables:n,keystrokes:i,colorPickerViewConfig:r}){super(t),this.items=this.createCollection(),this.focusTracker=e,this.keystrokes=i,this.set("isVisible",!1),this.set("selectedColor",void 0),this._focusables=n,this._colorPickerViewConfig=r;const s=this.bindTemplate,{saveButtonView:a,cancelButtonView:c}=this._createActionButtons();this.saveButtonView=a,this.cancelButtonView=c,this.actionBarView=this._createActionBarView({saveButtonView:a,cancelButtonView:c}),this.setTemplate({tag:"div",attributes:{class:["ck-color-picker-fragment",s.if("isVisible","ck-hidden",l=>!l)]},children:this.items})}render(){super.render();const t=new K5(this.locale,{...this._colorPickerViewConfig});this.colorPickerView=t,this.colorPickerView.render(),this.selectedColor&&(t.color=this.selectedColor),this.listenTo(this,"change:selectedColor",(e,n,i)=>{t.color=i}),this.items.add(this.colorPickerView),this.items.add(this.actionBarView),this._addColorPickersElementsToFocusTracker(),this._stopPropagationOnArrowsKeys(),this._executeOnEnterPress(),this._executeUponColorChange()}destroy(){super.destroy()}focus(){this.colorPickerView.focus()}_executeOnEnterPress(){this.keystrokes.set("enter",t=>{this.isVisible&&this.focusTracker.focusedElement!==this.cancelButtonView.element&&(this.fire("execute",{value:this.selectedColor}),t.stopPropagation(),t.preventDefault())})}_stopPropagationOnArrowsKeys(){const t=e=>e.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}_addColorPickersElementsToFocusTracker(){for(const e of this.colorPickerView.slidersView)this.focusTracker.add(e.element),this._focusables.add(e);const t=this.colorPickerView.hexInputRow.children.get(1);t.element&&(this.focusTracker.add(t.element),this._focusables.add(t)),this.focusTracker.add(this.saveButtonView.element),this._focusables.add(this.saveButtonView),this.focusTracker.add(this.cancelButtonView.element),this._focusables.add(this.cancelButtonView)}_createActionBarView({saveButtonView:t,cancelButtonView:e}){const n=new G,i=this.createCollection();return i.add(t),i.add(e),n.setTemplate({tag:"div",attributes:{class:["ck","ck-color-selector_action-bar"]},children:i}),n}_createActionButtons(){const t=this.locale,e=t.t,n=new et(t),i=new et(t);return n.set({icon:ig,class:"ck-button-save",type:"button",withText:!1,label:e("Accept")}),i.set({icon:og,class:"ck-button-cancel",type:"button",withText:!1,label:e("Cancel")}),n.on("execute",()=>{this.fire("execute",{source:"colorPickerSaveButton",value:this.selectedColor})}),i.on("execute",()=>{this.fire("colorPicker:cancel")}),{saveButtonView:n,cancelButtonView:i}}_executeUponColorChange(){this.colorPickerView.on("colorSelected",(t,e)=>{this.fire("execute",{value:e.color,source:"colorPicker"}),this.set("selectedColor",e.color)})}}var Dg=L(6306),ta={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ta.insert="head",ta.singleton=!0,R()(Dg.Z,ta),Dg.Z.locals;class oS extends G{constructor(t,{colors:e,columns:n,removeButtonLabel:i,documentColorsLabel:r,documentColorsCount:s,colorPickerLabel:a,colorPickerViewConfig:c}){super(t),this.items=this.createCollection(),this.focusTracker=new Bt,this.keystrokes=new Vt,this._focusables=new ce,this._colorPickerViewConfig=c,this._focusCycler=new fe({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.colorGridsFragmentView=new eS(t,{colors:e,columns:n,removeButtonLabel:i,documentColorsLabel:r,documentColorsCount:s,colorPickerLabel:a,focusTracker:this.focusTracker,focusables:this._focusables}),this.colorPickerFragmentView=new nS(t,{focusables:this._focusables,focusTracker:this.focusTracker,keystrokes:this.keystrokes,colorPickerViewConfig:c}),this.set("_isColorGridsFragmentVisible",!0),this.set("_isColorPickerFragmentVisible",!1),this.set("selectedColor",void 0),this.colorGridsFragmentView.bind("isVisible").to(this,"_isColorGridsFragmentVisible"),this.colorPickerFragmentView.bind("isVisible").to(this,"_isColorPickerFragmentVisible"),this.on("change:selectedColor",(l,d,u)=>{this.colorGridsFragmentView.set("selectedColor",u),this.colorPickerFragmentView.set("selectedColor",u)}),this.colorGridsFragmentView.on("change:selectedColor",(l,d,u)=>{this.set("selectedColor",u)}),this.colorPickerFragmentView.on("change:selectedColor",(l,d,u)=>{this.set("selectedColor",u)}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-selector"]},children:this.items})}render(){super.render(),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}appendUI(){this._appendColorGridsFragment(),this._colorPickerViewConfig&&this._appendColorPickerFragment()}showColorPickerFragment(){!this.colorPickerFragmentView.colorPickerView||this._isColorPickerFragmentVisible||(this._isColorPickerFragmentVisible=!0,this.colorPickerFragmentView.focus(),this._isColorGridsFragmentVisible=!1)}showColorGridsFragment(){this._isColorGridsFragmentVisible||(this._isColorGridsFragmentVisible=!0,this.colorGridsFragmentView.focus(),this._isColorPickerFragmentVisible=!1)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}updateDocumentColors(t,e){this.colorGridsFragmentView.updateDocumentColors(t,e)}updateSelectedColors(){this.colorGridsFragmentView.updateSelectedColors()}_appendColorGridsFragment(){this.items.length||(this.items.add(this.colorGridsFragmentView),this.colorGridsFragmentView.delegate("execute").to(this),this.colorGridsFragmentView.delegate("colorPicker:show").to(this))}_appendColorPickerFragment(){this.items.length!==2&&(this.items.add(this.colorPickerFragmentView),this.colorGridsFragmentView.colorPickerButtonView&&this.colorGridsFragmentView.colorPickerButtonView.on("execute",()=>{this.showColorPickerFragment()}),this.colorGridsFragmentView.addColorPickerButton(),this.colorPickerFragmentView.delegate("execute").to(this),this.colorPickerFragmentView.delegate("colorPicker:cancel").to(this))}}class iS{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(ea(t),{callback:e,originalName:t})}create(t){if(!this.has(t))throw new w("componentfactory-item-missing",this,{name:t});return this._components.get(ea(t)).callback(this.editor.locale)}has(t){return this._components.has(ea(t))}}function ea(o){return String(o).toLowerCase()}var Sg=L(4460),na={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};na.insert="head",na.singleton=!0,R()(Sg.Z,na),Sg.Z.locals;const Tg=uo("px"),Ig=U.document.body,rS={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}};class jt extends G{constructor(t){super(t);const e=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class",void 0),this._pinWhenIsVisibleCallback=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",e.to("position",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",Tg),left:e.to("left",Tg)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(t){this.show();const e=jt.defaultPositions,n=Object.assign({},{element:this.element,positions:[e.southArrowNorth,e.southArrowNorthMiddleWest,e.southArrowNorthMiddleEast,e.southArrowNorthWest,e.southArrowNorthEast,e.northArrowSouth,e.northArrowSouthMiddleWest,e.northArrowSouthMiddleEast,e.northArrowSouthWest,e.northArrowSouthEast,e.viewportStickyNorth],limiter:Ig,fitInViewport:!0},t),i=jt._getOptimalPosition(n)||rS,r=parseInt(i.left),s=parseInt(i.top),a=i.name,c=i.config||{},{withArrow:l=!0}=c;this.top=s,this.left=r,this.position=a,this.withArrow=l}pin(t){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(t):this._stopPinning()},this._startPinning(t),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(t){this.attachTo(t);const e=oa(t.target),n=t.limiter?oa(t.limiter):Ig;this.listenTo(U.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(U.window,"resize",()=>{this.attachTo(t)})}_stopPinning(){this.stopListening(U.document,"scroll"),this.stopListening(U.window,"resize")}}jt.arrowSideOffset=25,jt.arrowHeightOffset=10,jt.stickyVerticalOffset=20,jt._getOptimalPosition=Pr,jt.defaultPositions=Mg();function oa(o){return en(o)?o:ci(o)?o.commonAncestorContainer:typeof o=="function"?oa(o()):null}function Mg(o={}){const{sideOffset:t=jt.arrowSideOffset,heightOffset:e=jt.arrowHeightOffset,stickyVerticalOffset:n=jt.stickyVerticalOffset,config:i}=o;return{northWestArrowSouthWest:(a,c)=>({top:r(a,c),left:a.left-t,name:"arrow_sw",...i&&{config:i}}),northWestArrowSouthMiddleWest:(a,c)=>({top:r(a,c),left:a.left-c.width*.25-t,name:"arrow_smw",...i&&{config:i}}),northWestArrowSouth:(a,c)=>({top:r(a,c),left:a.left-c.width/2,name:"arrow_s",...i&&{config:i}}),northWestArrowSouthMiddleEast:(a,c)=>({top:r(a,c),left:a.left-c.width*.75+t,name:"arrow_sme",...i&&{config:i}}),northWestArrowSouthEast:(a,c)=>({top:r(a,c),left:a.left-c.width+t,name:"arrow_se",...i&&{config:i}}),northArrowSouthWest:(a,c)=>({top:r(a,c),left:a.left+a.width/2-t,name:"arrow_sw",...i&&{config:i}}),northArrowSouthMiddleWest:(a,c)=>({top:r(a,c),left:a.left+a.width/2-c.width*.25-t,name:"arrow_smw",...i&&{config:i}}),northArrowSouth:(a,c)=>({top:r(a,c),left:a.left+a.width/2-c.width/2,name:"arrow_s",...i&&{config:i}}),northArrowSouthMiddleEast:(a,c)=>({top:r(a,c),left:a.left+a.width/2-c.width*.75+t,name:"arrow_sme",...i&&{config:i}}),northArrowSouthEast:(a,c)=>({top:r(a,c),left:a.left+a.width/2-c.width+t,name:"arrow_se",...i&&{config:i}}),northEastArrowSouthWest:(a,c)=>({top:r(a,c),left:a.right-t,name:"arrow_sw",...i&&{config:i}}),northEastArrowSouthMiddleWest:(a,c)=>({top:r(a,c),left:a.right-c.width*.25-t,name:"arrow_smw",...i&&{config:i}}),northEastArrowSouth:(a,c)=>({top:r(a,c),left:a.right-c.width/2,name:"arrow_s",...i&&{config:i}}),northEastArrowSouthMiddleEast:(a,c)=>({top:r(a,c),left:a.right-c.width*.75+t,name:"arrow_sme",...i&&{config:i}}),northEastArrowSouthEast:(a,c)=>({top:r(a,c),left:a.right-c.width+t,name:"arrow_se",...i&&{config:i}}),southWestArrowNorthWest:a=>({top:s(a),left:a.left-t,name:"arrow_nw",...i&&{config:i}}),southWestArrowNorthMiddleWest:(a,c)=>({top:s(a),left:a.left-c.width*.25-t,name:"arrow_nmw",...i&&{config:i}}),southWestArrowNorth:(a,c)=>({top:s(a),left:a.left-c.width/2,name:"arrow_n",...i&&{config:i}}),southWestArrowNorthMiddleEast:(a,c)=>({top:s(a),left:a.left-c.width*.75+t,name:"arrow_nme",...i&&{config:i}}),southWestArrowNorthEast:(a,c)=>({top:s(a),left:a.left-c.width+t,name:"arrow_ne",...i&&{config:i}}),southArrowNorthWest:a=>({top:s(a),left:a.left+a.width/2-t,name:"arrow_nw",...i&&{config:i}}),southArrowNorthMiddleWest:(a,c)=>({top:s(a),left:a.left+a.width/2-c.width*.25-t,name:"arrow_nmw",...i&&{config:i}}),southArrowNorth:(a,c)=>({top:s(a),left:a.left+a.width/2-c.width/2,name:"arrow_n",...i&&{config:i}}),southArrowNorthMiddleEast:(a,c)=>({top:s(a),left:a.left+a.width/2-c.width*.75+t,name:"arrow_nme",...i&&{config:i}}),southArrowNorthEast:(a,c)=>({top:s(a),left:a.left+a.width/2-c.width+t,name:"arrow_ne",...i&&{config:i}}),southEastArrowNorthWest:a=>({top:s(a),left:a.right-t,name:"arrow_nw",...i&&{config:i}}),southEastArrowNorthMiddleWest:(a,c)=>({top:s(a),left:a.right-c.width*.25-t,name:"arrow_nmw",...i&&{config:i}}),southEastArrowNorth:(a,c)=>({top:s(a),left:a.right-c.width/2,name:"arrow_n",...i&&{config:i}}),southEastArrowNorthMiddleEast:(a,c)=>({top:s(a),left:a.right-c.width*.75+t,name:"arrow_nme",...i&&{config:i}}),southEastArrowNorthEast:(a,c)=>({top:s(a),left:a.right-c.width+t,name:"arrow_ne",...i&&{config:i}}),westArrowEast:(a,c)=>({top:a.top+a.height/2-c.height/2,left:a.left-c.width-e,name:"arrow_e",...i&&{config:i}}),eastArrowWest:(a,c)=>({top:a.top+a.height/2-c.height/2,left:a.right+e,name:"arrow_w",...i&&{config:i}}),viewportStickyNorth:(a,c,l,d)=>{const u=d||l;return!a.getIntersection(u)||u.height-a.height>n?null:{top:u.top+n,left:a.left+a.width/2-c.width/2,name:"arrowless",config:{withArrow:!1,...i}}}};function r(a,c){return a.top-c.height-e}function s(a){return a.bottom+e}}var Bg=L(3888),ia={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ia.insert="head",ia.singleton=!0,R()(Bg.Z,ia),Bg.Z.locals;const Ng="ck-tooltip";class Lt extends Xt(){constructor(t){if(super(),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver=null,Lt._editors.add(t),Lt._instance)return Lt._instance;Lt._instance=this,this.tooltipTextView=new G(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 jt(t.locale),this.balloonPanelView.class=Ng,this.balloonPanelView.content.add(this.tooltipTextView),this._pinTooltipDebounced=Bn(this._pinTooltip,600),this.listenTo(U.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(U.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(U.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(U.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(U.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(t){const e=t.ui.view&&t.ui.view.body;Lt._editors.delete(t),this.stopListening(t.ui),e&&e.has(this.balloonPanelView)&&e.remove(this.balloonPanelView),Lt._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),Lt._instance=null)}static getPositioningFunctions(t){const e=Lt.defaultBalloonPositions;return{s:[e.southArrowNorth,e.southArrowNorthEast,e.southArrowNorthWest],n:[e.northArrowSouth],e:[e.eastArrowWest],w:[e.westArrowEast],sw:[e.southArrowNorthEast],se:[e.southArrowNorthWest]}[t]}_onEnterOrFocus(t,{target:e}){const n=ra(e);n&&n!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(n,sS(n)))}_onLeaveOrBlur(t,{target:e,relatedTarget:n}){if(t.name==="mouseleave"){if(!en(e)||this._currentElementWithTooltip&&e!==this._currentElementWithTooltip)return;const i=ra(e),r=ra(n);i&&i!==r&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&e!==this._currentElementWithTooltip)return;this._unpinTooltip()}}_onScroll(t,{target:e}){this._currentElementWithTooltip&&(e.contains(this.balloonPanelView.element)&&e.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(t,{text:e,position:n,cssClass:i}){const r=Tt(Lt._editors.values()).ui.view.body;r.has(this.balloonPanelView)||r.add(this.balloonPanelView),this.tooltipTextView.text=e,this.balloonPanelView.pin({target:t,positions:Lt.getPositioningFunctions(n)}),this._resizeObserver=new kt(t,()=>{nn(t)||this._unpinTooltip()}),this.balloonPanelView.class=[Ng,i].filter(s=>s).join(" ");for(const s of Lt._editors)this.listenTo(s.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=t,this._currentTooltipPosition=n}_unpinTooltip(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const t of Lt._editors)this.stopListening(t.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy()}_updateTooltipPosition(){if(!nn(this._currentElementWithTooltip)){this._unpinTooltip();return}this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:Lt.getPositioningFunctions(this._currentTooltipPosition)})}}Lt.defaultBalloonPositions=Mg({heightOffset:5,sideOffset:13}),Lt._editors=new Set,Lt._instance=null;function ra(o){return en(o)?o.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}function sS(o){return{text:o.dataset.ckeTooltipText,position:o.dataset.ckeTooltipPosition||"s",cssClass:o.dataset.ckeTooltipClass||""}}var aS="Expected a function";function cS(o,t,e){var n=!0,i=!0;if(typeof o!="function")throw new TypeError(aS);return bt(e)&&(n="leading"in e?!!e.leading:n,i="trailing"in e?!!e.trailing:i),Bn(o,t,{leading:n,maxWait:t,trailing:i})}const Po=cS,lS=`<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>
|
|
|
`,dS=53,uS=10,hS=50,gS=350,mS="Powered by";class fS extends Xt(){constructor(t){super(),this.editor=t,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=Po(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")&&Mv(t.config.get("licenseKey"))==="VALID"||t.ui.view&&(t.ui.focusTracker.on("change:isFocused",(n,i,r)=>{this._updateLastFocusedEditableElement(),r?this._showBalloon():this._hideBalloon()}),t.ui.focusTracker.on("change:focusedElement",(n,i,r)=>{this._updateLastFocusedEditableElement(),r&&this._showBalloon()}),t.ui.on("update",()=>{this._showBalloonThrottled()}))}_createBalloonView(){const t=this.editor,e=this._balloonView=new jt,n=Pg(t),i=new pS(t.locale,n.label);e.content.add(i),e.set({class:"ck-powered-by-balloon"}),t.ui.view.body.add(e),t.ui.focusTracker.add(e.element),this._balloonView=e}_showBalloon(){if(!this._lastFocusedEditableElement)return;const t=kS(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){this._lastFocusedEditableElement=null;return}const i=Array.from(t.ui.getEditableElementsNames()).map(r=>t.ui.getEditableElement(r));i.includes(n)?this._lastFocusedEditableElement=n:this._lastFocusedEditableElement=i[0]}}class pS extends G{constructor(t,e){super(t);const n=new ze,i=this.bindTemplate;n.set({content:lS,isColorInherited:!1}),n.extendTemplate({attributes:{style:{width:dS+"px",height:uS+"px"}}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-powered-by"],"aria-hidden":!0},children:[{tag:"a",attributes:{href:"https://ckeditor.com/?utm_source=ckeditor&utm_medium=referral&utm_campaign=701Dn000000hVgmIAE_powered_by_ckeditor_logo",target:"_blank",tabindex:"-1"},children:[...e?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[e]}]:[],n],on:{dragstart:i.to(r=>r.preventDefault())}}]})}}function kS(o,t){const e=Pg(o),n=e.side==="right"?bS(t,e):wS(t,e);return{target:t,positions:[n]}}function bS(o,t){return zg(o,t,(e,n)=>e.left+e.width-n.width-t.horizontalOffset)}function wS(o,t){return zg(o,t,e=>e.left+t.horizontalOffset)}function zg(o,t,e){return(n,i)=>{const r=new J(o);if(r.width<gS||r.height<hS)return null;let s;t.position==="inside"?s=r.bottom-i.height:s=r.bottom-i.height/2,s-=t.verticalOffset;const a=e(r,i),l=n.clone().moveTo(a,s).getIntersection(i.clone().moveTo(a,s)).getVisible();return!l||l.getArea()<i.getArea()?null:{top:s,left:a,name:`position_${t.position}-side_${t.side}`,config:{withArrow:!1}}}}function Pg(o){const t=o.config.get("ui.poweredBy"),e=t&&t.position||"border";return{position:e,label:mS,verticalOffset:e==="inside"?5:0,horizontalOffset:5,side:o.locale.contentLanguageDirection==="ltr"?"right":"left",...t}}var Lg=L(3290),sa={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};sa.insert="head",sa.singleton=!0,R()(Lg.Z,sa),Lg.Z.locals;var Ri;(function(o){o.POLITE="polite",o.ASSERTIVE="assertive"})(Ri||(Ri={}));class AS{constructor(t){this.editor=t}announce(t,e,n=Ri.POLITE){const i=this.editor;this.view||(this.view=new CS(i.locale),i.ui.view.body.add(this.view));let r=this.view.regionViews.find(s=>s.regionName===t);r||(r=new _S(this.view.locale),this.view.regionViews.add(r)),r.set({regionName:t,text:e,politeness:n})}}class CS extends G{constructor(t){super(t),this.regionViews=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-aria-live-announcer"]},children:this.regionViews})}}class _S extends G{constructor(t){super(t);const e=this.bindTemplate;this.set("regionName",""),this.set("text",""),this.set("politeness",Ri.POLITE),this.setTemplate({tag:"div",attributes:{role:"region","data-region":e.to("regionName"),"aria-live":e.to("politeness")},children:[{text:e.to("text")}]})}}class vS extends st(){constructor(t){super(),this.isReady=!1,this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[];const e=t.editing.view;this.editor=t,this.componentFactory=new iS(t),this.focusTracker=new Bt,this.tooltipManager=new Lt(t),this.poweredBy=new fS(t),this.ariaLiveAnnouncer=new AS(t),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",()=>{this.isReady=!0}),this.listenTo(e.document,"layoutChanged",this.update.bind(this)),this.listenTo(e,"scrollToTheSelection",this._handleScrollToTheSelection.bind(this)),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor),this.poweredBy.destroy();for(const t of this._editableElementsMap.values())t.ckeditorInstance=null,this.editor.keystrokes.stopListening(t);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(t,e){this._editableElementsMap.set(t,e),e.ckeditorInstance||(e.ckeditorInstance=this.editor),this.focusTracker.add(e);const n=()=>{this.editor.editing.view.getDomRoot(t)||this.editor.keystrokes.listenTo(e)};this.isReady?n():this.once("ready",n)}removeEditableElement(t){const e=this._editableElementsMap.get(t);e&&(this._editableElementsMap.delete(t),this.editor.keystrokes.stopListening(e),this.focusTracker.remove(e),e.ckeditorInstance=null)}getEditableElement(t="main"){return this._editableElementsMap.get(t)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(t,e={}){t.isRendered?(this.focusTracker.add(t.element),this.editor.keystrokes.listenTo(t.element)):t.once("render",()=>{this.focusTracker.add(t.element),this.editor.keystrokes.listenTo(t.element)}),this._focusableToolbarDefinitions.push({toolbarView:t,options:e})}get _editableElements(){return this._editableElementsMap}_readViewportOffsetFromConfig(){const t=this.editor,e=t.config.get("ui.viewportOffset");if(e)return e;const n=t.config.get("toolbar.viewportTopOffset");return n?{top:n}:{top:0}}_initFocusTracking(){const t=this.editor,e=t.editing.view;let n,i;t.keystrokes.set("Alt+F10",(r,s)=>{const a=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(a)&&!Array.from(e.domRoots.values()).includes(a)&&(n=a);const c=this._getCurrentFocusedToolbarDefinition();(!c||!i)&&(i=this._getFocusableCandidateToolbarDefinitions());for(let l=0;l<i.length;l++){const d=i.shift();if(i.push(d),d!==c&&this._focusFocusableCandidateToolbar(d)){c&&c.options.afterBlur&&c.options.afterBlur();break}}s()}),t.keystrokes.set("Esc",(r,s)=>{const a=this._getCurrentFocusedToolbarDefinition();a&&(n?(n.focus(),n=null):t.editing.view.focus(),a.options.afterBlur&&a.options.afterBlur(),s())})}_getFocusableCandidateToolbarDefinitions(){const t=[];for(const e of this._focusableToolbarDefinitions){const{toolbarView:n,options:i}=e;(nn(n.element)||i.beforeFocus)&&t.push(e)}return t.sort((e,n)=>Og(e)-Og(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(),nn(e.element)?(e.focus(),!0):!1}_handleScrollToTheSelection(t,e){const n={top:0,bottom:0,left:0,right:0,...this.viewportOffset};e.viewportOffset.top+=n.top,e.viewportOffset.bottom+=n.bottom,e.viewportOffset.left+=n.left,e.viewportOffset.right+=n.right}}function Og(o){const{toolbarView:t,options:e}=o;let n=10;return nn(t.element)&&n--,e.isContextual&&n--,n}var Rg=L(9847),aa={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};aa.insert="head",aa.singleton=!0,R()(Rg.Z,aa),Rg.Z.locals;class yS extends G{constructor(t){super(t),this.body=new Kv(t)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class xS extends yS{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 fo;return e.text=t("Rich Text Editor"),e.extendTemplate({attributes:{class:"ck-voice-label"}}),e}}class ES extends G{constructor(t,e,n){super(t),this.name=null,this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:t.contentLanguage,dir:t.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=n,this._hasExternalElement=!!this._editableElement,this._editingView=e}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}get hasExternalElement(){return this._hasExternalElement}_updateIsFocusedClasses(){const t=this._editingView;t.isRenderingInProgress?n(this):e(this);function e(i){t.change(r=>{const s=t.document.getRoot(i.name);r.addClass(i.isFocused?"ck-focused":"ck-blurred",s),r.removeClass(i.isFocused?"ck-blurred":"ck-focused",s)})}function n(i){t.once("change:isRenderingInProgress",(r,s,a)=>{a?n(i):e(i)})}}}class DS extends ES{constructor(t,e,n,i={}){super(t,e,n);const r=t.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=i.label||(()=>r("Editor editing area: %0",this.name))}render(){super.render();const t=this._editingView;t.change(e=>{const n=t.document.getRoot(this.name);e.setAttribute("aria-label",this._generateLabel(this),n)})}}var jg=L(1874),ca={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ca.insert="head",ca.singleton=!0,R()(jg.Z,ca),jg.Z.locals;class Fg extends fi{static get pluginName(){return"Notification"}init(){this.on("show:warning",(t,e)=>{window.alert(e.message)},{priority:"lowest"})}showSuccess(t,e={}){this._showNotification({message:t,type:"success",namespace:e.namespace,title:e.title})}showInfo(t,e={}){this._showNotification({message:t,type:"info",namespace:e.namespace,title:e.title})}showWarning(t,e={}){this._showNotification({message:t,type:"warning",namespace:e.namespace,title:e.title})}_showNotification(t){const e=t.namespace?`show:${t.type}:${t.namespace}`:`show:${t.type}`;this.fire(e,{message:t.message,type:t.type,title:t.title||""})}}class la extends st(){constructor(t,e){super(),e&&Zu(this,e),t&&this.set(t)}}const SS='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>',TS='<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>';var Vg=L(7592),da={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};da.insert="head",da.singleton=!0,R()(Vg.Z,da),Vg.Z.locals;var Hg=L(6356),ua={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ua.insert="head",ua.singleton=!0,R()(Hg.Z,ua),Hg.Z.locals;const ji=uo("px");class Fi extends M{static get pluginName(){return"ContextualBalloon"}constructor(t){super(t),this._viewToStack=new Map,this._idToStack=new Map,this._view=null,this._rotatorView=null,this._fakePanelsView=null,this.positionLimiter=()=>{const e=this.editor.editing.view,i=e.document.selection.editableElement;return i?e.domConverter.mapViewToDom(i.root):null},this.set("visibleView",null),this.set("_numberOfStacks",0),this.set("_singleViewMode",!1)}destroy(){super.destroy(),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy()}get view(){return this._view||this._createPanelView(),this._view}hasView(t){return Array.from(this._viewToStack.keys()).includes(t)}add(t){if(this._view||this._createPanelView(),this.hasView(t.view))throw new w("contextualballoon-add-view-exist",[this,t]);const e=t.stackId||"main";if(!this._idToStack.has(e)){this._idToStack.set(e,new Map([[t.view,t]])),this._viewToStack.set(t.view,this._idToStack.get(e)),this._numberOfStacks=this._idToStack.size,(!this._visibleStack||t.singleViewMode)&&this.showStack(e);return}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 w("contextualballoon-remove-view-not-exist",[this,t]);const e=this._viewToStack.get(t);this._singleViewMode&&this.visibleView===t&&(this._singleViewMode=!1),this.visibleView===t&&(e.size===1?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(e.values())[e.size-2])),e.size===1?(this._idToStack.delete(this._getStackId(e)),this._numberOfStacks=this._idToStack.size):e.delete(t),this._viewToStack.delete(t)}updatePosition(t){t&&(this._visibleStack.get(this.visibleView).position=t),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(t){this.visibleStack=t;const e=this._idToStack.get(t);if(!e)throw new w("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==e&&this._showView(Array.from(e.values()).pop())}_createPanelView(){this._view=new jt(this.editor.locale),this.editor.ui.view.body.add(this._view),this.editor.ui.focusTracker.add(this._view.element),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(t){return Array.from(this._idToStack.entries()).find(n=>n[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 IS(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 MS(this.editor.locale,this.view);return t.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(e,n)=>!n&&e>=2?Math.min(e-1,2):0),t.listenTo(this.view,"change:top",()=>t.updatePosition()),t.listenTo(this.view,"change:left",()=>t.updatePosition()),this.editor.ui.view.body.add(t),t}_showView({view:t,balloonClassName:e="",withArrow:n=!0,singleViewMode:i=!1}){this.view.class=e,this.view.withArrow=n,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),i&&(this._singleViewMode=!0)}_getBalloonPosition(){let t=Array.from(this._visibleStack.values()).pop().position;return t&&(t.limiter||(t=Object.assign({},t,{limiter:this.positionLimiter})),t=Object.assign({},t,{viewportOffsetConfig:this.editor.ui.viewportOffset})),t}}class IS extends G{constructor(t){super(t);const e=t.t,n=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new Bt,this.buttonPrevView=this._createButtonView(e("Previous"),SS),this.buttonNextView=this._createButtonView(e("Next"),TS),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 et(this.locale);return n.set({label:t,icon:e,tooltip:!0}),n}}class MS extends G{constructor(t,e){super(t);const n=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=e,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",n.to("numberOfPanels",i=>i?"":"ck-hidden")],style:{top:n.to("top",ji),left:n.to("left",ji),width:n.to("width",ji),height:n.to("height",ji)}},children:this.content}),this.on("change:numberOfPanels",(i,r,s,a)=>{s>a?this._addPanels(s-a):this._removePanels(a-s),this.updatePosition()})}_addPanels(t){for(;t--;){const e=new G;e.setTemplate({tag:"div"}),this.content.add(e),this.registerChild(e)}}_removePanels(t){for(;t--;){const e=this.content.last;this.content.remove(e),this.deregisterChild(e),e.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:t,left:e}=this._balloonPanelView,{width:n,height:i}=new J(this._balloonPanelView.element);Object.assign(this,{top:t,left:e,width:n,height:i})}}}var Ug=L(3707),ha={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ha.insert="head",ha.singleton=!0,R()(Ug.Z,ha),Ug.Z.locals;const Vn=uo("px");class BS extends G{constructor(t){super(t);const e=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheBottomOfLimiter",!1),this.set("_stickyTopOffset",null),this.set("_stickyBottomOffset",null),this.content=this.createCollection(),this._contentPanelPlaceholder=new $t({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:e.to("isSticky",n=>n?"block":"none"),height:e.to("isSticky",n=>n?Vn(this._contentPanelRect.height):null)}}}).render(),this._contentPanel=new $t({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?Vn(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:e.to("_stickyTopOffset",n=>n&&Vn(n)),bottom:e.to("_stickyBottomOffset",n=>n&&Vn(n)),marginLeft:e.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this.checkIfShouldBeSticky(),this.listenTo(U.document,"scroll",()=>{this.checkIfShouldBeSticky()},{useCapture:!0}),this.listenTo(this,"change:isActive",()=>{this.checkIfShouldBeSticky()})}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive){this._unstick();return}const t=new J(this.limiterElement);let e=t.getVisible();if(e){const n=new J(U.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=Vn(-U.window.scrollX)}_stickToBottomOfLimiter(t){this.isSticky=!0,this._isStickyToTheBottomOfLimiter=!0,this._stickyTopOffset=null,this._stickyBottomOffset=t,this._marginLeft=Vn(-U.window.scrollX)}_unstick(){this.isSticky=!1,this._isStickyToTheBottomOfLimiter=!1,this._stickyTopOffset=null,this._stickyBottomOffset=null,this._marginLeft=null}get _contentPanelRect(){return new J(this._contentPanel)}}class NS extends po{constructor(t,e){const n=t.t,i=Object.assign({},{showResetButton:!0,showIcon:!0,creator:No},e);super(t,i.creator),this.label=e.label,this._viewConfig=i,this._viewConfig.showIcon&&(this.iconView=new ze,this.iconView.content=dt.loupe,this.fieldWrapperChildren.add(this.iconView,0),this.extendTemplate({attributes:{class:"ck-search__query_with-icon"}})),this._viewConfig.showResetButton&&(this.resetButtonView=new et(t),this.resetButtonView.set({label:n("Clear"),icon:dt.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 zS extends G{constructor(){super();const t=this.bindTemplate;this.set({isVisible:!1,primaryText:"",secondaryText:""}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__info",t.if("isVisible","ck-hidden",e=>!e)],tabindex:-1},children:[{tag:"span",children:[{text:[t.to("primaryText")]}]},{tag:"span",children:[{text:[t.to("secondaryText")]}]}]})}focus(){this.element.focus()}}class PS extends G{constructor(t){super(t),this.children=this.createCollection(),this.focusTracker=new Bt,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new fe({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 Gg=/[\\^$.*+?()[\]{}|]/g,LS=RegExp(Gg.source);function OS(o){return o=ko(o),o&&LS.test(o)?o.replace(Gg,"\\$&"):o}const qg=OS;var Wg=L(9332),ga={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ga.insert="head",ga.singleton=!0,R()(Wg.Z,ga),Wg.Z.locals;class RS extends G{constructor(t,e){super(t),this._config=e,this.filteredView=e.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new Bt,this.keystrokes=new Vt,this.resultsView=new PS(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 zS,this._enableDefaultInfoViewBehavior(),this.on("render",()=>{this.search("")})),this.resultsView.children.addMany([this.infoView,this.filteredView]),this.focusCycler=new fe({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",(n,{resultsCount:i,totalItemsCount:r})=>{this.resultsCount=i,this.totalItemsCount=r}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search",e.class||null],tabindex:"-1"},children:this.children})}render(){super.render(),this.children.addMany([this.queryView,this.resultsView]);const t=e=>e.stopPropagation();for(const e of this.focusableChildren)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}focus(){this.queryView.focus()}reset(){this.queryView.reset(),this.search("")}search(t){const e=t?new RegExp(qg(t),"ig"):null,n=this.filteredView.filter(e);this.fire("search",{query:t,...n})}_createSearchTextQueryView(){const t=new NS(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;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})}});function n(i,{query:r,resultsCount:s,totalItemsCount:a}){return typeof i=="function"?i(r,s,a):i}}}var $g=L(4029),ma={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ma.insert="head",ma.singleton=!0,R()($g.Z,ma),$g.Z.locals;class Lo extends RS{constructor(t,e){super(t,e),this._config=e;const n=uo("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(U.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 J(this.queryView.fieldView.element).width;const t=Lo._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:Lo.defaultResultsPositions});this.resultsView._position=t?t.name:"s"}_updateResultsVisibility(){const t=typeof this._config.queryMinChars>"u"?0:this._config.queryMinChars,e=this.queryView.fieldView.element.value.length;this.resultsView.isVisible=this.focusTracker.isFocused&&this.isEnabled&&e>=t}}Lo.defaultResultsPositions=[o=>({top:o.bottom,left:o.left,name:"s"}),(o,t)=>({top:o.top-t.height,left:o.left,name:"n"})],Lo._getOptimalPosition=Pr;var Zg=L(4746),fa={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};fa.insert="head",fa.singleton=!0,R()(Zg.Z,fa),Zg.Z.locals;var Kg=L(4095),pa={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};pa.insert="head",pa.singleton=!0,R()(Kg.Z,pa),Kg.Z.locals;class jS extends G{constructor(t,e){super(t);const n=this.bindTemplate;this.set("isCollapsed",!1),this.set("label",""),this.buttonView=this._createButtonView(),this.children=this.createCollection(),this.set("_collapsibleAriaLabelUid",void 0),e&&this.children.addMany(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-collapsible",n.if("isCollapsed","ck-collapsible_collapsed")]},children:[this.buttonView,{tag:"div",attributes:{class:["ck","ck-collapsible__children"],role:"region",hidden:n.if("isCollapsed","hidden"),"aria-labelledby":n.to("_collapsibleAriaLabelUid")},children:this.children}]})}render(){super.render(),this._collapsibleAriaLabelUid=this.buttonView.labelView.element.id}focus(){this.buttonView.focus()}_createButtonView(){const t=new et(this.locale),e=t.bindTemplate;return t.set({withText:!0,icon:ts}),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 Yg=L(6446),ka={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ka.insert="head",ka.singleton=!0,R()(Yg.Z,ka),Yg.Z.locals;var Qg=L(4176),ba={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ba.insert="head",ba.singleton=!0,R()(Qg.Z,ba),Qg.Z.locals;class FS extends vS{constructor(t,e){super(t),this.view=e,this._toolbarConfig=ou(t.config.get("toolbar")),this._elementReplacer=new ul,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(),this.fire("ready")}destroy(){super.destroy();const t=this.view,e=this.editor.editing.view;this._elementReplacer.restore(),e.detachDomRoot(t.editable.name),t.destroy()}_initToolbar(){const t=this.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,t.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",({top:e})=>e||0),t.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(t.toolbar)}_initPlaceholder(){const t=this.editor,e=t.editing.view,n=e.document.getRoot(),i=t.sourceElement;let r;const s=t.config.get("placeholder");s&&(r=typeof s=="string"?s:s[this.view.editable.name]),!r&&i&&i.tagName.toLowerCase()==="textarea"&&(r=i.getAttribute("placeholder")),r&&(n.placeholder=r),uu({view:e,element:n,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(t,e,n){const i=this.view.stickyPanel;if(i.isSticky){const r=new J(i.element).height;e.viewportOffset.top+=r}else{const r=()=>{this.editor.editing.view.scrollToTheSelection(n)};this.listenTo(i,"change:isSticky",r),setTimeout(()=>{this.stopListening(i,"change:isSticky",r)},20)}}}var Jg=L(3624),wa={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};wa.insert="head",wa.singleton=!0,R()(Jg.Z,wa),Jg.Z.locals;class VS extends xS{constructor(t,e,n={}){super(t),this.stickyPanel=new BS(t),this.toolbar=new Os(t,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),this.editable=new DS(t,e)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class Xg{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(){if(this.crashes.length<=this._crashNumberLimit)return!0;const t=this.crashes[this.crashes.length-1].date,e=this.crashes[this.crashes.length-1-this._crashNumberLimit].date;return(t-e)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function Aa(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)||!HS(r)||t.has(r)))if(n.add(r),Symbol.iterator in r)try{for(const s of r)e.push(s)}catch{}else for(const s in r)s!=="defaultValue"&&e.push(r[s])}return n}function HS(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===void 0||o===null||o._watchdogExcluded||o instanceof EventTarget||o instanceof Event)}function tm(o,t,e=new Set){if(o===t&&US(o))return!0;const n=Aa(o,e),i=Aa(t,e);for(const r of n)if(i.has(r))return!0;return!1}function US(o){return typeof o=="object"&&o!==null}class em extends Xg{constructor(t,e={}){super(e),this._editor=null,this._initUsingData=!0,this._editables={},this._throttledSave=Po(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=>{}).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(GS),this._initUsingData?this.create(t,r,r.context):en(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 Promise.resolve().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")})}destroy(){return Promise.resolve().then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.cancel();const t=this._editor;return this._editor=null,t.model.document.off("change:data",this._throttledSave),this._destructor(t)})}_save(){const t=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=t}catch{}}_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 tm(this._editor,t.context,this._excludedProps)}_cloneEditorConfiguration(t){return Br(t,(e,n)=>{if(en(e)||n==="context")return e})}}class GS{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:1e3-1})}_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}else 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),m=t.createRange(d,u);t.addMarker(n,{range:m,...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");if(i.hasSuggestion(n.id)){const r=i.getSuggestion(n.id);r.attributes=n.attributes}else i.addSuggestionData(n)})}}const Oo=Symbol("MainQueueId");class qS extends Xg{constructor(t,e={}){super(e),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new WS,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(Oo,()=>(this._contextConfig=t,this._create()))}getItem(t){return this._getWatchdog(t)._item}getItemState(t){return this._getWatchdog(t).state}add(t){const e=nm(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 em(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=nm(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(Oo,()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_restart(){return this._actionQueues.enqueue(Oo,()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch(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=Aa(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 tm(this._context,t.context)}}class WS{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(t){this._onEmptyCallbacks.push(t)}enqueue(t,e){const n=t===Oo;this._activeActions++,this._queues.get(t)||this._queues.set(t,Promise.resolve());const r=(n?Promise.all(this._queues.values()):Promise.all([this._queues.get(Oo),this._queues.get(t)])).then(e),s=r.catch(()=>{});return this._queues.set(t,s),r.finally(()=>{this._activeActions--,this._queues.get(t)===s&&this._activeActions===0&&this._onEmptyCallbacks.forEach(a=>a())})}}function nm(o){return Array.isArray(o)?o:[o]}class Vi extends Bi(Ps(m5)){constructor(t,e={}){if(!Hi(t)&&e.initialData!==void 0)throw new w("editor-create-initial-data",null);super(e),this.config.get("initialData")===void 0&&this.config.set("initialData",$S(t)),Hi(t)&&(this.sourceElement=t),this.model.document.createRoot();const n=!this.config.get("toolbar.shouldNotGroupWhenFull"),i=new VS(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:n});this.ui=new FS(this,i),f5(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(Hi(t)?t:null)).then(()=>i.data.init(i.config.get("initialData"))).then(()=>i.fire("ready")).then(()=>i))})}}Vi.Context=cu,Vi.EditorWatchdog=em,Vi.ContextWatchdog=qS;function $S(o){return Hi(o)?rv(o):o}function Hi(o){return en(o)}class om{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 ZS extends Q{constructor(t,e){super(t),this._buffer=new om(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 im=["insertText","insertReplacementText"];class KS extends ye{constructor(t){super(t),this.focusObserver=t.getObserver(Ei),g.isAndroid&&im.push("insertCompositionText");const e=t.document;e.on("beforeinput",(n,i)=>{if(!this.isEnabled)return;const{data:r,targetRanges:s,inputType:a,domEvent:c}=i;if(!im.includes(a))return;this.focusObserver.flush();const l=new Ot(e,"insertText");e.fire(l,new Ln(t,c,{text:r,selection:t.createSelection(s)})),l.stop.called&&n.stop()}),e.on("compositionend",(n,{data:i,domEvent:r})=>{!this.isEnabled||g.isAndroid||i&&e.fire("insertText",new Ln(t,r,{text:i,selection:e.selection}))},{priority:"lowest"})}observe(){}stopObserving(){}}class rm extends M{static get pluginName(){return"Input"}init(){const t=this.editor,e=t.model,n=t.editing.view,i=e.document.selection;n.addObserver(KS);const r=new ZS(t,t.config.get("typing.undoStep")||20);t.commands.add("insertText",r),t.commands.add("input",r),this.listenTo(n.document,"insertText",(s,a)=>{n.document.isComposing||a.preventDefault();const{text:c,selection:l,resultRange:d}=a,u=Array.from(l.getRanges()).map(b=>t.editing.mapper.toModelRange(b));let m=c;if(g.isAndroid){const b=Array.from(u[0].getItems()).reduce((S,B)=>S+(B.is("$textProxy")?B.data:""),"");b&&(b.length<=m.length?m.startsWith(b)&&(m=m.substring(b.length),u[0].start=u[0].start.getShiftedBy(b.length)):b.startsWith(m)&&(u[0].start=u[0].start.getShiftedBy(m.length),m=""))}const p={text:m,selection:e.createSelection(u)};d&&(p.resultRange=t.editing.mapper.toModelRange(d)),t.execute("insertText",p),n.scrollToTheSelection()}),g.isAndroid?this.listenTo(n.document,"keydown",(s,a)=>{i.isCollapsed||a.keyCode!=229||!n.document.isComposing||sm(e,r)}):this.listenTo(n.document,"compositionstart",()=>{i.isCollapsed||sm(e,r)})}}function sm(o,t){if(!t.isEnabled)return;const e=t.buffer;e.lock(),o.enqueueChange(e.batch,()=>{o.deleteContent(o.document.selection)}),e.unlock()}class am extends Q{constructor(t,e){super(t),this.direction=e,this._buffer=new om(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)){this._replaceEntireContentWithParagraph(i);return}if(this._shouldReplaceFirstBlockWithParagraph(r,s)){this.editor.execute("paragraph",{selection:r});return}if(r.isCollapsed)return;let c=0;r.getFirstRange().getMinimalFlatRanges().forEach(l=>{c+=hr(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,i=e.document.selection,r=e.schema.getLimitElement(i);if(!(i.isCollapsed&&i.containsEntireContent(r))||!e.schema.checkChild(r,"paragraph"))return!1;const a=r.getChild(0);return!(a&&a.is("element","paragraph"))}_replaceEntireContentWithParagraph(t){const e=this.editor.model,i=e.document.selection,r=e.schema.getLimitElement(i),s=t.createElement("paragraph");t.remove(t.createRangeIn(r)),t.insert(s,r),t.setSelection(s,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 YS="character",cm="word",QS="codePoint",$e="selection",Hn="backward",Ro="forward",lm={deleteContent:{unit:$e,direction:Hn},deleteContentBackward:{unit:QS,direction:Hn},deleteWordBackward:{unit:cm,direction:Hn},deleteHardLineBackward:{unit:$e,direction:Hn},deleteSoftLineBackward:{unit:$e,direction:Hn},deleteContentForward:{unit:YS,direction:Ro},deleteWordForward:{unit:cm,direction:Ro},deleteHardLineForward:{unit:$e,direction:Ro},deleteSoftLineForward:{unit:$e,direction:Ro}};class JS extends ye{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=lm[c];if(!l)return;const d={direction:l.direction,unit:l.unit,sequence:n};d.unit==$e&&(d.selectionToRemove=t.createSelection(s[0])),c==="deleteContentBackward"&&(g.isAndroid&&(d.sequence=1),tT(s)&&(d.unit=$e,d.selectionToRemove=t.createSelection(s)));const u=new zn(e,"delete",s[0]);e.fire(u,new Ln(t,a,d)),u.stop.called&&i.stop()}),g.isBlink&&XS(this)}observe(){}stopObserving(){}}function XS(o){const t=o.view,e=t.document;let n=null,i=!1;e.on("keydown",(a,{keyCode:c})=>{n=c,i=!1}),e.on("keyup",(a,{keyCode:c,domEvent:l})=>{const d=e.selection,u=o.isEnabled&&c==n&&r(c)&&!d.isCollapsed&&!i;if(n=null,u){const m=d.getFirstRange(),p=new zn(e,"delete",m),b={unit:$e,direction:s(c),selectionToRemove:d};e.fire(p,new Ln(t,l,b))}}),e.on("beforeinput",(a,{inputType:c})=>{const l=lm[c];r(n)&&l&&l.direction==s(n)&&(i=!0)},{priority:"high"}),e.on("beforeinput",(a,{inputType:c,data:l})=>{n==tt.delete&&c=="insertText"&&l==""&&a.stop()},{priority:"high"});function r(a){return a==tt.backspace||a==tt.delete}function s(a){return a==tt.backspace?Hn:Ro}}function tT(o){if(o.length!=1||o[0].isCollapsed)return!1;const t=o[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let e=0;for(const{nextPosition:n}of t){if(!n.parent.is("$text"))e++;else{const i=n.parent.data,r=n.offset;if(jr(i,r)||Fr(i,r)||vd(i,r))continue;e++}if(e>1)return!0}return!1}class Ee extends M{static get pluginName(){return"Delete"}init(){const t=this.editor,e=t.editing.view,n=e.document,i=t.model.document;e.addObserver(JS),this._undoOnBackspace=!1;const r=new am(t,"forward");t.commands.add("deleteForward",r),t.commands.add("forwardDelete",r),t.commands.add("delete",new am(t,"backward")),this.listenTo(n,"delete",(s,a)=>{n.isComposing||a.preventDefault();const{direction:c,sequence:l,selectionToRemove:d,unit:u}=a,m=c==="forward"?"deleteForward":"delete",p={sequence:l};if(u=="selection"){const b=Array.from(d.getRanges()).map(S=>t.editing.mapper.toModelRange(S));p.selection=t.model.createSelection(b)}else p.unit=u;t.execute(m,p),e.scrollToTheSelection()},{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(n,"delete",(s,a)=>{this._undoOnBackspace&&a.direction=="backward"&&a.sequence==1&&a.unit=="codePoint"&&(this._undoOnBackspace=!1,t.execute("undo"),a.preventDefault(),s.stop())},{context:"$capture"}),this.listenTo(i,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class eT extends M{static get requires(){return[rm,Ee]}static get pluginName(){return"Typing"}}function dm(o,t){let e=o.start;return{text:Array.from(o.getWalker({ignoreElementEnd:!1})).reduce((i,{item:r})=>r.is("$text")||r.is("$textProxy")?i+r.data:(e=t.createPositionAfter(r),""),""),range:t.createRange(e,o.end)}}class um extends st(){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 e=this.model.document;this.listenTo(e.selection,"change:range",(n,{directChange:i})=>{if(i){if(!e.selection.isCollapsed){this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1);return}this._evaluateTextBeforeSelection("selection")}}),this.listenTo(e,"change:data",(n,i)=>{i.isUndo||!i.isLocal||this._evaluateTextBeforeSelection("data",{batch:i})})}_evaluateTextBeforeSelection(t,e={}){const n=this.model,r=n.document.selection,s=n.createRange(n.createPositionAt(r.focus.parent,0),r.focus),{text:a,range:c}=dm(s,n),l=this.testCallback(a);if(!l&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!l,l){const d=Object.assign(e,{text:a,range:c});typeof l=="object"&&Object.assign(d,l),this.fire(`matched:${t}`,d)}}}class hm extends M{static get pluginName(){return"TwoStepCaretMovement"}constructor(t){super(t),this._isNextGravityRestorationSkipped=!1,this.attributes=new Set,this._overrideUid=null}init(){const t=this.editor,e=t.model,n=t.editing.view,i=t.locale,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==tt.arrowright,l=a.keyCode==tt.arrowleft;if(!c&&!l)return;const d=i.contentLanguageDirection;let u=!1;d==="ltr"&&c||d==="rtl"&&l?u=this._handleForwardMovement(a):u=this._handleBackwardMovement(a),u===!0&&s.stop()},{context:"$text",priority:"highest"}),this.listenTo(r,"change:range",(s,a)=>{if(this._isNextGravityRestorationSkipped){this._isNextGravityRestorationSkipped=!1;return}this._isGravityOverridden&&(!a.directChange&&ue(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&&je(i,e)?!1:ue(r,e)?(Fo(t),je(i,e)&&ue(r,e,!0)?jo(n,e):this._overrideGravity(),!0):!1}_handleBackwardMovement(t){const e=this.attributes,n=this.editor.model,i=n.document.selection,r=i.getFirstPosition();return this._isGravityOverridden?(Fo(t),this._restoreGravity(),ue(r,e,!0)?jo(n,e):Ui(n,e,r),!0):r.isAtStart?je(i,e)?(Fo(t),Ui(n,e,r),!0):!1:!je(i,e)&&ue(r,e,!0)?(Fo(t),Ui(n,e,r),!0):gm(r,e)?r.isAtEnd&&!je(i,e)&&ue(r,e)?(Fo(t),Ui(n,e,r),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):!1}_enableClickingAfterNode(){const t=this.editor,e=t.model,n=e.document.selection,i=t.editing.view.document;t.editing.view.addObserver(Mi);let r=!1;this.listenTo(i,"mousedown",()=>{r=!0}),this.listenTo(i,"selectionChange",()=>{const s=this.attributes;if(!r||(r=!1,!n.isCollapsed)||!je(n,s))return;const a=n.getFirstPosition();ue(a,s)&&(a.isAtStart||ue(a,s,!0)?jo(e,s):this._isGravityOverridden||this._overrideGravity())})}_enableInsertContentSelectionAttributesFixer(){const e=this.editor.model,n=e.document.selection,i=this.attributes;this.listenTo(e,"insertContent",()=>{const r=n.getFirstPosition();je(n,i)&&ue(r,i)&&jo(e,i)},{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=je(n,this.attributes)&&!gm(a,this.attributes)},{priority:"high"}),this.listenTo(e,"deleteContent",()=>{r&&(r=!1,!s&&t.model.enqueueChange(()=>{const a=n.getFirstPosition();je(n,this.attributes)&&ue(a,this.attributes)&&(a.isAtStart||ue(a,this.attributes,!0)?jo(e,this.attributes):this._isGravityOverridden||this._overrideGravity())}))},{priority:"low"})}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(t=>t.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(t=>{t.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function je(o,t){for(const e of t)if(o.hasAttribute(e))return!0;return!1}function Ui(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 jo(o,t){o.change(e=>{e.removeSelectionAttribute(t)})}function Fo(o){o.preventDefault()}function gm(o,t){const e=o.getShiftedBy(-1);return ue(e,t)}function ue(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 mm={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:Un('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:Un("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:Un("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:Un('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:Un('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:Un("'"),to:[null,"‚",null,"’"]}},fm={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},nT=["symbols","mathematical","typography","quotes"];class oT extends M{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}constructor(t){super(t),t.config.define("typing",{transformations:{include:nT}})}init(){const e=this.editor.model.document.selection;e.on("change:range",()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")}),this._enableTransformationWatchers()}_enableTransformationWatchers(){const t=this.editor,e=t.model,n=t.plugins.get("Delete"),i=aT(t.config.get("typing.transformations")),r=a=>{for(const c of i)if(c.from.test(a))return{normalizedTransformation:c}},s=new um(t.model,r);s.on("matched:data",(a,c)=>{if(!c.batch.isTyping)return;const{from:l,to:d}=c.normalizedTransformation,u=l.exec(c.text),m=d(u.slice(1)),p=c.range;let b=u.index;e.enqueueChange(S=>{for(let B=1;B<u.length;B++){const z=u[B],V=m[B-1];if(V==null){b+=z.length;continue}const X=p.start.getShiftedBy(b),at=e.createRange(X,X.getShiftedBy(z.length)),ft=sT(X);e.insertContent(S.createText(V,ft),at),b+=V.length}e.enqueueChange(()=>{n.requestUndoOnBackspace()})})}),s.bind("isEnabled").to(this)}}function iT(o){return typeof o=="string"?new RegExp(`(${qg(o)})$`):o}function rT(o){return typeof o=="string"?()=>[o]:o instanceof Array?()=>o:o}function sT(o){return(o.textNode?o.textNode:o.nodeAfter).getAttributes()}function Un(o){return new RegExp(`(^|\\s)(${o})([^${o}]*)(${o})$`)}function aT(o){const t=o.extra||[],e=o.remove||[],n=r=>!e.includes(r),i=o.include.concat(t).filter(n);return cT(i).filter(n).map(r=>typeof r=="string"&&mm[r]?mm[r]:r).filter(r=>typeof r=="object").map(r=>({from:iT(r.from),to:rT(r.to)}))}function cT(o){const t=new Set;for(const e of o)if(typeof e=="string"&&fm[e])for(const n of fm[e])t.add(n);else t.add(e);return Array.from(t)}function Vo(o,t,e,n){return n.createRange(Ca(o,t,e,!0,n),Ca(o,t,e,!1,n))}function Ca(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 lT(o,t,e,n){const i=o.editing.view,r=new Set;i.document.registerPostFixer(s=>{const a=o.model.document.selection;let c=!1;if(a.hasAttribute(t)){const l=Vo(a.getFirstPosition(),t,a.getAttribute(t),o.model),d=o.editing.mapper.toViewRange(l);for(const u of d.getItems())u.is("element",e)&&!u.hasClass(n)&&(s.addClass(n,u),r.add(u),c=!0)}return c}),o.conversion.for("editingDowncast").add(s=>{s.on("insert",a,{priority:"highest"}),s.on("remove",a,{priority:"highest"}),s.on("attribute",a,{priority:"highest"}),s.on("selection",a,{priority:"highest"});function a(){i.change(c=>{for(const l of r.values())c.removeClass(n,l),r.delete(l)})}})}function Ze(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=Tt(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 m=u.getChild(0),p=o.model.createRangeOn(m);if(!p.containsRange(c)&&!c.end.isEqual(p.end))return;const b=e.exec(m.data.substr(0,c.end.offset));b&&o.model.enqueueChange(S=>{const B=S.createPositionAt(u,0),z=S.createPositionAt(u,b[0].length),V=new Zt(B,z);if(i({match:b})!==!1){S.remove(V);const at=o.model.document.selection.getFirstRange(),ft=S.createRangeIn(u);u.isEmpty&&!ft.isEqual(at)&&!ft.containsRange(at,!0)&&S.remove(u)}V.detach(),o.model.enqueueChange(()=>{o.plugins.get("Delete").requestUndoOnBackspace()})})})}function Gn(o,t,e,n){let i,r;e instanceof RegExp?i=e:r=e,r=r||(s=>{let a;const c=[],l=[];for(;(a=i.exec(s))!==null&&!(a&&a.length<4);){let{index:d,1:u,2:m,3:p}=a;const b=u+m+p;d+=a[0].length-b.length;const S=[d,d+u.length],B=[d+u.length+m.length,d+u.length+m.length+p.length];c.push(S),c.push(B),l.push([d+u.length,d+u.length+m.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 m=l.focus,p=m.parent,{text:b,range:S}=dT(c.createRange(c.createPositionAt(p,0),m),c),B=r(b),z=pm(S.start,B.format,c),V=pm(S.start,B.remove,c);z.length&&V.length&&c.enqueueChange(X=>{if(n(X,z)!==!1){for(const ft of V.reverse())X.remove(ft);c.enqueueChange(()=>{o.plugins.get("Delete").requestUndoOnBackspace()})}})})}function pm(o,t,e){return t.filter(n=>n[0]!==void 0&&n[1]!==void 0).map(n=>e.createRange(o.getShiftedBy(n[0]),o.getShiftedBy(n[1])))}function dT(o,t){let e=o.start;return{text:Array.from(o.getItems()).reduce((i,r)=>!(r.is("$text")||r.is("$textProxy"))||r.getAttribute("code")?(e=t.createPositionAfter(r),""):i+r.data,""),range:t.createRange(e,o.end)}}class uT extends M{static get requires(){return[Ee]}static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const t=this.editor.commands;t.get("bulletedList")&&Ze(this.editor,this,/^[*-]\s$/,"bulletedList"),t.get("numberedList")&&Ze(this.editor,this,/^1[.|)]\s$/,"numberedList"),t.get("todoList")&&Ze(this.editor,this,/^\[\s?\]\s$/,"todoList"),t.get("checkTodoList")&&Ze(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=Gi(this.editor,"bold");Gn(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,e),Gn(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,e)}if(t.get("italic")){const e=Gi(this.editor,"italic");Gn(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,e),Gn(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,e)}if(t.get("code")){const e=Gi(this.editor,"code");Gn(this.editor,this,/(`)([^`]+)(`)$/g,e)}if(t.get("strikethrough")){const e=Gi(this.editor,"strikethrough");Gn(this.editor,this,/(~~)([^~]+)(~~)$/g,e)}}_addHeadingAutoformats(){const t=this.editor.commands.get("heading");t&&t.modelElements.filter(e=>e.match(/^heading[1-6]$/)).forEach(e=>{const n=e[7],i=new RegExp(`^(#{${n}})\\s$`);Ze(this.editor,this,i,()=>{if(!t.isEnabled||t.value===e)return!1;this.editor.execute("heading",{value:e})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&Ze(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const t=this.editor,e=t.model.document.selection;t.commands.get("codeBlock")&&Ze(t,this,/^```$/,()=>{if(e.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&Ze(this.editor,this,/^---$/,"horizontalLine")}}function Gi(o,t){return(e,n)=>{if(!o.commands.get(t).isEnabled)return!1;const r=o.model.schema.getValidRanges(n,t);for(const s of r)e.setAttribute(t,!0,s);e.removeSelectionAttribute(t)}}class km extends Q{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,i=e.document.selection,r=t.forceValue===void 0?!this.value:t.forceValue;e.change(s=>{if(i.isCollapsed)r?s.setSelectionAttribute(this.attributeKey,!0):s.removeSelectionAttribute(this.attributeKey);else{const a=e.schema.getValidRanges(i.getRanges(),this.attributeKey);for(const c of a)r?s.setAttribute(this.attributeKey,r,c):s.removeAttribute(this.attributeKey,c)}})}_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 qn="bold";class hT extends M{static get pluginName(){return"BoldEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:qn}),t.model.schema.setAttributeProperties(qn,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:qn,view:"strong",upcastAlso:["b",e=>{const n=e.getStyle("font-weight");return n&&(n=="bold"||Number(n)>=600)?{name:!0,styles:["font-weight"]}:null}]}),t.commands.add(qn,new km(t,qn)),t.keystrokes.set("CTRL+B",qn)}}const _a="bold";class gT extends M{static get pluginName(){return"BoldUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(_a,n=>{const i=t.commands.get(_a),r=new et(n);return r.set({label:e("Bold"),icon:dt.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(r,"execute",()=>{t.execute(_a),t.editing.view.focus()}),r})}}class mT extends M{static get requires(){return[hT,gT]}static get pluginName(){return"Bold"}}var bm=L(5363),va={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};va.insert="head",va.singleton=!0,R()(bm.Z,va),bm.Z.locals;const Wn="italic";class fT extends M{static get pluginName(){return"ItalicEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Wn}),t.model.schema.setAttributeProperties(Wn,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Wn,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(Wn,new km(t,Wn)),t.keystrokes.set("CTRL+I",Wn)}}const pT='<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>',ya="italic";class kT extends M{static get pluginName(){return"ItalicUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(ya,n=>{const i=t.commands.get(ya),r=new et(n);return r.set({label:e("Italic"),icon:pT,keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(r,"execute",()=>{t.execute(ya),t.editing.view.focus()}),r})}}class bT extends M{static get requires(){return[fT,kT]}static get pluginName(){return"Italic"}}function*wm(o,t){for(const e of t)e&&o.getAttributeProperties(e[0]).copyOnEnter&&(yield e)}class wT extends Q{execute(){this.editor.model.change(t=>{this.enterBlock(t),this.fire("afterExecute",{writer:t})})}enterBlock(t){const e=this.editor.model,n=e.document.selection,i=e.schema,r=n.isCollapsed,s=n.getFirstRange(),a=s.start.parent,c=s.end.parent;if(i.isLimit(a)||i.isLimit(c))return!r&&a==c&&e.deleteContent(n),!1;if(r){const l=wm(t.model.schema,n.getAttributes());return Am(t,s.start),t.setSelectionAttribute(l),!0}else{const l=!(s.start.isAtStart&&s.end.isAtEnd),d=a==c;if(e.deleteContent(n,{leaveUnmerged:l}),l){if(d)return Am(t,n.focus),!0;t.setSelection(c,0)}}return!1}}function Am(o,t){o.split(t),o.setSelection(t.parent.nextSibling,0)}const AT={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class Cm extends ye{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;g.isSafari&&n&&s=="insertParagraph"&&(s="insertLineBreak");const a=r.domEvent,c=AT[s];if(!c)return;const l=new zn(e,"enter",r.targetRanges[0]);e.fire(l,new Ln(t,a,{isSoft:c.isSoft})),l.stop.called&&i.stop()})}observe(){}stopObserving(){}}class Ho extends M{static get pluginName(){return"Enter"}init(){const t=this.editor,e=t.editing.view,n=e.document;e.addObserver(Cm),t.commands.add("enter",new wT(t)),this.listenTo(n,"enter",(i,r)=>{n.isComposing||r.preventDefault(),!r.isSoft&&(t.execute("enter"),e.scrollToTheSelection())},{priority:"low"})}}class CT extends Q{execute(){const t=this.editor.model,e=t.document;t.change(n=>{vT(t,n,e.selection),this.fire("afterExecute",{writer:n})})}refresh(){const t=this.editor.model,e=t.document;this.isEnabled=_T(t.schema,e.selection)}}function _T(o,t){if(t.rangeCount>1)return!1;const e=t.anchor;if(!e||!o.checkChild(e,"softBreak"))return!1;const n=t.getFirstRange(),i=n.start.parent,r=n.end.parent;return!((xa(i,o)||xa(r,o))&&i!==r)}function vT(o,t,e){const n=e.isCollapsed,i=e.getFirstRange(),r=i.start.parent,s=i.end.parent,a=r==s;if(n){const c=wm(o.schema,e.getAttributes());_m(o,t,i.end),t.removeSelectionAttribute(e.getAttributeKeys()),t.setSelectionAttribute(c)}else{const c=!(i.start.isAtStart&&i.end.isAtEnd);o.deleteContent(e,{leaveUnmerged:c}),a?_m(o,t,e.focus):c&&t.setSelection(s,0)}}function _m(o,t,e){const n=t.createElement("softBreak");o.insertContent(n,e),t.setSelection(n,"after")}function xa(o,t){return o.is("rootElement")?!1:t.isLimit(o)||xa(o.parent,t)}class yT extends M{static get pluginName(){return"ShiftEnter"}init(){const t=this.editor,e=t.model.schema,n=t.conversion,i=t.editing.view,r=i.document;e.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:(s,{writer:a})=>a.createEmptyElement("br")}),i.addObserver(Cm),t.commands.add("shiftEnter",new CT(t)),this.listenTo(r,"enter",(s,a)=>{r.isComposing||a.preventDefault(),a.isSoft&&(t.execute("shiftEnter"),i.scrollToTheSelection())},{priority:"low"})}}class xT extends Q{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)this._removeQuote(a,r.filter(qi));else{const c=r.filter(l=>qi(l)||ym(n,l));this._applyQuote(a,c)}})}_getValue(){const t=this.editor.model.document.selection,e=Tt(t.getSelectedBlocks());return!!(e&&qi(e))}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=Tt(t.getSelectedBlocks());return n?ym(e,n):!1}_removeQuote(t,e){vm(t,e).reverse().forEach(n=>{if(n.start.isAtStart&&n.end.isAtEnd){t.unwrap(n.start.parent);return}if(n.start.isAtStart){const r=t.createPositionBefore(n.start.parent);t.move(n,r);return}n.end.isAtEnd||t.split(n.end);const i=t.createPositionAfter(n.end.parent);t.move(n,i)})}_applyQuote(t,e){const n=[];vm(t,e).reverse().forEach(i=>{let r=qi(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 qi(o){return o.parent.name=="blockQuote"?o.parent:null}function vm(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 ym(o,t){const e=o.checkChild(t.parent,"blockQuote"),n=o.checkChild(["$root","blockQuote"],t);return e&&n}class ET extends M{static get pluginName(){return"BlockQuoteEditing"}static get requires(){return[Ho,Ee]}init(){const t=this.editor,e=t.model.schema;t.commands.add("blockQuote",new xT(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)=>{if(!i.isCollapsed||!r.value)return;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 xm=L(3789),Ea={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ea.insert="head",Ea.singleton=!0,R()(xm.Z,Ea),xm.Z.locals;class DT extends M{static get pluginName(){return"BlockQuoteUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("blockQuote",n=>{const i=t.commands.get("blockQuote"),r=new et(n);return r.set({label:e("Block quote"),icon:dt.quote,tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(r,"execute",()=>{t.execute("blockQuote"),t.editing.view.focus()}),r})}}class ST extends M{static get requires(){return[ET,DT]}static get pluginName(){return"BlockQuote"}}const TT={autoRefresh:!0},Em=36e5;class Da extends st(){constructor(t,e={}){if(super(),!t)throw new w("token-missing-token-url",this);e.initValue&&this._validateTokenValue(e.initValue),this.set("value",e.initValue),typeof t=="function"?this._refresh=t:this._refresh=()=>IT(t),this._options={...TT,...e}}init(){return new Promise((t,e)=>{if(!this.value){this.refreshToken().then(t).catch(e);return}this._options.autoRefresh&&this._registerRefreshTokenTimeout(),t(this)})}refreshToken(){return this._refresh().then(t=>(this._validateTokenValue(t),this.set("value",t),this._options.autoRefresh&&this._registerRefreshTokenTimeout(),this))}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(t){const e=typeof t=="string",n=!/^".*"$/.test(t),i=e&&t.split(".").length===3;if(!(n&&i))throw new w("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const t=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},t)}_getTokenRefreshTimeoutTime(){try{const[,t]=this.value.split("."),{exp:e}=JSON.parse(atob(t));return e?Math.floor((e*1e3-Date.now())/2):Em}catch{return Em}}static create(t,e={}){return new Da(t,e).init()}}function IT(o){return new Promise((t,e)=>{const n=new XMLHttpRequest;n.open("GET",o),n.addEventListener("load",()=>{const i=n.status,r=n.response;return i<200||i>299?e(new w("token-cannot-download-new-token",null)):t(r)}),n.addEventListener("error",()=>e(new Error("Network Error"))),n.addEventListener("abort",()=>e(new Error("Abort"))),n.send()})}const Sa=/^data:(\S*?);base64,/;class MT extends ct(){constructor(t,e,n){if(super(),!t)throw new w("fileuploader-missing-file",null);if(!e)throw new w("fileuploader-missing-token",null);if(!n)throw new w("fileuploader-missing-api-address",null);this.file=NT(t)?BT(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 w("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)})}}function BT(o,t=512){try{const e=o.match(Sa)[1],n=atob(o.replace(Sa,"")),i=[];for(let r=0;r<n.length;r+=t){const s=n.slice(r,r+t),a=new Array(s.length);for(let c=0;c<s.length;c++)a[c]=s.charCodeAt(c);i.push(new Uint8Array(a))}return new Blob(i,{type:e})}catch{throw new w("fileuploader-decoding-image-data-error",null)}}function NT(o){if(typeof o!="string")return!1;const t=o.match(Sa);return!!(t&&t.length)}class zT{constructor(t,e){if(!t)throw new w("uploadgateway-missing-token",null);if(!e)throw new w("uploadgateway-missing-api-address",null);this._token=t,this._apiAddress=e}upload(t){return new MT(t,this._token,this._apiAddress)}}class PT extends fi{static get pluginName(){return"CloudServicesCore"}createToken(t,e){return new Da(t,e)}createUploadGateway(t,e){return new zT(t,e)}}class LT extends fi{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get requires(){return[PT]}async init(){const e=this.context.config.get("cloudServices")||{};for(const[i,r]of Object.entries(e))this[i]=r;if(!this.tokenUrl){this.token=null;return}const n=this.context.plugins.get("CloudServicesCore");this.token=await n.createToken(this.tokenUrl).init(),this._tokens.set(this.tokenUrl,this.token)}async registerTokenUrl(t){if(this._tokens.has(t))return this.getTokenFor(t);const n=await this.context.plugins.get("CloudServicesCore").createToken(t).init();return this._tokens.set(t,n),n}getTokenFor(t){const e=this._tokens.get(t);if(!e)throw new w("cloudservices-token-not-registered",this);return e}destroy(){super.destroy();for(const t of this._tokens.values())t.destroy()}}class Uo extends qe{constructor(t){super(t),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];const e=this.document;this.listenTo(e,"paste",n("clipboardInput"),{priority:"low"}),this.listenTo(e,"drop",n("clipboardInput"),{priority:"low"}),this.listenTo(e,"dragover",n("dragging"),{priority:"low"});function n(i){return(r,s)=>{s.preventDefault();const a=s.dropRange?[s.dropRange]:null,c=new Ot(e,i);e.fire(c,{dataTransfer:s.dataTransfer,method:r.name,targetRanges:a,target:s.target,domEvent:s.domEvent}),c.stop.called&&s.stopPropagation()}}}onDomEvent(t){const e="clipboardData"in t?t.clipboardData:t.dataTransfer,n=t.type=="drop"||t.type=="paste",i={dataTransfer:new oh(e,{cacheFiles:n})};(t.type=="drop"||t.type=="dragover")&&(i.dropRange=OT(this.view,t)),this.fire(t.type,t,i)}}function OT(o,t){const e=t.target.ownerDocument,n=t.clientX,i=t.clientY;let r;return e.caretRangeFromPoint&&e.caretRangeFromPoint(n,i)?r=e.caretRangeFromPoint(n,i):t.rangeParent&&(r=e.createRange(),r.setStart(t.rangeParent,t.rangeOffset),r.collapse(!0)),r?o.domConverter.domRangeToView(r):null}function RT(o){return o=o.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," "),(o.includes("</p><p>")||o.includes("<br>"))&&(o=`<p>${o}</p>`),o}function jT(o){return o.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(t,e)=>e.length==1?" ":e).replace(/<!--[\s\S]*?-->/g,"")}const Dm=["figcaption","li"],Sm=["ol","ul"];function Tm(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`
|
|
|
`;let t="",e=null;for(const n of o.getChildren())t+=FT(n,e)+Tm(n),e=n;return t}function FT(o,t){return t?o.is("element","li")&&!o.isEmpty&&o.getChild(0).is("containerElement")||Sm.includes(o.name)&&Sm.includes(t.name)?`
|
|
|
|
|
|
`:!o.is("containerElement")&&!t.is("containerElement")?"":Dm.includes(o.name)||Dm.includes(t.name)?`
|
|
|
`:`
|
|
|
|
|
|
`:""}class De extends M{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(Uo),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(t,e,n){const i=this.editor.model.getSelectedContent(e);this.fire("outputTransformation",{dataTransfer:t,content:i,method:n})}_setupPasteDrop(){const t=this.editor,e=t.model,n=t.editing.view,i=n.document;this.listenTo(i,"clipboardInput",(r,s)=>{s.method=="paste"&&!t.model.canEditAt(t.model.document.selection)&&r.stop()},{priority:"highest"}),this.listenTo(i,"clipboardInput",(r,s)=>{const a=s.dataTransfer;let c;if(s.content)c=s.content;else{let d="";a.getData("text/html")?d=jT(a.getData("text/html")):a.getData("text/plain")&&(d=RT(a.getData("text/plain"))),c=this.editor.data.htmlProcessor.toView(d)}const l=new Ot(this,"inputTransformation");this.fire(l,{content:c,dataTransfer:a,targetRanges:s.targetRanges,method:s.method}),l.stop.called&&r.stop(),n.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(r,s)=>{if(s.content.isEmpty)return;const c=this.editor.data.toModel(s.content,"$clipboardHolder");c.childCount!=0&&(r.stop(),e.change(()=>{this.fire("contentInsertion",{content:c,method:s.method,dataTransfer:s.dataTransfer,targetRanges:s.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(r,s)=>{s.resultRange=e.insertContent(s.content)},{priority:"low"})}_setupCopyCut(){const t=this.editor,e=t.model.document,i=t.editing.view.document,r=(s,a)=>{const c=a.dataTransfer;a.preventDefault(),this._fireOutputTransformationEvent(c,e.selection,s.name)};this.listenTo(i,"copy",r,{priority:"low"}),this.listenTo(i,"cut",(s,a)=>{t.model.canEditAt(t.model.document.selection)?r(s,a):a.preventDefault()},{priority:"low"}),this.listenTo(this,"outputTransformation",(s,a)=>{const c=t.data.toView(a.content);i.fire("clipboardOutput",{dataTransfer:a.dataTransfer,content:c,method:a.method})},{priority:"low"}),this.listenTo(i,"clipboardOutput",(s,a)=>{a.content.isEmpty||(a.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(a.content)),a.dataTransfer.setData("text/plain",Tm(a.content))),a.method=="cut"&&t.model.deleteContent(e.selection)},{priority:"low"})}}class VT extends ct(){constructor(){super(...arguments),this._stack=[]}add(t,e){const n=this._stack,i=n[0];this._insertDescriptor(t);const r=n[0];i!==r&&!Ta(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&&!Ta(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(Ta(t,e[n]))return;n>-1&&e.splice(n,1);let i=0;for(;e[i]&&HT(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 Ta(o,t){return o&&t&&o.priority==t.priority&&Wi(o.classes)==Wi(t.classes)}function HT(o,t){return o.priority>t.priority?!0:o.priority<t.priority?!1:Wi(o.classes)>Wi(t.classes)}function Wi(o){return Array.isArray(o)?o.sort().join(","):o}const UT='<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>',GT="ck-widget",Im="ck-widget_selected";function Nt(o){return o.is("element")?!!o.getCustomProperty("widget"):!1}function Go(o,t,e={}){if(!o.is("containerElement"))throw new w("widget-to-widget-wrong-element-type",null,{element:o});return t.setAttribute("contenteditable","false",o),t.addClass(GT,o),t.setCustomProperty("widget",!0,o),o.getFillerOffset=KT,t.setCustomProperty("widgetLabel",[],o),e.label&&$T(o,e.label),e.hasSelectionHandle&&YT(o,t),Mm(o,t),o}function qT(o,t,e){if(t.classes&&e.addClass(_t(t.classes),o),t.attributes)for(const n in t.attributes)e.setAttribute(n,t.attributes[n],o)}function WT(o,t,e){if(t.classes&&e.removeClass(_t(t.classes),o),t.attributes)for(const n in t.attributes)e.removeAttribute(n,o)}function Mm(o,t,e=qT,n=WT){const i=new VT;i.on("change:top",(a,c)=>{c.oldDescriptor&&n(o,c.oldDescriptor,c.writer),c.newDescriptor&&e(o,c.newDescriptor,c.writer)});const r=(a,c,l)=>i.add(c,l),s=(a,c,l)=>i.remove(c,l);t.setCustomProperty("addHighlight",r,o),t.setCustomProperty("removeHighlight",s,o)}function $T(o,t){o.getCustomProperty("widgetLabel").push(t)}function ZT(o){return o.getCustomProperty("widgetLabel").reduce((e,n)=>typeof n=="function"?e?e+". "+n():n():e?e+". "+n:n,"")}function Bm(o,t,e={}){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],o),t.setAttribute("role","textbox",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)}),Mm(o,t),o}function Nm(o,t){const e=o.getSelectedElement();if(e){const n=Ke(o);if(n)return t.createRange(t.createPositionAt(e,n))}return ng(o,t)}function KT(){return null}function YT(o,t){const e=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(n){const i=this.toDomElement(n),r=new ze;return r.set("content",UT),r.render(),i.appendChild(r.element),i});t.insert(t.createPositionAt(o,0),e),t.addClass(["ck-widget_with-selection-handle"],o)}const Fe="widget-type-around";function mn(o,t,e){return!!o&&Nt(o)&&!e.isInline(t)}function QT(o){return o.closest(".ck-widget__type-around__button")}function JT(o){return o.classList.contains("ck-widget__type-around__button_before")?"before":"after"}function XT(o,t){const e=o.closest(".ck-widget");return t.mapDomToView(e)}function Ke(o){return o.getAttribute(Fe)}const tI='<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>';var zm=L(2347),Ia={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ia.insert="head",Ia.singleton=!0,R()(zm.Z,Ia),zm.Z.locals;const Pm=["before","after"],eI=new DOMParser().parseFromString(tI,"image/svg+xml").firstChild,Lm="ck-widget__type-around_disabled";class nI extends M{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get requires(){return[Ho,Ee]}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(Lm,a):s.addClass(Lm,a)}),r||t.model.change(s=>{s.removeSelectionAttribute(Fe)})}),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 n=this.editor.model.document.selection,i=Ke(n);if(!i)return!1;const r=n.getSelectedElement();return this._insertParagraph(r,i),!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&&mn(c,s.item,e)&&(oI(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.schema,r=t.editing.view;this._listenToIfEnabled(r.document,"arrowKey",(a,c)=>{this._handleArrowKeyPress(a,c)},{context:[Nt,"$text"],priority:"high"}),this._listenToIfEnabled(n,"change:range",(a,c)=>{c.directChange&&t.model.change(l=>{l.removeSelectionAttribute(Fe)})}),this._listenToIfEnabled(e.document,"change:data",()=>{const a=n.getSelectedElement();if(a){const c=t.editing.mapper.toViewElement(a);if(mn(c,a,i))return}t.model.change(c=>{c.removeSelectionAttribute(Fe)})}),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",(a,c,l)=>{const d=l.writer;if(this._currentFakeCaretModelElement){const b=l.mapper.toViewElement(this._currentFakeCaretModelElement);b&&(d.removeClass(Pm.map(s),b),this._currentFakeCaretModelElement=null)}const u=c.selection.getSelectedElement();if(!u)return;const m=l.mapper.toViewElement(u);if(!mn(m,u,i))return;const p=Ke(c.selection);p&&(d.addClass(s(p),m),this._currentFakeCaretModelElement=u)}),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",(a,c,l)=>{l||t.model.change(d=>{d.removeSelectionAttribute(Fe)})});function s(a){return`ck-widget_type-around_show-fake-caret_${a}`}}_handleArrowKeyPress(t,e){const n=this.editor,i=n.model,r=i.document.selection,s=i.schema,a=n.editing.view,c=e.keyCode,l=wv(c,n.locale.contentLanguageDirection),d=a.document.selection.getSelectedElement(),u=n.editing.mapper.toModelElement(d);let m;mn(d,u,s)?m=this._handleArrowKeyPressOnSelectedWidget(l):r.isCollapsed?m=this._handleArrowKeyPressWhenSelectionNextToAWidget(l):e.shiftKey||(m=this._handleArrowKeyPressWhenNonCollapsedSelection(l)),m&&(e.preventDefault(),t.stop())}_handleArrowKeyPressOnSelectedWidget(t){const n=this.editor.model,i=n.document.selection,r=Ke(i);return n.change(s=>{if(r){if(!(r===(t?"after":"before")))return s.removeSelectionAttribute(Fe),!0}else return s.setSelectionAttribute(Fe,t?"after":"before"),!0;return!1})}_handleArrowKeyPressWhenSelectionNextToAWidget(t){const e=this.editor,n=e.model,i=n.schema,r=e.plugins.get("Widget"),s=r._getObjectElementNextToSelection(t),a=e.editing.mapper.toViewElement(s);return mn(a,s,i)?(n.change(c=>{r._setSelectionOverElement(s),c.setSelectionAttribute(Fe,t?"before":"after")}),!0):!1}_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,c=r.toViewElement(a);return mn(c,a,i)?(n.change(l=>{l.setSelection(a,"on"),l.setSelectionAttribute(Fe,t?"after":"before")}),!0):!1}_enableInsertingParagraphsOnButtonClick(){const t=this.editor,e=t.editing.view;this._listenToIfEnabled(e.document,"mousedown",(n,i)=>{const r=QT(i.domTarget);if(!r)return;const s=JT(r),a=XT(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:mn(a,s,c)&&(this._insertParagraph(s,r.isSoft?"before":"after"),l=!0),l&&(r.preventDefault(),i.stop())},{context:Nt})}_enableInsertingParagraphsOnTypingKeystroke(){const e=this.editor.editing.view.document;this._listenToIfEnabled(e,"insertText",(n,i)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(i.selection=e.selection)},{priority:"high"}),g.isAndroid?this._listenToIfEnabled(e,"keydown",(n,i)=>{i.keyCode==229&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(e,"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=Ke(n.document.selection);if(!a)return;const c=s.direction,l=n.document.selection.getSelectedElement(),d=a==="before",u=c=="forward";if(d===u)t.execute("delete",{selection:n.createSelection(l,"on")});else{const p=i.getNearestSelectionRange(n.createPositionAt(l,a),c);if(p)if(!p.isCollapsed)n.change(b=>{b.setSelection(p),t.execute(u?"deleteForward":"delete")});else{const b=n.createSelection(p.start);if(n.modifySelection(b,{direction:c}),!b.focus.isEqual(p.start))n.change(S=>{S.setSelection(p),t.execute(u?"deleteForward":"delete")});else{const S=sI(i,p.start.parent);n.deleteContent(n.createSelection(S,"on"),{doNotAutoparagraph:!0})}}}s.preventDefault(),r.stop()},{context:Nt})}_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=Ke(n);if(a)return i.stop(),e.change(c=>{const l=n.getSelectedElement(),d=e.createPositionAt(l,a),u=c.createSelection(d),m=e.insertContent(r,u);return c.setSelection(u),m})},{priority:"high"})}_enableInsertObjectIntegration(){const t=this.editor,n=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"insertObject",(i,r)=>{const[,s,a={}]=r;if(s&&!s.is("documentSelection"))return;const c=Ke(n);c&&(a.findOptimalPosition=c,r[3]=a)},{priority:"high"})}_enableDeleteContentIntegration(){const t=this.editor,n=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"deleteContent",(i,[r])=>{if(r&&!r.is("documentSelection"))return;Ke(n)&&i.stop()},{priority:"high"})}}function oI(o,t,e){const n=o.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(i){const r=this.toDomElement(i);return iI(r,t),rI(r),r});o.insert(o.createPositionAt(e,"end"),n)}function iI(o,t){for(const e of Pm){const n=new $t({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${e}`],title:t[e],"aria-hidden":"true"},children:[o.ownerDocument.importNode(eI,!0)]});o.appendChild(n.render())}}function rI(o){const t=new $t({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});o.appendChild(t.render())}function sI(o,t){let e=t;for(const n of t.getAncestors({parentFirst:!0})){if(n.childCount>1||o.isLimit(n))break;e=n}return e}function aI(o){const t=o.model;return(e,n)=>{const i=n.keyCode==tt.arrowup,r=n.keyCode==tt.arrowdown,s=n.shiftKey,a=t.document.selection;if(!i&&!r)return;const c=r;if(s&&dI(a,c))return;const l=cI(o,a,c);if(l){if(l.isCollapsed){if(a.isCollapsed)return;if(s)return}(l.isCollapsed||lI(o,l,c))&&(t.change(d=>{const u=c?l.end:l.start;if(s){const m=t.createSelection(a.anchor);m.setFocus(u),d.setSelection(m)}else d.setSelection(u)}),e.stop(),n.preventDefault(),n.stopPropagation())}}}function cI(o,t,e){const n=o.model;if(e){const i=t.isCollapsed?t.focus:t.getLastPosition(),r=Om(n,i,"forward");if(!r)return null;const s=n.createRange(i,r),a=Rm(n.schema,s,"backward");return a?n.createRange(i,a):null}else{const i=t.isCollapsed?t.focus:t.getFirstPosition(),r=Om(n,i,"backward");if(!r)return null;const s=n.createRange(r,i),a=Rm(n.schema,s,"forward");return a?n.createRange(a,i):null}}function Om(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 Rm(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}function lI(o,t,e){const n=o.model,i=o.view.domConverter;if(e){const l=n.createSelection(t.start);n.modifySelection(l),!l.focus.isAtEnd&&!t.start.isEqual(l.focus)&&(t=n.createRange(l.focus,t.end))}const r=o.mapper.toViewRange(t),s=i.viewRangeToDom(r),a=J.getDomRangeRects(s);let c;for(const l of a){if(c===void 0){c=Math.round(l.bottom);continue}if(Math.round(l.top)>=c)return!1;c=Math.max(c,Math.round(l.bottom))}return!0}function dI(o,t){return!o.isCollapsed&&o.isBackward==t}var jm=L(7153),Ma={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ma.insert="head",Ma.singleton=!0,R()(jm.Z,Ma),jm.Z.locals;class $n extends M{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[nI,Ee]}init(){const t=this.editor,e=t.editing.view,n=e.document;this.editor.editing.downcastDispatcher.on("selection",(i,r,s)=>{const a=s.writer,c=r.selection;if(c.isCollapsed)return;const l=c.getSelectedElement();if(!l)return;const d=t.editing.mapper.toViewElement(l);Nt(d)&&s.consumable.consume(c,"selection")&&a.setSelection(a.createRangeOn(d),{fake:!0,label:ZT(d)})}),this.editor.editing.downcastDispatcher.on("selection",(i,r,s)=>{this._clearPreviouslySelectedWidgets(s.writer);const a=s.writer,c=a.document.selection;let l=null;for(const d of c.getRanges())for(const u of d){const m=u.item;Nt(m)&&!hI(m,l)&&(a.addClass(Im,m),this._previouslySelected.add(m),l=m)}},{priority:"low"}),e.addObserver(Mi),this.listenTo(n,"mousedown",(...i)=>this._onMousedown(...i)),this.listenTo(n,"arrowKey",(...i)=>{this._handleSelectionChangeOnArrowKeyPress(...i)},{context:[Nt,"$text"]}),this.listenTo(n,"arrowKey",(...i)=>{this._preventDefaultOnArrowKeyPress(...i)},{context:"$root"}),this.listenTo(n,"arrowKey",aI(this.editor.editing),{context:"$text"}),this.listenTo(n,"delete",(i,r)=>{this._handleDelete(r.direction=="forward")&&(r.preventDefault(),i.stop())},{context:"$root"})}_onMousedown(t,e){const n=this.editor,i=n.editing.view,r=i.document;let s=e.target;if(e.domEvent.detail>=3){this._selectBlockContent(s)&&e.preventDefault();return}if(uI(s)||!Nt(s)&&(s=s.findAncestor(Nt),!s))return;g.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=gI(i.toModelElement(s),n.schema);return a?(n.change(c=>{const l=r.isLimit(a)?null:mI(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):!1}_handleSelectionChangeOnArrowKeyPress(t,e){const n=e.keyCode,i=this.editor.model,r=i.schema,s=i.document.selection,a=s.getSelectedElement(),c=Or(n,this.editor.locale.contentLanguageDirection),l=c=="down"||c=="right",d=c=="up"||c=="down";if(a&&r.isObject(a)){const m=l?s.getLastPosition():s.getFirstPosition(),p=r.getNearestSelectionRange(m,l?"forward":"backward");p&&(i.change(b=>{b.setSelection(p)}),e.preventDefault(),t.stop());return}if(!s.isCollapsed&&!e.shiftKey){const m=s.getFirstPosition(),p=s.getLastPosition(),b=m.nodeAfter,S=p.nodeBefore;(b&&r.isObject(b)||S&&r.isObject(S))&&(i.change(B=>{B.setSelection(l?p:m)}),e.preventDefault(),t.stop());return}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 n=this.editor.model.document.selection;if(!this.editor.model.canEditAt(n)||!n.isCollapsed)return;const i=this._getObjectElementNextToSelection(t);if(i)return this.editor.model.change(r=>{let s=n.anchor.parent;for(;s.isEmpty;){const a=s;s=a.parent,r.remove(a)}this._setSelectionOverElement(i)}),!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(Im,e);this._previouslySelected.clear()}}function uI(o){let t=o;for(;t;){if(t.is("editableElement")&&!t.is("rootElement"))return!0;if(Nt(t))return!1;t=t.parent}return!1}function hI(o,t){return t?Array.from(o.getAncestors()).includes(t):!1}function gI(o,t){for(const e of o.getAncestors({includeSelf:!0,parentFirst:!0})){if(t.checkChild(e,"$text"))return e;if(t.isLimit(e)&&!t.isObject(e))break}return null}function mI(o,t){const e=new we({startPosition:o});for(const{item:n}of e){if(t.isLimit(n)||!n.is("element"))return null;if(t.checkChild(n,"$text"))return n}return null}class $i extends M{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[Fi]}static get pluginName(){return"WidgetToolbarRepository"}init(){const t=this.editor;if(t.plugins.has("BalloonToolbar")){const e=t.plugins.get("BalloonToolbar");this.listenTo(e,"show",n=>{fI(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}const s=this.editor,a=s.t,c=new Os(s.locale);if(c.ariaLabel=e||a("Widget toolbar"),this._toolbarDefinitions.has(t))throw new w("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)this._isToolbarInBalloon(i)&&this._hideToolbar(i);else if(!this.editor.ui.focusTracker.isFocused)this._isToolbarVisible(i)&&this._hideToolbar(i);else{const s=r.getAncestors().length;s>t&&(t=s,e=r,n=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)?Fm(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:Vm(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);Fm(this.editor,i)}}))}_isToolbarVisible(t){return this._balloon.visibleView===t.view}_isToolbarInBalloon(t){return this._balloon.hasView(t.view)}}function Fm(o,t){const e=o.plugins.get("ContextualBalloon"),n=Vm(o,t);e.updatePosition(n)}function Vm(o,t){const e=o.editing.view,n=jt.defaultPositions;return{target:e.domConverter.mapViewToDom(t),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}function fI(o){const t=o.getSelectedElement();return!!(t&&Nt(t))}class pI extends st(){constructor(t){super(),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=t,this._referenceCoordinates=null}get originalWidth(){return this._originalWidth}get originalHeight(){return this._originalHeight}get originalWidthPercents(){return this._originalWidthPercents}get aspectRatio(){return this._aspectRatio}begin(t,e,n){const i=new J(e);this.activeHandlePosition=AI(t),this._referenceCoordinates=bI(e,CI(this.activeHandlePosition)),this._originalWidth=i.width,this._originalHeight=i.height,this._aspectRatio=i.width/i.height;const r=n.style.width;r&&r.match(/^\d+(\.\d*)?%$/)?this._originalWidthPercents=parseFloat(r):this._originalWidthPercents=kI(n,i)}update(t){this.proposedWidth=t.width,this.proposedHeight=t.height,this.proposedWidthPercents=t.widthPercents,this.proposedHandleHostWidth=t.handleHostWidth,this.proposedHandleHostHeight=t.handleHostHeight}}function kI(o,t){const e=o.parentElement;let n=parseFloat(e.ownerDocument.defaultView.getComputedStyle(e).width);const i=5;let r=0,s=e;for(;isNaN(n);){if(s=s.parentElement,++r>i)return 0;n=parseFloat(e.ownerDocument.defaultView.getComputedStyle(s).width)}return t.width/n*100}function bI(o,t){const e=new J(o),n=t.split("-"),i={x:n[1]=="right"?e.right:e.left,y:n[0]=="bottom"?e.bottom:e.top};return i.x+=o.ownerDocument.defaultView.scrollX,i.y+=o.ownerDocument.defaultView.scrollY,i}function wI(o){return`ck-widget__resizer__handle-${o}`}function AI(o){const t=["top-left","top-right","bottom-right","bottom-left"];for(const e of t)if(o.classList.contains(wI(e)))return e}function CI(o){const t=o.split("-"),e={top:"bottom",bottom:"top",left:"right",right:"left"};return`${e[t[0]]}-${e[t[1]]}`}class _I extends G{constructor(){super();const t=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",t.to("_viewPosition",e=>e?`ck-orientation-${e}`:"")],style:{display:t.if("_isVisible","none",e=>!e)}},children:[{text:t.to("_label")}]})}_bindToState(t,e){this.bind("_isVisible").to(e,"proposedWidth",e,"proposedHeight",(n,i)=>n!==null&&i!==null),this.bind("_label").to(e,"proposedHandleHostWidth",e,"proposedHandleHostHeight",e,"proposedWidthPercents",(n,i,r)=>t.unit==="px"?`${n}×${i}`:`${r}%`),this.bind("_viewPosition").to(e,"activeHandlePosition",e,"proposedHandleHostWidth",e,"proposedHandleHostHeight",(n,i,r)=>i<50||r<50?"above-center":n)}_dismiss(){this.unbind(),this._isVisible=!1}}class Hm extends st(){constructor(t){super(),this._viewResizerWrapper=null,this._options=t,this.set("isEnabled",!0),this.set("isSelected",!1),this.bind("isVisible").to(this,"isEnabled",this,"isSelected",(e,n)=>e&&n),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",e=>{!this.state.proposedWidth&&!this.state.proposedWidthPercents&&(this._cleanup(),e.stop())},{priority:"high"})}get state(){return this._state}show(){this._options.editor.editing.view.change(e=>{e.removeClass("ck-hidden",this._viewResizerWrapper)})}hide(){this._options.editor.editing.view.change(e=>{e.addClass("ck-hidden",this._viewResizerWrapper)})}attach(){const t=this,e=this._options.viewElement;this._options.editor.editing.view.change(i=>{const r=i.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},function(s){const a=this.toDomElement(s);return t._appendHandles(a),t._appendSizeUI(a),a});i.insert(i.createPositionAt(e,"end"),r),i.addClass("ck-widget_with-resizer",e),this._viewResizerWrapper=r,this.isVisible||this.hide()}),this.on("change:isVisible",()=>{this.isVisible?(this.show(),this.redraw()):this.hide()})}begin(t){this._state=new pI(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(t,this._getHandleHost(),this._getResizeHost())}updateSize(t){const e=this._proposeNewSize(t);this._options.editor.editing.view.change(l=>{const d=this._options.unit||"%",u=(d==="%"?e.widthPercents:e.width)+d;l.setStyle("width",u,this._options.viewElement)});const i=this._getHandleHost(),r=new J(i),s=Math.round(r.width),a=Math.round(r.height),c=new J(i);e.width=Math.round(c.width),e.height=Math.round(c.height),this.redraw(r),this.state.update({...e,handleHostWidth:s,handleHostHeight:a})}commit(){const t=this._options.unit||"%",e=(t==="%"?this.state.proposedWidthPercents:this.state.proposedWidth)+t;this._options.editor.editing.view.change(()=>{this._cleanup(),this._options.onCommit(e)})}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(t){const e=this._domResizerWrapper;if(!xI(e))return;const n=e.parentElement,i=this._getHandleHost(),r=this._viewResizerWrapper,s=[r.getStyle("width"),r.getStyle("height"),r.getStyle("left"),r.getStyle("top")];let a;if(n.isSameNode(i)){const c=t||new J(i);a=[c.width+"px",c.height+"px",void 0,void 0]}else a=[i.offsetWidth+"px",i.offsetHeight+"px",i.offsetLeft+"px",i.offsetTop+"px"];Ft(s,a)!=="same"&&this._options.editor.editing.view.change(c=>{c.setStyle({width:a[0],height:a[1],left:a[2],top:a[3]},r)})}containsHandle(t){return this._domResizerWrapper.contains(t)}static isResizeHandle(t){return t.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss(),this._options.editor.editing.view.change(e=>{e.setStyle("width",this._initialViewWidth,this._options.viewElement)})}_proposeNewSize(t){const e=this.state,n=yI(t),i=this._options.isCentered?this._options.isCentered(this):!0,r={x:e._referenceCoordinates.x-(n.x+e.originalWidth),y:n.y-e.originalHeight-e._referenceCoordinates.y};i&&e.activeHandlePosition.endsWith("-right")&&(r.x=n.x-(e._referenceCoordinates.x+e.originalWidth)),i&&(r.x*=2);let s=Math.abs(e.originalWidth+r.x),a=Math.abs(e.originalHeight+r.y);return(s/e.aspectRatio>a?"width":"height")=="width"?a=s/e.aspectRatio:s=a*e.aspectRatio,{width:Math.round(s),height:Math.round(a),widthPercents:Math.min(Math.round(e.originalWidthPercents/e.originalWidth*s*100)/100,100)}}_getResizeHost(){const t=this._domResizerWrapper.parentElement;return this._options.getResizeHost(t)}_getHandleHost(){const t=this._domResizerWrapper.parentElement;return this._options.getHandleHost(t)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(t){const e=["top-left","top-right","bottom-right","bottom-left"];for(const n of e)t.appendChild(new $t({tag:"div",attributes:{class:`ck-widget__resizer__handle ${vI(n)}`}}).render())}_appendSizeUI(t){this._sizeView=new _I,this._sizeView.render(),t.appendChild(this._sizeView.element)}}function vI(o){return`ck-widget__resizer__handle-${o}`}function yI(o){return{x:o.pageX,y:o.pageY}}function xI(o){return o&&o.ownerDocument&&o.ownerDocument.contains(o)}var Um=L(4875),Ba={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ba.insert="head",Ba.singleton=!0,R()(Um.Z,Ba),Um.Z.locals;class Na extends M{constructor(){super(...arguments),this._resizers=new Map}static get pluginName(){return"WidgetResize"}init(){const t=this.editor.editing,e=U.window.document;this.set("selectedResizer",null),this.set("_activeResizer",null),t.view.addObserver(Mi),this._observer=new(Xt()),this.listenTo(t.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(e,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(e,"mouseup",this._mouseUpListener.bind(this)),this._redrawSelectedResizerThrottled=Po(()=>this.redrawSelectedResizer(),200),this.editor.ui.on("update",this._redrawSelectedResizerThrottled),this.editor.model.document.on("change",()=>{for(const[i,r]of this._resizers)i.isAttached()||(this._resizers.delete(i),r.destroy())},{priority:"lowest"}),this._observer.listenTo(U.window,"resize",this._redrawSelectedResizerThrottled);const n=this.editor.editing.view.document.selection;n.on("change",()=>{const i=n.getSelectedElement(),r=this.getResizerByViewElement(i)||null;r?this.select(r):this.deselect()})}redrawSelectedResizer(){this.selectedResizer&&this.selectedResizer.isVisible&&this.selectedResizer.redraw()}destroy(){super.destroy(),this._observer.stopListening();for(const t of this._resizers.values())t.destroy();this._redrawSelectedResizerThrottled.cancel()}select(t){this.deselect(),this.selectedResizer=t,this.selectedResizer.isSelected=!0}deselect(){this.selectedResizer&&(this.selectedResizer.isSelected=!1),this.selectedResizer=null}attachTo(t){const e=new Hm(t),n=this.editor.plugins;if(e.attach(),n.has("WidgetToolbarRepository")){const s=n.get("WidgetToolbarRepository");e.on("begin",()=>{s.forceDisabled("resize")},{priority:"lowest"}),e.on("cancel",()=>{s.clearForceDisabled("resize")},{priority:"highest"}),e.on("commit",()=>{s.clearForceDisabled("resize")},{priority:"highest"})}this._resizers.set(t.viewElement,e);const r=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(r)==e&&this.select(e),e}getResizerByViewElement(t){return this._resizers.get(t)}_getResizerByHandle(t){for(const e of this._resizers.values())if(e.containsHandle(t))return e}_mouseDownListener(t,e){const n=e.domTarget;Hm.isResizeHandle(n)&&(this._activeResizer=this._getResizerByHandle(n)||null,this._activeResizer&&(this._activeResizer.begin(n),t.stop(),e.preventDefault()))}_mouseMoveListener(t,e){this._activeResizer&&this._activeResizer.updateSize(e)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}const za=uo("px");class EI extends G{constructor(){super();const t=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",t.if("isVisible","ck-hidden",e=>!e)],style:{left:t.to("left",e=>za(e)),top:t.to("top",e=>za(e)),width:t.to("width",e=>za(e))}}})}}class Zi extends M{constructor(){super(...arguments),this.removeDropMarkerDelayed=Rr(()=>this.removeDropMarker(),40),this._updateDropMarkerThrottled=Po(t=>this._updateDropMarker(t),40),this._reconvertMarkerThrottled=Po(()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")},0),this._dropTargetLineView=new EI,this._domEmitter=new(Xt()),this._scrollables=new Map}static get pluginName(){return"DragDropTarget"}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:t}of this._scrollables.values())t.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(t,e,n,i,r,s){this.removeDropMarkerDelayed.cancel();const a=Gm(this.editor,t,e,n,i,r,s);if(a){if(s&&s.containsRange(a))return this.removeDropMarker();this._updateDropMarkerThrottled(a)}}getFinalDropRange(t,e,n,i,r,s){const a=Gm(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),u=e.view.domConverter.mapViewToDom(d),m=this._getScrollableRect(d),{scrollX:p,scrollY:b}=U.window,S=a?new J(a):null,B=l?new J(l):null,z=new J(u).excludeScrollbarsAndBorders(),V=S?S.bottom:z.top,X=B?B.top:z.bottom,at=U.window.getComputedStyle(u),ft=V<=X?(V+X)/2:X;if(m.top<ft&&ft<m.bottom){const H=z.left+parseFloat(at.paddingLeft),Y=z.right-parseFloat(at.paddingRight),q=Math.max(H+p,m.left),At=Math.min(Y+p,m.right);this._dropTargetLineView.set({isVisible:!0,left:q,top:ft+b,width:At-q})}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{const i=this.editor.editing.view.domConverter.mapViewToDom(t);n=SI(i),this._domEmitter.listenTo(n,"scroll",this._reconvertMarkerThrottled,{usePassive:!0});const r=new kt(n,this._reconvertMarkerThrottled);this._scrollables.set(e,{domElement:n,resizeObserver:r})}return new J(n).excludeScrollbarsAndBorders()}}function Gm(o,t,e,n,i,r,s){const a=o.model,c=o.editing.mapper;let d=Wm(o,t);for(;d;){if(!r){if(a.schema.checkChild(d,"$text")){if(e){const u=e[0].start,m=c.toModelPosition(u);if(!s||Array.from(s.getItems()).every(b=>a.schema.checkChild(m,b))){if(a.schema.checkChild(m,"$text"))return a.createRange(m);if(u)return Ki(o,Wm(o,u.parent),n,i)}}}else if(a.schema.isInline(d))return Ki(o,d,n,i)}if(a.schema.isBlock(d))return Ki(o,d,n,i);if(a.schema.checkChild(d,"$block")){const u=Array.from(d.getChildren()).filter(b=>b.is("element")&&!DI(o,b));let m=0,p=u.length;if(p==0)return a.createRange(a.createPositionAt(d,"end"));for(;m<p-1;){const b=Math.floor((m+p)/2);qm(o,u[b],n,i)=="before"?p=b:m=b}return Ki(o,u[m],n,i)}d=d.parent}return null}function DI(o,t){const e=o.editing.mapper,n=o.editing.view.domConverter,i=e.toViewElement(t),r=n.mapViewToDom(i);return U.window.getComputedStyle(r).float!="none"}function Ki(o,t,e,n){const i=o.model;return i.createRange(i.createPositionAt(t,qm(o,t,e,n)))}function qm(o,t,e,n){const i=o.editing.mapper,r=o.editing.view.domConverter,s=i.toViewElement(t),a=r.mapViewToDom(s),c=new J(a);return o.model.schema.isInline(t)?e<(c.left+c.right)/2?"before":"after":n<(c.top+c.bottom)/2?"before":"after"}function Wm(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)}function SI(o){let t=o;do{t=t.parentElement;const e=U.window.getComputedStyle(t).overflowY;if(e=="auto"||e=="scroll")break}while(t.tagName!="BODY");return t}class TI extends M{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new(Xt())}static get pluginName(){return"DragDropBlockToolbar"}init(){const t=this.editor;if(this.listenTo(t,"change:isReadOnly",(e,n,i)=>{i?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")}),g.isAndroid&&this.forceDisabled("noAndroidSupport"),t.plugins.has("BlockToolbar")){const n=t.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(n,"dragstart",(i,r)=>this._handleBlockDragStart(r)),this._domEmitter.listenTo(U.document,"dragover",(i,r)=>this._handleBlockDragging(r)),this._domEmitter.listenTo(U.document,"drop",(i,r)=>this._handleBlockDragging(r)),this._domEmitter.listenTo(U.document,"dragend",()=>this._handleBlockDragEnd(),{useCapture:!0}),this.isEnabled&&n.setAttribute("draggable","true"),this.on("change:isEnabled",(i,r,s)=>{n.setAttribute("draggable",s?"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(Uo).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(Uo).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 $m=L(799),Pa={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Pa.insert="head",Pa.singleton=!0,R()($m.Z,Pa),$m.Z.locals;class II extends M{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=Rr(()=>this._clearDraggableAttributes(),40),this._blockMode=!1,this._domEmitter=new(Xt())}static get pluginName(){return"DragDrop"}static get requires(){return[De,$n,Zi,TI]}init(){const t=this.editor,e=t.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,e.addObserver(Uo),e.addObserver(Mi),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)}),g.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(Zi);this.listenTo(i,"dragstart",(s,a)=>{if(a.target&&a.target.is("editableElement")){a.preventDefault();return}if(this._prepareDraggedRange(a.target),!this._draggedRange){a.preventDefault();return}this._draggingUid=qt(),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:d,domTarget:u,domEvent:m}=a,{clientX:p}=m;this._updatePreview({dataTransfer:d,domTarget:u,clientX:p}),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(U.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){a.dataTransfer.dropEffect="none";return}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"),g.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,n=t.editing.view.document,i=t.plugins.get(Zi);this.listenTo(n,"clipboardInput",(r,s)=>{if(s.method!="drop")return;const{clientX:a,clientY:c}=s.domEvent,l=i.getFinalDropRange(s.target,s.targetRanges,a,c,this._blockMode,this._draggedRange);if(!l){this._finalizeDragging(!1),r.stop();return}if(this._draggedRange&&this._draggingUid!=s.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),Zm(s.dataTransfer)=="move"&&this._draggedRange&&this._draggedRange.containsRange(l,!0)){this._finalizeDragging(!1),r.stop();return}s.targetRanges=[t.editing.mapper.toViewRange(l)]},{priority:"high"})}_setupContentInsertionIntegration(){const t=this.editor.plugins.get(De);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=Zm(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(g.isAndroid||!r)return;this._clearDraggableAttributesDelayed.cancel();let s=Km(r.target);if(g.isBlink&&!t.isReadOnly&&!s&&!n.selection.isCollapsed){const a=n.selection.getSelectedElement();(!a||!Nt(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",()=>{g.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(Zi).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(r=>{const s=n.createSelection(this._draggedRange);n.deleteContent(s,{doNotAutoparagraph:!0});const a=s.getFirstPosition().parent;a.isEmpty&&!n.schema.checkChild(a,"$text")&&n.schema.checkChild(a,"paragraph")&&r.insertElement("paragraph",a,0)}),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(t){const e=this.editor,n=e.model,i=n.document.selection,r=t?Km(t):null;if(r){const l=e.editing.mapper.toModelElement(r);this._draggedRange=Zt.fromRange(n.createRangeOn(l)),this._blockMode=n.schema.isBlock(l),e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop");return}if(i.isCollapsed&&!i.getFirstPosition().parent.isEmpty)return;const s=Array.from(i.getSelectedBlocks()),a=i.getFirstRange();if(s.length==0){this._draggedRange=Zt.fromRange(a);return}const c=Ym(n,s);if(s.length>1)this._draggedRange=Zt.fromRange(c),this._blockMode=!0;else if(s.length==1){const l=a.start.isTouching(c.start)&&a.end.isTouching(c.end);this._draggedRange=Zt.fromRange(l?c:a),this._blockMode=l}n.change(l=>l.setSelection(this._draggedRange.toRange()))}_updatePreview({dataTransfer:t,domTarget:e,clientX:n}){const i=this.editor.editing.view,r=i.document.selection.editableElement,s=i.domConverter.mapViewToDom(r),a=U.window.getComputedStyle(s);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=no(U.document,"div",{style:"position: fixed; left: -999999px;"}),U.document.body.appendChild(this._previewContainer));const c=new J(s);if(s.contains(e))return;const l=parseFloat(a.paddingLeft),d=no(U.document,"div");d.className="ck ck-content",d.style.width=a.width,d.style.paddingLeft=`${c.left-n+l}px`,g.isiOS&&(d.style.backgroundColor="white"),d.innerHTML=t.getData("text/html"),t.setDragImage(d,0,0),this._previewContainer.appendChild(d)}}function Zm(o){return g.isGecko?o.dropEffect:["all","copyMove"].includes(o.effectAllowed)?"move":"copy"}function Km(o){if(o.is("editableElement"))return null;if(o.hasClass("ck-widget__selection-handle"))return o.findAncestor(Nt);if(Nt(o))return o;const t=o.findAncestor(e=>Nt(e)||e.is("editableElement"));return Nt(t)?t:null}function Ym(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 Ym(o,[i])}return o.createRange(r,s)}class MI extends M{static get pluginName(){return"PastePlainText"}static get requires(){return[De]}init(){const t=this.editor,e=t.model,n=t.editing.view,i=n.document,r=e.document.selection;let s=!1;n.addObserver(Uo),this.listenTo(i,"keydown",(a,c)=>{s=c.shiftKey}),t.plugins.get(De).on("contentInsertion",(a,c)=>{!s&&!BI(c.content,e.schema)||e.change(l=>{const d=Array.from(r.getAttributes()).filter(([m])=>e.schema.getAttributeProperties(m).isFormatting);r.isCollapsed||e.deleteContent(r,{doNotAutoparagraph:!0}),d.push(...r.getAttributes());const u=l.createRangeIn(c.content);for(const m of u.getItems())m.is("$textProxy")&&l.setAttributes(d,m)})})}}function BI(o,t){if(o.childCount>1)return!1;const e=o.getChild(0);return t.isObject(e)?!1:Array.from(e.getAttributeKeys()).length==0}class La extends M{static get pluginName(){return"Clipboard"}static get requires(){return[De,II,MI]}}class NI extends Q{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)||!Qm(t.schema,n))do if(n=n.parent,!n)return;while(!Qm(t.schema,n));t.change(i=>{i.setSelection(n,"in")})}}function Qm(o,t){return o.isLimit(t)&&(o.checkChild(t,"$text")||o.checkChild(t,"paragraph"))}const zI=go("Ctrl+A");class PI extends M{static get pluginName(){return"SelectAllEditing"}init(){const t=this.editor,n=t.editing.view.document;t.commands.add("selectAll",new NI(t)),this.listenTo(n,"keydown",(i,r)=>{In(r)===zI&&(t.execute("selectAll"),r.preventDefault())})}}const LI='<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>';class OI extends M{static get pluginName(){return"SelectAllUI"}init(){const t=this.editor;t.ui.componentFactory.add("selectAll",e=>{const n=t.commands.get("selectAll"),i=new et(e),r=e.t;return i.set({label:r("Select all"),icon:LI,keystroke:"Ctrl+A",tooltip:!0}),i.bind("isEnabled").to(n,"isEnabled"),this.listenTo(i,"execute",()=>{t.execute("selectAll"),t.editing.view.focus()}),i})}}class RI extends M{static get requires(){return[PI,OI]}static get pluginName(){return"SelectAll"}}class Jm extends Q{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=>!FI(u,c));d.length&&(jI(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)),d=ED([s.getReversed()],c,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let u of d){const m=u.affectedSelectable;m&&!n.canEditAt(m)&&(u=new It(u.baseVersion)),e.addOperation(u),n.applyOperation(u),i.history.setOperationAsUndone(s,u)}}}}function jI(o){o.sort((t,e)=>t.start.isBefore(e.start)?-1:1);for(let t=1;t<o.length;t++){const n=o[t-1].getJoined(o[t],!0);n&&(t--,o.splice(t,2,n))}}function FI(o,t){return t.some(e=>e!==o&&e.containsRange(o,!0))}class VI extends Jm{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 HI extends Jm{execute(){const t=this._stack.pop(),e=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(e,()=>{const i=t.batch.operations[t.batch.operations.length-1].baseVersion+1,r=this.editor.model.document.history.getOperations(i);this._restoreSelection(t.selection.ranges,t.selection.isBackward,r),this._undo(t.batch,e)}),this.refresh()}}class UI extends M{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const t=this.editor;this._undoCommand=new VI(t),this._redoCommand=new HI(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(e,n)=>{const i=n[0];if(!i.isDocumentOperation)return;const r=i.batch,s=this._redoCommand.createdBatches.has(r),a=this._undoCommand.createdBatches.has(r);this._batchRegistry.has(r)||(this._batchRegistry.add(r),r.isUndoable&&(s?this._undoCommand.addBatch(r):a||(this._undoCommand.addBatch(r),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(e,n,i)=>{this._redoCommand.addBatch(i)}),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo")}}const Xm='<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>',tf='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>';class GI extends M{static get pluginName(){return"UndoUI"}init(){const t=this.editor,e=t.locale,n=t.t,i=e.uiLanguageDirection=="ltr"?Xm:tf,r=e.uiLanguageDirection=="ltr"?tf:Xm;this._addButton("undo",n("Undo"),"CTRL+Z",i),this._addButton("redo",n("Redo"),"CTRL+Y",r)}_addButton(t,e,n,i){const r=this.editor;r.ui.componentFactory.add(t,s=>{const a=r.commands.get(t),c=new et(s);return c.set({label:e,icon:i,keystroke:n,tooltip:!0}),c.bind("isEnabled").to(a,"isEnabled"),this.listenTo(c,"execute",()=>{r.execute(t),r.editing.view.focus()}),c})}}class Yi extends M{static get requires(){return[UI,GI]}static get pluginName(){return"Undo"}}class qI extends M{static get requires(){return[La,Ho,RI,yT,eT,Yi]}static get pluginName(){return"Essentials"}}class WI extends Q{constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=e.selection.getAttribute(this.attributeKey),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,i=e.document.selection,r=t.value,s=t.batch,a=c=>{if(i.isCollapsed)r?c.setSelectionAttribute(this.attributeKey,r):c.removeSelectionAttribute(this.attributeKey);else{const l=e.schema.getValidRanges(i.getRanges(),this.attributeKey);for(const d of l)r?c.setAttribute(this.attributeKey,r,d):c.removeAttribute(this.attributeKey,d)}};s?e.enqueueChange(s,c=>{a(c)}):e.change(c=>{a(c)})}}const Se="fontColor";function $I(o){return t=>YI(t.getStyle(o))}function ZI(o){return(t,{writer:e})=>e.createAttributeElement("span",{style:`${o}:${t}`},{priority:7})}function KI({dropdownView:o,colors:t,columns:e,removeButtonLabel:n,colorPickerLabel:i,documentColorsLabel:r,documentColorsCount:s,colorPickerViewConfig:a}){const c=o.locale,l=new oS(c,{colors:t,columns:e,removeButtonLabel:n,colorPickerLabel:i,documentColorsLabel:r,documentColorsCount:s,colorPickerViewConfig:a});return o.colorSelectorView=l,o.panelView.children.add(l),l}function YI(o){return o.replace(/\s/g,"")}var ef=L(5991),Oa={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Oa.insert="head",Oa.singleton=!0,R()(ef.Z,Oa),ef.Z.locals;class QI extends WI{constructor(t){super(t,Se)}}class JI extends M{static get pluginName(){return"FontColorEditing"}constructor(t){super(t),t.config.define(Se,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),t.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{color:/[\s\S]+/}},model:{key:Se,value:$I("color")}}),t.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{color:/^#?\w+$/}},model:{key:Se,value:e=>e.getAttribute("color")}}),t.conversion.for("downcast").attributeToElement({model:Se,view:ZI("color")}),t.commands.add(Se,new QI(t)),t.model.schema.extend("$text",{allowAttributes:Se}),t.model.schema.setAttributeProperties(Se,{isFormatting:!0,copyOnEnter:!0})}}class XI extends M{constructor(t,{commandName:e,componentName:n,icon:i,dropdownLabel:r}){super(t),this.commandName=e,this.componentName=n,this.icon=i,this.dropdownLabel=r,this.columns=t.config.get(`${this.componentName}.columns`),this.colorSelectorView=void 0}init(){const t=this.editor,e=t.locale,n=e.t,i=t.commands.get(this.commandName),r=t.config.get(this.componentName),s=Jv(r.colors),a=Qv(e,s),c=r.documentColors,l=r.colorPicker!==!1;t.ui.componentFactory.add(this.componentName,d=>{const u=de(d);let m=!1;return this.colorSelectorView=KI({dropdownView:u,colors:a.map(p=>({label:p.label,color:p.model,options:{hasBorder:p.hasBorder}})),columns:this.columns,removeButtonLabel:n("Remove color"),colorPickerLabel:n("Color picker"),documentColorsLabel:c!==0?n("Document colors"):"",documentColorsCount:c===void 0?this.columns:c,colorPickerViewConfig:l?r.colorPicker||{}:!1}),this.colorSelectorView.bind("selectedColor").to(i,"value"),u.buttonView.set({label:this.dropdownLabel,icon:this.icon,tooltip:!0}),u.extendTemplate({attributes:{class:"ck-color-ui-dropdown"}}),u.bind("isEnabled").to(i),this.colorSelectorView.on("execute",(p,b)=>{u.isOpen&&t.execute(this.commandName,{value:b.value,batch:this._undoStepBatch}),b.source!=="colorPicker"&&t.editing.view.focus(),b.source==="colorPickerSaveButton"&&(u.isOpen=!1)}),this.colorSelectorView.on("colorPicker:show",()=>{this._undoStepBatch=t.model.createBatch()}),this.colorSelectorView.on("colorPicker:cancel",()=>{this._undoStepBatch.operations.length&&(u.isOpen=!1,t.execute("undo",this._undoStepBatch)),t.editing.view.focus()}),u.on("change:isOpen",(p,b,S)=>{m||(m=!0,u.colorSelectorView.appendUI()),S&&(c!==0&&this.colorSelectorView.updateDocumentColors(t.model,this.componentName),this.colorSelectorView.updateSelectedColors(),this.colorSelectorView.showColorGridsFragment())}),qs(u,()=>u.colorSelectorView.colorGridsFragmentView.staticColorsGrid.items.find(p=>p.isOn)),u})}}const tM='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.4 10.3 10 4.5l-2.4 5.8h4.8zm.5 1.2H7.1L5.7 15H4.2l5-12h1.6l5 12h-1.5L13 11.5zm3.1 7H4a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2z"/></svg>';class eM extends XI{constructor(t){const e=t.locale.t;super(t,{commandName:Se,componentName:Se,icon:tM,dropdownLabel:e("Font Color")})}static get pluginName(){return"FontColorUI"}}class nM extends M{static get requires(){return[JI,eM]}static get pluginName(){return"FontColor"}}class oM extends Q{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}refresh(){const t=this.editor.model,e=t.document,n=Tt(e.selection.getSelectedBlocks());this.value=!!n&&n.is("element","paragraph"),this.isEnabled=!!n&&nf(n,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")&&nf(a,e.schema)&&r.rename(a,"paragraph")})}}function nf(o,t){return t.checkChild(o.parent,"paragraph")&&!t.isObject(o)}class iM extends Q{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}}class qo extends M{static get pluginName(){return"Paragraph"}init(){const t=this.editor,e=t.model;t.commands.add("paragraph",new oM(t)),t.commands.add("insertParagraph",new iM(t)),e.schema.register("paragraph",{inheritAllFrom:"$block"}),t.conversion.elementToElement({model:"paragraph",view:"p"}),t.conversion.for("upcast").elementToElement({model:(n,{writer:i})=>!qo.paragraphLikeElements.has(n.name)||n.isEmpty?null:i.createElement("paragraph"),view:/.+/,converterPriority:"low"})}}qo.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class rM extends Q{constructor(t,e){super(t),this.modelElements=e}refresh(){const t=Tt(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some(e=>of(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=>of(a,i,e.schema));for(const a of s)a.is("element",i)||r.rename(a,i)})}}function of(o,t,e){return e.checkChild(o.parent,t)&&!e.isObject(o)}const rf="paragraph";class sM extends M{static get pluginName(){return"HeadingEditing"}constructor(t){super(t),t.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[qo]}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 rM(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(c=>s.is("element",c.model))&&!s.is("element",rf)&&s.childCount===0&&r.writer.rename(s,rf)})}_addDefaultH1Conversion(t){t.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:Qt.low+1})}}function aM(o){const t=o.t,e={Paragraph:t("Paragraph"),"Heading 1":t("Heading 1"),"Heading 2":t("Heading 2"),"Heading 3":t("Heading 3"),"Heading 4":t("Heading 4"),"Heading 5":t("Heading 5"),"Heading 6":t("Heading 6")};return o.config.get("heading.options").map(n=>{const i=e[n.title];return i&&i!=n.title&&(n.title=i),n})}var sf=L(4249),Ra={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ra.insert="head",Ra.singleton=!0,R()(sf.Z,Ra),sf.Z.locals;class cM extends M{static get pluginName(){return"HeadingUI"}init(){const t=this.editor,e=t.t,n=aM(t),i=e("Choose heading"),r=e("Heading");t.ui.componentFactory.add("heading",s=>{const a={},c=new te,l=t.commands.get("heading"),d=t.commands.get("paragraph"),u=[l];for(const p of n){const b={type:"button",model:new la({label:p.title,class:p.class,role:"menuitemradio",withText:!0})};p.model==="paragraph"?(b.model.bind("isOn").to(d,"value"),b.model.set("commandName","paragraph"),u.push(d)):(b.model.bind("isOn").to(l,"value",S=>S===p.model),b.model.set({commandName:"heading",commandValue:p.model})),c.add(b),a[p.model]=p.title}const m=de(s);return Gs(m,c,{ariaLabel:r,role:"menu"}),m.buttonView.set({ariaLabel:r,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:r}),m.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),m.bind("isEnabled").toMany(u,"isEnabled",(...p)=>p.some(b=>b)),m.buttonView.bind("label").to(l,"value",d,"value",(p,b)=>{const S=p||b&&"paragraph";return typeof S=="boolean"||!a[S]?i:a[S]}),this.listenTo(m,"execute",p=>{const{commandName:b,commandValue:S}=p.source;t.execute(b,S?{value:S}:void 0),t.editing.view.focus()}),m})}}class lM extends M{static get requires(){return[sM,cM]}static get pluginName(){return"Heading"}}function dM(o,t,e,n){var i=-1,r=o==null?0:o.length;for(n&&r&&(e=o[++i]);++i<r;)e=t(e,o[i],i,o);return e}const uM=dM;function hM(o){return function(t){return o==null?void 0:o[t]}}const gM=hM;var mM={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},fM=gM(mM);const pM=fM;var kM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bM="\\u0300-\\u036f",wM="\\ufe20-\\ufe2f",AM="\\u20d0-\\u20ff",CM=bM+wM+AM,_M="["+CM+"]",vM=RegExp(_M,"g");function yM(o){return o=ko(o),o&&o.replace(kM,pM).replace(vM,"")}const xM=yM;var EM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function DM(o){return o.match(EM)||[]}const SM=DM;var TM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function IM(o){return TM.test(o)}const MM=IM;var af="\\ud800-\\udfff",BM="\\u0300-\\u036f",NM="\\ufe20-\\ufe2f",zM="\\u20d0-\\u20ff",PM=BM+NM+zM,cf="\\u2700-\\u27bf",lf="a-z\\xdf-\\xf6\\xf8-\\xff",LM="\\xac\\xb1\\xd7\\xf7",OM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",RM="\\u2000-\\u206f",jM=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",df="A-Z\\xc0-\\xd6\\xd8-\\xde",FM="\\ufe0e\\ufe0f",uf=LM+OM+RM+jM,hf="['’]",gf="["+uf+"]",VM="["+PM+"]",mf="\\d+",HM="["+cf+"]",ff="["+lf+"]",pf="[^"+af+uf+mf+cf+lf+df+"]",UM="\\ud83c[\\udffb-\\udfff]",GM="(?:"+VM+"|"+UM+")",qM="[^"+af+"]",kf="(?:\\ud83c[\\udde6-\\uddff]){2}",bf="[\\ud800-\\udbff][\\udc00-\\udfff]",Zn="["+df+"]",WM="\\u200d",wf="(?:"+ff+"|"+pf+")",$M="(?:"+Zn+"|"+pf+")",Af="(?:"+hf+"(?:d|ll|m|re|s|t|ve))?",Cf="(?:"+hf+"(?:D|LL|M|RE|S|T|VE))?",_f=GM+"?",vf="["+FM+"]?",ZM="(?:"+WM+"(?:"+[qM,kf,bf].join("|")+")"+vf+_f+")*",KM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",YM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",QM=vf+_f+ZM,JM="(?:"+[HM,kf,bf].join("|")+")"+QM,XM=RegExp([Zn+"?"+ff+"+"+Af+"(?="+[gf,Zn,"$"].join("|")+")",$M+"+"+Cf+"(?="+[gf,Zn+wf,"$"].join("|")+")",Zn+"?"+wf+"+"+Af,Zn+"+"+Cf,YM,KM,mf,JM].join("|"),"g");function tB(o){return o.match(XM)||[]}const eB=tB;function nB(o,t,e){return o=ko(o),t=e?void 0:t,t===void 0?MM(o)?eB(o):SM(o):o.match(t)||[]}const oB=nB;var iB="['’]",rB=RegExp(iB,"g");function sB(o){return function(t){return uM(oB(xM(t).replace(rB,"")),o,"")}}const aB=sB;function cB(o,t,e){var n=o.length;return e=e===void 0?n:e,!t&&e>=n?o:Au(o,t,e)}const lB=cB;var dB="\\ud800-\\udfff",uB="\\u0300-\\u036f",hB="\\ufe20-\\ufe2f",gB="\\u20d0-\\u20ff",mB=uB+hB+gB,fB="\\ufe0e\\ufe0f",pB="\\u200d",kB=RegExp("["+pB+dB+mB+fB+"]");function bB(o){return kB.test(o)}const yf=bB;function wB(o){return o.split("")}const AB=wB;var xf="\\ud800-\\udfff",CB="\\u0300-\\u036f",_B="\\ufe20-\\ufe2f",vB="\\u20d0-\\u20ff",yB=CB+_B+vB,xB="\\ufe0e\\ufe0f",EB="["+xf+"]",ja="["+yB+"]",Fa="\\ud83c[\\udffb-\\udfff]",DB="(?:"+ja+"|"+Fa+")",Ef="[^"+xf+"]",Df="(?:\\ud83c[\\udde6-\\uddff]){2}",Sf="[\\ud800-\\udbff][\\udc00-\\udfff]",SB="\\u200d",Tf=DB+"?",If="["+xB+"]?",TB="(?:"+SB+"(?:"+[Ef,Df,Sf].join("|")+")"+If+Tf+")*",IB=If+Tf+TB,MB="(?:"+[Ef+ja+"?",ja,Df,Sf,EB].join("|")+")",BB=RegExp(Fa+"(?="+Fa+")|"+MB+IB,"g");function NB(o){return o.match(BB)||[]}const zB=NB;function PB(o){return yf(o)?zB(o):AB(o)}const LB=PB;function OB(o){return function(t){t=ko(t);var e=yf(t)?LB(t):void 0,n=e?e[0]:t.charAt(0),i=e?lB(e,1).join(""):t.slice(1);return n[o]()+i}}var RB=OB("toUpperCase");const Mf=RB;var jB=aB(function(o,t,e){return o+(e?" ":"")+Mf(t)});const FB=jB;function fn(o,t,e,n){t&&VB(o,t,n),e&&Te(o,e,n)}function Te(o,t,e){if(t.attributes)for(const[n,i]of Object.entries(t.attributes))o.setAttribute(n,i,e);t.styles&&o.setStyle(t.styles,e),t.classes&&o.addClass(t.classes,e)}function VB(o,t,e){if(t.attributes)for(const[n]of Object.entries(t.attributes))o.removeAttribute(n,e);if(t.styles)for(const n of Object.keys(t.styles))o.removeStyle(n,e);t.classes&&o.removeClass(t.classes,e)}function HB(o,t){const e=Pe(o);let n="attributes";for(n in t)n=="classes"?e[n]=Array.from(new Set([...o[n]||[],...t[n]])):e[n]={...o[n],...t[n]};return e}function Kn(o,t,e,n,i){const r=t.getAttribute(e),s={};for(const a of["attributes","styles","classes"]){if(a!=n){r&&r[a]&&(s[a]=r[a]);continue}if(n=="classes"){const l=new Set(r&&r.classes||[]);i(l),l.size&&(s[a]=Array.from(l));continue}const c=new Map(Object.entries(r&&r[a]||{}));i(c),c.size&&(s[a]=Object.fromEntries(c))}Object.keys(s).length?t.is("documentSelection")?o.setSelectionAttribute(e,s):o.setAttribute(e,s,t):r&&(t.is("documentSelection")?o.removeSelectionAttribute(e):o.removeAttribute(e,t))}function UB(o){return FB(o).replace(/ /g,"")}function he(o){return`html${UB(o)}Attributes`}function Va({model:o}){return(t,e)=>e.writer.createElement(o,{htmlContent:t.getCustomProperty("$rawContent")})}function GB(o,{view:t,isInline:e}){const n=o.t;return(i,{writer:r})=>{const s=n("HTML object"),a=Qi(t,i,r),c=i.getAttribute(he(t));r.addClass("html-object-embed__content",a),c&&Te(r,c,a);const l=r.createContainerElement(e?"span":"div",{class:"html-object-embed","data-html-object-embed-label":s},a);return Go(l,r,{label:s})}}function Qi(o,t,e){return e.createRawElement(o,null,(n,i)=>{i.setContentOf(n,t.getAttribute("htmlContent"))})}function qB({view:o,model:t,allowEmpty:e},n){return r=>{r.on(`element:${o}`,(s,a,c)=>{let l=n.processViewAttributes(a.viewItem,c);if(!(!l&&!c.consumable.test(a.viewItem,{name:!0}))){if(l=l||{},c.consumable.consume(a.viewItem,{name:!0}),a.modelRange||(a=Object.assign(a,c.convertChildren(a.viewItem,a.modelCursor))),e&&a.modelRange.isCollapsed&&Object.keys(l).length){const d=c.writer.createElement("htmlEmptyElement");if(!c.safeInsert(d,a.modelCursor))return;const u=c.getSplitParts(d);a.modelRange=c.writer.createRange(a.modelRange.start,c.writer.createPositionAfter(u[u.length-1])),c.updateConversionResult(d,a),i(d,l,c);return}for(const d of a.modelRange.getItems())i(d,l,c)}},{priority:"low"})};function i(r,s,a){if(a.schema.checkAttribute(r,t)){const c=r.getAttribute(t),l=HB(s,c||{});a.writer.setAttribute(t,l,r)}}}function Bf({model:o,view:t},e){return(n,{writer:i,consumable:r})=>{if(!n.hasAttribute(o))return null;const s=i.createContainerElement(t),a=n.getAttribute(o);return r.consume(n,`attribute:${o}`),Te(i,a,s),s.getFillerOffset=()=>null,e?Go(s,i):s}}function WB({priority:o,view:t}){return(e,n)=>{if(!e)return;const{writer:i}=n,r=i.createAttributeElement(t,null,{priority:o});return Te(i,e,r),r}}function Wo({view:o},t){return e=>{e.on(`element:${o}`,(n,i,r)=>{if(!i.modelRange||i.modelRange.isCollapsed)return;const s=t.processViewAttributes(i.viewItem,r);s&&r.writer.setAttribute(he(i.viewItem.name),s,i.modelRange)},{priority:"low"})}}function $o({view:o,model:t}){return e=>{e.on(`attribute:${he(o)}:${t}`,(n,i,r)=>{if(!r.consumable.consume(i.item,n.name))return;const{attributeOldValue:s,attributeNewValue:a}=i,c=r.writer,l=r.mapper.toViewElement(i.item);fn(c,s,a,l)})}}const Nf={block:[{model:"codeBlock",view:"pre"},{model:"paragraph",view:"p"},{model:"blockQuote",view:"blockquote"},{model:"listItem",view:"li"},{model:"pageBreak",view:"div"},{model:"rawHtml",view:"div"},{model:"table",view:"table"},{model:"tableRow",view:"tr"},{model:"tableCell",view:"td"},{model:"tableCell",view:"th"},{model:"tableColumnGroup",view:"colgroup"},{model:"tableColumn",view:"col"},{model:"caption",view:"caption"},{model:"caption",view:"figcaption"},{model:"imageBlock",view:"img"},{model:"imageInline",view:"img"},{model:"htmlP",view:"p",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlBlockquote",view:"blockquote",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlTable",view:"table",modelSchema:{allowWhere:"$block",isBlock:!0}},{model:"htmlTbody",view:"tbody",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlThead",view:"thead",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlTfoot",view:"tfoot",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlCaption",view:"caption",modelSchema:{allowIn:"htmlTable",allowChildren:"$text",isBlock:!1}},{model:"htmlColgroup",view:"colgroup",modelSchema:{allowIn:"htmlTable",allowChildren:"col",isBlock:!1}},{model:"htmlCol",view:"col",modelSchema:{allowIn:"htmlColgroup",isBlock:!1}},{model:"htmlTr",view:"tr",modelSchema:{allowIn:["htmlTable","htmlThead","htmlTbody"],isLimit:!0}},{model:"htmlTd",view:"td",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container",isLimit:!0,isBlock:!1}},{model:"htmlTh",view:"th",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container",isLimit:!0,isBlock:!1}},{model:"htmlFigure",view:"figure",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlFigcaption",view:"figcaption",modelSchema:{allowIn:"htmlFigure",allowChildren:"$text",isBlock:!1}},{model:"htmlAddress",view:"address",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlAside",view:"aside",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlMain",view:"main",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlDetails",view:"details",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlSummary",view:"summary",modelSchema:{allowChildren:"$text",allowIn:"htmlDetails",isBlock:!1}},{model:"htmlDiv",view:"div",paragraphLikeModel:"htmlDivParagraph",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlFieldset",view:"fieldset",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlLegend",view:"legend",modelSchema:{allowIn:"htmlFieldset",allowChildren:"$text"}},{model:"htmlHeader",view:"header",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlFooter",view:"footer",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlForm",view:"form",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlHgroup",view:"hgroup",modelSchema:{allowChildren:["htmlH1","htmlH2","htmlH3","htmlH4","htmlH5","htmlH6"],isBlock:!1}},{model:"htmlH1",view:"h1",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH2",view:"h2",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH3",view:"h3",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH4",view:"h4",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH5",view:"h5",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH6",view:"h6",modelSchema:{inheritAllFrom:"$block"}},{model:"$htmlList",modelSchema:{allowWhere:"$container",allowChildren:["$htmlList","htmlLi"],isBlock:!1}},{model:"htmlDir",view:"dir",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlMenu",view:"menu",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlUl",view:"ul",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlOl",view:"ol",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlLi",view:"li",modelSchema:{allowIn:"$htmlList",allowChildren:"$text",isBlock:!1}},{model:"htmlPre",view:"pre",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlArticle",view:"article",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlSection",view:"section",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlNav",view:"nav",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlDivDl",view:"div",modelSchema:{allowChildren:["htmlDt","htmlDd"],allowIn:"htmlDl"}},{model:"htmlDl",view:"dl",modelSchema:{allowWhere:"$container",allowChildren:["htmlDt","htmlDd","htmlDivDl"],isBlock:!1}},{model:"htmlDt",view:"dt",modelSchema:{allowChildren:"$block",isBlock:!1}},{model:"htmlDd",view:"dd",modelSchema:{allowChildren:"$block",isBlock:!1}},{model:"htmlCenter",view:"center",modelSchema:{inheritAllFrom:"$container",isBlock:!1}}],inline:[{model:"htmlLiAttributes",view:"li",appliesToBlock:!0,coupledAttribute:"listItemId"},{model:"htmlOlAttributes",view:"ol",appliesToBlock:!0,coupledAttribute:"listItemId"},{model:"htmlUlAttributes",view:"ul",appliesToBlock:!0,coupledAttribute:"listItemId"},{model:"htmlFigureAttributes",view:"figure",appliesToBlock:"table"},{model:"htmlTheadAttributes",view:"thead",appliesToBlock:"table"},{model:"htmlTbodyAttributes",view:"tbody",appliesToBlock:"table"},{model:"htmlFigureAttributes",view:"figure",appliesToBlock:"imageBlock"},{model:"htmlAcronym",view:"acronym",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlTt",view:"tt",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlFont",view:"font",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlTime",view:"time",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlVar",view:"var",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBig",view:"big",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSmall",view:"small",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSamp",view:"samp",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlQ",view:"q",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlOutput",view:"output",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlKbd",view:"kbd",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBdi",view:"bdi",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBdo",view:"bdo",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlAbbr",view:"abbr",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlA",view:"a",priority:5,coupledAttribute:"linkHref"},{model:"htmlStrong",view:"strong",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlB",view:"b",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlI",view:"i",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlEm",view:"em",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlS",view:"s",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlDel",view:"del",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlIns",view:"ins",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlU",view:"u",coupledAttribute:"underline",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSub",view:"sub",coupledAttribute:"subscript",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSup",view:"sup",coupledAttribute:"superscript",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlCode",view:"code",coupledAttribute:"code",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlMark",view:"mark",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSpan",view:"span",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlCite",view:"cite",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlLabel",view:"label",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlDfn",view:"dfn",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlObject",view:"object",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlIframe",view:"iframe",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlInput",view:"input",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlButton",view:"button",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlTextarea",view:"textarea",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlSelect",view:"select",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlVideo",view:"video",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlEmbed",view:"embed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlOembed",view:"oembed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlAudio",view:"audio",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlImg",view:"img",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlCanvas",view:"canvas",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlMeter",view:"meter",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlProgress",view:"progress",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlScript",view:"script",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlStyle",view:"style",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlCustomElement",view:"$customElement",modelSchema:{allowWhere:["$text","$block"],allowAttributesOf:"$inlineObject",isInline:!0}}]};var $B=ds(function(o,t,e,n){_u(o,t,e,n)});const ZB=$B;class Yn extends M{constructor(){super(...arguments),this._definitions=[]}static get pluginName(){return"DataSchema"}init(){for(const t of Nf.block)this.registerBlockElement(t);for(const t of Nf.inline)this.registerInlineElement(t)}registerBlockElement(t){this._definitions.push({...t,isBlock:!0})}registerInlineElement(t){this._definitions.push({...t,isInline:!0})}extendBlockElement(t){this._extendDefinition({...t,isBlock:!0})}extendInlineElement(t){this._extendDefinition({...t,isInline:!0})}getDefinitionsForView(t,e=!1){const n=new Set;for(const i of this._getMatchingViewDefinitions(t)){if(e)for(const r of this._getReferences(i.model))n.add(r);n.add(i)}return n}getDefinitionsForModel(t){return this._definitions.filter(e=>e.model==t)}_getMatchingViewDefinitions(t){return this._definitions.filter(e=>e.view&&KB(t,e.view))}*_getReferences(t){const e=["inheritAllFrom","inheritTypesFrom","allowWhere","allowContentOf","allowAttributesOf"],n=this._definitions.filter(i=>i.model==t);for(const{modelSchema:i}of n)if(i)for(const r of e)for(const s of _t(i[r]||[])){const a=this._definitions.filter(c=>c.model==s);for(const c of a)s!==t&&(yield*this._getReferences(c.model),yield c)}}_extendDefinition(t){const e=Array.from(this._definitions.entries()).filter(([,n])=>n.model==t.model);if(e.length==0){this._definitions.push(t);return}for(const[n,i]of e)this._definitions[n]=ZB({},i,t,(r,s)=>Array.isArray(r)?r.concat(s):void 0)}}function KB(o,t){return typeof o=="string"?o===t:o instanceof RegExp?o.test(t):!1}function YB(o,t,e,n){for(var i=o.length,r=e+(n?1:-1);n?r--:++r<i;)if(t(o[r],r,o))return r;return-1}const QB=YB;function JB(o){return o!==o}const XB=JB;function t4(o,t,e){for(var n=e-1,i=o.length;++n<i;)if(o[n]===t)return n;return-1}const e4=t4;function n4(o,t,e){return t===t?e4(o,t,e):QB(o,XB,e)}const o4=n4;function i4(o,t,e,n){for(var i=e-1,r=o.length;++i<r;)if(n(o[i],t))return i;return-1}const r4=i4;var s4=Array.prototype,zf=s4.splice;function a4(o,t,e,n){var i=n?r4:o4,r=-1,s=t.length,a=o;for(o===t&&(t=vr(t)),e&&(a=fu(o,oi(e)));++r<s;)for(var c=0,l=t[r],d=e?e(l):l;(c=i(a,d,c,n))>-1;)a!==o&&zf.call(a,c,1),zf.call(o,c,1);return o}const c4=a4;function l4(o,t){return o&&o.length&&t&&t.length?c4(o,t):o}var d4=yu(l4);const u4=d4;var Pf=L(1710),Ha={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ha.insert="head",Ha.singleton=!0,R()(Pf.Z,Ha),Pf.Z.locals;class Dt extends M{constructor(t){super(t),this._dataSchema=t.plugins.get("DataSchema"),this._allowedAttributes=new ee,this._disallowedAttributes=new ee,this._allowedElements=new Set,this._disallowedElements=new Set,this._dataInitialized=!1,this._coupledAttributes=null,this._registerElementsAfterInit(),this._registerElementHandlers(),this._registerCoupledAttributesPostFixer(),this._registerAssociatedHtmlAttributesPostFixer()}static get pluginName(){return"DataFilter"}static get requires(){return[Yn,$n]}loadAllowedConfig(t){for(const e of t){const n=e.name||/[\s\S]+/,i=Rf(e);this.allowElement(n),i.forEach(r=>this.allowAttributes(r))}}loadDisallowedConfig(t){for(const e of t){const n=e.name||/[\s\S]+/,i=Rf(e);i.length==0?this.disallowElement(n):i.forEach(r=>this.disallowAttributes(r))}}loadAllowedEmptyElementsConfig(t){for(const e of t)this.allowEmptyElement(e)}allowElement(t){for(const e of this._dataSchema.getDefinitionsForView(t,!0))this._addAllowedElement(e),this._coupledAttributes=null}disallowElement(t){for(const e of this._dataSchema.getDefinitionsForView(t,!1))this._disallowedElements.add(e.view)}allowEmptyElement(t){for(const e of this._dataSchema.getDefinitionsForView(t,!0))e.isInline&&this._dataSchema.extendInlineElement({...e,allowEmpty:!0})}allowAttributes(t){this._allowedAttributes.add(t)}disallowAttributes(t){this._disallowedAttributes.add(t)}processViewAttributes(t,e){return Lf(t,e,this._disallowedAttributes),Lf(t,e,this._allowedAttributes)}_addAllowedElement(t){if(!this._allowedElements.has(t)){if(this._allowedElements.add(t),"appliesToBlock"in t&&typeof t.appliesToBlock=="string")for(const e of this._dataSchema.getDefinitionsForModel(t.appliesToBlock))e.isBlock&&this._addAllowedElement(e);this._dataInitialized&&this.editor.data.once("set",()=>{this._fireRegisterEvent(t)},{priority:Qt.highest+1})}}_registerElementsAfterInit(){this.editor.data.on("init",()=>{this._dataInitialized=!0;for(const t of this._allowedElements)this._fireRegisterEvent(t)},{priority:Qt.highest+1})}_registerElementHandlers(){this.on("register",(t,e)=>{const n=this.editor.model.schema;if(e.isObject&&!n.isRegistered(e.model))this._registerObjectElement(e);else if(e.isBlock)this._registerBlockElement(e);else if(e.isInline)this._registerInlineElement(e);else throw new w("data-filter-invalid-definition",null,e);t.stop()},{priority:"lowest"})}_registerCoupledAttributesPostFixer(){const t=this.editor.model,e=t.document.selection;t.document.registerPostFixer(n=>{const i=t.document.differ.getChanges();let r=!1;const s=this._getCoupledAttributesMap();for(const a of i){if(a.type!="attribute"||a.attributeNewValue!==null)continue;const c=s.get(a.attributeKey);if(c)for(const{item:l}of a.range.getWalker({shallow:!0}))for(const d of c)l.hasAttribute(d)&&(n.removeAttribute(d,l),r=!0)}return r}),this.listenTo(e,"change:attribute",(n,{attributeKeys:i})=>{const r=new Set,s=this._getCoupledAttributesMap();for(const a of i){if(e.hasAttribute(a))continue;const c=s.get(a);if(c)for(const l of c)e.hasAttribute(l)&&r.add(l)}r.size!=0&&t.change(a=>{for(const c of r)a.removeSelectionAttribute(c)})})}_registerAssociatedHtmlAttributesPostFixer(){const t=this.editor.model;t.document.registerPostFixer(e=>{const n=t.document.differ.getChanges();let i=!1;for(const r of n)if(!(r.type!=="insert"||r.name==="$text"))for(const s of r.attributes.keys())!s.startsWith("html")||!s.endsWith("Attributes")||t.schema.checkAttribute(r.name,s)||(e.removeAttribute(s,r.position.nodeAfter),i=!0);return i})}_getCoupledAttributesMap(){if(this._coupledAttributes)return this._coupledAttributes;this._coupledAttributes=new Map;for(const t of this._allowedElements)if(t.coupledAttribute&&t.model){const e=this._coupledAttributes.get(t.coupledAttribute);e?e.push(t.model):this._coupledAttributes.set(t.coupledAttribute,[t.model])}return this._coupledAttributes}_fireRegisterEvent(t){t.view&&this._disallowedElements.has(t.view)||this.fire(t.view?`register:${t.view}`:"register",t)}_registerObjectElement(t){const e=this.editor,n=e.model.schema,i=e.conversion,{view:r,model:s}=t;n.register(s,t.modelSchema),r&&(n.extend(t.model,{allowAttributes:[he(r),"htmlContent"]}),e.data.registerRawContentMatcher({name:r}),i.for("upcast").elementToElement({view:r,model:Va(t),converterPriority:Qt.low+2}),i.for("upcast").add(Wo(t,this)),i.for("editingDowncast").elementToStructure({model:{name:s,attributes:[he(r)]},view:GB(e,t)}),i.for("dataDowncast").elementToElement({model:s,view:(a,{writer:c})=>Qi(r,a,c)}),i.for("dataDowncast").add($o(t)))}_registerBlockElement(t){const e=this.editor,n=e.model.schema,i=e.conversion,{view:r,model:s}=t;if(!n.isRegistered(t.model)){if(n.register(t.model,t.modelSchema),!r)return;i.for("upcast").elementToElement({model:s,view:r,converterPriority:Qt.low+2}),i.for("downcast").elementToElement({model:s,view:r})}r&&(n.extend(t.model,{allowAttributes:he(r)}),i.for("upcast").add(Wo(t,this)),i.for("downcast").add($o(t)))}_registerInlineElement(t){const e=this.editor,n=e.model.schema,i=e.conversion,r=t.model;t.appliesToBlock||(n.extend("$text",{allowAttributes:r}),t.attributeProperties&&n.setAttributeProperties(r,t.attributeProperties),i.for("upcast").add(qB(t,this)),i.for("downcast").attributeToElement({model:r,view:WB(t)}),t.allowEmpty&&(n.setAttributeProperties(r,{copyFromObject:!1}),n.isRegistered("htmlEmptyElement")||n.register("htmlEmptyElement",{inheritAllFrom:"$inlineObject"}),e.data.htmlProcessor.domConverter.registerInlineObjectMatcher(s=>s.name==t.view&&s.isEmpty&&Array.from(s.getAttributeKeys()).length?{name:!0}:null),i.for("editingDowncast").elementToElement({model:"htmlEmptyElement",view:Bf(t,!0)}),i.for("dataDowncast").elementToElement({model:"htmlEmptyElement",view:Bf(t)})))}}function Lf(o,t,e){const n=h4(o,t,e),{attributes:i,styles:r,classes:s}=m4(n),a={};if(i.size)for(const c of i)ud(c)||i.delete(c);return i.size&&(a.attributes=Of(i,c=>o.getAttribute(c))),r.size&&(a.styles=Of(r,c=>o.getStyle(c))),s.size&&(a.classes=Array.from(s)),Object.keys(a).length?a:null}function h4(o,{consumable:t},e){const n=e.matchAll(o)||[],i=[];for(const r of n)g4(t,o,r),delete r.match.name,t.consume(o,r.match),i.push(r);return i}function g4(o,t,e){for(const n of["attributes","classes","styles"]){const i=e.match[n];if(i)for(const r of Array.from(i))o.test(t,{[n]:[r]})||u4(i,r)}}function m4(o){const t={attributes:new Set,classes:new Set,styles:new Set};for(const e of o)for(const n in t)(e.match[n]||[]).forEach(r=>t[n].add(r));return t}function Of(o,t){const e={};for(const n of o)t(n)!==void 0&&(e[n]=t(n));return e}function Ua(o,t){const{name:e}=o,n=o[t];return Wt(n)?Object.entries(n).map(([i,r])=>({name:e,[t]:{[i]:r}})):Array.isArray(n)?n.map(i=>({name:e,[t]:[i]})):[o]}function Rf(o){const{name:t,attributes:e,classes:n,styles:i}=o,r=[];return e&&r.push(...Ua({name:t,attributes:e},"attributes")),n&&r.push(...Ua({name:t,classes:n},"classes")),i&&r.push(...Ua({name:t,styles:i},"styles")),r}class f4 extends M{static get requires(){return[Dt]}static get pluginName(){return"CodeBlockElementSupport"}init(){if(!this.editor.plugins.has("CodeBlockEditing"))return;const t=this.editor.plugins.get(Dt);t.on("register:pre",(e,n)=>{if(n.model!=="codeBlock")return;const i=this.editor,r=i.model.schema,s=i.conversion;r.extend("codeBlock",{allowAttributes:["htmlPreAttributes","htmlContentAttributes"]}),s.for("upcast").add(p4(t)),s.for("downcast").add(k4()),e.stop()})}}function p4(o){return t=>{t.on("element:code",(e,n,i)=>{const r=n.viewItem,s=r.parent;if(!s||!s.is("element","pre"))return;a(s,"htmlPreAttributes"),a(r,"htmlContentAttributes");function a(c,l){const d=o.processViewAttributes(c,i);d&&i.writer.setAttribute(l,d,n.modelRange)}},{priority:"low"})}}function k4(){return o=>{o.on("attribute:htmlPreAttributes:codeBlock",(t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const{attributeOldValue:i,attributeNewValue:r}=e,a=n.mapper.toViewElement(e.item).parent;fn(n.writer,i,r,a)}),o.on("attribute:htmlContentAttributes:codeBlock",(t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const{attributeOldValue:i,attributeNewValue:r}=e,s=n.mapper.toViewElement(e.item);fn(n.writer,i,r,s)})}}class b4 extends M{static get requires(){return[Dt]}static get pluginName(){return"DualContentModelElementSupport"}init(){this.editor.plugins.get(Dt).on("register",(e,n)=>{const i=n,r=this.editor,s=r.model.schema,a=r.conversion;if(!i.paragraphLikeModel||s.isRegistered(i.model)||s.isRegistered(i.paragraphLikeModel))return;const c={model:i.paragraphLikeModel,view:i.view};s.register(i.model,i.modelSchema),s.register(c.model,{inheritAllFrom:"$block"}),a.for("upcast").elementToElement({view:i.view,model:(l,{writer:d})=>this._hasBlockContent(l)?d.createElement(i.model):d.createElement(c.model),converterPriority:Qt.low+.5}),a.for("downcast").elementToElement({view:i.view,model:i.model}),this._addAttributeConversion(i),a.for("downcast").elementToElement({view:c.view,model:c.model}),this._addAttributeConversion(c),e.stop()})}_hasBlockContent(t){const e=this.editor.editing.view,n=e.domConverter.blockElements;for(const i of e.createRangeIn(t).getItems())if(i.is("element")&&n.includes(i.name))return!0;return!1}_addAttributeConversion(t){const e=this.editor,n=e.conversion,i=e.plugins.get(Dt);e.model.schema.extend(t.model,{allowAttributes:he(t.view)}),n.for("upcast").add(Wo(t,i)),n.for("downcast").add($o(t))}}class w4 extends M{static get requires(){return[Yn,Ho]}static get pluginName(){return"HeadingElementSupport"}init(){const t=this.editor;if(!t.plugins.has("HeadingEditing"))return;const e=t.config.get("heading.options");this.registerHeadingElements(t,e)}registerHeadingElements(t,e){const n=t.plugins.get(Yn),i=[];for(const r of e)"model"in r&&"view"in r&&(n.registerBlockElement({view:r.view,model:r.model}),i.push(r.model));n.extendBlockElement({model:"htmlHgroup",modelSchema:{allowChildren:i}})}}function Ji(o,t,e){const n=o.createRangeOn(t);for(const{item:i}of n.getWalker())if(i.is("element",e))return i}class A4 extends M{static get requires(){return[Dt]}static get pluginName(){return"ImageElementSupport"}init(){const t=this.editor;if(!t.plugins.has("ImageInlineEditing")&&!t.plugins.has("ImageBlockEditing"))return;const e=t.model.schema,n=t.conversion,i=t.plugins.get(Dt);i.on("register:figure",()=>{n.for("upcast").add(v4(i))}),i.on("register:img",(r,s)=>{s.model!=="imageBlock"&&s.model!=="imageInline"||(e.isRegistered("imageBlock")&&e.extend("imageBlock",{allowAttributes:["htmlImgAttributes","htmlFigureAttributes","htmlLinkAttributes"]}),e.isRegistered("imageInline")&&e.extend("imageInline",{allowAttributes:["htmlA","htmlImgAttributes"]}),n.for("upcast").add(C4(i)),n.for("downcast").add(y4()),t.plugins.has("LinkImage")&&n.for("upcast").add(_4(i,t)),r.stop())})}}function C4(o){return t=>{t.on("element:img",(e,n,i)=>{if(!n.modelRange)return;const r=n.viewItem,s=o.processViewAttributes(r,i);s&&i.writer.setAttribute("htmlImgAttributes",s,n.modelRange)},{priority:"low"})}}function _4(o,t){const e=t.plugins.get("ImageUtils");return n=>{n.on("element:a",(i,r,s)=>{const a=r.viewItem;if(!e.findViewImgElement(a))return;const l=r.modelCursor.parent;if(!l.is("element","imageBlock"))return;const d=o.processViewAttributes(a,s);d&&s.writer.setAttribute("htmlLinkAttributes",d,l)},{priority:"low"})}}function v4(o){return t=>{t.on("element:figure",(e,n,i)=>{const r=n.viewItem;if(!n.modelRange||!r.hasClass("image"))return;const s=o.processViewAttributes(r,i);s&&i.writer.setAttribute("htmlFigureAttributes",s,n.modelRange)},{priority:"low"})}}function y4(){return o=>{t("htmlImgAttributes"),e("img","htmlImgAttributes"),e("figure","htmlFigureAttributes"),e("a","htmlLinkAttributes");function t(n){o.on(`attribute:${n}:imageInline`,(i,r,s)=>{if(!s.consumable.consume(r.item,i.name))return;const{attributeOldValue:a,attributeNewValue:c}=r,l=s.mapper.toViewElement(r.item);fn(s.writer,a,c,l)},{priority:"low"})}function e(n,i){o.on(`attribute:${i}:imageBlock`,(r,s,a)=>{if(!a.consumable.test(s.item,r.name))return;const{attributeOldValue:c,attributeNewValue:l}=s,d=a.mapper.toViewElement(s.item),u=Ji(a.writer,d,n);u&&(fn(a.writer,c,l,u),a.consumable.consume(s.item,r.name))},{priority:"low"}),n==="a"&&o.on("attribute:linkHref:imageBlock",(r,s,a)=>{if(!a.consumable.consume(s.item,"attribute:htmlLinkAttributes:imageBlock"))return;const c=a.mapper.toViewElement(s.item),l=Ji(a.writer,c,"a");Te(a.writer,s.item.getAttribute("htmlLinkAttributes"),l)},{priority:"low"})}}}class x4 extends M{static get requires(){return[Dt]}static get pluginName(){return"MediaEmbedElementSupport"}init(){const t=this.editor;if(!t.plugins.has("MediaEmbed")||t.config.get("mediaEmbed.previewsInData"))return;const e=t.model.schema,n=t.conversion,i=this.editor.plugins.get(Dt),r=this.editor.plugins.get(Yn),s=t.config.get("mediaEmbed.elementName");r.registerBlockElement({model:"media",view:s}),i.on("register:figure",()=>{n.for("upcast").add(D4(i))}),i.on(`register:${s}`,(a,c)=>{c.model==="media"&&(e.extend("media",{allowAttributes:[he(s),"htmlFigureAttributes"]}),n.for("upcast").add(E4(i,s)),n.for("dataDowncast").add(S4(s)),a.stop())})}}function E4(o,t){const e=(n,i,r)=>{const s=i.viewItem;a(s,he(t));function a(c,l){const d=o.processViewAttributes(c,r);d&&r.writer.setAttribute(l,d,i.modelRange)}};return n=>{n.on(`element:${t}`,e,{priority:"low"})}}function D4(o){return t=>{t.on("element:figure",(e,n,i)=>{const r=n.viewItem;if(!n.modelRange||!r.hasClass("media"))return;const s=o.processViewAttributes(r,i);s&&i.writer.setAttribute("htmlFigureAttributes",s,n.modelRange)},{priority:"low"})}}function S4(o){return t=>{e(o,he(o)),e("figure","htmlFigureAttributes");function e(n,i){t.on(`attribute:${i}:media`,(r,s,a)=>{if(!a.consumable.consume(s.item,r.name))return;const{attributeOldValue:c,attributeNewValue:l}=s,d=a.mapper.toViewElement(s.item),u=Ji(a.writer,d,n);fn(a.writer,c,l,u)})}}}class T4 extends M{static get requires(){return[Dt]}static get pluginName(){return"ScriptElementSupport"}init(){const t=this.editor.plugins.get(Dt);t.on("register:script",(e,n)=>{const i=this.editor,r=i.model.schema,s=i.conversion;r.register("htmlScript",n.modelSchema),r.extend("htmlScript",{allowAttributes:["htmlScriptAttributes","htmlContent"],isContent:!0}),i.data.registerRawContentMatcher({name:"script"}),s.for("upcast").elementToElement({view:"script",model:Va(n)}),s.for("upcast").add(Wo(n,t)),s.for("downcast").elementToElement({model:"htmlScript",view:(a,{writer:c})=>Qi("script",a,c)}),s.for("downcast").add($o(n)),e.stop()})}}class I4 extends M{static get requires(){return[Dt]}static get pluginName(){return"TableElementSupport"}init(){const t=this.editor;if(!t.plugins.has("TableEditing"))return;const e=t.model.schema,n=t.conversion,i=t.plugins.get(Dt),r=t.plugins.get("TableUtils");i.on("register:figure",()=>{n.for("upcast").add(N4(i))}),i.on("register:table",(s,a)=>{a.model==="table"&&(e.extend("table",{allowAttributes:["htmlTableAttributes","htmlFigureAttributes","htmlTheadAttributes","htmlTbodyAttributes"]}),n.for("upcast").add(B4(i)),n.for("downcast").add(z4()),t.model.document.registerPostFixer(M4(t.model,r)),s.stop())})}}function M4(o,t){return e=>{const n=o.document.differ.getChanges();let i=!1;for(const r of n){if(r.type!="attribute"||r.attributeKey!="headingRows")continue;const s=r.range.start.nodeAfter,a=s.getAttribute("htmlTheadAttributes"),c=s.getAttribute("htmlTbodyAttributes");a&&!r.attributeNewValue?(e.removeAttribute("htmlTheadAttributes",s),i=!0):c&&r.attributeNewValue==t.getRows(s)&&(e.removeAttribute("htmlTbodyAttributes",s),i=!0)}return i}}function B4(o){return t=>{t.on("element:table",(e,n,i)=>{if(!n.modelRange)return;const r=n.viewItem;s(r,"htmlTableAttributes");for(const a of r.getChildren())a.is("element","thead")&&s(a,"htmlTheadAttributes"),a.is("element","tbody")&&s(a,"htmlTbodyAttributes");function s(a,c){const l=o.processViewAttributes(a,i);l&&i.writer.setAttribute(c,l,n.modelRange)}},{priority:"low"})}}function N4(o){return t=>{t.on("element:figure",(e,n,i)=>{const r=n.viewItem;if(!n.modelRange||!r.hasClass("table"))return;const s=o.processViewAttributes(r,i);s&&i.writer.setAttribute("htmlFigureAttributes",s,n.modelRange)},{priority:"low"})}}function z4(){return o=>{t("table","htmlTableAttributes"),t("figure","htmlFigureAttributes"),t("thead","htmlTheadAttributes"),t("tbody","htmlTbodyAttributes");function t(e,n){o.on(`attribute:${n}:table`,(i,r,s)=>{if(!s.consumable.test(r.item,i.name))return;const a=s.mapper.toViewElement(r.item),c=Ji(s.writer,a,e);c&&(s.consumable.consume(r.item,i.name),fn(s.writer,r.attributeOldValue,r.attributeNewValue,c))})}}}class P4 extends M{static get requires(){return[Dt]}static get pluginName(){return"StyleElementSupport"}init(){const t=this.editor.plugins.get(Dt);t.on("register:style",(e,n)=>{const i=this.editor,r=i.model.schema,s=i.conversion;r.register("htmlStyle",n.modelSchema),r.extend("htmlStyle",{allowAttributes:["htmlStyleAttributes","htmlContent"],isContent:!0}),i.data.registerRawContentMatcher({name:"style"}),s.for("upcast").elementToElement({view:"style",model:Va(n)}),s.for("upcast").add(Wo(n,t)),s.for("downcast").elementToElement({model:"htmlStyle",view:(a,{writer:c})=>Qi("style",a,c)}),s.for("downcast").add($o(n)),e.stop()})}}class L4 extends M{static get requires(){return[Dt]}static get pluginName(){return"DocumentListElementSupport"}init(){const t=this.editor;if(!t.plugins.has("DocumentListEditing"))return;const e=t.model.schema,n=t.conversion,i=t.plugins.get(Dt),r=t.plugins.get("DocumentListEditing"),s=["ul","ol","li"];r.registerDowncastStrategy({scope:"item",attributeName:"htmlLiAttributes",setAttributeOnDowncast:Te}),r.registerDowncastStrategy({scope:"list",attributeName:"htmlUlAttributes",setAttributeOnDowncast:Te}),r.registerDowncastStrategy({scope:"list",attributeName:"htmlOlAttributes",setAttributeOnDowncast:Te}),i.on("register",(a,c)=>{if(!s.includes(c.view)||(a.stop(),e.checkAttribute("$block","htmlLiAttributes")))return;const l=s.map(d=>he(d));e.extend("$listItem",{allowAttributes:l}),n.for("upcast").add(d=>{d.on("element:ul",Ga("htmlUlAttributes",i),{priority:"low"}),d.on("element:ol",Ga("htmlOlAttributes",i),{priority:"low"}),d.on("element:li",Ga("htmlLiAttributes",i),{priority:"low"})})}),r.on("postFixer",(a,{listNodes:c,writer:l})=>{for(const{node:d,previousNodeInList:u}of c)if(u){if(u.getAttribute("listType")==d.getAttribute("listType")){const m=jf(u.getAttribute("listType")),p=u.getAttribute(m);!Ti(d.getAttribute(m),p)&&l.model.schema.checkAttribute(d,m)&&(l.setAttribute(m,p,d),a.return=!0)}if(u.getAttribute("listItemId")==d.getAttribute("listItemId")){const m=u.getAttribute("htmlLiAttributes");!Ti(d.getAttribute("htmlLiAttributes"),m)&&l.model.schema.checkAttribute(d,"htmlLiAttributes")&&(l.setAttribute("htmlLiAttributes",m,d),a.return=!0)}}}),r.on("postFixer",(a,{listNodes:c,writer:l})=>{for(const{node:d}of c){const u=d.getAttribute("listType");u!=="numbered"&&d.getAttribute("htmlOlAttributes")&&(l.removeAttribute("htmlOlAttributes",d),a.return=!0),u==="numbered"&&d.getAttribute("htmlUlAttributes")&&(l.removeAttribute("htmlUlAttributes",d),a.return=!0)}})}afterInit(){const t=this.editor;if(!t.commands.get("indentList"))return;const e=t.commands.get("indentList");this.listenTo(e,"afterExecute",(n,i)=>{t.model.change(r=>{for(const s of i){const a=jf(s.getAttribute("listType"));t.model.schema.checkAttribute(s,a)&&r.setAttribute(a,{},s)}})})}}function Ga(o,t){return(e,n,i)=>{const r=n.viewItem;n.modelRange||Object.assign(n,i.convertChildren(n.viewItem,n.modelCursor));const s=t.processViewAttributes(r,i);for(const a of n.modelRange.getItems({shallow:!0}))a.hasAttribute("listItemId")&&(a.hasAttribute(o)||i.writer.model.schema.checkAttribute(a,o)&&i.writer.setAttribute(o,s||{},a))}}function jf(o){return o==="numbered"?"htmlOlAttributes":"htmlUlAttributes"}class O4 extends M{static get requires(){return[Dt,Yn]}static get pluginName(){return"CustomElementSupport"}init(){const t=this.editor.plugins.get(Dt),e=this.editor.plugins.get(Yn);t.on("register:$customElement",(n,i)=>{n.stop();const r=this.editor,s=r.model.schema,a=r.conversion,c=r.editing.view.domConverter.unsafeElements,l=r.data.htmlProcessor.domConverter.preElements;s.register(i.model,i.modelSchema),s.extend(i.model,{allowAttributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"],isContent:!0}),r.data.htmlProcessor.domConverter.registerRawContentMatcher({name:"template"}),a.for("upcast").elementToElement({view:/.*/,model:(d,u)=>{if(d.name=="$comment"||!R4(d.name)||e.getDefinitionsForView(d.name).size)return null;c.includes(d.name)||c.push(d.name),l.includes(d.name)||l.push(d.name);const m=u.writer.createElement(i.model,{htmlElementName:d.name}),p=t.processViewAttributes(d,u);p&&u.writer.setAttribute("htmlCustomElementAttributes",p,m);let b;if(d.is("element","template")&&d.getCustomProperty("$rawContent"))b=d.getCustomProperty("$rawContent");else{const B=new Re(d.document).createDocumentFragment(d),z=r.data.htmlProcessor.domConverter.viewToDom(B),V=z.firstChild;for(;V.firstChild;)z.appendChild(V.firstChild);V.remove(),b=r.data.htmlProcessor.htmlWriter.getHtml(z)}u.writer.setAttribute("htmlContent",b,m);for(const{item:S}of r.editing.view.createRangeIn(d))u.consumable.consume(S,{name:!0});return m},converterPriority:"low"}),a.for("editingDowncast").elementToElement({model:{name:i.model,attributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"]},view:(d,{writer:u})=>{const m=d.getAttribute("htmlElementName"),p=u.createRawElement(m);return d.hasAttribute("htmlCustomElementAttributes")&&Te(u,d.getAttribute("htmlCustomElementAttributes"),p),p}}),a.for("dataDowncast").elementToElement({model:{name:i.model,attributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"]},view:(d,{writer:u})=>{const m=d.getAttribute("htmlElementName"),p=d.getAttribute("htmlContent"),b=u.createRawElement(m,null,(S,B)=>{B.setContentOf(S,p)});return d.hasAttribute("htmlCustomElementAttributes")&&Te(u,d.getAttribute("htmlCustomElementAttributes"),b),b}})})}}function R4(o){try{document.createElement(o)}catch{return!1}return!0}class j4 extends M{static get pluginName(){return"GeneralHtmlSupport"}static get requires(){return[Dt,f4,b4,w4,A4,x4,T4,I4,P4,L4,O4]}init(){const t=this.editor,e=t.plugins.get(Dt);e.loadAllowedEmptyElementsConfig(t.config.get("htmlSupport.allowEmpty")||[]),e.loadAllowedConfig(t.config.get("htmlSupport.allow")||[]),e.loadDisallowedConfig(t.config.get("htmlSupport.disallow")||[])}getGhsAttributeNameForElement(t){const e=this.editor.plugins.get("DataSchema"),n=Array.from(e.getDefinitionsForView(t,!1)),i=n.find(r=>r.isInline&&!n[0].isObject);return i?i.model:he(t)}addModelHtmlClass(t,e,n){const i=this.editor.model,r=this.getGhsAttributeNameForElement(t);i.change(s=>{for(const a of Qn(i,n,r))Kn(s,a,r,"classes",c=>{for(const l of _t(e))c.add(l)})})}removeModelHtmlClass(t,e,n){const i=this.editor.model,r=this.getGhsAttributeNameForElement(t);i.change(s=>{for(const a of Qn(i,n,r))Kn(s,a,r,"classes",c=>{for(const l of _t(e))c.delete(l)})})}setModelHtmlAttributes(t,e,n){const i=this.editor.model,r=this.getGhsAttributeNameForElement(t);i.change(s=>{for(const a of Qn(i,n,r))Kn(s,a,r,"attributes",c=>{for(const[l,d]of Object.entries(e))c.set(l,d)})})}removeModelHtmlAttributes(t,e,n){const i=this.editor.model,r=this.getGhsAttributeNameForElement(t);i.change(s=>{for(const a of Qn(i,n,r))Kn(s,a,r,"attributes",c=>{for(const l of _t(e))c.delete(l)})})}setModelHtmlStyles(t,e,n){const i=this.editor.model,r=this.getGhsAttributeNameForElement(t);i.change(s=>{for(const a of Qn(i,n,r))Kn(s,a,r,"styles",c=>{for(const[l,d]of Object.entries(e))c.set(l,d)})})}removeModelHtmlStyles(t,e,n){const i=this.editor.model,r=this.getGhsAttributeNameForElement(t);i.change(s=>{for(const a of Qn(i,n,r))Kn(s,a,r,"styles",c=>{for(const l of _t(e))c.delete(l)})})}}function*Qn(o,t,e){if(t)if(!(Symbol.iterator in t)&&t.is("documentSelection")&&t.isCollapsed)o.schema.checkAttributeInSelection(t,e)&&(yield t);else for(const n of F4(o,t,e))yield*n.getItems({shallow:!0})}function F4(o,t,e){return!(Symbol.iterator in t)&&(t.is("node")||t.is("$text")||t.is("$textProxy"))?o.schema.checkAttribute(t,e)?[o.createRangeOn(t)]:[]:o.schema.getValidRanges(o.createSelection(t).getRanges(),e)}function V4(o){return o.createContainerElement("span",{class:"image-inline"},o.createEmptyElement("img"))}function Ff(o){return o.createContainerElement("figure",{class:"image"},[o.createEmptyElement("img"),o.createSlot("children")])}function Vf(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 qa(o,t){const e=Tt(t.getSelectedBlocks());return!e||o.isObject(e)||e.isEmpty&&e.name!="listItem"?"imageBlock":"imageInline"}function Xi(o){return o&&o.endsWith("px")?parseInt(o):null}function tr(o){const t=Xi(o.getStyle("width")),e=Xi(o.getStyle("height"));return!!(t&&e)}const H4=/^(image|image-inline)$/;class Ht extends M{constructor(){super(...arguments),this._domEmitter=new(Xt())}static get pluginName(){return"ImageUtils"}isImage(t){return this.isInlineImage(t)||this.isBlockImage(t)}isInlineImageView(t){return!!t&&t.is("element","img")}isBlockImageView(t){return!!t&&t.is("element","figure")&&t.hasClass("image")}insertImage(t={},e=null,n=null,i={}){const r=this.editor,s=r.model,a=s.document.selection,c=Hf(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"?"auto":void 0}),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 U.window.Image;this._domEmitter.listenTo(i,"load",()=>{!t.getAttribute("width")&&!t.getAttribute("height")&&this.editor.model.enqueueChange(n.batch,r=>{r.setAttribute("width",i.naturalWidth,t),r.setAttribute("height",i.naturalHeight,t)}),this._domEmitter.stopListening(i,"load")}),i.src=e}))}getClosestSelectedImageWidget(t){const e=t.getFirstPosition();if(!e)return null;const n=t.getSelectedElement();if(n&&this.isImageWidget(n))return n;let i=e.parent;for(;i;){if(i.is("element")&&this.isImageWidget(i))return i;i=i.parent}return null}getClosestSelectedImageElement(t){const e=t.getSelectedElement();return this.isImage(e)?e:t.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(t){return t.findAncestor({classes:H4})}isImageAllowed(){const e=this.editor.model.document.selection;return U4(this.editor,e)&&G4(e)}toImageWidget(t,e,n){return e.setCustomProperty("image",!0,t),Go(t,e,{label:()=>{const s=this.findViewImgElement(t).getAttribute("alt");return s?`${s} ${n}`:n}})}isImageWidget(t){return!!t.getCustomProperty("image")&&Nt(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 U4(o,t){if(Hf(o,t,null)=="imageBlock"){const n=q4(t,o.model);if(o.model.schema.checkChild(n,"imageBlock"))return!0}else if(o.model.schema.checkChild(t.focus,"imageInline"))return!0;return!1}function G4(o){return[...o.focus.getAncestors()].every(t=>!t.is("element","imageBlock"))}function q4(o,t){const n=Nm(o,t).start.parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}function Hf(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")?qa(n,t):n.checkChild(t,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}const W4=new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));class $4 extends M{static get requires(){return[La,Ht,Yi,Ee]}static get pluginName(){return"AutoImage"}constructor(t){super(t),this._timeoutId=null,this._positionToInsert=null}init(){const t=this.editor,e=t.model.document,n=t.plugins.get("ClipboardPipeline");this.listenTo(n,"inputTransformation",()=>{const i=e.selection.getFirstRange(),r=Mt.fromPosition(i.start);r.stickiness="toPrevious";const s=Mt.fromPosition(i.end);s.stickiness="toNext",e.once("change:data",()=>{this._embedImageBetweenPositions(r,s),r.detach(),s.detach()},{priority:"high"})}),t.commands.get("undo").on("execute",()=>{this._timeoutId&&(U.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedImageBetweenPositions(t,e){const n=this.editor,i=new Zt(t,e),r=i.getWalker({ignoreElementEnd:!0}),s=Object.fromEntries(n.model.document.selection.getAttributes()),a=this.editor.plugins.get("ImageUtils");let c="";for(const l of r)l.item.is("$textProxy")&&(c+=l.item.data);if(c=c.trim(),!c.match(W4)){i.detach();return}this._positionToInsert=Mt.fromPosition(t),this._timeoutId=setTimeout(()=>{if(!n.commands.get("insertImage").isEnabled){i.detach();return}n.model.change(u=>{this._timeoutId=null,u.remove(i),i.detach();let m;this._positionToInsert.root.rootName!=="$graveyard"&&(m=this._positionToInsert.toPosition()),a.insertImage({...s,src:c},m),this._positionToInsert.detach(),this._positionToInsert=null}),n.plugins.get("Delete").requestUndoOnBackspace()},100)}}class Z4 extends Q{refresh(){const n=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!n,this.isEnabled&&n.hasAttribute("alt")?this.value=n.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 K4 extends M{static get requires(){return[Ht]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Z4(this.editor))}}var Uf=L(5269),Wa={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Wa.insert="head",Wa.singleton=!0,R()(Uf.Z,Wa),Uf.Z.locals;var Gf=L(6603),$a={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};$a.insert="head",$a.singleton=!0,R()(Gf.Z,$a),Gf.Z.locals;class Y4 extends G{constructor(t){super(t);const e=this.locale.t;this.focusTracker=new Bt,this.keystrokes=new Vt,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(e("Save"),dt.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(e("Cancel"),dt.cancel,"ck-button-cancel","cancel"),this._focusables=new ce,this._focusCycler=new fe({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),h({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 et(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 po(this.locale,No);return e.label=t("Text alternative"),e}}function Q4(o){const t=o.plugins.get("ContextualBalloon");if(o.plugins.get("ImageUtils").getClosestSelectedImageWidget(o.editing.view.document.selection)){const n=qf(o);t.updatePosition(n)}}function qf(o){const t=o.editing.view,e=jt.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 J4 extends M{static get requires(){return[Fi]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const t=this.editor,e=t.t;t.ui.componentFactory.add("imageTextAlternative",n=>{const i=t.commands.get("imageTextAlternative"),r=new et(n);return r.set({label:e("Change image text alternative"),icon:dt.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,n=t.editing.view.document,i=t.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(v(Y4))(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",(r,s)=>{this._hideForm(!0),s()}),this.listenTo(t.ui,"update",()=>{i.getClosestSelectedImageWidget(n.selection)?this._isVisible&&Q4(t):this._hideForm(!0)}),C({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:qf(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 Wf extends M{static get requires(){return[K4,J4]}static get pluginName(){return"ImageTextAlternative"}}function X4(o){const t=(e,n,i)=>{if(!i.consumable.test(n.viewItem,{name:!0,classes:"image"}))return;const r=o.findViewImgElement(n.viewItem);if(!r||!i.consumable.test(r,{name:!0}))return;i.consumable.consume(n.viewItem,{name:!0,classes:"image"});const s=i.convertItem(r,n.modelCursor),a=Tt(s.modelRange.getItems());if(!a){i.consumable.revert(n.viewItem,{name:!0,classes:"image"});return}i.convertChildren(n.viewItem,a),i.updateConversionResult(a,n)};return e=>{e.on("element:figure",t)}}function $f(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 er(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 Za extends ye{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 t3 extends Q{constructor(t){super(t);const e=t.config.get("image.insert.type");t.plugins.has("ImageBlockEditing")||e==="block"&&void 0,t.plugins.has("ImageInlineEditing")||e==="inline"&&void 0}refresh(){const t=this.editor.plugins.get("ImageUtils");this.isEnabled=t.isImageAllowed()}execute(t){const e=_t(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)}else i.insertImage({...s,...r})})}}class e3 extends Q{constructor(t){super(t),this.decorate("cleanupImage")}refresh(){const e=this.editor.plugins.get("ImageUtils"),n=this.editor.model.document.selection.getSelectedElement();this.isEnabled=e.isImage(n),this.value=this.isEnabled?n.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 Zf extends M{static get requires(){return[Ht]}static get pluginName(){return"ImageEditing"}init(){const t=this.editor,e=t.conversion;t.editing.view.addObserver(Za),e.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const n=new t3(t),i=new e3(t);t.commands.add("insertImage",n),t.commands.add("replaceImageSource",i),t.commands.add("imageInsert",n)}}class Kf extends M{static get requires(){return[Ht]}static get pluginName(){return"ImageSizeAttributes"}afterInit(){this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline")}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["width","height"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["width","height"]})}_registerConverters(t){const e=this.editor,n=e.plugins.get("ImageUtils"),i=t==="imageBlock"?"figure":"img";e.conversion.for("upcast").attributeToAttribute({view:{name:i,styles:{width:/.+/}},model:{key:"width",value:s=>tr(s)?Xi(s.getStyle("width")):null}}).attributeToAttribute({view:{name:i,key:"width"},model:"width"}).attributeToAttribute({view:{name:i,styles:{height:/.+/}},model:{key:"height",value:s=>tr(s)?Xi(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)});function r(s,a,c,l){s.on(`attribute:${a}:${t}`,(d,u,m)=>{if(!m.consumable.consume(u.item,d.name))return;const p=m.writer,b=m.mapper.toViewElement(u.item),S=n.findViewImgElement(b);if(u.attributeNewValue!==null?p.setAttribute(c,u.attributeNewValue,S):p.removeAttribute(c,S),u.item.hasAttribute("sources"))return;const B=u.item.hasAttribute("resizedWidth");if(t==="imageInline"&&!B&&!l)return;const z=u.item.getAttribute("width"),V=u.item.getAttribute("height");z&&V&&p.setStyle("aspect-ratio",`${z}/${V}`,S)})}}}class Yf extends Q{constructor(t,e){super(t),this._modelElementName=e}refresh(){const e=this.editor.plugins.get("ImageUtils"),n=e.getClosestSelectedImageElement(this.editor.model.document.selection);this._modelElementName==="imageBlock"?this.isEnabled=e.isInlineImage(n):this.isEnabled=e.isBlockImage(n)}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?null:n.change(a=>{const{setImageSizes:c=!0}=t,l=Array.from(n.markers).filter(m=>m.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 m of l){const p=m.getRange(),b=p.root.rootName!="$graveyard"?p.getJoined(u,!0):u;a.updateMarker(m,{range:b})}return{oldElement:r,newElement:d}})}}var Qf=L(31),Ka={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ka.insert="head",Ka.singleton=!0,R()(Qf.Z,Ka),Qf.Z.locals;class Jf extends M{static get requires(){return[Ht]}static get pluginName(){return"ImagePlaceholder"}afterInit(){this._setupSchema(),this._setupConversion(),this._setupLoadListener()}_setupSchema(){const t=this.editor.model.schema;t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["placeholder"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["placeholder"]})}_setupConversion(){const t=this.editor,e=t.conversion,n=t.plugins.get("ImageUtils");e.for("editingDowncast").add(i=>{i.on("attribute:placeholder",(r,s,a)=>{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(Za),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 Xf extends M{static get requires(){return[Zf,Kf,Ht,Jf,De]}static get pluginName(){return"ImageBlockEditing"}init(){const t=this.editor;t.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),t.plugins.has("ImageInlineEditing")&&(t.commands.add("imageTypeBlock",new Yf(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,i=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToStructure({model:"imageBlock",view:(r,{writer:s})=>Ff(s)}),n.for("editingDowncast").elementToStructure({model:"imageBlock",view:(r,{writer:s})=>i.toImageWidget(Ff(s),s,e("image widget"))}),n.for("downcast").add(er(i,"imageBlock","src")).add(er(i,"imageBlock","alt")).add($f(i,"imageBlock")),n.for("upcast").elementToElement({view:Vf(t,"imageBlock"),model:(r,{writer:s})=>s.createElement("imageBlock",r.hasAttribute("src")?{src:r.getAttribute("src")}:void 0)}).add(X4(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;a.targetRanges?l=t.editing.mapper.toModelRange(a.targetRanges[0]):l=e.document.selection.getFirstRange();const d=e.createSelection(l);if(qa(e.schema,d)==="imageBlock"){const u=new Re(n.document),m=c.map(p=>u.createElement("figure",{class:"image"},p));a.content=u.createDocumentFragment(m)}}),this.listenTo(r,"contentInsertion",(s,a)=>{a.method==="paste"&&e.change(c=>{const l=c.createRangeIn(a.content);for(const d of l.getItems())d.is("element","imageBlock")&&i.setImageNaturalSizeAttributes(d)})})}}var tp=L(8879),Ya={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ya.insert="head",Ya.singleton=!0,R()(tp.Z,Ya),tp.Z.locals;class n3 extends G{constructor(t,e=[]){super(t),this.focusTracker=new Bt,this.keystrokes=new Vt,this._focusables=new ce,this.children=this.createCollection(),this._focusCycler=new fe({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 jS&&this._focusables.addMany(n.children);if(this._focusables.length>1)for(const n of this._focusables)o3(n)&&(n.focusCycler.on("forwardCycle",i=>{this._focusCycler.focusNext(),i.stop()}),n.focusCycler.on("backwardCycle",i=>{this._focusCycler.focusPrevious(),i.stop()}));this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:-1},children:this.children})}render(){super.render(),h({view:this});for(const e of this._focusables)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element);const t=e=>e.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}}function o3(o){return"focusCycler"in o}class ep extends M{static get pluginName(){return"ImageInsertUI"}static get requires(){return[Ht]}constructor(t){super(t),this._integrations=new Map,t.config.define("image.insert.integrations",["upload","assetManager","url"])}init(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("ImageUtils");this.set("isImageSelected",!1),this.listenTo(t.model.document,"change",()=>{this.isImageSelected=n.isImage(e.getSelectedElement())});const i=r=>this._createToolbarComponent(r);t.ui.componentFactory.add("insertImage",i),t.ui.componentFactory.add("imageInsert",i)}registerIntegration({name:t,observable:e,buttonViewCreator:n,formViewCreator:i,requiresForm:r}){this._integrations.has(t)&&void 0,this._integrations.set(t,{observable:e,buttonViewCreator:n,formViewCreator:i,requiresForm:!!r})}_createToolbarComponent(t){const e=this.editor,n=t.t,i=this._prepareIntegrations();if(!i.length)return null;let r;const s=i[0];if(i.length==1){if(!s.requiresForm)return s.buttonViewCreator(!0);r=s.buttonViewCreator(!0)}else{const l=s.buttonViewCreator(!1);r=new Pi(t,l),r.tooltip=!0,r.bind("label").to(this,"isImageSelected",d=>n(d?"Replace image":"Insert image"))}const a=this.dropdownView=de(t,r),c=i.map(({observable: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 n3(e.locale,l);a.panelView.children.add(d)}),a}_prepareIntegrations(){const e=this.editor.config.get("image.insert.integrations"),n=[];if(!e.length)return n;for(const i of e){if(!this._integrations.has(i)){["upload","assetManager","url"].includes(i)||void 0;continue}n.push(this._integrations.get(i))}return n.length||void 0,n}}var np=L(2430),Qa={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Qa.insert="head",Qa.singleton=!0,R()(np.Z,Qa),np.Z.locals;class i3 extends M{static get requires(){return[Xf,$n,Wf,ep]}static get pluginName(){return"ImageBlock"}}class r3 extends M{static get requires(){return[Zf,Kf,Ht,Jf,De]}static get pluginName(){return"ImageInlineEditing"}init(){const t=this.editor,e=t.model.schema;e.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),e.addChildCheck((n,i)=>{if(n.endsWith("caption")&&i.name==="imageInline")return!1}),this._setupConversion(),t.plugins.has("ImageBlockEditing")&&(t.commands.add("imageTypeInline",new Yf(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(V4(s),s,e("image widget"))}),n.for("downcast").add(er(i,"imageInline","src")).add(er(i,"imageInline","alt")).add($f(i,"imageInline")),n.for("upcast").elementToElement({view:Vf(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;a.targetRanges?l=t.editing.mapper.toModelRange(a.targetRanges[0]):l=e.document.selection.getFirstRange();const d=e.createSelection(l);if(qa(e.schema,d)==="imageInline"){const u=new Re(n.document),m=c.map(p=>p.childCount===1?(Array.from(p.getAttributes()).forEach(b=>u.setAttribute(...b,i.findViewImgElement(p))),p.getChild(0)):p);a.content=u.createDocumentFragment(m)}}),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 s3 extends M{static get requires(){return[r3,$n,Wf,ep]}static get pluginName(){return"ImageInline"}}class a3 extends M{static get requires(){return[i3,s3]}static get pluginName(){return"Image"}}class op extends M{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[Ht]}getCaptionFromImageModelElement(t){for(const e of t.getChildren())if(e&&e.is("element","caption"))return e;return null}getCaptionFromModelSelection(t){const e=this.editor.plugins.get("ImageUtils"),n=t.getFirstPosition().findAncestor("caption");return n&&e.isBlockImage(n.parent)?n:null}matchImageCaptionViewElement(t){const e=this.editor.plugins.get("ImageUtils");return t.name=="figcaption"&&e.isBlockImageView(t.parent)?{name:!0}:null}}class c3 extends Q{refresh(){const t=this.editor,e=t.plugins.get("ImageCaptionUtils"),n=t.plugins.get("ImageUtils");if(!t.plugins.has(Xf)){this.isEnabled=!1,this.value=!1;return}const i=t.model.document.selection,r=i.getSelectedElement();if(!r){const s=e.getCaptionFromModelSelection(i);this.isEnabled=!!s,this.value=!!s;return}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 i=this.editor.model.document.selection,r=this.editor.plugins.get("ImageCaptionEditing"),s=this.editor.plugins.get("ImageUtils");let a=i.getSelectedElement();const c=r._getSavedCaption(a);s.isInlineImage(a)&&(this.editor.execute("imageTypeBlock"),a=i.getSelectedElement());const l=c||t.createElement("caption");t.append(l,a),e&&t.setSelection(l,"in")}_hideImageCaption(t){const e=this.editor,n=e.model.document.selection,i=e.plugins.get("ImageCaptionEditing"),r=e.plugins.get("ImageCaptionUtils");let s=n.getSelectedElement(),a;s?a=r.getCaptionFromImageModelElement(s):(a=r.getCaptionFromModelSelection(n),s=a.parent),i._saveCaption(s,a),t.setSelection(s,"on"),t.remove(a)}}class l3 extends M{static get requires(){return[Ht,op]}static get pluginName(){return"ImageCaptionEditing"}constructor(t){super(t),this._savedCaptionsMap=new WeakMap}init(){const t=this.editor,e=t.model.schema;e.isRegistered("caption")?e.extend("caption",{allowIn:"imageBlock"}):e.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),t.commands.add("toggleImageCaption",new c3(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"),uu({view:e,element:c,keepOnFocus:!0});const l=s.parent.getAttribute("alt"),d=l?r("Caption for image: %0",[l]):r("Caption for the image");return Bm(c,a,{label:d})}})}_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){this._saveCaption(l,u);return}}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?lt.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 d3 extends M{static get requires(){return[op]}static get pluginName(){return"ImageCaptionUI"}init(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageCaptionUtils"),i=t.t;t.ui.componentFactory.add("toggleImageCaption",r=>{const s=t.commands.get("toggleImageCaption"),a=new et(r);return a.set({icon:dt.caption,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(s,"value","isEnabled"),a.bind("label").to(s,"value",c=>i(c?"Toggle caption off":"Toggle caption on")),this.listenTo(a,"execute",()=>{t.execute("toggleImageCaption",{focusCaptionOnShow:!0});const c=n.getCaptionFromModelSelection(t.model.document.selection);if(c){const l=t.editing.mapper.toViewElement(c);e.scrollToTheSelection(),e.change(d=>{d.addClass("image__caption_highlighted",l)})}t.editing.view.focus()}),a})}}var ip=L(2423),Ja={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ja.insert="head",Ja.singleton=!0,R()(ip.Z,Ja),ip.Z.locals;class u3 extends M{static get requires(){return[l3,d3]}static get pluginName(){return"ImageCaption"}}class h3 extends st(){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 pn extends M{constructor(){super(...arguments),this.loaders=new te,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get requires(){return[Ni]}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 null;const e=new rp(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 rp?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(Ni);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 rp extends st(){constructor(t,e){super(),this.id=qt(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=e(this),this._reader=new h3,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 w("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 w("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(t=>(this.uploadResponse=t,this.status="idle",t)).catch(t=>{throw this.status==="aborted"?"aborted":(this.status="error",t)})}abort(){const t=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?t=="reading"?this._reader.abort():t=="uploading"&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(t){const e={};return e.promise=new Promise((n,i)=>{e.rejecter=i,e.isFulfilled=!1,t.then(r=>{e.isFulfilled=!0,n(r)}).catch(r=>{e.isFulfilled=!0,i(r)})}),e}}class g3 extends et{constructor(t){super(t),this.buttonView=this,this._fileInputView=new m3(t),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.on("execute",()=>{this._fileInputView.open()}),this.extendTemplate({attributes:{class:"ck-file-dialog-button"}})}render(){super.render(),this.children.add(this._fileInputView)}}class m3 extends G{constructor(t){super(t),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:e.to("acceptedType"),multiple:e.to("allowMultipleFiles")},on:{change:e.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}class f3 extends M{static get requires(){return[pn]}static get pluginName(){return"SimpleUploadAdapter"}init(){const t=this.editor.config.get("simpleUpload");if(t){if(!t.uploadUrl){return}this.editor.plugins.get(pn).createUploadAdapter=e=>new p3(e,t)}}}class p3{constructor(t,e){this.loader=t,this.options=e}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.options.uploadUrl,!0),t.responseType="json"}_initListeners(t,e,n){const i=this.xhr,r=this.loader,s=`Couldn't upload file: ${n.name}.`;i.addEventListener("error",()=>e(s)),i.addEventListener("abort",()=>e()),i.addEventListener("load",()=>{const a=i.response;if(!a||a.error)return e(a&&a.error&&a.error.message?a.error.message:s);const c=a.url?{default:a.url}:a.urls;t({...a,urls:c})}),i.upload&&i.upload.addEventListener("progress",a=>{a.lengthComputable&&(r.uploadTotal=a.total,r.uploaded=a.loaded)})}_sendRequest(t){const e=this.options.headers||{},n=this.options.withCredentials||!1;for(const r of Object.keys(e))this.xhr.setRequestHeader(r,e[r]);this.xhr.withCredentials=n;const i=new FormData;i.append("upload",t),this.xhr.send(i)}}function sp(o){const t=o.map(e=>e.replace("+","\\+"));return new RegExp(`^image\\/(${t.join("|")})$`)}function k3(o){return new Promise((t,e)=>{const n=o.getAttribute("src");fetch(n).then(i=>i.blob()).then(i=>{const r=ap(i,n),a=`image.${r.replace("image/","")}`,c=new File([i],a,{type:r});t(c)}).catch(i=>i&&i.name==="TypeError"?w3(n).then(t).catch(e):e(i))})}function b3(o,t){return!o.isInlineImageView(t)||!t.getAttribute("src")?!1:!!t.getAttribute("src").match(/^data:image\/\w+;base64,/g)||!!t.getAttribute("src").match(/^blob:/g)}function ap(o,t){return o.type?o.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}function w3(o){return A3(o).then(t=>{const e=ap(t,o),i=`image.${e.replace("image/","")}`;return new File([t],i,{type:e})})}function A3(o){return new Promise((t,e)=>{const n=U.document.createElement("img");n.addEventListener("load",()=>{const i=U.document.createElement("canvas");i.width=n.width,i.height=n.height,i.getContext("2d").drawImage(n,0,0),i.toBlob(s=>s?t(s):e())}),n.addEventListener("error",()=>e()),n.src=o})}class C3 extends M{static get pluginName(){return"ImageUploadUI"}init(){const t=this.editor,e=t.t,n=i=>{const r=new g3(i),s=t.commands.get("uploadImage"),a=t.config.get("image.upload.types"),c=sp(a);return r.set({acceptedType:a.map(l=>`image/${l}`).join(","),allowMultipleFiles:!0,label:e("Upload image from computer"),icon:dt.imageUpload,tooltip:!0}),r.bind("isEnabled").to(s),r.on("done",(l,d)=>{const u=Array.from(d).filter(m=>c.test(m.type));u.length&&(t.execute("uploadImage",{file:u}),t.editing.view.focus())}),r};if(t.ui.componentFactory.add("uploadImage",n),t.ui.componentFactory.add("imageUpload",n),t.plugins.has("ImageInsertUI")){const i=t.plugins.get("ImageInsertUI"),r=t.commands.get("uploadImage");i.registerIntegration({name:"upload",observable:r,buttonViewCreator:()=>{const s=t.ui.componentFactory.create("uploadImage");return s.bind("label").to(i,"isImageSelected",a=>e(a?"Replace image from computer":"Upload image from computer")),s},formViewCreator:()=>{const s=t.ui.componentFactory.create("uploadImage");return s.withText=!0,s.bind("label").to(i,"isImageSelected",a=>e(a?"Replace from computer":"Upload from computer")),s.on("execute",()=>{i.dropdownView.isOpen=!1}),s}})}}}var cp=L(2926),Xa={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Xa.insert="head",Xa.singleton=!0,R()(cp.Z,Xa),cp.Z.locals;var lp=L(1547),tc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};tc.insert="head",tc.singleton=!0,R()(lp.Z,tc),lp.Z.locals;var dp=L(6618),ec={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ec.insert="head",ec.singleton=!0,R()(dp.Z,ec),dp.Z.locals;class _3 extends M{static get pluginName(){return"ImageUploadProgress"}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(pn),d=a?n.attributeNewValue:null,u=this.placeholder,m=r.editing.mapper.toViewElement(s),p=i.writer;if(d=="reading"){up(m,p),hp(c,u,m,p);return}if(d=="uploading"){const b=l.loaders.get(a);up(m,p),b?(gp(m,p),y3(m,p,b,r.editing.view),T3(c,m,p,b)):hp(c,u,m,p);return}d=="complete"&&l.loaders.get(a)&&E3(m,p,r.editing.view),x3(m,p),gp(m,p),v3(m,p)},this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}init(){const t=this.editor;t.plugins.has("ImageBlockEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),t.plugins.has("ImageInlineEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}}function up(o,t){o.hasClass("ck-appear")||t.addClass("ck-appear",o)}function v3(o,t){t.removeClass("ck-appear",o)}function hp(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),mp(e,"placeholder")||n.insert(n.createPositionAfter(i),S3(n))}function gp(o,t){o.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",o),fp(o,t,"placeholder")}function y3(o,t,e,n){const i=D3(t);t.insert(t.createPositionAt(o,"end"),i),e.on("change:uploadedPercent",(r,s,a)=>{n.change(c=>{c.setStyle("width",a+"%",i)})})}function x3(o,t){fp(o,t,"progressBar")}function E3(o,t,e){const n=t.createUIElement("div",{class:"ck-image-upload-complete-icon"});t.insert(t.createPositionAt(o,"end"),n),setTimeout(()=>{e.change(i=>i.remove(i.createRangeOn(n)))},3e3)}function D3(o){const t=o.createUIElement("div",{class:"ck-progress-bar"});return o.setCustomProperty("progressBar",!0,t),t}function S3(o){const t=o.createUIElement("div",{class:"ck-upload-placeholder-loader"});return o.setCustomProperty("placeholder",!0,t),t}function mp(o,t){for(const e of o.getChildren())if(e.getCustomProperty(t))return e}function fp(o,t,e){const n=mp(o,e);n&&t.remove(t.createRangeOn(n))}function T3(o,t,e,n){if(n.data){const i=o.findViewImgElement(t);e.setAttribute("src",n.data,i)}}class I3 extends Q{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=_t(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,s=i.plugins.get(pn).createLoader(t),a=i.plugins.get("ImageUtils");s&&a.insertImage({...e,uploadId:s.id},n)}}class M3 extends M{static get requires(){return[pn,Fg,De,Ht]}static get pluginName(){return"ImageUploadEditing"}constructor(t){super(t),t.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}init(){const t=this.editor,e=t.model.document,n=t.conversion,i=t.plugins.get(pn),r=t.plugins.get("ImageUtils"),s=t.plugins.get("ClipboardPipeline"),a=sp(t.config.get("image.upload.types")),c=new I3(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(B3(d.dataTransfer))return;const u=Array.from(d.dataTransfer.files).filter(m=>m?a.test(m.type):!1);u.length&&(l.stop(),t.model.change(m=>{d.targetRanges&&m.setSelection(d.targetRanges.map(p=>t.editing.mapper.toModelRange(p))),t.execute("uploadImage",{file:u})}))}),this.listenTo(s,"inputTransformation",(l,d)=>{const u=Array.from(t.editing.view.createRangeIn(d.content)).map(p=>p.item).filter(p=>b3(r,p)&&!p.getAttribute("uploadProcessed")).map(p=>({promise:k3(p),imageElement:p}));if(!u.length)return;const m=new Re(t.editing.view.document);for(const p of u){m.setAttribute("uploadProcessed",!0,p.imageElement);const b=i.createLoader(p.promise);b&&(m.setAttribute("src","",p.imageElement),m.setAttribute("uploadId",b.id,p.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 m=u.position.nodeAfter,p=u.position.root.rootName=="$graveyard";for(const b of N3(t,m)){const S=b.getAttribute("uploadId");if(!S)continue;const B=i.loaders.get(S);B&&(p?d.has(S)||B.abort():(d.add(S),this._uploadImageElements.set(S,b),B.status=="idle"&&this._readAndUpload(B)))}}}),this.on("uploadComplete",(l,{imageElement:d,data:u})=>{const m=u.urls?u.urls:u;this.editor.model.change(p=>{p.setAttribute("src",m.default,d),this._parseAndSetSrcsetAttributeOnImage(m,d,p),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(pn),s=e.plugins.get(Fg),a=e.plugins.get("ImageUtils"),c=this._uploadImageElements;return n.enqueueChange({isUndoable:!1},d=>{d.setAttribute("uploadStatus","reading",c.get(t.id))}),t.read().then(()=>{const d=t.upload(),u=c.get(t.id);if(g.isSafari){const m=e.editing.mapper.toViewElement(u),p=a.findViewImgElement(m);e.editing.view.once("render",()=>{if(!p.parent)return;const b=e.editing.view.domConverter.mapViewToDom(p.parent);if(!b)return;const S=b.style.display;b.style.display="none",b._ckHack=b.offsetHeight,b.style.display=S})}return n.enqueueChange({isUndoable:!1},m=>{m.setAttribute("uploadStatus","uploading",u)}),d}).then(d=>{n.enqueueChange({isUndoable:!1},u=>{const m=c.get(t.id);u.setAttribute("uploadStatus","complete",m),this.fire("uploadComplete",{data:d,imageElement:m})}),l()}).catch(d=>{if(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 B3(o){return Array.from(o.types).includes("text/html")&&o.getData("text/html")!==""}function N3(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 z3 extends M{static get pluginName(){return"ImageUpload"}static get requires(){return[M3,C3,_3]}}class P3 extends Q{refresh(){const t=this.editor,n=t.plugins.get("ImageUtils").getClosestSelectedImageElement(t.model.document.selection);this.isEnabled=!!n,!n||!n.hasAttribute("resizedWidth")?this.value=null:this.value={width:n.getAttribute("resizedWidth"),height:null}}execute(t){const e=this.editor,n=e.model,i=e.plugins.get("ImageUtils"),r=i.getClosestSelectedImageElement(n.document.selection);this.value={width:t.width,height:null},r&&n.change(s=>{s.setAttribute("resizedWidth",t.width,r),s.removeAttribute("resizedHeight",r),i.setImageNaturalSizeAttributes(r)})}}class pp extends M{static get requires(){return[Ht]}static get pluginName(){return"ImageResizeEditing"}constructor(t){super(t),t.config.define("image",{resizeUnit:"%",resizeOptions:[{name:"resizeImage:original",value:null,icon:"original"},{name:"resizeImage:25",value:"25",icon:"small"},{name:"resizeImage:50",value:"50",icon:"medium"},{name:"resizeImage:75",value:"75",icon:"large"}]})}init(){const t=this.editor,e=new P3(t);this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline"),t.commands.add("resizeImage",e),t.commands.add("imageResize",e)}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["resizedWidth","resizedHeight"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["resizedWidth","resizedHeight"]})}_registerConverters(t){const e=this.editor,n=e.plugins.get("ImageUtils");e.conversion.for("downcast").add(i=>i.on(`attribute:resizedWidth:${t}`,(r,s,a)=>{if(!a.consumable.consume(s.item,r.name))return;const c=a.writer,l=a.mapper.toViewElement(s.item);s.attributeNewValue!==null?(c.setStyle("width",s.attributeNewValue,l),c.addClass("image_resized",l)):(c.removeStyle("width",l),c.removeClass("image_resized",l))})),e.conversion.for("dataDowncast").attributeToAttribute({model:{name:t,key:"resizedHeight"},view:i=>({key:"style",value:{height:i}})}),e.conversion.for("editingDowncast").add(i=>i.on(`attribute:resizedHeight:${t}`,(r,s,a)=>{if(!a.consumable.consume(s.item,r.name))return;const c=a.writer,l=a.mapper.toViewElement(s.item),d=t==="imageInline"?n.findViewImgElement(l):l;s.attributeNewValue!==null?c.setStyle("height",s.attributeNewValue,d):c.removeStyle("height",d)})),e.conversion.for("upcast").attributeToAttribute({view:{name:t==="imageBlock"?"figure":"img",styles:{width:/.+/}},model:{key:"resizedWidth",value:i=>tr(i)?null:i.getStyle("width")}}),e.conversion.for("upcast").attributeToAttribute({view:{name:t==="imageBlock"?"figure":"img",styles:{height:/.+/}},model:{key:"resizedHeight",value:i=>tr(i)?null:i.getStyle("height")}})}}const nc={small:dt.objectSizeSmall,medium:dt.objectSizeMedium,large:dt.objectSizeLarge,original:dt.objectSizeFull};class L3 extends M{static get requires(){return[pp]}static get pluginName(){return"ImageResizeButtons"}constructor(t){super(t),this._resizeUnit=t.config.get("image.resizeUnit")}init(){const t=this.editor,e=t.config.get("image.resizeOptions"),n=t.commands.get("resizeImage");this.bind("isEnabled").to(n);for(const i of e)this._registerImageResizeButton(i);this._registerImageResizeDropdown(e)}_registerImageResizeButton(t){const e=this.editor,{name:n,value:i,icon:r}=t,s=i?i+this._resizeUnit:null;e.ui.componentFactory.add(n,a=>{const c=new et(a),l=e.commands.get("resizeImage"),d=this._getOptionLabelValue(t,!0);if(!nc[r])throw new w("imageresizebuttons-missing-icon",e,t);return c.set({label:d,icon:nc[r],tooltip:d,isToggleable:!0}),c.bind("isEnabled").to(this),c.bind("isOn").to(l,"value",kp(s)),this.listenTo(c,"execute",()=>{e.execute("resizeImage",{width:s})}),c})}_registerImageResizeDropdown(t){const e=this.editor,n=e.t,i=t.find(s=>!s.value),r=s=>{const a=e.commands.get("resizeImage"),c=de(s,eu),l=c.buttonView,d=n("Resize image");return l.set({tooltip:d,commandValue:i.value,icon:nc.medium,isToggleable:!0,label:this._getOptionLabelValue(i),withText:!0,class:"ck-resize-image-button",ariaLabel:d,ariaLabelledBy:void 0}),l.bind("label").to(a,"value",u=>u&&u.width?u.width:this._getOptionLabelValue(i)),c.bind("isEnabled").to(this),Gs(c,()=>this._getResizeDropdownListItemDefinitions(t,a),{ariaLabel:n("Image resize list"),role:"menu"}),this.listenTo(c,"execute",u=>{e.execute(u.source.commandName,{width:u.source.commandValue}),e.editing.view.focus()}),c};e.ui.componentFactory.add("resizeImage",r),e.ui.componentFactory.add("imageResize",r)}_getOptionLabelValue(t,e=!1){const n=this.editor.t;return t.label?t.label:e?t.value?n("Resize image to %0",t.value+this._resizeUnit):n("Resize image to the original size"):t.value?t.value+this._resizeUnit:n("Original")}_getResizeDropdownListItemDefinitions(t,e){const n=new te;return t.map(i=>{const r=i.value?i.value+this._resizeUnit:null,s={type:"button",model:new la({commandName:"resizeImage",commandValue:r,label:this._getOptionLabelValue(i),role:"menuitemradio",withText:!0,icon:null})};s.model.bind("isOn").to(e,"value",kp(r)),n.add(s)}),n}}function kp(o){return t=>{const e=t;return o===null&&e===o?!0:e!==null&&e.width===o}}const O3="figure.image.ck-widget > img,figure.image.ck-widget > picture > img,figure.image.ck-widget > a > img,figure.image.ck-widget > a > picture > img,span.image-inline.ck-widget > img,span.image-inline.ck-widget > picture > img",oc="image_resized";class R3 extends M{static get requires(){return[Na,Ht]}static get pluginName(){return"ImageResizeHandles"}init(){const t=this.editor.commands.get("resizeImage");this.bind("isEnabled").to(t),this._setupResizerCreator()}_setupResizerCreator(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageUtils");e.addObserver(Za),this.listenTo(e.document,"imageLoaded",(i,r)=>{if(!r.target.matches(O3))return;const s=t.editing.view.domConverter,a=s.domToView(r.target),c=n.getImageWidgetFromImageView(a);let l=this.editor.plugins.get(Na).getResizerByViewElement(c);if(l){l.redraw();return}const d=t.editing.mapper,u=d.toModelElement(c);l=t.plugins.get(Na).attachTo({unit:t.config.get("image.resizeUnit"),modelElement:u,viewElement:c,editor:t,getHandleHost(m){return m.querySelector("img")},getResizeHost(){return s.mapViewToDom(d.toViewElement(u.parent))},isCentered(){const m=u.getAttribute("imageStyle");return!m||m=="block"||m=="alignCenter"},onCommit(m){e.change(p=>{p.removeClass(oc,c)}),t.execute("resizeImage",{width:m})}}),l.on("updateSize",()=>{c.hasClass(oc)||e.change(p=>{p.addClass(oc,c)});const m=u.name==="imageInline"?a:c;m.getStyle("height")&&e.change(p=>{p.removeStyle("height",m)})}),l.bind("isEnabled").to(this)})}}var bp=L(2400),ic={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};ic.insert="head",ic.singleton=!0,R()(bp.Z,ic),bp.Z.locals;class j3 extends M{static get requires(){return[pp,R3,L3]}static get pluginName(){return"ImageResize"}}class F3 extends Q{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 n=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!n,this.isEnabled?n.hasAttribute("imageStyle")?this.value=n.getAttribute("imageStyle"):this.value=this._defaultStyles[n.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{objectFullWidth:V3,objectInline:wp,objectLeft:Ap,objectRight:rc,objectCenter:sc,objectBlockLeft:Cp,objectBlockRight:_p}=dt,nr={get inline(){return{name:"inline",title:"In line",icon:wp,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:Ap,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:Cp,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:sc,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:rc,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:_p,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:sc,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:rc,modelElements:["imageBlock"],className:"image-style-side"}}},vp={full:V3,left:Cp,right:_p,center:sc,inlineLeft:Ap,inlineRight:rc,inline:wp},yp=[{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 H3(o){return(o.configuredStyles.options||[]).map(n=>q3(n)).filter(n=>W3(n,o))}function U3(o,t){return o&&t?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:o?{options:["block","side"]}:t?{options:["inline","alignLeft","alignRight"]}:{}}function G3(o){return o.has("ImageBlockEditing")&&o.has("ImageInlineEditing")?[...yp]:[]}function q3(o){return typeof o=="string"?nr[o]?o={...nr[o]}:o={name:o}:o=$3(nr[o.name],o),typeof o.icon=="string"&&(o.icon=vp[o.icon]||o.icon),o}function W3(o,{isBlockPluginLoaded:t,isInlinePluginLoaded:e}){const{modelElements:n,name:i}=o;if(!n||!n.length||!i)return xp({style:o}),!1;{const r=[t?"imageBlock":null,e?"imageInline":null];if(!n.some(s=>r.includes(s)))return n.map(s=>s==="imageBlock"?"ImageBlockEditing":"ImageInlineEditing"),!1}return!0}function $3(o,t){const e={...t};for(const n in o)Object.prototype.hasOwnProperty.call(t,n)||(e[n]=o[n]);return e}function xp(o){}const ac={normalizeStyles:H3,getDefaultStylesConfiguration:U3,getDefaultDropdownDefinitions:G3,warnInvalidStyle:xp,DEFAULT_OPTIONS:nr,DEFAULT_ICONS:vp,DEFAULT_DROPDOWN_DEFINITIONS:yp};function Z3(o){return(t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const i=Ep(e.attributeNewValue,o),r=Ep(e.attributeOldValue,o),s=n.mapper.toViewElement(e.item),a=n.writer;r&&a.removeClass(r.className,s),i&&a.addClass(i.className,s)}}function K3(o){const t={imageInline:o.filter(e=>!e.isDefault&&e.modelElements.includes("imageInline")),imageBlock:o.filter(e=>!e.isDefault&&e.modelElements.includes("imageBlock"))};return(e,n,i)=>{if(!n.modelRange)return;const r=n.viewItem,s=Tt(n.modelRange.getItems());if(s&&i.schema.checkAttribute(s,"imageStyle"))for(const a of t[s.name])i.consumable.consume(r,{classes:a.className})&&i.writer.setAttribute("imageStyle",a.name,s)}}function Ep(o,t){for(const e of t)if(e.name===o)return e}class Dp extends M{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[Ht]}init(){const{normalizeStyles:t,getDefaultStylesConfiguration:e}=ac,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 F3(n,this.normalizedStyles))}_setupConversion(t,e){const n=this.editor,i=n.model.schema,r=Z3(this.normalizedStyles),s=K3(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",s,{priority:"low"})),e&&(i.extend("imageInline",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:img",s,{priority:"low"}))}_setupPostFixer(){const t=this.editor,e=t.model.document,n=t.plugins.get(Ht),i=new Map(this.normalizedStyles.map(r=>[r.name,r]));e.registerPostFixer(r=>{let s=!1;for(const a of e.differ.getChanges())if(a.type=="insert"||a.type=="attribute"&&a.attributeKey=="imageStyle"){let c=a.type=="insert"?a.position.nodeAfter:a.range.start.nodeAfter;if(c&&c.is("element","paragraph")&&c.childCount>0&&(c=c.getChild(0)),!n.isImage(c))continue;const l=c.getAttribute("imageStyle");if(!l)continue;const d=i.get(l);(!d||!d.modelElements.includes(c.name))&&(r.removeAttribute("imageStyle",c),s=!0)}return s})}}var Sp=L(3534),cc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};cc.insert="head",cc.singleton=!0,R()(Sp.Z,cc),Sp.Z.locals;class Y3 extends M{static get requires(){return[Dp]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const t=this.editor.t;return{"Wrap text":t("Wrap text"),"Break text":t("Break text"),"In line":t("In line"),"Full size image":t("Full size image"),"Side image":t("Side image"),"Left aligned image":t("Left aligned image"),"Centered image":t("Centered image"),"Right aligned image":t("Right aligned image")}}init(){const t=this.editor.plugins,e=this.editor.config.get("image.toolbar")||[],n=t.get("ImageStyleEditing"),i=Tp(n.normalizedStyles,this.localizedDefaultStylesTitles);for(const s of i)this._createButton(s);const r=Tp([...e.filter(bt),...ac.getDefaultDropdownDefinitions(t)],this.localizedDefaultStylesTitles);for(const s of r)this._createDropdown(s,i)}_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(p=>e.find(({name:b})=>Ip(b)===p)).map(p=>{const b=n.create(p);return p===s&&(r=b),b});a.length!==l.length&&ac.warnInvalidStyle({dropdown:t});const d=de(i,Pi),u=d.buttonView,m=u.arrowView;return Us(d,l,{enableActiveItemFocusOnDropdownOpen:!0}),u.set({label:Mp(c,r.label),class:null,tooltip:!0}),m.unbind("label"),m.set({label:c}),u.bind("icon").toMany(l,"isOn",(...p)=>{const b=p.findIndex(sn);return b<0?r.icon:l[b].icon}),u.bind("label").toMany(l,"isOn",(...p)=>{const b=p.findIndex(sn);return Mp(c,b<0?r.label:l[b].label)}),u.bind("isOn").toMany(l,"isOn",(...p)=>p.some(sn)),u.bind("class").toMany(l,"isOn",(...p)=>p.some(sn)?"ck-splitbutton_flatten":void 0),u.on("execute",()=>{l.some(({isOn:p})=>p)?d.isOpen=!d.isOpen:r.fire("execute")}),d.bind("isEnabled").toMany(l,"isEnabled",(...p)=>p.some(sn)),this.listenTo(d,"execute",()=>{this.editor.editing.view.focus()}),d})}_createButton(t){const e=t.name;this.editor.ui.componentFactory.add(Ip(e),n=>{const i=this.editor.commands.get("imageStyle"),r=new et(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 Tp(o,t){for(const e of o)t[e.title]&&(e.title=t[e.title]);return o}function Ip(o){return`imageStyle:${o}`}function Mp(o,t){return(o?o+": ":"")+t}class Q3 extends M{static get requires(){return[Dp,Y3]}static get pluginName(){return"ImageStyle"}}class J3 extends M{static get requires(){return[$i,Ht]}static get pluginName(){return"ImageToolbar"}afterInit(){const t=this.editor,e=t.t,n=t.plugins.get($i),i=t.plugins.get("ImageUtils");n.register("image",{ariaLabel:e("Image toolbar"),items:X3(t.config.get("image.toolbar")||[]),getRelatedElement:r=>i.getClosestSelectedImageWidget(r)})}}function X3(o){return o.map(t=>bt(t)?t.name:t)}class tN extends M{static get pluginName(){return"IndentEditing"}init(){const t=this.editor;t.commands.add("indent",new su(t)),t.commands.add("outdent",new su(t))}}const Bp='<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>',Np='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>';class eN extends M{static get pluginName(){return"IndentUI"}init(){const t=this.editor,e=t.locale,n=t.t,i=e.uiLanguageDirection=="ltr"?Bp:Np,r=e.uiLanguageDirection=="ltr"?Np:Bp;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,r=>{const s=i.commands.get(t),a=new et(r);return a.set({label:e,icon:n,tooltip:!0}),a.bind("isEnabled").to(s,"isEnabled"),this.listenTo(a,"execute",()=>{i.execute(t),i.editing.view.focus()}),a})}}class nN extends M{static get pluginName(){return"Indent"}static get requires(){return[tN,eN]}}class oN{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(t){Array.isArray(t)?t.forEach(e=>this._definitions.add(e)):this._definitions.add(t)}getDispatcher(){return t=>{t.on("attribute:linkHref",(e,n,i)=>{if(!i.consumable.test(n.item,"attribute:linkHref")||!(n.item.is("selection")||i.schema.isInline(n.item)))return;const r=i.writer,s=r.document.selection;for(const a of this._definitions){const c=r.createAttributeElement("a",a.attributes,{priority:5});a.classes&&r.addClass(a.classes,c);for(const l in a.styles)r.setStyle(l,a.styles[l],c);r.setCustomProperty("link",!0,c),a.callback(n.attributeNewValue)?n.item.is("selection")?r.wrap(s.getFirstRange(),c):r.wrap(i.mapper.toViewRange(n.range),c):r.unwrap(i.mapper.toViewRange(n.range),c)}},{priority:"high"})}}getDispatcherForLinkedImage(){return t=>{t.on("attribute:linkHref:imageBlock",(e,n,{writer:i,mapper:r})=>{const s=r.toViewElement(n.item),a=Array.from(s.getChildren()).find(c=>c.is("element","a"));for(const c of this._definitions){const l=Ne(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 iN=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,rN=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,sN=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,aN=/^((\w+:(\/{2,})?)|(\W))/i,lc="Ctrl+K";function cN(o){return o.is("attributeElement")&&!!o.getCustomProperty("link")}function zp(o,{writer:t}){const e=t.createAttributeElement("a",{href:o},{priority:5});return t.setCustomProperty("link",!0,e),e}function Pp(o){const t=String(o);return lN(t)?t:"#"}function lN(o){return!!o.replace(iN,"").match(rN)}function dN(o,t){const e={"Open in a new tab":o("Open in a new tab"),Downloadable:o("Downloadable")};return t.forEach(n=>("label"in n&&e[n.label]&&(n.label=e[n.label]),n)),t}function uN(o){const t=[];if(o)for(const[e,n]of Object.entries(o)){const i=Object.assign({},n,{id:`link${Mf(e)}`});t.push(i)}return t}function dc(o,t){return o?t.checkAttribute(o.name,"linkHref"):!1}function hN(o){return sN.test(o)}function uc(o,t){const e=hN(o)?"mailto:":t,n=!!e&&!Lp(o);return o&&n?e+o:o}function Lp(o){return aN.test(o)}function Op(o){window.open(o,"_blank","noopener")}class gN extends Q{constructor(){super(...arguments),this.manualDecorators=new te,this.automaticDecorators=new oN}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()||Tt(e.getSelectedBlocks());dc(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=Rp(i);let d=Vo(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=Ne(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 m=u;if(d.length===1){const p=Rp(i);i.getAttribute("linkHref")===p&&(m=this._updateLinkContent(n,a,u,t),a.setSelection(a.createSelection(m)))}a.setAttribute("linkHref",t,m),r.forEach(p=>{a.setAttribute(p,!0,m)}),s.forEach(p=>{a.removeAttribute(p,m)})}}})}_getDecoratorStateFromModel(t){const e=this.editor.model,n=e.document.selection,i=n.getSelectedElement();return dc(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 Rp(o){if(o.isCollapsed){const t=o.getFirstPosition();return t.textNode&&t.textNode.data}else{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 mN extends Q{refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement();dc(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?[Vo(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 fN extends st(){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 jp=L(3925),hc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};hc.insert="head",hc.singleton=!0,R()(jp.Z,hc),jp.Z.locals;const pN="ck-link_selected",Fp="automatic",kN="manual",bN=/^(https?:)?\/\//;class Vp extends M{static get pluginName(){return"LinkEditing"}static get requires(){return[hm,rm,De]}constructor(t){super(t),t.config.define("link",{addTargetToExternalLinks:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:"linkHref"}),t.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:zp}),t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(i,r)=>zp(Pp(i),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 gN(t)),t.commands.add("unlink",new mN(t));const e=dN(t.t,uN(t.config.get("link.decorators")));this._enableAutomaticDecorators(e.filter(i=>i.mode===Fp)),this._enableManualDecorators(e.filter(i=>i.mode===kN)),t.plugins.get(hm).registerAttribute("linkHref"),lT(t,"linkHref","a",pN),this._enableLinkOpen(),this._enableSelectionAttributesFixer(),this._enableClipboardIntegration()}_enableAutomaticDecorators(t){const e=this.editor,i=e.commands.get("link").automaticDecorators;e.config.get("link.addTargetToExternalLinks")&&i.add({id:"linkIsExternal",mode:Fp,callback:r=>!!r&&bN.test(r),attributes:{target:"_blank",rel:"noopener noreferrer"}}),i.add(t),i.length&&e.conversion.for("downcast").add(i.getDispatcher())}_enableManualDecorators(t){if(!t.length)return;const e=this.editor,i=e.commands.get("link").manualDecorators;t.forEach(r=>{e.model.schema.extend("$text",{allowAttributes:r.id});const s=new fN(r);i.add(s),e.conversion.for("downcast").attributeToElement({model:s.id,view:(a,{writer:c,schema:l},{item:d})=>{if((d.is("selection")||l.isInline(d))&&a){const u=c.createAttributeElement("a",s.attributes,{priority:5});s.classes&&c.addClass(s.classes,u);for(const m in s.styles)c.setStyle(m,s.styles[m],u);return c.setCustomProperty("link",!0,u),u}}}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",...s._createPattern()},model:{key:s.id}})})}_enableLinkOpen(){const t=this.editor,n=t.editing.view.document;this.listenTo(n,"click",(i,r)=>{if(!(g.isMac?r.domEvent.metaKey:r.domEvent.ctrlKey))return;let a=r.domTarget;if(a.tagName.toLowerCase()!="a"&&(a=a.closest("a")),!a)return;const c=a.getAttribute("href");c&&(i.stop(),r.preventDefault(),Op(c))},{context:"$capture"}),this.listenTo(n,"keydown",(i,r)=>{const a=t.commands.get("link").value;a&&r.keyCode===tt.enter&&r.altKey&&(i.stop(),Op(a))})}_enableSelectionAttributesFixer(){const e=this.editor.model,n=e.document.selection;this.listenTo(n,"change:attribute",(i,{attributeKeys:r})=>{!r.includes("linkHref")||n.hasAttribute("linkHref")||e.change(s=>{wN(s,AN(e.schema))})})}_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=uc(c.getAttribute("linkHref"),n);s.setAttribute("linkHref",l,c)}})})}}function wN(o,t){o.removeSelectionAttribute("linkHref");for(const e of t)o.removeSelectionAttribute(e)}function AN(o){return o.getDefinition("$text").allowAttributes.filter(e=>e.startsWith("link"))}var Hp=L(4874),gc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};gc.insert="head",gc.singleton=!0,R()(Hp.Z,gc),Hp.Z.locals;class CN extends G{constructor(t,e){super(t),this.focusTracker=new Bt,this.keystrokes=new Vt,this._focusables=new ce;const n=t.t;this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),dt.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),dt.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(e),this.children=this._createFormChildren(e.manualDecorators),this._focusCycler=new fe({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const i=["ck","ck-link-form","ck-responsive-form"];e.manualDecorators.length&&i.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:i,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((t,e)=>(t[e.name]=e.isOn,t),{})}render(){super.render(),h({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const t=this.locale.t,e=new po(this.locale,No);return e.label=t("Link URL"),e}_createButton(t,e,n,i){const r=new et(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 gi(this.locale);i.set({name:n.id,label:n.label,withText:!0}),i.bind("isOn").toMany([n,t],"value",(r,s)=>s===void 0&&r===void 0?!!n.defaultValue:!!r),i.on("execute",()=>{n.set("value",!i.isOn)}),e.add(i)}return e}_createFormChildren(t){const e=this.createCollection();if(e.add(this.urlInputView),t.length){const n=new G;n.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(i=>({tag:"li",children:[i],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),e.add(n)}return e.add(this.saveButtonView),e.add(this.cancelButtonView),e}}var Up=L(7536),mc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};mc.insert="head",mc.singleton=!0,R()(Up.Z,mc),Up.Z.locals;const _N='<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>';class vN extends G{constructor(t){super(t),this.focusTracker=new Bt,this.keystrokes=new Vt,this._focusables=new ce;const e=t.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(e("Unlink"),_N,"unlink"),this.editButtonView=this._createButton(e("Edit link"),dt.pencil,"edit"),this.set("href",void 0),this._focusCycler=new fe({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(t,e,n){const i=new et(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.delegate("execute").to(this,n),i}_createPreviewButton(){const t=new et(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&&Pp(i)),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 yN='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',Ie="link-ui";class xN extends M{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[Fi]}static get pluginName(){return"LinkUI"}init(){const t=this.editor;t.editing.view.addObserver(u5),this._balloon=t.plugins.get(Fi),this._createToolbarLinkButton(),this._enableBalloonActivators(),t.conversion.for("editingDowncast").markerToHighlight({model:Ie,view:{classes:["ck-fake-link-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:Ie,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const t=this.editor,e=new vN(t.locale),n=t.commands.get("link"),i=t.commands.get("unlink");return e.bind("href").to(n,"value"),e.editButtonView.bind("isEnabled").to(n),e.unlinkButtonView.bind("isEnabled").to(i),this.listenTo(e,"edit",()=>{this._addFormView()}),this.listenTo(e,"unlink",()=>{t.execute("unlink"),this._hideUI()}),e.keystrokes.set("Esc",(r,s)=>{this._hideUI(),s()}),e.keystrokes.set(lc,(r,s)=>{this._addFormView(),s()}),e}_createFormView(){const t=this.editor,e=t.commands.get("link"),n=t.config.get("link.defaultProtocol"),i=new(v(CN))(t.locale,e);return i.urlInputView.fieldView.bind("value").to(e,"value"),i.urlInputView.bind("isEnabled").to(e,"isEnabled"),i.saveButtonView.bind("isEnabled").to(e),this.listenTo(i,"submit",()=>{const{value:r}=i.urlInputView.fieldView.element,s=uc(r,n);t.execute("link",s,i.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(i,"cancel",()=>{this._closeFormView()}),i.keystrokes.set("Esc",(r,s)=>{this._closeFormView(),s()}),i}_createToolbarLinkButton(){const t=this.editor,e=t.commands.get("link"),n=t.t;t.ui.componentFactory.add("link",i=>{const r=new et(i);return r.isEnabled=!0,r.label=n("Link"),r.icon=yN,r.keystroke=lc,r.tooltip=!0,r.isToggleable=!0,r.bind("isEnabled").to(e,"isEnabled"),r.bind("isOn").to(e,"value",s=>!!s),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(lc,(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())}),C({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 e=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=e.value||""}_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._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(Ie)){const r=Array.from(this.editor.editing.mapper.markerNameToElements(Ie)),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&&Nt(n))return fc(e.getFirstPosition());{const i=e.getFirstRange().getTrimmed(),r=fc(i.start),s=fc(i.end);return!r||r!=s?null: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(Ie))e.updateMarker(Ie,{range:n});else if(n.start.isAtEnd){const i=n.start.getLastMatchingPosition(({item:r})=>!t.schema.isContent(r),{boundaries:n});e.addMarker(Ie,{usingOperation:!1,affectsData:!1,range:e.createRange(i,n.end)})}else e.addMarker(Ie,{usingOperation:!1,affectsData:!1,range:n})})}_hideFakeVisualSelection(){const t=this.editor.model;t.markers.has(Ie)&&t.change(e=>{e.removeMarker(Ie)})}}function fc(o){return o.getAncestors().find(t=>cN(t))||null}const EN=4,Gp=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"),DN=2;class SN extends M{static get requires(){return[Ee,Vp]}static get pluginName(){return"AutoLink"}init(){const e=this.editor.model.document.selection;e.on("change:range",()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling(),this._enablePasteLinking()}_expandLinkRange(t,e){return e.textNode&&e.textNode.hasAttribute("linkHref")?Vo(e,"linkHref",e.textNode.getAttribute("linkHref"),t):null}_selectEntireLinks(t,e){const i=this.editor.model,r=i.document.selection,s=r.getFirstPosition(),a=r.getLastPosition();let c=e.getJoined(this._expandLinkRange(i,s)||e);c&&(c=c.getJoined(this._expandLinkRange(i,a)||e)),c&&(c.start.isBefore(s)||c.end.isAfter(a))&&t.setSelection(c)}_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||n.rangeCount>1)return;const c=n.getFirstRange(),l=a.dataTransfer.getData("text/plain");if(!l)return;const d=l.match(Gp);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 um(t.model,n=>{if(!TN(n))return;const i=qp(n.substr(0,n.length-1));if(i)return{url:i}});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}=dm(t,e),r=qp(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=this.editor.config.get("link.defaultProtocol"),r=uc(t,i);!this.isEnabled||!IN(e,n)||!Lp(r)||MN(e)||this._persistAutoLink(r,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 TN(o){return o.length>EN&&o[o.length-1]===" "&&o[o.length-2]!==" "}function qp(o){const t=Gp.exec(o);return t?t[DN]:null}function IN(o,t){return t.schema.checkAttributeInSelection(t.createSelection(o),"linkHref")}function MN(o){const t=o.start.nodeAfter;return!!t&&t.hasAttribute("linkHref")}class BN extends M{static get requires(){return[Vp,xN,SN]}static get pluginName(){return"Link"}}var Wp=L(4330),pc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};pc.insert="head",pc.singleton=!0,R()(Wp.Z,pc),Wp.Z.locals;var $p=L(3190),kc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};kc.insert="head",kc.singleton=!0,R()($p.Z,kc),$p.Z.locals;var Zp=L(4784),bc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};bc.insert="head",bc.singleton=!0,R()(Zp.Z,bc),Zp.Z.locals;function NN(o){const t=o.createContainerElement("li");return t.getFillerOffset=FN,t}function zN(o,t){const e=t.mapper,n=t.writer,i=o.getAttribute("listType")=="numbered"?"ol":"ul",r=NN(n),s=n.createContainerElement(i,null);return n.insert(n.createPositionAt(s,0),r),e.bindElements(o,r),r}function Kp(o,t,e,n){const i=t.parent,r=e.mapper,s=e.writer;let a=r.toViewPosition(n.createPositionBefore(o));const c=Qp(o.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:o.getAttribute("listIndent")}),l=o.previousSibling;if(c&&c.getAttribute("listIndent")==o.getAttribute("listIndent")){const d=r.toViewElement(c);a=s.breakContainer(s.createPositionAfter(d))}else if(l&&l.name=="listItem"){a=r.toViewPosition(n.createPositionAt(l,"end"));const d=r.findMappedViewAncestor(a),u=PN(d);u?a=s.createPositionBefore(u):a=s.createPositionAt(d,"end")}else a=r.toViewPosition(n.createPositionBefore(o));if(a=Yp(a),s.insert(a,i),l&&l.name=="listItem"){const d=r.toViewElement(l),m=s.createRange(s.createPositionAt(d,0),a).getWalker({ignoreElementEnd:!0});for(const p of m)if(p.item.is("element","li")){const b=s.breakContainer(s.createPositionBefore(p.item)),S=p.item.parent,B=s.createPositionAt(t,"end");ge(s,B.nodeBefore,B.nodeAfter),s.move(s.createRangeOn(S),B),m._position=b}}else{const d=i.nextSibling;if(d&&(d.is("element","ul")||d.is("element","ol"))){let u=null;for(const m of d.getChildren()){const p=r.toModelElement(m);if(p&&p.getAttribute("listIndent")>o.getAttribute("listIndent"))u=m;else break}u&&(s.breakContainer(s.createPositionAfter(u)),s.move(s.createRangeOn(u.parent),s.createPositionAt(t,"end")))}}ge(s,i,i.nextSibling),ge(s,i.previousSibling,i)}function ge(o,t,e){return!t||!e||t.name!="ul"&&t.name!="ol"||t.name!=e.name||t.getAttribute("class")!==e.getAttribute("class")?null:o.mergeContainers(o.createPositionAfter(t))}function Yp(o){return o.getLastMatchingPosition(t=>t.item.is("uiElement"))}function Qp(o,t){const e=!!t.sameIndent,n=!!t.smallerIndent,i=t.listIndent;let r=o;for(;r&&r.name=="listItem";){const s=r.getAttribute("listIndent");if(e&&i==s||n&&i>s)return r;t.direction==="forward"?r=r.nextSibling:r=r.previousSibling}return null}function Jp(o,t,e,n){o.ui.componentFactory.add(t,i=>{const r=o.commands.get(t),s=new et(i);return s.set({label:e,icon:n,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),s.on("execute",()=>{o.execute(t),o.editing.view.focus()}),s})}function PN(o){for(const t of o.getChildren())if(t.name=="ul"||t.name=="ol")return t;return null}function wc(o,t){const e=[],n=o.parent,i={ignoreElementEnd:!1,startPosition:o,shallow:!0,direction:t},r=n.getAttribute("listIndent"),s=[...new we(i)].filter(a=>a.item.is("element")).map(a=>a.item);for(const a of s){if(!a.is("element","listItem")||a.getAttribute("listIndent")<r)break;if(!(a.getAttribute("listIndent")>r)){if(a.getAttribute("listType")!==n.getAttribute("listType")||a.getAttribute("listStyle")!==n.getAttribute("listStyle")||a.getAttribute("listReversed")!==n.getAttribute("listReversed")||a.getAttribute("listStart")!==n.getAttribute("listStart"))break;t==="backward"?e.unshift(a):e.push(a)}}return e}function LN(o){let e=[...o.document.selection.getSelectedBlocks()].filter(n=>n.is("element","listItem")).map(n=>{const i=o.change(r=>r.createPositionAt(n,0));return[...wc(i,"backward"),...wc(i,"forward")]}).flat();return e=[...new Set(e)],e}const ON=["disc","circle","square"],RN=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function jN(o){return ON.includes(o)?"bulleted":RN.includes(o)?"numbered":null}function FN(){const o=!this.isEmpty&&(this.getChild(0).name=="ul"||this.getChild(0).name=="ol");return this.isEmpty||o?0:Du.call(this)}const VN='<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>',HN='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>';class UN extends M{static get pluginName(){return"ListUI"}init(){const t=this.editor.t;Jp(this.editor,"numberedList",t("Numbered List"),VN),Jp(this.editor,"bulletedList",t("Bulleted List"),HN)}}const GN=[{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 GN);var Xp=L(9938),Ac={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ac.insert="head",Ac.singleton=!0,R()(Xp.Z,Ac),Xp.Z.locals;var tk=L(2591),Cc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Cc.insert="head",Cc.singleton=!0,R()(tk.Z,Cc),tk.Z.locals;class ek extends Q{constructor(t,e){super(t),this._indentBy=e=="forward"?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model,e=t.document;let n=Array.from(e.selection.getSelectedBlocks());t.change(i=>{const r=n[n.length-1];let s=r.nextSibling;for(;s&&s.name=="listItem"&&s.getAttribute("listIndent")>r.getAttribute("listIndent");)n.push(s),s=s.nextSibling;this._indentBy<0&&(n=n.reverse());for(const a of n){const c=a.getAttribute("listIndent")+this._indentBy;c<0?i.rename(a,"paragraph"):i.setAttribute("listIndent",c,a)}this.fire("_executeCleanup",n)})}_checkEnabled(){const t=Tt(this.editor.model.document.selection.getSelectedBlocks());if(!t||!t.is("element","listItem"))return!1;if(this._indentBy>0){const e=t.getAttribute("listIndent"),n=t.getAttribute("listType");let i=t.previousSibling;for(;i&&i.is("element","listItem")&&i.getAttribute("listIndent")>=e;){if(i.getAttribute("listIndent")==e)return i.getAttribute("listType")==n;i=i.previousSibling}return!1}return!0}}class nk extends Q{constructor(t,e){super(t),this.type=e}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.document,i=Array.from(n.selection.getSelectedBlocks()).filter(s=>ik(s,e.schema)),r=t.forceValue!==void 0?!t.forceValue:this.value;e.change(s=>{if(r){let a=i[i.length-1].nextSibling,c=Number.POSITIVE_INFINITY,l=[];for(;a&&a.name=="listItem"&&a.getAttribute("listIndent")!==0;){const d=a.getAttribute("listIndent");d<c&&(c=d);const u=d-c;l.push({element:a,listIndent:u}),a=a.nextSibling}l=l.reverse();for(const d of l)s.setAttribute("listIndent",d.listIndent,d.element)}if(!r){let a=Number.POSITIVE_INFINITY;for(const c of i)c.is("element","listItem")&&c.getAttribute("listIndent")<a&&(a=c.getAttribute("listIndent"));a=a===0?1:a,ok(i,!0,a),ok(i,!1,a)}for(const a of i.reverse())r&&a.name=="listItem"?s.rename(a,"paragraph"):!r&&a.name!="listItem"?(s.setAttributes({listType:this.type,listIndent:0},a),s.rename(a,"listItem")):!r&&a.name=="listItem"&&a.getAttribute("listType")!=this.type&&s.setAttribute("listType",this.type,a);this.fire("_executeCleanup",i)})}_getValue(){const t=Tt(this.editor.model.document.selection.getSelectedBlocks());return!!t&&t.is("element","listItem")&&t.getAttribute("listType")==this.type}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=Tt(t.getSelectedBlocks());return n?ik(n,e):!1}}function ok(o,t,e){const n=t?o[0]:o[o.length-1];if(n.is("element","listItem")){let i=n[t?"previousSibling":"nextSibling"],r=n.getAttribute("listIndent");for(;i&&i.is("element","listItem")&&i.getAttribute("listIndent")>=e;)r>i.getAttribute("listIndent")&&(r=i.getAttribute("listIndent")),i.getAttribute("listIndent")==r&&o[t?"unshift":"push"](i),i=i[t?"previousSibling":"nextSibling"]}}function ik(o,t){return t.checkChild(o.parent,"listItem")&&!t.isObject(o)}class qN extends M{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(t){return jN(t)}getSelectedListItems(t){return LN(t)}getSiblingNodes(t,e){return wc(t,e)}}function rk(o){return(t,e,n)=>{const i=n.consumable;if(!i.test(e.item,"insert")||!i.test(e.item,"attribute:listType")||!i.test(e.item,"attribute:listIndent"))return;i.consume(e.item,"insert"),i.consume(e.item,"attribute:listType"),i.consume(e.item,"attribute:listIndent");const r=e.item,s=zN(r,n);Kp(r,s,n,o)}}function WN(o){return(t,e,n)=>{const s=n.mapper.toViewPosition(e.position).getLastMatchingPosition(p=>!p.item.is("element","li")).nodeAfter,a=n.writer;a.breakContainer(a.createPositionBefore(s)),a.breakContainer(a.createPositionAfter(s));const c=s.parent,l=c.previousSibling,d=a.createRangeOn(c),u=a.remove(d);l&&l.nextSibling&&ge(a,l,l.nextSibling);const m=n.mapper.toModelElement(s);lk(m.getAttribute("listIndent")+1,e.position,d.start,s,n,o);for(const p of a.createRangeIn(u).getItems())n.mapper.unbindViewElement(p);t.stop()}}const $N=(o,t,e)=>{if(!e.consumable.test(t.item,o.name))return;const n=e.mapper.toViewElement(t.item),i=e.writer;i.breakContainer(i.createPositionBefore(n)),i.breakContainer(i.createPositionAfter(n));const r=n.parent,s=t.attributeNewValue=="numbered"?"ol":"ul";i.rename(s,r)},ZN=(o,t,e)=>{e.consumable.consume(t.item,o.name);const i=e.mapper.toViewElement(t.item).parent,r=e.writer;ge(r,i,i.nextSibling),ge(r,i.previousSibling,i)};function KN(o){return(t,e,n)=>{if(!n.consumable.consume(e.item,"attribute:listIndent"))return;const i=n.mapper.toViewElement(e.item),r=n.writer;r.breakContainer(r.createPositionBefore(i)),r.breakContainer(r.createPositionAfter(i));const s=i.parent,a=s.previousSibling,c=r.createRangeOn(s);r.remove(c),a&&a.nextSibling&&ge(r,a,a.nextSibling),lk(e.attributeOldValue+1,e.range.start,c.start,i,n,o),Kp(e.item,i,n,o);for(const l of e.item.getChildren())n.consumable.consume(l,"insert")}}const sk=(o,t,e)=>{if(e.consumable.test(t.item,o.name)&&t.item.name!="listItem"){let n=e.mapper.toViewPosition(t.range.start);const i=e.writer,r=[];for(;(n.parent.name=="ul"||n.parent.name=="ol")&&(n=i.breakContainer(n),n.parent.name=="li");){const s=n,a=i.createPositionAt(n.parent,"end");if(!s.isEqual(a)){const c=i.remove(i.createRange(s,a));r.push(c)}n=i.createPositionAfter(n.parent)}if(r.length>0){for(let s=0;s<r.length;s++){const a=n.nodeBefore;if(n=i.insert(n,r[s]).end,s>0){const l=ge(i,a,a.nextSibling);l&&l.parent==a&&n.offset--}}ge(i,n.nodeBefore,n.nodeAfter)}}},YN=(o,t,e)=>{const n=e.mapper.toViewPosition(t.position),i=n.nodeBefore,r=n.nodeAfter;ge(e.writer,i,r)},QN=(o,t,e)=>{if(e.consumable.consume(t.viewItem,{name:!0})){const n=e.writer,i=n.createElement("listItem"),r=iz(t.viewItem);n.setAttribute("listIndent",r,i);const s=t.viewItem.parent&&t.viewItem.parent.name=="ol"?"numbered":"bulleted";if(n.setAttribute("listType",s,i),!e.safeInsert(i,t.modelCursor))return;const a=nz(i,t.viewItem.getChildren(),e);t.modelRange=n.createRange(t.modelCursor,a),e.updateConversionResult(i,t)}},ak=(o,t,e)=>{if(e.consumable.test(t.viewItem,{name:!0})){const n=Array.from(t.viewItem.getChildren());for(const i of n)!(i.is("element","li")||Jn(i))&&i._remove()}},JN=(o,t,e)=>{if(e.consumable.test(t.viewItem,{name:!0})){if(t.viewItem.childCount===0)return;const n=[...t.viewItem.getChildren()];let i=!1;for(const r of n)i&&!Jn(r)&&r._remove(),Jn(r)&&(i=!0)}};function ck(o){return(t,e)=>{if(e.isPhantom)return;const n=e.modelPosition.nodeBefore;if(n&&n.is("element","listItem")){const i=e.mapper.toViewElement(n),r=i.getAncestors().find(Jn),s=o.createPositionAt(i,0).getWalker();for(const a of s)if(a.type=="elementStart"&&a.item.is("element","li")){e.viewPosition=a.previousPosition;break}else if(a.type=="elementEnd"&&a.item==r){e.viewPosition=a.nextPosition;break}}}}function XN(o){return(t,e)=>{const n=e.viewPosition,i=n.parent,r=e.mapper;if(i.name=="ul"||i.name=="ol"){if(n.isAtEnd){const s=r.toModelElement(n.nodeBefore),a=r.getModelLength(n.nodeBefore);e.modelPosition=o.createPositionBefore(s).getShiftedBy(a)}else{const s=r.toModelElement(n.nodeAfter);e.modelPosition=o.createPositionBefore(s)}t.stop()}else if(i.name=="li"&&n.nodeBefore&&(n.nodeBefore.name=="ul"||n.nodeBefore.name=="ol")){const s=r.toModelElement(i);let a=1,c=n.nodeBefore;for(;c&&Jn(c);)a+=r.getModelLength(c),c=c.previousSibling;e.modelPosition=o.createPositionBefore(s).getShiftedBy(a),t.stop()}}}function tz(o,t){const e=o.document.differ.getChanges(),n=new Map;let i=!1;for(const c of e)if(c.type=="insert"&&c.name=="listItem")r(c.position);else if(c.type=="insert"&&c.name!="listItem"){if(c.name!="$text"){const d=c.position.nodeAfter;d.hasAttribute("listIndent")&&(t.removeAttribute("listIndent",d),i=!0),d.hasAttribute("listType")&&(t.removeAttribute("listType",d),i=!0),d.hasAttribute("listStyle")&&(t.removeAttribute("listStyle",d),i=!0),d.hasAttribute("listReversed")&&(t.removeAttribute("listReversed",d),i=!0),d.hasAttribute("listStart")&&(t.removeAttribute("listStart",d),i=!0);for(const u of Array.from(o.createRangeIn(d)).filter(m=>m.item.is("element","listItem")))r(u.previousPosition)}const l=c.position.getShiftedBy(c.length);r(l)}else c.type=="remove"&&c.name=="listItem"?r(c.position):(c.type=="attribute"&&c.attributeKey=="listIndent"||c.type=="attribute"&&c.attributeKey=="listType")&&r(c.range.start);for(const c of n.values())s(c),a(c);return i;function r(c){const l=c.nodeBefore;if(!l||!l.is("element","listItem")){const d=c.nodeAfter;d&&d.is("element","listItem")&&n.set(d,d)}else{let d=l;if(n.has(d))return;for(let u=d.previousSibling;u&&u.is("element","listItem");u=d.previousSibling)if(d=u,n.has(d))return;n.set(l,d)}}function s(c){let l=0,d=null;for(;c&&c.is("element","listItem");){const u=c.getAttribute("listIndent");if(u>l){let m;d===null?(d=u-l,m=l):(d>u&&(d=u),m=u-d),t.setAttribute("listIndent",m,c),i=!0}else d=null,l=c.getAttribute("listIndent")+1;c=c.nextSibling}}function a(c){let l=[],d=null;for(;c&&c.is("element","listItem");){const u=c.getAttribute("listIndent");if(d&&d.getAttribute("listIndent")>u&&(l=l.slice(0,u+1)),u!=0)if(l[u]){const m=l[u];c.getAttribute("listType")!=m&&(t.setAttribute("listType",m,c),i=!0)}else l[u]=c.getAttribute("listType");d=c,c=c.nextSibling}}}const ez=function(o,[t,e]){const n=this;let i=t.is("documentFragment")?t.getChild(0):t,r;if(e?r=n.createSelection(e):r=n.document.selection,i&&i.is("element","listItem")){const s=r.getFirstPosition();let a=null;if(s.parent.is("element","listItem")?a=s.parent:s.nodeBefore&&s.nodeBefore.is("element","listItem")&&(a=s.nodeBefore),a){const c=a.getAttribute("listIndent");if(c>0)for(;i&&i.is("element","listItem");)i._setAttribute("listIndent",i.getAttribute("listIndent")+c),i=i.nextSibling}}};function nz(o,t,e){const{writer:n,schema:i}=e;let r=n.createPositionAfter(o);for(const s of t)if(s.name=="ul"||s.name=="ol")r=e.convertItem(s,r).modelCursor;else{const a=e.convertItem(s,n.createPositionAt(o,"end")),c=a.modelRange.start.nodeAfter;c&&c.is("element")&&!i.checkChild(o,c.name)&&(a.modelCursor.parent.is("element","listItem")?o=a.modelCursor.parent:o=oz(a.modelCursor),r=n.createPositionAfter(o))}return r}function oz(o){const t=new we({startPosition:o});let e;do e=t.next();while(!e.value.item.is("element","listItem"));return e.value.item}function lk(o,t,e,n,i,r){const s=Qp(t.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:o}),a=i.mapper,c=i.writer,l=s?s.getAttribute("listIndent"):null;let d;if(!s)d=e;else if(l==o){const u=a.toViewElement(s).parent;d=c.createPositionAfter(u)}else{const u=r.createPositionAt(s,"end");d=a.toViewPosition(u)}d=Yp(d);for(const u of[...n.getChildren()])Jn(u)&&(d=c.move(c.createRangeOn(u),d).end,ge(c,u,u.nextSibling),ge(c,u.previousSibling,u))}function Jn(o){return o.is("element","ol")||o.is("element","ul")}function iz(o){let t=0,e=o.parent;for(;e;){if(e.is("element","li"))t++;else{const n=e.previousSibling;n&&n.is("element","li")&&t++}e=e.parent}return t}class rz extends M{static get pluginName(){return"ListEditing"}static get requires(){return[Ho,Ee,qN]}init(){const t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const e=t.data,n=t.editing;t.model.document.registerPostFixer(r=>tz(t.model,r)),n.mapper.registerViewToModelLength("li",_c),e.mapper.registerViewToModelLength("li",_c),n.mapper.on("modelToViewPosition",ck(n.view)),n.mapper.on("viewToModelPosition",XN(t.model)),e.mapper.on("modelToViewPosition",ck(n.view)),t.conversion.for("editingDowncast").add(r=>{r.on("insert",sk,{priority:"high"}),r.on("insert:listItem",rk(t.model)),r.on("attribute:listType:listItem",$N,{priority:"high"}),r.on("attribute:listType:listItem",ZN,{priority:"low"}),r.on("attribute:listIndent:listItem",KN(t.model)),r.on("remove:listItem",WN(t.model)),r.on("remove",YN,{priority:"low"})}),t.conversion.for("dataDowncast").add(r=>{r.on("insert",sk,{priority:"high"}),r.on("insert:listItem",rk(t.model))}),t.conversion.for("upcast").add(r=>{r.on("element:ul",ak,{priority:"high"}),r.on("element:ol",ak,{priority:"high"}),r.on("element:li",JN,{priority:"high"}),r.on("element:li",QN)}),t.model.on("insertContent",ez,{priority:"high"}),t.commands.add("numberedList",new nk(t,"numbered")),t.commands.add("bulletedList",new nk(t,"bulleted")),t.commands.add("indentList",new ek(t,"forward")),t.commands.add("outdentList",new ek(t,"backward"));const i=n.view.document;this.listenTo(i,"enter",(r,s)=>{const a=this.editor.model.document,c=a.selection.getLastPosition().parent;a.selection.isCollapsed&&c.name=="listItem"&&c.isEmpty&&(this.editor.execute("outdentList"),s.preventDefault(),r.stop())},{context:"li"}),this.listenTo(i,"delete",(r,s)=>{if(s.direction!=="backward")return;const a=this.editor.model.document.selection;if(!a.isCollapsed)return;const c=a.getFirstPosition();if(!c.isAtStart)return;const l=c.parent;l.name!=="listItem"||l.previousSibling&&l.previousSibling.name==="listItem"||(this.editor.execute("outdentList"),s.preventDefault(),r.stop())},{context:"li"}),this.listenTo(t.editing.view.document,"tab",(r,s)=>{const a=s.shiftKey?"outdentList":"indentList";this.editor.commands.get(a).isEnabled&&(t.execute(a),s.stopPropagation(),s.preventDefault(),r.stop())},{context:"li"})}afterInit(){const t=this.editor.commands,e=t.get("indent"),n=t.get("outdent");e&&e.registerChildCommand(t.get("indentList")),n&&n.registerChildCommand(t.get("outdentList"))}}function _c(o){let t=1;for(const e of o.getChildren())if(e.name=="ul"||e.name=="ol")for(const n of e.getChildren())t+=_c(n);return t}class sz extends M{static get requires(){return[rz,UN]}static get pluginName(){return"List"}}go("Ctrl+Enter");var dk=L(9292),vc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};vc.insert="head",vc.singleton=!0,R()(dk.Z,vc),dk.Z.locals,go("Ctrl+Enter");function uk(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 az(o,t,e){return t.setCustomProperty("media",!0,o),Go(o,t,{label:e})}function hk(o,t,e,n){return o.createContainerElement("figure",{class:"media"},[t.getMediaViewElement(o,e,n),o.createSlot()])}function gk(o){const t=o.getSelectedElement();return t&&t.is("element","media")?t:null}function mk(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 cz extends Q{refresh(){const t=this.editor.model,e=t.document.selection,n=gk(e);this.value=n?n.getAttribute("url"):void 0,this.isEnabled=dz(e)||lz(e,t)}execute(t){const e=this.editor.model,n=e.document.selection,i=gk(n);i?e.change(r=>{r.setAttribute("url",t,i)}):mk(e,t,n,!0)}}function lz(o,t){let n=Nm(o,t).start.parent;return n.isEmpty&&!t.schema.isLimit(n)&&(n=n.parent),t.schema.checkChild(n,"media")}function dz(o){const t=o.getSelectedElement();return!!t&&t.name==="media"}const uz='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',hz="0 0 64 42";class gz{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):!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 fk(this.locale);t=t.trim();for(const e of this.providerDefinitions){const n=e.html,i=_t(e.url);for(const r of i){const s=this._getUrlMatches(t,r);if(s)return new fk(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)?n:null}}class fk{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 ze,e=this._locale.t;return t.content=uz,t.viewBox=hz,new $t({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 pk=L(1922),yc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};yc.insert="head",yc.singleton=!0,R()(pk.Z,yc),pk.Z.locals;class or extends M{static get pluginName(){return"MediaEmbedEditing"}constructor(t){super(t),t.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:[/^dailymotion\.com\/video\/(\w+)/,/^dai.ly\/(\w+)/],html:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:e=>{const n=e[1],i=e[2];return`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/${n}${i?`?start=${i}`:""}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new gz(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 cz(t)),e.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),i.for("dataDowncast").elementToStructure({model:"media",view:(c,{writer:l})=>{const d=c.getAttribute("url");return hk(l,a,d,{elementName:s,renderMediaPreview:!!d&&r})}}),i.for("dataDowncast").add(uk(a,{elementName:s,renderMediaPreview:r})),i.for("editingDowncast").elementToStructure({model:"media",view:(c,{writer:l})=>{const d=c.getAttribute("url"),u=hk(l,a,d,{elementName:s,renderForEditingView:!0});return az(u,l,n("media widget"))}}),i.for("editingDowncast").add(uk(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=>{const l=(d,u,m)=>{if(!m.consumable.consume(u.viewItem,{name:!0,classes:"media"}))return;const{modelRange:p,modelCursor:b}=m.convertChildren(u.viewItem,u.modelCursor);u.modelRange=p,u.modelCursor=b,Tt(p.getItems())||m.consumable.revert(u.viewItem,{name:!0,classes:"media"})};c.on("element:figure",l)})}}const mz=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class fz extends M{static get requires(){return[La,Ee,Yi]}static get pluginName(){return"AutoMediaEmbed"}constructor(t){super(t),this._timeoutId=null,this._positionToInsert=null}init(){const t=this.editor,e=t.model.document,n=t.plugins.get("ClipboardPipeline");this.listenTo(n,"inputTransformation",()=>{const r=e.selection.getFirstRange(),s=Mt.fromPosition(r.start);s.stickiness="toPrevious";const a=Mt.fromPosition(r.end);a.stickiness="toNext",e.once("change:data",()=>{this._embedMediaBetweenPositions(s,a),s.detach(),a.detach()},{priority:"high"})}),t.commands.get("undo").on("execute",()=>{this._timeoutId&&(U.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(or).registry,r=new Zt(t,e),s=r.getWalker({ignoreElementEnd:!0});let a="";for(const l of s)l.item.is("$textProxy")&&(a+=l.item.data);if(a=a.trim(),!a.match(mz)){r.detach();return}if(!i.hasMedia(a)){r.detach();return}if(!n.commands.get("mediaEmbed").isEnabled){r.detach();return}this._positionToInsert=Mt.fromPosition(t),this._timeoutId=U.window.setTimeout(()=>{n.model.change(l=>{this._timeoutId=null,l.remove(r),r.detach();let d=null;this._positionToInsert.root.rootName!=="$graveyard"&&(d=this._positionToInsert),mk(n.model,a,d,!1),this._positionToInsert.detach(),this._positionToInsert=null}),n.plugins.get(Ee).requestUndoOnBackspace()},100)}}var kk=L(7138),xc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};xc.insert="head",xc.singleton=!0,R()(kk.Z,xc),kk.Z.locals;class pz extends G{constructor(t,e){super(e);const n=e.t;this.focusTracker=new Bt,this.keystrokes=new Vt,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),dt.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",i=>!!i),this.cancelButtonView=this._createButton(n("Cancel"),dt.cancel,"ck-button-cancel","cancel"),this._focusables=new ce,this._focusCycler=new fe({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=t,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),h({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(n=>{this._focusables.add(n),this.focusTracker.add(n.element)}),this.keystrokes.listenTo(this.element);const e=n=>n.stopPropagation();this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(t){this.urlInputView.fieldView.element.value=t.trim()}isValid(){this.resetFormStatus();for(const t of this._validators){const e=t(this);if(e)return this.urlInputView.errorText=e,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const t=this.locale.t,e=new po(this.locale,No),n=e.fieldView;return this._urlInputViewInfoDefault=t("Paste the media URL in the input."),this._urlInputViewInfoTip=t("Tip: Paste the URL into the content to embed faster."),e.label=t("Media URL"),e.infoText=this._urlInputViewInfoDefault,n.on("input",()=>{e.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=n.element.value.trim()}),e}_createButton(t,e,n,i){const r=new et(this.locale);return r.set({label:t,icon:e,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}}const kz='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M18.68 3.03c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.58c0-.58-.01-.55.6-.55h17.38zM15.77 15V5H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 7.177a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V7.176v.001z"/></svg>';class bz extends M{static get requires(){return[or]}static get pluginName(){return"MediaEmbedUI"}init(){const t=this.editor,e=t.commands.get("mediaEmbed");t.ui.componentFactory.add("mediaEmbed",n=>{const i=de(n);return this._setUpDropdown(i,e),i})}_setUpDropdown(t,e){const n=this.editor,i=n.t,r=t.buttonView,s=n.plugins.get(or).registry;t.once("change:isOpen",()=>{const a=new(v(pz))(wz(n.t,s),n.locale);t.panelView.children.add(a),r.on("open",()=>{a.disableCssTransitions(),a.url=e.value||"",a.urlInputView.fieldView.select(),a.enableCssTransitions()},{priority:"low"}),t.on("submit",()=>{a.isValid()&&(n.execute("mediaEmbed",a.url),n.editing.view.focus())}),t.on("change:isOpen",()=>a.resetFormStatus()),t.on("cancel",()=>{n.editing.view.focus()}),a.delegate("submit","cancel").to(t),a.urlInputView.fieldView.bind("value").to(e,"value"),a.urlInputView.bind("isEnabled").to(e,"isEnabled")}),t.bind("isEnabled").to(e),r.set({label:i("Insert media"),icon:kz,tooltip:!0})}}function wz(o,t){return[e=>{if(!e.url.length)return o("The URL must not be empty.")},e=>{if(!t.hasMedia(e.url))return o("This media URL is not supported.")}]}var bk=L(8705),Ec={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ec.insert="head",Ec.singleton=!0,R()(bk.Z,Ec),bk.Z.locals;class Az extends M{static get requires(){return[or,bz,fz,$n]}static get pluginName(){return"MediaEmbed"}}function Cz(o,t){if(!o.childCount)return;const e=new Re(o.document),n=vz(o,e);if(!n.length)return;let i=null,r=1;n.forEach((s,a)=>{const c=Mz(n[a-1],s),l=c?null:n[a-1],d=Nz(l,s);if(c&&(i=null,r=1),!i||d!==0){const m=yz(s,t);if(!i)i=wk(m,s.element,e);else if(s.indent>r){const p=i.getChild(i.childCount-1),b=p.getChild(p.childCount-1);i=wk(m,b,e),r+=1}else if(s.indent<r){const p=r-s.indent;i=zz(i,p),r=s.indent}s.indent<=r&&(i.is("element",m.type)||(i=e.rename(m.type,i)))}const u=Sz(s.element,e);e.appendChild(u,i)})}function _z(o,t){for(const e of t.createRangeIn(o)){const n=e.item;if(n.is("element","li")){const i=n.getChild(0);i&&i.is("element","p")&&t.unwrapElement(i)}}}function vz(o,t){const e=t.createRangeIn(o),n=new ee({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),i=[];for(const r of e)if(r.type==="elementStart"&&n.match(r.item)){const s=Tz(r.item);i.push({element:r.item,id:s.id,order:s.order,indent:s.indent})}return i}function yz(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=e.exec(t);let s="decimal",a="ol",c=null;if(r&&r[1]){const l=n.exec(r[1]);if(l&&l[1]&&(s=l[1].trim(),a=s!=="bullet"&&s!=="image"?"ol":"ul"),s==="bullet"){const d=xz(o.element);d&&(s=d)}else{const d=i.exec(r[1]);d&&d[1]&&(c=parseInt(d[1]))}}return{type:a,startIndex:c,style:Dz(s)}}function xz(o){const t=Ez(o);if(!t)return null;const e=t._data;return e==="o"?"circle":e==="·"?"disc":e==="§"?"square":null}function Ez(o){if(o.getChild(0).is("$text"))return null;for(const t of o.getChildren()){if(!t.is("element","span"))continue;const e=t.getChild(0);if(e)return e.is("$text")?e:e.getChild(0)}return null}function Dz(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 wk(o,t,e){const n=t.parent,i=e.createElement(o.type),r=n.getChildIndex(t)+1;return e.insertChild(r,i,n),o.style&&e.setStyle("list-style-type",o.style,i),o.startIndex&&o.startIndex>1&&e.setAttribute("start",o.startIndex,i),i}function Sz(o,t){return Iz(o,t),t.removeStyle("text-indent",o),t.rename("li",o)}function Tz(o){const t={},e=o.getStyle("mso-list");if(e){const n=e.match(/(^|\s{1,100})l(\d+)/i),i=e.match(/\s{0,100}lfo(\d+)/i),r=e.match(/\s{0,100}level(\d+)/i);n&&i&&r&&(t.id=n[2],t.order=i[1],t.indent=parseInt(r[1]))}return t}function Iz(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 Mz(o,t){if(!o)return!0;if(o.id!==t.id)return t.indent-o.indent!==1;const e=t.element.previousSibling;return e?!Bz(e):!0}function Bz(o){return o.is("element","ol")||o.is("element","ul")}function Nz(o,t){return o?t.indent-o.indent:t.indent-1}function zz(o,t){const e=o.getAncestors({parentFirst:!0});let n=null,i=0;for(const r of e)if((r.is("element","ul")||r.is("element","ol"))&&i++,i===t){n=r;break}return n}function Pz(o,t){if(!o.childCount)return;const e=new Re(o.document),n=Oz(o,e);Rz(n,o,e),Fz(n,o,e),jz(o,e);const i=Vz(o,e);i.length&&Uz(i,Hz(t),e)}function Lz(o){return btoa(o.match(/\w{2}/g).map(t=>String.fromCharCode(parseInt(t,16))).join(""))}function Oz(o,t){const e=t.createRangeIn(o),n=new ee({name:/v:(.+)/}),i=[];for(const r of e){if(r.type!="elementStart")continue;const s=r.item,a=s.previousSibling,c=a&&a.is("element")?a.name:null;n.match(s)&&s.getAttribute("o:gfxdata")&&c!=="v:shapetype"&&i.push(r.item.getAttribute("id"))}return i}function Rz(o,t,e){const n=e.createRangeIn(t),i=new ee({name:"img"}),r=[];for(const s of n)if(s.item.is("element")&&i.match(s.item)){const a=s.item,c=a.getAttribute("v:shapes")?a.getAttribute("v:shapes").split(" "):[];c.length&&c.every(l=>o.indexOf(l)>-1)?r.push(a):a.getAttribute("src")||r.push(a)}for(const s of r)e.remove(s)}function jz(o,t){const e=t.createRangeIn(o),n=new ee({name:/v:(.+)/}),i=[];for(const r of e)r.type=="elementStart"&&n.match(r.item)&&i.push(r.item);for(const r of i)t.remove(r)}function Fz(o,t,e){const n=e.createRangeIn(t),i=[];for(const a of n)if(a.type=="elementStart"&&a.item.is("element","v:shape")){const c=a.item.getAttribute("id");if(o.includes(c))continue;r(a.item.parent.getChildren(),c)||i.push(a.item)}for(const a of i){const c={src:s(a)};a.hasAttribute("alt")&&(c.alt=a.getAttribute("alt"));const l=e.createElement("img",c);e.insertChild(a.index+1,l,a.parent)}function r(a,c){for(const l of a)if(l.is("element")&&(l.name=="img"&&l.getAttribute("v:shapes")==c||r(l.getChildren(),c)))return!0;return!1}function s(a){for(const c of a.getChildren())if(c.is("element")&&c.getAttribute("src"))return c.getAttribute("src")}}function Vz(o,t){const e=t.createRangeIn(o),n=new ee({name:"img"}),i=[];for(const r of e)r.item.is("element")&&n.match(r.item)&&r.item.getAttribute("src").startsWith("file://")&&i.push(r.item);return i}function Hz(o){if(!o)return[];const t=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,e=new RegExp("(?:("+t.source+"))([\\da-fA-F\\s]+)\\}","g"),n=o.match(e),i=[];if(n)for(const r of n){let s=!1;r.includes("\\pngblip")?s="image/png":r.includes("\\jpegblip")&&(s="image/jpeg"),s&&i.push({hex:r.replace(t,"").replace(/[^\da-fA-F]/g,""),type:s})}return i}function Uz(o,t,e){if(o.length===t.length)for(let n=0;n<o.length;n++){const i=`data:${t[n].type};base64,${Lz(t[n].hex)}`;e.setAttribute("src",i,o[n])}}function Gz(o){const t=[],e=new Re(o.document);for(const{item:n}of e.createRangeIn(o))if(n.is("element")){for(const i of n.getClassNames())/\bmso/gi.exec(i)&&e.removeClass(i,n);for(const i of n.getStyleNames())/\bmso/gi.exec(i)&&e.removeStyle(i,n);n.is("element","w:sdt")&&t.push(n)}for(const n of t){const i=n.parent,r=i.getChildIndex(n);e.insertChild(r,n.getChildren(),i),e.remove(n)}}const qz=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,Wz=/xmlns:o="urn:schemas-microsoft-com/i;class $z{constructor(t){this.document=t}isActive(t){return qz.test(t)||Wz.test(t)}execute(t){const{body:e,stylesString:n}=t._parsedData;Cz(e,n),Pz(e,t.dataTransfer.getData("text/rtf")),Gz(e),t.content=e}}function Zz(o,t){for(const e of o.getChildren())if(e.is("element","b")&&e.getStyle("font-weight")==="normal"){const n=o.getChildIndex(e);t.remove(e),t.insertChild(n,e.getChildren(),o)}}function Kz(o,t){const e=new Ai(t.document.stylesProcessor),n=new vi(e,{renderingMode:"data"}),i=n.blockElements,r=n.inlineObjectElements,s=[];for(const a of t.createRangeIn(o)){const c=a.item;if(c.is("element","br")){const l=Ak(c,"forward",t,{blockElements:i,inlineObjectElements:r}),d=Ak(c,"backward",t,{blockElements:i,inlineObjectElements:r}),u=Ck(l,i);(Ck(d,i)||u)&&s.push(c)}}for(const a of s)a.hasClass("Apple-interchange-newline")?t.remove(a):t.replace(a,t.createElement("p"))}function Ak(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 Ck(o,t){return!!o&&o.is("element")&&t.includes(o.name)}const Yz=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class Qz{constructor(t){this.document=t}isActive(t){return Yz.test(t)}execute(t){const e=new Re(this.document),{body:n}=t._parsedData;Zz(n,e),_z(n,e),Kz(n,e),t.content=n}}function Jz(o,t){for(const e of o.getChildren())e.is("element","table")&&e.hasAttribute("xmlns")&&t.removeAttribute("xmlns",e)}function Xz(o,t){for(const e of o.getChildren())if(e.is("element","google-sheets-html-origin")){const n=o.getChildIndex(e);t.remove(e),t.insertChild(n,e.getChildren(),o)}}function tP(o,t){for(const e of o.getChildren())e.is("element","table")&&e.getStyle("width")==="0px"&&t.removeStyle("width",e)}function eP(o,t){for(const e of Array.from(o.getChildren()))e.is("element","style")&&t.remove(e)}const nP=/<google-sheets-html-origin/i;class oP{constructor(t){this.document=t}isActive(t){return nP.test(t)}execute(t){const e=new Re(this.document),{body:n}=t._parsedData;Xz(n,e),Jz(n,e),tP(n,e),eP(n,e),t.content=n}}function iP(o){return _k(_k(o)).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 rP(o){o.querySelectorAll("span[style*=spacerun]").forEach(t=>{const e=t,n=e.innerText.length||0;e.innerText=Array(n+1).join(" ").substr(0,n)})}function _k(o){return o.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(t,e)=>e.length===1?" ":Array(e.length+1).join(" ").substr(0,e.length))}function sP(o,t){const e=new DOMParser;o=o.replace(/<!--\[if gte vml 1]>/g,""),o=o.replace(/<o:SmartTagType(?:\s+[^\s>=]+(?:="[^"]*")?)*\s*\/?>/gi,"");const n=iP(lP(o)),i=e.parseFromString(n,"text/html");rP(i);const r=i.body.innerHTML,s=aP(i,t),a=cP(i);return{body:s,bodyString:r,styles:a.styles,stylesString:a.stylesString}}function aP(o,t){const e=new Ai(t),n=new vi(e,{renderingMode:"data"}),i=o.createDocumentFragment(),r=o.body.childNodes;for(;r.length>0;)i.appendChild(r[0]);return n.domToView(i,{skipComments:!0})}function cP(o){const t=[],e=[],n=Array.from(o.getElementsByTagName("style"));for(const i of n)i.sheet&&i.sheet.cssRules&&i.sheet.cssRules.length&&(t.push(i.sheet),e.push(i.innerHTML));return{styles:t,stylesString:e.join(" ")}}function lP(o){const t="</body>",e="</html>",n=o.indexOf(t);if(n<0)return o;const i=o.indexOf(e,n+t.length);return o.substring(0,n+t.length)+(i>=0?o.substring(i):"")}class dP extends M{static get pluginName(){return"PasteFromOffice"}static get requires(){return[De]}init(){const t=this.editor,e=t.plugins.get("ClipboardPipeline"),n=t.editing.view.document,i=[];i.push(new $z(n)),i.push(new Qz(n)),i.push(new oP(n)),e.on("inputTransformation",(r,s)=>{if(s._isTransformedWithPasteFromOffice||t.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const c=s.dataTransfer.getData("text/html"),l=i.find(d=>d.isActive(c));l&&(s._parsedData||(s._parsedData=sP(c,n.stylesProcessor)),l.execute(s),s._isTransformedWithPasteFromOffice=!0)},{priority:"high"})}}function uP(o){const t=[{name:"address",isVoid:!1},{name:"article",isVoid:!1},{name:"aside",isVoid:!1},{name:"blockquote",isVoid:!1},{name:"details",isVoid:!1},{name:"dialog",isVoid:!1},{name:"dd",isVoid:!1},{name:"div",isVoid:!1},{name:"dl",isVoid:!1},{name:"dt",isVoid:!1},{name:"fieldset",isVoid:!1},{name:"figcaption",isVoid:!1},{name:"figure",isVoid:!1},{name:"footer",isVoid:!1},{name:"form",isVoid:!1},{name:"h1",isVoid:!1},{name:"h2",isVoid:!1},{name:"h3",isVoid:!1},{name:"h4",isVoid:!1},{name:"h5",isVoid:!1},{name:"h6",isVoid:!1},{name:"header",isVoid:!1},{name:"hgroup",isVoid:!1},{name:"hr",isVoid:!0},{name:"li",isVoid:!1},{name:"main",isVoid:!1},{name:"nav",isVoid:!1},{name:"ol",isVoid:!1},{name:"p",isVoid:!1},{name:"section",isVoid:!1},{name:"table",isVoid:!1},{name:"tbody",isVoid:!1},{name:"td",isVoid:!1},{name:"th",isVoid:!1},{name:"thead",isVoid:!1},{name:"tr",isVoid:!1},{name:"ul",isVoid:!1}],e=t.map(r=>r.name).join("|"),n=o.replace(new RegExp(`</?(${e})( .*?)?>`,"g"),`
|
|
|
$&
|
|
|
`).replace(/<br[^>]*>/g,`$&
|
|
|
`).split(`
|
|
|
`);let i=0;return n.filter(r=>r.length).map(r=>hP(r,t)?Dc(r,i++):gP(r,t)?Dc(r,--i):Dc(r,i)).join(`
|
|
|
`)}function hP(o,t){return t.some(e=>!(e.isVoid||!new RegExp(`<${e.name}( .*?)?>`).test(o)))}function gP(o,t){return t.some(e=>new RegExp(`</${e.name}>`).test(o))}function Dc(o,t,e=" "){return`${e.repeat(Math.max(0,t))}${o}`}var vk=L(4420),Sc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Sc.insert="head",Sc.singleton=!0,R()(vk.Z,Sc),vk.Z.locals;const mP='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.5 0 5 4.5v15.003h-16V0h11zM3 1.5v3.25l-1.497 1-.003 8 1.5 1v3.254L7.685 18l-.001 1.504H17.5V8.002L16 9.428l-.004-4.22-4.222-3.692L3 1.5z"/><path d="M4.06 6.64a.75.75 0 0 1 .958 1.15l-.085.07L2.29 9.75l2.646 1.89c.302.216.4.62.232.951l-.058.095a.75.75 0 0 1-.951.232l-.095-.058-3.5-2.5V9.14l3.496-2.5zm4.194 6.22a.75.75 0 0 1-.958-1.149l.085-.07 2.643-1.89-2.646-1.89a.75.75 0 0 1-.232-.952l.058-.095a.75.75 0 0 1 .95-.232l.096.058 3.5 2.5v1.22l-3.496 2.5zm7.644-.836 2.122 2.122-5.825 5.809-2.125-.005.003-2.116zm2.539-1.847 1.414 1.414a.5.5 0 0 1 0 .707l-1.06 1.06-2.122-2.12 1.061-1.061a.5.5 0 0 1 .707 0z"/></svg>',yk="SourceEditingMode";class fP extends M{static get pluginName(){return"SourceEditing"}static get requires(){return[Ni]}constructor(t){super(t),this.set("isSourceEditingMode",!1),this._elementReplacer=new ul,this._replacedRoots=new Map,this._dataFromRoots=new Map}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("sourceEditing",n=>{const i=new et(n);return i.set({label:e("Source"),icon:mP,tooltip:!0,withText:!0,class:"ck-source-editing-button"}),i.bind("isOn").to(this,"isSourceEditingMode"),i.bind("isEnabled").to(this,"isEnabled",t,"isReadOnly",t.plugins.get(Ni),"hasAny",(r,s,a)=>!(!r||s||a)),this.listenTo(i,"execute",()=>{this.isSourceEditingMode=!this.isSourceEditingMode}),i}),this._isAllowedToHandleSourceEditingMode()&&(this.on("change:isSourceEditingMode",(n,i,r)=>{r?(this._showSourceEditing(),this._disableCommands()):(this._hideSourceEditing(),this._enableCommands())}),this.on("change:isEnabled",(n,i,r)=>this._handleReadOnlyMode(!r)),this.listenTo(t,"change:isReadOnly",(n,i,r)=>this._handleReadOnlyMode(r))),t.data.on("get",()=>{this.isSourceEditingMode&&this.updateEditorData()},{priority:"high"})}afterInit(){const t=this.editor;["RealTimeCollaborativeEditing","CommentsEditing","TrackChangesEditing","RevisionHistory"].some(n=>t.plugins.has(n)),t.plugins.has("RestrictedEditingModeEditing")}updateEditorData(){const t=this.editor,e={};for(const[n,i]of this._replacedRoots){const r=this._dataFromRoots.get(n),s=i.dataset.value;r!==s&&(e[n]=s,this._dataFromRoots.set(n,s))}Object.keys(e).length&&t.data.set(e,{batchType:{isUndoable:!0}})}_showSourceEditing(){const t=this.editor,e=t.editing.view,n=t.model;n.change(i=>{i.setSelection(null),i.removeSelectionAttribute(n.document.selection.getAttributeKeys())});for(const[i,r]of e.domRoots){const s=pP(t.data.get({rootName:i})),a=no(r.ownerDocument,"textarea",{rows:"1","aria-label":"Source code editing area"}),c=no(r.ownerDocument,"div",{class:"ck-source-editing-area","data-value":s},[a]);a.value=s,a.setSelectionRange(0,0),a.addEventListener("input",()=>{c.dataset.value=a.value,t.ui.update()}),e.change(l=>{const d=e.document.getRoot(i);l.addClass("ck-hidden",d)}),t.ui.setEditableElement("sourceEditing:"+i,a),this._replacedRoots.set(i,c),this._elementReplacer.replace(r,c),this._dataFromRoots.set(i,s)}this._focusSourceEditing()}_hideSourceEditing(){const e=this.editor.editing.view;this.updateEditorData(),e.change(n=>{for(const[i]of this._replacedRoots)n.removeClass("ck-hidden",e.document.getRoot(i))}),this._elementReplacer.restore(),this._replacedRoots.clear(),this._dataFromRoots.clear(),e.focus()}_focusSourceEditing(){const t=this.editor,[e]=this._replacedRoots.values(),n=e.querySelector("textarea");t.editing.view.document.isFocused=!1,n.focus()}_disableCommands(){const t=this.editor;for(const e of t.commands.commands())e.forceDisabled(yk)}_enableCommands(){const t=this.editor;for(const e of t.commands.commands())e.clearForceDisabled(yk)}_handleReadOnlyMode(t){if(this.isSourceEditingMode)for(const[,e]of this._replacedRoots)e.querySelector("textarea").readOnly=t}_isAllowedToHandleSourceEditingMode(){const e=this.editor.ui.view.editable;return e&&!e.hasExternalElement}}function pP(o){return kP(o)?uP(o):o}function kP(o){return o.startsWith("<")}class bP extends et{constructor(t,e){super(t),this.styleDefinition=e,this.previewView=this._createPreview(),this.set({label:e.name,class:"ck-style-grid__button",withText:!0}),this.extendTemplate({attributes:{role:"option"}}),this.children.add(this.previewView,0)}_createPreview(){const t=new G(this.locale);return t.setTemplate({tag:"div",attributes:{class:["ck","ck-reset_all-excluded","ck-style-grid__button__preview","ck-content"],"aria-hidden":"true"},children:[this.styleDefinition.previewTemplate]}),t}}var xk=L(7775),Tc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Tc.insert="head",Tc.singleton=!0,R()(xk.Z,Tc),xk.Z.locals;class wP extends G{constructor(t,e){super(t),this.focusTracker=new Bt,this.keystrokes=new Vt,this.set("activeStyles",[]),this.set("enabledStyles",[]),this.children=this.createCollection(),this.children.delegate("execute").to(this);for(const n of e){const i=new bP(t,n);this.children.add(i)}this.on("change:activeStyles",()=>{for(const n of this.children)n.isOn=this.activeStyles.includes(n.styleDefinition.name)}),this.on("change:enabledStyles",()=>{for(const n of this.children)n.isEnabled=this.enabledStyles.includes(n.styleDefinition.name)}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-grid"],role:"listbox"},children:this.children})}render(){super.render();for(const t of this.children)this.focusTracker.add(t.element);_({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.children,numberOfColumns:3,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection}),this.keystrokes.listenTo(this.element)}focus(){this.children.first.focus()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}}var Ek=L(5634),Ic={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Ic.insert="head",Ic.singleton=!0,R()(Ek.Z,Ic),Ek.Z.locals;class Dk extends G{constructor(t,e,n){super(t),this.labelView=new fo(t),this.labelView.text=e,this.gridView=new wP(t,n),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-panel__style-group"],role:"group","aria-labelledby":this.labelView.id},children:[this.labelView,this.gridView]})}}var Sk=L(4637),Mc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Mc.insert="head",Mc.singleton=!0,R()(Sk.Z,Mc),Sk.Z.locals;class AP extends G{constructor(t,e){super(t);const n=t.t;this.focusTracker=new Bt,this.keystrokes=new Vt,this.children=this.createCollection(),this.blockStylesGroupView=new Dk(t,n("Block styles"),e.block),this.inlineStylesGroupView=new Dk(t,n("Text styles"),e.inline),this.set("activeStyles",[]),this.set("enabledStyles",[]),this._focusables=new ce,this._focusCycler=new fe({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:["shift + tab"],focusNext:["tab"]}}),e.block.length&&this.children.add(this.blockStylesGroupView),e.inline.length&&this.children.add(this.inlineStylesGroupView),this.blockStylesGroupView.gridView.delegate("execute").to(this),this.inlineStylesGroupView.gridView.delegate("execute").to(this),this.blockStylesGroupView.gridView.bind("activeStyles","enabledStyles").to(this,"activeStyles","enabledStyles"),this.inlineStylesGroupView.gridView.bind("activeStyles","enabledStyles").to(this,"activeStyles","enabledStyles"),this.setTemplate({tag:"div",attributes:{class:["ck","ck-style-panel"]},children:this.children})}render(){super.render(),this._focusables.add(this.blockStylesGroupView.gridView),this._focusables.add(this.inlineStylesGroupView.gridView),this.focusTracker.add(this.blockStylesGroupView.gridView.element),this.focusTracker.add(this.inlineStylesGroupView.gridView.element),this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}const CP=["caption","colgroup","dd","dt","figcaption","legend","li","optgroup","option","rp","rt","summary","tbody","td","tfoot","th","thead","tr"];class Ve extends M{static get pluginName(){return"StyleUtils"}constructor(t){super(t),this.decorate("isStyleEnabledForBlock"),this.decorate("isStyleActiveForBlock"),this.decorate("getAffectedBlocks"),this.decorate("isStyleEnabledForInlineSelection"),this.decorate("isStyleActiveForInlineSelection"),this.decorate("getAffectedInlineSelectable"),this.decorate("getStylePreview"),this.decorate("configureGHSDataFilter")}init(){this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport")}normalizeConfig(t,e=[]){const n={block:[],inline:[]};for(const i of e){const r=[],s=[];for(const c of t.getDefinitionsForView(i.element)){const l="appliesToBlock"in c?c.appliesToBlock:!1;if(c.isBlock||l){if(typeof l=="string")r.push(l);else if(c.isBlock){const d=c;r.push(c.model),d.paragraphLikeModel&&r.push(d.paragraphLikeModel)}}else s.push(c.model)}const a=this.getStylePreview(i,[{text:"AaBbCcDdEeFfGgHhIiJj"}]);r.length?n.block.push({...i,previewTemplate:a,modelElements:r,isBlock:!0}):n.inline.push({...i,previewTemplate:a,ghsAttributes:s})}return n}isStyleEnabledForBlock(t,e){const n=this.editor.model,i=this._htmlSupport.getGhsAttributeNameForElement(t.element);return n.schema.checkAttribute(e,i)?t.modelElements.includes(e.name):!1}isStyleActiveForBlock(t,e){const n=this._htmlSupport.getGhsAttributeNameForElement(t.element),i=e.getAttribute(n);return this.hasAllClasses(i,t.classes)}getAffectedBlocks(t,e){return t.modelElements.includes(e.name)?[e]:null}isStyleEnabledForInlineSelection(t,e){const n=this.editor.model;for(const i of t.ghsAttributes)if(n.schema.checkAttributeInSelection(e,i))return!0;return!1}isStyleActiveForInlineSelection(t,e){for(const n of t.ghsAttributes){const i=this._getValueFromFirstAllowedNode(e,n);if(this.hasAllClasses(i,t.classes))return!0}return!1}getAffectedInlineSelectable(t,e){return e}getStylePreview(t,e){const{element:n,classes:i}=t;return{tag:vP(n)?n:"div",attributes:{class:i},children:e}}hasAllClasses(t,e){return bt(t)&&_P(t)&&e.every(n=>t.classes.includes(n))}configureGHSDataFilter({block:t,inline:e}){const n=this.editor.plugins.get("DataFilter");n.loadAllowedConfig(t.map(Tk)),n.loadAllowedConfig(e.map(Tk))}_getValueFromFirstAllowedNode(t,e){const i=this.editor.model.schema;if(t.isCollapsed)return t.getAttribute(e);for(const r of t.getRanges())for(const s of r.getItems())if(i.checkAttribute(s,e))return s.getAttribute(e);return null}}function _P(o){return!!o.classes&&Array.isArray(o.classes)}function vP(o){return!CP.includes(o)}function Tk({element:o,classes:t}){return{name:o,classes:t}}var Ik=L(8624),Bc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Bc.insert="head",Bc.singleton=!0,R()(Ik.Z,Bc),Ik.Z.locals;class yP extends M{static get pluginName(){return"StyleUI"}static get requires(){return[Ve]}init(){const t=this.editor,e=t.plugins.get("DataSchema"),n=t.plugins.get("StyleUtils"),i=t.config.get("style.definitions"),r=n.normalizeConfig(e,i);t.ui.componentFactory.add("style",s=>{const a=s.t,c=de(s),l=t.commands.get("style");return c.once("change:isOpen",()=>{const d=new AP(s,r);c.panelView.children.add(d),d.delegate("execute").to(c),d.bind("activeStyles").to(l,"value"),d.bind("enabledStyles").to(l,"enabledStyles")}),c.bind("isEnabled").to(l),c.buttonView.withText=!0,c.buttonView.bind("label").to(l,"value",d=>d.length>1?a("Multiple styles"):d.length===1?d[0]:a("Styles")),c.bind("class").to(l,"value",d=>{const u=["ck-style-dropdown"];return d.length>1&&u.push("ck-style-dropdown_multiple-active"),u.join(" ")}),c.on("execute",d=>{t.execute("style",{styleName:d.source.styleDefinition.name}),t.editing.view.focus()}),c})}}class xP extends Q{constructor(t,e){super(t),this.set("value",[]),this.set("enabledStyles",[]),this._styleDefinitions=e,this._styleUtils=this.editor.plugins.get(Ve)}refresh(){const t=this.editor.model,e=t.document.selection,n=new Set,i=new Set;for(const s of this._styleDefinitions.inline)this._styleUtils.isStyleEnabledForInlineSelection(s,e)&&i.add(s.name),this._styleUtils.isStyleActiveForInlineSelection(s,e)&&n.add(s.name);const r=Tt(e.getSelectedBlocks())||e.getFirstPosition().parent;if(r){const s=r.getAncestors({includeSelf:!0,parentFirst:!0});for(const a of s){if(a.is("rootElement"))break;for(const c of this._styleDefinitions.block)this._styleUtils.isStyleEnabledForBlock(c,a)&&(i.add(c.name),this._styleUtils.isStyleActiveForBlock(c,a)&&n.add(c.name));if(t.schema.isObject(a))break}}this.enabledStyles=Array.from(i).sort(),this.isEnabled=this.enabledStyles.length>0,this.value=this.isEnabled?Array.from(n).sort():[]}execute({styleName:t,forceValue:e}){if(!this.enabledStyles.includes(t)){return}const n=this.editor.model,i=n.document.selection,r=this.editor.plugins.get("GeneralHtmlSupport"),s=[...this._styleDefinitions.inline,...this._styleDefinitions.block],a=s.filter(({name:d})=>this.value.includes(d)),c=s.find(({name:d})=>d==t),l=e===void 0?!this.value.includes(c.name):e;n.change(()=>{let d;DP(c)?d=this._findAffectedBlocks(SP(i),c):d=[this._styleUtils.getAffectedInlineSelectable(c,i)];for(const u of d)l?r.addModelHtmlClass(c.element,c.classes,u):r.removeModelHtmlClass(c.element,EP(a,c),u)})}_findAffectedBlocks(t,e){const n=new Set;for(const i of t){const r=i.getAncestors({includeSelf:!0,parentFirst:!0});for(const s of r){if(s.is("rootElement"))break;const a=this._styleUtils.getAffectedBlocks(e,s);if(a){for(const c of a)n.add(c);break}}}return n}}function EP(o,t){return o.reduce((e,n)=>n.name===t.name?e:e.filter(i=>!n.classes.includes(i)),t.classes)}function DP(o){return"isBlock"in o}function SP(o){const t=Array.from(o.getSelectedBlocks());return t.length?t:[o.getFirstPosition().parent]}class TP extends M{static get pluginName(){return"DocumentListStyleSupport"}static get requires(){return[Ve,"GeneralHtmlSupport"]}init(){const t=this.editor;t.plugins.has("DocumentListEditing")&&(this._styleUtils=t.plugins.get(Ve),this._documentListUtils=this.editor.plugins.get("DocumentListUtils"),this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport"),this.listenTo(this._styleUtils,"isStyleEnabledForBlock",(e,[n,i])=>{this._isStyleEnabledForBlock(n,i)&&(e.return=!0,e.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"isStyleActiveForBlock",(e,[n,i])=>{this._isStyleActiveForBlock(n,i)&&(e.return=!0,e.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedBlocks",(e,[n,i])=>{const r=this._getAffectedBlocks(n,i);r&&(e.return=r,e.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"getStylePreview",(e,[n,i])=>{const r=this._getStylePreview(n,i);r&&(e.return=r,e.stop())},{priority:"high"}))}_isStyleEnabledForBlock(t,e){const n=this.editor.model;if(!["ol","ul","li"].includes(t.element)||!this._documentListUtils.isListItemBlock(e))return!1;const i=this._htmlSupport.getGhsAttributeNameForElement(t.element);if(t.element=="ol"||t.element=="ul"){if(!n.schema.checkAttribute(e,i))return!1;const r=e.getAttribute("listType")=="numbered"?"ol":"ul";return t.element==r}else return n.schema.checkAttribute(e,i)}_isStyleActiveForBlock(t,e){const n=this._htmlSupport.getGhsAttributeNameForElement(t.element),i=e.getAttribute(n);return this._styleUtils.hasAllClasses(i,t.classes)}_getAffectedBlocks(t,e){return this._isStyleEnabledForBlock(t,e)?t.element=="li"?this._documentListUtils.expandListBlocksToCompleteItems(e,{withNested:!1}):this._documentListUtils.expandListBlocksToCompleteList(e):null}_getStylePreview(t,e){const{element:n,classes:i}=t;return n=="ol"||n=="ul"?{tag:n,attributes:{class:i},children:[{tag:"li",children:e}]}:n=="li"?{tag:"ol",children:[{tag:n,attributes:{class:i},children:e}]}:null}}class IP extends M{static get pluginName(){return"TableStyleSupport"}static get requires(){return[Ve]}init(){const t=this.editor;t.plugins.has("TableEditing")&&(this._styleUtils=t.plugins.get(Ve),this._tableUtils=this.editor.plugins.get("TableUtils"),this.listenTo(this._styleUtils,"isStyleEnabledForBlock",(e,[n,i])=>{this._isApplicable(n,i)&&(e.return=this._isStyleEnabledForBlock(n,i),e.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedBlocks",(e,[n,i])=>{this._isApplicable(n,i)&&(e.return=this._getAffectedBlocks(n,i),e.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"configureGHSDataFilter",(e,[{block:n}])=>{this.editor.plugins.get("DataFilter").loadAllowedConfig(n.filter(r=>r.element=="figcaption").map(r=>({name:"caption",classes:r.classes})))}))}_isApplicable(t,e){return["td","th"].includes(t.element)?e.name=="tableCell":["thead","tbody"].includes(t.element)?e.name=="table":!1}_isStyleEnabledForBlock(t,e){if(["td","th"].includes(t.element)){const n=this._tableUtils.getCellLocation(e),r=e.parent.parent,s=r.getAttribute("headingRows")||0,a=r.getAttribute("headingColumns")||0,c=n.row<s||n.column<a;return t.element=="th"?c:!c}if(["thead","tbody"].includes(t.element)){const n=e.getAttribute("headingRows")||0;return t.element=="thead"?n>0:n<this._tableUtils.getRows(e)}return!1}_getAffectedBlocks(t,e){return this._isStyleEnabledForBlock(t,e)?[e]:null}}class MP extends M{static get pluginName(){return"LinkStyleSupport"}static get requires(){return[Ve,"GeneralHtmlSupport"]}init(){const t=this.editor;t.plugins.has("LinkEditing")&&(this._styleUtils=t.plugins.get(Ve),this._htmlSupport=this.editor.plugins.get("GeneralHtmlSupport"),this.listenTo(this._styleUtils,"isStyleEnabledForInlineSelection",(e,[n,i])=>{n.element=="a"&&(e.return=this._isStyleEnabled(n,i),e.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"isStyleActiveForInlineSelection",(e,[n,i])=>{n.element=="a"&&(e.return=this._isStyleActive(n,i),e.stop())},{priority:"high"}),this.listenTo(this._styleUtils,"getAffectedInlineSelectable",(e,[n,i])=>{if(n.element!="a")return;const r=this._getAffectedSelectable(n,i);r&&(e.return=r,e.stop())},{priority:"high"}))}_isStyleEnabled(t,e){const n=this.editor.model;if(e.isCollapsed)return e.hasAttribute("linkHref");for(const i of e.getRanges())for(const r of i.getItems())if((r.is("$textProxy")||n.schema.isInline(r))&&r.hasAttribute("linkHref"))return!0;return!1}_isStyleActive(t,e){const n=this.editor.model,i=this._htmlSupport.getGhsAttributeNameForElement(t.element);if(e.isCollapsed){if(e.hasAttribute("linkHref")){const r=e.getAttribute(i);if(this._styleUtils.hasAllClasses(r,t.classes))return!0}return!1}for(const r of e.getRanges())for(const s of r.getItems())if((s.is("$textProxy")||n.schema.isInline(s))&&s.hasAttribute("linkHref")){const a=s.getAttribute(i);return this._styleUtils.hasAllClasses(a,t.classes)}return!1}_getAffectedSelectable(t,e){const n=this.editor.model;if(e.isCollapsed){const r=e.getAttribute("linkHref");return Vo(e.getFirstPosition(),"linkHref",r,n)}const i=[];for(const r of e.getRanges()){const s=n.createRange(Mk(r.start,"linkHref",!0,n),Mk(r.end,"linkHref",!1,n));for(const a of s.getItems())(a.is("$textProxy")||n.schema.isInline(a))&&a.hasAttribute("linkHref")&&i.push(this.editor.model.createRangeOn(a))}return BP(i)}}function Mk(o,t,e,n){const i=o.textNode||(e?o.nodeAfter:o.nodeBefore);if(!i||!i.hasAttribute(t))return o;const r=i.getAttribute(t);return Ca(o,t,r,e,n)}function BP(o){for(let t=1;t<o.length;t++){const e=o[t-1].getJoined(o[t]);e&&o.splice(--t,2,e)}return o}class NP extends M{static get pluginName(){return"StyleEditing"}static get requires(){return["GeneralHtmlSupport",Ve,TP,IP,MP]}init(){const t=this.editor,e=t.plugins.get("DataSchema"),n=t.plugins.get("StyleUtils"),i=t.config.get("style.definitions"),r=n.normalizeConfig(e,i);t.commands.add("style",new xP(t,r)),n.configureGHSDataFilter(r)}}class zP extends M{static get pluginName(){return"Style"}static get requires(){return[NP,yP]}}function yt(o,t,e,n,i=1){t!=null&&i!==void 0&&i!==null&&t>i?n.setAttribute(o,t,e):n.removeAttribute(o,e)}function kn(o,t,e={}){const n=o.createElement("tableCell",e);return o.insertElement("paragraph",n),o.insert(n,t),n}function Nc(o,t){const e=t.parent.parent,n=parseInt(e.getAttribute("headingColumns")||"0"),{column:i}=o.getCellLocation(t);return!!n&&i<n}function PP(){return o=>{o.on("element:figure",(t,e,n)=>{if(!n.consumable.test(e.viewItem,{name:!0,classes:"table"}))return;const i=RP(e.viewItem);if(!i||!n.consumable.test(i,{name:!0}))return;n.consumable.consume(e.viewItem,{name:!0,classes:"table"});const r=n.convertItem(i,e.modelCursor),s=Tt(r.modelRange.getItems());if(!s){n.consumable.revert(e.viewItem,{name:!0,classes:"table"});return}n.convertChildren(e.viewItem,n.writer.createPositionAt(s,"end")),n.updateConversionResult(s,e)})}}function LP(){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}=jP(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")),kn(n.writer,n.writer.createPositionAt(d,"end"))}n.updateConversionResult(l,e)}})}}function OP(){return o=>{o.on("element:tr",(t,e)=>{e.viewItem.isEmpty&&e.modelCursor.index==0&&t.stop()},{priority:"high"})}}function Bk(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){i.insertElement("paragraph",s);return}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 RP(o){for(const t of o.getChildren())if(t.is("element","table"))return t}function jP(o){let t=0,e;const n=[],i=[];let r;for(const s of Array.from(o.getChildren())){if(s.name!=="tbody"&&s.name!=="thead"&&s.name!=="tfoot")continue;s.name==="thead"&&!r&&(r=s);const a=Array.from(s.getChildren()).filter(c=>c.is("element","tr"));for(const c of a)if(r&&s===r||s.name==="tbody"&&Array.from(c.getChildren()).length&&Array.from(c.getChildren()).every(l=>l.is("element","th")))t++,n.push(c);else{i.push(c);const l=FP(c);(!e||l<e)&&(e=l)}}return{headingRows:t,headingColumns:e||0,rows:[...n,...i]}}function FP(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],r=parseInt(i.getAttribute("colspan")||"1");t=t+r,e++}return t}class ut{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()}skipRow(t){this._skipRows.add(t)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return 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 VP(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((n,i)=>n+parseInt(i.getAttribute("colspan")||"1"),0)}}class VP{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 Nk(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")?!1:!t.additionalSlots.some(({filter:c})=>c(a)))),t.asWidget?UP(s,n):s}}function HP(){return(o,{writer:t})=>o.isEmpty?t.createEmptyElement("tr"):t.createContainerElement("tr")}function zk(o={}){return(t,{writer:e})=>{const n=t.parent,i=n.parent,r=i.getChildIndex(n),s=new ut(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 m=d.row<a||d.column<c?"th":"td";l=o.asWidget?Bm(e.createEditableElement(m),e):e.createContainerElement(m);break}return l}}function Pk(o={}){return(t,{writer:e})=>{if(!t.parent.is("element","tableCell")||!Lk(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 Lk(o){return o.parent.childCount==1&&!GP(o)}function UP(o,t){return t.setCustomProperty("table",!0,o),Go(o,t,{hasSelectionHandle:!0})}function GP(o){return!o.getAttributeKeys().next().done}class qP extends Q{refresh(){const t=this.editor.model,e=t.document.selection,n=t.schema;this.isEnabled=WP(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))})}}function WP(o,t){const e=o.getFirstPosition().parent,n=e===e.root?e:e.parent;return t.checkChild(n,"table")}class Ok extends Q{constructor(t,e={}){super(t),this.order=e.order||"below"}refresh(){const t=this.editor.model.document.selection,n=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=n}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].findAncestor("table");n.insertRows(c,{at:i?a:a+1,copyStructureFromAbove:!i})}}class Rk extends Q{constructor(t,e={}){super(t),this.order=e.order||"right"}refresh(){const t=this.editor.model.document.selection,n=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=n}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 jk extends Q{constructor(t,e={}){super(t),this.direction=e.direction||"horizontally"}refresh(){const e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.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 Fk(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 ut(o,{startRow:n,endRow:r,startColumn:i,endColumn:s,includeAllSlots:!0})];for(const{row:d,column:u,cell:m,isAnchor:p,cellAnchorRow:b,cellAnchorColumn:S}of l){const B=d-n,z=a.getChild(B);if(!p)(b<n||S<i)&&kn(e,e.createPositionAt(z,"end"));else{const V=e.cloneElement(m);e.append(V,z),qk(V,d,u,r,s,e)}}return $P(a,o,n,i,e),a}function Vk(o,t,e=0){const n=[],i=new ut(o,{startRow:e,endRow:t-1});for(const r of i){const{row:s,cellHeight:a}=r,c=s+a-1;s<t&&t<=c&&n.push(r)}return n}function Hk(o,t,e){const n=o.parent,i=n.parent,r=n.index,s=parseInt(o.getAttribute("rowspan")),a=t-r,c={},l=s-a;l>1&&(c.rowspan=l);const d=parseInt(o.getAttribute("colspan")||"1");d>1&&(c.colspan=d);const u=r,m=u+a,p=[...new ut(i,{startRow:u,endRow:m,includeAllSlots:!0})];let b=null,S;for(const B of p){const{row:z,column:V,cell:X}=B;X===o&&S===void 0&&(S=V),S!==void 0&&S===V&&z===m&&(b=kn(e,B.getPositionBefore(),c))}return yt("rowspan",a,o,e),b}function Uk(o,t){const e=[],n=new ut(o);for(const i of n){const{column:r,cellWidth:s}=i,a=r+s-1;r<t&&t<=a&&e.push(i)}return e}function Gk(o,t,e,n){const i=parseInt(o.getAttribute("colspan")),r=e-t,s={},a=i-r;a>1&&(s.colspan=a);const c=parseInt(o.getAttribute("rowspan")||"1");c>1&&(s.rowspan=c);const l=kn(n,n.createPositionAfter(o),s);return yt("colspan",r,o,n),l}function qk(o,t,e,n,i,r){const s=parseInt(o.getAttribute("colspan")||"1"),a=parseInt(o.getAttribute("rowspan")||"1");if(e+s-1>i){const d=i-e+1;yt("colspan",d,o,r,1)}if(t+a-1>n){const d=n-t+1;yt("rowspan",d,o,r,1)}}function $P(o,t,e,n,i){const r=parseInt(t.getAttribute("headingRows")||"0");if(r>0){const a=r-e;yt("headingRows",a,o,i,0)}const s=parseInt(t.getAttribute("headingColumns")||"0");if(s>0){const a=s-n;yt("headingColumns",a,o,i,0)}}function zc(o,t){const e=t.getColumns(o),n=new Array(e).fill(0);for(const{column:r}of new ut(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 Pc(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 Lc(o,t){zc(o,t)||Pc(o,t)}function Wk(o,t){const e=Array.from(new ut(o,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));if(e.every(({cellHeight:r})=>r===1))return t.lastRow;const i=e[0].cellHeight-1;return t.lastRow+i}function $k(o,t){const e=Array.from(new ut(o,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));if(e.every(({cellWidth:r})=>r===1))return t.lastColumn;const i=e[0].cellWidth-1;return t.lastColumn+i}class ir extends Q{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,i=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(e.selection)[0],r=this.value,s=this.direction;t.change(a=>{const c=s=="right"||s=="down",l=c?i:r,d=c?r:i,u=d.parent;YP(d,l,a);const m=this.isHorizontal?"colspan":"rowspan",p=parseInt(i.getAttribute(m)||"1"),b=parseInt(r.getAttribute(m)||"1");a.setAttribute(m,p+b,l),a.setSelection(a.createRangeIn(l));const S=this.editor.plugins.get("TableUtils"),B=u.findAncestor("table");Lc(B,S)})}_getMergeableCell(){const e=this.editor.model.document,n=this.editor.plugins.get("TableUtils"),i=n.getTableCellsContainingSelection(e.selection)[0];if(!i)return;const r=this.isHorizontal?ZP(i,this.direction,n):KP(i,this.direction,n);if(!r)return;const s=this.isHorizontal?"rowspan":"colspan",a=parseInt(i.getAttribute(s)||"1");if(parseInt(r.getAttribute(s)||"1")===a)return r}}function ZP(o,t,e){const i=o.parent.parent,r=t=="right"?o.nextSibling:o.previousSibling,s=(i.getAttribute("headingColumns")||0)>0;if(!r)return;const a=t=="right"?o:r,c=t=="right"?r:o,{column:l}=e.getCellLocation(a),{column:d}=e.getCellLocation(c),u=parseInt(a.getAttribute("colspan")||"1"),m=Nc(e,a),p=Nc(e,c);return s&&m!=p?void 0:l+u===d?r:void 0}function KP(o,t,e){const n=o.parent,i=n.parent,r=i.getChildIndex(n);if(t=="down"&&r===e.getRows(i)-1||t=="up"&&r===0)return null;const s=parseInt(o.getAttribute("rowspan")||"1"),a=i.getAttribute("headingRows")||0,c=t=="down"&&r+s===a,l=t=="up"&&r===a;if(a&&(c||l))return null;const d=parseInt(o.getAttribute("rowspan")||"1"),u=t=="down"?r+d:r,m=[...new ut(i,{endRow:u})],b=m.find(B=>B.cell===o).column,S=m.find(({row:B,cellHeight:z,column:V})=>V!==b?!1:t=="down"?B===u:u===B+z);return S&&S.cell?S.cell:null}function YP(o,t,e){Zk(o)||(Zk(t)&&e.remove(e.createRangeIn(t)),e.move(e.createRangeIn(o),e.createPositionAt(t,"end"))),e.remove(o)}function Zk(o){const t=o.getChild(0);return o.childCount==1&&t.is("element","paragraph")&&t.isEmpty}class QP extends Q{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"),s=t.getRows(i)-1,a=t.getRowIndexes(e),c=a.first===0&&a.last===s;this.isEnabled=!c}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=JP(s,i.first,a,e.getRows(s));c.setSelection(c.createPositionAt(d,0))})}}function JP(o,t,e,n){const i=o.getChild(Math.min(t,n-1));let r=i.getChild(0),s=0;for(const a of i.getChildren()){if(s>e)return r;r=a,s+=parseInt(a.getAttribute("colspan")||"1")}return r}class XP extends Q{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]=eL(this.editor.model.document.selection,t),i=e.parent.parent,r=[...new ut(i)],s={first:r.find(c=>c.cell===e).column,last:r.find(c=>c.cell===n).column},a=tL(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))})}}function tL(o,t,e,n){return parseInt(e.getAttribute("colspan")||"1")>1?e:t.previousSibling||e.nextSibling?e.nextSibling||t.previousSibling:n.first?o.reverse().find(({column:r})=>r<n.first).cell:o.reverse().find(({column:r})=>r>n.last).cell}function eL(o,t){const e=t.getSelectionAffectedTableCells(o),n=e[0],i=e.pop(),r=[n,i];return n.isBefore(i)?r:r.reverse()}class nL extends Q{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=c>l?l:0,m=Vk(r,c,u);for(const{cell:p}of m)Hk(p,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 oL extends Q{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=>Nc(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].findAncestor("table"),{first:s,last:a}=e.getColumnIndexes(i),c=this.value?s:a+1;n.change(l=>{if(c){const d=Uk(r,c);for(const{cell:u,column:m}of d)Gk(u,m,c,l)}yt("headingColumns",c,r,l,0)})}}function iL(o){if(o.is("element","tableColumnGroup"))return o;const t=o.getChildren();return Array.from(t).find(e=>e.is("element","tableColumnGroup"))}function rL(o){const t=iL(o);return t?Array.from(t.getChildren()):[]}class Ut extends M{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(t){const e=t.parent,n=e.parent,i=n.getChildIndex(e),r=new ut(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 Oc(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 w("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)){Oc(d,t,i,r,l);return}const m=s?Math.max(i,a):i,p=new ut(t,{endRow:m}),b=new Array(l).fill(1);for(const{row:S,column:B,cellHeight:z,cellWidth:V,cell:X}of p){const at=S+z-1,ft=S<i&&i<=at,H=S<=a&&a<=at;ft?(d.setAttribute("rowspan",z+r,X),b[B]=-V):s&&H&&(b[B]=V)}for(let S=0;S<r;S++){const B=d.createElement("tableRow");d.insert(B,t,i);for(let z=0;z<b.length;z++){const V=b[z],X=d.createPositionAt(B,"end");V>0&&kn(d,X,V>1?{colspan:V}:void 0),z+=Math.abs(V)-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")&&Xn(r,s,s.createPositionAt(d,i?"end":0));return}const l=new ut(t,{column:i,includeAllSlots:!0});for(const d of l){const{row:u,cell:m,cellAnchorColumn:p,cellAnchorRow:b,cellWidth:S,cellHeight:B}=d;if(p<i){s.setAttribute("colspan",S+r,m);const z=b+B-1;for(let V=u;V<=z;V++)l.skipRow(V)}else Xn(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 w("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}=cL(t,l);if(d.size){const m=a+1;lL(t,m,d,c)}for(let m=a;m>=s;m--)c.remove(t.getChild(m));for(const{rowspan:m,cell:p}of u)yt("rowspan",m,p,c);aL(t,l,c),zc(t,this)||Pc(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=>{sL(t,{first:i,last:s},a);const c=rL(t);for(let l=s;l>=i;l--){for(const{cell:d,column:u,cellWidth:m}of[...new ut(t)])u<=l&&m>1&&u+m>l?yt("colspan",m-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")),m=parseFloat(d.getAttribute("columnWidth"));a.remove(c[l]),a.setAttribute("columnWidth",u+m+"%",d)}}Pc(t,this)||zc(t,this)})}splitCellVertically(t,e=2){const n=this.editor.model,r=t.parent.parent,s=parseInt(t.getAttribute("rowspan")||"1"),a=parseInt(t.getAttribute("colspan")||"1");n.change(c=>{if(a>1){const{newCellsSpan:l,updatedSpan:d}=Kk(a,e);yt("colspan",d,t,c);const u={};l>1&&(u.colspan=l),s>1&&(u.rowspan=s);const m=a>e?e-1:a-1;Xn(m,c,c.createPositionAfter(t),u)}if(a<e){const l=e-a,d=[...new ut(r)],{column:u}=d.find(({cell:S})=>S===t),m=d.filter(({cell:S,cellWidth:B,column:z})=>{const V=S!==t&&z===u,X=z<u&&z+B>u;return V||X});for(const{cell:S,cellWidth:B}of m)c.setAttribute("colspan",B+l,S);const p={};s>1&&(p.rowspan=s),Xn(l,c,c.createPositionAfter(t),p);const b=r.getAttribute("headingColumns")||0;b>u&&yt("headingColumns",b+l,r,c)}})}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 ut(r,{startRow:s,endRow:s+a-1,includeAllSlots:!0})],{newCellsSpan:u,updatedSpan:m}=Kk(a,e);yt("rowspan",m,t,l);const{column:p}=d.find(({cell:S})=>S===t),b={};u>1&&(b.rowspan=u),c>1&&(b.colspan=c);for(const S of d){const{column:B,row:z}=S,V=z>=s+m,X=B===p,at=(z+s+m)%u===0;V&&X&&at&&Xn(1,l,S.getPositionBefore(),b)}}if(a<e){const d=e-a,u=[...new ut(r,{startRow:0,endRow:s})];for(const{cell:b,cellHeight:S,row:B}of u)if(b!==t&&B+S>s){const z=S+d;l.setAttribute("rowspan",z,b)}const m={};c>1&&(m.colspan=c),Oc(l,r,s+1,d,1,m);const p=r.getAttribute("headingRows")||0;p>s&&yt("headingRows",p+d,r,l)}})}getColumns(t){return[...t.getChild(0).getChildren()].reduce((n,i)=>{const r=parseInt(i.getAttribute("colspan")||"1");return n+r},0)}getRows(t){return Array.from(t.getChildren()).reduce((e,n)=>n.is("element","tableRow")?e+1:e,0)}createTableWalker(t,e={}){return new ut(t,e)}getSelectedTableCells(t){const e=[];for(const n of this.sortRanges(t.getRanges())){const i=n.getContainedElement();i&&i.is("element","tableCell")&&e.push(i)}return e}getTableCellsContainingSelection(t){const e=[];for(const n of t.getRanges()){const i=n.start.findAncestor("tableCell");i&&e.push(i)}return e}getSelectionAffectedTableCells(t){const e=this.getSelectedTableCells(t);return e.length?e:this.getTableCellsContainingSelection(t)}getRowIndexes(t){const e=t.map(n=>n.parent.index);return this._getFirstLastIndexesObject(e)}getColumnIndexes(t){const e=t[0].findAncestor("table"),i=[...new ut(e)].filter(r=>t.includes(r.cell)).map(r=>r.column);return this._getFirstLastIndexesObject(i)}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 uL(e,n)==i}sortRanges(t){return Array.from(t).sort(dL)}_getFirstLastIndexesObject(t){const e=t.sort((r,s)=>r-s),n=e[0],i=e[e.length-1];return{first:n,last:i}}_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){const i=t<n,r=e<n;return i===r}}function Oc(o,t,e,n,i,r={}){for(let s=0;s<n;s++){const a=o.createElement("tableRow");o.insert(a,t,e),Xn(i,o,o.createPositionAt(a,"end"),r)}}function Xn(o,t,e,n={}){for(let i=0;i<o;i++)kn(t,e,n)}function Kk(o,t){if(o<t)return{newCellsSpan:1,updatedSpan:1};const e=Math.floor(o/t),n=o-e*t+e;return{newCellsSpan:e,updatedSpan:n}}function sL(o,t,e){const n=o.getAttribute("headingColumns")||0;if(n&&t.first<n){const i=Math.min(n-1,t.last)-t.first+1;e.setAttribute("headingColumns",n-i,o)}}function aL(o,{first:t,last:e},n){const i=o.getAttribute("headingRows")||0;if(t<i){const r=e<i?i-(e-t+1):t;yt("headingRows",r,o,n,0)}}function cL(o,{first:t,last:e}){const n=new Map,i=[];for(const{row:r,column:s,cellHeight:a,cell:c}of new ut(o,{endRow:e})){const l=r+a-1;if(r>=t&&r<=e&&l>e){const m=e-r+1,p=a-m;n.set(s,{cell:c,rowspan:p})}if(r<t&&l>=t){let m;l>=e?m=e-t+1:m=l-t+1,i.push({cell:c,rowspan:a-m})}}return{cellsToMove:n,cellsToTrim:i}}function lL(o,t,e,n){const r=[...new ut(o,{includeAllSlots:!0,row:t})],s=o.getChild(t);let a;for(const{column:c,cell:l,isAnchor:d}of r)if(e.has(c)){const{cell:u,rowspan:m}=e.get(c),p=a?n.createPositionAfter(a):n.createPositionAt(s,0);n.move(n.createRangeOn(u),p),yt("rowspan",m,u,n),a=u}else d&&(a=l)}function dL(o,t){const e=o.start,n=t.start;return e.isBefore(n)?-1:1}function uL(o,t){const e=Array.from(o.values()),n=Array.from(t.values()),i=Math.max(...e),r=Math.min(...e),s=Math.max(...n),a=Math.min(...n);return(i-r+1)*(s-a+1)}class hL extends Q{refresh(){const t=this.editor.plugins.get(Ut),e=t.getSelectedTableCells(this.editor.model.document.selection);this.isEnabled=t.isSelectionRectangular(e)}execute(){const t=this.editor.model,e=this.editor.plugins.get(Ut);t.change(n=>{const i=e.getSelectedTableCells(t.document.selection),r=i.shift(),{mergeWidth:s,mergeHeight:a}=mL(r,i,e);yt("colspan",s,r,n),yt("rowspan",a,r,n);for(const l of i)gL(l,r,n);const c=r.findAncestor("table");Lc(c,e),n.setSelection(r,"in")})}}function gL(o,t,e){Yk(o)||(Yk(t)&&e.remove(e.createRangeIn(t)),e.move(e.createRangeIn(o),e.createPositionAt(t,"end"))),e.remove(o)}function Yk(o){const t=o.getChild(0);return o.childCount==1&&t.is("element","paragraph")&&t.isEmpty}function mL(o,t,e){let n=0,i=0;for(const l of t){const{row:d,column:u}=e.getCellLocation(l);n=Qk(l,u,n,"colspan"),i=Qk(l,d,i,"rowspan")}const{row:r,column:s}=e.getCellLocation(o),a=n-s,c=i-r;return{mergeWidth:a,mergeHeight:c}}function Qk(o,t,e,n){const i=parseInt(o.getAttribute(n)||"1");return Math.max(e,t+i)}class fL extends Q{constructor(t){super(t),this.affectsData=!1}refresh(){const e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.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 pL extends Q{constructor(t){super(t),this.affectsData=!1}refresh(){const e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.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 m of new ut(s,{startColumn:l,endColumn:d}))u.push(e.createRangeOn(m.cell));e.change(m=>{m.setSelection(u)})}}function kL(o){o.document.registerPostFixer(t=>bL(t,o))}function bL(o,t){const e=t.document.differ.getChanges();let n=!1;const i=new Set;for(const r of e){let s=null;r.type=="insert"&&r.name=="table"&&(s=r.position.nodeAfter),(r.type=="insert"||r.type=="remove")&&(r.name=="tableRow"||r.name=="tableCell")&&(s=r.position.findAncestor("table")),vL(r)&&(s=r.range.start.findAncestor("table")),s&&!i.has(s)&&(n=wL(s,o)||n,n=AL(s,o)||n,i.add(s))}return n}function wL(o,t){let e=!1;const n=CL(o);if(n.length){e=!0;for(const i of n)yt("rowspan",i.rowspan,i.cell,t,1)}return e}function AL(o,t){let e=!1;const n=_L(o),i=[];for(const[c,l]of n.entries())!l&&o.getChild(c).is("element","tableRow")&&i.push(c);if(i.length){e=!0;for(const c of i.reverse())t.remove(o.getChild(c)),n.splice(c,1)}const r=n.filter((c,l)=>o.getChild(l).is("element","tableRow")),s=r[0];if(!r.every(c=>c===s)){const c=r.reduce((l,d)=>d>l?d:l,0);for(const[l,d]of r.entries()){const u=c-d;if(u){for(let m=0;m<u;m++)kn(t,t.createPositionAt(o.getChild(l),"end"));e=!0}}}return e}function CL(o){const t=parseInt(o.getAttribute("headingRows")||"0"),e=Array.from(o.getChildren()).reduce((i,r)=>r.is("element","tableRow")?i+1:i,0),n=[];for(const{row:i,cell:r,cellHeight:s}of new ut(o)){if(s<2)continue;const c=i<t?t:e;if(i+s>c){const l=c-i;n.push({cell:r,rowspan:l})}}return n}function _L(o){const t=new Array(o.childCount).fill(0);for(const{rowIndex:e}of new ut(o,{includeAllSlots:!0}))t[e]++;return t}function vL(o){if(o.type!=="attribute")return!1;const t=o.attributeKey;return t==="headingRows"||t==="colspan"||t==="rowspan"}function yL(o){o.document.registerPostFixer(t=>xL(t,o))}function xL(o,t){const e=t.document.differ.getChanges();let n=!1;for(const i of e)i.type=="insert"&&i.name=="table"&&(n=EL(i.position.nodeAfter,o)||n),i.type=="insert"&&i.name=="tableRow"&&(n=Jk(i.position.nodeAfter,o)||n),i.type=="insert"&&i.name=="tableCell"&&(n=Rc(i.position.nodeAfter,o)||n),(i.type=="remove"||i.type=="insert")&&DL(i)&&(n=Rc(i.position.parent,o)||n);return n}function EL(o,t){let e=!1;for(const n of o.getChildren())n.is("element","tableRow")&&(e=Jk(n,t)||e);return e}function Jk(o,t){let e=!1;for(const n of o.getChildren())e=Rc(n,t)||e;return e}function Rc(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 DL(o){return o.position.parent.is("element","tableCell")?o.type=="insert"&&o.name=="$text"||o.type=="remove":!1}function SL(o,t){const e=o.document.differ;for(const n of e.getChanges()){let i,r=!1;if(n.type=="attribute"){const l=n.range.start.nodeAfter;if(!l||!l.is("element","table")||n.attributeKey!="headingRows"&&n.attributeKey!="headingColumns")continue;i=l,r=n.attributeKey=="headingRows"}else(n.name=="tableRow"||n.name=="tableCell")&&(i=n.position.findAncestor("table"),r=n.name=="tableRow");if(!i)continue;const s=i.getAttribute("headingRows")||0,a=i.getAttribute("headingColumns")||0,c=new ut(i);for(const l of c){const u=l.row<s||l.column<a?"th":"td",m=t.mapper.toViewElement(l.cell);m&&m.is("element")&&m.name!=u&&t.reconvertItem(r?l.cell.parent:l.cell)}}}function TL(o,t){const e=o.document.differ,n=new Set;for(const i of e.getChanges()){const r=i.type=="attribute"?i.range.start.parent:i.position.parent;r.is("element","tableCell")&&n.add(r)}for(const i of n.values()){const r=Array.from(i.getChildren()).filter(s=>IL(s,t.mapper));for(const s of r)t.reconvertItem(s)}}function IL(o,t){if(!o.is("element","paragraph"))return!1;const e=t.toViewElement(o);return e?Lk(o)!==e.is("element","span"):!1}var Xk=L(8361),jc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};jc.insert="head",jc.singleton=!0,R()(Xk.Z,jc),Xk.Z.locals;class ML extends M{static get pluginName(){return"TableEditing"}static get requires(){return[Ut]}constructor(t){super(t),this._additionalSlots=[]}init(){const t=this.editor,e=t.model,n=e.schema,i=t.conversion,r=t.plugins.get(Ut);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(PP()),i.for("upcast").add(LP()),i.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Nk(r,{asWidget:!0,additionalSlots:this._additionalSlots})}),i.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Nk(r,{additionalSlots:this._additionalSlots})}),i.for("upcast").elementToElement({model:"tableRow",view:"tr"}),i.for("upcast").add(OP()),i.for("downcast").elementToElement({model:"tableRow",view:HP()}),i.for("upcast").elementToElement({model:"tableCell",view:"td"}),i.for("upcast").elementToElement({model:"tableCell",view:"th"}),i.for("upcast").add(Bk("td")),i.for("upcast").add(Bk("th")),i.for("editingDowncast").elementToElement({model:"tableCell",view:zk({asWidget:!0})}),i.for("dataDowncast").elementToElement({model:"tableCell",view:zk()}),i.for("editingDowncast").elementToElement({model:"paragraph",view:Pk({asWidget:!0}),converterPriority:"high"}),i.for("dataDowncast").elementToElement({model:"paragraph",view:Pk(),converterPriority:"high"}),i.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),i.for("upcast").attributeToAttribute({model:{key:"colspan",value:tb("colspan")},view:"colspan"}),i.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),i.for("upcast").attributeToAttribute({model:{key:"rowspan",value:tb("rowspan")},view:"rowspan"}),t.config.define("table.defaultHeadings.rows",0),t.config.define("table.defaultHeadings.columns",0),t.commands.add("insertTable",new qP(t)),t.commands.add("insertTableRowAbove",new Ok(t,{order:"above"})),t.commands.add("insertTableRowBelow",new Ok(t,{order:"below"})),t.commands.add("insertTableColumnLeft",new Rk(t,{order:"left"})),t.commands.add("insertTableColumnRight",new Rk(t,{order:"right"})),t.commands.add("removeTableRow",new QP(t)),t.commands.add("removeTableColumn",new XP(t)),t.commands.add("splitTableCellVertically",new jk(t,{direction:"vertically"})),t.commands.add("splitTableCellHorizontally",new jk(t,{direction:"horizontally"})),t.commands.add("mergeTableCells",new hL(t)),t.commands.add("mergeTableCellRight",new ir(t,{direction:"right"})),t.commands.add("mergeTableCellLeft",new ir(t,{direction:"left"})),t.commands.add("mergeTableCellDown",new ir(t,{direction:"down"})),t.commands.add("mergeTableCellUp",new ir(t,{direction:"up"})),t.commands.add("setTableColumnHeader",new oL(t)),t.commands.add("setTableRowHeader",new nL(t)),t.commands.add("selectTableRow",new fL(t)),t.commands.add("selectTableColumn",new pL(t)),kL(e),yL(e),this.listenTo(e.document,"change:data",()=>{SL(e,t.editing),TL(e,t.editing)})}registerAdditionalSlot(t){this._additionalSlots.push(t)}}function tb(o){return t=>{const e=parseInt(t.getAttribute(o));return Number.isNaN(e)||e<=0?null:e}}var eb=L(468),Fc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Fc.insert="head",Fc.singleton=!0,R()(eb.Z,Fc),eb.Z.locals;class BL extends G{constructor(t){super(t);const e=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new Vt,this.focusTracker=new Bt,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(n,i)=>`${i} × ${n}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":e.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:e.to("label")}]}],on:{mousedown:e.to(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((parseInt(r,10)-1)*10+(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(),_({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const t of this.items)this.focusTracker.add(t.element);this.keystrokes.listenTo(this.element)}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const t=this.rows,e=this.columns;this.items.map((n,i)=>{const r=Math.floor(i/10),s=i%10,a=r<t&&s<e;n.set("isOn",a)})}_createGridButton(t,e,n,i){const r=new et(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)}}const NL='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>',zL='<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>',PL='<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>',LL='<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>';class OL extends M{static get pluginName(){return"TableUI"}init(){const t=this.editor,e=this.editor.t,i=t.locale.contentLanguageDirection==="ltr";t.ui.componentFactory.add("insertTable",r=>{const s=t.commands.get("insertTable"),a=de(r);a.bind("isEnabled").to(s),a.buttonView.set({icon:NL,label:e("Insert table"),tooltip:!0});let c;return a.on("change:isOpen",()=>{c||(c=new BL(r),a.panelView.children.add(c),c.delegate("execute").to(a),a.on("execute",()=>{t.execute("insertTable",{rows:c.rows,columns:c.columns}),t.editing.view.focus()}))}),a}),t.ui.componentFactory.add("tableColumn",r=>{const s=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:e("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:i?"insertTableColumnLeft":"insertTableColumnRight",label:e("Insert column left")}},{type:"button",model:{commandName:i?"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"),zL,s,r)}),t.ui.componentFactory.add("tableRow",r=>{const s=[{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"),PL,s,r)}),t.ui.componentFactory.add("mergeTableCells",r=>{const s=[{type:"button",model:{commandName:"mergeTableCellUp",label:e("Merge cell up")}},{type:"button",model:{commandName:i?"mergeTableCellRight":"mergeTableCellLeft",label:e("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:e("Merge cell down")}},{type:"button",model:{commandName:i?"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"),LL,s,r)})}_prepareDropdown(t,e,n,i){const r=this.editor,s=de(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 gi||r.editing.view.focus()}),s}_prepareMergeSplitButtonDropdown(t,e,n,i){const r=this.editor,s=de(i,Pi),a="mergeTableCells",c=r.commands.get(a),l=this._fillDropdownWithListOptions(s,n);return s.buttonView.set({label:t,icon:e,tooltip:!0,isEnabled:!0}),s.bind("isEnabled").toMany([c,...l],"isEnabled",(...d)=>d.some(u=>u)),this.listenTo(s.buttonView,"execute",()=>{r.execute(a),r.editing.view.focus()}),this.listenTo(s,"execute",d=>{r.execute(d.source.commandName),r.editing.view.focus()}),s}_fillDropdownWithListOptions(t,e){const n=this.editor,i=[],r=new te;for(const s of e)RL(s,n,i,r);return Gs(t,r),i}}function RL(o,t,e,n){if(o.type==="button"||o.type==="switchbutton"){const i=o.model=new la(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 nb=L(1546),Vc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Vc.insert="head",Vc.singleton=!0,R()(nb.Z,Vc),nb.Z.locals;class bn extends M{static get pluginName(){return"TableSelection"}static get requires(){return[Ut,Ut]}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(Ut),e=this.editor.model.document.selection,n=t.getSelectedTableCells(e);return n.length==0?null:n}getSelectionAsFragment(){const t=this.editor.plugins.get(Ut),e=this.getSelectedTableCells();return e?this.editor.model.change(n=>{const i=n.createDocumentFragment(),{first:r,last:s}=t.getColumnIndexes(e),{first:a,last:c}=t.getRowIndexes(e),l=e[0].findAncestor("table");let d=c,u=s;if(t.isSelectionRectangular(e)){const b={firstColumn:r,lastColumn:s,firstRow:a,lastRow:c};d=Wk(l,b),u=$k(l,b)}const p=Fk(l,{startRow:a,startColumn:r,endRow:d,endColumn:u},n);return n.insert(p,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 n=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return n&&n.is("element","tableCell")?n:null}getAnchorCell(){const t=this.editor.model.document.selection,n=Tt(t.getRanges()).getContainedElement();return n&&n.is("element","tableCell")?n:null}_defineSelectionConverter(){const t=this.editor,e=new Set;t.conversion.for("editingDowncast").add(i=>i.on("selection",(r,s,a)=>{const c=a.writer;n(c);const l=this.getSelectedTableCells();if(!l)return;for(const u of l){const m=a.mapper.toViewElement(u);c.addClass("ck-editor__editable_selected",m),e.add(m)}const d=a.mapper.toViewElement(l[l.length-1]);c.setSelection(d,0)},{priority:"lowest"}));function n(i){for(const r of e)i.removeClass("ck-editor__editable_selected",r);e.clear()}}_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(Ut),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(m=>{for(const p of c)s.deleteContent(m.createSelection(p,"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:b,cell:S}of new ut(t.findAncestor("table"),u))d[b-s].push(S);const m=r.row<i.row,p=r.column<i.column;return m&&d.reverse(),p&&d.forEach(b=>b.reverse()),{cells:d.flat(),backward:m||p}}}class jL extends M{static get pluginName(){return"TableClipboard"}static get requires(){return[bn,Ut]}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.plugins.get(bn);if(!n.getSelectedTableCells()||t.name=="cut"&&!this.editor.model.canEditAt(this.editor.model.document.selection))return;e.preventDefault(),t.stop();const i=this.editor.data,r=this.editor.editing.view.document,s=i.toView(n.getSelectionAsFragment());r.fire("clipboardOutput",{dataTransfer:e.dataTransfer,content:s,method:t.name})}_onInsertContent(t,e,n){if(n&&!n.is("documentSelection"))return;const i=this.editor.model,r=this.editor.plugins.get(Ut);let s=this.getTableIfOnlyTableInContent(e,i);if(!s)return;const a=r.getSelectionAffectedTableCells(i.document.selection);if(!a.length){Lc(s,r);return}t.stop(),i.change(c=>{const l={width:r.getColumns(s),height:r.getRows(s)},d=FL(a,l,c,r),u=d.lastRow-d.firstRow+1,m=d.lastColumn-d.firstColumn+1,p={startRow:0,startColumn:0,endRow:Math.min(u,l.height)-1,endColumn:Math.min(m,l.width)-1};s=Fk(s,p,c);const b=a[0].findAncestor("table"),S=this._replaceSelectedCellsWithPasted(s,l,b,d,c);if(this.editor.plugins.get("TableSelection").isEnabled){const B=r.sortRanges(S.map(z=>c.createRangeOn(z)));c.setSelection(B)}else c.setSelection(S[0],0)})}_replaceSelectedCellsWithPasted(t,e,n,i,r){const{width:s,height:a}=e,c=HL(t,s,a),l=[...new ut(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:z,column:V}=B;V===i.firstColumn&&(u=B.getPositionBefore());const X=z-i.firstRow,at=V-i.firstColumn,ft=c[X%a][at%s],H=ft?r.cloneElement(ft):null,Y=this._replaceTableSlotCell(B,H,u,r);Y&&(qk(Y,z,V,i.lastRow,i.lastColumn,r),d.push(Y),u=r.createPositionAfter(Y))}const m=parseInt(n.getAttribute("headingRows")||"0"),p=parseInt(n.getAttribute("headingColumns")||"0"),b=i.firstRow<m&&m<=i.lastRow,S=i.firstColumn<p&&p<=i.lastColumn;if(b){const B={first:i.firstColumn,last:i.lastColumn},z=Hc(n,m,B,r,i.firstRow);d.push(...z)}if(S){const B={first:i.firstRow,last:i.lastRow},z=Uc(n,p,B,r);d.push(...z)}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 FL(o,t,e,n){const i=o[0].findAncestor("table"),r=n.getColumnIndexes(o),s=n.getRowIndexes(o),a={firstColumn:r.first,lastColumn:r.last,firstRow:s.first,lastRow:s.last},c=o.length===1;return c&&(a.lastRow+=t.height-1,a.lastColumn+=t.width-1,VL(i,a.lastRow+1,a.lastColumn+1,n)),c||!n.isSelectionRectangular(o)?UL(i,a,e):(a.lastRow=Wk(i,a),a.lastColumn=$k(i,a)),a}function VL(o,t,e,n){const i=n.getColumns(o),r=n.getRows(o);e>i&&n.insertColumns(o,{at:i,columns:e-i}),t>r&&n.insertRows(o,{at:r,rows:t-r})}function HL(o,t,e){const n=new Array(e).fill(null).map(()=>new Array(t).fill(null));for(const{column:i,row:r,cell:s}of new ut(o))n[r][i]=s;return n}function UL(o,t,e){const{firstRow:n,lastRow:i,firstColumn:r,lastColumn:s}=t,a={first:n,last:i},c={first:r,last:s};Uc(o,r,a,e),Uc(o,s+1,a,e),Hc(o,n,c,e),Hc(o,i+1,c,e,n)}function Hc(o,t,e,n,i=0){return t<1?void 0:Vk(o,t,i).filter(({column:a,cellWidth:c})=>ob(a,c,e)).map(({cell:a})=>Hk(a,t,n))}function Uc(o,t,e,n){return t<1?void 0:Uk(o,t).filter(({row:s,cellHeight:a})=>ob(s,a,e)).map(({cell:s,column:a})=>Gk(s,a,t,n))}function ob(o,t,e){const n=o+t-1,{first:i,last:r}=e,s=o>=i&&o<=r,a=o<i&&n>=i;return s||a}class GL extends M{static get pluginName(){return"TableKeyboard"}static get requires(){return[bn,Ut]}init(){const e=this.editor.editing.view.document;this.listenTo(e,"arrowKey",(...n)=>this._onArrowKey(...n),{context:"table"}),this.listenTo(e,"tab",(...n)=>this._handleTabOnSelectedTable(...n),{context:"figure"}),this.listenTo(e,"tab",(...n)=>this._handleTab(...n),{context:["th","td"]})}_handleTabOnSelectedTable(t,e){const n=this.editor,r=n.model.document.selection.getSelectedElement();!r||!r.is("element","table")||(e.preventDefault(),e.stopPropagation(),t.stop(),n.model.change(s=>{s.setSelection(s.createRangeIn(r.getChild(0).getChild(0)))}))}_handleTab(t,e){const n=this.editor,i=this.editor.plugins.get(Ut),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),m=l.getChildIndex(c),p=m===0;if(!a&&p&&u===0){n.model.change(z=>{z.setSelection(z.createRangeOn(d))});return}const b=m===l.childCount-1,S=u===i.getRows(d)-1;if(a&&S&&b&&(n.execute("insertTableRowBelow"),u===i.getRows(d)-1)){n.model.change(z=>{z.setSelection(z.createRangeOn(d))});return}let B;if(a&&b)B=d.getChild(u+1).getChild(0);else if(!a&&p){const z=d.getChild(u-1);B=z.getChild(z.childCount-1)}else B=l.getChild(m+(a?1:-1));n.model.change(z=>{z.setSelection(z.createRangeIn(B))})}_onArrowKey(t,e){const n=this.editor,i=e.keyCode,r=Or(i,n.locale.contentLanguageDirection);this._handleArrowKeys(r,e.shiftKey)&&(e.preventDefault(),e.stopPropagation(),t.stop())}_handleArrowKeys(t,e){const n=this.editor.plugins.get(Ut),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 e?d=i.getFocusCell():d=a?c[c.length-1]:c[0],this._navigateFromCellInDirection(d,t,e),!0}const 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):!1}_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 ut(r,{includeAllSlots:!0})],{row:a,column:c}=s[s.length-1],l=s.find(({cell:V})=>V==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;break}const m=d<0||d>a,p=u<0&&d<=0,b=u>c&&d>=a;if(m||p||b){i.change(V=>{V.setSelection(V.createRangeOn(r))});return}u<0?(u=n?0:c,d--):u>c&&(u=n?c:0,d++);const S=s.find(V=>V.row==d&&V.column==u).cell,B=["right","down"].includes(e),z=this.editor.plugins.get("TableSelection");if(n&&z.isEnabled){const V=z.getAnchorCell()||t;z.setCellSelection(V,S)}else{const V=i.createPositionAt(S,B?0:"end");i.change(X=>{X.setSelection(V)})}}}class qL extends qe{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(t){this.fire(t.type,t)}}class WL extends M{static get pluginName(){return"TableMouse"}static get requires(){return[bn,Ut]}init(){this.editor.editing.view.addObserver(qL),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const t=this.editor,e=t.plugins.get(Ut);let n=!1;const i=t.plugins.get(bn);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&&ib(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(bn);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&&ib(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 ib(o,t){return o.parent.parent==t.parent.parent}var rb=L(2510),Gc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Gc.insert="head",Gc.singleton=!0,R()(rb.Z,Gc),rb.Z.locals;class $L extends M{static get requires(){return[ML,OL,bn,WL,GL,jL,$n]}static get pluginName(){return"Table"}}function ZL(o){const t=o.getSelectedElement();return t&&sb(t)?t:null}function KL(o){const t=o.getFirstPosition();if(!t)return null;let e=t.parent;for(;e;){if(e.is("element")&&sb(e))return e;e=e.parent}return null}function sb(o){return!!o.getCustomProperty("table")&&Nt(o)}class YL extends M{static get requires(){return[$i]}static get pluginName(){return"TableToolbar"}afterInit(){const t=this.editor,e=t.t,n=t.plugins.get($i),i=t.config.get("table.contentToolbar"),r=t.config.get("table.tableToolbar");i&&n.register("tableContent",{ariaLabel:e("Table toolbar"),items:i,getRelatedElement:KL}),r&&n.register("table",{ariaLabel:e("Table toolbar"),items:r,getRelatedElement:ZL})}}var ab=L(9953),qc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};qc.insert="head",qc.singleton=!0,R()(ab.Z,qc),ab.Z.locals;var cb=L(6908),Wc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Wc.insert="head",Wc.singleton=!0,R()(cb.Z,Wc),cb.Z.locals;var lb=L(7502),$c={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};$c.insert="head",$c.singleton=!0,R()(lb.Z,$c),lb.Z.locals;var db=L(9429),Zc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Zc.insert="head",Zc.singleton=!0,R()(db.Z,Zc),db.Z.locals;var ub=L(3964),Kc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Kc.insert="head",Kc.singleton=!0,R()(ub.Z,Kc),ub.Z.locals;const wn=jt.defaultPositions;wn.northArrowSouth,wn.northArrowSouthWest,wn.northArrowSouthEast,wn.southArrowNorth,wn.southArrowNorthWest,wn.southArrowNorthEast,wn.viewportStickyNorth;var hb=L(6596),Yc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Yc.insert="head",Yc.singleton=!0,R()(hb.Z,Yc),hb.Z.locals;var gb=L(1111),Qc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Qc.insert="head",Qc.singleton=!0,R()(gb.Z,Qc),gb.Z.locals;var mb=L(7176),Jc={injectType:"singletonStyleTag",attributes:{"data-cke":!0}};Jc.insert="head",Jc.singleton=!0,R()(mb.Z,Jc),mb.Z.locals;class Xc extends Vi{}Xc.builtinPlugins=[$4,uT,ST,mT,LT,qI,nM,j4,lM,a3,u3,j3,Q3,J3,z3,nN,bT,BN,sz,Az,qo,dP,f3,fP,zP,$L,YL,oT,Yi],Xc.defaultConfig={toolbar:{items:["sourceEditing","|","heading","|","fontColor","bold","italic","link","|","outdent","indent","|","imageUpload","blockQuote","insertTable","mediaEmbed","undo","redo"]},language:"zh",image:{toolbar:["imageTextAlternative","toggleImageCaption","imageStyle:inline","imageStyle:block","imageStyle:side"]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]}};const QL=Xc})(),Zo=Zo.default,Zo})())})(sr,sr.exports);var XL=sr.exports;const GO=JL(XL);export{GO as C};
|