{"version":3,"file":"ckeditor5.umd.js","sources":["ckeditor5.js"],"sourcesContent":["/**\n * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\nfunction e(e,t){return t.forEach((function(t){t&&\"string\"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(i){if(\"default\"!==i&&!(i in e)){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}}))})),Object.freeze(e)}let t;try{t={window:window,document:document}}catch(e){t={window:{},document:{}}}var i=t;function n(){try{return navigator.userAgent.toLowerCase()}catch(e){return\"\"}}const s=n(),o={isMac:r(s),isWindows:a(s),isGecko:l(s),isSafari:c(s),isiOS:d(s),isAndroid:h(s),isBlink:u(s),get isMediaForcedColors(){return!!i.window.matchMedia&&i.window.matchMedia(\"(forced-colors: active)\").matches},get isMotionReduced(){return!!i.window.matchMedia&&i.window.matchMedia(\"(prefers-reduced-motion)\").matches},features:{isRegExpUnicodePropertySupported:m()}};function r(e){return e.indexOf(\"macintosh\")>-1}function a(e){return e.indexOf(\"windows\")>-1}function l(e){return!!e.match(/gecko\\/\\d+/)}function c(e){return e.indexOf(\" applewebkit/\")>-1&&-1===e.indexOf(\"chrome\")}function d(e){return!!e.match(/iphone|ipad/i)||r(e)&&navigator.maxTouchPoints>0}function h(e){return e.indexOf(\"android\")>-1}function u(e){return e.indexOf(\"chrome/\")>-1&&e.indexOf(\"edge/\")<0}function m(){let e=!1;try{e=0===\"ć\".search(new RegExp(\"[\\\\p{L}]\",\"u\"))}catch(e){}return e}function g(e,t,i,n){i=i||function(e,t){return e===t};const s=Array.isArray(e)?e:Array.prototype.slice.call(e),o=Array.isArray(t)?t:Array.prototype.slice.call(t),r=function(e,t,i){const n=f(e,t,i);if(-1===n)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const s=p(e,n),o=p(t,n),r=f(s,o,i),a=e.length-r,l=t.length-r;return{firstIndex:n,lastIndexOld:a,lastIndexNew:l}}(s,o,i),a=n?function(e,t){const{firstIndex:i,lastIndexOld:n,lastIndexNew:s}=e;if(-1===i)return Array(t).fill(\"equal\");let o=[];i>0&&(o=o.concat(Array(i).fill(\"equal\")));s-i>0&&(o=o.concat(Array(s-i).fill(\"insert\")));n-i>0&&(o=o.concat(Array(n-i).fill(\"delete\")));s-1},qt.prototype.set=function(e,t){var i=this.__data__,n=Wt(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this};var Gt=ze(G,\"Map\");function Kt(e,t){var i,n,s=e.__data__;return(\"string\"==(n=typeof(i=t))||\"number\"==n||\"symbol\"==n||\"boolean\"==n?\"__proto__\"!==i:null===i)?s[\"string\"==typeof t?\"string\":\"hash\"]:s.map}function Zt(e){var t=-1,i=null==e?0:e.length;for(this.clear();++ts?0:s+t),(i=i>s?s:i)<0&&(i+=s),s=t>i?0:i-t>>>0,t>>>=0;for(var o=Array(s);++n=s?t:pi(t,i,n)).join(\"\"):e.slice(1);return r[Ri]()+a});function Oi(e){return function(t){return null==e?void 0:e[t]}}var Mi=Oi({\"À\":\"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\",\"Ö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Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var zi=\"\\\\ud800-\\\\udfff\",Hi=\"\\\\u2700-\\\\u27bf\",$i=\"a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff\",Ui=\"A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde\",Wi=\"\\\\xac\\\\xb1\\\\xd7\\\\xf7\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf\\\\u2000-\\\\u206f \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\",ji=\"[\"+Wi+\"]\",qi=\"\\\\d+\",Gi=\"[\"+Hi+\"]\",Ki=\"[\"+$i+\"]\",Zi=\"[^\"+zi+Wi+qi+Hi+$i+Ui+\"]\",Ji=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",Yi=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",Qi=\"[\"+Ui+\"]\",Xi=\"(?:\"+Ki+\"|\"+Zi+\")\",en=\"(?:\"+Qi+\"|\"+Zi+\")\",tn=\"(?:['’](?:d|ll|m|re|s|t|ve))?\",nn=\"(?:['’](?:D|LL|M|RE|S|T|VE))?\",sn=\"(?:[\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff]|\\\\ud83c[\\\\udffb-\\\\udfff])?\",on=\"[\\\\ufe0e\\\\ufe0f]?\",rn=on+sn+(\"(?:\\\\u200d(?:\"+[\"[^\"+zi+\"]\",Ji,Yi].join(\"|\")+\")\"+on+sn+\")*\"),an=\"(?:\"+[Gi,Ji,Yi].join(\"|\")+\")\"+rn,ln=RegExp([Qi+\"?\"+Ki+\"+\"+tn+\"(?=\"+[ji,Qi,\"$\"].join(\"|\")+\")\",en+\"+\"+nn+\"(?=\"+[ji,Qi+Xi,\"$\"].join(\"|\")+\")\",Qi+\"?\"+Xi+\"+\"+tn,Qi+\"+\"+nn,\"\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])\",\"\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])\",qi,an].join(\"|\"),\"g\");function cn(e,t,i){return e=ti(e),void 0===t?function(e){return Di.test(e)}(e)?function(e){return e.match(ln)||[]}(e):function(e){return e.match(Fi)||[]}(e):e.match(t)||[]}var dn=RegExp(\"['’]\",\"g\");function hn(e){var t=this.__data__=new qt(e);this.size=t.size}hn.prototype.clear=function(){this.__data__=new qt,this.size=0},hn.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},hn.prototype.get=function(e){return this.__data__.get(e)},hn.prototype.has=function(e){return this.__data__.has(e)},hn.prototype.set=function(e,t){var i=this.__data__;if(i instanceof qt){var n=i.__data__;if(!Gt||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new Zt(n)}return i.set(e,t),this.size=i.size,this};var un=\"object\"==typeof exports&&exports&&!exports.nodeType&&exports,mn=un&&\"object\"==typeof module&&module&&!module.nodeType&&module,gn=mn&&mn.exports===un?G.Buffer:void 0,fn=gn?gn.allocUnsafe:void 0;function pn(e,t){if(t)return e.slice();var i=e.length,n=fn?fn(i):new e.constructor(i);return e.copy(n),n}function bn(){return[]}var wn=Object.prototype.propertyIsEnumerable,_n=Object.getOwnPropertySymbols,vn=_n?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var i=-1,n=null==e?0:e.length,s=0,o=[];++ii.offset){if(n>s){const e={type:\"attribute\",offset:s,howMany:n-s,count:this._changeCount++};this._handleChange(e,t),t.push(e)}e.nodesToHandle=i.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=i.offset&&e.offsets?(e.nodesToHandle=n-s,e.offset=s):e.nodesToHandle=0);if(\"remove\"==i.type&&e.offset<br>
element)\"),keystroke:\"Shift+Enter\"}]})}}class Hv extends Ka{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){const t=this.editor.model,i=t.schema,n=t.document.selection,s=Array.from(n.getSelectedBlocks()),o=void 0===e.forceValue?!this.value:e.forceValue;t.change((e=>{if(o){const t=s.filter((e=>$v(e)||Wv(i,e)));this._applyQuote(e,t)}else this._removeQuote(e,s.filter($v))}))}_getValue(){const e=Sa(this.editor.model.document.selection.getSelectedBlocks());return!(!e||!$v(e))}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.document.selection,t=this.editor.model.schema,i=Sa(e.getSelectedBlocks());return!!i&&Wv(t,i)}_removeQuote(e,t){Uv(e,t).reverse().forEach((t=>{if(t.start.isAtStart&&t.end.isAtEnd)return void e.unwrap(t.start.parent);if(t.start.isAtStart){const i=e.createPositionBefore(t.start.parent);return void e.move(t,i)}t.end.isAtEnd||e.split(t.end);const i=e.createPositionAfter(t.end.parent);e.move(t,i)}))}_applyQuote(e,t){const i=[];Uv(e,t).reverse().forEach((t=>{let n=$v(t.start);n||(n=e.createElement(\"blockQuote\"),e.wrap(t,n)),i.push(n)})),i.reverse().reduce(((t,i)=>t.nextSibling==i?(e.merge(e.createPositionAfter(t)),t):i))}}function $v(e){return\"blockQuote\"==e.parent.name?e.parent:null}function Uv(e,t){let i,n=0;const s=[];for(;n
\").replace(/\\r?\\n/g,\"
\").replace(/\\t/g,\" \").replace(/^\\s/,\" \").replace(/\\s$/,\" \").replace(/\\s\\s/g,\" \")).includes(\"
\")||e.includes(\"
\"))&&(e=`
${e}
`),e}(n.getData(\"text/plain\"))),s=this.editor.data.htmlProcessor.toView(e)}const o=new v(this,\"inputTransformation\");this.fire(o,{content:s,dataTransfer:n,targetRanges:t.targetRanges,method:t.method}),o.stop.called&&e.stop(),i.scrollToTheSelection()}),{priority:\"low\"}),this.listenTo(this,\"inputTransformation\",((e,i)=>{if(i.content.isEmpty)return;const n=this.editor.data.toModel(i.content,\"$clipboardHolder\");0!=n.childCount&&(e.stop(),t.change((()=>{this.fire(\"contentInsertion\",{content:n,method:i.method,dataTransfer:i.dataTransfer,targetRanges:i.targetRanges})})))}),{priority:\"low\"}),this.listenTo(this,\"contentInsertion\",((e,t)=>{t.resultRange=s._pasteFragmentWithMarkers(t.content)}),{priority:\"low\"})}_setupCopyCut(){const e=this.editor,t=e.model.document,i=e.editing.view.document,n=(e,i)=>{const n=i.dataTransfer;i.preventDefault(),this._fireOutputTransformationEvent(n,t.selection,e.name)};this.listenTo(i,\"copy\",n,{priority:\"low\"}),this.listenTo(i,\"cut\",((t,i)=>{e.model.canEditAt(e.model.document.selection)?n(t,i):i.preventDefault()}),{priority:\"low\"}),this.listenTo(this,\"outputTransformation\",((t,n)=>{const s=e.data.toView(n.content);i.fire(\"clipboardOutput\",{dataTransfer:n.dataTransfer,content:s,method:n.method})}),{priority:\"low\"}),this.listenTo(i,\"clipboardOutput\",((i,n)=>{n.content.isEmpty||(n.dataTransfer.setData(\"text/html\",this.editor.data.htmlProcessor.toData(n.content)),n.dataTransfer.setData(\"text/plain\",Oy(n.content))),\"cut\"==n.method&&e.model.deleteContent(t.selection)}),{priority:\"low\"})}}class Fy extends(N()){_stack=[];add(e,t){const i=this._stack,n=i[0];this._insertDescriptor(e);const s=i[0];n===s||Dy(n,s)||this.fire(\"change:top\",{oldDescriptor:n,newDescriptor:s,writer:t})}remove(e,t){const i=this._stack,n=i[0];this._removeDescriptor(e);const s=i[0];n===s||Dy(n,s)||this.fire(\"change:top\",{oldDescriptor:n,newDescriptor:s,writer:t})}_insertDescriptor(e){const t=this._stack,i=t.findIndex((t=>t.id===e.id));if(Dy(e,t[i]))return;i>-1&&t.splice(i,1);let n=0;for(;t[n]&&zy(t[n],e);)n++;t.splice(n,0,e)}_removeDescriptor(e){const t=this._stack,i=t.findIndex((t=>t.id===e));i>-1&&t.splice(i,1)}}function Dy(e,t){return e&&t&&e.priority==t.priority&&Hy(e.classes)==Hy(t.classes)}function zy(e,t){return e.priority>t.priority||!(e.priority'+(i?e:CV(e,!0))+\"
\\n\":\"\"+(i?e:CV(e,!0))+\"
\\n\"}blockquote(e){return\"\\n\"+e+\"\\n\"}html(e){return e}heading(e,t,i,n){return this.options.headerIds?\"
\"+e+\"
\\n\"}table(e,t){return t&&(t=\"\"+t+\"\"),\"\"+e+\"
\"}br(){return this.options.xhtml?\"An error occurred:
\"+CV(e.message+\"\",!0)+\"\";throw e}}QV.options=QV.setOptions=function(e){var t;return LV(QV.defaults,e),t=QV.defaults,pV=t,QV},QV.getDefaults=fV,QV.defaults=pV,QV.use=function(...e){const t=LV({},...e),i=QV.defaults.extensions||{renderers:{},childTokens:{}};let n;e.forEach((e=>{if(e.extensions&&(n=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error(\"extension name required\");if(e.renderer){const t=i.renderers?i.renderers[e.name]:null;i.renderers[e.name]=t?function(...i){let n=e.renderer.apply(this,i);return!1===n&&(n=t.apply(this,i)),n}:e.renderer}if(e.tokenizer){if(!e.level||\"block\"!==e.level&&\"inline\"!==e.level)throw new Error(\"extension level must be 'block' or 'inline'\");i[e.level]?i[e.level].unshift(e.tokenizer):i[e.level]=[e.tokenizer],e.start&&(\"block\"===e.level?i.startBlock?i.startBlock.push(e.start):i.startBlock=[e.start]:\"inline\"===e.level&&(i.startInline?i.startInline.push(e.start):i.startInline=[e.start]))}e.childTokens&&(i.childTokens[e.name]=e.childTokens)}))),e.renderer){const i=QV.defaults.renderer||new KV;for(const t in e.renderer){const n=i[t];i[t]=(...s)=>{let o=e.renderer[t].apply(i,s);return!1===o&&(o=n.apply(i,s)),o}}t.renderer=i}if(e.tokenizer){const i=QV.defaults.tokenizer||new $V;for(const t in e.tokenizer){const n=i[t];i[t]=(...s)=>{let o=e.tokenizer[t].apply(i,s);return!1===o&&(o=n.apply(i,s)),o}}t.tokenizer=i}if(e.walkTokens){const i=QV.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),i&&i.call(this,t)}}n&&(t.extensions=i),QV.setOptions(t)}))},QV.walkTokens=function(e,t){for(const i of e)switch(t.call(QV,i),i.type){case\"table\":for(const e of i.header)QV.walkTokens(e.tokens,t);for(const e of i.rows)for(const i of e)QV.walkTokens(i.tokens,t);break;case\"list\":QV.walkTokens(i.items,t);break;default:QV.defaults.extensions&&QV.defaults.extensions.childTokens&&QV.defaults.extensions.childTokens[i.type]?QV.defaults.extensions.childTokens[i.type].forEach((function(e){QV.walkTokens(i[e],t)})):i.tokens&&QV.walkTokens(i.tokens,t)}},QV.parseInline=function(e,t){if(null==e)throw new Error(\"marked.parseInline(): input parameter is undefined or null\");if(\"string\"!=typeof e)throw new Error(\"marked.parseInline(): input parameter is of type \"+Object.prototype.toString.call(e)+\", string expected\");DV(t=LV({},QV.defaults,t||{}));try{const i=GV.lexInline(e,t);return t.walkTokens&&QV.walkTokens(i,t.walkTokens),YV.parseInline(i,t)}catch(e){if(e.message+=\"\\nPlease report this to https://github.com/markedjs/marked.\",t.silent)return\"
An error occurred:
\"+CV(e.message+\"\",!0)+\"\";throw e}},QV.Parser=YV,QV.parser=YV.parse,QV.Renderer=KV,QV.TextRenderer=ZV,QV.Lexer=GV,QV.lexer=GV.lex,QV.Tokenizer=$V,QV.Slugger=JV,QV.parse=QV,QV.options,QV.setOptions,QV.use,QV.walkTokens,QV.parseInline,YV.parse,GV.lex;class XV{_parser;_options={gfm:!0,breaks:!0,tables:!0,xhtml:!0,headerIds:!1};constructor(){QV.use({tokenizer:{autolink:()=>null,url:()=>null},renderer:{checkbox(...e){return Object.getPrototypeOf(this).checkbox.call(this,...e).trimRight()},code(...e){return Object.getPrototypeOf(this).code.call(this,...e).replace(\"\\n\",\"\")}}}),this._parser=QV}parse(e){return this._parser.parse(e,this._options)}}function eR(e,t){return Array(t+1).join(e)}var tR=[\"ADDRESS\",\"ARTICLE\",\"ASIDE\",\"AUDIO\",\"BLOCKQUOTE\",\"BODY\",\"CANVAS\",\"CENTER\",\"DD\",\"DIR\",\"DIV\",\"DL\",\"DT\",\"FIELDSET\",\"FIGCAPTION\",\"FIGURE\",\"FOOTER\",\"FORM\",\"FRAMESET\",\"H1\",\"H2\",\"H3\",\"H4\",\"H5\",\"H6\",\"HEADER\",\"HGROUP\",\"HR\",\"HTML\",\"ISINDEX\",\"LI\",\"MAIN\",\"MENU\",\"NAV\",\"NOFRAMES\",\"NOSCRIPT\",\"OL\",\"OUTPUT\",\"P\",\"PRE\",\"SECTION\",\"TABLE\",\"TBODY\",\"TD\",\"TFOOT\",\"TH\",\"THEAD\",\"TR\",\"UL\"];function iR(e){return rR(e,tR)}var nR=[\"AREA\",\"BASE\",\"BR\",\"COL\",\"COMMAND\",\"EMBED\",\"HR\",\"IMG\",\"INPUT\",\"KEYGEN\",\"LINK\",\"META\",\"PARAM\",\"SOURCE\",\"TRACK\",\"WBR\"];function sR(e){return rR(e,nR)}var oR=[\"A\",\"TABLE\",\"THEAD\",\"TBODY\",\"TFOOT\",\"TH\",\"TD\",\"IFRAME\",\"SCRIPT\",\"AUDIO\",\"VIDEO\"];function rR(e,t){return t.indexOf(e.nodeName)>=0}function aR(e,t){return e.getElementsByTagName&&t.some((function(t){return e.getElementsByTagName(t).length}))}var lR={};function cR(e){return e?e.replace(/(\\n+\\s*)+/g,\"\\n\"):\"\"}function dR(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function hR(e,t,i){for(var n=0;n