@ckeditor/ckeditor5-template
Version:
Template feature for CKEditor 5.
5 lines • 30.9 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:()=>a});var r=n(168),i=n.n(r),s=n(433),c=n.n(s)()(i());c.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 a=c},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 c={};if(r)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(c[o]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);r&&c[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 c=void 0!==i.layer;c&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,c&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=n(e,s);else{var a=document.createTextNode(s),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(a,o[e]):t.appendChild(a)}}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={},c=[],a=0;a<t.length;a++){var o=t[a],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=a,e.splice(a,0,{identifier:p,updater:m,references:1})}c.push(p)}return c}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 c=0;c<s.length;c++){var a=n(s[c]);e[a].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:()=>Z,TemplateCommand:()=>c,TemplateEditing:()=>u,TemplateUI:()=>H});var t=n(782);const e=i;function i(t,e){const n=s();return(i=function(t,e){return n[t-=145]})(t,e)}function s(){const t=["898236Cokrav","editor","4DWkyLu","5SZsrvW","455791cBzRCK","function","string","insertContent","toModel","execute","360608LyvEDi","42apIzUW","24RexflG","toView","change","11TvSOfV","htmlProcessor","478796mANxJy","21498492cntLgL","data","1599970GutFbP","2089614TcTGzx"];return(s=function(){return t})()}!function(t){const e=i,n=t();for(;;)try{if(570464===parseInt(e(151))/1*(-parseInt(e(165))/2)+-parseInt(e(162))/3+parseInt(e(158))/4*(-parseInt(e(166))/5)+-parseInt(e(152))/6*(-parseInt(e(145))/7)+-parseInt(e(153))/8*(parseInt(e(163))/9)+parseInt(e(161))/10*(parseInt(e(156))/11)+parseInt(e(159))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(s);class c extends t.Command{[e(150)](t){const n=e,{model:r}=this[n(164)];let i;switch(typeof t){case n(147):i=t;break;case n(146):i=t()}n(147)==typeof i&&r[n(155)]((()=>{const t=n,e=this[t(164)][t(160)][t(157)][t(154)](i),s=this[t(164)][t(160)][t(149)](e);r[t(148)](s)}))}}function a(t,e){const n=l();return(a=function(t,e){return n[t-=358]})(t,e)}const o=a;function l(){const t=["TemplateEditing","expired","evaluationLimit","6ceFGvK","templateLicenseKeyInvalid","trialLimit","commands","isOfficialPlugin","206213TSqBYC","templateLicenseKeyUsageLimit","invalid","9810873ADATYh","get","destroy","1012aFtVJQ","152slHiUn","editor","templateLicenseKeyExpired","templateLicenseKeyTrialLimit","4329544ejGUZO","isPremiumPlugin","insertTemplate","templateLicenseKeyEvaluationLimit","_licenseKeyCheckInterval","templateLicenseKeyDomainLimit","init","usageLimit","1575230dMigMw","pluginName","config","926952mrZGAO","4347850efWVsc","Template","templateLicenseKeyNotAllowed","licenseKey","_showLicenseError","featureNotAllowed","add","domainLimit","781afibKF","templateLicenseKeyValid"];return(l=function(){return t})()}!function(t){const e=a,n=t();for(;;)try{if(561285===-parseInt(e(394))/1*(-parseInt(e(369))/2)+-parseInt(e(385))/3+-parseInt(e(374))/4+parseInt(e(386))/5*(parseInt(e(358))/6)+-parseInt(e(363))/7*(parseInt(e(370))/8)+parseInt(e(366))/9+parseInt(e(382))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(l);class u extends t.Plugin{[o(389)];[o(378)];static get[o(383)](){return o(396)}static get[o(362)](){return!0}static get[o(375)](){return!0}[o(380)](){const t=o,{editor:e}=this;e[t(361)][t(392)](t(376),new c(e)),this[t(389)]=this[t(371)][t(384)][t(367)](t(389));const n=this[t(371)];this[t(378)]=setInterval((()=>{const e=t;let r;for(const t in n){const i=t,s=n[i];if(e(395)==s||e(359)==s||e(372)==s||e(379)==s||e(388)==s||e(377)==s||e(373)==s||e(364)==s){delete n[i],r=s,clearInterval(this[e(378)]),this[e(378)]=void 0;break}}e(359)==r&&n[e(390)](e(365)),e(372)==r&&n[e(390)](e(397)),e(379)==r&&n[e(390)](e(393)),e(388)==r&&n[e(390)](e(391),e(387)),e(377)==r&&n[e(390)](e(398)),e(373)==r&&n[e(390)](e(360)),e(364)==r&&n[e(390)](e(381))}),1e3)}[o(368)](){const t=o;super[t(368)](),this[t(378)]&&clearInterval(this[t(378)])}}var p=n(355),f=n(311),d=n(584);const m=h;function h(t,e){const n=g();return(h=function(t,e){return n[t-=365]})(t,e)}!function(t){const e=h,n=t();for(;;)try{if(501497===-parseInt(e(392))/1*(-parseInt(e(373))/2)+-parseInt(e(376))/3+parseInt(e(374))/4*(-parseInt(e(391))/5)+-parseInt(e(388))/6*(-parseInt(e(387))/7)+parseInt(e(377))/8+parseInt(e(371))/9+parseInt(e(369))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(g);class k extends f.ListView{[m(370)](t){const e=m;if(!t)return this[e(385)]();const n=new Map,r=this[e(380)][e(367)]((r=>{const i=e,s=r[i(368)][i(384)](t);return r[i(365)]=!!s,r[i(368)][i(390)](s?t:null),s&&n[i(375)](r,s),r}))[e(372)](w)[e(372)]((i=n,function(t,e){const n=h,r=i[n(383)](t),s=i[n(383)](e);return r&&!s?-1:s&&!r?1:r||s?r[n(386)]&&!s[n(386)]?-1:!r[n(386)]&&s[n(386)]?1:0:0}));var i;return this[e(380)][e(382)](),this[e(380)][e(366)](r),{resultsCount:n[e(379)],totalItemsCount:this[e(380)][e(378)]}}[m(385)](){const t=m,e=this[t(380)][t(367)]((t=>t))[t(372)](w);return e[t(389)]((e=>{const n=t;e[n(365)]=!0,e[n(368)][n(390)](null)})),this[t(380)][t(382)](),this[t(380)][t(366)](e),{resultsCount:e[t(378)],totalItemsCount:e[t(378)]}}}function w(t,e){const n=m;return t[n(381)]-e[n(381)]}function g(){const t=["119318DrIMfB","isVisible","addMany","map","buttonView","5835140pWpiTV","filter","1238067RnGIdT","sort","14eCFkwn","99812qRHnGx","set","2968443aJCJfh","3436280wqvhkK","length","size","items","originalIndex","clear","get","isMatching","_resetFiltering","title","2998807nPPAQw","6QTGDcq","forEach","highlightText","185oEIYEl"];return(g=function(){return t})()}function v(){var t=["24740SpkDVG","13014DQcSaD","147343jejqjq","2022vqNUAM","24Mdaqqo","3531fRJumU","originalIndex","496236GQZDxG","5885xohHwF","65725HDOWTy","171945pmAdub","126zeYqGb","buttonView"];return(v=function(){return t})()}var I=b;function b(t,e){var n=v();return(b=function(t,e){return n[t-=420]})(t,e)}!function(t){for(var e=b,n=t();;)try{if(218811===-parseInt(e(422))/1+-parseInt(e(427))/2*(parseInt(e(424))/3)+parseInt(e(420))/4+parseInt(e(421))/5*(-parseInt(e(429))/6)+-parseInt(e(428))/7+parseInt(e(430))/8*(parseInt(e(423))/9)+parseInt(e(426))/10*(parseInt(e(431))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(v);class y extends f.ListItemView{[I(432)];[I(425)];constructor(t,e){var n=I;super(t),this[n(432)]=e,this[n(425)]=null}}const x=_;function _(t,e){const n=T();return(_=function(t,e){return n[t-=268]})(t,e)}function T(){const t=["2167ZdIHpw","div","ck-template-form__description","14077HCImSm","2777226wOiSdj","push","45310QzCIdZ","option","element","description","7mtpIJg","render","set","705664sWejdc","iconView","ck-template-button","span","locale","remove","labelView","descriptionView","136uwCcvI","2754555KBNWXz","setTemplate","add","text","titleView","title","isMatching","ck-button__label","6830512rcnOFG","textPartView","9wsSBNw","match","extendTemplate","children","ck-template-form__text-part","2221956OrPKqF","destroy","highlightText","templateDefinition","isColorInherited"];return(T=function(){return t})()}!function(t){const e=_,n=t();for(;;)try{if(581989===parseInt(e(301))/1*(-parseInt(e(277))/2)+parseInt(e(293))/3+-parseInt(e(269))/4+parseInt(e(278))/5+-parseInt(e(302))/6*(-parseInt(e(308))/7)+-parseInt(e(286))/8*(-parseInt(e(288))/9)+-parseInt(e(304))/10*(parseInt(e(298))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(T);class L extends f.ButtonView{[x(296)];[x(287)];constructor(t,e){const n=x;super(t),this[n(296)]=e,this[n(287)]=null;const{icon:r=p.IconTemplateGeneric}=e;this[n(268)]({withText:!0,class:n(271),role:n(305),icon:r}),this[n(270)][n(297)]=!1}[x(309)](){const t=x;super[t(309)](),this[t(287)]=new M(this[t(273)],this[t(296)],this[t(275)][t(306)].id),this[t(291)][t(274)](this[t(275)]),this[t(291)][t(280)](this[t(287)])}[x(294)](){const t=x;super[t(294)](),this[t(275)][t(294)]()}[x(284)](t){const e=x,{title:n,description:r}=this[e(296)],i=!!n[e(289)](t),s=!(!r||!r[e(289)](t));return i||s?{title:i,description:s}:null}[x(295)](t){const e=x;this[e(287)][e(295)](t)}}class M extends f.View{constructor(t,e,n){const r=x;super(t),this[r(283)]=e[r(283)],this[r(307)]=e[r(307)],this[r(282)]=new f.HighlightedTextView,this[r(282)][r(281)]=this[r(283)],this[r(282)][r(290)]({tag:r(272),attributes:{class:[r(285)],id:n}});const i=[this[r(282)]];this[r(307)]&&(this[r(276)]=new f.HighlightedTextView,this[r(276)][r(281)]=this[r(307)],this[r(276)][r(290)]({tag:"p",attributes:{class:[r(300)]}}),i[r(303)](this[r(276)])),this[r(279)]({tag:r(299),attributes:{class:["ck",r(292)]},children:i})}[x(295)](t){const e=x;this[e(282)][e(295)](t),this[e(307)]&&this[e(276)][e(295)](t)}}function S(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),P=n(545),N=n.n(P),A=n(262),O=n.n(A),B=n(667),E=n.n(B),j=n(357),D=n.n(j),G=n(175),K={attributes:{"data-cke":!0}};K.setAttributes=E(),K.insert=O().bind(null,"head"),K.domAPI=N(),K.insertStyleElement=D();C()(G.A,K);G.A&&G.A.locals&&G.A.locals;const z=F;function q(){const t=["init","_createTemplateListView","title","config",'No templates were found matching "%0".',"templateDefinition","pluginName","query","change:isOpen","focus","No templates available.","Please try a different phrase or check the spelling.","join","addMany","href","icon","Search template","extendTemplate","search","editing","add","data","6126309ftOfQO","isOfficialPlugin","ck-template-list","template.definitions","ck-template-button","items","view","buttonView","112DSenzw","TemplateUI","source","get","children","%0 templates found","componentFactory","announce","execute","Insert template","2346444NxvPEB","155788Tgihar","set","ariaLiveAnnouncer","4370382AMooBG","menuBar:insertTemplate","commands","afterInit","listbox","36919840AXQjMg","reset","1441278ubCBke","fromCharCode","resultsCount","delegate","Template","insertTemplate","bind","ck-template-form","length","isEnabled","panelView","isPremiumPlugin","102985IGOWTW","map"];return(q=function(){return t})()}function F(t,e){const n=q();return(F=function(t,e){return n[t-=445]})(t,e)}!function(t){const e=F,n=t();for(;;)try{if(625244===-parseInt(e(458))/1+-parseInt(e(457))/2+-parseInt(e(468))/3+-parseInt(e(447))/4*(parseInt(e(480))/5)+-parseInt(e(461))/6+-parseInt(e(504))/7+parseInt(e(466))/8)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(q);class H extends t.Plugin{static get[z(488)](){return z(448)}static get[z(505)](){return!0}static get[z(479)](){return!0}[z(482)](){const t=z,{editor:e}=this,n=e[t(485)][t(450)](t(507))||[];e.ui[t(453)][t(502)](t(473),(r=>{const i=t,s=(0,f.createDropdown)(r),c=this[i(483)](r,n),a=new f.SearchTextView(r,{filteredView:c,queryView:{label:S(r,i(498))},class:i(475),infoView:{text:{notFound:{primary:t=>S(r,i(486),t),secondary:S(r,i(493))},noSearchableItems:{primary:S(r,i(492))}}}}),o=e[i(463)][i(450)](i(473));return a.on(i(500),((t,n)=>{const s=i;n[s(489)]&&n[s(489)][s(476)]&&e.ui[s(460)][s(454)](S(r,s(452),n[s(470)]))})),s[i(474)](i(477)).to(o),s[i(478)][i(451)][i(502)](a),s[i(446)][i(459)]({label:S(r,i(456)),icon:p.IconTemplate,tooltip:!0}),s.on(i(490),((t,e,n)=>{n||a[i(467)]()})),s})),e.ui[t(453)][t(502)](t(462),(r=>{const i=t,s=e[i(463)][i(450)](i(473)),c=new f.MenuBarMenuView(r);c[i(446)][i(459)]({label:S(r,i(472)),icon:p.IconTemplate});const a=new f.MenuBarMenuListView(r);if(!n||!n[i(476)]){const t=new f.MenuBarMenuListItemView(r,c),n=new f.MenuBarMenuListItemButtonView(r);n[i(459)]({label:S(r,i(492))}),n[i(471)](i(455)).to(c),n.on(i(455),(()=>{const t=i;e[t(501)][t(445)][t(491)]()})),t[i(451)][i(502)](n),a[i(509)][i(502)](t)}for(const t of n){const n=new f.MenuBarMenuListItemView(r,c),s=new f.MenuBarMenuListItemButtonView(r);s[i(459)]({class:i(508),label:t[i(484)],icon:t[i(497)]||p.IconTemplateGeneric}),s[i(471)](i(455)).to(c),s.on(i(455),(()=>{const n=i;e[n(455)](n(473),t[n(503)]),e[n(501)][n(445)][n(491)]()})),n[i(451)][i(502)](s),a[i(509)][i(502)](n)}return c[i(478)][i(451)][i(502)](a),c[i(474)](i(477)).to(s,i(477)),c}))}[z(464)](){!async function(t){const e=h([116,81,53,76,52,83,70,80,111,119,82,57,103,87,98,84,122,114,68,77,90,79,115,55,109,51,110,56,112,102,104,88,107,100,117,67,65,86,71,120,108,66,50,113,75,78,48,85,99,54,118,74,89,121,106,72,69,105,49,101,97,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])},c=r[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function a(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=F;return t[e(481)]((t=>String[e(469)](t)))[e(494)]("")}!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([116]);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 c==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=c[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])])((a=>{if(s())return a(h([86,97,108,105,100]));c(),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=c();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])](a)[h([99,97,116,99,104])]((()=>{a(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 c(){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 a(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||a(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 c(){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=c[h([115,112,108,105,116])](h([46])),[i,s,a]=r;return e(i),await n(i,s,a),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))),c=(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),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const o=await a[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 a[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,c)||(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:1748995200;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=F,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(496)]);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([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=a(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=a(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)}[z(483)](t,e){const n=z,{editor:r}=this,i=new k(t);return i[n(499)]({attributes:{role:n(465),class:[n(506)]}}),i[n(509)][n(495)](e[n(481)](((e,i)=>{const s=n,c=new y(t,i),a=new L(t,e);return c[s(446)]=a,c[s(451)][s(502)](a),c[s(446)].on(s(455),(t=>{const e=s;r[e(455)](e(473),t[e(449)][e(487)][e(503)]),r[e(501)][e(445)][e(491)]()})),c}))),i}}var Q=U;function U(t,e){var n=W();return(U=function(t,e){return n[t-=498]})(t,e)}function W(){var t=["43530AiiThm","98035kJqfQX","Template","1396980tYHTBB","isPremiumPlugin","42BYhxMG","isOfficialPlugin","pluginName","632dBVpJN","25111150QLsNGD","4812156DgSmPW","1748622Nzqqpi","156969PyMcNj","requires","57ciyZsQ"];return(W=function(){return t})()}!function(t){for(var e=U,n=t();;)try{if(908855===parseInt(e(501))/1*(parseInt(e(502))/2)+-parseInt(e(498))/3+parseInt(e(512))/4+parseInt(e(505))/5+-parseInt(e(507))/6*(parseInt(e(503))/7)+-parseInt(e(510))/8*(-parseInt(e(499))/9)+-parseInt(e(511))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(W);class Z extends t.Plugin{static get[Q(500)](){return[u,H]}static get[Q(509)](){return Q(504)}static get[Q(508)](){return!0}static get[Q(506)](){return!0}}function R(t,e){var n=J();return(R=function(t,e){return n[t-=357]})(t,e)}function J(){var t=["20ZxTCnU","6101613cvmLTf","5354860UkaPZo","393414SWEQps","8815472uPQbBF","7457010mAihYp","3231205uUOyDO","10PzZEjm","441240aalHGz","8ZchCHF"];return(J=function(){return t})()}!function(t){for(var e=R,n=t();;)try{if(947295===-parseInt(e(358))/1*(parseInt(e(364))/2)+parseInt(e(363))/3*(parseInt(e(365))/4)+-parseInt(e(361))/5+parseInt(e(360))/6+parseInt(e(357))/7+parseInt(e(359))/8+parseInt(e(366))/9*(-parseInt(e(362))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(J)})(),(window.CKEditor5=window.CKEditor5||{}).template=r})();