@ckeditor/ckeditor5-find-and-replace 29.1.0 → 31.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/build/find-and-replace.js +1 -1
  2. package/build/translations/da.js +1 -0
  3. package/build/translations/de.js +1 -0
  4. package/build/translations/es.js +1 -0
  5. package/build/translations/gl.js +1 -0
  6. package/build/translations/hu.js +1 -0
  7. package/build/translations/id.js +1 -0
  8. package/build/translations/it.js +1 -0
  9. package/build/translations/nl.js +1 -0
  10. package/build/translations/no.js +1 -0
  11. package/build/translations/pl.js +1 -0
  12. package/build/translations/pt-br.js +1 -0
  13. package/build/translations/ru.js +1 -0
  14. package/build/translations/sr-latn.js +1 -0
  15. package/build/translations/sr.js +1 -0
  16. package/build/translations/zh-cn.js +1 -0
  17. package/build/translations/zh.js +1 -0
  18. package/lang/contexts.json +4 -2
  19. package/lang/translations/da.po +69 -0
  20. package/lang/translations/de.po +69 -0
  21. package/lang/translations/en.po +12 -4
  22. package/lang/translations/es.po +69 -0
  23. package/lang/translations/gl.po +69 -0
  24. package/lang/translations/hu.po +12 -4
  25. package/lang/translations/id.po +69 -0
  26. package/lang/translations/it.po +69 -0
  27. package/lang/translations/nl.po +69 -0
  28. package/lang/translations/no.po +69 -0
  29. package/lang/translations/pl.po +69 -0
  30. package/lang/translations/pt-br.po +69 -0
  31. package/lang/translations/ru.po +69 -0
  32. package/lang/translations/sr-latn.po +69 -0
  33. package/lang/translations/sr.po +69 -0
  34. package/lang/translations/zh-cn.po +69 -0
  35. package/lang/translations/zh.po +69 -0
  36. package/package.json +20 -19
  37. package/src/findandreplace.js +15 -50
  38. package/src/findandreplaceediting.js +17 -6
  39. package/src/findandreplacestate.js +13 -1
  40. package/src/findandreplaceui.js +94 -95
  41. package/src/findcommand.js +18 -14
  42. package/src/findnextcommand.js +11 -8
  43. package/src/findpreviouscommand.js +4 -1
  44. package/src/replaceallcommand.js +3 -1
  45. package/src/replacecommand.js +11 -1
  46. package/src/ui/findandreplaceformview.js +591 -404
  47. package/src/utils.js +35 -22
  48. package/theme/findandreplace.css +2 -2
  49. package/theme/findandreplaceform.css +6 -215
  50. package/CHANGELOG.md +0 -4
  51. package/src/ui/checkboxview.js +0 -212
@@ -2,4 +2,4 @@
2
2
  * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
3
3
  * For licensing, see LICENSE.md.
4
4
  */
5
- window.CKEditor5=window.CKEditor5||{},window.CKEditor5.findAndReplace=function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=14)}([function(e,t,r){e.exports=r(3)("./src/ui.js")},function(e,t,r){e.exports=r(3)("./src/utils.js")},function(e,t,r){e.exports=r(3)("./src/core.js")},function(e,t){e.exports=CKEditor5.dll},function(e,t,r){"use strict";var i,n=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),s=[];function c(e){for(var t=-1,r=0;r<s.length;r++)if(s[r].identifier===e){t=r;break}return t}function a(e,t){for(var r={},i=[],n=0;n<e.length;n++){var o=e[n],a=t.base?o[0]+t.base:o[0],l=r[a]||0,d="".concat(a," ").concat(l);r[a]=l+1;var f=c(d),h={css:o[1],media:o[2],sourceMap:o[3]};-1!==f?(s[f].references++,s[f].updater(h)):s.push({identifier:d,updater:m(h,t),references:1}),i.push(d)}return i}function l(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var n=r.nc;n&&(i.nonce=n)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var s=o(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var d,f=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function h(e,t,r,i){var n=r?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=f(t,n);else{var o=document.createTextNode(n),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function u(e,t,r){var i=r.css,n=r.media,o=r.sourceMap;if(n?e.setAttribute("media",n):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var p=null,k=0;function m(e,t){var r,i,n;if(t.singleton){var o=k++;r=p||(p=l(t)),i=h.bind(null,r,o,!1),n=h.bind(null,r,o,!0)}else r=l(t),i=u.bind(null,r,t),n=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else n()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=n());var r=a(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<r.length;i++){var n=c(r[i]);s[n].references--}for(var o=a(e,t),l=0;l<r.length;l++){var d=c(r[l]);0===s[d].references&&(s[d].updater(),s.splice(d,1))}r=o}}}},,function(e,t,r){var i=r(4),n=r(9);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.i,n,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(n,o);e.exports=n.locals||{}},function(e,t,r){var i=r(4),n=r(10);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.i,n,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(n,o);e.exports=n.locals||{}},function(e,t,r){"use strict";(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.a=r}).call(this,r(11))},function(e,t){e.exports='.ck-vertical-form .ck-button:after{content:"";width:0;position:absolute;right:-1px;top:var(--ck-spacing-small);bottom:var(--ck-spacing-small);z-index:1}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{content:"";width:0;position:absolute;right:-1px;top:var(--ck-spacing-small);bottom:var(--ck-spacing-small);z-index:1}}.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-text-width)*0.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:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-large);border-radius:0;border:0;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}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after,[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)}}'},function(e,t){e.exports=".ck .ck-find-and-replace-form .ck-find-form__wrapper,.ck .ck-find-and-replace-form .ck-replace-form__wrapper{display:flex;align-items:flex-start;flex-direction:row;flex-wrap:wrap}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-button,.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-button{margin-top:var(--ck-spacing-standard);background-color:var(--ck-color-base-active);padding:5px 10px;text-transform:uppercase}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-button.ck-disabled,.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-button.ck-disabled{background-color:var(--ck-color-switch-button-off-background)}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-button:not(.ck-disabled),.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-button:not(.ck-disabled){color:var(--ck-color-base-background)}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-button:not(.ck-disabled):hover,.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-button:not(.ck-disabled):hover{background-color:var(--ck-color-base-focus);cursor:pointer}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-labeled-field-view__input-wrapper .ck.ck-input-text,.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-labeled-field-view__input-wrapper .ck.ck-input-text{padding:var(--ck-spacing-extra-tiny) calc(var(--ck-spacing-medium)*8) var(--ck-spacing-extra-tiny) var(--ck-spacing-medium)}@media screen and (max-width:600px){.ck .ck-find-and-replace-form .ck-find-form__wrapper,.ck .ck-find-and-replace-form .ck-replace-form__wrapper{flex-wrap:wrap}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-labeled-field-view,.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-labeled-field-view{flex-basis:100%}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-button,.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-button{flex-basis:50%}}.ck .ck-find-and-replace-form .ck-replace-form__wrapper{justify-content:flex-end;border-top:1px solid var(--ck-color-base-border)}.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-labeled-field-view__input-wrapper .ck.ck-input-text{padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium) var(--ck-spacing-extra-tiny) var(--ck-spacing-medium)}.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-button{border-radius:5px;font-size:calc(var(--ck-font-size-normal)*0.9)}.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-button:last-child{margin-left:var(--ck-spacing-standard)}.ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-button .ck.ck-button__label{line-height:20px}.ck .ck-find-and-replace-form .ck-find-form__wrapper{justify-content:space-between}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-button.ck-button-next,.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-button.ck-button-prev{margin-left:1px}.ck .ck-find-and-replace-form .ck-find-form__wrapper span.ck-results-counter{position:absolute;top:calc(var(--ck-spacing-standard)*2);right:calc(var(--ck-spacing-standard)*3);color:var(--ck-color-base-border)}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-find-buttons{display:flex;align-items:center}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-find-buttons .ck-button{border-radius:5px;padding:5px}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-find-buttons .ck-button svg.ck-button__icon{margin:0}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-find-buttons .ck-button.ck-button-find{padding:4px 16px}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-find-buttons .ck-button.ck-button-prev{border-radius:5px 0 0 5px}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-find-buttons .ck-button.ck-button-prev svg{transform:rotate(180deg) translateY(-2px)}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-find-buttons .ck-button.ck-button-next{border-radius:0 5px 5px 0}.ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-find-buttons .ck-button.ck-button-next svg{transform:translateY(-1px)}.ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-is-searching .ck-button.ck-button-find,.ck .ck-find-and-replace-form .ck-find-form__wrapper:not(.ck-is-searching) .ck-button.ck-button-next,.ck .ck-find-and-replace-form .ck-find-form__wrapper:not(.ck-is-searching) .ck-button.ck-button-prev{display:none}.ck .ck-find-and-replace-form .ck-find-form__wrapper:not(.ck-is-searching) .ck-button.ck-button-find{display:flex}.ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-responsive-form .ck-find-checkboxes{margin:0}.ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-responsive-form .ck-find-checkboxes .ck-find-checkboxes__box{display:flex;align-items:center;max-width:150px;overflow:hidden}.ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-responsive-form .ck-find-checkboxes .ck-find-checkboxes__box label{margin-left:5px;line-height:calc(var(--ck-spacing-standard)*2.2);overflow:hidden;text-overflow:ellipsis}.ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-responsive-form .ck-find-checkboxes .ck-find-checkboxes__box input[type=checkbox]:hover,.ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-responsive-form .ck-find-checkboxes .ck-find-checkboxes__box label:hover{cursor:pointer}.ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-responsive-form .ck-find-checkboxes .ck-find-checkboxes__box:first-child{margin-top:var(--ck-spacing-medium)}.ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-responsive-form .ck-find-checkboxes .ck-find-checkboxes__box input[type=checkbox]:disabled+label{color:var(--ck-color-switch-button-off-background)}.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-labeled-field-view__input-wrapper .ck.ck-input-text{padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium) var(--ck-spacing-extra-tiny) calc(var(--ck-spacing-medium)*8)}.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-replace-buttons{display:flex;flex-flow:row-reverse}.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-replace-buttons .ck-button:last-child{margin-left:var(--ck-spacing-standard)}.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-replace-form__wrapper .ck-labeled-field-view__input-wrapper .ck.ck-input-text{padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium)}.ck[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:0}.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-button.ck-button-next,.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-button.ck-button-prev{margin-right:1px;margin-left:0}.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-find-form__wrapper span.ck-results-counter{left:calc(var(--ck-spacing-standard)*3)}.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-find-form__wrapper .ck-find-buttons{flex-flow:row-reverse}.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-responsive-form .ck-find-checkboxes{margin:0}.ck[dir=rtl] .ck .ck-find-and-replace-form .ck-find-form__wrapper.ck-responsive-form .ck-find-checkboxes .ck-find-checkboxes__box label{margin-right:5px}"},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var i=r(4),n=r(13);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[e.i,n,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(n,o);e.exports=n.locals||{}},function(e,t){e.exports=".ck-find-result{background:#fff700;color:var(--ck-color-text)}.ck-find-result_selected{background:#fd0}"},function(e,t,r){"use strict";r.r(t),r.d(t,"FindAndReplace",(function(){return Be}));var i=r(2),n=r(0),o=r(1),s=(r(6),r(7),'<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 c extends n.View{constructor(e){super(e);const t=this.bindTemplate;this.set("class"),this.set("isEnabled",!0),this.set("isVisible",!0),this.set("isChecked",!1),this.set("label"),this.set("id",null),this.set("tabindex",-1),this.children=this.createCollection(),this.labelView=this._createLabelView(),this.checkboxInputView=this._createCheckboxInputView(),this.setTemplate({tag:"div",attributes:{class:[t.to("class"),t.if("isEnabled","ck-disabled",e=>!e),t.if("isVisible","ck-hidden",e=>!e)],tabindex:t.to("tabindex")},on:{keydown:t.to(e=>{e.target===this.element&&e.keyCode==Object(o.getCode)("space")&&(this.isChecked=!this.isChecked)})},children:this.children})}render(){super.render(),this.children.add(this.checkboxInputView),this.children.add(this.labelView)}focus(){this.element.focus()}_createCheckboxInputView(){const e=new n.View,t=this.bindTemplate;return e.setTemplate({tag:"input",attributes:{type:"checkbox",id:t.to("id"),checked:t.if("isChecked"),disabled:t.if("isEnabled",!0,e=>!e),"aria-disabled":t.if("isEnabled",!0,e=>!e)},on:{change:t.to(e=>{this.isChecked=e.target.checked})}}),e}_createLabelView(){const e=new n.View;return e.setTemplate({tag:"label",attributes:{for:this.bindTemplate.to("id")},children:[{text:this.bindTemplate.to("label")}]}),e}}class a extends n.View{constructor(e,t){super(e);const r=e.t;function i(e){return void 0===e?"":e}this.set("isSearching",!1),this.set("searchText",""),this.set("replaceText",""),this.set("isDirty",!1),this.set("matchCase",!1),this.set("matchWholeWords",!1),this.set("matchCount",null),this.set("highlightOffset",null),this.set("isCounterHidden",!0),this._assignViews(r),this._initFocusables(),this.bind("isDirty").to(this,"searchText",t,"searchText",this.matchCaseView,"isChecked",t,"matchCase",this.matchWholeWordsView,"isChecked",t,"matchWholeWords",(e,t,r,i,n,o)=>e!==t||r!==i||n!==o),this.bind("searchText").to(this.findInputView.fieldView,"value",i),this.findButtonView.bind("isEnabled").to(this.findInputView.fieldView,"isEmpty",e=>!e),this.bind("replaceText").to(this.replaceInputView.fieldView,"value",i),this.replaceButtonView.bind("isEnabled").to(this,"isSearching"),this.replaceAllButtonView.bind("isEnabled").to(this,"isSearching"),this.bind("isCounterHidden").to(t,"searchText",this,"isDirty",(e,t)=>""==e||t),this.bind("isSearching").to(this,"matchCount",this,"isDirty",(e,t)=>e>0&&!t),this.setTemplate({tag:"form",attributes:{class:["ck","ck-find-and-replace-form"]},children:[this.findView,this.replaceView]}),Object(n.injectCssTransitionDisabler)(this)}render(){super.render(),Object(n.submitHandler)({view:this});[this.findInputView,this.matchCaseView,this.matchWholeWordsView,this.findButtonView,this.findPrevButtonView,this.findNextButtonView,this.replaceInputView,this.replaceAllButtonView,this.replaceButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element);const e=e=>e.stopPropagation(),t=e=>{e.stopPropagation(),e.preventDefault()};this.keystrokes.set("f3",e=>{t(e),this.findNextButtonView.fire("execute")}),this.keystrokes.set("shift+f3",e=>{t(e),this.findPrevButtonView.fire("execute")}),this.keystrokes.set("enter",e=>{const r=e.target;r.classList.contains("ck-input-text")&&(r.parentElement.parentElement.parentElement.classList.contains("ck-find-form__wrapper")&&this.findButtonView.isEnabled?(this.findButtonView.fire("execute"),t(e)):r.parentElement.parentElement.parentElement.classList.contains("ck-replace-form__wrapper")&&this.replaceButtonView.isEnabled&&(this.replaceButtonView.fire("execute"),t(e)))}),this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e),this.listenTo(this.findInputView.element,"selectstart",(e,t)=>{t.stopPropagation()},{priority:"high"}),this.listenTo(this.replaceInputView.element,"selectstart",(e,t)=>{t.stopPropagation()},{priority:"high"})}focus(){this._focusCycler.focusFirst()}_initFocusables(){this.focusTracker=new o.FocusTracker,this.keystrokes=new o.KeystrokeHandler,this._focusables=new n.ViewCollection,this._focusCycler=new n.FocusCycler({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}})}_assignViews(e){this.findInputView=this._createInputField(e("Find in text…")),this.findButtonView=this._createButton(e("Find"),"ck-button-find"),this.findButtonView.on("execute",()=>{this.fire("findNext",{searchText:this.searchText,matchCase:this.matchCaseView.isChecked,wholeWords:this.matchWholeWordsView.isChecked})}),this.findPrevButtonView=this._createButton(e("Previous result"),"ck-button-prev",s,!1),this.findPrevButtonView.on("execute",()=>{this.fire("findPrevious")}),this.findNextButtonView=this._createButton(e("Next result"),"ck-button-next",s,!1),this.findNextButtonView.on("execute",()=>{this.fire("findNext")}),this.replaceButtonView=this._createButton(e("Replace"),"ck-button-replace"),this.replaceButtonView.on("execute",()=>{this.fire("replace",{searchText:this.searchText,replaceText:this.replaceText})}),this.replaceAllButtonView=this._createButton(e("Replace all"),"ck-button-replaceall"),this.replaceAllButtonView.on("execute",()=>{this.fire("replaceAll",{searchText:this.searchText,replaceText:this.replaceText})}),this.matchCaseView=this._createCheckbox(e("Match case")),this.matchWholeWordsView=this._createCheckbox(e("Whole words only")),this.replaceInputView=this._createInputField(e("Replace with…")),this.findView=this._createFindView(),this.replaceView=this._createReplaceView()}_createFindView(){const e=new n.View,t=this.bindTemplate,r=this.locale.t;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-find-form__wrapper","ck-responsive-form",t.if("isSearching","ck-is-searching")],tabindex:"-1"},children:[this.findInputView,{tag:"span",attributes:{class:["ck-results-counter",t.if("isCounterHidden","ck-hidden")]},children:[{text:t.to("highlightOffset",e=>e||0)},r(" of "),{text:t.to("matchCount")}]},{tag:"div",attributes:{class:["ck-find-checkboxes"]},children:[this.matchCaseView,this.matchWholeWordsView]},{tag:"div",attributes:{class:["ck-find-buttons"]},children:[this.findButtonView,this.findPrevButtonView,this.findNextButtonView]}]}),e}_createReplaceView(){const e=new n.View,t=this.bindTemplate;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-replace-form__wrapper","ck-responsive-form",t.if("isSearching","ck-is-searching")],tabindex:"-1"},children:[this.replaceInputView,{tag:"div",attributes:{class:["ck-replace-buttons"]},children:[this.replaceAllButtonView,this.replaceButtonView]}]}),e}_createInputField(e){const t=new n.LabeledFieldView(this.locale,n.createLabeledInputText),r=t.fieldView;return r.on("input",()=>{r.value=r.element.value}),t.label=e,t.render(),t}_createButton(e,t,r,i=!0){const o=new n.ButtonView(this.locale);return o.set({label:e,icon:r,withText:i}),o.extendTemplate({attributes:{class:t}}),o}_createCheckbox(e){const t=new c(this.locale);return t.set({isVisible:!0,tooltip:!0,class:"ck-find-checkboxes__box",id:Object(o.uid)(),label:e}),t}}class l extends i.Plugin{static get pluginName(){return"FindAndReplaceUI"}constructor(e){super(e),this.set("searchText"),this.set("replaceText"),this.set("matchCount",null),this.set("highlightOffset",null),this.formView=null}init(){this.findAndReplacePlugin=this.editor.plugins.get("FindAndReplace");const e=this.editor;e.ui.componentFactory.add("findAndReplace",t=>{const r=Object(n.createDropdown)(t),i=new a(e.locale,this._state);return i.delegate("findNext").to(this),i.delegate("findPrevious").to(this),i.delegate("replace").to(this),i.delegate("replaceAll").to(this),i.bind("matchCount").to(this),i.bind("highlightOffset").to(this),this._createToolbarDropdown(r,'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.87 13.786 1.532-1.286 3.857 4.596a1 1 0 1 1-1.532 1.286l-3.857-4.596z"/><path d="M16.004 8.5a6.5 6.5 0 0 1-9.216 5.905c-1.154-.53-.863-1.415-.663-1.615.194-.194.564-.592 1.635-.141a4.5 4.5 0 0 0 5.89-5.904l-.104-.227 1.332-1.331c.045-.046.196-.041.224.007a6.47 6.47 0 0 1 .902 3.306zm-3.4-5.715c.562.305.742 1.106.354 1.494-.388.388-.995.414-1.476.178a4.5 4.5 0 0 0-6.086 5.882l.114.236-1.348 1.349c-.038.037-.17.022-.198-.023a6.5 6.5 0 0 1 5.54-9.9 6.469 6.469 0 0 1 3.1.784z"/><path d="M4.001 11.93.948 8.877a.2.2 0 0 1 .141-.341h6.106a.2.2 0 0 1 .141.341L4.283 11.93a.2.2 0 0 1-.282 0zm11.083-6.789 3.053 3.053a.2.2 0 0 1-.14.342H11.89a.2.2 0 0 1-.14-.342l3.052-3.053a.2.2 0 0 1 .282 0z"/></svg>',i),r.panelView.children.add(i),r.on("change:isOpen",(e,t,r)=>{r||this.fire("dropdown:closed")}),this.formView=i,e.keystrokes.set("Ctrl+F",(e,t)=>{r.buttonView.fire("execute"),t()}),r.bind("isEnabled").to(e.commands.get("find")),r})}_setState(e){this._state=e,this.listenTo(e.results,"change",()=>{this.set("matchCount",e.results.length)}),this.bind("highlightOffset").to(e,"highlightedResult",t=>{if(!t)return null;const r=Array.from(e.results).sort((e,t)=>({before:-1,same:0,after:1}[e.marker.getStart().compareWith(t.marker.getStart())])).indexOf(t);return-1===r?null:r+1})}_createToolbarDropdown(e,t,r){const i=this.editor.locale.t,n=e.buttonView;n.set({icon:t,label:i("Find and replace"),keystroke:"CTRL+F",tooltip:!0}),n.on("open",()=>{r.disableCssTransitions(),r.findInputView.fieldView.select(),r.focus(),r.enableCssTransitions()},{priority:"low"})}}var d=r(8),f="object"==typeof self&&self&&self.Object===Object&&self,h=d.a||f||Function("return this")(),u=h.Symbol;var p=function(e,t){for(var r=-1,i=null==e?0:e.length,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n},k=Array.isArray,m=Object.prototype,g=m.hasOwnProperty,b=m.toString,w=u?u.toStringTag:void 0;var v=function(e){var t=g.call(e,w),r=e[w];try{e[w]=void 0;var i=!0}catch(e){}var n=b.call(e);return i&&(t?e[w]=r:delete e[w]),n},x=Object.prototype.toString;var _=function(e){return x.call(e)},y=u?u.toStringTag:void 0;var T=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":y&&y in Object(e)?v(e):_(e)};var V=function(e){return null!=e&&"object"==typeof e};var C=function(e){return"symbol"==typeof e||V(e)&&"[object Symbol]"==T(e)},R=u?u.prototype:void 0,E=R?R.toString:void 0;var I=function e(t){if("string"==typeof t)return t;if(k(t))return p(t,e)+"";if(C(t))return E?E.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r};var B=function(e){return null==e?"":I(e)},j=/[\\^$.*+?()[\]{}|]/g,A=RegExp(j.source);var O=function(e){return(e=B(e))&&A.test(e)?e.replace(j,"\\$&"):e};function N(e,t,r,i){const n=i||new o.Collection;return[...e].forEach(({type:e,item:i})=>{if("elementStart"===e&&t.schema.checkChild(i,"$text")){const e=r({item:i,text:S(t.createRangeIn(i))});if(!e)return;e.forEach(e=>{t.change(t=>{const r="findResult:"+Object(o.uid)(),s=t.addMarker(r,{usingOperation:!1,affectsData:!1,range:t.createRange(t.createPositionAt(i,e.start),t.createPositionAt(i,e.end))}),c=function(e,t){const r=e.find(({marker:e})=>t.getStart().isBefore(e.getStart()));return r?e.getIndex(r):e.length}(n,s);n.add({id:r,label:e.label,marker:s},c)})})}}),n}function S(e){return Array.from(e.getItems()).reduce((e,t)=>t.is("text")||t.is("textProxy")?e+t.data:e+"\n","")}function M(e){const t=e.length-1;let r=e.index;return 3===e.length&&(r+=e[1].length),{label:e[t],start:r,end:r+e[t].length}}function P(e,t){let r="gu";t.matchCase||(r+="i");let i=`(${O(e)})`;if(t.wholeWords){const e="[^a-zA-ZÀ-ɏḀ-ỿ]";i=`(^|${e}|_)`+i+`(?:_|${e}|$)`}const n=new RegExp(i,r);return function({text:e}){return[...e.matchAll(n)].map(M)}}class W extends i.Command{constructor(e,t){super(e),this.isEnabled=!0,this.state=t,this.listenTo(e,"change:isReadOnly",(e,t,r)=>{r&&this.clearForceDisabled("readOnlyMode")})}execute(e,{matchCase:t,wholeWords:r}={}){const{editor:i}=this,{model:n}=i;let o;"string"==typeof e?(o=P(e,{matchCase:t,wholeWords:r}),this.state.searchText=e):o=e;const s=n.document.getRootNames().reduce((e,t)=>N(n.createRangeIn(n.document.getRoot(t)),n,o,e),null);return this.state.clear(n),this.state.results.addMany(Array.from(s)),this.state.highlightedResult=s.get(0),"string"==typeof e&&(this.state.searchText=e),this.state.matchCase=!!t,this.state.matchWholeWords=!!r,{results:s,findCallback:o}}}class F extends i.Command{constructor(e,t){super(e),this.isEnabled=!0,this._state=t}execute(e,t){const{model:r}=this.editor;r.change(i=>{const n=t.marker.getRange();let o={};for(const e of n.getItems())if(e.is("$text")||e.is("$textProxy")){o=e.getAttributes();break}r.insertContent(i.createText(e,o),n),this._state.results.has(t)&&this._state.results.remove(t)})}}class D extends F{execute(e,t){const{editor:r}=this,{model:i}=r,n=t instanceof o.Collection?t:i.document.getRootNames().reduce((e,r)=>N(i.createRangeIn(i.document.getRoot(r)),i,P(t,this._state),e),null);n.length&&i.change(()=>{[...n].forEach(t=>{super.execute(e,t)})})}}class H extends i.Command{constructor(e,t){super(e),this._state=t,this.isEnabled=!1,this.listenTo(this._state.results,"change",()=>{this.isEnabled=this._state.results.length>1}),this.listenTo(e,"change:isReadOnly",(e,t,r)=>{r&&this.clearForceDisabled("readOnlyMode")})}refresh(){this.isEnabled=this._state.results.length>1}execute(){const e=this._state.results,t=e.getIndex(this._state.highlightedResult),r=t+1>=e.length?0:t+1;this._state.highlightedResult=this._state.results.get(r)}}class L extends H{execute(){const e=this._state.results.getIndex(this._state.highlightedResult),t=e-1<0?this._state.results.length-1:e-1;this._state.highlightedResult=this._state.results.get(t)}}class ${constructor(e){this.set("results",new o.Collection),this.set("highlightedResult",null),this.set("searchText",""),this.set("replaceText",""),this.set("matchCase",!1),this.set("matchWholeWords",!1),this.results.on("change",(t,{removed:r,index:i})=>{if((r=Array.from(r)).length){let t=!1;if(e.change(i=>{for(const n of r)this.highlightedResult===n&&(t=!0),e.markers.has(n.marker.name)&&i.removeMarker(n.marker)}),t){const e=i>=this.results.length?0:i;this.highlightedResult=this.results.get(e)}}})}clear(e){this.searchText="",e.change(t=>{if(this.highlightedResult){const r=this.highlightedResult.marker.name.split(":")[1],i=e.markers.get("findResultHighlighted:"+r);i&&t.removeMarker(i)}[...this.results].forEach(({marker:e})=>{t.removeMarker(e)})}),this.results.clear()}}function z(e){return"[object Range]"==Object.prototype.toString.apply(e)}function Y(e){const t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}function K(e){return"[object Text]"==Object.prototype.toString.call(e)}Object(o.mix)($,o.ObservableMixin);var U=function(e,t){return function(r){return e(t(r))}}(Object.getPrototypeOf,Object),q=Function.prototype,G=Object.prototype,J=q.toString,X=G.hasOwnProperty,Z=J.call(Object);var Q=function(e){if(!V(e)||"[object Object]"!=T(e))return!1;var t=U(e);if(null===t)return!0;var r=X.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&J.call(r)==Z};var ee=function(e){return V(e)&&1===e.nodeType&&!Q(e)};const te=["top","right","bottom","left","width","height"];class re{constructor(e){const t=z(e);if(Object.defineProperty(this,"_source",{value:e._source||e,writable:!0,enumerable:!1}),ee(e)||t)if(t){const t=re.getDomRangeRects(e);ie(this,re.getBoundingRect(t))}else ie(this,e.getBoundingClientRect());else if(Y(e)){const{innerWidth:t,innerHeight:r}=e;ie(this,{top:0,right:t,bottom:r,left:0,width:t,height:r})}else ie(this,e)}clone(){return new re(this)}moveTo(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}moveBy(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}getIntersection(e){const t={top:Math.max(this.top,e.top),right:Math.min(this.right,e.right),bottom:Math.min(this.bottom,e.bottom),left:Math.max(this.left,e.left)};return t.width=t.right-t.left,t.height=t.bottom-t.top,t.width<0||t.height<0?null:new re(t)}getIntersectionArea(e){const t=this.getIntersection(e);return t?t.getArea():0}getArea(){return this.width*this.height}getVisible(){const e=this._source;let t=this.clone();if(!ne(e)){let r=e.parentNode||e.commonAncestorContainer;for(;r&&!ne(r);){const e=new re(r),i=t.getIntersection(e);if(!i)return null;i.getArea()<t.getArea()&&(t=i),r=r.parentNode}}return t}isEqual(e){for(const t of te)if(this[t]!==e[t])return!1;return!0}contains(e){const t=this.getIntersection(e);return!(!t||!t.isEqual(e))}excludeScrollbarsAndBorders(){const e=this._source;let t,r,i;if(Y(e))t=e.innerWidth-e.document.documentElement.clientWidth,r=e.innerHeight-e.document.documentElement.clientHeight,i=e.getComputedStyle(e.document.documentElement).direction;else{const n=function(e){const t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}(this._source);t=e.offsetWidth-e.clientWidth-n.left-n.right,r=e.offsetHeight-e.clientHeight-n.top-n.bottom,i=e.ownerDocument.defaultView.getComputedStyle(e).direction,this.left+=n.left,this.top+=n.top,this.right-=n.right,this.bottom-=n.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=t,"ltr"===i?this.right-=t:this.left+=t,this.height-=r,this.bottom-=r,this}static getDomRangeRects(e){const t=[],r=Array.from(e.getClientRects());if(r.length)for(const e of r)t.push(new re(e));else{let r=e.startContainer;K(r)&&(r=r.parentNode);const i=new re(r.getBoundingClientRect());i.right=i.left,i.width=0,t.push(i)}return t}static getBoundingRect(e){const t={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY};let r=0;for(const i of e)r++,t.left=Math.min(t.left,i.left),t.top=Math.min(t.top,i.top),t.right=Math.max(t.right,i.right),t.bottom=Math.max(t.bottom,i.bottom);return 0==r?null:(t.width=t.right-t.left,t.height=t.bottom-t.top,new re(t))}}function ie(e,t){for(const r of te)e[r]=t[r]}function ne(e){return!!ee(e)&&e===e.ownerDocument.body}function oe({target:e,viewportOffset:t=0}){const r=he(e);let i=r,n=null;for(;i;){let o;o=ue(i==r?e:n),ce(o,()=>pe(e,i));const s=pe(e,i);if(se(i,s,t),i.parent!=i){if(n=i.frameElement,i=i.parent,!n)return}else i=null}}function se(e,t,r){const i=t.clone().moveBy(0,r),n=t.clone().moveBy(0,-r),o=new re(e).excludeScrollbarsAndBorders();if(![n,i].every(e=>o.contains(e))){let{scrollX:s,scrollY:c}=e;le(n,o)?c-=o.top-t.top+r:ae(i,o)&&(c+=t.bottom-o.bottom+r),de(t,o)?s-=o.left-t.left+r:fe(t,o)&&(s+=t.right-o.right+r),e.scrollTo(s,c)}}function ce(e,t){const r=he(e);let i,n;for(;e!=r.document.body;)n=t(),i=new re(e).excludeScrollbarsAndBorders(),i.contains(n)||(le(n,i)?e.scrollTop-=i.top-n.top:ae(n,i)&&(e.scrollTop+=n.bottom-i.bottom),de(n,i)?e.scrollLeft-=i.left-n.left:fe(n,i)&&(e.scrollLeft+=n.right-i.right)),e=e.parentNode}function ae(e,t){return e.bottom>t.bottom}function le(e,t){return e.top<t.top}function de(e,t){return e.left<t.left}function fe(e,t){return e.right>t.right}function he(e){return z(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function ue(e){if(z(e)){let t=e.commonAncestorContainer;return K(t)&&(t=t.parentNode),t}return e.parentNode}function pe(e,t){const r=he(e),i=new re(e);if(r===t)return i;{let e=r;for(;e!=t;){const t=e.frameElement,r=new re(t).excludeScrollbarsAndBorders();i.moveBy(r.left,r.top),e=e.parent}}return i}Object.assign({},{scrollViewportToShowTarget:oe,scrollAncestorsToShowTarget:function(e){ce(ue(e),()=>new re(e))}});var ke=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},me=function(){return h.Date.now()},ge=/\s/;var be=function(e){for(var t=e.length;t--&&ge.test(e.charAt(t)););return t},we=/^\s+/;var ve=function(e){return e?e.slice(0,be(e)+1).replace(we,""):e},xe=/^[-+]0x[0-9a-f]+$/i,_e=/^0b[01]+$/i,ye=/^0o[0-7]+$/i,Te=parseInt;var Ve=function(e){if("number"==typeof e)return e;if(C(e))return NaN;if(ke(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ke(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ve(e);var r=_e.test(e);return r||ye.test(e)?Te(e.slice(2),r?2:8):xe.test(e)?NaN:+e},Ce=Math.max,Re=Math.min;var Ee=function(e,t,r){var i,n,o,s,c,a,l=0,d=!1,f=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function u(t){var r=i,o=n;return i=n=void 0,l=t,s=e.apply(o,r)}function p(e){return l=e,c=setTimeout(m,t),d?u(e):s}function k(e){var r=e-a;return void 0===a||r>=t||r<0||f&&e-l>=o}function m(){var e=me();if(k(e))return g(e);c=setTimeout(m,function(e){var r=t-(e-a);return f?Re(r,o-(e-l)):r}(e))}function g(e){return c=void 0,h&&i?u(e):(i=n=void 0,s)}function b(){var e=me(),r=k(e);if(i=arguments,n=this,a=e,r){if(void 0===c)return p(a);if(f)return clearTimeout(c),c=setTimeout(m,t),u(a)}return void 0===c&&(c=setTimeout(m,t)),s}return t=Ve(t)||0,ke(r)&&(d=!!r.leading,o=(f="maxWait"in r)?Ce(Ve(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h),b.cancel=function(){void 0!==c&&clearTimeout(c),l=0,i=a=n=c=void 0},b.flush=function(){return void 0===c?s:g(me())},b};r(12);class Ie extends i.Plugin{static get pluginName(){return"FindAndReplaceEditing"}init(){this.activeResults=null,this.state=new $(this.editor.model),this._defineConverters(),this._defineCommands(),this.listenTo(this.state,"change:highlightedResult",(e,t,r,i)=>{const{model:n}=this.editor;n.change(e=>{if(i){const t=i.marker.name.split(":")[1],r=n.markers.get("findResultHighlighted:"+t);r&&e.removeMarker(r)}if(r){const t=r.marker.name.split(":")[1];e.addMarker("findResultHighlighted:"+t,{usingOperation:!1,affectsData:!1,range:r.marker.getRange()})}})});const e=Ee(function(e,t,r){if(r){const e=this.editor.editing.view.domConverter,t=this.editor.editing.mapper.toViewRange(r.marker.getRange());oe({target:e.viewRangeToDom(t),viewportOffset:40})}}.bind(this),32);this.listenTo(this.state,"change:highlightedResult",e,{priority:"low"}),this.listenTo(this.editor,"destroy",e.cancel)}find(e){const{editor:t}=this,{model:r}=t,{findCallback:i,results:n}=t.execute("find",e);return this.activeResults=n,this.listenTo(r.document,"change:data",()=>function(e,t,r){const i=new Set,n=new Set;t.document.differ.getChanges().forEach(e=>{"$text"===e.name||t.schema.isInline(e.position.nodeAfter)?(i.add(e.position.parent),[...t.markers.getMarkersAtPosition(e.position)].forEach(e=>{n.add(e.name)})):"insert"===e.type&&i.add(e.position.nodeAfter)}),t.document.differ.getChangedMarkers().forEach(({name:e,data:{newRange:t}})=>{t&&"$graveyard"===t.start.root.rootName&&n.add(e)}),i.forEach(e=>{[...t.markers.getMarkersIntersectingRange(t.createRangeIn(e))].forEach(e=>n.add(e.name))}),t.change(t=>{n.forEach(r=>{e.has(r)&&e.remove(r),t.removeMarker(r)})}),i.forEach(i=>{N(t.createRangeOn(i),t,r,e)})}(this.activeResults,r,i)),this.activeResults}stop(){this.activeResults&&(this.stopListening(this.editor.model.document),this.state.clear(this.editor.model),this.activeResults=null)}_defineCommands(){this.editor.commands.add("find",new W(this.editor,this.state)),this.editor.commands.add("findNext",new H(this.editor,this.state)),this.editor.commands.add("findPrevious",new L(this.editor,this.state)),this.editor.commands.add("replace",new F(this.editor,this.state)),this.editor.commands.add("replaceAll",new D(this.editor,this.state))}_defineConverters(){const{editor:e}=this;e.conversion.for("editingDowncast").markerToHighlight({model:"findResult",view:({markerName:e})=>{const[,t]=e.split(":");return{name:"span",classes:["ck-find-result"],attributes:{"data-find-result":t}}}}),e.conversion.for("editingDowncast").markerToHighlight({model:"findResultHighlighted",view:({markerName:e})=>{const[,t]=e.split(":");return{name:"span",classes:["ck-find-result_selected"],attributes:{"data-find-result":t}}}})}}class Be extends i.Plugin{static get requires(){return[Ie,l]}static get pluginName(){return"FindAndReplace"}init(){const e=this.editor.plugins.get("FindAndReplaceUI"),t=this.editor.plugins.get("FindAndReplaceEditing");e.on("findNext",(e,r)=>{r?(t.state.searchText=r.searchText,this.editor.execute("find",r.searchText,r)):this.editor.execute("findNext")}),e.on("findPrevious",(e,r)=>{r&&t.state.searchText!==r.searchText?this.editor.execute("find",r.searchText):this.editor.execute("findPrevious")}),e.on("replace",(e,r)=>{t.state.searchText!==r.searchText&&this.editor.execute("find",r.searchText);const i=t.state.highlightedResult;i&&this.editor.execute("replace",r.replaceText,i)}),e.on("replaceAll",(e,r)=>{t.state.searchText!==r.searchText&&this.editor.execute("find",r.searchText),this.editor.execute("replaceAll",r.replaceText,t.state.results)}),e.on("dropdown:closed",()=>{t.state.clear(this.editor.model),t.stop()}),this.editor.ui&&this.listenTo(this.editor.ui,"ready",()=>{const t=e.formView;if(t){const e=this.editor.commands;t.findNextButtonView.bind("isEnabled").to(e.get("findNext"),"isEnabled"),t.findPrevButtonView.bind("isEnabled").to(e.get("findPrevious"),"isEnabled"),t.replaceButtonView.unbind("isEnabled"),t.replaceButtonView.bind("isEnabled").to(e.get("replace"),"isEnabled",t,"isSearching",(e,t)=>e&&t),t.replaceAllButtonView.unbind("isEnabled"),t.replaceAllButtonView.bind("isEnabled").to(e.get("replaceAll"),"isEnabled",t,"isSearching",(e,t)=>e&&t)}}),e._setState(t.state)}}}]);
5
+ !function(e){const t=e.en=e.en||{};t.dictionary=Object.assign(t.dictionary||{},{Find:"Find","Find and replace":"Find and replace","Find in text…":"Find in text…","Match case":"Match case","Next result":"Next result","Previous result":"Previous result",Replace:"Replace","Replace all":"Replace all","Replace with…":"Replace with…","Show options":"Show options","Text to find must not be empty.":"Text to find must not be empty.","Tip: Find some text first in order to replace it.":"Tip: Find some text first in order to replace it.","Whole words only":"Whole words only"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),window.CKEditor5=window.CKEditor5||{},window.CKEditor5.findAndReplace=function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=14)}([function(e,t,i){e.exports=i(3)("./src/ui.js")},function(e,t,i){e.exports=i(3)("./src/core.js")},function(e,t,i){e.exports=i(3)("./src/utils.js")},function(e,t){e.exports=CKEditor5.dll},function(e,t,i){"use strict";var n,r=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},s=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),o=[];function a(e){for(var t=-1,i=0;i<o.length;i++)if(o[i].identifier===e){t=i;break}return t}function c(e,t){for(var i={},n=[],r=0;r<e.length;r++){var s=e[r],c=t.base?s[0]+t.base:s[0],l=i[c]||0,d="".concat(c," ").concat(l);i[c]=l+1;var f=a(d),h={css:s[1],media:s[2],sourceMap:s[3]};-1!==f?(o[f].references++,o[f].updater(h)):o.push({identifier:d,updater:g(h,t),references:1}),n.push(d)}return n}function l(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var r=i.nc;r&&(n.nonce=r)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var o=s(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var d,f=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function h(e,t,i,n){var r=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=f(t,r);else{var s=document.createTextNode(r),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(s,o[t]):e.appendChild(s)}}function u(e,t,i){var n=i.css,r=i.media,s=i.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),s&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var p=null,m=0;function g(e,t){var i,n,r;if(t.singleton){var s=m++;i=p||(p=l(t)),n=h.bind(null,i,s,!1),r=h.bind(null,i,s,!0)}else i=l(t),n=u.bind(null,i,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var i=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var r=a(i[n]);o[r].references--}for(var s=c(e,t),l=0;l<i.length;l++){var d=a(i[l]);0===o[d].references&&(o[d].updater(),o.splice(d,1))}i=s}}}},,function(e,t,i){"use strict";(function(e){var i="object"==typeof e&&e&&e.Object===Object&&e;t.a=i}).call(this,i(11))},function(e,t,i){var n=i(4),r=i(8);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var s={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};n(r,s);e.exports=r.locals||{}},function(e,t){e.exports='.ck-vertical-form .ck-button:after{content:"";width:0;position:absolute;right:-1px;top:var(--ck-spacing-small);bottom:var(--ck-spacing-small);z-index:1}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{content:"";width:0;position:absolute;right:-1px;top:var(--ck-spacing-small);bottom:var(--ck-spacing-small);z-index:1}}.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-text-width)*0.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:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-large);border-radius:0;border:0;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}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after,[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)}}'},function(e,t,i){var n=i(4),r=i(10);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var s={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};n(r,s);e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-find-and-replace-form{max-width:100%}.ck.ck-find-and-replace-form fieldset{display:flex}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find .ck-results-counter{position:absolute}.ck.ck-find-and-replace-form{width:400px}.ck.ck-find-and-replace-form:focus{outline:none}.ck.ck-find-and-replace-form fieldset{flex-direction:row;flex-wrap:nowrap;align-items:center;align-content:stretch;padding:var(--ck-spacing-large);border:0;margin:0}.ck.ck-find-and-replace-form fieldset>.ck-button{flex:0 0 auto}[dir=ltr] .ck.ck-find-and-replace-form fieldset>*+*{margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-find-and-replace-form fieldset>*+*{margin-right:var(--ck-spacing-standard)}.ck.ck-find-and-replace-form fieldset .ck-labeled-field-view{flex:1 1 auto}.ck.ck-find-and-replace-form fieldset .ck-labeled-field-view .ck-input{width:100%;min-width:50px}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find{align-items:flex-start}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button-find{font-weight:700}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button-find .ck-button__label{padding-left:var(--ck-spacing-large);padding-right:var(--ck-spacing-large)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button-prev>.ck-icon{transform:rotate(90deg)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button-next>.ck-icon{transform:rotate(-90deg)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find .ck-results-counter{top:50%;transform:translateY(-50%)}[dir=ltr] .ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find .ck-results-counter{right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find .ck-results-counter{left:var(--ck-spacing-standard)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find .ck-results-counter{color:var(--ck-color-base-border)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace{flex-wrap:wrap;justify-content:flex-end;margin-top:calc(var(--ck-spacing-large)*-1)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>.ck-labeled-field-view{margin-bottom:var(--ck-spacing-large)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>.ck-options-dropdown{margin-right:auto;margin-left:0}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>.ck-labeled-field-view,.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>.ck-labeled-field-view .ck-input{width:100%}@media screen and (max-width:600px){.ck.ck-find-and-replace-form{width:300px}.ck.ck-find-and-replace-form fieldset{flex-wrap:wrap}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find .ck-labeled-field-view{flex:1 0 auto;width:100%;margin-bottom:var(--ck-spacing-standard)}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button{text-align:center}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button:first-of-type{flex:1 1 auto}[dir=ltr] .ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button:first-of-type{margin-left:0}[dir=rtl] .ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button:first-of-type{margin-right:0}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__find>.ck-button:first-of-type .ck-button__label{width:100%;text-align:center}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>:not(.ck-labeled-field-view){flex:1 1 auto}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>:not(.ck-labeled-field-view).ck-dropdown{flex-grow:0}.ck.ck-find-and-replace-form fieldset.ck-find-and-replace-form__replace>:not(.ck-labeled-field-view).ck-button>.ck-button__label{width:100%;text-align:center}}"},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},function(e,t,i){var n=i(4),r=i(13);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var s={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};n(r,s);e.exports=r.locals||{}},function(e,t){e.exports=".ck-find-result{background:#ff0;color:var(--ck-color-text)}.ck-find-result_selected{background:#ff9633}"},function(e,t,i){"use strict";i.r(t),i.d(t,"FindAndReplace",(function(){return Ee}));var n=i(1),r=i(0),s=i(2),o=(i(7),i(9),'<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>');class a extends r.View{constructor(e){super(e);const t=e.t;this.set("matchCount",0),this.set("highlightOffset",0),this.set("isDirty",!1),this.set("_areCommandsEnabled",{}),this.set("_resultsCounterText",""),this.set("_matchCase",!1),this.set("_wholeWordsOnly",!1),this.bind("_searchResultsFound").to(this,"matchCount",this,"isDirty",(e,t)=>e>0&&!t),this._findInputView=this._createInputField(t("Find in text…")),this._replaceInputView=this._createInputField(t("Replace with…")),this._findButtonView=this._createButton({label:t("Find"),class:"ck-button-find ck-button-action",withText:!0}),this._findPrevButtonView=this._createButton({label:t("Previous result"),class:"ck-button-prev",icon:o,keystroke:"Shift+F3",tooltip:!0}),this._findNextButtonView=this._createButton({label:t("Next result"),class:"ck-button-next",icon:o,keystroke:"F3",tooltip:!0}),this._optionsDropdown=this._createOptionsDropdown(),this._replaceButtonView=this._createButton({label:t("Replace"),class:"ck-button-replace",withText:!0}),this._replaceAllButtonView=this._createButton({label:t("Replace all"),class:"ck-button-replaceall",withText:!0}),this._findFieldsetView=this._createFindFieldset(),this._replaceFieldsetView=this._createReplaceFieldset(),this._focusTracker=new s.FocusTracker,this._keystrokes=new s.KeystrokeHandler,this._focusables=new r.ViewCollection,this._focusCycler=new r.FocusCycler({focusables:this._focusables,focusTracker:this._focusTracker,keystrokeHandler:this._keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-find-and-replace-form"],tabindex:"-1"},children:[new r.FormHeaderView(e,{label:t("Find and replace")}),this._findFieldsetView,this._replaceFieldsetView]}),Object(r.injectCssTransitionDisabler)(this)}render(){super.render(),Object(r.submitHandler)({view:this}),this._initFocusCycling(),this._initKeystrokeHandling()}destroy(){super.destroy(),this._focusTracker.destroy(),this._keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}reset(){this._findInputView.errorText=null,this.isDirty=!0}get _textToFind(){return this._findInputView.fieldView.element.value}get _textToReplace(){return this._replaceInputView.fieldView.element.value}_createFindFieldset(){const e=this.locale,t=new r.View(e);return this._findInputView.fieldView.on("input",()=>{this.isDirty=!0}),this._findButtonView.on("execute",this._onFindButtonExecute.bind(this)),this._findPrevButtonView.delegate("execute").to(this,"findPrevious"),this._findNextButtonView.delegate("execute").to(this,"findNext"),this._findPrevButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",({findPrevious:e})=>e),this._findNextButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",({findNext:e})=>e),this._injectFindResultsCounter(),t.setTemplate({tag:"fieldset",attributes:{class:["ck","ck-find-and-replace-form__find"]},children:[this._findInputView,this._findButtonView,this._findPrevButtonView,this._findNextButtonView]}),t}_onFindButtonExecute(){if(this._textToFind)this.isDirty=!1,this.fire("findNext",{searchText:this._textToFind,matchCase:this._matchCase,wholeWords:this._wholeWordsOnly});else{const e=this.t;this._findInputView.errorText=e("Text to find must not be empty.")}}_injectFindResultsCounter(){const e=this.locale,t=e.t,i=this.bindTemplate,n=new r.View(e);this.bind("_resultsCounterText").to(this,"highlightOffset",this,"matchCount",(e,i)=>t("%0 of %1",[e,i])),n.setTemplate({tag:"span",attributes:{class:["ck","ck-results-counter",i.if("isDirty","ck-hidden")]},children:[{text:i.to("_resultsCounterText")}]});const o=()=>{const t=this._findInputView.fieldView.element;if(!t||!t.offsetParent)return;const i=new s.Rect(n.element).width,r="ltr"===e.uiLanguageDirection?"paddingRight":"paddingLeft";t.style[r]=i?`calc( 2 * var(--ck-spacing-standard) + ${i}px )`:null};this.on("change:_resultsCounterText",o,{priority:"low"}),this.on("change:isDirty",o,{priority:"low"}),this._findInputView.template.children[0].children.push(n)}_createReplaceFieldset(){const e=this.locale,t=e.t,i=new r.View(e);return this._replaceButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",this,"_searchResultsFound",({replace:e},t)=>e&&t),this._replaceAllButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",this,"_searchResultsFound",({replaceAll:e},t)=>e&&t),this._replaceInputView.bind("isEnabled").to(this,"_areCommandsEnabled",this,"_searchResultsFound",({replace:e},t)=>e&&t),this._replaceInputView.bind("infoText").to(this._replaceInputView,"isEnabled",this._replaceInputView,"isFocused",(e,i)=>e||!i?"":t("Tip: Find some text first in order to replace it.")),this._replaceButtonView.on("execute",()=>{this.fire("replace",{searchText:this._textToFind,replaceText:this._textToReplace})}),this._replaceAllButtonView.on("execute",()=>{this.fire("replaceAll",{searchText:this._textToFind,replaceText:this._textToReplace}),this.focus()}),i.setTemplate({tag:"fieldset",attributes:{class:["ck","ck-find-and-replace-form__replace"]},children:[this._replaceInputView,this._optionsDropdown,this._replaceButtonView,this._replaceAllButtonView]}),i}_createOptionsDropdown(){const e=this.locale,t=e.t,i=Object(r.createDropdown)(e);i.class="ck-options-dropdown",i.buttonView.set({withText:!1,label:t("Show options"),icon:n.icons.cog,tooltip:!0});const o=new r.Model({withText:!0,label:t("Match case"),_isMatchCaseSwitch:!0}),a=new r.Model({withText:!0,label:t("Whole words only")});return o.bind("isOn").to(this,"_matchCase"),a.bind("isOn").to(this,"_wholeWordsOnly"),i.on("execute",e=>{e.source._isMatchCaseSwitch?this._matchCase=!this._matchCase:this._wholeWordsOnly=!this._wholeWordsOnly,this.isDirty=!0}),Object(r.addListToDropdown)(i,new s.Collection([{type:"switchbutton",model:o},{type:"switchbutton",model:a}])),i}_initFocusCycling(){[this._findInputView,this._findButtonView,this._findPrevButtonView,this._findNextButtonView,this._replaceInputView,this._optionsDropdown,this._replaceButtonView,this._replaceAllButtonView].forEach(e=>{this._focusables.add(e),this._focusTracker.add(e.element)})}_initKeystrokeHandling(){const e=e=>e.stopPropagation(),t=e=>{e.stopPropagation(),e.preventDefault()};this._keystrokes.listenTo(this.element),this._keystrokes.set("f3",e=>{t(e),this._findNextButtonView.fire("execute")}),this._keystrokes.set("shift+f3",e=>{t(e),this._findPrevButtonView.fire("execute")}),this._keystrokes.set("enter",e=>{const i=e.target;i===this._findInputView.fieldView.element?(this._areCommandsEnabled.findNext?this._findNextButtonView.fire("execute"):this._findButtonView.fire("execute"),t(e)):i!==this._replaceInputView.fieldView.element||this.isDirty||(this._replaceButtonView.fire("execute"),t(e))}),this._keystrokes.set("shift+enter",e=>{e.target===this._findInputView.fieldView.element&&(this._areCommandsEnabled.findPrevious?this._findPrevButtonView.fire("execute"):this._findButtonView.fire("execute"),t(e))}),this._keystrokes.set("arrowright",e),this._keystrokes.set("arrowleft",e),this._keystrokes.set("arrowup",e),this._keystrokes.set("arrowdown",e),this.listenTo(this._findInputView.element,"selectstart",(e,t)=>{t.stopPropagation()},{priority:"high"}),this.listenTo(this._replaceInputView.element,"selectstart",(e,t)=>{t.stopPropagation()},{priority:"high"})}_createButton(e){const t=new r.ButtonView(this.locale);return t.set(e),t}_createInputField(e){const t=new r.LabeledFieldView(this.locale,r.createLabeledInputText);return t.label=e,t}}class c extends n.Plugin{static get pluginName(){return"FindAndReplaceUI"}constructor(e){super(e),this.formView=null}init(){const e=this.editor;e.ui.componentFactory.add("findAndReplace",t=>{const i=Object(r.createDropdown)(t),n=this.formView=new a(e.locale);return i.bind("isEnabled").to(e.commands.get("find")),i.panelView.children.add(n),i.on("change:isOpen",(e,t,i)=>{i?(n.disableCssTransitions(),n.reset(),n._findInputView.fieldView.select(),n.focus(),n.enableCssTransitions()):(n.focus(),this.fire("searchReseted"))},{priority:"low"}),this._setupDropdownButton(i),this._setupFormView(n),i})}_setupDropdownButton(e){const t=this.editor,i=t.locale.t;e.buttonView.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.87 13.786 1.532-1.286 3.857 4.596a1 1 0 1 1-1.532 1.286l-3.857-4.596z"/><path d="M16.004 8.5a6.5 6.5 0 0 1-9.216 5.905c-1.154-.53-.863-1.415-.663-1.615.194-.194.564-.592 1.635-.141a4.5 4.5 0 0 0 5.89-5.904l-.104-.227 1.332-1.331c.045-.046.196-.041.224.007a6.47 6.47 0 0 1 .902 3.306zm-3.4-5.715c.562.305.742 1.106.354 1.494-.388.388-.995.414-1.476.178a4.5 4.5 0 0 0-6.086 5.882l.114.236-1.348 1.349c-.038.037-.17.022-.198-.023a6.5 6.5 0 0 1 5.54-9.9 6.469 6.469 0 0 1 3.1.784z"/><path d="M4.001 11.93.948 8.877a.2.2 0 0 1 .141-.341h6.106a.2.2 0 0 1 .141.341L4.283 11.93a.2.2 0 0 1-.282 0zm11.083-6.789 3.053 3.053a.2.2 0 0 1-.14.342H11.89a.2.2 0 0 1-.14-.342l3.052-3.053a.2.2 0 0 1 .282 0z"/></svg>',label:i("Find and replace"),keystroke:"CTRL+F",tooltip:!0}),t.keystrokes.set("Ctrl+F",(t,i)=>{e.isOpen=!0,i()})}_setupFormView(e){const t=this.editor.commands,i=this.editor.plugins.get("FindAndReplaceEditing").state,n={before:-1,same:0,after:1};e.bind("highlightOffset").to(i,"highlightedResult",e=>e?Array.from(i.results).sort((e,t)=>n[e.marker.getStart().compareWith(t.marker.getStart())]).indexOf(e)+1:0),e.listenTo(i.results,"change",()=>{e.matchCount=i.results.length}),e.bind("_areCommandsEnabled").to(t.get("findNext"),"isEnabled",t.get("findPrevious"),"isEnabled",t.get("replace"),"isEnabled",t.get("replaceAll"),"isEnabled",(e,t,i,n)=>({findNext:e,findPrevious:t,replace:i,replaceAll:n})),e.delegate("findNext","findPrevious","replace","replaceAll").to(this),e.on("change:isDirty",(e,t,i)=>{i&&this.fire("searchReseted")})}}var l=i(6),d="object"==typeof self&&self&&self.Object===Object&&self,f=l.a||d||Function("return this")(),h=f.Symbol;var u=function(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r},p=Array.isArray,m=Object.prototype,g=m.hasOwnProperty,k=m.toString,w=h?h.toStringTag:void 0;var b=function(e){var t=g.call(e,w),i=e[w];try{e[w]=void 0;var n=!0}catch(e){}var r=k.call(e);return n&&(t?e[w]=i:delete e[w]),r},_=Object.prototype.toString;var v=function(e){return _.call(e)},x=h?h.toStringTag:void 0;var y=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":x&&x in Object(e)?b(e):v(e)};var T=function(e){return null!=e&&"object"==typeof e};var R=function(e){return"symbol"==typeof e||T(e)&&"[object Symbol]"==y(e)},V=h?h.prototype:void 0,C=V?V.toString:void 0;var I=function e(t){if("string"==typeof t)return t;if(p(t))return u(t,e)+"";if(R(t))return C?C.call(t):"";var i=t+"";return"0"==i&&1/t==-1/0?"-0":i};var E=function(e){return null==e?"":I(e)},F=/[\\^$.*+?()[\]{}|]/g,O=RegExp(F.source);var N=function(e){return(e=E(e))&&O.test(e)?e.replace(F,"\\$&"):e};function A(e,t,i,n){const r=n||new s.Collection;return t.change(n=>{[...e].forEach(({type:e,item:o})=>{if("elementStart"===e&&t.schema.checkChild(o,"$text")){const e=i({item:o,text:B(t.createRangeIn(o))});if(!e)return;e.forEach(e=>{const t="findResult:"+Object(s.uid)(),i=n.addMarker(t,{usingOperation:!1,affectsData:!1,range:n.createRange(n.createPositionAt(o,e.start),n.createPositionAt(o,e.end))}),a=function(e,t){const i=e.find(({marker:e})=>t.getStart().isBefore(e.getStart()));return i?e.getIndex(i):e.length}(r,i);r.add({id:t,label:e.label,marker:i},a)})}})}),r}function B(e){return Array.from(e.getItems()).reduce((e,t)=>t.is("text")||t.is("textProxy")?e+t.data:e+"\n","")}function j(e){const t=e.length-1;let i=e.index;return 3===e.length&&(i+=e[1].length),{label:e[t],start:i,end:i+e[t].length}}function S(e,t){let i="gu";t.matchCase||(i+="i");let n=`(${N(e)})`;if(t.wholeWords){const t="[^a-zA-ZÀ-ɏḀ-ỿ]";new RegExp("^"+t).test(e)||(n=`(^|${t}|_)${n}`),new RegExp(t+"$").test(e)||(n=`${n}(?=_|${t}|$)`)}const r=new RegExp(n,i);return function({text:e}){return[...e.matchAll(r)].map(j)}}class M extends n.Command{constructor(e,t){super(e),this.isEnabled=!0,this.affectsData=!1,this._state=t}execute(e,{matchCase:t,wholeWords:i}={}){const{editor:n}=this,{model:r}=n;let s;"string"==typeof e?(s=S(e,{matchCase:t,wholeWords:i}),this._state.searchText=e):s=e;const o=r.document.getRootNames().reduce((e,t)=>A(r.createRangeIn(r.document.getRoot(t)),r,s,e),null);return this._state.clear(r),this._state.results.addMany(Array.from(o)),this._state.highlightedResult=o.get(0),"string"==typeof e&&(this._state.searchText=e),this._state.matchCase=!!t,this._state.matchWholeWords=!!i,{results:o,findCallback:s}}}class P extends n.Command{constructor(e,t){super(e),this.isEnabled=!0,this._state=t}execute(e,t){const{model:i}=this.editor;i.change(n=>{const r=t.marker.getRange();if("$graveyard"===r.root.rootName)return void this._state.results.remove(t);let s={};for(const e of r.getItems())if(e.is("$text")||e.is("$textProxy")){s=e.getAttributes();break}i.insertContent(n.createText(e,s),r),this._state.results.has(t)&&this._state.results.remove(t)})}}class D extends P{execute(e,t){const{editor:i}=this,{model:n}=i,r=t instanceof s.Collection?t:n.document.getRootNames().reduce((e,i)=>A(n.createRangeIn(n.document.getRoot(i)),n,S(t,this._state),e),null);r.length&&n.change(()=>{[...r].forEach(t=>{super.execute(e,t)})})}}class W extends n.Command{constructor(e,t){super(e),this.affectsData=!1,this._state=t,this.isEnabled=!1,this.listenTo(this._state.results,"change",()=>{this.isEnabled=this._state.results.length>1})}refresh(){this.isEnabled=this._state.results.length>1}execute(){const e=this._state.results,t=e.getIndex(this._state.highlightedResult),i=t+1>=e.length?0:t+1;this._state.highlightedResult=this._state.results.get(i)}}class H extends W{execute(){const e=this._state.results.getIndex(this._state.highlightedResult),t=e-1<0?this._state.results.length-1:e-1;this._state.highlightedResult=this._state.results.get(t)}}class ${constructor(e){this.set("results",new s.Collection),this.set("highlightedResult",null),this.set("searchText",""),this.set("replaceText",""),this.set("matchCase",!1),this.set("matchWholeWords",!1),this.results.on("change",(t,{removed:i,index:n})=>{if((i=Array.from(i)).length){let t=!1;if(e.change(n=>{for(const r of i)this.highlightedResult===r&&(t=!0),e.markers.has(r.marker.name)&&n.removeMarker(r.marker)}),t){const e=n>=this.results.length?0:n;this.highlightedResult=this.results.get(e)}}})}clear(e){this.searchText="",e.change(t=>{if(this.highlightedResult){const i=this.highlightedResult.marker.name.split(":")[1],n=e.markers.get("findResultHighlighted:"+i);n&&t.removeMarker(n)}[...this.results].forEach(({marker:e})=>{t.removeMarker(e)})}),this.results.clear()}}function L(e){return"[object Range]"==Object.prototype.toString.apply(e)}function z(e){const t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}function K(e){return"[object Text]"==Object.prototype.toString.call(e)}Object(s.mix)($,s.ObservableMixin);var Y=function(e,t){return function(i){return e(t(i))}}(Object.getPrototypeOf,Object),U=Function.prototype,q=Object.prototype,G=U.toString,J=q.hasOwnProperty,X=G.call(Object);var Z=function(e){if(!T(e)||"[object Object]"!=y(e))return!1;var t=Y(e);if(null===t)return!0;var i=J.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&G.call(i)==X};var Q=function(e){return T(e)&&1===e.nodeType&&!Z(e)};const ee=["top","right","bottom","left","width","height"];class te{constructor(e){const t=L(e);if(Object.defineProperty(this,"_source",{value:e._source||e,writable:!0,enumerable:!1}),Q(e)||t)if(t){const t=te.getDomRangeRects(e);ie(this,te.getBoundingRect(t))}else ie(this,e.getBoundingClientRect());else if(z(e)){const{innerWidth:t,innerHeight:i}=e;ie(this,{top:0,right:t,bottom:i,left:0,width:t,height:i})}else ie(this,e)}clone(){return new te(this)}moveTo(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}moveBy(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}getIntersection(e){const t={top:Math.max(this.top,e.top),right:Math.min(this.right,e.right),bottom:Math.min(this.bottom,e.bottom),left:Math.max(this.left,e.left)};return t.width=t.right-t.left,t.height=t.bottom-t.top,t.width<0||t.height<0?null:new te(t)}getIntersectionArea(e){const t=this.getIntersection(e);return t?t.getArea():0}getArea(){return this.width*this.height}getVisible(){const e=this._source;let t=this.clone();if(!ne(e)){let i=e.parentNode||e.commonAncestorContainer;for(;i&&!ne(i);){const e=new te(i),n=t.getIntersection(e);if(!n)return null;n.getArea()<t.getArea()&&(t=n),i=i.parentNode}}return t}isEqual(e){for(const t of ee)if(this[t]!==e[t])return!1;return!0}contains(e){const t=this.getIntersection(e);return!(!t||!t.isEqual(e))}excludeScrollbarsAndBorders(){const e=this._source;let t,i,n;if(z(e))t=e.innerWidth-e.document.documentElement.clientWidth,i=e.innerHeight-e.document.documentElement.clientHeight,n=e.getComputedStyle(e.document.documentElement).direction;else{const r=function(e){const t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}(this._source);t=e.offsetWidth-e.clientWidth-r.left-r.right,i=e.offsetHeight-e.clientHeight-r.top-r.bottom,n=e.ownerDocument.defaultView.getComputedStyle(e).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-=t,"ltr"===n?this.right-=t:this.left+=t,this.height-=i,this.bottom-=i,this}static getDomRangeRects(e){const t=[],i=Array.from(e.getClientRects());if(i.length)for(const e of i)t.push(new te(e));else{let i=e.startContainer;K(i)&&(i=i.parentNode);const n=new te(i.getBoundingClientRect());n.right=n.left,n.width=0,t.push(n)}return t}static getBoundingRect(e){const t={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY};let i=0;for(const n of e)i++,t.left=Math.min(t.left,n.left),t.top=Math.min(t.top,n.top),t.right=Math.max(t.right,n.right),t.bottom=Math.max(t.bottom,n.bottom);return 0==i?null:(t.width=t.right-t.left,t.height=t.bottom-t.top,new te(t))}}function ie(e,t){for(const i of ee)e[i]=t[i]}function ne(e){return!!Q(e)&&e===e.ownerDocument.body}function re({target:e,viewportOffset:t=0}){const i=fe(e);let n=i,r=null;for(;n;){let s;s=he(n==i?e:r),oe(s,()=>ue(e,n));const o=ue(e,n);if(se(n,o,t),n.parent!=n){if(r=n.frameElement,n=n.parent,!r)return}else n=null}}function se(e,t,i){const n=t.clone().moveBy(0,i),r=t.clone().moveBy(0,-i),s=new te(e).excludeScrollbarsAndBorders();if(![r,n].every(e=>s.contains(e))){let{scrollX:o,scrollY:a}=e;ce(r,s)?a-=s.top-t.top+i:ae(n,s)&&(a+=t.bottom-s.bottom+i),le(t,s)?o-=s.left-t.left+i:de(t,s)&&(o+=t.right-s.right+i),e.scrollTo(o,a)}}function oe(e,t){const i=fe(e);let n,r;for(;e!=i.document.body;)r=t(),n=new te(e).excludeScrollbarsAndBorders(),n.contains(r)||(ce(r,n)?e.scrollTop-=n.top-r.top:ae(r,n)&&(e.scrollTop+=r.bottom-n.bottom),le(r,n)?e.scrollLeft-=n.left-r.left:de(r,n)&&(e.scrollLeft+=r.right-n.right)),e=e.parentNode}function ae(e,t){return e.bottom>t.bottom}function ce(e,t){return e.top<t.top}function le(e,t){return e.left<t.left}function de(e,t){return e.right>t.right}function fe(e){return L(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function he(e){if(L(e)){let t=e.commonAncestorContainer;return K(t)&&(t=t.parentNode),t}return e.parentNode}function ue(e,t){const i=fe(e),n=new te(e);if(i===t)return n;{let e=i;for(;e!=t;){const t=e.frameElement,i=new te(t).excludeScrollbarsAndBorders();n.moveBy(i.left,i.top),e=e.parent}}return n}Object.assign({},{scrollViewportToShowTarget:re,scrollAncestorsToShowTarget:function(e){oe(he(e),()=>new te(e))}});var pe=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},me=function(){return f.Date.now()},ge=/\s/;var ke=function(e){for(var t=e.length;t--&&ge.test(e.charAt(t)););return t},we=/^\s+/;var be=function(e){return e?e.slice(0,ke(e)+1).replace(we,""):e},_e=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,xe=/^0o[0-7]+$/i,ye=parseInt;var Te=function(e){if("number"==typeof e)return e;if(R(e))return NaN;if(pe(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=pe(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=be(e);var i=ve.test(e);return i||xe.test(e)?ye(e.slice(2),i?2:8):_e.test(e)?NaN:+e},Re=Math.max,Ve=Math.min;var Ce=function(e,t,i){var n,r,s,o,a,c,l=0,d=!1,f=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function u(t){var i=n,s=r;return n=r=void 0,l=t,o=e.apply(s,i)}function p(e){return l=e,a=setTimeout(g,t),d?u(e):o}function m(e){var i=e-c;return void 0===c||i>=t||i<0||f&&e-l>=s}function g(){var e=me();if(m(e))return k(e);a=setTimeout(g,function(e){var i=t-(e-c);return f?Ve(i,s-(e-l)):i}(e))}function k(e){return a=void 0,h&&n?u(e):(n=r=void 0,o)}function w(){var e=me(),i=m(e);if(n=arguments,r=this,c=e,i){if(void 0===a)return p(c);if(f)return clearTimeout(a),a=setTimeout(g,t),u(c)}return void 0===a&&(a=setTimeout(g,t)),o}return t=Te(t)||0,pe(i)&&(d=!!i.leading,s=(f="maxWait"in i)?Re(Te(i.maxWait)||0,t):s,h="trailing"in i?!!i.trailing:h),w.cancel=function(){void 0!==a&&clearTimeout(a),l=0,n=c=r=a=void 0},w.flush=function(){return void 0===a?o:k(me())},w};i(12);class Ie extends n.Plugin{static get pluginName(){return"FindAndReplaceEditing"}init(){this._activeResults=null,this.state=new $(this.editor.model),this._defineConverters(),this._defineCommands(),this.listenTo(this.state,"change:highlightedResult",(e,t,i,n)=>{const{model:r}=this.editor;r.change(e=>{if(n){const t=n.marker.name.split(":")[1],i=r.markers.get("findResultHighlighted:"+t);i&&e.removeMarker(i)}if(i){const t=i.marker.name.split(":")[1];e.addMarker("findResultHighlighted:"+t,{usingOperation:!1,affectsData:!1,range:i.marker.getRange()})}})});const e=Ce(function(e,t,i){if(i){const e=this.editor.editing.view.domConverter,t=this.editor.editing.mapper.toViewRange(i.marker.getRange());re({target:e.viewRangeToDom(t),viewportOffset:40})}}.bind(this),32);this.listenTo(this.state,"change:highlightedResult",e,{priority:"low"}),this.listenTo(this.editor,"destroy",e.cancel)}find(e){const{editor:t}=this,{model:i}=t,{findCallback:n,results:r}=t.execute("find",e);return this._activeResults=r,this.listenTo(i.document,"change:data",()=>function(e,t,i){const n=new Set,r=new Set;t.document.differ.getChanges().forEach(e=>{"$text"===e.name||t.schema.isInline(e.position.nodeAfter)?(n.add(e.position.parent),[...t.markers.getMarkersAtPosition(e.position)].forEach(e=>{r.add(e.name)})):"insert"===e.type&&n.add(e.position.nodeAfter)}),t.document.differ.getChangedMarkers().forEach(({name:e,data:{newRange:t}})=>{t&&"$graveyard"===t.start.root.rootName&&r.add(e)}),n.forEach(e=>{[...t.markers.getMarkersIntersectingRange(t.createRangeIn(e))].forEach(e=>r.add(e.name))}),t.change(t=>{r.forEach(i=>{e.has(i)&&e.remove(i),t.removeMarker(i)})}),n.forEach(n=>{A(t.createRangeOn(n),t,i,e)})}(this._activeResults,i,n)),this._activeResults}stop(){this._activeResults&&(this.stopListening(this.editor.model.document),this.state.clear(this.editor.model),this._activeResults=null)}_defineCommands(){this.editor.commands.add("find",new M(this.editor,this.state)),this.editor.commands.add("findNext",new W(this.editor,this.state)),this.editor.commands.add("findPrevious",new H(this.editor,this.state)),this.editor.commands.add("replace",new P(this.editor,this.state)),this.editor.commands.add("replaceAll",new D(this.editor,this.state))}_defineConverters(){const{editor:e}=this;e.conversion.for("editingDowncast").markerToHighlight({model:"findResult",view:({markerName:e})=>{const[,t]=e.split(":");return{name:"span",classes:["ck-find-result"],attributes:{"data-find-result":t}}}}),e.conversion.for("editingDowncast").markerToHighlight({model:"findResultHighlighted",view:({markerName:e})=>{const[,t]=e.split(":");return{name:"span",classes:["ck-find-result_selected"],attributes:{"data-find-result":t}}}})}}class Ee extends n.Plugin{static get requires(){return[Ie,c]}static get pluginName(){return"FindAndReplace"}init(){const e=this.editor.plugins.get("FindAndReplaceUI"),t=this.editor.plugins.get("FindAndReplaceEditing"),i=t.state;e.on("findNext",(e,t)=>{t?(i.searchText=t.searchText,this.editor.execute("find",t.searchText,t)):this.editor.execute("findNext")}),e.on("findPrevious",(e,t)=>{t&&i.searchText!==t.searchText?this.editor.execute("find",t.searchText):this.editor.execute("findPrevious")}),e.on("replace",(e,t)=>{i.searchText!==t.searchText&&this.editor.execute("find",t.searchText);const n=i.highlightedResult;n&&this.editor.execute("replace",t.replaceText,n)}),e.on("replaceAll",(e,t)=>{i.searchText!==t.searchText&&this.editor.execute("find",t.searchText),this.editor.execute("replaceAll",t.replaceText,i.results)}),e.on("searchReseted",()=>{i.clear(this.editor.model),t.stop()})}}}]);
@@ -0,0 +1 @@
1
+ !function(t){const e=t.da=t.da||{};e.dictionary=Object.assign(e.dictionary||{},{Find:"","Find and replace":"Søg og erstat","Find in text…":"","Match case":"","Next result":"Næste","Previous result":"Forrige",Replace:"Erstat","Replace all":"Erstatte alle","Replace with…":"","Show options":"","Text to find must not be empty.":"","Tip: Find some text first in order to replace it.":"","Whole words only":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const n=e.de=e.de||{};n.dictionary=Object.assign(n.dictionary||{},{Find:"Suchen","Find and replace":"Suchen und ersetzen","Find in text…":"In Text suchen…","Match case":"Groß-/Kleinschreibung beachten","Next result":"Nächstes Ergebnis","Previous result":"Vorheriges Ergebnis",Replace:"Ersetzen","Replace all":"Alle ersetzen","Replace with…":"Ersetzen durch…","Show options":"Optionen anzeigen","Text to find must not be empty.":"Der Suchtext darf nicht leer sein.","Tip: Find some text first in order to replace it.":"Tipp: Zuerst nach Text suchen um diesen zu ersetzen.","Whole words only":"Nur ganze Wörter"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const t=e.es=e.es||{};t.dictionary=Object.assign(t.dictionary||{},{Find:"Buscar","Find and replace":"Buscar y reemplazar","Find in text…":"","Match case":"","Next result":"Siguiente resultado","Previous result":"Resultado anterior",Replace:"Reemplazar","Replace all":"Reemplazar todo","Replace with…":"","Show options":"Ver opciones","Text to find must not be empty.":"","Tip: Find some text first in order to replace it.":"","Whole words only":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const e=t.gl=t.gl||{};e.dictionary=Object.assign(e.dictionary||{},{Find:"Buscar","Find and replace":"Buscar e substituír","Find in text…":"Buscar no texto…","Match case":"Coincidencia de maiúsculas","Next result":"Seguinte resultado","Previous result":"Resultado anterior",Replace:"Substituír","Replace all":"Substituír todo","Replace with…":"Substituír por…","Show options":"","Text to find must not be empty.":"","Tip: Find some text first in order to replace it.":"","Whole words only":"Só palabras enteiras"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const s=e.hu=e.hu||{};s.dictionary=Object.assign(s.dictionary||{},{Find:"Keresés","Find and replace":"Keresés és csere","Find in text…":"Keresés szövegben...","Match case":"Nagybetű érzékeny","Next result":"Következő találat","Previous result":"Előző találat",Replace:"Csere","Replace all":"Mind cserél","Replace with…":"Csere erre...","Show options":"Beállítások megjelenítése","Text to find must not be empty.":"A keresendő szöveg nem lehet üres.","Tip: Find some text first in order to replace it.":"Tipp: Először keressen egy szöveget, hogy lecserélhesse.","Whole words only":"Csak teljes szavak"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(i){const a=i.id=i.id||{};a.dictionary=Object.assign(a.dictionary||{},{Find:"Cari","Find and replace":"Cari dan ubah","Find in text…":"Cari di dalam teks...","Match case":"Sesuaikan huruf","Next result":"Hasil berikutnya","Previous result":"Hasil sebelumnya",Replace:"Ubah","Replace all":"Ubah semua","Replace with…":"Ubah dengan...","Show options":"Tampilkan opsi","Text to find must not be empty.":"Teks yang dicari tidak boleh kosong.","Tip: Find some text first in order to replace it.":"","Whole words only":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const i=t.it=t.it||{};i.dictionary=Object.assign(i.dictionary||{},{Find:"Trova","Find and replace":"Trova e sostituisci","Find in text…":"Trova nel testo…","Match case":"Distingui maiuscole e minuscole","Next result":"Risultato successivo","Previous result":"Risultato precedente",Replace:"Sostituisci","Replace all":"Sostituisci tutto","Replace with…":"Sostituisci con…","Show options":"Mostra opzioni","Text to find must not be empty.":"Il testo da cercare non può essere vuoto.","Tip: Find some text first in order to replace it.":"Consiglio: trova il testo prima di sostituirlo.","Whole words only":"Solo parole intere"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const n=e.nl=e.nl||{};n.dictionary=Object.assign(n.dictionary||{},{Find:"Zoeken","Find and replace":"Zoeken en vervangen","Find in text…":"Zoeken in tekst","Match case":"Hoofdlettergevoelig","Next result":"Vorige zoeken","Previous result":"Volgende zoeken",Replace:"Vervangen","Replace all":"Alles vervangen","Replace with…":"Vervangen door","Show options":"Opties tonen","Text to find must not be empty.":"Dit veld mag niet leeg zijn","Tip: Find some text first in order to replace it.":"Tip: zoek eerst de tekst om hem te vervangen","Whole words only":"Alleen volledige woorden"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(t){const e=t.no=t.no||{};e.dictionary=Object.assign(e.dictionary||{},{Find:"Søk","Find and replace":"Søk og erstatt","Find in text…":"Søk i tekst","Match case":"","Next result":"Neste resultat","Previous result":"Forrige resultat",Replace:"Erstatt","Replace all":"Erstatt alt","Replace with…":"","Show options":"","Text to find must not be empty.":"","Tip: Find some text first in order to replace it.":"","Whole words only":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const i=e.pl=e.pl||{};i.dictionary=Object.assign(i.dictionary||{},{Find:"Znajdź","Find and replace":"Znajdź i zamień","Find in text…":"Znajdź…","Match case":"Uwzględnij wielkość liter","Next result":"Następny","Previous result":"Poprzedni",Replace:"Zamień","Replace all":"Zamień wszystko","Replace with…":"Zamień na…","Show options":"Pokaż opcje","Text to find must not be empty.":"Szukany tekst nie może być pusty.","Tip: Find some text first in order to replace it.":"Podpowiedź: Znajdź jakiś tekst, aby go zamienić.","Whole words only":"Znajdź tylko całe wyrazy"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(i){const e=i["pt-br"]=i["pt-br"]||{};e.dictionary=Object.assign(e.dictionary||{},{Find:"Pesquisar","Find and replace":"Pesquisar e substituir","Find in text…":"Pesquisar no texto","Match case":"Diferenciar maiúsculas de minúsculas","Next result":"Próxima ocorrência","Previous result":"Ocorrência anterior",Replace:"Substituir","Replace all":"Substituir tudo","Replace with…":"Substituir por...","Show options":"Mostrar opções","Text to find must not be empty.":"Texto a ser pesquisado não pode ser vazio.","Tip: Find some text first in order to replace it.":"Dica: Pesquise por algum texto antes para poder substituí-la.","Whole words only":"Apenas palavras inteiras"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const t=e.ru=e.ru||{};t.dictionary=Object.assign(t.dictionary||{},{Find:"Найти","Find and replace":"Найти и заменить","Find in text…":"Найти в тексте","Match case":"С учетом регистра","Next result":"Следующий результат","Previous result":"Предыдущий результат",Replace:"Заменить","Replace all":"Заменить всё","Replace with…":"Заменить на...","Show options":"","Text to find must not be empty.":"","Tip: Find some text first in order to replace it.":"","Whole words only":"Только слова целиком"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const i=e["sr-latn"]=e["sr-latn"]||{};i.dictionary=Object.assign(i.dictionary||{},{Find:"Pronađji","Find and replace":"Nađji i zameni","Find in text…":"Pronađji u tekstu…","Match case":"Podudaranje slučaj","Next result":"Sledeći rezultat","Previous result":"Prethodni rezultat",Replace:"Zameni","Replace all":"Zameni sve","Replace with…":"Zameni sa…","Show options":"Prikaži opcije","Text to find must not be empty.":"Tekst za pronalaženje ne sme biti prazan.","Tip: Find some text first in order to replace it.":"Savet: Prvo pronađjite neki tekst da biste ga zamenili.","Whole words only":"Samo cele reči"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const t=e.sr=e.sr||{};t.dictionary=Object.assign(t.dictionary||{},{Find:"Пронаћи","Find and replace":"Нађи и замени","Find in text…":"Пронађи у тексту… ","Match case":"Подударање случај ","Next result":"Следећи резултат ","Previous result":"Претходни резултат ",Replace:"Замени","Replace all":"Замени све","Replace with…":"Замени са…","Show options":"Прикажи опције ","Text to find must not be empty.":"Текст за проналажење не сме бити празан.","Tip: Find some text first in order to replace it.":"Савет: Прво пронађите неки текст да бисте га заменили. ","Whole words only":"Само целе речи "})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const t=e["zh-cn"]=e["zh-cn"]||{};t.dictionary=Object.assign(t.dictionary||{},{Find:"查找","Find and replace":"查找和替换","Find in text…":"查找的文本","Match case":"区分大小写","Next result":"下一个匹配项","Previous result":"上一个匹配项",Replace:"替换","Replace all":"全部替换","Replace with…":"替换的文本","Show options":"显示配置","Text to find must not be empty.":"查找的文本不可为空","Tip: Find some text first in order to replace it.":"提示:先查找文本再替换","Whole words only":"单词"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -0,0 +1 @@
1
+ !function(e){const t=e.zh=e.zh||{};t.dictionary=Object.assign(t.dictionary||{},{Find:"尋找","Find and replace":"尋找和取代","Find in text…":"在文本中尋找","Match case":"大小寫需相符","Next result":"後一個結果","Previous result":"前一個結果",Replace:"取代","Replace all":"全部取代","Replace with…":"以…替代","Show options":"顯示設定","Text to find must not be empty.":"不能查找空字串","Tip: Find some text first in order to replace it.":"提示:先查找字串再取代","Whole words only":""})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
@@ -1,5 +1,5 @@
1
1
  {
2
- "Find and replace": "The tooltip of a find and replace button's in the toolbar.",
2
+ "Find and replace": "The tooltip of a find and replace button in the toolbar. Also, the title of the find and replace form.",
3
3
  "Find in text…": "The label for the searched text in the find and replace dropdown.",
4
4
  "Find": "The label for the find action button in the find and replace dropdown.",
5
5
  "Previous result": "The label for the previous result button in the find and replace dropdown.",
@@ -9,5 +9,7 @@
9
9
  "Match case": "The label for the match case checkbox in the find and replace dropdown.",
10
10
  "Whole words only": "The label for the whole words only checkbox in the find and replace dropdown.",
11
11
  "Replace with…": "The label for the text replacement in the find and replace dropdown.",
12
- " of ": "The text between currently highlighted text offset and the count of all matches in the find and replace dropdown."
12
+ "Text to find must not be empty.": "An error text displayed when user attempted to find an empty text.",
13
+ "Tip: Find some text first in order to replace it.": "A message displayed next to the replace field when disabled but user tries to use it.",
14
+ "Show options": "The label and a tooltip of the options dropdown button in the find and replace form."
13
15
  }
@@ -0,0 +1,69 @@
1
+ # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Danish (https://www.transifex.com/ckeditor/teams/11143/da/)\n"
16
+ "Language: da\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+
19
+ msgctxt "The tooltip of a find and replace button in the toolbar. Also, the title of the find and replace form."
20
+ msgid "Find and replace"
21
+ msgstr "Søg og erstat"
22
+
23
+ msgctxt "The label for the searched text in the find and replace dropdown."
24
+ msgid "Find in text…"
25
+ msgstr ""
26
+
27
+ msgctxt "The label for the find action button in the find and replace dropdown."
28
+ msgid "Find"
29
+ msgstr ""
30
+
31
+ msgctxt "The label for the previous result button in the find and replace dropdown."
32
+ msgid "Previous result"
33
+ msgstr "Forrige"
34
+
35
+ msgctxt "The label for the previous result button in the find and replace dropdown."
36
+ msgid "Next result"
37
+ msgstr "Næste"
38
+
39
+ msgctxt "The label for the (single) replace action button in the find and replace dropdown."
40
+ msgid "Replace"
41
+ msgstr "Erstat"
42
+
43
+ msgctxt "The label for the replace all action button in the find and replace dropdown."
44
+ msgid "Replace all"
45
+ msgstr "Erstatte alle"
46
+
47
+ msgctxt "The label for the match case checkbox in the find and replace dropdown."
48
+ msgid "Match case"
49
+ msgstr ""
50
+
51
+ msgctxt "The label for the whole words only checkbox in the find and replace dropdown."
52
+ msgid "Whole words only"
53
+ msgstr ""
54
+
55
+ msgctxt "The label for the text replacement in the find and replace dropdown."
56
+ msgid "Replace with…"
57
+ msgstr ""
58
+
59
+ msgctxt "An error text displayed when user attempted to find an empty text."
60
+ msgid "Text to find must not be empty."
61
+ msgstr ""
62
+
63
+ msgctxt "A message displayed next to the replace field when disabled but user tries to use it."
64
+ msgid "Tip: Find some text first in order to replace it."
65
+ msgstr ""
66
+
67
+ msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
68
+ msgid "Show options"
69
+ msgstr ""
@@ -0,0 +1,69 @@
1
+ # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: German (https://www.transifex.com/ckeditor/teams/11143/de/)\n"
16
+ "Language: de\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+
19
+ msgctxt "The tooltip of a find and replace button in the toolbar. Also, the title of the find and replace form."
20
+ msgid "Find and replace"
21
+ msgstr "Suchen und ersetzen"
22
+
23
+ msgctxt "The label for the searched text in the find and replace dropdown."
24
+ msgid "Find in text…"
25
+ msgstr "In Text suchen…"
26
+
27
+ msgctxt "The label for the find action button in the find and replace dropdown."
28
+ msgid "Find"
29
+ msgstr "Suchen"
30
+
31
+ msgctxt "The label for the previous result button in the find and replace dropdown."
32
+ msgid "Previous result"
33
+ msgstr "Vorheriges Ergebnis"
34
+
35
+ msgctxt "The label for the previous result button in the find and replace dropdown."
36
+ msgid "Next result"
37
+ msgstr "Nächstes Ergebnis"
38
+
39
+ msgctxt "The label for the (single) replace action button in the find and replace dropdown."
40
+ msgid "Replace"
41
+ msgstr "Ersetzen"
42
+
43
+ msgctxt "The label for the replace all action button in the find and replace dropdown."
44
+ msgid "Replace all"
45
+ msgstr "Alle ersetzen"
46
+
47
+ msgctxt "The label for the match case checkbox in the find and replace dropdown."
48
+ msgid "Match case"
49
+ msgstr "Groß-/Kleinschreibung beachten"
50
+
51
+ msgctxt "The label for the whole words only checkbox in the find and replace dropdown."
52
+ msgid "Whole words only"
53
+ msgstr "Nur ganze Wörter"
54
+
55
+ msgctxt "The label for the text replacement in the find and replace dropdown."
56
+ msgid "Replace with…"
57
+ msgstr "Ersetzen durch…"
58
+
59
+ msgctxt "An error text displayed when user attempted to find an empty text."
60
+ msgid "Text to find must not be empty."
61
+ msgstr "Der Suchtext darf nicht leer sein."
62
+
63
+ msgctxt "A message displayed next to the replace field when disabled but user tries to use it."
64
+ msgid "Tip: Find some text first in order to replace it."
65
+ msgstr "Tipp: Zuerst nach Text suchen um diesen zu ersetzen."
66
+
67
+ msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
68
+ msgid "Show options"
69
+ msgstr "Optionen anzeigen"
@@ -16,7 +16,7 @@ msgstr ""
16
16
  "Language-Team: \n"
17
17
  "Plural-Forms: \n"
18
18
 
19
- msgctxt "The tooltip of a find and replace button's in the toolbar."
19
+ msgctxt "The tooltip of a find and replace button in the toolbar. Also, the title of the find and replace form."
20
20
  msgid "Find and replace"
21
21
  msgstr "Find and replace"
22
22
 
@@ -56,6 +56,14 @@ msgctxt "The label for the text replacement in the find and replace dropdown."
56
56
  msgid "Replace with…"
57
57
  msgstr "Replace with…"
58
58
 
59
- msgctxt "The text between currently highlighted text offset and the count of all matches in the find and replace dropdown."
60
- msgid " of "
61
- msgstr " of "
59
+ msgctxt "An error text displayed when user attempted to find an empty text."
60
+ msgid "Text to find must not be empty."
61
+ msgstr "Text to find must not be empty."
62
+
63
+ msgctxt "A message displayed next to the replace field when disabled but user tries to use it."
64
+ msgid "Tip: Find some text first in order to replace it."
65
+ msgstr "Tip: Find some text first in order to replace it."
66
+
67
+ msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
68
+ msgid "Show options"
69
+ msgstr "Show options"
@@ -0,0 +1,69 @@
1
+ # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Spanish (https://www.transifex.com/ckeditor/teams/11143/es/)\n"
16
+ "Language: es\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+
19
+ msgctxt "The tooltip of a find and replace button in the toolbar. Also, the title of the find and replace form."
20
+ msgid "Find and replace"
21
+ msgstr "Buscar y reemplazar"
22
+
23
+ msgctxt "The label for the searched text in the find and replace dropdown."
24
+ msgid "Find in text…"
25
+ msgstr ""
26
+
27
+ msgctxt "The label for the find action button in the find and replace dropdown."
28
+ msgid "Find"
29
+ msgstr "Buscar"
30
+
31
+ msgctxt "The label for the previous result button in the find and replace dropdown."
32
+ msgid "Previous result"
33
+ msgstr "Resultado anterior"
34
+
35
+ msgctxt "The label for the previous result button in the find and replace dropdown."
36
+ msgid "Next result"
37
+ msgstr "Siguiente resultado"
38
+
39
+ msgctxt "The label for the (single) replace action button in the find and replace dropdown."
40
+ msgid "Replace"
41
+ msgstr "Reemplazar"
42
+
43
+ msgctxt "The label for the replace all action button in the find and replace dropdown."
44
+ msgid "Replace all"
45
+ msgstr "Reemplazar todo"
46
+
47
+ msgctxt "The label for the match case checkbox in the find and replace dropdown."
48
+ msgid "Match case"
49
+ msgstr ""
50
+
51
+ msgctxt "The label for the whole words only checkbox in the find and replace dropdown."
52
+ msgid "Whole words only"
53
+ msgstr ""
54
+
55
+ msgctxt "The label for the text replacement in the find and replace dropdown."
56
+ msgid "Replace with…"
57
+ msgstr ""
58
+
59
+ msgctxt "An error text displayed when user attempted to find an empty text."
60
+ msgid "Text to find must not be empty."
61
+ msgstr ""
62
+
63
+ msgctxt "A message displayed next to the replace field when disabled but user tries to use it."
64
+ msgid "Tip: Find some text first in order to replace it."
65
+ msgstr ""
66
+
67
+ msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
68
+ msgid "Show options"
69
+ msgstr "Ver opciones"
@@ -0,0 +1,69 @@
1
+ # Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
2
+ #
3
+ # !!! IMPORTANT !!!
4
+ #
5
+ # Before you edit this file, please keep in mind that contributing to the project
6
+ # translations is possible ONLY via the Transifex online service.
7
+ #
8
+ # To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
9
+ #
10
+ # To learn more, check out the official contributor's guide:
11
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
12
+ #
13
+ msgid ""
14
+ msgstr ""
15
+ "Language-Team: Galician (https://www.transifex.com/ckeditor/teams/11143/gl/)\n"
16
+ "Language: gl\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+
19
+ msgctxt "The tooltip of a find and replace button in the toolbar. Also, the title of the find and replace form."
20
+ msgid "Find and replace"
21
+ msgstr "Buscar e substituír"
22
+
23
+ msgctxt "The label for the searched text in the find and replace dropdown."
24
+ msgid "Find in text…"
25
+ msgstr "Buscar no texto…"
26
+
27
+ msgctxt "The label for the find action button in the find and replace dropdown."
28
+ msgid "Find"
29
+ msgstr "Buscar"
30
+
31
+ msgctxt "The label for the previous result button in the find and replace dropdown."
32
+ msgid "Previous result"
33
+ msgstr "Resultado anterior"
34
+
35
+ msgctxt "The label for the previous result button in the find and replace dropdown."
36
+ msgid "Next result"
37
+ msgstr "Seguinte resultado"
38
+
39
+ msgctxt "The label for the (single) replace action button in the find and replace dropdown."
40
+ msgid "Replace"
41
+ msgstr "Substituír"
42
+
43
+ msgctxt "The label for the replace all action button in the find and replace dropdown."
44
+ msgid "Replace all"
45
+ msgstr "Substituír todo"
46
+
47
+ msgctxt "The label for the match case checkbox in the find and replace dropdown."
48
+ msgid "Match case"
49
+ msgstr "Coincidencia de maiúsculas"
50
+
51
+ msgctxt "The label for the whole words only checkbox in the find and replace dropdown."
52
+ msgid "Whole words only"
53
+ msgstr "Só palabras enteiras"
54
+
55
+ msgctxt "The label for the text replacement in the find and replace dropdown."
56
+ msgid "Replace with…"
57
+ msgstr "Substituír por…"
58
+
59
+ msgctxt "An error text displayed when user attempted to find an empty text."
60
+ msgid "Text to find must not be empty."
61
+ msgstr ""
62
+
63
+ msgctxt "A message displayed next to the replace field when disabled but user tries to use it."
64
+ msgid "Tip: Find some text first in order to replace it."
65
+ msgstr ""
66
+
67
+ msgctxt "The label and a tooltip of the options dropdown button in the find and replace form."
68
+ msgid "Show options"
69
+ msgstr ""