@ckeditor/ckeditor5-export-inline-styles 0.0.1 → 45.0.0-alpha.1

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+ Changelog
2
+ =========
3
+
4
+ All changes in the package are documented in https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md.
package/LICENSE.md CHANGED
@@ -1,18 +1,22 @@
1
1
  Software License Agreement
2
2
  ==========================
3
3
 
4
- **CKEditor 5 export inline-styles feature** https://github.com/ckeditor/ckeditor5-export-inline-styles <br>
4
+ **CKEditor&nbsp;5 Export with inline styles feature** (https://ckeditor.com/ckeditor-5/)<br>
5
5
  Copyright (c) 2003–2025, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
6
6
 
7
- CKEditor 5 export inline-styles feature is licensed under a commercial license and is protected by copyright law.
7
+ CKEditor&nbsp;5 Export with inline styles feature is licensed under a commercial license and is protected by copyright law.
8
8
  For more information, see: [https://ckeditor.com/pricing](https://ckeditor.com/pricing).
9
9
 
10
- Sources of Intellectual Property Included in CKEditor
11
- -----------------------------------------------------
10
+ Sources of Intellectual Property Included in CKEditor&nbsp;5 Export with inline styles feature
11
+ ----------------------------------------------------------------------------------
12
12
 
13
- Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
13
+ Where not otherwise indicated, all CKEditor&nbsp;5 Export with inline styles feature content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
14
+
15
+ The following libraries are included in CKEditor&nbsp;5 Export Inline Styles feature under the [MIT license](https://opensource.org/licenses/MIT):
16
+
17
+ * specificity - Copyright (c) 2016 Keegan Street and others.
14
18
 
15
19
  Trademarks
16
20
  ----------
17
21
 
18
- **CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com). All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders.
22
+ **CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders.
package/README.md CHANGED
@@ -1,4 +1,47 @@
1
- CKEditor 5 export inline-styles
2
- ===============================
1
+ CKEditor&nbsp;5 Export with Inline Styles
2
+ =====================================
3
3
 
4
- This is an initial package for development purposes. It does not contain code yet.
4
+ [![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-export-inline-styles.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-export-inline-styles)
5
+
6
+ This package contains an Export with Inline Styles feature for CKEditor&nbsp;5. It allows you to export editor content with all formatting preserved as inline styles, making it easier to use in environments where external style sheets are unavailable.
7
+
8
+ When enabled, this feature adds utility functions to the editor instance that allow the export of the editor content with inline styles. You can use the exported content in environments where external style sheets are unavailable, such as email clients, or when you want to preserve the formatting after pasting it into a different editor.
9
+
10
+ This is a premium feature. Sign up for a [free non-commitment 14-day trial](https://portal.ckeditor.com/checkout?plan=free), or see: [https://ckeditor.com/pricing](https://ckeditor.com/pricing) for more information.
11
+
12
+ ## Installation
13
+
14
+ This plugin is part of the `ckeditor5-premium-features` package. Install the whole package to use it.
15
+
16
+ ```bash
17
+ npm install ckeditor5-premium-features
18
+ ```
19
+
20
+ ## Create free account
21
+
22
+ If you want to check full CKEditor&nbsp;5 capabilities, sign up for a [free non-commitment 14-day trial](https://portal.ckeditor.com/checkout?plan=free).
23
+
24
+ ## Demo
25
+
26
+ Check out the [demo in the Export with inline styles feature](https://ckeditor.com/docs/ckeditor5/latest/features/html/export-inline-styles.html) guide.
27
+
28
+ ## Documentation
29
+
30
+ See the [`@ckeditor/ckeditor5-export-inline-styles` package](https://ckeditor.com/docs/ckeditor5/latest/api/export-inline-styles.html) page in [CKEditor&nbsp;5 documentation](https://ckeditor.com/docs/ckeditor5/latest/) as well as the [Export with Inline Styles](https://ckeditor.com/docs/ckeditor5/latest/features/html/export-inline-styles.html) feature guide.
31
+
32
+ ## Getting support
33
+
34
+ CKEditor&nbsp;5 Export with Inline Styles feature comes with outstanding support from a dedicated team of customer care specialists, QA engineers and CKEditor&nbsp;5 developers. The team will gladly assist you in all aspects from setting up your account to integrating CKEditor&nbsp;5 Export with Inline Styles feature with your application.
35
+
36
+ As a licensed CKEditor&nbsp;5 Export with Inline Styles feature user you can report bugs and request features directly through the CKEditor Ecosystem customer dashboard.
37
+
38
+ ## License
39
+
40
+ **CKEditor&nbsp;5 Export with Inline Styles feature** (https://ckeditor.com/ckeditor-5/)<br>
41
+ Copyright (c) 2003–2025, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
42
+
43
+ CKEditor&nbsp;5 Export with Inline Styles feature is licensed under a commercial license and is protected by copyright law. For more information, see: [https://ckeditor.com/pricing](https://ckeditor.com/pricing).
44
+
45
+ ### Trademarks
46
+
47
+ **CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders.
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md.
4
+ */(()=>{var t={237:t=>{"use strict";t.exports=CKEditor5.dll},584:(t,n,e)=>{t.exports=e(237)("./src/utils.js")},782:(t,n,e)=>{t.exports=e(237)("./src/core.js")},783:(t,n,e)=>{t.exports=e(237)("./src/engine.js")}},n={};function e(r){var s=n[r];if(void 0!==s)return s.exports;var i=n[r]={exports:{}};return t[r](i,i.exports,e),i.exports}e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";e.r(r),e.d(r,{ExportInlineStyles:()=>j,ExportInlineStylesCommand:()=>E,ExportInlineStylesEditing:()=>P,dropImportantStyleSuffix:()=>f});var t=e(782),n=e(584),s=function(t){var n,e,r,s,o=[];for(r=0,s=(n=t.split(",")).length;r<s;r+=1)(e=n[r]).length>0&&o.push(i(e));return o},i=function(t){var n,e,r=t,s={a:0,b:0,c:0},i=[];return n=function(n,e){var o,c,a,l,u,f;if(n.test(r))for(c=0,a=(o=r.match(n)).length;c<a;c+=1)s[e]+=1,l=o[c],u=r.indexOf(l),f=l.length,i.push({selector:t.substr(u,f),type:e,index:u,length:f}),r=r.replace(l,Array(f+1).join(" "))},e=function(t){var n,e,s,i;if(t.test(r))for(e=0,s=(n=r.match(t)).length;e<s;e+=1)i=n[e],r=r.replace(i,Array(i.length+1).join("A"))},e(/\\[0-9A-Fa-f]{6}\s?/g),e(/\\[0-9A-Fa-f]{1,5}\s/g),e(/\\./g),function(){var t,n,e,s,i=/{[^]*/gm;if(i.test(r))for(n=0,e=(t=r.match(i)).length;n<e;n+=1)s=t[n],r=r.replace(s,Array(s.length+1).join(" "))}(),n(/(\[[^\]]+\])/g,"b"),n(/(#[^\#\s\+>~\.\[:\)]+)/g,"a"),n(/(\.[^\s\+>~\.\[:\)]+)/g,"b"),n(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,"c"),n(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,"b"),n(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,"b"),r=(r=(r=(r=(r=(r=r.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).replace(/:not/g," ")).replace(/:local/g," ")).replace(/:global/g," ")).replace(/[\(\)]/g," "),n(/([^\s\+>~\.\[:]+)/g,"c"),i.sort((function(t,n){return t.index-n.index})),{selector:t,specificity:"0,"+s.a.toString()+","+s.b.toString()+","+s.c.toString(),specificityArray:[0,s.a,s.b,s.c],parts:i}},o=e(783);function c(){const t=["193780EOVNVq","filter","push","endsWith","replace","8UOLfoV","length","169583oCnQPp","trim","2642088ZeTMaF","3474558Lqcmsl","30BpIajs","611862mlhslA","6005083gLAzKH","slice","12KAImcb","653370veKsOs"];return(c=function(){return t})()}function a(t){const n=l,e=[];let r="",s=0;for(;s<t[n(261)];){const i=t[s];if("("===i){const e=u(t,s+1);if(-1===e)return[];r+=t[n(252)](s,e+1),s=e+1}else","!==i||r[n(258)]("\\")?(r+=i,s++):(e[n(257)](r[n(246)]()),r="",s++)}return r[n(246)]()&&e[n(257)](r[n(246)]()),e[n(256)](Boolean)}function l(t,n){const e=c();return(l=function(t,n){return e[t-=246]})(t,n)}function u(t,n){const e=l;let r=1;for(let s=n;s<t[e(261)];s++){const n=t[s];if("("===n)r++;else if(")"===n&&(r--,0===r))return s}return-1}function f(t){const n=l;return t[n(259)](/!\s*important/i,"")[n(246)]()}function p(t){const n=d,e=new Map;for(const{stylesMap:r,flatSelector:s}of t){if(n(123)!==s)continue;const t=h(e[n(130)][n(114)](e),r);for(const[r,s]of t)e[n(119)](r,s)}return e}function h(t,n){const e=d,r=new Map,s=n=>r[e(120)](n)?r[e(130)](n):t(n);for(const[t,i]of n[e(133)]())if(i&&t[e(125)]("--")){const o=y(s,i);r[e(119)](t,o),n[e(117)](t)}for(const[t,r]of n[e(133)]())if(r){const i=y(s,r);n[e(119)](t,i)}return r}function y(t,n){return function(t,n){const e=d;let r="",s=0;for(;s<t[e(129)];){const i=t[e(122)](e(131),s);if(-1===i){r+=t[e(113)](s);break}r+=t[e(113)](s,i);const o=i+4,c=u(t,o);r+=n(t[e(126)](o,c)),s=c+1}return r}(n,(n=>{const e=d,[r,s]=a(n),i=t(r);return void 0!==i?i:s?y(t,s):e(131)+r+")"}))}function d(t,n){const e=I();return(d=function(t,n){return e[t-=112]})(t,n)}function I(){const t=["indexOf",":root","10651704JdPsnP","startsWith","substring","2kdFCIl","1220996uJbHRP","length","get","var(","2006949WvgoyJ","getStylesEntries","5IOONNs","slice","bind","1805372nySTag","4177899xElAxy","remove","306306oYhmhi","set","has","4945213JykWkM"];return(I=function(){return t})()}function g(t,n){const e=S();return(g=function(t,n){return e[t-=117]})(t,n)}async function w(t){const e=g,r=[await(0,n.collectStylesheets)(t[e(142)]),t[e(123)]][e(125)]((t=>t&&t[e(129)]))[e(118)]("\n"),c=await async function(t,n){const r=e,c=new CSSStyleSheet;return await c[r(117)](n),m(Array[r(143)](c[r(139)])[r(125)]((t=>t instanceof CSSStyleRule)))[r(130)]((({selectorText:n,contentCssText:e})=>{const i=r,c=a(n),l=new o.StylesMap(t)[i(136)](e);return c[i(140)]((t=>({stylesMap:l,flatSelector:t,specificity:s(t)[0][i(133)]})))}))[r(135)](((t,n)=>function(t,n){var e,r,s;if("string"==typeof t){if(-1!==t.indexOf(","))throw"Invalid CSS selector";e=i(t).specificityArray}else{if(!Array.isArray(t))throw"Invalid CSS selector or specificity array";if(4!==t.filter((function(t){return"number"==typeof t})).length)throw"Invalid specificity array";e=t}if("string"==typeof n){if(-1!==n.indexOf(","))throw"Invalid CSS selector";r=i(n).specificityArray}else{if(!Array.isArray(n))throw"Invalid CSS selector or specificity array";if(4!==n.filter((function(t){return"number"==typeof t})).length)throw"Invalid specificity array";r=n}for(s=0;s<4;s+=1){if(e[s]<r[s])return-1;if(e[s]>r[s])return 1}return 0}(t[r(138)],n[r(138)])))}(t[e(120)],r);return{parsedCssRules:c,rootCssVariables:p(c)}}function m(t,n=""){const e=g;return t[e(130)]((t=>{const r=e,{selectorText:s,cssText:i,cssRules:o}=t;if(!s)return[];const c=s[r(117)](/&/g,n);let a=i[r(117)](s,"")[r(119)]()[r(117)](/^{|}$/g,"");if(!o||!o[r(129)])return[{selectorText:c,contentCssText:a}];for(const t of o)a=a[r(117)](t[r(132)],"")[r(119)]();return[{selectorText:c,contentCssText:a},...m(Array[r(143)](o),c)]}))}function S(){const t=["156620LpKnwc","stylesheets","from","replace","join","trim","stylesProcessor","870814EVKHNp","972435fISuFT","inlineCss","6silEgY","filter","48bNvURN","501900kgbpZZ","8DqEExp","length","flatMap","3541643HJPkgA","cssText","specificityArray","680022CtFcgd","sort","setTo","10188pReynJ","specificity","cssRules","map"];return(S=function(){return t})()}function b(t,n){const e=v,r=new o.StylesMap(t);for(const s of n){let n=null;if(n=e(221)==typeof s?new o.StylesMap(t)[e(239)](s):s,n)for(const[t,s]of n[e(223)]())r[e(236)](t,s)}return r}function v(t,n){const e=x();return(v=function(t,n){return e[t-=218]})(t,n)}function x(){const t=["3088508OdQbRf","stylesProcessor","map","392152yjKotT","string","parsedCssRules","getStylesEntries","453840WgvkSN","style","1302912VMmNer","matches","fallbackCSSVariablesLookup","element","2209140GcftTD","stylesMap","getAttribute","flatSelector","filter","222402XWMYHA","set","119QLDFsd","839355wShmVK","setTo"];return(x=function(){return t})()}function C(){const t=["504sJidhf","class","getStylesEntries","data","locale","style","firstChild","74367BHRYRO","getRoot","finally","stylesProcessor","appendChild","has","then","103548fOKGYp","removeAttribute","size","1016hPQZHL","_processElementTree","_getRootDataHTMLFragment","EDITOR_STYLES","createDocumentFragment","isBusy","transformations","bind","div","config","viewToDom","getAttribute","map","editor","ck-content","setAttribute","945057nYnXjl","2158660nrNkXO","get","htmlProcessor","4RhMTUQ","1368426XOKiil","refresh","affectsData","toView","_stylesProcessor","main","ownerDocument","document","isEnabled","getHtml","11227TkBrRT","6489600dToswa","set","exportInlineStyles","pending","execute","domConverter","value","htmlWriter","children","join","_collectAndApplyStyles"];return(C=function(){return t})()}!function(t){const n=l,e=t();for(;;)try{if(752289===-parseInt(n(262))/1+parseInt(n(247))/2+-parseInt(n(253))/3*(parseInt(n(255))/4)+parseInt(n(249))/5*(-parseInt(n(250))/6)+parseInt(n(251))/7+-parseInt(n(260))/8*(parseInt(n(248))/9)+-parseInt(n(254))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(c),function(t){const n=d,e=t();for(;;)try{if(716560===parseInt(n(128))/1+parseInt(n(127))/2*(parseInt(n(132))/3)+-parseInt(n(115))/4*(-parseInt(n(112))/5)+-parseInt(n(118))/6+-parseInt(n(121))/7+-parseInt(n(124))/8+parseInt(n(116))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(I),function(t){const n=g,e=t();for(;;)try{if(464071===-parseInt(n(141))/1+parseInt(n(121))/2+parseInt(n(137))/3*(-parseInt(n(128))/4)+parseInt(n(122))/5+-parseInt(n(124))/6*(parseInt(n(131))/7)+parseInt(n(126))/8*(parseInt(n(134))/9)+parseInt(n(127))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(S),function(t){const n=v,e=t();for(;;)try{if(431571===-parseInt(n(238))/1+parseInt(n(220))/2+parseInt(n(226))/3+parseInt(n(240))/4+parseInt(n(230))/5+parseInt(n(235))/6*(-parseInt(n(237))/7)+parseInt(n(224))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(x);const L=A;function A(t,n){const e=C();return(A=function(t,n){return e[t-=211]})(t,n)}!function(t){const n=A,e=t();for(;;)try{if(893446===-parseInt(n(247))/1+-parseInt(n(237))/2+-parseInt(n(232))/3*(-parseInt(n(236))/4)+parseInt(n(233))/5+parseInt(n(213))/6*(parseInt(n(259))/7)+-parseInt(n(216))/8*(parseInt(n(266))/9)+parseInt(n(248))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(C);class E extends t.Command{[L(241)];constructor(t){const n=L;super(t),this[n(249)](n(221),!1),this[n(241)]=this[n(229)][n(262)][n(269)],(0,o.addMarginRules)(this[n(241)]),(0,o.addPaddingRules)(this[n(241)]),this[n(239)]=!1}[L(238)](){const t=L;this[t(245)]=!this[t(221)],this[t(254)]=this[t(221)]?t(251):void 0}async[L(252)](t){const e=L,r=this[e(229)][e(225)][e(234)](e(250)),{contentLanguageDirection:s}=this[e(229)][e(263)],{rootName:i=e(242),dataControllerDowncastOptions:o={},transformations:c=r[e(222)]||[]}=t||{};this[e(221)]=!0,this[e(238)]();const a=this[e(218)](i,o),l=(0,n.createElement)(a[e(243)],e(224),{dir:s,class:e(230)},[a]);return this[e(258)](c,l)[e(212)]((()=>{const t=e,n=function(t){const n=A,e=t[n(243)][n(220)]();for(;t[n(265)];)e[n(270)](t[n(265)]);return e}(l),r=l[t(227)](t(264));if(r)for(const e of n[t(256)]){const n=e[t(227)](t(264)),s=b(this[t(241)],[r,n]);e[t(231)](t(264),T(s))}return this[t(229)][t(262)][t(235)][t(255)][t(246)](n)}))[e(268)]((()=>{const t=e;this[t(221)]=!1,this[t(238)]()}))}[L(218)](t,n){const e=L,{data:r,model:s}=this[e(229)],i=s[e(244)][e(267)](t),o=r[e(240)](i,n);return r[e(235)][e(253)][e(226)](o)}async[L(258)](t,n){const e=L,{stylesheets:r,inlineCss:s,stripCssClasses:i}=this[e(229)][e(225)][e(234)](e(250)),{parsedCssRules:o,rootCssVariables:c}=await w({stylesheets:r||[e(219)],stylesProcessor:this[e(241)],inlineCss:s});this[e(217)]({transformations:t,parsedCssRules:o,element:n,stripCssClasses:i,parentCSSVariablesLookup:c[e(234)][e(223)](c)})}[L(217)]({element:t,parsedCssRules:n,parentCSSVariablesLookup:e,stripCssClasses:r,transformations:s}){const i=L,{stylesMap:o,localCSSVariables:c}=function(t){const n=v,e=t[n(229)][n(232)](n(225))||"",r=t[n(222)][n(234)]((e=>t[n(229)][n(227)](e[n(233)])))[n(219)]((t=>t[n(231)])),s=b(t[n(218)],[...r,e]);return{localCSSVariables:h(t[n(228)],s),stylesMap:s}}({stylesProcessor:this[i(241)],fallbackCSSVariablesLookup:e,parsedCssRules:n,element:t});for(const n of s)n(t,o);o[i(215)]?t[i(231)](i(264),T(o)):t[i(214)](i(264));const a=t=>c[i(211)](t)?c[i(234)](t):e(t);for(const e of t[i(256)])e instanceof HTMLElement&&this[i(217)]({element:e,parentCSSVariablesLookup:a,parsedCssRules:n,stripCssClasses:r,transformations:s});r&&t[i(214)](i(260))}}function T(t){const n=L;return t[n(261)]()[n(228)]((t=>t[n(257)](":")))[n(257)](";")+";"}function k(t,n){const e=R();return(k=function(t,n){return e[t-=321]})(t,n)}const O=k;function R(){const t=["afterInit","commands","add","map","join","pluginName","79084EfxRWt","fromCharCode","config","href","422892FLyFUp","exportInlineStyles","3724560JQrNLZ","168jPgkKv","3882417DgNnNM","73204LGWLnD","7OiIvoo","isOfficialPlugin","5490786YBLLav","1298358EemZHc","stop","editor","define","init","ExportInlineStylesEditing","isPremiumPlugin"];return(R=function(){return t})()}!function(t){const n=k,e=t();for(;;)try{if(458241===-parseInt(n(338))/1*(parseInt(n(337))/2)+parseInt(n(341))/3+parseInt(n(328))/4+parseInt(n(334))/5+-parseInt(n(340))/6+-parseInt(n(336))/7+parseInt(n(335))/8*(parseInt(n(332))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(R);class P extends t.Plugin{static get[O(327)](){return O(346)}static get[O(339)](){return!0}static get[O(321)](){return!0}[O(345)](){const t=O;this[t(343)][t(330)][t(344)](t(333),{}),this[t(343)][t(323)][t(324)](t(333),new E(this[t(343)]))}[O(322)](){!async function(t){const e=d([54,106,86,113,55,80,97,99,78,53,73,74,72,122,121,50,71,77,119,48,87,85,111,100,75,49,67,56,88,103,101,107,79,70,115,51,117,82,83,116,114,90,65,108,69,76,110,102,57,105,84,98,118,81,66,52,68,120,89,109,112,104]),r=window[d([68,97,116,101])][d([110,111,119])](),s=t[d([101,100,105,116,111,114])],i=new(window[d([80,114,111,109,105,115,101])])((t=>{s[d([111,110,99,101])](d([114,101,97,100,121]),t)})),o={[d([107,116,121])]:d([69,67]),[d([117,115,101])]:d([115,105,103]),[d([99,114,118])]:d([80,45,50,53,54]),[d([120])]:d([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]),[d([121])]:d([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]),[d([97,108,103])]:d([69,83,50,53,54])},c=s[d([99,111,110,102,105,103])][d([103,101,116])](d([108,105,99,101,110,115,101,75,101,121]));function a(t){const n=[new(window[d([80,114,111,109,105,115,101])])((t=>setTimeout(t,605900))),i[d([116,104,101,110])]((()=>new(window[d([80,114,111,109,105,115,101])])((t=>{let n=0;s[d([109,111,100,101,108])][d([111,110])](d([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((e,r)=>{r[0][d([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&n++,504==n&&(t(),e[d([111,102,102])]())}))}))))];return window[d([80,114,111,109,105,115,101])][d([114,97,99,101])](n)[d([116,104,101,110])]((()=>t))}function l(t){return t[d([115,116,97,114,116,115,87,105,116,104])](d([101,121]))?JSON[d([112,97,114,115,101])](u(t)):null}function u(t){return window[d([97,116,111,98])](t[d([114,101,112,108,97,99,101])](/-/g,d([43]))[d([114,101,112,108,97,99,101])](/_/g,d([47])))}function f(t){let n=5381;function e(t){for(let e=0;e<t[d([108,101,110,103,116,104])];e++){const r=t[d([99,104,97,114,67,111,100,101,65,116])](e);n=(n<<5)+n+r,n&=n}}return function t(n){Array[d([105,115,65,114,114,97,121])](n)?n[d([102,111,114,69,97,99,104])](t):n&&typeof n==d([111,98,106,101,99,116])?Object[d([101,110,116,114,105,101,115])](n)[d([115,111,114,116])]()[d([102,111,114,69,97,99,104])]((([n,r])=>{e(n),t(r)})):e(window[d([83,116,114,105,110,103])](n))}(t),n>>>0}function p(t){return t[d([116,111,83,116,114,105,110,103])](16)[d([112,97,100,83,116,97,114,116])](8,d([48]))}function h(t){return t[d([115,112,108,105,116])]("")[d([114,101,118,101,114,115,101])]()[d([106,111,105,110])]("")}function y(){}function d(t){const n=k;return t[n(325)]((t=>String[n(329)](t)))[n(326)]("")}!function(t){const n=function(){const t=window[d([83,116,114,105,110,103])](window[d([112,101,114,102,111,114,109,97,110,99,101])][d([110,111,119])]())[d([114,101,112,108,97,99,101])](d([46]),"");let n=d([106]);for(let r=0;r<t[d([108,101,110,103,116,104])];r+=2){let s=window[d([112,97,114,115,101,73,110,116])](t[d([115,117,98,115,116,114,105,110,103])](r,r+2));s>=e[d([108,101,110,103,116,104])]&&(s-=e[d([108,101,110,103,116,104])]),n+=e[s]}return n}();s[n]=d([101,120,112,111,114,116,73,110,108,105,110,101,83,116,121,108,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=d([86,97,108,105,100])&&async function(){const t=k;await i;const n=s[t(323)][d([103,101,116])](d([101,120,112,111,114,116,73,110,108,105,110,101,83,116,121,108,101,115]));n&&n[d([111,110])](d([101,120,101,99,117,116,101]),(n=>{n[t(342)]()}),{priority:d([104,105,103,104,101,115,116])}),s[d([109,111,100,101,108])][d([99,104,97,110,103,101])]=y,s[d([109,111,100,101,108])][d([101,110,113,117,101,117,101,67,104,97,110,103,101])]=y,s[d([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](d([109,111,100,101,108]))}()}(await async function(){let t,e=null,y=null;try{return c==d([71,80,76])?d([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=c[d([115,112,108,105,116])](d([46]));return 3!=t[d([108,101,110,103,116,104])]?null:n(t[1]);function n(t){const n=l(t);return n&&e()?n:null;function e(){const t=n[d([106,116,105])],e=window[d([112,97,114,115,101,73,110,116])](t[d([115,117,98,115,116,114,105,110,103])](t[d([108,101,110,103,116,104])]-8),16),r={...n,[d([106,116,105])]:t[d([115,117,98,115,116,114,105,110,103])](0,t[d([108,101,110,103,116,104])]-8)};return delete r[d([118,99])],f(r)==e}}}(),t?(t[d([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(y=function(t,e){return new(window[d([80,114,111,109,105,115,101])])((a=>{if(o())return a(d([86,97,108,105,100]));c(),s[d([100,101,99,111,114,97,116,101])](d([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,n.uid)();function y(t){return!!t&&(typeof t===d([111,98,106,101,99,116])||typeof t===d([102,117,110,99,116,105,111,110]))&&typeof t[d([116,104,101,110])]===d([102,117,110,99,116,105,111,110])&&typeof t[d([99,97,116,99,104])]===d([102,117,110,99,116,105,111,110])}function I(n){c(n)[d([116,104,101,110])]((t=>t&&t[d([115,116,97,116,117,115])]==d([111,107])?p(f(u+e))!=t[d([118,101,114,105,102,105,99,97,116,105,111,110])]?d([85,115,97,103,101,76,105,109,105,116]):d([86,97,108,105,100]):d([85,115,97,103,101,76,105,109,105,116])))[d([116,104,101,110])]((t=>(i(),t)),(()=>{const t=o();return null==t?(i(),d([86,97,108,105,100])):d(r-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])}))[d([116,104,101,110])](a)[d([99,97,116,99,104])]((()=>{a(d([85,115,97,103,101,76,105,109,105,116]))}));const s=36e5;function i(){const n=d([108,108,99,116,45])+p(f(t)),e=h(p(window[d([77,97,116,104])][d([99,101,105,108])](r/s)));window[d([108,111,99,97,108,83,116,111,114,97,103,101])][d([115,101,116,73,116,101,109])](n,e)}function o(){const n=d([108,108,99,116,45])+p(f(t)),e=window[d([108,111,99,97,108,83,116,111,114,97,103,101])][d([103,101,116,73,116,101,109])](n);return e?window[d([112,97,114,115,101,73,110,116])](h(e),16)*s:null}function c(t){return new(window[d([80,114,111,109,105,115,101])])(((n,e)=>{t[d([116,104,101,110])](n,e),window[d([115,101,116,84,105,109,101,111,117,116])](e,12e4)}))}}s[d([111,110])](d([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),((n,e)=>{if(e[0]!=t)return a(d([85,115,97,103,101,76,105,109,105,116]));e[1]={...e[1],[d([114,101,113,117,101,115,116,73,100])]:u}}),{[d([112,114,105,111,114,105,116,121])]:d([104,105,103,104])}),s[d([111,110])](d([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(t=>{y(t[d([114,101,116,117,114,110])])&&(l=!0,I(t[d([114,101,116,117,114,110])]))}),{[d([112,114,105,111,114,105,116,121])]:d([108,111,119])}),i[d([116,104,101,110])]((()=>{l||a(d([85,115,97,103,101,76,105,109,105,116]))}))}));function o(){return s[d([101,100,105,116,105,110,103])][d([118,105,101,119])][d([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==d([97,117,116,111])}function c(){s[d([101,100,105,116,105,110,103])][d([118,105,101,119])][d([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=d([97,117,116,111])}}(t[d([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[d([106,116,105])])),await async function(){let t=!0;try{const r=c[d([115,112,108,105,116])](d([46])),[s,i,o]=r;return n(s),await e(s,i,o),t}catch(t){return!1}function n(n){const e=l(n);e&&e[d([97,108,103])]==d([69,83,50,53,54])||(t=!1)}async function e(n,e,r){const s=window[d([85,105,110,116,56,65,114,114,97,121])][d([102,114,111,109])](u(r),(t=>t[d([99,104,97,114,67,111,100,101,65,116])](0))),i=(new(window[d([84,101,120,116,69,110,99,111,100,101,114])]))[d([101,110,99,111,100,101])](n+d([46])+e),c=window[d([99,114,121,112,116,111])][d([115,117,98,116,108,101])];if(!c)return;const a=await c[d([105,109,112,111,114,116,75,101,121])](d([106,119,107]),o,{[d([110,97,109,101])]:d([69,67,68,83,65]),[d([110,97,109,101,100,67,117,114,118,101])]:d([80,45,50,53,54])},!1,[d([118,101,114,105,102,121])]);await c[d([118,101,114,105,102,121])]({[d([110,97,109,101])]:d([69,67,68,83,65]),[d([104,97,115,104])]:{[d([110,97,109,101])]:d([83,72,65,45,50,53,54])}},a,s,i)||(t=!1)}}()?function(){const n=t[d([102,101,97,116,117,114,101,115])];return!(!n||!n[d([105,110,99,108,117,100,101,115])](d([42]))&&!n[d([105,110,99,108,117,100,101,115])](d([69,73,83])))}()?function(){const n=[d([101,118,97,108,117,97,116,105,111,110]),d([116,114,105,97,108])][d([105,110,99,108,117,100,101,115])](t[d([108,105,99,101,110,115,101,84,121,112,101])])?r/1e3:1743033600;return t[d([101,120,112])]<n}()?d([69,120,112,105,114,101,100]):function(){const n=k,e=t[d([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[d([108,101,110,103,116,104])])return!0;const{hostname:r}=new URL(window[d([108,111,99,97,116,105,111,110])][n(331)]);if(e[d([105,110,99,108,117,100,101,115])](r))return!0;const s=r[d([115,112,108,105,116])](d([46]));return e[d([102,105,108,116,101,114])]((t=>t[d([105,110,99,108,117,100,101,115])](d([42]))))[d([109,97,112])]((t=>t[d([115,112,108,105,116])](d([46]))))[d([115,111,109,101])]((t=>s[d([101,118,101,114,121])](((n,e)=>t[e]===n||t[e]===d([42])))))}()?(t[d([108,105,99,101,110,115,101,84,121,112,101])]==d([101,118,97,108,117,97,116,105,111,110])&&(e=a(d([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[d([108,105,99,101,110,115,101,84,121,112,101])]==d([116,114,105,97,108])&&(e=a(d([84,114,105,97,108,76,105,109,105,116]))),await(e&&y?new(window[d([80,114,111,109,105,115,101])])(((t,n)=>{e[d([116,104,101,110])](t,n),y[d([116,104,101,110])]((n=>{n!=d([86,97,108,105,100])&&t(n)}),n)})):e||y||d([86,97,108,105,100]))):d([68,111,109,97,105,110,76,105,109,105,116]):d([78,111,116,65,108,108,111,119,101,100]):d([73,110,118,97,108,105,100])):d([73,110,118,97,108,105,100]))}catch(t){return d([73,110,118,97,108,105,100])}}())}(this)}}const K=N;function M(){const t=["_showLicenseError","evaluationLimit","editor","destroy","833083AYuWsG","exportInlineStylesLicenseKeyEvaluationLimit","isOfficialPlugin","expired","config","licenseKey","trialLimit","invalid","exportInlineStylesLicenseKeyInvalid","usageLimit","exportInlineStylesLicenseKeyDomainLimit","init","featureNotAllowed","3612SBHTbO","domainLimit","get","requires","isPremiumPlugin","1834488ZvllnR","exportInlineStylesLicenseKeyUsageLimit","exportInlineStylesLicenseKeyTrialLimit","exportInlineStylesLicenseKeyValid","3vgmdlU","483IzxQUi","1560130qzLtGr","pluginName","2555352MbbORJ","7320tUAbBI","exportInlineStylesLicenseKeyExpired","40720HdvNZO","15731400oKUWog","exportInlineStylesLicenseKeyNotAllowed","_licenseKeyCheckInterval","ExportInlineStyles"];return(M=function(){return t})()}function N(t,n){const e=M();return(N=function(t,n){return e[t-=328]})(t,n)}!function(t){const n=N,e=t();for(;;)try{if(454966===parseInt(n(335))/1+-parseInt(n(359))/2*(parseInt(n(357))/3)+parseInt(n(353))/4+parseInt(n(362))/5*(parseInt(n(348))/6)+-parseInt(n(358))/7*(-parseInt(n(364))/8)+parseInt(n(361))/9+-parseInt(n(365))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(M);class j extends t.Plugin{[K(340)];[K(329)];static get[K(360)](){return K(330)}static get[K(337)](){return!0}static get[K(352)](){return!0}static get[K(351)](){return[P]}[K(346)](){const t=K;this[t(340)]=this[t(333)][t(339)][t(350)](t(340));const n=this[t(333)];this[t(329)]=setInterval((()=>{const e=t;let r;for(const t in n){const s=t,i=n[s];if(e(356)==i||e(343)==i||e(363)==i||e(345)==i||e(328)==i||e(336)==i||e(355)==i||e(354)==i){delete n[s],r=i,clearInterval(this[e(329)]),this[e(329)]=void 0;break}}e(343)==r&&n[e(331)](e(342)),e(363)==r&&n[e(331)](e(338)),e(345)==r&&n[e(331)](e(349)),e(328)==r&&n[e(331)](e(347),e(330)),e(336)==r&&n[e(331)](e(332)),e(355)==r&&n[e(331)](e(341)),e(354)==r&&n[e(331)](e(344))}),1e3)}[K(334)](){const t=K;super[t(334)](),this[t(329)]&&clearInterval(this[t(329)])}}function V(){var t=["4033445TYxoWU","6yzaBXC","64004ILxDDY","99192NXWbft","591079atNKbl","27732620jfpSvh","729CVjmEB","3567316bBZqch","6VkJsEF","11vmQiFw","3531381oQUrRS"];return(V=function(){return t})()}function D(t,n){var e=V();return(D=function(t,n){return e[t-=143]})(t,n)}!function(t){for(var n=D,e=t();;)try{if(524237===-parseInt(n(146))/1+-parseInt(n(144))/2*(parseInt(n(150))/3)+-parseInt(n(149))/4+parseInt(n(153))/5*(parseInt(n(143))/6)+-parseInt(n(152))/7+parseInt(n(145))/8*(-parseInt(n(148))/9)+parseInt(n(147))/10*(parseInt(n(151))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(V)})(),(window.CKEditor5=window.CKEditor5||{}).exportInlineStyles=r})();
@@ -0,0 +1,11 @@
1
+ {
2
+ "plugins": [
3
+ {
4
+ "name": "Export with Inline Styles",
5
+ "className": "ExportInlineStyles",
6
+ "description": "Introduces tools for generating content with inline styles.",
7
+ "docs": "features/export-inline-styles.html",
8
+ "path": "src/exportinlinestyles.js"
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
package/dist/index.css ADDED
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
package/dist/index.js ADDED
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ import{Command as _0xa08ea,Plugin as _0x1b4d5a}from'@ckeditor/ckeditor5-core/dist/index.js';import{collectStylesheets as _0x3ef3c4,createElement as _0x1295c7,uid as _0x50ba46}from'@ckeditor/ckeditor5-utils/dist/index.js';import{calculate as _0x3ba96a,compare as _0xf9e34e}from'specificity';import{StylesMap as _0x4472d6,addMarginRules as _0x28962b,addPaddingRules as _0x95677c}from'@ckeditor/ckeditor5-engine/dist/index.js';function C(_0x5a183b){const _0x3dd516=[];let _0x133aea='',_0x317807=0x0;for(;_0x317807<_0x5a183b['length'];){const _0x561962=_0x5a183b[_0x317807];if('('===_0x561962){const _0x44ae97=M(_0x5a183b,_0x317807+0x1);if(-0x1===_0x44ae97)return[];_0x133aea+=_0x5a183b['slice'](_0x317807,_0x44ae97+0x1),_0x317807=_0x44ae97+0x1;}else','!==_0x561962||_0x133aea['endsWith']('\x5c')?(_0x133aea+=_0x561962,_0x317807++):(_0x3dd516['push'](_0x133aea['trim']()),_0x133aea='',_0x317807++);}return _0x133aea['trim']()&&_0x3dd516['push'](_0x133aea['trim']()),_0x3dd516['filter'](Boolean);}function M(_0x14b3d3,_0x16539f){let _0x198d66=0x1;for(let _0x30a705=_0x16539f;_0x30a705<_0x14b3d3['length'];_0x30a705++){const _0x24c9d1=_0x14b3d3[_0x30a705];if('('===_0x24c9d1)_0x198d66++;else{if(')'===_0x24c9d1&&(_0x198d66--,0x0===_0x198d66))return _0x30a705;}}return-0x1;}function g(_0xe8f6ea){return _0xe8f6ea['replace'](/!\s*important/i,'')['trim']();}function d(_0x2c90d3,_0x16f22d){const _0x3530b6=new Map(),_0x432590=_0x452097=>_0x3530b6['has'](_0x452097)?_0x3530b6['get'](_0x452097):_0x2c90d3(_0x452097);for(const [_0x577ffb,_0x56472b]of _0x16f22d['getStylesEntries']())if(_0x56472b&&_0x577ffb['startsWith']('--')){const _0x37e0e7=b(_0x432590,_0x56472b);_0x3530b6['set'](_0x577ffb,_0x37e0e7),_0x16f22d['remove'](_0x577ffb);}for(const [_0x2b4089,_0x4c47a6]of _0x16f22d['getStylesEntries']())if(_0x4c47a6){const _0x8ae5ca=b(_0x432590,_0x4c47a6);_0x16f22d['set'](_0x2b4089,_0x8ae5ca);}return _0x3530b6;}function b(_0x4f0d48,_0x3308bc){return function(_0x370ec3,_0x38502f){let _0x485577='',_0x4c8713=0x0;for(;_0x4c8713<_0x370ec3['length'];){const _0x9bac1a=_0x370ec3['indexOf']('var(',_0x4c8713);if(-0x1===_0x9bac1a){_0x485577+=_0x370ec3['slice'](_0x4c8713);break;}_0x485577+=_0x370ec3['slice'](_0x4c8713,_0x9bac1a);const _0x1660fe=_0x9bac1a+0x4,_0xa53354=M(_0x370ec3,_0x1660fe);_0x485577+=_0x38502f(_0x370ec3['substring'](_0x1660fe,_0xa53354)),_0x4c8713=_0xa53354+0x1;}return _0x485577;}(_0x3308bc,_0x3b2c5b=>{const [_0x575ee9,_0x1618dc]=C(_0x3b2c5b),_0x2c86a8=_0x4f0d48(_0x575ee9);return void 0x0!==_0x2c86a8?_0x2c86a8:_0x1618dc?b(_0x4f0d48,_0x1618dc):'var('+_0x575ee9+')';});}async function r(_0x49ca1c){const _0x145c8d=[await _0x3ef3c4(_0x49ca1c['stylesheets']),_0x49ca1c['inlineCss']]['filter'](_0x5e17b9=>_0x5e17b9&&_0x5e17b9['length'])['join']('\x0a'),_0xa8a6f1=await async function(_0x16d28a,_0x234e30){const _0xc45841=new CSSStyleSheet();return await _0xc45841['replace'](_0x234e30),w(Array['from'](_0xc45841['cssRules'])['filter'](_0x53c65c=>_0x53c65c instanceof CSSStyleRule))['flatMap'](({selectorText:_0x578980,contentCssText:_0x2a7522})=>{const _0x1aeb68=C(_0x578980),_0x165e53=new _0x4472d6(_0x16d28a)['setTo'](_0x2a7522);return _0x1aeb68['map'](_0x3cb7fe=>({'stylesMap':_0x165e53,'flatSelector':_0x3cb7fe,'specificity':_0x3ba96a(_0x3cb7fe)[0x0]['specificityArray']}));})['sort']((_0x295005,_0x240f94)=>_0xf9e34e(_0x295005['specificity'],_0x240f94['specificity']));}(_0x49ca1c['stylesProcessor'],_0x145c8d);return{'parsedCssRules':_0xa8a6f1,'rootCssVariables':function(_0x232b82){const _0xe4d8af=new Map();for(const {stylesMap:_0x10f4a8,flatSelector:_0x5c4d69}of _0x232b82){if(':root'!==_0x5c4d69)continue;const _0x34dea1=d(_0xe4d8af['get']['bind'](_0xe4d8af),_0x10f4a8);for(const [_0x2bee4b,_0xdf4e40]of _0x34dea1)_0xe4d8af['set'](_0x2bee4b,_0xdf4e40);}return _0xe4d8af;}(_0xa8a6f1)};}function w(_0x58d4eb,_0x29cba1=''){return _0x58d4eb['flatMap'](_0x3fd626=>{const {selectorText:_0x3de407,cssText:_0x409d6f,cssRules:_0x482fc1}=_0x3fd626;if(!_0x3de407)return[];const _0x51eefe=_0x3de407['replace'](/&/g,_0x29cba1);let _0x18985c=_0x409d6f['replace'](_0x3de407,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x482fc1||!_0x482fc1['length'])return[{'selectorText':_0x51eefe,'contentCssText':_0x18985c}];for(const _0xc127b7 of _0x482fc1)_0x18985c=_0x18985c['replace'](_0xc127b7['cssText'],'')['trim']();return[{'selectorText':_0x51eefe,'contentCssText':_0x18985c},...w(Array['from'](_0x482fc1),_0x51eefe)];});}function a(_0xc74fe,_0x337c0a){const _0x4fe1cb=new _0x4472d6(_0xc74fe);for(const _0x2c0ed5 of _0x337c0a){let _0x3d80fa=null;if(_0x3d80fa='string'==typeof _0x2c0ed5?new _0x4472d6(_0xc74fe)['setTo'](_0x2c0ed5):_0x2c0ed5,_0x3d80fa){for(const [_0x33a879,_0x23959d]of _0x3d80fa['getStylesEntries']())_0x4fe1cb['set'](_0x33a879,_0x23959d);}}return _0x4fe1cb;}class h extends _0xa08ea{['_stylesProcessor'];constructor(_0x392e64){super(_0x392e64),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x28962b(this['_stylesProcessor']),_0x95677c(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x465ac3){const _0x3a4a5d=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x4ba563}=this['editor']['locale'],{rootName:_0xe35b7f='main',dataControllerDowncastOptions:_0x230d7b={},transformations:_0x38fe54=_0x3a4a5d['transformations']||[]}=_0x465ac3||{};this['isBusy']=!0x0,this['refresh']();const _0x13653c=this['_getRootDataHTMLFragment'](_0xe35b7f,_0x230d7b),_0x594f37=_0x1295c7(_0x13653c['ownerDocument'],'div',{'dir':_0x4ba563,'class':'ck-content'},[_0x13653c]);return this['_collectAndApplyStyles'](_0x38fe54,_0x594f37)['then'](()=>{const _0x984791=function(_0x42525a){const _0x3da041=_0x42525a['ownerDocument']['createDocumentFragment']();for(;_0x42525a['firstChild'];)_0x3da041['appendChild'](_0x42525a['firstChild']);return _0x3da041;}(_0x594f37),_0xd84fff=_0x594f37['getAttribute']('style');if(_0xd84fff)for(const _0x5d2076 of _0x984791['children']){const _0x7ca2f7=_0x5d2076['getAttribute']('style'),_0x1c96a5=a(this['_stylesProcessor'],[_0xd84fff,_0x7ca2f7]);_0x5d2076['setAttribute']('style',m(_0x1c96a5));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x984791);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0xcc622b,_0x34b4b9){const {data:_0x2b1328,model:_0x2129dc}=this['editor'],_0x3f8346=_0x2129dc['document']['getRoot'](_0xcc622b),_0x5c53fd=_0x2b1328['toView'](_0x3f8346,_0x34b4b9);return _0x2b1328['htmlProcessor']['domConverter']['viewToDom'](_0x5c53fd);}async['_collectAndApplyStyles'](_0x2c2a34,_0x29edb8){const {stylesheets:_0x5dc221,inlineCss:_0x281a32,stripCssClasses:_0x5171c0}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x4d8008,rootCssVariables:_0x503973}=await r({'stylesheets':_0x5dc221||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x281a32});this['_processElementTree']({'transformations':_0x2c2a34,'parsedCssRules':_0x4d8008,'element':_0x29edb8,'stripCssClasses':_0x5171c0,'parentCSSVariablesLookup':_0x503973['get']['bind'](_0x503973)});}['_processElementTree']({element:_0x2464b9,parsedCssRules:_0x489be3,parentCSSVariablesLookup:_0x362fc1,stripCssClasses:_0x5a90a9,transformations:_0x1c43ef}){const {stylesMap:_0x16d965,localCSSVariables:_0x3738c4}=function(_0x4ba5e2){const _0x46b796=_0x4ba5e2['element']['getAttribute']('style')||'',_0x248d42=_0x4ba5e2['parsedCssRules']['filter'](_0x24393e=>_0x4ba5e2['element']['matches'](_0x24393e['flatSelector']))['map'](_0x36bc7f=>_0x36bc7f['stylesMap']),_0x55f3ce=a(_0x4ba5e2['stylesProcessor'],[..._0x248d42,_0x46b796]);return{'localCSSVariables':d(_0x4ba5e2['fallbackCSSVariablesLookup'],_0x55f3ce),'stylesMap':_0x55f3ce};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x362fc1,'parsedCssRules':_0x489be3,'element':_0x2464b9});for(const _0x1ba9e3 of _0x1c43ef)_0x1ba9e3(_0x2464b9,_0x16d965);_0x16d965['size']?_0x2464b9['setAttribute']('style',m(_0x16d965)):_0x2464b9['removeAttribute']('style');const _0x16b3c2=_0x302490=>_0x3738c4['has'](_0x302490)?_0x3738c4['get'](_0x302490):_0x362fc1(_0x302490);for(const _0x57e20a of _0x2464b9['children'])_0x57e20a instanceof HTMLElement&&this['_processElementTree']({'element':_0x57e20a,'parentCSSVariablesLookup':_0x16b3c2,'parsedCssRules':_0x489be3,'stripCssClasses':_0x5a90a9,'transformations':_0x1c43ef});_0x5a90a9&&_0x2464b9['removeAttribute']('class');}}function m(_0x10ed8c){return _0x10ed8c['getStylesEntries']()['map'](_0x5c923c=>_0x5c923c['join'](':'))['join'](';')+';';}class i extends _0x1b4d5a{static get['pluginName'](){return'ExportInlineStylesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['editor']['config']['define']('exportInlineStyles',{}),this['editor']['commands']['add']('exportInlineStyles',new h(this['editor']));}['afterInit'](){!async function(_0xa28164){const _0x559996=_0x216ade([0x36,0x6a,0x56,0x71,0x37,0x50,0x61,0x63,0x4e,0x35,0x49,0x4a,0x48,0x7a,0x79,0x32,0x47,0x4d,0x77,0x30,0x57,0x55,0x6f,0x64,0x4b,0x31,0x43,0x38,0x58,0x67,0x65,0x6b,0x4f,0x46,0x73,0x33,0x75,0x52,0x53,0x74,0x72,0x5a,0x41,0x6c,0x45,0x4c,0x6e,0x66,0x39,0x69,0x54,0x62,0x76,0x51,0x42,0x34,0x44,0x78,0x59,0x6d,0x70,0x68]),_0x4e7941=0x37a48630,_0x2c3035=0x37a3e560^_0x4e7941,_0x54c736=window[_0x216ade([0x44,0x61,0x74,0x65])][_0x216ade([0x6e,0x6f,0x77])](),_0x487adf=_0xa28164[_0x216ade([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x25189d=new window[(_0x216ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x253125=>{_0x487adf[_0x216ade([0x6f,0x6e,0x63,0x65])](_0x216ade([0x72,0x65,0x61,0x64,0x79]),_0x253125);}),_0x3c1bc9={[_0x216ade([0x6b,0x74,0x79])]:_0x216ade([0x45,0x43]),[_0x216ade([0x75,0x73,0x65])]:_0x216ade([0x73,0x69,0x67]),[_0x216ade([0x63,0x72,0x76])]:_0x216ade([0x50,0x2d,0x32,0x35,0x36]),[_0x216ade([0x78])]:_0x216ade([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x216ade([0x79])]:_0x216ade([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x216ade([0x61,0x6c,0x67])]:_0x216ade([0x45,0x53,0x32,0x35,0x36])},_0x469562=_0x487adf[_0x216ade([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x216ade([0x67,0x65,0x74])](_0x216ade([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e2af8(){let _0x4e073c,_0x4f0fbb=null,_0x248f5b=null;try{if(_0x469562==_0x216ade([0x47,0x50,0x4c]))return _0x216ade([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4e073c=_0x2afaca(),!_0x4e073c)return _0x216ade([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4e073c[_0x216ade([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x248f5b=_0x142f34(_0x4e073c[_0x216ade([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4e073c[_0x216ade([0x6a,0x74,0x69])])),await _0x309e1d()?_0x3c3a2c()?_0x492dd5()?_0x216ade([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x333bf1()?(_0x4e073c[_0x216ade([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x216ade([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f0fbb=_0x2cc079(_0x216ade([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4e073c[_0x216ade([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x216ade([0x74,0x72,0x69,0x61,0x6c])&&(_0x4f0fbb=_0x2cc079(_0x216ade([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x26d8dd()):_0x216ade([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x216ade([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x216ade([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x57a140){return _0x216ade([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x492dd5(){const _0x3926ab=[_0x216ade([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x216ade([0x74,0x72,0x69,0x61,0x6c])][_0x216ade([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e073c[_0x216ade([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x54c736/0x3e8:0xe10*_0x2c3035;return _0x4e073c[_0x216ade([0x65,0x78,0x70])]<_0x3926ab;}function _0x3c3a2c(){const _0x4466b7=_0x4e073c[_0x216ade([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4466b7&&(!!_0x4466b7[_0x216ade([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x216ade([0x2a]))||!!_0x4466b7[_0x216ade([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x216ade([0x45,0x49,0x53])));}function _0x333bf1(){const _0x3fad84=_0x4e073c[_0x216ade([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3fad84||0x0==_0x3fad84[_0x216ade([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x412c52}=new URL(window[_0x216ade([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3fad84[_0x216ade([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x412c52))return!0x0;const _0x58bfbe=_0x412c52[_0x216ade([0x73,0x70,0x6c,0x69,0x74])](_0x216ade([0x2e]));return _0x3fad84[_0x216ade([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32efa0=>_0x32efa0[_0x216ade([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x216ade([0x2a])))[_0x216ade([0x6d,0x61,0x70])](_0x4bf56c=>_0x4bf56c[_0x216ade([0x73,0x70,0x6c,0x69,0x74])](_0x216ade([0x2e])))[_0x216ade([0x73,0x6f,0x6d,0x65])](_0x3955db=>_0x58bfbe[_0x216ade([0x65,0x76,0x65,0x72,0x79])]((_0x57b191,_0x1b35a3)=>_0x3955db[_0x1b35a3]===_0x57b191||_0x3955db[_0x1b35a3]===_0x216ade([0x2a])));}function _0x26d8dd(){return _0x4f0fbb&&_0x248f5b?new window[(_0x216ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x110787,_0x658a67)=>{_0x4f0fbb[_0x216ade([0x74,0x68,0x65,0x6e])](_0x110787,_0x658a67),_0x248f5b[_0x216ade([0x74,0x68,0x65,0x6e])](_0x4072b3=>{_0x4072b3!=_0x216ade([0x56,0x61,0x6c,0x69,0x64])&&_0x110787(_0x4072b3);},_0x658a67);}):_0x4f0fbb||_0x248f5b||_0x216ade([0x56,0x61,0x6c,0x69,0x64]);}}function _0x142f34(_0x2dea99,_0x170151){return new window[(_0x216ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fa8d0=>{if(_0x201bd7())return _0x4fa8d0(_0x216ade([0x56,0x61,0x6c,0x69,0x64]));_0x59c28c(),_0x487adf[_0x216ade([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x216ade([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x34c08b=!0x1;const _0x45f2c6=_0x50ba46();function _0x4868e9(_0x2a891f){return!!_0x2a891f&&(typeof _0x2a891f===_0x216ade([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a891f===_0x216ade([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a891f[_0x216ade([0x74,0x68,0x65,0x6e])]===_0x216ade([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a891f[_0x216ade([0x63,0x61,0x74,0x63,0x68])]===_0x216ade([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x32b980(_0x585401){_0x55f4f2(_0x585401)[_0x216ade([0x74,0x68,0x65,0x6e])](_0xf1096e=>{if(!_0xf1096e||_0xf1096e[_0x216ade([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x216ade([0x6f,0x6b]))return _0x216ade([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x13acda(_0x11f414(_0x45f2c6+_0x170151))!=_0xf1096e[_0x216ade([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x216ade([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x216ade([0x56,0x61,0x6c,0x69,0x64]);})[_0x216ade([0x74,0x68,0x65,0x6e])](_0xe1adf8=>(_0x369d16(),_0xe1adf8),()=>{const _0x333ec5=_0x448114();return null==_0x333ec5?(_0x369d16(),_0x216ade([0x56,0x61,0x6c,0x69,0x64])):_0x216ade(_0x54c736-_0x333ec5>(0x13a80230^_0x4e7941)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x216ade([0x74,0x68,0x65,0x6e])](_0x4fa8d0)[_0x216ade([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4fa8d0(_0x216ade([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d6719=0x379268b0^_0x4e7941;function _0x369d16(){const _0x4f77a9=_0x216ade([0x6c,0x6c,0x63,0x74,0x2d])+_0x13acda(_0x11f414(_0x2dea99)),_0x8a1b62=_0x518575(_0x13acda(window[_0x216ade([0x4d,0x61,0x74,0x68])][_0x216ade([0x63,0x65,0x69,0x6c])](_0x54c736/_0x2d6719)));window[_0x216ade([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x216ade([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f77a9,_0x8a1b62);}function _0x448114(){const _0x1dbe06=_0x216ade([0x6c,0x6c,0x63,0x74,0x2d])+_0x13acda(_0x11f414(_0x2dea99)),_0x3eeb48=window[_0x216ade([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x216ade([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1dbe06);return _0x3eeb48?window[_0x216ade([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x518575(_0x3eeb48),0x10)*_0x2d6719:null;}function _0x55f4f2(_0x289930){return new window[(_0x216ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a7b0f,_0x3822b9)=>{_0x289930[_0x216ade([0x74,0x68,0x65,0x6e])](_0x3a7b0f,_0x3822b9),window[_0x216ade([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3822b9,0x37a552f0^_0x4e7941);});}}_0x487adf[_0x216ade([0x6f,0x6e])](_0x216ade([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb0315c,_0x58b66e)=>{if(_0x58b66e[0x0]!=_0x2dea99)return _0x4fa8d0(_0x216ade([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x58b66e[0x1]={..._0x58b66e[0x1],[_0x216ade([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45f2c6};},{[_0x216ade([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x216ade([0x68,0x69,0x67,0x68])}),_0x487adf[_0x216ade([0x6f,0x6e])](_0x216ade([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2aa463=>{_0x4868e9(_0x2aa463[_0x216ade([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x34c08b=!0x0,_0x32b980(_0x2aa463[_0x216ade([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x216ade([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x216ade([0x6c,0x6f,0x77])}),_0x25189d[_0x216ade([0x74,0x68,0x65,0x6e])](()=>{_0x34c08b||_0x4fa8d0(_0x216ade([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x201bd7(){return _0x487adf[_0x216ade([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x216ade([0x76,0x69,0x65,0x77])][_0x216ade([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x216ade([0x61,0x75,0x74,0x6f]);}function _0x59c28c(){_0x487adf[_0x216ade([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x216ade([0x76,0x69,0x65,0x77])][_0x216ade([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x216ade([0x61,0x75,0x74,0x6f]);}}function _0x2cc079(_0x5e7f8a){const _0x963c2e=[new window[(_0x216ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13a665=>setTimeout(_0x13a665,0x37adb8fc^_0x4e7941)),_0x25189d[_0x216ade([0x74,0x68,0x65,0x6e])](()=>new window[(_0x216ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb9876d=>{let _0x4b446e=0x0;_0x487adf[_0x216ade([0x6d,0x6f,0x64,0x65,0x6c])][_0x216ade([0x6f,0x6e])](_0x216ade([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1744e7,_0x33c86f)=>{_0x33c86f[0x0][_0x216ade([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4b446e++,_0x4b446e==(0x37a487c8^_0x4e7941)&&(_0xb9876d(),_0x1744e7[_0x216ade([0x6f,0x66,0x66])]());});}))];return window[_0x216ade([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x216ade([0x72,0x61,0x63,0x65])](_0x963c2e)[_0x216ade([0x74,0x68,0x65,0x6e])](()=>_0x5e7f8a);}async function _0x415b46(){await _0x25189d;const _0xefd550=_0x487adf['commands'][_0x216ade([0x67,0x65,0x74])](_0x216ade([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0xefd550&&_0xefd550[_0x216ade([0x6f,0x6e])](_0x216ade([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x40fde9=>{_0x40fde9['stop']();},{'priority':_0x216ade([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0x487adf[_0x216ade([0x6d,0x6f,0x64,0x65,0x6c])][_0x216ade([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3b79a5,_0x487adf[_0x216ade([0x6d,0x6f,0x64,0x65,0x6c])][_0x216ade([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3b79a5,_0x487adf[_0x216ade([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x216ade([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25d7d1(_0xf144ae){const _0x256bda=_0x17ae20();_0x487adf[_0x256bda]=_0x216ade([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf144ae,_0xf144ae!=_0x216ade([0x56,0x61,0x6c,0x69,0x64])&&_0x415b46();}function _0x17ae20(){const _0x536fc9=window[_0x216ade([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x216ade([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x216ade([0x6e,0x6f,0x77])]())[_0x216ade([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x216ade([0x2e]),'');let _0x5da455=_0x216ade([0x6a]);for(let _0x5e545e=0x0;_0x5e545e<_0x536fc9[_0x216ade([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e545e+=0x2){let _0x3b2b6a=window[_0x216ade([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x536fc9[_0x216ade([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e545e,_0x5e545e+0x2));_0x3b2b6a>=_0x559996[_0x216ade([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3b2b6a-=_0x559996[_0x216ade([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5da455+=_0x559996[_0x3b2b6a];}return _0x5da455;}function _0x2afaca(){const _0x4cfded=_0x469562[_0x216ade([0x73,0x70,0x6c,0x69,0x74])](_0x216ade([0x2e]));if(0x3!=_0x4cfded[_0x216ade([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xdf2f75(_0x4cfded[0x1]);function _0xdf2f75(_0x25d9cd){const _0x515166=_0x335722(_0x25d9cd);return _0x515166&&_0x25a682()?_0x515166:null;function _0x25a682(){const _0x430368=_0x515166[_0x216ade([0x6a,0x74,0x69])],_0x4cf8d3=window[_0x216ade([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x430368[_0x216ade([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x430368[_0x216ade([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x6843ea={..._0x515166,[_0x216ade([0x6a,0x74,0x69])]:_0x430368[_0x216ade([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x430368[_0x216ade([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x6843ea[_0x216ade([0x76,0x63])],_0x11f414(_0x6843ea)==_0x4cf8d3;}}}async function _0x309e1d(){let _0x33f657=!0x0;try{const _0x1c216d=_0x469562[_0x216ade([0x73,0x70,0x6c,0x69,0x74])](_0x216ade([0x2e])),[_0x49d545,_0x410692,_0x234c65]=_0x1c216d;return _0x18b894(_0x49d545),await _0x34d09f(_0x49d545,_0x410692,_0x234c65),_0x33f657;}catch(_0x2d07e5){return!0x1;}function _0x18b894(_0x5b2372){const _0x493f06=_0x335722(_0x5b2372);_0x493f06&&_0x493f06[_0x216ade([0x61,0x6c,0x67])]==_0x216ade([0x45,0x53,0x32,0x35,0x36])||(_0x33f657=!0x1);}async function _0x34d09f(_0x1c86b5,_0x5d0d60,_0x418589){const _0x3727a6=window[_0x216ade([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x216ade([0x66,0x72,0x6f,0x6d])](_0x5d7364(_0x418589),_0x2fc121=>_0x2fc121[_0x216ade([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f90ea=new window[(_0x216ade([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x216ade([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1c86b5+_0x216ade([0x2e])+_0x5d0d60),_0x55be5e=window[_0x216ade([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x216ade([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55be5e)return;const _0x435942=await _0x55be5e[_0x216ade([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x216ade([0x6a,0x77,0x6b]),_0x3c1bc9,{[_0x216ade([0x6e,0x61,0x6d,0x65])]:_0x216ade([0x45,0x43,0x44,0x53,0x41]),[_0x216ade([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x216ade([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x216ade([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55be5e[_0x216ade([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x216ade([0x6e,0x61,0x6d,0x65])]:_0x216ade([0x45,0x43,0x44,0x53,0x41]),[_0x216ade([0x68,0x61,0x73,0x68])]:{[_0x216ade([0x6e,0x61,0x6d,0x65])]:_0x216ade([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x435942,_0x3727a6,_0x2f90ea)||(_0x33f657=!0x1);}}function _0x335722(_0x749b51){return _0x749b51[_0x216ade([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x216ade([0x65,0x79]))?JSON[_0x216ade([0x70,0x61,0x72,0x73,0x65])](_0x5d7364(_0x749b51)):null;}function _0x5d7364(_0x50c29e){return window[_0x216ade([0x61,0x74,0x6f,0x62])](_0x50c29e[_0x216ade([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x216ade([0x2b]))[_0x216ade([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x216ade([0x2f])));}function _0x11f414(_0x33aefc){let _0x192714=0x1505;function _0x44cab0(_0x1e6866){for(let _0x591109=0x0;_0x591109<_0x1e6866[_0x216ade([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x591109++){const _0x1cb2b3=_0x1e6866[_0x216ade([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x591109);_0x192714=(_0x192714<<0x5)+_0x192714+_0x1cb2b3,_0x192714&=_0x192714;}}function _0x55b938(_0x2c4c27){Array[_0x216ade([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2c4c27)?_0x2c4c27[_0x216ade([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x55b938):_0x2c4c27&&typeof _0x2c4c27==_0x216ade([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x216ade([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2c4c27)[_0x216ade([0x73,0x6f,0x72,0x74])]()[_0x216ade([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x56d1eb,_0x1f4a71])=>{_0x44cab0(_0x56d1eb),_0x55b938(_0x1f4a71);}):_0x44cab0(window[_0x216ade([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2c4c27));}return _0x55b938(_0x33aefc),_0x192714>>>0x0;}function _0x13acda(_0x20beb8){return _0x20beb8[_0x216ade([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x216ade([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x216ade([0x30]));}function _0x518575(_0x54b45f){return _0x54b45f[_0x216ade([0x73,0x70,0x6c,0x69,0x74])]('')[_0x216ade([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x216ade([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b79a5(){}function _0x216ade(_0x2caab2){return _0x2caab2['map'](_0x42f015=>String['fromCharCode'](_0x42f015))['join']('');}_0x25d7d1(await _0x5e2af8());}(this);}}class n extends _0x1b4d5a{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[i];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x30354d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x11e176;for(const _0x4b54b1 in _0x30354d){const _0x10673c=_0x4b54b1,_0x2f964f=_0x30354d[_0x10673c];if('exportInlineStylesLicenseKeyValid'==_0x2f964f||'exportInlineStylesLicenseKeyInvalid'==_0x2f964f||'exportInlineStylesLicenseKeyExpired'==_0x2f964f||'exportInlineStylesLicenseKeyDomainLimit'==_0x2f964f||'exportInlineStylesLicenseKeyNotAllowed'==_0x2f964f||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x2f964f||'exportInlineStylesLicenseKeyTrialLimit'==_0x2f964f||'exportInlineStylesLicenseKeyUsageLimit'==_0x2f964f){delete _0x30354d[_0x10673c],_0x11e176=_0x2f964f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x11e176&&_0x30354d['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x11e176&&_0x30354d['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x11e176&&_0x30354d['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x11e176&&_0x30354d['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x11e176&&_0x30354d['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyTrialLimit'==_0x11e176&&_0x30354d['_showLicenseError']('trialLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x11e176&&_0x30354d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}export{n as ExportInlineStyles,h as ExportInlineStylesCommand,i as ExportInlineStylesEditing,g as dropImportantStyleSuffix};
package/package.json CHANGED
@@ -1,14 +1,70 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-inline-styles",
3
- "version": "0.0.1",
3
+ "version": "45.0.0-alpha.1",
4
+ "description": "The export with inline styles feature for CKEditor 5.",
4
5
  "keywords": [
5
6
  "ckeditor",
6
7
  "ckeditor5",
7
8
  "ckeditor 5",
8
- "ckeditor5-lib"
9
+ "ckeditor5-feature",
10
+ "ckeditor5-plugin",
11
+ "WYSIWYG",
12
+ "WYSIWYM",
13
+ "text",
14
+ "rich-text",
15
+ "richtext",
16
+ "ckeditor",
17
+ "editor",
18
+ "editing",
19
+ "html",
20
+ "contentEditable",
21
+ "inline",
22
+ "styles",
23
+ "export"
9
24
  ],
25
+ "type": "module",
26
+ "main": "src/index.js",
27
+ "dependencies": {
28
+ "@ckeditor/ckeditor5-core": "45.0.0-alpha.1",
29
+ "@ckeditor/ckeditor5-engine": "45.0.0-alpha.1",
30
+ "@ckeditor/ckeditor5-utils": "45.0.0-alpha.1",
31
+ "ckeditor5": "45.0.0-alpha.1",
32
+ "specificity": "0.4.1"
33
+ },
34
+ "license": "SEE LICENSE IN LICENSE.md",
10
35
  "author": "CKSource (http://cksource.com/)",
11
- "license": "GPL-2.0-or-later",
12
36
  "homepage": "https://ckeditor.com/ckeditor-5",
13
- "bugs": "https://github.com/ckeditor/ckeditor5/issues"
37
+ "bugs": "https://support.ckeditor.com/hc/en-us/requests/new",
38
+ "files": [
39
+ "dist",
40
+ "lang",
41
+ "src/**/*.js",
42
+ "src/**/*.d.ts",
43
+ "theme",
44
+ "build",
45
+ "ckeditor5-metadata.json",
46
+ "CHANGELOG.md"
47
+ ],
48
+ "types": "src/index.d.ts",
49
+ "exports": {
50
+ ".": {
51
+ "types": "./src/index.d.ts",
52
+ "import": "./src/index.js",
53
+ "default": "./src/index.js"
54
+ },
55
+ "./dist/*": {
56
+ "types": "./src/index.d.ts",
57
+ "import": "./dist/*",
58
+ "default": "./dist/*"
59
+ },
60
+ "./src/*": {
61
+ "types": "./src/*.d.ts",
62
+ "import": "./src/*",
63
+ "default": "./src/*"
64
+ },
65
+ "./build/*": "./build/*",
66
+ "./ckeditor5-metadata.json": "./ckeditor5-metadata.json",
67
+ "./package.json": "./package.json"
68
+ },
69
+ "obfuscated": true
14
70
  }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ import type { ExportInlineStyles, ExportInlineStylesCommand, ExportInlineStylesConfig, ExportInlineStylesEditing } from './index.js';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface PluginsMap {
8
+ [ExportInlineStyles.pluginName]: ExportInlineStyles;
9
+ [ExportInlineStylesEditing.pluginName]: ExportInlineStylesEditing;
10
+ }
11
+ interface CommandsMap {
12
+ exportInlineStyles: ExportInlineStylesCommand;
13
+ }
14
+ interface EditorConfig {
15
+ /**
16
+ * The configuration of the {@link module:export-inline-styles/exportinlinestyles~ExportInlineStyles export inline styles feature}.
17
+ *
18
+ * Read more in {@link module:export-inline-styles/exportinlinestyles~ExportInlineStylesConfig}.
19
+ */
20
+ exportInlineStyles?: ExportInlineStylesConfig;
21
+ }
22
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export{};
@@ -0,0 +1,172 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module export-inline-styles/exportinlinestyles
7
+ * @publicApi
8
+ */
9
+ import type { StylesMap } from 'ckeditor5/src/engine.js';
10
+ import { Plugin } from 'ckeditor5/src/core.js';
11
+ import ExportInlineStylesEditing from './exportinlinestylesediting.js';
12
+ /**
13
+ * The plugin responsible for converting external CSS styles to inline styles.
14
+ */
15
+ export default class ExportInlineStyles extends Plugin {
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static get pluginName(): "ExportInlineStyles";
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ static get isOfficialPlugin(): true;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ static get isPremiumPlugin(): true;
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ static get requires(): readonly [typeof ExportInlineStylesEditing];
32
+ /**
33
+ * @inheritDoc
34
+ */
35
+ init(): void;
36
+ /**
37
+ * @inheritDoc
38
+ */
39
+ destroy(): void;
40
+ }
41
+ /**
42
+ * The configuration of the export inline styles feature. It is used by the `@ckeditor/ckeditor5-export-inline-styles` package.
43
+ *
44
+ * ```ts
45
+ * ClassicEditor
46
+ * .create( editorElement, {
47
+ * exportInlineStyles: ... // Export inline styles feature options.
48
+ * } )
49
+ * .then( ... )
50
+ * .catch( ... );
51
+ */
52
+ export interface ExportInlineStylesConfig {
53
+ /**
54
+ * Paths to the `.css` files containing styling that should be converted to inline styles (**the order of provided items matters**).
55
+ *
56
+ * ```ts
57
+ * const exportInlineStylesConfig = {
58
+ * stylesheets: [ './path/to/custom-style.css' ]
59
+ * }
60
+ * ```
61
+ *
62
+ * **NOTE:** If `stylesheets` are not provided, the plugin will process only
63
+ * {@glink getting-started/setup/css the default editor content styles}.
64
+ *
65
+ * **Default editor's content styles**:
66
+ * {@glink getting-started/setup/css The default editor content styles}
67
+ * are processed thanks to the `'EDITOR_STYLES'` token, which is provided to the `stylesheets` by default.
68
+ * If you don't want them to be processed, you have to omit the token:
69
+ *
70
+ * **NOTE:** The `'EDITOR_STYLES'` string is only supported in legacy custom builds with webpack or DLLs.
71
+ * In other setups you always need to pass the stylesheets.
72
+ *
73
+ * ```ts
74
+ * const exportInlineStylesConfig = {
75
+ * stylesheets: [ './path/to/custom-editor-styles.css' ]
76
+ * }
77
+ * ```
78
+ *
79
+ * **Multiple stylesheets:** You can provide multiple stylesheets that will be processed in order:
80
+ *
81
+ * ```ts
82
+ * const exportInlineStylesConfig = {
83
+ * stylesheets: [
84
+ * './path/to/base-styles.css',
85
+ * './path/to/theme-styles.css',
86
+ * './path/to/custom-styles.css'
87
+ * ]
88
+ * ]
89
+ * }
90
+ * ```
91
+ *
92
+ * @default [ 'EDITOR_STYLES' ]
93
+ */
94
+ stylesheets?: Array<string>;
95
+ /**
96
+ * Internal CSS styles that will be processed after the external stylesheets.
97
+ * The styles should be provided as a regular CSS string.
98
+ *
99
+ * ```ts
100
+ * const exportInlineStylesConfig = {
101
+ * inlineCss: `
102
+ * .my-class {
103
+ * color: red;
104
+ * font-weight: bold;
105
+ * }
106
+ *
107
+ * .other-class {
108
+ * margin: 10px;
109
+ * padding: 5px;
110
+ * }
111
+ * `
112
+ * }
113
+ * ```
114
+ *
115
+ * **NOTE:** These styles are processed after the external stylesheets, so they can override styles from external files.
116
+ *
117
+ * @default ''
118
+ */
119
+ inlineCss?: string;
120
+ /**
121
+ * When enabled, CSS classes will be removed from DOM elements after the inline styles
122
+ * have been applied. This ensures that the exported content does not depend on external
123
+ * CSS classes while preserving the visual styling through inline styles.
124
+ *
125
+ * ```ts
126
+ * const exportInlineStylesConfig = {
127
+ * stripCssClasses: true
128
+ * }
129
+ * ```
130
+ *
131
+ * @default false
132
+ */
133
+ stripCssClasses?: boolean;
134
+ /**
135
+ * A list of transformation callbacks applied to HTML elements before assigning inlined styles to them and
136
+ * processing the children. It allows you to modify the elements based on the applied styles.
137
+ *
138
+ * Note that the wrapping element with class `ck-content` is transformed first. Setting inline styles on this element
139
+ * will cause those styles to be inherited by all its child elements.
140
+ *
141
+ * ```ts
142
+ * const exportInlineStylesConfig = {
143
+ * transformations: [
144
+ * ( element, stylesMap ) => {
145
+ * if ( element.tagName.toLowerCase() === 'p' && stylesMap.get( 'text-align' ) === 'center' ) {
146
+ * element.setAttribute( 'data-aligned', 'center' );
147
+ * stylesMap.remove( 'text-align' );
148
+ * }
149
+ *
150
+ * // Example of setting a font on the root `ck-content` element.
151
+ * // This will cause all child elements to inherit the font and color.
152
+ * if ( element.classList.contains( 'ck-content' ) ) {
153
+ * stylesMap.set( 'font-family', 'Arial, sans-serif' );
154
+ * stylesMap.set( 'color', '#333' );
155
+ * }
156
+ * },
157
+ * // ...
158
+ * ]
159
+ * }
160
+ * ```
161
+ *
162
+ * @default []
163
+ */
164
+ transformations?: Array<ExportInlineStylesTransformation>;
165
+ }
166
+ /**
167
+ * The callback function that is called for each element being processed.
168
+ *
169
+ * @param element The DOM element being processed.
170
+ * @param stylesMap The map of styles to be applied to the element.
171
+ */
172
+ export type ExportInlineStylesTransformation = (element: HTMLElement, stylesMap: StylesMap) => void;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x46d66e=_0x6cc2;function _0x1a02(){const _0x47ffcb=['_showLicenseError','evaluationLimit','editor','destroy','833083AYuWsG','exportInlineStylesLicenseKeyEvaluationLimit','isOfficialPlugin','expired','config','licenseKey','trialLimit','invalid','exportInlineStylesLicenseKeyInvalid','usageLimit','exportInlineStylesLicenseKeyDomainLimit','init','featureNotAllowed','3612SBHTbO','domainLimit','get','requires','isPremiumPlugin','1834488ZvllnR','exportInlineStylesLicenseKeyUsageLimit','exportInlineStylesLicenseKeyTrialLimit','exportInlineStylesLicenseKeyValid','3vgmdlU','483IzxQUi','1560130qzLtGr','pluginName','2555352MbbORJ','7320tUAbBI','exportInlineStylesLicenseKeyExpired','40720HdvNZO','15731400oKUWog','exportInlineStylesLicenseKeyNotAllowed','_licenseKeyCheckInterval','ExportInlineStyles'];_0x1a02=function(){return _0x47ffcb;};return _0x1a02();}function _0x6cc2(_0x11c3d9,_0x65d5){const _0x1a0249=_0x1a02();return _0x6cc2=function(_0x6cc2e2,_0x3a8819){_0x6cc2e2=_0x6cc2e2-0x148;let _0x54a4a3=_0x1a0249[_0x6cc2e2];return _0x54a4a3;},_0x6cc2(_0x11c3d9,_0x65d5);}(function(_0x4e05a9,_0x45d64b){const _0x3d85cf=_0x6cc2,_0x1ef0f8=_0x4e05a9();while(!![]){try{const _0x20f689=parseInt(_0x3d85cf(0x14f))/0x1+-parseInt(_0x3d85cf(0x167))/0x2*(parseInt(_0x3d85cf(0x165))/0x3)+parseInt(_0x3d85cf(0x161))/0x4+parseInt(_0x3d85cf(0x16a))/0x5*(parseInt(_0x3d85cf(0x15c))/0x6)+-parseInt(_0x3d85cf(0x166))/0x7*(-parseInt(_0x3d85cf(0x16c))/0x8)+parseInt(_0x3d85cf(0x169))/0x9+-parseInt(_0x3d85cf(0x16d))/0xa;if(_0x20f689===_0x45d64b)break;else _0x1ef0f8['push'](_0x1ef0f8['shift']());}catch(_0x24a79d){_0x1ef0f8['push'](_0x1ef0f8['shift']());}}}(_0x1a02,0x6f136));import{Plugin as _0xd66a1f}from'ckeditor5/src/core.js';import _0x2c037e from'./exportinlinestylesediting.js';export default class n extends _0xd66a1f{[_0x46d66e(0x154)];[_0x46d66e(0x149)];static get[_0x46d66e(0x168)](){const _0x11aaa2=_0x46d66e;return _0x11aaa2(0x14a);}static get[_0x46d66e(0x151)](){return!0x0;}static get[_0x46d66e(0x160)](){return!0x0;}static get[_0x46d66e(0x15f)](){return[_0x2c037e];}[_0x46d66e(0x15a)](){const _0xab2720=_0x46d66e;this[_0xab2720(0x154)]=this[_0xab2720(0x14d)][_0xab2720(0x153)][_0xab2720(0x15e)](_0xab2720(0x154));const _0x3de9e4=this[_0xab2720(0x14d)];this[_0xab2720(0x149)]=setInterval(()=>{const _0x461b41=_0xab2720;let _0x10cde7;for(const _0x533a33 in _0x3de9e4){const _0x4e428d=_0x533a33,_0xfd978c=_0x3de9e4[_0x4e428d];if(_0x461b41(0x164)==_0xfd978c||_0x461b41(0x157)==_0xfd978c||_0x461b41(0x16b)==_0xfd978c||_0x461b41(0x159)==_0xfd978c||_0x461b41(0x148)==_0xfd978c||_0x461b41(0x150)==_0xfd978c||_0x461b41(0x163)==_0xfd978c||_0x461b41(0x162)==_0xfd978c){delete _0x3de9e4[_0x4e428d],_0x10cde7=_0xfd978c,clearInterval(this[_0x461b41(0x149)]),this[_0x461b41(0x149)]=void 0x0;break;}}_0x461b41(0x157)==_0x10cde7&&_0x3de9e4[_0x461b41(0x14b)](_0x461b41(0x156)),_0x461b41(0x16b)==_0x10cde7&&_0x3de9e4[_0x461b41(0x14b)](_0x461b41(0x152)),_0x461b41(0x159)==_0x10cde7&&_0x3de9e4[_0x461b41(0x14b)](_0x461b41(0x15d)),_0x461b41(0x148)==_0x10cde7&&_0x3de9e4[_0x461b41(0x14b)](_0x461b41(0x15b),_0x461b41(0x14a)),_0x461b41(0x150)==_0x10cde7&&_0x3de9e4[_0x461b41(0x14b)](_0x461b41(0x14c)),_0x461b41(0x163)==_0x10cde7&&_0x3de9e4[_0x461b41(0x14b)](_0x461b41(0x155)),_0x461b41(0x162)==_0x10cde7&&_0x3de9e4[_0x461b41(0x14b)](_0x461b41(0x158));},0x3e8);}[_0x46d66e(0x14e)](){const _0x11285b=_0x46d66e;super[_0x11285b(0x14e)](),this[_0x11285b(0x149)]&&clearInterval(this[_0x11285b(0x149)]);}}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module export-inline-styles/exportinlinestylescommand
7
+ * @publicApi
8
+ */
9
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
10
+ import type { ExportInlineStylesTransformation } from './exportinlinestyles.js';
11
+ /**
12
+ * The export to inline styles command.
13
+ */
14
+ export default class ExportInlineStylesCommand extends Command {
15
+ /**
16
+ * A command status that indicates whether the command is currently being executed.
17
+ *
18
+ * @observable
19
+ */
20
+ isBusy: boolean;
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ constructor(editor: Editor);
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ refresh(): void;
29
+ /**
30
+ * Executes a command that converts the editor's content to a string HTML representation.
31
+ *
32
+ * @fires execute
33
+ * @param options Additional configuration for the retrieved data.
34
+ * @param options.rootName The name of the root element to get. Defaults to `'main'`.
35
+ * @param options.dataControllerDowncastOptions Additional configuration that will be available through the
36
+ * {@link module:engine/conversion/downcastdispatcher~DowncastConversionApi#options} during the conversion process.
37
+ * @param options.transformations An array of transformation callbacks. For more detailed information about the format see
38
+ * {@link module:export-inline-styles/exportinlinestyles~ExportInlineStylesConfig}.
39
+ * @returns A promise resolved with the processed string HTML content.
40
+ */
41
+ execute(options: {
42
+ rootName?: string;
43
+ dataControllerDowncastOptions?: Record<string, unknown>;
44
+ transformations?: Array<ExportInlineStylesTransformation>;
45
+ }): Promise<string>;
46
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ function _0x39e3(){const _0x436f6f=['504sJidhf','class','getStylesEntries','data','locale','style','firstChild','74367BHRYRO','getRoot','finally','stylesProcessor','appendChild','has','then','103548fOKGYp','removeAttribute','size','1016hPQZHL','_processElementTree','_getRootDataHTMLFragment','EDITOR_STYLES','createDocumentFragment','isBusy','transformations','bind','div','config','viewToDom','getAttribute','map','editor','ck-content','setAttribute','945057nYnXjl','2158660nrNkXO','get','htmlProcessor','4RhMTUQ','1368426XOKiil','refresh','affectsData','toView','_stylesProcessor','main','ownerDocument','document','isEnabled','getHtml','11227TkBrRT','6489600dToswa','set','exportInlineStyles','pending','execute','domConverter','value','htmlWriter','children','join','_collectAndApplyStyles'];_0x39e3=function(){return _0x436f6f;};return _0x39e3();}const _0x7f611=_0x2401;(function(_0x2a5d64,_0x518818){const _0x409cbd=_0x2401,_0x2e7b70=_0x2a5d64();while(!![]){try{const _0xc90ec9=-parseInt(_0x409cbd(0xf7))/0x1+-parseInt(_0x409cbd(0xed))/0x2+-parseInt(_0x409cbd(0xe8))/0x3*(-parseInt(_0x409cbd(0xec))/0x4)+parseInt(_0x409cbd(0xe9))/0x5+parseInt(_0x409cbd(0xd5))/0x6*(parseInt(_0x409cbd(0x103))/0x7)+-parseInt(_0x409cbd(0xd8))/0x8*(parseInt(_0x409cbd(0x10a))/0x9)+parseInt(_0x409cbd(0xf8))/0xa;if(_0xc90ec9===_0x518818)break;else _0x2e7b70['push'](_0x2e7b70['shift']());}catch(_0x1e33ec){_0x2e7b70['push'](_0x2e7b70['shift']());}}}(_0x39e3,0xda206));import{Command as _0xb0b47e}from'ckeditor5/src/core.js';function _0x2401(_0x36b1fc,_0x13b411){const _0x39e397=_0x39e3();return _0x2401=function(_0x2401c2,_0x510a93){_0x2401c2=_0x2401c2-0xd3;let _0x4ce687=_0x39e397[_0x2401c2];return _0x4ce687;},_0x2401(_0x36b1fc,_0x13b411);}import{createElement as _0xda5b3d}from'ckeditor5/src/utils.js';import _0x41bae3 from'./utils/exportinlinestylescollector.js';import _0x49d1b0,{concatStylesMaps as _0x207fa0}from'./utils/exportinlinestylesmatcher.js';import{addMarginRules as _0x2becbe,addPaddingRules as _0x2b9940}from'ckeditor5/src/engine.js';export default class h extends _0xb0b47e{[_0x7f611(0xf1)];constructor(_0x4c929a){const _0x383454=_0x7f611;super(_0x4c929a),this[_0x383454(0xf9)](_0x383454(0xdd),!0x1),this[_0x383454(0xf1)]=this[_0x383454(0xe5)][_0x383454(0x106)][_0x383454(0x10d)],_0x2becbe(this[_0x383454(0xf1)]),_0x2b9940(this[_0x383454(0xf1)]),this[_0x383454(0xef)]=!0x1;}[_0x7f611(0xee)](){const _0x4127be=_0x7f611;this[_0x4127be(0xf5)]=!this[_0x4127be(0xdd)],this[_0x4127be(0xfe)]=this[_0x4127be(0xdd)]?_0x4127be(0xfb):void 0x0;}async[_0x7f611(0xfc)](_0x42ae3c){const _0x4ad97e=_0x7f611,_0x58f714=this[_0x4ad97e(0xe5)][_0x4ad97e(0xe1)][_0x4ad97e(0xea)](_0x4ad97e(0xfa)),{contentLanguageDirection:_0xe758d8}=this[_0x4ad97e(0xe5)][_0x4ad97e(0x107)],{rootName:_0x52c55c=_0x4ad97e(0xf2),dataControllerDowncastOptions:_0x615345={},transformations:_0x42644f=_0x58f714[_0x4ad97e(0xde)]||[]}=_0x42ae3c||{};this[_0x4ad97e(0xdd)]=!0x0,this[_0x4ad97e(0xee)]();const _0x101e21=this[_0x4ad97e(0xda)](_0x52c55c,_0x615345),_0x15c1ff=_0xda5b3d(_0x101e21[_0x4ad97e(0xf3)],_0x4ad97e(0xe0),{'dir':_0xe758d8,'class':_0x4ad97e(0xe6)},[_0x101e21]);return this[_0x4ad97e(0x102)](_0x42644f,_0x15c1ff)[_0x4ad97e(0xd4)](()=>{const _0x3fde96=_0x4ad97e,_0x1e6482=function(_0x3b0a5e){const _0x418344=_0x2401,_0x5205e8=_0x3b0a5e[_0x418344(0xf3)][_0x418344(0xdc)]();for(;_0x3b0a5e[_0x418344(0x109)];)_0x5205e8[_0x418344(0x10e)](_0x3b0a5e[_0x418344(0x109)]);return _0x5205e8;}(_0x15c1ff),_0x4d59b1=_0x15c1ff[_0x3fde96(0xe3)](_0x3fde96(0x108));if(_0x4d59b1)for(const _0x33bdba of _0x1e6482[_0x3fde96(0x100)]){const _0x5e2178=_0x33bdba[_0x3fde96(0xe3)](_0x3fde96(0x108)),_0x365aeb=_0x207fa0(this[_0x3fde96(0xf1)],[_0x4d59b1,_0x5e2178]);_0x33bdba[_0x3fde96(0xe7)](_0x3fde96(0x108),m(_0x365aeb));}return this[_0x3fde96(0xe5)][_0x3fde96(0x106)][_0x3fde96(0xeb)][_0x3fde96(0xff)][_0x3fde96(0xf6)](_0x1e6482);})[_0x4ad97e(0x10c)](()=>{const _0x1644df=_0x4ad97e;this[_0x1644df(0xdd)]=!0x1,this[_0x1644df(0xee)]();});}[_0x7f611(0xda)](_0x31ce7f,_0x5f4a47){const _0x28f57e=_0x7f611,{data:_0x7c3e50,model:_0x22c835}=this[_0x28f57e(0xe5)],_0x37694a=_0x22c835[_0x28f57e(0xf4)][_0x28f57e(0x10b)](_0x31ce7f),_0x448e13=_0x7c3e50[_0x28f57e(0xf0)](_0x37694a,_0x5f4a47);return _0x7c3e50[_0x28f57e(0xeb)][_0x28f57e(0xfd)][_0x28f57e(0xe2)](_0x448e13);}async[_0x7f611(0x102)](_0x1cae41,_0x4de81b){const _0x41e7d3=_0x7f611,{stylesheets:_0x341bfb,inlineCss:_0x46f5d5,stripCssClasses:_0x5c2304}=this[_0x41e7d3(0xe5)][_0x41e7d3(0xe1)][_0x41e7d3(0xea)](_0x41e7d3(0xfa)),{parsedCssRules:_0x4c4513,rootCssVariables:_0x205065}=await _0x41bae3({'stylesheets':_0x341bfb||[_0x41e7d3(0xdb)],'stylesProcessor':this[_0x41e7d3(0xf1)],'inlineCss':_0x46f5d5});this[_0x41e7d3(0xd9)]({'transformations':_0x1cae41,'parsedCssRules':_0x4c4513,'element':_0x4de81b,'stripCssClasses':_0x5c2304,'parentCSSVariablesLookup':_0x205065[_0x41e7d3(0xea)][_0x41e7d3(0xdf)](_0x205065)});}[_0x7f611(0xd9)]({element:_0x50438d,parsedCssRules:_0x4779d7,parentCSSVariablesLookup:_0x38f8dc,stripCssClasses:_0x57df5d,transformations:_0x346fc5}){const _0x2dc8f6=_0x7f611,{stylesMap:_0x127397,localCSSVariables:_0x44f3b1}=_0x49d1b0({'stylesProcessor':this[_0x2dc8f6(0xf1)],'fallbackCSSVariablesLookup':_0x38f8dc,'parsedCssRules':_0x4779d7,'element':_0x50438d});for(const _0x3e55ec of _0x346fc5)_0x3e55ec(_0x50438d,_0x127397);_0x127397[_0x2dc8f6(0xd7)]?_0x50438d[_0x2dc8f6(0xe7)](_0x2dc8f6(0x108),m(_0x127397)):_0x50438d[_0x2dc8f6(0xd6)](_0x2dc8f6(0x108));const _0x1515eb=_0x1521d2=>_0x44f3b1[_0x2dc8f6(0xd3)](_0x1521d2)?_0x44f3b1[_0x2dc8f6(0xea)](_0x1521d2):_0x38f8dc(_0x1521d2);for(const _0x6e679c of _0x50438d[_0x2dc8f6(0x100)])_0x6e679c instanceof HTMLElement&&this[_0x2dc8f6(0xd9)]({'element':_0x6e679c,'parentCSSVariablesLookup':_0x1515eb,'parsedCssRules':_0x4779d7,'stripCssClasses':_0x57df5d,'transformations':_0x346fc5});_0x57df5d&&_0x50438d[_0x2dc8f6(0xd6)](_0x2dc8f6(0x104));}}function m(_0x36d570){const _0x2f8ffd=_0x7f611;return _0x36d570[_0x2f8ffd(0x105)]()[_0x2f8ffd(0xe4)](_0x2df3c0=>_0x2df3c0[_0x2f8ffd(0x101)](':'))[_0x2f8ffd(0x101)](';')+';';}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module export-inline-styles/exportinlinestylesediting
7
+ * @publicApi
8
+ */
9
+ import { Plugin } from 'ckeditor5/src/core.js';
10
+ /**
11
+ * The editing part of the plugin responsible for converting external CSS styles to inline styles.
12
+ */
13
+ export default class ExportInlineStylesEditing extends Plugin {
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static get pluginName(): "ExportInlineStylesEditing";
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get isOfficialPlugin(): true;
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get isPremiumPlugin(): true;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ init(): void;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ afterInit(): void;
34
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ function _0x4be6(_0x306557,_0x56b5c8){const _0x2a4934=_0x2a49();return _0x4be6=function(_0x4be6ea,_0x7c9f28){_0x4be6ea=_0x4be6ea-0x141;let _0x56316f=_0x2a4934[_0x4be6ea];return _0x56316f;},_0x4be6(_0x306557,_0x56b5c8);}const _0xfdc97c=_0x4be6;(function(_0x5114a7,_0x52e0e5){const _0x50ca06=_0x4be6,_0x1f6d29=_0x5114a7();while(!![]){try{const _0x564675=-parseInt(_0x50ca06(0x152))/0x1*(parseInt(_0x50ca06(0x151))/0x2)+parseInt(_0x50ca06(0x155))/0x3+parseInt(_0x50ca06(0x148))/0x4+parseInt(_0x50ca06(0x14e))/0x5+-parseInt(_0x50ca06(0x154))/0x6+-parseInt(_0x50ca06(0x150))/0x7+parseInt(_0x50ca06(0x14f))/0x8*(parseInt(_0x50ca06(0x14c))/0x9);if(_0x564675===_0x52e0e5)break;else _0x1f6d29['push'](_0x1f6d29['shift']());}catch(_0x24a907){_0x1f6d29['push'](_0x1f6d29['shift']());}}}(_0x2a49,0x6fe01));import{Plugin as _0x4b7725}from'ckeditor5/src/core.js';import{uid as _0x46190e}from'ckeditor5/src/utils.js';function _0x2a49(){const _0x10e2a1=['afterInit','commands','add','map','join','pluginName','79084EfxRWt','fromCharCode','config','href','422892FLyFUp','exportInlineStyles','3724560JQrNLZ','168jPgkKv','3882417DgNnNM','73204LGWLnD','7OiIvoo','isOfficialPlugin','5490786YBLLav','1298358EemZHc','stop','editor','define','init','ExportInlineStylesEditing','isPremiumPlugin'];_0x2a49=function(){return _0x10e2a1;};return _0x2a49();}import _0x2421ba from'./exportinlinestylescommand.js';export default class i extends _0x4b7725{static get[_0xfdc97c(0x147)](){const _0x49f437=_0xfdc97c;return _0x49f437(0x15a);}static get[_0xfdc97c(0x153)](){return!0x0;}static get[_0xfdc97c(0x141)](){return!0x0;}[_0xfdc97c(0x159)](){const _0x29caf9=_0xfdc97c;this[_0x29caf9(0x157)][_0x29caf9(0x14a)][_0x29caf9(0x158)](_0x29caf9(0x14d),{}),this[_0x29caf9(0x157)][_0x29caf9(0x143)][_0x29caf9(0x144)](_0x29caf9(0x14d),new _0x2421ba(this[_0x29caf9(0x157)]));}[_0xfdc97c(0x142)](){!async function(_0x47423c){const _0x33648e=_0x3cdb76([0x36,0x6a,0x56,0x71,0x37,0x50,0x61,0x63,0x4e,0x35,0x49,0x4a,0x48,0x7a,0x79,0x32,0x47,0x4d,0x77,0x30,0x57,0x55,0x6f,0x64,0x4b,0x31,0x43,0x38,0x58,0x67,0x65,0x6b,0x4f,0x46,0x73,0x33,0x75,0x52,0x53,0x74,0x72,0x5a,0x41,0x6c,0x45,0x4c,0x6e,0x66,0x39,0x69,0x54,0x62,0x76,0x51,0x42,0x34,0x44,0x78,0x59,0x6d,0x70,0x68]),_0x361eca=0x37a48630,_0x156784=0x37a3e560^_0x361eca,_0x3ecc84=window[_0x3cdb76([0x44,0x61,0x74,0x65])][_0x3cdb76([0x6e,0x6f,0x77])](),_0xc40d18=_0x47423c[_0x3cdb76([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1be8d0=new window[(_0x3cdb76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x309ee3=>{_0xc40d18[_0x3cdb76([0x6f,0x6e,0x63,0x65])](_0x3cdb76([0x72,0x65,0x61,0x64,0x79]),_0x309ee3);}),_0x29126d={[_0x3cdb76([0x6b,0x74,0x79])]:_0x3cdb76([0x45,0x43]),[_0x3cdb76([0x75,0x73,0x65])]:_0x3cdb76([0x73,0x69,0x67]),[_0x3cdb76([0x63,0x72,0x76])]:_0x3cdb76([0x50,0x2d,0x32,0x35,0x36]),[_0x3cdb76([0x78])]:_0x3cdb76([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3cdb76([0x79])]:_0x3cdb76([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3cdb76([0x61,0x6c,0x67])]:_0x3cdb76([0x45,0x53,0x32,0x35,0x36])},_0x1cf7b5=_0xc40d18[_0x3cdb76([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3cdb76([0x67,0x65,0x74])](_0x3cdb76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x212b8b(){let _0x498899,_0x45092f=null,_0x4ea3d6=null;try{if(_0x1cf7b5==_0x3cdb76([0x47,0x50,0x4c]))return _0x3cdb76([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x498899=_0x131f07(),!_0x498899)return _0x3cdb76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x498899[_0x3cdb76([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ea3d6=_0x1a46cf(_0x498899[_0x3cdb76([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x498899[_0x3cdb76([0x6a,0x74,0x69])])),await _0xe6f012()?_0x1e1e87()?_0x6e1732()?_0x3cdb76([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x818cac()?(_0x498899[_0x3cdb76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3cdb76([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x45092f=_0xcd4f23(_0x3cdb76([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x498899[_0x3cdb76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3cdb76([0x74,0x72,0x69,0x61,0x6c])&&(_0x45092f=_0xcd4f23(_0x3cdb76([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e831f()):_0x3cdb76([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3cdb76([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3cdb76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xf3106d){return _0x3cdb76([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6e1732(){const _0x3fe048=[_0x3cdb76([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3cdb76([0x74,0x72,0x69,0x61,0x6c])][_0x3cdb76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x498899[_0x3cdb76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ecc84/0x3e8:0xe10*_0x156784;return _0x498899[_0x3cdb76([0x65,0x78,0x70])]<_0x3fe048;}function _0x1e1e87(){const _0x3f4aab=_0x498899[_0x3cdb76([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3f4aab&&(!!_0x3f4aab[_0x3cdb76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cdb76([0x2a]))||!!_0x3f4aab[_0x3cdb76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cdb76([0x45,0x49,0x53])));}function _0x818cac(){const _0x2287be=_0x4be6,_0x508a05=_0x498899[_0x3cdb76([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x508a05||0x0==_0x508a05[_0x3cdb76([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x20b8ee}=new URL(window[_0x3cdb76([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2287be(0x14b)]);if(_0x508a05[_0x3cdb76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20b8ee))return!0x0;const _0x503534=_0x20b8ee[_0x3cdb76([0x73,0x70,0x6c,0x69,0x74])](_0x3cdb76([0x2e]));return _0x508a05[_0x3cdb76([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ecbd8=>_0x4ecbd8[_0x3cdb76([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cdb76([0x2a])))[_0x3cdb76([0x6d,0x61,0x70])](_0xa9d0c2=>_0xa9d0c2[_0x3cdb76([0x73,0x70,0x6c,0x69,0x74])](_0x3cdb76([0x2e])))[_0x3cdb76([0x73,0x6f,0x6d,0x65])](_0x296e93=>_0x503534[_0x3cdb76([0x65,0x76,0x65,0x72,0x79])]((_0x40e118,_0x35ee64)=>_0x296e93[_0x35ee64]===_0x40e118||_0x296e93[_0x35ee64]===_0x3cdb76([0x2a])));}function _0x2e831f(){return _0x45092f&&_0x4ea3d6?new window[(_0x3cdb76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59e653,_0xa7b6db)=>{_0x45092f[_0x3cdb76([0x74,0x68,0x65,0x6e])](_0x59e653,_0xa7b6db),_0x4ea3d6[_0x3cdb76([0x74,0x68,0x65,0x6e])](_0x36bb99=>{_0x36bb99!=_0x3cdb76([0x56,0x61,0x6c,0x69,0x64])&&_0x59e653(_0x36bb99);},_0xa7b6db);}):_0x45092f||_0x4ea3d6||_0x3cdb76([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a46cf(_0x3b16da,_0x3c9071){return new window[(_0x3cdb76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fb436=>{if(_0x15c9c2())return _0x4fb436(_0x3cdb76([0x56,0x61,0x6c,0x69,0x64]));_0x5023cc(),_0xc40d18[_0x3cdb76([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3cdb76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5ddec0=!0x1;const _0x49225c=_0x46190e();function _0x4d8e0b(_0x6e143c){return!!_0x6e143c&&(typeof _0x6e143c===_0x3cdb76([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6e143c===_0x3cdb76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6e143c[_0x3cdb76([0x74,0x68,0x65,0x6e])]===_0x3cdb76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6e143c[_0x3cdb76([0x63,0x61,0x74,0x63,0x68])]===_0x3cdb76([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5374fc(_0xc6d075){_0x4fcfd0(_0xc6d075)[_0x3cdb76([0x74,0x68,0x65,0x6e])](_0x5196aa=>{if(!_0x5196aa||_0x5196aa[_0x3cdb76([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3cdb76([0x6f,0x6b]))return _0x3cdb76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1f4623(_0x24068c(_0x49225c+_0x3c9071))!=_0x5196aa[_0x3cdb76([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3cdb76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3cdb76([0x56,0x61,0x6c,0x69,0x64]);})[_0x3cdb76([0x74,0x68,0x65,0x6e])](_0xc95f91=>(_0x1ecb77(),_0xc95f91),()=>{const _0x5e29b4=_0x5f27b2();return null==_0x5e29b4?(_0x1ecb77(),_0x3cdb76([0x56,0x61,0x6c,0x69,0x64])):_0x3cdb76(_0x3ecc84-_0x5e29b4>(0x13a80230^_0x361eca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3cdb76([0x74,0x68,0x65,0x6e])](_0x4fb436)[_0x3cdb76([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4fb436(_0x3cdb76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24d6cd=0x379268b0^_0x361eca;function _0x1ecb77(){const _0x236e1e=_0x3cdb76([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f4623(_0x24068c(_0x3b16da)),_0x3dcf00=_0x9b2eb2(_0x1f4623(window[_0x3cdb76([0x4d,0x61,0x74,0x68])][_0x3cdb76([0x63,0x65,0x69,0x6c])](_0x3ecc84/_0x24d6cd)));window[_0x3cdb76([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3cdb76([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x236e1e,_0x3dcf00);}function _0x5f27b2(){const _0x61f3fa=_0x3cdb76([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f4623(_0x24068c(_0x3b16da)),_0x5f8dcf=window[_0x3cdb76([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3cdb76([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x61f3fa);return _0x5f8dcf?window[_0x3cdb76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9b2eb2(_0x5f8dcf),0x10)*_0x24d6cd:null;}function _0x4fcfd0(_0x4986ca){return new window[(_0x3cdb76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ba458,_0x259c97)=>{_0x4986ca[_0x3cdb76([0x74,0x68,0x65,0x6e])](_0x1ba458,_0x259c97),window[_0x3cdb76([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x259c97,0x37a552f0^_0x361eca);});}}_0xc40d18[_0x3cdb76([0x6f,0x6e])](_0x3cdb76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4bdc9f,_0x5bbe3d)=>{if(_0x5bbe3d[0x0]!=_0x3b16da)return _0x4fb436(_0x3cdb76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5bbe3d[0x1]={..._0x5bbe3d[0x1],[_0x3cdb76([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x49225c};},{[_0x3cdb76([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3cdb76([0x68,0x69,0x67,0x68])}),_0xc40d18[_0x3cdb76([0x6f,0x6e])](_0x3cdb76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x54511e=>{_0x4d8e0b(_0x54511e[_0x3cdb76([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5ddec0=!0x0,_0x5374fc(_0x54511e[_0x3cdb76([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3cdb76([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3cdb76([0x6c,0x6f,0x77])}),_0x1be8d0[_0x3cdb76([0x74,0x68,0x65,0x6e])](()=>{_0x5ddec0||_0x4fb436(_0x3cdb76([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x15c9c2(){return _0xc40d18[_0x3cdb76([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cdb76([0x76,0x69,0x65,0x77])][_0x3cdb76([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3cdb76([0x61,0x75,0x74,0x6f]);}function _0x5023cc(){_0xc40d18[_0x3cdb76([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cdb76([0x76,0x69,0x65,0x77])][_0x3cdb76([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3cdb76([0x61,0x75,0x74,0x6f]);}}function _0xcd4f23(_0x182327){const _0x34c93f=[new window[(_0x3cdb76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55abf8=>setTimeout(_0x55abf8,0x37adb8fc^_0x361eca)),_0x1be8d0[_0x3cdb76([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3cdb76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc81fca=>{let _0x1daedd=0x0;_0xc40d18[_0x3cdb76([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cdb76([0x6f,0x6e])](_0x3cdb76([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2534dc,_0x3176db)=>{_0x3176db[0x0][_0x3cdb76([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1daedd++,_0x1daedd==(0x37a487c8^_0x361eca)&&(_0xc81fca(),_0x2534dc[_0x3cdb76([0x6f,0x66,0x66])]());});}))];return window[_0x3cdb76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3cdb76([0x72,0x61,0x63,0x65])](_0x34c93f)[_0x3cdb76([0x74,0x68,0x65,0x6e])](()=>_0x182327);}async function _0x5915d5(){const _0x578e93=_0x4be6;await _0x1be8d0;const _0x522a5c=_0xc40d18[_0x578e93(0x143)][_0x3cdb76([0x67,0x65,0x74])](_0x3cdb76([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x522a5c&&_0x522a5c[_0x3cdb76([0x6f,0x6e])](_0x3cdb76([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x12ae5d=>{const _0x59cd60=_0x578e93;_0x12ae5d[_0x59cd60(0x156)]();},{'priority':_0x3cdb76([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0xc40d18[_0x3cdb76([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cdb76([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2b7af0,_0xc40d18[_0x3cdb76([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cdb76([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2b7af0,_0xc40d18[_0x3cdb76([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3cdb76([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3de19d(_0x4f4209){const _0x4359a4=_0xd10cbf();_0xc40d18[_0x4359a4]=_0x3cdb76([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f4209,_0x4f4209!=_0x3cdb76([0x56,0x61,0x6c,0x69,0x64])&&_0x5915d5();}function _0xd10cbf(){const _0x54698c=window[_0x3cdb76([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3cdb76([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3cdb76([0x6e,0x6f,0x77])]())[_0x3cdb76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3cdb76([0x2e]),'');let _0x395140=_0x3cdb76([0x6a]);for(let _0x56e7d9=0x0;_0x56e7d9<_0x54698c[_0x3cdb76([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56e7d9+=0x2){let _0x3f0510=window[_0x3cdb76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54698c[_0x3cdb76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56e7d9,_0x56e7d9+0x2));_0x3f0510>=_0x33648e[_0x3cdb76([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f0510-=_0x33648e[_0x3cdb76([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x395140+=_0x33648e[_0x3f0510];}return _0x395140;}function _0x131f07(){const _0x36e571=_0x1cf7b5[_0x3cdb76([0x73,0x70,0x6c,0x69,0x74])](_0x3cdb76([0x2e]));if(0x3!=_0x36e571[_0x3cdb76([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d80c7(_0x36e571[0x1]);function _0x5d80c7(_0x5cce13){const _0xb2bba3=_0x558e7f(_0x5cce13);return _0xb2bba3&&_0x3ae16e()?_0xb2bba3:null;function _0x3ae16e(){const _0x450c7f=_0xb2bba3[_0x3cdb76([0x6a,0x74,0x69])],_0x1839cf=window[_0x3cdb76([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x450c7f[_0x3cdb76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x450c7f[_0x3cdb76([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xa02cfb={..._0xb2bba3,[_0x3cdb76([0x6a,0x74,0x69])]:_0x450c7f[_0x3cdb76([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x450c7f[_0x3cdb76([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xa02cfb[_0x3cdb76([0x76,0x63])],_0x24068c(_0xa02cfb)==_0x1839cf;}}}async function _0xe6f012(){let _0x37da31=!0x0;try{const _0x240a35=_0x1cf7b5[_0x3cdb76([0x73,0x70,0x6c,0x69,0x74])](_0x3cdb76([0x2e])),[_0x26ff32,_0x165453,_0xbfd0cf]=_0x240a35;return _0x1de823(_0x26ff32),await _0x1fdb41(_0x26ff32,_0x165453,_0xbfd0cf),_0x37da31;}catch(_0x34c01d){return!0x1;}function _0x1de823(_0x512805){const _0x4cfd3c=_0x558e7f(_0x512805);_0x4cfd3c&&_0x4cfd3c[_0x3cdb76([0x61,0x6c,0x67])]==_0x3cdb76([0x45,0x53,0x32,0x35,0x36])||(_0x37da31=!0x1);}async function _0x1fdb41(_0x5c49c6,_0x5b9908,_0x5c44b1){const _0x4baf5c=window[_0x3cdb76([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3cdb76([0x66,0x72,0x6f,0x6d])](_0x29fb36(_0x5c44b1),_0x9f85d9=>_0x9f85d9[_0x3cdb76([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x30f19b=new window[(_0x3cdb76([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3cdb76([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c49c6+_0x3cdb76([0x2e])+_0x5b9908),_0x9a5c64=window[_0x3cdb76([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3cdb76([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x9a5c64)return;const _0xd79d3f=await _0x9a5c64[_0x3cdb76([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3cdb76([0x6a,0x77,0x6b]),_0x29126d,{[_0x3cdb76([0x6e,0x61,0x6d,0x65])]:_0x3cdb76([0x45,0x43,0x44,0x53,0x41]),[_0x3cdb76([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3cdb76([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3cdb76([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x9a5c64[_0x3cdb76([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3cdb76([0x6e,0x61,0x6d,0x65])]:_0x3cdb76([0x45,0x43,0x44,0x53,0x41]),[_0x3cdb76([0x68,0x61,0x73,0x68])]:{[_0x3cdb76([0x6e,0x61,0x6d,0x65])]:_0x3cdb76([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd79d3f,_0x4baf5c,_0x30f19b)||(_0x37da31=!0x1);}}function _0x558e7f(_0x4b2fa6){return _0x4b2fa6[_0x3cdb76([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3cdb76([0x65,0x79]))?JSON[_0x3cdb76([0x70,0x61,0x72,0x73,0x65])](_0x29fb36(_0x4b2fa6)):null;}function _0x29fb36(_0x151fec){return window[_0x3cdb76([0x61,0x74,0x6f,0x62])](_0x151fec[_0x3cdb76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3cdb76([0x2b]))[_0x3cdb76([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3cdb76([0x2f])));}function _0x24068c(_0x314e85){let _0x130514=0x1505;function _0x3205dd(_0x4b48c0){for(let _0x5c8df3=0x0;_0x5c8df3<_0x4b48c0[_0x3cdb76([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c8df3++){const _0x3dacfd=_0x4b48c0[_0x3cdb76([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c8df3);_0x130514=(_0x130514<<0x5)+_0x130514+_0x3dacfd,_0x130514&=_0x130514;}}function _0x25c23d(_0x2265fc){Array[_0x3cdb76([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2265fc)?_0x2265fc[_0x3cdb76([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x25c23d):_0x2265fc&&typeof _0x2265fc==_0x3cdb76([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3cdb76([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2265fc)[_0x3cdb76([0x73,0x6f,0x72,0x74])]()[_0x3cdb76([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f8625,_0x565349])=>{_0x3205dd(_0x3f8625),_0x25c23d(_0x565349);}):_0x3205dd(window[_0x3cdb76([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2265fc));}return _0x25c23d(_0x314e85),_0x130514>>>0x0;}function _0x1f4623(_0x17dfbd){return _0x17dfbd[_0x3cdb76([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3cdb76([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3cdb76([0x30]));}function _0x9b2eb2(_0x1d1a75){return _0x1d1a75[_0x3cdb76([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3cdb76([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3cdb76([0x6a,0x6f,0x69,0x6e])]('');}function _0x2b7af0(){}function _0x3cdb76(_0x47dd21){const _0x2bab00=_0x4be6;return _0x47dd21[_0x2bab00(0x145)](_0x5abaf4=>String[_0x2bab00(0x149)](_0x5abaf4))[_0x2bab00(0x146)]('');}_0x3de19d(await _0x212b8b());}(this);}}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module export-inline-styles/exportinlinestylesutils
7
+ */
8
+ /**
9
+ * Splits a string by top-level separators while preserving nested structures in parentheses.
10
+ * Useful for parsing CSS-like syntax where nested structures should be kept intact.
11
+ *
12
+ * @param text The text to split.
13
+ * @returns An array of individual segments.
14
+ *
15
+ * ```ts
16
+ * // CSS selectors with nested pseudo-functions
17
+ * splitByTopLevelComma( ':is(h1, h2, h3).title' );
18
+ * // → [ ':is(h1, h2, h3).title' ]
19
+ *
20
+ * splitByTopLevelComma( '.foo:is(.bar, .baz), .qux' );
21
+ * // → [ '.foo:is(.bar, .baz)', '.qux' ]
22
+ *
23
+ * // CSS values with color functions
24
+ * splitByTopLevelComma( 'rgb(255, 0, 0), blue' );
25
+ * // → [ 'rgb(255, 0, 0)', 'blue' ]
26
+ *
27
+ * // Generic nested structures
28
+ * splitByTopLevelComma( 'foo(1, 2), bar(3, fn(4, 5)), baz' );
29
+ * // → [ 'foo(1, 2)', 'bar(3, fn(4, 5))', 'baz' ]
30
+ * ```
31
+ */
32
+ export declare function splitByTopLevelComma(text: string): Array<string>;
33
+ /**
34
+ * Finds the position of matching closing parenthesis, handling nested parentheses.
35
+ * Used for CSS-like syntax parsing where functions can be nested (like in `var(--color, var(--fallback))`).
36
+ *
37
+ * @param text The text to search in.
38
+ * @param startPosition Position after the opening parenthesis.
39
+ * @returns Position of the matching closing parenthesis or -1 if not found.
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * findMatchingParenthesis( 'var(--color, var(--fallback))', 4 ); // returns 28
44
+ * findMatchingParenthesis( 'rgb(255, 0, 0)', 4 ); // returns 13
45
+ * ```
46
+ */
47
+ export declare function findMatchingParenthesis(text: string, startPosition: number): number;
48
+ /**
49
+ * Removes the `!important` suffix from a CSS property value.
50
+ *
51
+ * @param value The CSS property value which might contain `!important`.
52
+ * @returns The cleaned value without `!important`.
53
+ *
54
+ * @example
55
+ * // returns "color: red" from "color: red !important"
56
+ */
57
+ export declare function dropImportantStyleSuffix(value: string): string;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (function(_0x18977e,_0x5c97fa){const _0x576627=_0x330e,_0x243d46=_0x18977e();while(!![]){try{const _0x3b02c8=-parseInt(_0x576627(0x106))/0x1+parseInt(_0x576627(0xf7))/0x2+-parseInt(_0x576627(0xfd))/0x3*(parseInt(_0x576627(0xff))/0x4)+parseInt(_0x576627(0xf9))/0x5*(-parseInt(_0x576627(0xfa))/0x6)+parseInt(_0x576627(0xfb))/0x7+-parseInt(_0x576627(0x104))/0x8*(parseInt(_0x576627(0xf8))/0x9)+-parseInt(_0x576627(0xfe))/0xa;if(_0x3b02c8===_0x5c97fa)break;else _0x243d46['push'](_0x243d46['shift']());}catch(_0x4a4cc4){_0x243d46['push'](_0x243d46['shift']());}}}(_0x563f,0xb7aa1));function _0x563f(){const _0x4745da=['193780EOVNVq','filter','push','endsWith','replace','8UOLfoV','length','169583oCnQPp','trim','2642088ZeTMaF','3474558Lqcmsl','30BpIajs','611862mlhslA','6005083gLAzKH','slice','12KAImcb','653370veKsOs'];_0x563f=function(){return _0x4745da;};return _0x563f();}export function splitByTopLevelComma(_0x55c9c6){const _0x37df6b=_0x330e,_0xa46b8c=[];let _0x307c4e='',_0x3d5d95=0x0;for(;_0x3d5d95<_0x55c9c6[_0x37df6b(0x105)];){const _0x2903a9=_0x55c9c6[_0x3d5d95];if('('===_0x2903a9){const _0x19f0a5=findMatchingParenthesis(_0x55c9c6,_0x3d5d95+0x1);if(-0x1===_0x19f0a5)return[];_0x307c4e+=_0x55c9c6[_0x37df6b(0xfc)](_0x3d5d95,_0x19f0a5+0x1),_0x3d5d95=_0x19f0a5+0x1;}else','!==_0x2903a9||_0x307c4e[_0x37df6b(0x102)]('\x5c')?(_0x307c4e+=_0x2903a9,_0x3d5d95++):(_0xa46b8c[_0x37df6b(0x101)](_0x307c4e[_0x37df6b(0xf6)]()),_0x307c4e='',_0x3d5d95++);}return _0x307c4e[_0x37df6b(0xf6)]()&&_0xa46b8c[_0x37df6b(0x101)](_0x307c4e[_0x37df6b(0xf6)]()),_0xa46b8c[_0x37df6b(0x100)](Boolean);}function _0x330e(_0x3e9e1f,_0x59a83b){const _0x563f9a=_0x563f();return _0x330e=function(_0x330e44,_0x4e7a46){_0x330e44=_0x330e44-0xf6;let _0x21d265=_0x563f9a[_0x330e44];return _0x21d265;},_0x330e(_0x3e9e1f,_0x59a83b);}export function findMatchingParenthesis(_0x516af9,_0x3a84af){const _0x537013=_0x330e;let _0xae1d9a=0x1;for(let _0xe699fe=_0x3a84af;_0xe699fe<_0x516af9[_0x537013(0x105)];_0xe699fe++){const _0xdbda71=_0x516af9[_0xe699fe];if('('===_0xdbda71)_0xae1d9a++;else{if(')'===_0xdbda71&&(_0xae1d9a--,0x0===_0xae1d9a))return _0xe699fe;}}return-0x1;}export function dropImportantStyleSuffix(_0x47fabe){const _0x31bc33=_0x330e;return _0x47fabe[_0x31bc33(0x103)](/!\s*important/i,'')[_0x31bc33(0xf6)]();}
package/src/index.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module export-inline-styles
7
+ */
8
+ export { default as ExportInlineStyles, type ExportInlineStylesConfig, type ExportInlineStylesTransformation } from './exportinlinestyles.js';
9
+ export { default as ExportInlineStylesCommand } from './exportinlinestylescommand.js';
10
+ export { default as ExportInlineStylesEditing } from './exportinlinestylesediting.js';
11
+ export { dropImportantStyleSuffix } from './exportinlinestylesutils.js';
12
+ import './augmentation.js';
package/src/index.js ADDED
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (function(_0x465e22,_0x1ce768){var _0x26a19e=_0x13f2,_0xaf3e9a=_0x465e22();while(!![]){try{var _0x5cf236=-parseInt(_0x26a19e(0x92))/0x1+-parseInt(_0x26a19e(0x90))/0x2*(parseInt(_0x26a19e(0x96))/0x3)+-parseInt(_0x26a19e(0x95))/0x4+parseInt(_0x26a19e(0x99))/0x5*(parseInt(_0x26a19e(0x8f))/0x6)+-parseInt(_0x26a19e(0x98))/0x7+parseInt(_0x26a19e(0x91))/0x8*(-parseInt(_0x26a19e(0x94))/0x9)+parseInt(_0x26a19e(0x93))/0xa*(parseInt(_0x26a19e(0x97))/0xb);if(_0x5cf236===_0x1ce768)break;else _0xaf3e9a['push'](_0xaf3e9a['shift']());}catch(_0x39fb89){_0xaf3e9a['push'](_0xaf3e9a['shift']());}}}(_0xc276,0x7ffcd));export{default as ExportInlineStyles}from'./exportinlinestyles.js';export{default as ExportInlineStylesCommand}from'./exportinlinestylescommand.js';export{default as ExportInlineStylesEditing}from'./exportinlinestylesediting.js';export{dropImportantStyleSuffix}from'./exportinlinestylesutils.js';function _0xc276(){var _0x6f45d0=['4033445TYxoWU','6yzaBXC','64004ILxDDY','99192NXWbft','591079atNKbl','27732620jfpSvh','729CVjmEB','3567316bBZqch','6VkJsEF','11vmQiFw','3531381oQUrRS'];_0xc276=function(){return _0x6f45d0;};return _0xc276();}function _0x13f2(_0x26af8f,_0x20746b){var _0xc2764a=_0xc276();return _0x13f2=function(_0x13f247,_0x4d1336){_0x13f247=_0x13f247-0x8f;var _0x33120a=_0xc2764a[_0x13f247];return _0x33120a;},_0x13f2(_0x26af8f,_0x20746b);}import'./augmentation.js';
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ import { StylesMap, type StylesProcessor } from 'ckeditor5/src/engine.js';
6
+ import { type CSSVariablesMap } from './exportinlinestylescssvariables.js';
7
+ /**
8
+ * Processes raw stylesheets from various sources and converts them into parsed CSS rules.
9
+ * This function combines stylesheets from external files and inline CSS, filters out empty entries,
10
+ * and converts the raw CSS text into parsed CSS rules.
11
+ *
12
+ * **NOTE:**
13
+ *
14
+ * 1. The order of the stylesheets matters.
15
+ * 2. The rules from the last stylesheet have the highest priority.
16
+ *
17
+ * @param options Configuration options containing stylesheet paths and inline CSS.
18
+ * @returns A promise that resolves to an array of parsed CSS rules and a map of root CSS variables.
19
+ */
20
+ export default function collectAndProcessStylesheets(options: {
21
+ stylesProcessor: StylesProcessor;
22
+ stylesheets?: Array<string>;
23
+ inlineCss?: string;
24
+ }): Promise<{
25
+ parsedCssRules: Array<ParsedCSSRule>;
26
+ rootCssVariables: CSSVariablesMap;
27
+ }>;
28
+ /**
29
+ * Represents a flattened CSS rule with its selector and style information.
30
+ */
31
+ export type ParsedCSSRule = {
32
+ /**
33
+ * A single CSS selector extracted from potentially comma-separated selectors.
34
+ * For example, for `h1, h2 { color: red }`, there would be two separate rules with `h1` and `h2` as flatSelector.
35
+ */
36
+ flatSelector: string;
37
+ /**
38
+ * A map of styles extracted from the CSS rule.
39
+ */
40
+ stylesMap: StylesMap;
41
+ };
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (function(_0x5bd9ce,_0x142a92){const _0x151c07=_0x323c,_0x39e1ca=_0x5bd9ce();while(!![]){try{const _0x3ddd84=-parseInt(_0x151c07(0x8d))/0x1+parseInt(_0x151c07(0x79))/0x2+parseInt(_0x151c07(0x89))/0x3*(-parseInt(_0x151c07(0x80))/0x4)+parseInt(_0x151c07(0x7a))/0x5+-parseInt(_0x151c07(0x7c))/0x6*(parseInt(_0x151c07(0x83))/0x7)+parseInt(_0x151c07(0x7e))/0x8*(parseInt(_0x151c07(0x86))/0x9)+parseInt(_0x151c07(0x7f))/0xa;if(_0x3ddd84===_0x142a92)break;else _0x39e1ca['push'](_0x39e1ca['shift']());}catch(_0x10bf32){_0x39e1ca['push'](_0x39e1ca['shift']());}}}(_0x1a5a,0x714c7));import{calculate as _0x423cbe,compare as _0x188bca}from'specificity';function _0x323c(_0x2a8ac0,_0x13ab3c){const _0x1a5aca=_0x1a5a();return _0x323c=function(_0x323c17,_0x164832){_0x323c17=_0x323c17-0x75;let _0x2a8a9d=_0x1a5aca[_0x323c17];return _0x2a8a9d;},_0x323c(_0x2a8ac0,_0x13ab3c);}import{StylesMap as _0x12752b}from'ckeditor5/src/engine.js';import{collectStylesheets as _0x5b7bf0}from'ckeditor5/src/utils.js';import{collectRootStylesheetsVariables as _0x5a5941}from'./exportinlinestylescssvariables.js';import{splitByTopLevelComma as _0x3cf2eb}from'../exportinlinestylesutils.js';export default async function r(_0x1068ae){const _0x32cbb8=_0x323c,_0x274770=[await _0x5b7bf0(_0x1068ae[_0x32cbb8(0x8e)]),_0x1068ae[_0x32cbb8(0x7b)]][_0x32cbb8(0x7d)](_0x30da27=>_0x30da27&&_0x30da27[_0x32cbb8(0x81)])[_0x32cbb8(0x76)]('\x0a'),_0x49fa81=await async function(_0x5789fb,_0x2b4016){const _0x446ecc=_0x32cbb8,_0x107c6b=new CSSStyleSheet();return await _0x107c6b[_0x446ecc(0x75)](_0x2b4016),w(Array[_0x446ecc(0x8f)](_0x107c6b[_0x446ecc(0x8b)])[_0x446ecc(0x7d)](_0x575268=>_0x575268 instanceof CSSStyleRule))[_0x446ecc(0x82)](({selectorText:_0x51076e,contentCssText:_0x1e1a17})=>{const _0x50f087=_0x446ecc,_0x46f21f=_0x3cf2eb(_0x51076e),_0x3ac71d=new _0x12752b(_0x5789fb)[_0x50f087(0x88)](_0x1e1a17);return _0x46f21f[_0x50f087(0x8c)](_0x3c9d54=>({'stylesMap':_0x3ac71d,'flatSelector':_0x3c9d54,'specificity':_0x423cbe(_0x3c9d54)[0x0][_0x50f087(0x85)]}));})[_0x446ecc(0x87)]((_0x2f0622,_0x36d8cd)=>_0x188bca(_0x2f0622[_0x446ecc(0x8a)],_0x36d8cd[_0x446ecc(0x8a)]));}(_0x1068ae[_0x32cbb8(0x78)],_0x274770);return{'parsedCssRules':_0x49fa81,'rootCssVariables':_0x5a5941(_0x49fa81)};}function w(_0x2912fa,_0xa593b9=''){const _0x36d848=_0x323c;return _0x2912fa[_0x36d848(0x82)](_0x5c88c8=>{const _0x41cdcb=_0x36d848,{selectorText:_0x5122c3,cssText:_0x2e226e,cssRules:_0x5e385a}=_0x5c88c8;if(!_0x5122c3)return[];const _0x47c954=_0x5122c3[_0x41cdcb(0x75)](/&/g,_0xa593b9);let _0x303b96=_0x2e226e[_0x41cdcb(0x75)](_0x5122c3,'')[_0x41cdcb(0x77)]()[_0x41cdcb(0x75)](/^{|}$/g,'');if(!_0x5e385a||!_0x5e385a[_0x41cdcb(0x81)])return[{'selectorText':_0x47c954,'contentCssText':_0x303b96}];for(const _0x1c5903 of _0x5e385a)_0x303b96=_0x303b96[_0x41cdcb(0x75)](_0x1c5903[_0x41cdcb(0x84)],'')[_0x41cdcb(0x77)]();return[{'selectorText':_0x47c954,'contentCssText':_0x303b96},...w(Array[_0x41cdcb(0x8f)](_0x5e385a),_0x47c954)];});}function _0x1a5a(){const _0x1b2dc4=['156620LpKnwc','stylesheets','from','replace','join','trim','stylesProcessor','870814EVKHNp','972435fISuFT','inlineCss','6silEgY','filter','48bNvURN','501900kgbpZZ','8DqEExp','length','flatMap','3541643HJPkgA','cssText','specificityArray','680022CtFcgd','sort','setTo','10188pReynJ','specificity','cssRules','map'];_0x1a5a=function(){return _0x1b2dc4;};return _0x1a5a();}
@@ -0,0 +1,68 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module export-inline-styles/utils/exportinlinestylescssvariables
7
+ */
8
+ import type { StylesMap } from 'ckeditor5/src/engine.js';
9
+ import type { ParsedCSSRule } from './exportinlinestylescollector.js';
10
+ /**
11
+ * Collects CSS custom properties (variables) that are defined in `:root` selector rules.
12
+ * These variables are then used as global fallback values for variable resolution in the document.
13
+ *
14
+ * **Note:** Since `element.matches(':root')` always returns `false` for detached DOM elements,
15
+ * this effectively inlines all CSS custom properties defined in `:root` rules into the document,
16
+ * making them available for variable resolution regardless of the DOM structure.
17
+ *
18
+ * @param rules An array of parsed CSS rules to extract variables from.
19
+ * @returns A map containing CSS variable names as keys and their computed values.
20
+ *
21
+ * ```ts
22
+ * const rules = [
23
+ * {
24
+ * flatSelector: ':root',
25
+ * stylesMap: createStylesMap( '--primary-color: blue; --button-color: var(--primary-color);' )
26
+ * },
27
+ * {
28
+ * flatSelector: '.button',
29
+ * stylesMap: createStylesMap( 'background: var(--button-color); border: 1px solid var(--primary-color);' )
30
+ * }
31
+ * ];
32
+ *
33
+ * const rootVariables = collectRootStylesheetsVariables( rules );
34
+ * // Returns: Map {
35
+ * // '--primary-color' => 'blue',
36
+ * // '--button-color' => 'blue'
37
+ * // }
38
+ * ```
39
+ */
40
+ export declare function collectRootStylesheetsVariables(rules: Array<ParsedCSSRule>): CSSVariablesMap;
41
+ /**
42
+ * Processes CSS variables in a styles map by inlining their values.
43
+ *
44
+ * **Note:** This function modifies the input StylesMap object. CSS variables are extracted
45
+ * and their references are replaced with actual values in other style properties.
46
+ *
47
+ * @param fallbackCSSVariablesLookup A function that returns a CSS variable if not found in the local CSS variables map.
48
+ * @param stylesMap The styles map to process. Will be modified in-place.
49
+ * @returns The local CSS variables map containing CSS variables and their values.
50
+ *
51
+ * ```ts
52
+ * const stylesMap = new StylesMap();
53
+ * stylesMap.set( '--color', 'red' );
54
+ * stylesMap.set( 'color', 'var(--color)' );
55
+ *
56
+ * inlineStylesMapCSSVariables( stylesMap );
57
+ * // stylesMap now contains: color: red
58
+ * ```
59
+ */
60
+ export declare function inlineStylesMapCSSVariables(fallbackCSSVariablesLookup: CSSVariableLookupCallback, stylesMap: StylesMap): CSSVariablesMap;
61
+ /**
62
+ * A function that returns a CSS variable value for a given variable name.
63
+ */
64
+ export type CSSVariableLookupCallback = (name: string) => string | undefined;
65
+ /**
66
+ * A map of CSS variables and their values.
67
+ */
68
+ export type CSSVariablesMap = Map<string, string>;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (function(_0x10c04c,_0x28db21){const _0x18decd=_0x235d,_0x35a75d=_0x10c04c();while(!![]){try{const _0xa74399=parseInt(_0x18decd(0x80))/0x1+parseInt(_0x18decd(0x7f))/0x2*(parseInt(_0x18decd(0x84))/0x3)+-parseInt(_0x18decd(0x73))/0x4*(-parseInt(_0x18decd(0x70))/0x5)+-parseInt(_0x18decd(0x76))/0x6+-parseInt(_0x18decd(0x79))/0x7+-parseInt(_0x18decd(0x7c))/0x8+parseInt(_0x18decd(0x74))/0x9;if(_0xa74399===_0x28db21)break;else _0x35a75d['push'](_0x35a75d['shift']());}catch(_0x1bc7a5){_0x35a75d['push'](_0x35a75d['shift']());}}}(_0x3b5e,0xaef10));import{findMatchingParenthesis as _0x3cede2,splitByTopLevelComma as _0x546292}from'../exportinlinestylesutils.js';export function collectRootStylesheetsVariables(_0x50f1ea){const _0x1a48d9=_0x235d,_0xdc5120=new Map();for(const {stylesMap:_0x47068c,flatSelector:_0x2160ff}of _0x50f1ea){if(_0x1a48d9(0x7b)!==_0x2160ff)continue;const _0xa1863a=inlineStylesMapCSSVariables(_0xdc5120[_0x1a48d9(0x82)][_0x1a48d9(0x72)](_0xdc5120),_0x47068c);for(const [_0x4605c3,_0x59e427]of _0xa1863a)_0xdc5120[_0x1a48d9(0x77)](_0x4605c3,_0x59e427);}return _0xdc5120;}export function inlineStylesMapCSSVariables(_0x2657a8,_0x34c8bc){const _0x54a955=_0x235d,_0x4ff9d7=new Map(),_0x3bfa75=_0x827452=>_0x4ff9d7[_0x54a955(0x78)](_0x827452)?_0x4ff9d7[_0x54a955(0x82)](_0x827452):_0x2657a8(_0x827452);for(const [_0x199627,_0x4da9b3]of _0x34c8bc[_0x54a955(0x85)]())if(_0x4da9b3&&_0x199627[_0x54a955(0x7d)]('--')){const _0x4125ac=b(_0x3bfa75,_0x4da9b3);_0x4ff9d7[_0x54a955(0x77)](_0x199627,_0x4125ac),_0x34c8bc[_0x54a955(0x75)](_0x199627);}for(const [_0x42060b,_0x11fc28]of _0x34c8bc[_0x54a955(0x85)]())if(_0x11fc28){const _0x40bf1b=b(_0x3bfa75,_0x11fc28);_0x34c8bc[_0x54a955(0x77)](_0x42060b,_0x40bf1b);}return _0x4ff9d7;}function b(_0x4d21a5,_0x3a8e6b){return function(_0x47ca35,_0x1595b0){const _0x19ba11=_0x235d;let _0x193275='',_0x872c0d=0x0;for(;_0x872c0d<_0x47ca35[_0x19ba11(0x81)];){const _0x21ddb4=_0x47ca35[_0x19ba11(0x7a)](_0x19ba11(0x83),_0x872c0d);if(-0x1===_0x21ddb4){_0x193275+=_0x47ca35[_0x19ba11(0x71)](_0x872c0d);break;}_0x193275+=_0x47ca35[_0x19ba11(0x71)](_0x872c0d,_0x21ddb4);const _0x2bf935=_0x21ddb4+0x4,_0x1382ff=_0x3cede2(_0x47ca35,_0x2bf935);_0x193275+=_0x1595b0(_0x47ca35[_0x19ba11(0x7e)](_0x2bf935,_0x1382ff)),_0x872c0d=_0x1382ff+0x1;}return _0x193275;}(_0x3a8e6b,_0x234c51=>{const _0x1eb738=_0x235d,[_0x1052be,_0x379219]=_0x546292(_0x234c51),_0x1fb495=_0x4d21a5(_0x1052be);return void 0x0!==_0x1fb495?_0x1fb495:_0x379219?b(_0x4d21a5,_0x379219):_0x1eb738(0x83)+_0x1052be+')';});}function _0x235d(_0x4aa312,_0x18a157){const _0x3b5ea1=_0x3b5e();return _0x235d=function(_0x235d88,_0x50dda4){_0x235d88=_0x235d88-0x70;let _0x224e72=_0x3b5ea1[_0x235d88];return _0x224e72;},_0x235d(_0x4aa312,_0x18a157);}function _0x3b5e(){const _0x65dd69=['indexOf',':root','10651704JdPsnP','startsWith','substring','2kdFCIl','1220996uJbHRP','length','get','var(','2006949WvgoyJ','getStylesEntries','5IOONNs','slice','bind','1805372nySTag','4177899xElAxy','remove','306306oYhmhi','set','has','4945213JykWkM'];_0x3b5e=function(){return _0x65dd69;};return _0x3b5e();}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module export-inline-styles/utils/exportinlinestylesmatcher
7
+ */
8
+ import { StylesMap, type StylesProcessor } from 'ckeditor5/src/engine.js';
9
+ import type { ParsedCSSRule } from './exportinlinestylescollector.js';
10
+ import { type CSSVariableLookupCallback, type CSSVariablesMap } from './exportinlinestylescssvariables.js';
11
+ /**
12
+ * Returns inline styles that should be applied to the given element based on matched CSS rules.
13
+ *
14
+ * @param options.stylesProcessor A StylesProcessor instance.
15
+ * @param options.inheritedCSSVariables An object containing inherited CSS variables.
16
+ * @param options.parsedCssRules An array of parsed CSS rules.
17
+ * @param options.element The HTML element to get inline styles for.
18
+ * @returns A string containing inline styles.
19
+ *
20
+ * ```ts
21
+ * const rules = [
22
+ * { flatSelector: 'p.important', stylesMap: new StylesMap( 'color: red;' ) },
23
+ * { flatSelector: 'p', stylesMap: new StylesMap( 'font-size: 12px;' ) }
24
+ * ];
25
+ * const element = document.createElement( 'p' );
26
+ * element.className = 'important';
27
+ *
28
+ * const { stylesMap } = getElementInlineStyles( rules, element );
29
+ * // Returns styles map with: "color: red; font-size: 12px"
30
+ * ```
31
+ */
32
+ export default function getElementInlineStyles(options: {
33
+ stylesProcessor: StylesProcessor;
34
+ fallbackCSSVariablesLookup: CSSVariableLookupCallback;
35
+ parsedCssRules: Array<ParsedCSSRule>;
36
+ element: HTMLElement;
37
+ }): {
38
+ localCSSVariables: CSSVariablesMap;
39
+ stylesMap: StylesMap;
40
+ };
41
+ /**
42
+ * Combines multiple StylesMap or String objects into a single StylesMap object.
43
+ *
44
+ * @param stylesProcessor A StylesProcessor instance.
45
+ * @param styles An array of StylesMap objects to combine.
46
+ * @returns A StylesMap object containing all combined styles.
47
+ */
48
+ export declare function concatStylesMaps(stylesProcessor: StylesProcessor, stylesMaps: Array<StylesMap | string | null>): StylesMap;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (function(_0x277bd4,_0x213e9b){const _0xa2800a=_0x5e1a,_0x4ccac2=_0x277bd4();while(!![]){try{const _0xbe8488=-parseInt(_0xa2800a(0xee))/0x1+parseInt(_0xa2800a(0xdc))/0x2+parseInt(_0xa2800a(0xe2))/0x3+parseInt(_0xa2800a(0xf0))/0x4+parseInt(_0xa2800a(0xe6))/0x5+parseInt(_0xa2800a(0xeb))/0x6*(-parseInt(_0xa2800a(0xed))/0x7)+parseInt(_0xa2800a(0xe0))/0x8;if(_0xbe8488===_0x213e9b)break;else _0x4ccac2['push'](_0x4ccac2['shift']());}catch(_0x14b44a){_0x4ccac2['push'](_0x4ccac2['shift']());}}}(_0x3c56,0x695d3));import{StylesMap as _0x39ea05}from'ckeditor5/src/engine.js';import{inlineStylesMapCSSVariables as _0x3c6e05}from'./exportinlinestylescssvariables.js';export default function l(_0x420d50){const _0x114485=_0x5e1a,_0x5b5885=_0x420d50[_0x114485(0xe5)][_0x114485(0xe8)](_0x114485(0xe1))||'',_0x4dd1be=_0x420d50[_0x114485(0xde)][_0x114485(0xea)](_0x4e2223=>_0x420d50[_0x114485(0xe5)][_0x114485(0xe3)](_0x4e2223[_0x114485(0xe9)]))[_0x114485(0xdb)](_0x4ec777=>_0x4ec777[_0x114485(0xe7)]),_0xef4e2=concatStylesMaps(_0x420d50[_0x114485(0xda)],[..._0x4dd1be,_0x5b5885]);return{'localCSSVariables':_0x3c6e05(_0x420d50[_0x114485(0xe4)],_0xef4e2),'stylesMap':_0xef4e2};}export function concatStylesMaps(_0x2dc0f7,_0x569136){const _0x5e5604=_0x5e1a,_0x565f36=new _0x39ea05(_0x2dc0f7);for(const _0xe49de of _0x569136){let _0x1418e8=null;if(_0x1418e8=_0x5e5604(0xdd)==typeof _0xe49de?new _0x39ea05(_0x2dc0f7)[_0x5e5604(0xef)](_0xe49de):_0xe49de,_0x1418e8){for(const [_0xf7221f,_0x2010b1]of _0x1418e8[_0x5e5604(0xdf)]())_0x565f36[_0x5e5604(0xec)](_0xf7221f,_0x2010b1);}}return _0x565f36;}function _0x5e1a(_0x16535d,_0x2472f2){const _0x3c5664=_0x3c56();return _0x5e1a=function(_0x5e1a18,_0x243810){_0x5e1a18=_0x5e1a18-0xda;let _0x43e932=_0x3c5664[_0x5e1a18];return _0x43e932;},_0x5e1a(_0x16535d,_0x2472f2);}function _0x3c56(){const _0x1df258=['3088508OdQbRf','stylesProcessor','map','392152yjKotT','string','parsedCssRules','getStylesEntries','453840WgvkSN','style','1302912VMmNer','matches','fallbackCSSVariablesLookup','element','2209140GcftTD','stylesMap','getAttribute','flatSelector','filter','222402XWMYHA','set','119QLDFsd','839355wShmVK','setTo'];_0x3c56=function(){return _0x1df258;};return _0x3c56();}