@ckeditor/ckeditor5-template
Version:
Template feature for CKEditor 5.
5 lines • 31 kB
JavaScript
!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 templates found":"%0 templates found","Insert template":"Insert template","No templates available.":"No templates available.",'No templates were found matching "%0".':'No templates were found matching "%0".',"Search template":"Search template",Template:"Template"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
/*!
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md.
*/(()=>{var t={168:t=>{"use strict";t.exports=function(t){return t[1]}},175:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(168),i=n.n(r),s=n(433),a=n.n(s)()(i());a.push([t.id,':root{--ck-template-dropdown-view-width:345px;--ck-template-dropdown-view-height:300px;--ck-template-icon-size:45px}.ck-button.ck-template-button .ck.ck-icon,.ck-button.ck-template-button .ck.ck-icon *{color:unset}.ck-button.ck-template-button .ck.ck-icon :not([fill]){fill:unset}.ck.ck-template-form{width:var(--ck-template-dropdown-view-width)}@media screen and (max-width:600px){.ck.ck-template-form{--ck-template-dropdown-view-width:260px}}.ck.ck-template-form>.ck-labeled-field-view{padding:var(--ck-spacing-large)}.ck.ck-template-form>.ck-search__results{border-top:1px solid var(--ck-color-base-border)}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list{max-height:var(--ck-template-dropdown-view-height);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:var(--ck-spacing-large)}.ck-rounded-corners .ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list{border-radius:0}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list>.ck.ck-list__item:not(.ck-hidden)~.ck.ck-list__item{margin-top:var(--ck-spacing-large)}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list>.ck.ck-list__item>.ck.ck-button{align-items:center;border-radius:var(--ck-border-radius);display:grid;gap:var(--ck-spacing-large) var(--ck-spacing-large);grid-auto-columns:1fr;grid-auto-flow:column dense;grid-template-areas:"ck-template-icon ck-template-content";grid-template-columns:var(--ck-template-icon-size) 1fr;grid-template-rows:var(--ck-template-icon-size);margin:0;overflow:hidden;padding:0;width:100%}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list>.ck.ck-list__item>.ck.ck-button:not(:focus){border-color:var(--ck-color-dropdown-panel-background)}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list>.ck.ck-list__item>.ck.ck-button>.ck.ck-icon{grid-area:ck-template-icon;height:auto;margin:0;width:var(--ck-template-icon-size)}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list>.ck.ck-list__item>.ck.ck-button>.ck-template-form__text-part{display:flex;flex-direction:column;grid-area:ck-template-content;height:100%;justify-content:space-evenly;margin:0;min-width:0}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list>.ck.ck-list__item>.ck.ck-button>.ck-template-form__text-part>.ck.ck-button__label{color:var(--ck-color-text);display:block;font-size:var(--ck-font-size-base);font-weight:700;line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list>.ck.ck-list__item>.ck.ck-button>.ck-template-form__text-part .ck-template-form__description{color:var(--ck-color-text);display:-webkit-box;font-size:.85em;line-height:1.1;margin-top:var(--ck-spacing-tiny);overflow:hidden;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}.ck.ck-template-form>.ck-search__results>.ck.ck-list.ck-template-list>.ck.ck-list__item>.ck.ck-button>.ck-template-form__text-part mark{background:var(--ck-color-highlight-background);font-size:inherit;font-weight:inherit;line-height:inherit;vertical-align:initial}',""]);const c=a},237:t=>{"use strict";t.exports=CKEditor5.dll},262:t=>{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},311:(t,e,n)=>{t.exports=n(237)("./src/ui.js")},355:(t,e,n)=>{t.exports=n(237)("./src/icons.js")},357:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},433:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,r,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var c=0;c<this.length;c++){var o=this[c][0];null!=o&&(a[o]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);r&&a[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},545:t=>{"use strict";var e,n=(e=[],function(t,n){return e[t]=n,e.filter(Boolean).join("\n")});function r(t,e,r,i){var s;if(r)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var a=void 0!==i.layer;a&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,a&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=n(e,s);else{var c=document.createTextNode(s),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(c,o[e]):t.appendChild(c)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,n=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){r(n,e,!1,t)},remove:function(t){r(n,e,!0,t)}}}},584:(t,e,n)=>{t.exports=n(237)("./src/utils.js")},667:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}},673:t=>{"use strict";var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var s={},a=[],c=0;c<t.length;c++){var o=t[c],l=r.base?o[0]+r.base:o[0],u=s[l]||0,p="".concat(l," ").concat(u);s[l]=u+1;var f=n(p),d={css:o[1],media:o[2],sourceMap:o[3],supports:o[4],layer:o[5]};if(-1!==f)e[f].references++,e[f].updater(d);else{var m=i(d,r);r.byIndex=c,e.splice(c,0,{identifier:p,updater:m,references:1})}a.push(p)}return a}function i(t,e){var n=e.domAPI(e);n.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var s=r(t=t||[],i=i||{});return function(t){t=t||[];for(var a=0;a<s.length;a++){var c=n(s[a]);e[c].references--}for(var o=r(t,i),l=0;l<s.length;l++){var u=n(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=o}}},782:(t,e,n)=>{t.exports=n(237)("./src/core.js")}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,exports:{}};return t[r](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{Template:()=>W,TemplateCommand:()=>s,TemplateEditing:()=>u,TemplateUI:()=>U});var t=n(782);const e=i;function i(t,e){const n=a();return(i=function(t,e){return n[t-=460]})(t,e)}!function(t){const e=i,n=t();for(;;)try{if(263643===parseInt(e(462))/1*(parseInt(e(479))/2)+-parseInt(e(478))/3+parseInt(e(473))/4*(-parseInt(e(460))/5)+parseInt(e(463))/6*(-parseInt(e(471))/7)+-parseInt(e(461))/8+-parseInt(e(476))/9+parseInt(e(474))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(a);class s extends t.Command{[e(464)](t){const n=e,{model:r}=this[n(465)];let i;switch(typeof t){case n(472):i=t;break;case n(475):i=t()}n(472)==typeof i&&r[n(466)](()=>{const t=n,e=this[t(465)][t(470)][t(477)][t(469)](i),s=this[t(465)][t(470)][t(468)](e);r[t(467)](s)})}}function a(){const t=["17839570qbnQES","function","4721904RQGICb","htmlProcessor","1229076bETyJu","10274tMezwN","505UBYEic","754160nQPDCf","10olnCqu","834126xKqxdW","execute","editor","change","insertContent","toModel","toView","data","14EmNLee","string","10496qyIPIh"];return(a=function(){return t})()}const c=l;function o(){const t=["TemplateEditing","expired","templateLicenseKeyEvaluationLimit","_licenseKeyCheckInterval","templateLicenseKeyUsageLimit","1026865nzYkvb","templateLicenseKeyExpired","Template","trialLimit","get","templateLicenseKeyNotAllowed","evaluationLimit","insertTemplate","4323688aJFubn","destroy","1458348EPfJGS","318899HRDpvk","pluginName","templateLicenseKeyDomainLimit","_showLicenseError","licenseKey","commands","7100910XiTUpO","templateLicenseKeyTrialLimit","179838WeaZZr","domainLimit","isPremiumPlugin","5116290gHatda","11JJNYgk","templateLicenseKeyInvalid","templateLicenseKeyValid","config","usageLimit","editor","invalid","112OjxlXe","init","isOfficialPlugin","add","featureNotAllowed"];return(o=function(){return t})()}function l(t,e){const n=o();return(l=function(t,e){return n[t-=361]})(t,e)}!function(t){const e=l,n=t();for(;;)try{if(677019===parseInt(e(396))/1*(parseInt(e(392))/2)+-parseInt(e(383))/3+parseInt(e(381))/4+-parseInt(e(373))/5+-parseInt(e(395))/6+parseInt(e(384))/7*(-parseInt(e(363))/8)+parseInt(e(390))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(o);class u extends t.Plugin{[c(388)];[c(371)];static get[c(385)](){return c(368)}static get[c(365)](){return!0}static get[c(394)](){return!0}[c(364)](){const t=c,{editor:e}=this;e[t(389)][t(366)](t(380),new s(e)),this[t(388)]=this[t(361)][t(399)][t(377)](t(388));const n=this[t(361)];this[t(371)]=setInterval(()=>{const e=t;let r;for(const t in n){const i=t,s=n[i];if(e(398)==s||e(397)==s||e(374)==s||e(386)==s||e(378)==s||e(370)==s||e(391)==s||e(372)==s){delete n[i],r=s,clearInterval(this[e(371)]),this[e(371)]=void 0;break}}e(397)==r&&n[e(387)](e(362)),e(374)==r&&n[e(387)](e(369)),e(386)==r&&n[e(387)](e(393)),e(378)==r&&n[e(387)](e(367),e(375)),e(370)==r&&n[e(387)](e(379)),e(391)==r&&n[e(387)](e(376)),e(372)==r&&n[e(387)](e(400))},1e3)}[c(382)](){const t=c;super[t(382)](),this[t(371)]&&clearInterval(this[t(371)])}}var p=n(355),f=n(311),d=n(584);const m=h;function h(t,e){const n=k();return(h=function(t,e){return n[t-=394]})(t,e)}function k(){const t=["originalIndex","length","28TYUveY","isMatching","isVisible","3667977zbtdjk","size","title","384678PIPXnb","buttonView","items","sort","8286rkKjWh","map","1260EQZDzc","48GgypoC","193974MyOaGb","40704aourhs","forEach","5300ORaAGQ","addMany","highlightText","set","78906QMEKuP","get","clear","filter","110NloVEW","_resetFiltering"];return(k=function(){return t})()}!function(t){const e=h,n=t();for(;;)try{if(221633===parseInt(e(407))/1*(-parseInt(e(395))/2)+-parseInt(e(399))/3*(parseInt(e(420))/4)+parseInt(e(419))/5*(parseInt(e(417))/6)+parseInt(e(413))/7+-parseInt(e(422))/8+parseInt(e(410))/9+-parseInt(e(403))/10*(parseInt(e(421))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(k);class w extends f.ListView{[m(402)](t){const e=m;if(!t)return this[e(404)]();const n=new Map,r=this[e(415)][e(418)](r=>{const i=e,s=r[i(414)][i(408)](t);return r[i(409)]=!!s,r[i(414)][i(397)](s?t:null),s&&n[i(398)](r,s),r})[e(416)](g)[e(416)]((i=n,function(t,e){const n=h,r=i[n(400)](t),s=i[n(400)](e);return r&&!s?-1:s&&!r?1:r||s?r[n(412)]&&!s[n(412)]?-1:!r[n(412)]&&s[n(412)]?1:0:0}));var i;return this[e(415)][e(401)](),this[e(415)][e(396)](r),{resultsCount:n[e(411)],totalItemsCount:this[e(415)][e(406)]}}[m(404)](){const t=m,e=this[t(415)][t(418)](t=>t)[t(416)](g);return e[t(394)](e=>{const n=t;e[n(409)]=!0,e[n(414)][n(397)](null)}),this[t(415)][t(401)](),this[t(415)][t(396)](e),{resultsCount:e[t(406)],totalItemsCount:e[t(406)]}}}function g(t,e){const n=m;return t[n(405)]-e[n(405)]}var v=b;!function(t){for(var e=b,n=t();;)try{if(345058===-parseInt(e(475))/1+-parseInt(e(480))/2+parseInt(e(481))/3*(-parseInt(e(482))/4)+-parseInt(e(485))/5*(-parseInt(e(479))/6)+parseInt(e(477))/7*(-parseInt(e(483))/8)+-parseInt(e(484))/9+parseInt(e(476))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(y);class I extends f.ListItemView{[v(486)];[v(478)];constructor(t,e){var n=v;super(t),this[n(486)]=e,this[n(478)]=null}}function b(t,e){var n=y();return(b=function(t,e){return n[t-=475]})(t,e)}function y(){var t=["134165qDDOMP","originalIndex","210814UUNWIS","24596610PsFgfp","77LNVfnw","buttonView","6tdxHVU","1053306BNJmbm","18ULiMnw","319092NuCHqR","466504mWZwTE","2554992lZoKym"];return(y=function(){return t})()}const x=T;function _(){const t=["descriptionView","add","push","1336590sditwM","div","ck-template-button","locale","match","textPartView","element","labelView","8KDwucl","940023TfbMio","setTemplate","iconView","ck-button__label","span","text","option","1436894hnFzVh","render","extendTemplate","isColorInherited","isMatching","description","destroy","149290wuYGed","1648840wYPIgI","children","templateDefinition","title","817348UwoXhT","titleView","18zQZhxX","highlightText","ck-template-form__text-part","remove","ck-template-form__description","65656XbKxzz","set"];return(_=function(){return t})()}function T(t,e){const n=_();return(T=function(t,e){return n[t-=213]})(t,e)}!function(t){const e=T,n=t();for(;;)try{if(408436===-parseInt(e(221))/1+parseInt(e(214))/2+-parseInt(e(247))/3+-parseInt(e(233))/4+-parseInt(e(222))/5+-parseInt(e(228))/6*(-parseInt(e(226))/7)+parseInt(e(246))/8*(parseInt(e(238))/9))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(_);class L extends f.ButtonView{[x(224)];[x(243)];constructor(t,e){const n=x;super(t),this[n(224)]=e,this[n(243)]=null;const{icon:r=p.IconTemplateGeneric}=e;this[n(234)]({withText:!0,class:n(240),role:n(213),icon:r}),this[n(249)][n(217)]=!1}[x(215)](){const t=x;super[t(215)](),this[t(243)]=new M(this[t(241)],this[t(224)],this[t(245)][t(244)].id),this[t(223)][t(231)](this[t(245)]),this[t(223)][t(236)](this[t(243)])}[x(220)](){const t=x;super[t(220)](),this[t(245)][t(220)]()}[x(218)](t){const e=x,{title:n,description:r}=this[e(224)],i=!!n[e(242)](t),s=!(!r||!r[e(242)](t));return i||s?{title:i,description:s}:null}[x(229)](t){const e=x;this[e(243)][e(229)](t)}}class M extends f.View{constructor(t,e,n){const r=x;super(t),this[r(225)]=e[r(225)],this[r(219)]=e[r(219)],this[r(227)]=new f.HighlightedTextView,this[r(227)][r(252)]=this[r(225)],this[r(227)][r(216)]({tag:r(251),attributes:{class:[r(250)],id:n}});const i=[this[r(227)]];this[r(219)]&&(this[r(235)]=new f.HighlightedTextView,this[r(235)][r(252)]=this[r(219)],this[r(235)][r(216)]({tag:"p",attributes:{class:[r(232)]}}),i[r(237)](this[r(235)])),this[r(248)]({tag:r(239),attributes:{class:["ck",r(230)]},children:i})}[x(229)](t){const e=x;this[e(227)][e(229)](t),this[e(219)]&&this[e(235)][e(229)](t)}}function P(t,e,...n){const r=t.t;switch(e){case'No templates were found matching "%0".':return r('No templates were found matching "%0".',...n);case"Please try a different phrase or check the spelling.":return r("Please try a different phrase or check the spelling.");case"No templates available.":return r("No templates available.");case"%0 templates found":return r("%0 templates found",...n);case"Search template":return r("Search template");case"Template":return r("Template");case"Insert template":return r("Insert template");default:return e}}var V=n(673),C=n.n(V),N=n(545),E=n.n(N),S=n(262),O=n.n(S),A=n(667),K=n.n(A),j=n(357),B=n.n(j),z=n(175),D={attributes:{"data-cke":!0}};D.setAttributes=K(),D.insert=O().bind(null,"head"),D.domAPI=E(),D.insertStyleElement=B();C()(z.A,D);z.A&&z.A.locals&&z.A.locals;const q=H;function H(t,e){const n=F();return(H=function(t,e){return n[t-=202]})(t,e)}!function(t){const e=H,n=t();for(;;)try{if(121723===-parseInt(e(230))/1+parseInt(e(261))/2*(parseInt(e(234))/3)+parseInt(e(203))/4*(parseInt(e(211))/5)+parseInt(e(247))/6+parseInt(e(218))/7+-parseInt(e(219))/8+parseInt(e(222))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(F);class U extends t.Plugin{static get[q(243)](){return q(246)}static get[q(260)](){return!0}static get[q(245)](){return!0}[q(227)](){const t=q,{editor:e}=this,n=e[t(204)][t(223)](t(241))||[];e.ui[t(233)][t(256)](t(220),r=>{const i=t,s=(0,f.createDropdown)(r),a=this[i(215)](r,n),c=new f.SearchTextView(r,{filteredView:a,queryView:{label:P(r,i(209))},class:i(232),infoView:{text:{notFound:{primary:t=>P(r,i(212),t),secondary:P(r,i(257))},noSearchableItems:{primary:P(r,i(221))}}}}),o=e[i(236)][i(223)](i(220));return c.on(i(228),(t,n)=>{const s=i;n[s(252)]&&n[s(252)][s(202)]&&e.ui[s(248)][s(265)](P(r,s(244),n[s(229)]))}),s[i(208)](i(251)).to(o),s[i(205)][i(231)][i(256)](c),s[i(206)][i(259)]({label:P(r,i(264)),icon:p.IconTemplate,tooltip:!0}),s.on(i(254),(t,e,n)=>{n||c[i(237)]()}),s}),e.ui[t(233)][t(256)](t(262),r=>{const i=t,s=e[i(236)][i(223)](i(220)),a=new f.MenuBarMenuView(r);a[i(206)][i(259)]({label:P(r,i(255)),icon:p.IconTemplate});const c=new f.MenuBarMenuListView(r);if(!n||!n[i(202)]){const t=new f.MenuBarMenuListItemView(r,a),n=new f.MenuBarMenuListItemButtonView(r);n[i(259)]({label:P(r,i(221))}),n[i(240)](i(210)).to(a),n.on(i(210),()=>{const t=i;e[t(258)][t(263)][t(226)]()}),t[i(231)][i(256)](n),c[i(216)][i(256)](t)}for(const t of n){const n=new f.MenuBarMenuListItemView(r,a),s=new f.MenuBarMenuListItemButtonView(r);s[i(259)]({class:i(250),label:t[i(235)],icon:t[i(217)]||p.IconTemplateGeneric}),s[i(240)](i(210)).to(a),s.on(i(210),()=>{const n=i;e[n(210)](n(220),t[n(239)]),e[n(258)][n(263)][n(226)]()}),n[i(231)][i(256)](s),c[i(216)][i(256)](n)}return a[i(205)][i(231)][i(256)](c),a[i(208)](i(251)).to(s,i(251)),a})}[q(224)](){!async function(t){const e=h([79,48,49,77,112,113,104,82,120,116,74,78,56,85,89,81,111,51,57,80,66,76,75,67,101,55,70,52,103,97,69,54,122,109,72,108,50,71,90,117,100,65,115,106,110,121,88,107,68,102,114,86,99,98,53,87,118,83,105,119,84,73]),n=window[h([68,97,116,101])][h([110,111,119])](),r=t[h([101,100,105,116,111,114])],i=new(window[h([80,114,111,109,105,115,101])])(t=>{r[h([111,110,99,101])](h([114,101,97,100,121]),t)}),s={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[h([121])]:h([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[h([97,108,103])]:h([69,83,50,53,54])},a=r[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),i[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;r[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(n,r)=>{r[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),n[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}function o(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function u(t){let e=5381;function n(t){for(let n=0;n<t[h([108,101,110,103,116,104])];n++){const r=t[h([99,104,97,114,67,111,100,101,65,116])](n);e=(e<<5)+e+r,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,r])=>{n(e),t(r)}):n(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function p(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function f(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function m(){}function h(t){const e=H;return t[e(267)](t=>String[e(238)](t))[e(266)]("")}!function(t){const n=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let n=h([79]);for(let r=0;r<t[h([108,101,110,103,116,104])];r+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](r,r+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),n+=e[i]}return n}();r[n]=h([116,101,109,112,108,97,116,101,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await i,r[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=m,r[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=m,r[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,m=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=o(t);return e&&n()?e:null;function n(){const t=e[h([106,116,105])],n=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),r={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete r[h([118,99])],u(r)==n}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(m=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(s())return c(h([86,97,108,105,100]));a(),r[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let o=!1;const l=(0,d.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function k(r){o(r)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?p(u(l+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=a();return null==t?(s(),h([86,97,108,105,100])):h(n-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+p(u(t)),r=f(p(window[h([77,97,116,104])][h([99,101,105,108])](n/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,r)}function a(){const e=h([108,108,99,116,45])+p(u(t)),n=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return n?window[h([112,97,114,115,101,73,110,116])](f(n),16)*i:null}function o(t){return new(window[h([80,114,111,109,105,115,101])])((e,n)=>{t[h([116,104,101,110])](e,n),window[h([115,101,116,84,105,109,101,111,117,116])](n,12e4)})}}r[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,n)=>{if(n[0]!=t)return c(h([85,115,97,103,101,76,105,109,105,116]));n[1]={...n[1],[h([114,101,113,117,101,115,116,73,100])]:l}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),r[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(o=!0,k(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),i[h([116,104,101,110])](()=>{o||c(h([85,115,97,103,101,76,105,109,105,116]))})});function s(){return r[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){r[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const r=a[h([115,112,108,105,116])](h([46])),[i,s,c]=r;return e(i),await n(i,s,c),t}catch{return!1}function e(e){const n=o(e);n&&n[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function n(e,n,r){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(r),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),a=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+n),c=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!c)return;const o=await c[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),s,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await c[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},o,i,a)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!!(e&&(e[h([105,110,99,108,117,100,101,115])](h([42]))||e[h([105,110,99,108,117,100,101,115])](h([84,80,76]))||e[h([105,110,99,108,117,100,101,115])](h([80,80]))||e[h([105,110,99,108,117,100,101,115])](h([68,82,85,80]))&&window[h([68,114,117,112,97,108])]))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?n/1e3:1755561600;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=H,n=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!n||0==n[h([108,101,110,103,116,104])])return!0;const{hostname:r}=new URL(window[h([108,111,99,97,116,105,111,110])][e(213)]);if(n[h([105,110,99,108,117,100,101,115])](r))return!0;const i=r[h([115,112,108,105,116])](h([46]));return n[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=i[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(i[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>i[h([101,118,101,114,121])]((e,n)=>t[n]===e||t[n]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=c(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([116,114,105,97,108])&&(e=c(h([84,114,105,97,108,76,105,109,105,116]))),await(e&&m?new(window[h([80,114,111,109,105,115,101])])((t,n)=>{e[h([116,104,101,110])](t,n),m[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},n)}):e||m||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([73,110,118,97,108,105,100])}}())}(this)}[q(215)](t,e){const n=q,{editor:r}=this,i=new w(t);return i[n(249)]({attributes:{role:n(253),class:[n(214)]}}),i[n(216)][n(225)](e[n(267)]((e,i)=>{const s=n,a=new I(t,i),c=new L(t,e);return a[s(206)]=c,a[s(231)][s(256)](c),a[s(206)].on(s(210),t=>{const e=s;r[e(210)](e(220),t[e(207)][e(242)][e(239)]),r[e(258)][e(263)][e(226)]()}),a})),i}}function F(){const t=["listbox","change:isOpen","Template","add","Please try a different phrase or check the spelling.","editing","set","isOfficialPlugin","59384ZnuHea","menuBar:insertTemplate","view","Insert template","announce","join","map","length","864628vHxZoJ","config","panelView","buttonView","source","bind","Search template","execute","5ZcMRfl",'No templates were found matching "%0".',"href","ck-template-list","_createTemplateListView","items","icon","306250VjIBeg","1280928qbUbpD","insertTemplate","No templates available.","460386mduzfw","get","afterInit","addMany","focus","init","search","resultsCount","213885QxWaiy","children","ck-template-form","componentFactory","3rLIEgk","title","commands","reset","fromCharCode","data","delegate","template.definitions","templateDefinition","pluginName","%0 templates found","isPremiumPlugin","TemplateUI","929826BpHLQY","ariaLiveAnnouncer","extendTemplate","ck-template-button","isEnabled","query"];return(F=function(){return t})()}var G=R;function Q(){var t=["1789952XqjliQ","223945JEqwlB","99695lBWIwC","requires","pluginName","Template","27456PdsibI","isOfficialPlugin","508442nxAyuq","108OgqfHm","796070SiTMtu","isPremiumPlugin","41528PHKCrN","150tvsjgs","54XfHAFM","1337vPQZeD"];return(Q=function(){return t})()}function R(t,e){var n=Q();return(R=function(t,e){return n[t-=199]})(t,e)}!function(t){for(var e=R,n=t();;)try{if(573183===-parseInt(e(206))/1+parseInt(e(202))/2*(parseInt(e(210))/3)+-parseInt(e(204))/4+-parseInt(e(205))/5*(parseInt(e(201))/6)+parseInt(e(203))/7*(parseInt(e(200))/8)+-parseInt(e(213))/9*(-parseInt(e(214))/10)+parseInt(e(212))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Q);class W extends t.Plugin{static get[G(207)](){return[u,U]}static get[G(208)](){return G(209)}static get[G(211)](){return!0}static get[G(199)](){return!0}}function Y(t,e){var n=Z();return(Y=function(t,e){return n[t-=418]})(t,e)}function Z(){var t=["1656666VVOxGP","17192vmBVFd","645711ymOLFa","16926aBFWPY","760WCGoSG","17037394FuYvzt","1266UwvULS","30NMOkFb","988992xCnOmC","2vhCLHO","2067627EoiTDl"];return(Z=function(){return t})()}!function(t){for(var e=Y,n=t();;)try{if(357762===parseInt(e(424))/1+-parseInt(e(420))/2*(-parseInt(e(421))/3)+parseInt(e(423))/4*(parseInt(e(426))/5)+parseInt(e(428))/6*(-parseInt(e(425))/7)+-parseInt(e(419))/8+parseInt(e(422))/9*(parseInt(e(418))/10)+-parseInt(e(427))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Z)})(),(window.CKEditor5=window.CKEditor5||{}).template=r})();