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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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:()=>H,ExportInlineStylesCommand:()=>E,ExportInlineStylesEditing:()=>K,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,u,l,f;if(n.test(r))for(c=0,a=(o=r.match(n)).length;c<a;c+=1)s[e]+=1,u=o[c],l=r.indexOf(u),f=u.length,i.push({selector:t.substr(l,f),type:e,index:l,length:f}),r=r.replace(u,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(t){const n=a,e=[];let r="",s=0;for(;s<t[n(356)];){const i=t[s];if("("===i){const e=l(t,s+1);if(-1===e)return[];r+=t[n(360)](s,e+1),s=e+1}else","!==i||r[n(365)]("\\")?(r+=i,s++):(e[n(364)](r[n(355)]()),r="",s++)}return r[n(355)]()&&e[n(364)](r[n(355)]()),e[n(357)](Boolean)}function a(t,n){const e=u();return(a=function(t,n){return e[t-=350]})(t,n)}function u(){const t=["20qydgHD","6036752HASzCe","trim","length","filter","5788380ygwFyv","8988504hZavMP","slice","12475962QMYNdS","168GTWDus","629276HiVHwM","push","endsWith","43258SJOLwa","replace","642245yNiUvr"];return(u=function(){return t})()}function l(t,n){const e=a;let r=1;for(let s=n;s<t[e(356)];s++){const n=t[s];if("("===n)r++;else if(")"===n&&(r--,0===r))return s}return-1}function f(t){const n=a;return t[n(351)](/!\s*important/i,"")[n(355)]()}function p(t,n){const e=d();return(p=function(t,n){return e[t-=465]})(t,n)}function y(t){const n=p,e=new Map;for(const{stylesMap:r,flatSelector:s}of t){if(n(475)!==s)continue;const t=h(e[n(465)][n(467)](e),r);for(const[r,s]of t)e[n(473)](r,s)}return e}function h(t,n){const e=p,r=new Map,s=n=>r[e(484)](n)?r[e(465)](n):t(n);for(const[t,i]of n[e(476)]())if(i&&t[e(470)]("--")){const o=I(s,i);r[e(473)](t,o),n[e(486)](t)}for(const[t,r]of n[e(476)]())if(r){const i=I(s,r);n[e(473)](t,i)}return r}function d(){const t=[":root","getStylesEntries","148kXHlPA","388356fhieDU","7560198gCRAnp","915915xseyny","7483848dTQpDv","length","substring","has","586256ewKyNr","remove","get","2LBdkdA","bind","var(","1577630OUOuUf","startsWith","indexOf","47133lYYWxX","set","slice"];return(d=function(){return t})()}function I(t,n){return function(t,n){const e=p;let r="",s=0;for(;s<t[e(482)];){const i=t[e(471)](e(468),s);if(-1===i){r+=t[e(474)](s);break}r+=t[e(474)](s,i);const o=i+4,c=l(t,o);r+=n(t[e(483)](o,c)),s=c+1}return r}(n,(n=>{const e=p,[r,s]=c(n),i=t(r);return void 0!==i?i:s?I(t,s):e(468)+r+")"}))}function w(t,n){const e=g();return(w=function(t,n){return e[t-=164]})(t,n)}function g(){const t=["flatMap","specificityArray","from","setTo","specificity","replace","stylesProcessor","10NMBKQs","cssRules","2233614VHkzYB","180212ccYqSW","21atyMrN","2617190vMRHtB","sort","length","map","inlineCss","12954717RAibgt","filter","18887AWjKHu","57040243PMONCC","8232fWhoLG","1OQxsbE","4233976FOiLHv","20FWlFNd","stylesheets","join","cssText","trim","81EvVKZH"];return(g=function(){return t})()}async function S(t){const e=w,r=[await(0,n.collectStylesheets)(t[e(181)]),t[e(172)]][e(174)]((t=>t&&t[e(170)]))[e(182)]("\n"),a=await async function(t,n){const r=e,a=new CSSStyleSheet;return await a[r(191)](n),m(Array[r(188)](a[r(164)])[r(174)]((t=>t instanceof CSSStyleRule)))[r(186)]((({selectorText:n,contentCssText:e})=>{const i=r,a=c(n),u=new o.StylesMap(t)[i(189)](e);return a[i(171)]((t=>({stylesMap:u,flatSelector:t,specificity:s(t)[0][i(187)]})))}))[r(169)](((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(190)],n[r(190)])))}(t[e(192)],r);return{parsedCssRules:a,rootCssVariables:y(a)}}function m(t,n=""){const e=w;return t[e(186)]((t=>{const r=e,{selectorText:s,cssText:i,cssRules:o}=t;if(!s)return[];const c=s[r(191)](/&/g,n);let a=i[r(191)](s,"")[r(184)]()[r(191)](/^{|}$/g,"");if(!o||!o[r(170)])return[{selectorText:c,contentCssText:a}];for(const t of o)a=a[r(191)](t[r(183)],"")[r(184)]();return[{selectorText:c,contentCssText:a},...m(Array[r(188)](o),c)]}))}function b(){const t=["filter","map","4894795ouvwHV","48SYiwAA","flatSelector","parsedCssRules","4EmbBDH","getAttribute","matches","getStylesEntries","string","stylesProcessor","307745ERrpuM","style","3273vqjebt","setTo","715421gAJupY","5680976iZFGTB","set","452iiTudg","element","21819710EVGZwl","4732704dowLjA","stylesMap","fallbackCSSVariablesLookup"];return(b=function(){return t})()}function x(t,n){const e=b();return(x=function(t,n){return e[t-=452]})(t,n)}function v(t,n){const e=x,r=new o.StylesMap(t);for(const s of n){let n=null;if(n=e(472)==typeof s?new o.StylesMap(t)[e(452)](s):s,n)for(const[t,s]of n[e(471)]())r[e(455)](t,s)}return r}!function(t){const n=a,e=t();for(;;)try{if(885973===parseInt(n(363))/1+-parseInt(n(350))/2*(-parseInt(n(362))/3)+parseInt(n(353))/4*(-parseInt(n(352))/5)+-parseInt(n(358))/6+parseInt(n(359))/7+parseInt(n(354))/8+-parseInt(n(361))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(u),function(t){const n=p,e=t();for(;;)try{if(482053===parseInt(n(466))/1*(parseInt(n(485))/2)+parseInt(n(472))/3*(-parseInt(n(477))/4)+parseInt(n(469))/5+-parseInt(n(478))/6+parseInt(n(480))/7+parseInt(n(481))/8+-parseInt(n(479))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(d),function(t){const n=w,e=t();for(;;)try{if(952581===-parseInt(n(178))/1*(-parseInt(n(168))/2)+-parseInt(n(185))/3*(-parseInt(n(166))/4)+parseInt(n(180))/5*(parseInt(n(165))/6)+parseInt(n(167))/7*(parseInt(n(179))/8)+-parseInt(n(173))/9*(parseInt(n(193))/10)+-parseInt(n(175))/11*(-parseInt(n(177))/12)+-parseInt(n(176))/13)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(g),function(t){const n=x,e=t();for(;;)try{if(553017===-parseInt(n(474))/1+parseInt(n(456))/2*(-parseInt(n(476))/3)+-parseInt(n(468))/4*(-parseInt(n(464))/5)+parseInt(n(465))/6*(-parseInt(n(453))/7)+-parseInt(n(454))/8+-parseInt(n(459))/9+parseInt(n(458))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(b);const C=A;function A(t,n){const e=L();return(A=function(t,n){return e[t-=383]})(t,n)}function L(){const t=["_stylesProcessor","getRoot","viewToDom","locale","21bgVkWz","982392xHIQax","domConverter","7392444TxsaEO","255218AmMnKn","div","toView","set","EDITOR_STYLES","isBusy","setAttribute","map","editor","then","36572041AqBeKw","htmlWriter","class","finally","getStylesEntries","children","2Gpmlmv","pending","_collectAndApplyStyles","4211367HyxTcO","htmlProcessor","execute","affectsData","main","_processElementTree","532kVnkfd","get","join","refresh","bind","value","style","isEnabled","appendChild","ck-content","createDocumentFragment","size","has","_getRootDataHTMLFragment","getHtml","document","firstChild","config","exportInlineStyles","ownerDocument","getAttribute","data","removeAttribute","transformations","11805COeIXg","10yoXpHL","2351970jSxjOV","stylesProcessor"];return(L=function(){return t})()}!function(t){const n=A,e=t();for(;;)try{if(854730===-parseInt(n(397))/1*(parseInt(n(442))/2)+-parseInt(n(400))/3+-parseInt(n(406))/4*(-parseInt(n(430))/5)+-parseInt(n(441))/6+-parseInt(n(438))/7*(-parseInt(n(439))/8)+-parseInt(n(432))/9+parseInt(n(431))/10*(parseInt(n(391))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(L);class E extends t.Command{[C(434)];constructor(t){const n=C;super(t),this[n(384)](n(386),!1),this[n(434)]=this[n(389)][n(427)][n(433)],(0,o.addMarginRules)(this[n(434)]),(0,o.addPaddingRules)(this[n(434)]),this[n(403)]=!1}[C(409)](){const t=C;this[t(413)]=!this[t(386)],this[t(411)]=this[t(386)]?t(398):void 0}async[C(402)](t){const e=C,r=this[e(389)][e(423)][e(407)](e(424)),{contentLanguageDirection:s}=this[e(389)][e(437)],{rootName:i=e(404),dataControllerDowncastOptions:o={},transformations:c=r[e(429)]||[]}=t||{};this[e(386)]=!0,this[e(409)]();const a=this[e(419)](i,o),u=(0,n.createElement)(a[e(425)],e(443),{dir:s,class:e(415)},[a]);return this[e(399)](c,u)[e(390)]((()=>{const t=e,n=function(t){const n=A,e=t[n(425)][n(416)]();for(;t[n(422)];)e[n(414)](t[n(422)]);return e}(u),r=u[t(426)](t(412));if(r)for(const e of n[t(396)]){const n=e[t(426)](t(412)),s=v(this[t(434)],[r,n]);e[t(387)](t(412),k(s))}return this[t(389)][t(427)][t(401)][t(392)][t(420)](n)}))[e(394)]((()=>{const t=e;this[t(386)]=!1,this[t(409)]()}))}[C(419)](t,n){const e=C,{data:r,model:s}=this[e(389)],i=s[e(421)][e(435)](t),o=r[e(383)](i,n);return r[e(401)][e(440)][e(436)](o)}async[C(399)](t,n){const e=C,{stylesheets:r,inlineCss:s,stripCssClasses:i}=this[e(389)][e(423)][e(407)](e(424)),{parsedCssRules:o,rootCssVariables:c}=await S({stylesheets:r||[e(385)],stylesProcessor:this[e(434)],inlineCss:s});this[e(405)]({transformations:t,parsedCssRules:o,element:n,stripCssClasses:i,parentCSSVariablesLookup:c[e(407)][e(410)](c)})}[C(405)]({element:t,parsedCssRules:n,parentCSSVariablesLookup:e,stripCssClasses:r,transformations:s}){const i=C,{stylesMap:o,localCSSVariables:c}=function(t){const n=x,e=t[n(457)][n(469)](n(475))||"",r=t[n(467)][n(462)]((e=>t[n(457)][n(470)](e[n(466)])))[n(463)]((t=>t[n(460)])),s=v(t[n(473)],[...r,e]);return{localCSSVariables:h(t[n(461)],s),stylesMap:s}}({stylesProcessor:this[i(434)],fallbackCSSVariablesLookup:e,parsedCssRules:n,element:t});for(const n of s)n(t,o);o[i(417)]?t[i(387)](i(412),k(o)):t[i(428)](i(412));const a=t=>c[i(418)](t)?c[i(407)](t):e(t);for(const e of t[i(396)])e instanceof HTMLElement&&this[i(405)]({element:e,parentCSSVariablesLookup:a,parsedCssRules:n,stripCssClasses:r,transformations:s});r&&t[i(428)](i(393))}}function k(t){const n=C;return t[n(395)]()[n(388)]((t=>t[n(408)](":")))[n(408)](";")+";"}function O(t,n){const e=P();return(O=function(t,n){return e[t-=100]})(t,n)}const T=O;function P(){const t=["ExportInlineStylesEditing","7vapPoR","212960QojFRt","define","exportInlineStyles","isPremiumPlugin","init","stop","2133756STbARk","3nqecWJ","isOfficialPlugin","href","map","207127bopkLu","739424cKLSkK","532668hnFmwZ","afterInit","commands","add","config","2165215tEnNOb","fromCharCode","1021936OwEviP","editor","join","pluginName"];return(P=function(){return t})()}!function(t){const n=O,e=t();for(;;)try{if(217600===parseInt(n(100))/1+parseInt(n(101))/2*(parseInt(n(122))/3)+parseInt(n(115))/4+-parseInt(n(107))/5+-parseInt(n(102))/6+-parseInt(n(114))/7*(parseInt(n(109))/8)+parseInt(n(121))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(P);class K extends t.Plugin{static get[T(112)](){return T(113)}static get[T(123)](){return!0}static get[T(118)](){return!0}[T(119)](){const t=T;this[t(110)][t(106)][t(116)](t(117),{}),this[t(110)][t(104)][t(105)](t(117),new E(this[t(110)]))}[T(103)](){!async function(t){const e=d([56,115,71,104,85,97,52,70,112,103,54,73,122,84,87,106,120,107,111,105,65,110,50,76,81,118,119,121,108,48,114,77,67,78,69,86,74,99,116,49,57,101,113,109,102,53,72,88,68,90,89,55,98,66,83,75,100,79,51,117,80,82]),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 u(t){return t[d([115,116,97,114,116,115,87,105,116,104])](d([101,121]))?JSON[d([112,97,114,115,101])](l(t)):null}function l(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 y(t){return t[d([115,112,108,105,116])]("")[d([114,101,118,101,114,115,101])]()[d([106,111,105,110])]("")}function h(){}function d(t){const n=O;return t[n(125)]((t=>String[n(108)](t)))[n(111)]("")}!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([115]);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=O;await i;const n=s[t(104)][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(120)]()}),{priority:d([104,105,103,104,101,115,116])}),s[d([109,111,100,101,108])][d([99,104,97,110,103,101])]=h,s[d([109,111,100,101,108])][d([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,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,h=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=u(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])]&&(h=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 u=!1;const l=(0,n.uid)();function h(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(l+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=y(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])](y(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])]:l}}),{[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=>{h(t[d([114,101,116,117,114,110])])&&(u=!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])]((()=>{u||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=u(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])](l(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:1742947200;return t[d([101,120,112])]<n}()?d([69,120,112,105,114,101,100]):function(){const n=O,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(124)]);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&&h?new(window[d([80,114,111,109,105,115,101])])(((t,n)=>{e[d([116,104,101,110])](t,n),h[d([116,104,101,110])]((n=>{n!=d([86,97,108,105,100])&&t(n)}),n)})):e||h||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)}}function M(t,n){const e=j();return(M=function(t,n){return e[t-=105]})(t,n)}const R=M;function j(){const t=["3677499FAflCn","isPremiumPlugin","exportInlineStylesLicenseKeyInvalid","trialLimit","84oxXGNa","featureNotAllowed","exportInlineStylesLicenseKeyExpired","exportInlineStylesLicenseKeyNotAllowed","get","invalid","usageLimit","domainLimit","destroy","13418eOLWLn","init","licenseKey","config","exportInlineStylesLicenseKeyEvaluationLimit","115015ZQEkFd","isOfficialPlugin","exportInlineStylesLicenseKeyUsageLimit","_licenseKeyCheckInterval","4039804WhGpsD","528327lgqKui","ExportInlineStyles","expired","exportInlineStylesLicenseKeyTrialLimit","exportInlineStylesLicenseKeyDomainLimit","5833128noyHPY","exportInlineStylesLicenseKeyValid","pluginName","editor","evaluationLimit","requires","_showLicenseError","102BRYUlL","30826863HykAjc"];return(j=function(){return t})()}!function(t){const n=M,e=t();for(;;)try{if(622373===parseInt(n(138))/1*(-parseInt(n(116))/2)+-parseInt(n(126))/3+-parseInt(n(125))/4+parseInt(n(121))/5*(parseInt(n(107))/6)+-parseInt(n(140))/7+-parseInt(n(131))/8+parseInt(n(139))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(j);class H extends t.Plugin{[R(118)];[R(124)];static get[R(133)](){return R(127)}static get[R(122)](){return!0}static get[R(141)](){return!0}static get[R(136)](){return[K]}[R(117)](){const t=R;this[t(118)]=this[t(134)][t(119)][t(111)](t(118));const n=this[t(134)];this[t(124)]=setInterval((()=>{const e=t;let r;for(const t in n){const s=t,i=n[s];if(e(132)==i||e(105)==i||e(109)==i||e(130)==i||e(110)==i||e(120)==i||e(129)==i||e(123)==i){delete n[s],r=i,clearInterval(this[e(124)]),this[e(124)]=void 0;break}}e(105)==r&&n[e(137)](e(112)),e(109)==r&&n[e(137)](e(128)),e(130)==r&&n[e(137)](e(114)),e(110)==r&&n[e(137)](e(108),e(127)),e(120)==r&&n[e(137)](e(135)),e(129)==r&&n[e(137)](e(106)),e(123)==r&&n[e(137)](e(113))}),1e3)}[R(115)](){const t=R;super[t(115)](),this[t(124)]&&clearInterval(this[t(124)])}}function V(t,n){var e=D();return(V=function(t,n){return e[t-=372]})(t,n)}function D(){var t=["4396NaFMsB","12216520ryKpnR","361450IqlToU","1269IPuKoD","1692586lPiDKz","109578WYtQNQ","6284088ezyinv","90BuUdSI","1417483doHOrK"];return(D=function(){return t})()}!function(t){for(var n=V,e=t();;)try{if(807546===parseInt(n(380))/1+parseInt(n(376))/2+parseInt(n(375))/3*(-parseInt(n(372))/4)+parseInt(n(374))/5+-parseInt(n(379))/6*(parseInt(n(377))/7)+-parseInt(n(373))/8+parseInt(n(378))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(D)})(),(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 _0x53fb42,Plugin as _0x190f1a}from'@ckeditor/ckeditor5-core/dist/index.js';import{collectStylesheets as _0x114d7e,createElement as _0x31c569,uid as _0x40eb21}from'@ckeditor/ckeditor5-utils/dist/index.js';import{calculate as _0x283764,compare as _0x35a528}from'specificity';import{StylesMap as _0x551c9f,addMarginRules as _0x55d723,addPaddingRules as _0x124ce8}from'@ckeditor/ckeditor5-engine/dist/index.js';function C(_0x2d8e03){const _0x4cffc9=[];let _0x1b7faa='',_0x199abe=0x0;for(;_0x199abe<_0x2d8e03['length'];){const _0x3913bb=_0x2d8e03[_0x199abe];if('('===_0x3913bb){const _0x4a09c5=M(_0x2d8e03,_0x199abe+0x1);if(-0x1===_0x4a09c5)return[];_0x1b7faa+=_0x2d8e03['slice'](_0x199abe,_0x4a09c5+0x1),_0x199abe=_0x4a09c5+0x1;}else','!==_0x3913bb||_0x1b7faa['endsWith']('\x5c')?(_0x1b7faa+=_0x3913bb,_0x199abe++):(_0x4cffc9['push'](_0x1b7faa['trim']()),_0x1b7faa='',_0x199abe++);}return _0x1b7faa['trim']()&&_0x4cffc9['push'](_0x1b7faa['trim']()),_0x4cffc9['filter'](Boolean);}function M(_0x4b048c,_0xcf81c8){let _0x2dfb65=0x1;for(let _0x98abd=_0xcf81c8;_0x98abd<_0x4b048c['length'];_0x98abd++){const _0xe34ad1=_0x4b048c[_0x98abd];if('('===_0xe34ad1)_0x2dfb65++;else{if(')'===_0xe34ad1&&(_0x2dfb65--,0x0===_0x2dfb65))return _0x98abd;}}return-0x1;}function g(_0x23b2c9){return _0x23b2c9['replace'](/!\s*important/i,'')['trim']();}function d(_0x512517,_0x4d96ad){const _0x46726e=new Map(),_0x41eaeb=_0x5b724f=>_0x46726e['has'](_0x5b724f)?_0x46726e['get'](_0x5b724f):_0x512517(_0x5b724f);for(const [_0x49bcc5,_0x1c67e9]of _0x4d96ad['getStylesEntries']())if(_0x1c67e9&&_0x49bcc5['startsWith']('--')){const _0x5a0e95=b(_0x41eaeb,_0x1c67e9);_0x46726e['set'](_0x49bcc5,_0x5a0e95),_0x4d96ad['remove'](_0x49bcc5);}for(const [_0x3ff1d4,_0x4bfa75]of _0x4d96ad['getStylesEntries']())if(_0x4bfa75){const _0x3f053b=b(_0x41eaeb,_0x4bfa75);_0x4d96ad['set'](_0x3ff1d4,_0x3f053b);}return _0x46726e;}function b(_0x2bfc3d,_0x26814f){return function(_0x1eb776,_0x1bd368){let _0x74c58='',_0x9edd9d=0x0;for(;_0x9edd9d<_0x1eb776['length'];){const _0x19362b=_0x1eb776['indexOf']('var(',_0x9edd9d);if(-0x1===_0x19362b){_0x74c58+=_0x1eb776['slice'](_0x9edd9d);break;}_0x74c58+=_0x1eb776['slice'](_0x9edd9d,_0x19362b);const _0x19656a=_0x19362b+0x4,_0x302f34=M(_0x1eb776,_0x19656a);_0x74c58+=_0x1bd368(_0x1eb776['substring'](_0x19656a,_0x302f34)),_0x9edd9d=_0x302f34+0x1;}return _0x74c58;}(_0x26814f,_0x42a279=>{const [_0x1c772f,_0x34e769]=C(_0x42a279),_0x3a32ff=_0x2bfc3d(_0x1c772f);return void 0x0!==_0x3a32ff?_0x3a32ff:_0x34e769?b(_0x2bfc3d,_0x34e769):'var('+_0x1c772f+')';});}async function r(_0xfade06){const _0x566865=[await _0x114d7e(_0xfade06['stylesheets']),_0xfade06['inlineCss']]['filter'](_0x289b90=>_0x289b90&&_0x289b90['length'])['join']('\x0a'),_0xd136c1=await async function(_0x1e6bdb,_0x99e2e3){const _0x248b31=new CSSStyleSheet();return await _0x248b31['replace'](_0x99e2e3),w(Array['from'](_0x248b31['cssRules'])['filter'](_0x3f9b3b=>_0x3f9b3b instanceof CSSStyleRule))['flatMap'](({selectorText:_0x546a87,contentCssText:_0x314cf5})=>{const _0x27481d=C(_0x546a87),_0x563d3e=new _0x551c9f(_0x1e6bdb)['setTo'](_0x314cf5);return _0x27481d['map'](_0x2299ce=>({'stylesMap':_0x563d3e,'flatSelector':_0x2299ce,'specificity':_0x283764(_0x2299ce)[0x0]['specificityArray']}));})['sort']((_0x599cbf,_0x26af6b)=>_0x35a528(_0x599cbf['specificity'],_0x26af6b['specificity']));}(_0xfade06['stylesProcessor'],_0x566865);return{'parsedCssRules':_0xd136c1,'rootCssVariables':function(_0x33aaef){const _0x4a63e7=new Map();for(const {stylesMap:_0x5edd48,flatSelector:_0x3d5cc2}of _0x33aaef){if(':root'!==_0x3d5cc2)continue;const _0xb047ce=d(_0x4a63e7['get']['bind'](_0x4a63e7),_0x5edd48);for(const [_0x530039,_0x548b13]of _0xb047ce)_0x4a63e7['set'](_0x530039,_0x548b13);}return _0x4a63e7;}(_0xd136c1)};}function w(_0xebe8ba,_0x246103=''){return _0xebe8ba['flatMap'](_0x5dd5aa=>{const {selectorText:_0x23d0eb,cssText:_0x27c4f8,cssRules:_0x229c6e}=_0x5dd5aa;if(!_0x23d0eb)return[];const _0x2e6561=_0x23d0eb['replace'](/&/g,_0x246103);let _0x39c2c8=_0x27c4f8['replace'](_0x23d0eb,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x229c6e||!_0x229c6e['length'])return[{'selectorText':_0x2e6561,'contentCssText':_0x39c2c8}];for(const _0x54eb62 of _0x229c6e)_0x39c2c8=_0x39c2c8['replace'](_0x54eb62['cssText'],'')['trim']();return[{'selectorText':_0x2e6561,'contentCssText':_0x39c2c8},...w(Array['from'](_0x229c6e),_0x2e6561)];});}function a(_0x3694eb,_0x10a398){const _0x145c6f=new _0x551c9f(_0x3694eb);for(const _0x463d72 of _0x10a398){let _0x33e5a6=null;if(_0x33e5a6='string'==typeof _0x463d72?new _0x551c9f(_0x3694eb)['setTo'](_0x463d72):_0x463d72,_0x33e5a6){for(const [_0x22e542,_0x2aa4ad]of _0x33e5a6['getStylesEntries']())_0x145c6f['set'](_0x22e542,_0x2aa4ad);}}return _0x145c6f;}class h extends _0x53fb42{['_stylesProcessor'];constructor(_0x17050c){super(_0x17050c),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x55d723(this['_stylesProcessor']),_0x124ce8(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x344ad7){const _0x5db046=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0xb5f81a}=this['editor']['locale'],{rootName:_0x53c46c='main',dataControllerDowncastOptions:_0x28f587={},transformations:_0x577dcd=_0x5db046['transformations']||[]}=_0x344ad7||{};this['isBusy']=!0x0,this['refresh']();const _0x246480=this['_getRootDataHTMLFragment'](_0x53c46c,_0x28f587),_0x6082b2=_0x31c569(_0x246480['ownerDocument'],'div',{'dir':_0xb5f81a,'class':'ck-content'},[_0x246480]);return this['_collectAndApplyStyles'](_0x577dcd,_0x6082b2)['then'](()=>{const _0x25b609=function(_0x5a1b1f){const _0x270af2=_0x5a1b1f['ownerDocument']['createDocumentFragment']();for(;_0x5a1b1f['firstChild'];)_0x270af2['appendChild'](_0x5a1b1f['firstChild']);return _0x270af2;}(_0x6082b2),_0x438837=_0x6082b2['getAttribute']('style');if(_0x438837)for(const _0x541cde of _0x25b609['children']){const _0x5c2c25=_0x541cde['getAttribute']('style'),_0x32569d=a(this['_stylesProcessor'],[_0x438837,_0x5c2c25]);_0x541cde['setAttribute']('style',m(_0x32569d));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x25b609);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x42fbf4,_0x2f1e6d){const {data:_0xf067e4,model:_0x230e94}=this['editor'],_0x20ebfb=_0x230e94['document']['getRoot'](_0x42fbf4),_0x41ca20=_0xf067e4['toView'](_0x20ebfb,_0x2f1e6d);return _0xf067e4['htmlProcessor']['domConverter']['viewToDom'](_0x41ca20);}async['_collectAndApplyStyles'](_0x1eb04a,_0x4ede89){const {stylesheets:_0x40dc0c,inlineCss:_0x437d38,stripCssClasses:_0x3ac2d8}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x217c4b,rootCssVariables:_0x41b16a}=await r({'stylesheets':_0x40dc0c||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x437d38});this['_processElementTree']({'transformations':_0x1eb04a,'parsedCssRules':_0x217c4b,'element':_0x4ede89,'stripCssClasses':_0x3ac2d8,'parentCSSVariablesLookup':_0x41b16a['get']['bind'](_0x41b16a)});}['_processElementTree']({element:_0x2acc12,parsedCssRules:_0x17a9bf,parentCSSVariablesLookup:_0x3f4422,stripCssClasses:_0x2f1481,transformations:_0x171de5}){const {stylesMap:_0x1fce08,localCSSVariables:_0x569054}=function(_0x4ae90d){const _0xa662ab=_0x4ae90d['element']['getAttribute']('style')||'',_0x58ecc9=_0x4ae90d['parsedCssRules']['filter'](_0x94297b=>_0x4ae90d['element']['matches'](_0x94297b['flatSelector']))['map'](_0x21171b=>_0x21171b['stylesMap']),_0x3f6291=a(_0x4ae90d['stylesProcessor'],[..._0x58ecc9,_0xa662ab]);return{'localCSSVariables':d(_0x4ae90d['fallbackCSSVariablesLookup'],_0x3f6291),'stylesMap':_0x3f6291};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x3f4422,'parsedCssRules':_0x17a9bf,'element':_0x2acc12});for(const _0x5764b2 of _0x171de5)_0x5764b2(_0x2acc12,_0x1fce08);_0x1fce08['size']?_0x2acc12['setAttribute']('style',m(_0x1fce08)):_0x2acc12['removeAttribute']('style');const _0xcdb0e5=_0x4a6fc2=>_0x569054['has'](_0x4a6fc2)?_0x569054['get'](_0x4a6fc2):_0x3f4422(_0x4a6fc2);for(const _0x1f625d of _0x2acc12['children'])_0x1f625d instanceof HTMLElement&&this['_processElementTree']({'element':_0x1f625d,'parentCSSVariablesLookup':_0xcdb0e5,'parsedCssRules':_0x17a9bf,'stripCssClasses':_0x2f1481,'transformations':_0x171de5});_0x2f1481&&_0x2acc12['removeAttribute']('class');}}function m(_0x4fade4){return _0x4fade4['getStylesEntries']()['map'](_0x5b5d51=>_0x5b5d51['join'](':'))['join'](';')+';';}class i extends _0x190f1a{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(_0x3be690){const _0x1be84c=_0x15fe5e([0x38,0x73,0x47,0x68,0x55,0x61,0x34,0x46,0x70,0x67,0x36,0x49,0x7a,0x54,0x57,0x6a,0x78,0x6b,0x6f,0x69,0x41,0x6e,0x32,0x4c,0x51,0x76,0x77,0x79,0x6c,0x30,0x72,0x4d,0x43,0x4e,0x45,0x56,0x4a,0x63,0x74,0x31,0x39,0x65,0x71,0x6d,0x66,0x35,0x48,0x58,0x44,0x5a,0x59,0x37,0x62,0x42,0x53,0x4b,0x64,0x4f,0x33,0x75,0x50,0x52]),_0x194edb=0x4ae5c572,_0x247027=0x4ae2a64a^_0x194edb,_0x512c39=window[_0x15fe5e([0x44,0x61,0x74,0x65])][_0x15fe5e([0x6e,0x6f,0x77])](),_0xecfa64=_0x3be690[_0x15fe5e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x180e6a=new window[(_0x15fe5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22c648=>{_0xecfa64[_0x15fe5e([0x6f,0x6e,0x63,0x65])](_0x15fe5e([0x72,0x65,0x61,0x64,0x79]),_0x22c648);}),_0x52480e={[_0x15fe5e([0x6b,0x74,0x79])]:_0x15fe5e([0x45,0x43]),[_0x15fe5e([0x75,0x73,0x65])]:_0x15fe5e([0x73,0x69,0x67]),[_0x15fe5e([0x63,0x72,0x76])]:_0x15fe5e([0x50,0x2d,0x32,0x35,0x36]),[_0x15fe5e([0x78])]:_0x15fe5e([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]),[_0x15fe5e([0x79])]:_0x15fe5e([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]),[_0x15fe5e([0x61,0x6c,0x67])]:_0x15fe5e([0x45,0x53,0x32,0x35,0x36])},_0x4214c6=_0xecfa64[_0x15fe5e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x15fe5e([0x67,0x65,0x74])](_0x15fe5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xc8552(){let _0x9e7ada,_0x55c7fc=null,_0x33205d=null;try{if(_0x4214c6==_0x15fe5e([0x47,0x50,0x4c]))return _0x15fe5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9e7ada=_0x53707b(),!_0x9e7ada)return _0x15fe5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9e7ada[_0x15fe5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x33205d=_0x1636cc(_0x9e7ada[_0x15fe5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9e7ada[_0x15fe5e([0x6a,0x74,0x69])])),await _0x143861()?_0x459848()?_0x189d53()?_0x15fe5e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x450b3b()?(_0x9e7ada[_0x15fe5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15fe5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x55c7fc=_0x1c5269(_0x15fe5e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9e7ada[_0x15fe5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15fe5e([0x74,0x72,0x69,0x61,0x6c])&&(_0x55c7fc=_0x1c5269(_0x15fe5e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1188ba()):_0x15fe5e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x15fe5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x15fe5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4f86df){return _0x15fe5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x189d53(){const _0x25d9c3=[_0x15fe5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x15fe5e([0x74,0x72,0x69,0x61,0x6c])][_0x15fe5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9e7ada[_0x15fe5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x512c39/0x3e8:0xe10*_0x247027;return _0x9e7ada[_0x15fe5e([0x65,0x78,0x70])]<_0x25d9c3;}function _0x459848(){const _0x58be80=_0x9e7ada[_0x15fe5e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x58be80&&(!!_0x58be80[_0x15fe5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15fe5e([0x2a]))||!!_0x58be80[_0x15fe5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15fe5e([0x45,0x49,0x53])));}function _0x450b3b(){const _0x134940=_0x9e7ada[_0x15fe5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x134940||0x0==_0x134940[_0x15fe5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1706f6}=new URL(window[_0x15fe5e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x134940[_0x15fe5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1706f6))return!0x0;const _0x46d614=_0x1706f6[_0x15fe5e([0x73,0x70,0x6c,0x69,0x74])](_0x15fe5e([0x2e]));return _0x134940[_0x15fe5e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c095f=>_0x1c095f[_0x15fe5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15fe5e([0x2a])))[_0x15fe5e([0x6d,0x61,0x70])](_0x408a70=>_0x408a70[_0x15fe5e([0x73,0x70,0x6c,0x69,0x74])](_0x15fe5e([0x2e])))[_0x15fe5e([0x73,0x6f,0x6d,0x65])](_0x469139=>_0x46d614[_0x15fe5e([0x65,0x76,0x65,0x72,0x79])]((_0x5603e8,_0x3b8ef4)=>_0x469139[_0x3b8ef4]===_0x5603e8||_0x469139[_0x3b8ef4]===_0x15fe5e([0x2a])));}function _0x1188ba(){return _0x55c7fc&&_0x33205d?new window[(_0x15fe5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3abad6,_0x31902a)=>{_0x55c7fc[_0x15fe5e([0x74,0x68,0x65,0x6e])](_0x3abad6,_0x31902a),_0x33205d[_0x15fe5e([0x74,0x68,0x65,0x6e])](_0x5f564c=>{_0x5f564c!=_0x15fe5e([0x56,0x61,0x6c,0x69,0x64])&&_0x3abad6(_0x5f564c);},_0x31902a);}):_0x55c7fc||_0x33205d||_0x15fe5e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1636cc(_0x5db4ad,_0x14ae2f){return new window[(_0x15fe5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1af8be=>{if(_0x115e9d())return _0x1af8be(_0x15fe5e([0x56,0x61,0x6c,0x69,0x64]));_0x113151(),_0xecfa64[_0x15fe5e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x15fe5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x273659=!0x1;const _0x2f3100=_0x40eb21();function _0x2e2e57(_0x2704c5){return!!_0x2704c5&&(typeof _0x2704c5===_0x15fe5e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2704c5===_0x15fe5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2704c5[_0x15fe5e([0x74,0x68,0x65,0x6e])]===_0x15fe5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2704c5[_0x15fe5e([0x63,0x61,0x74,0x63,0x68])]===_0x15fe5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c2600(_0x5f4890){_0x3ddb3a(_0x5f4890)[_0x15fe5e([0x74,0x68,0x65,0x6e])](_0x5ac47f=>{if(!_0x5ac47f||_0x5ac47f[_0x15fe5e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x15fe5e([0x6f,0x6b]))return _0x15fe5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x510196(_0x4ae827(_0x2f3100+_0x14ae2f))!=_0x5ac47f[_0x15fe5e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x15fe5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x15fe5e([0x56,0x61,0x6c,0x69,0x64]);})[_0x15fe5e([0x74,0x68,0x65,0x6e])](_0x4e9db1=>(_0x389bae(),_0x4e9db1),()=>{const _0x2cfa96=_0x3ad32f();return null==_0x2cfa96?(_0x389bae(),_0x15fe5e([0x56,0x61,0x6c,0x69,0x64])):_0x15fe5e(_0x512c39-_0x2cfa96>(0x6ee94172^_0x194edb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x15fe5e([0x74,0x68,0x65,0x6e])](_0x1af8be)[_0x15fe5e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1af8be(_0x15fe5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x309864=0x4ad32bf2^_0x194edb;function _0x389bae(){const _0x4d3854=_0x15fe5e([0x6c,0x6c,0x63,0x74,0x2d])+_0x510196(_0x4ae827(_0x5db4ad)),_0xe8d245=_0xb0b0fa(_0x510196(window[_0x15fe5e([0x4d,0x61,0x74,0x68])][_0x15fe5e([0x63,0x65,0x69,0x6c])](_0x512c39/_0x309864)));window[_0x15fe5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15fe5e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d3854,_0xe8d245);}function _0x3ad32f(){const _0x426a15=_0x15fe5e([0x6c,0x6c,0x63,0x74,0x2d])+_0x510196(_0x4ae827(_0x5db4ad)),_0x1a2289=window[_0x15fe5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15fe5e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x426a15);return _0x1a2289?window[_0x15fe5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb0b0fa(_0x1a2289),0x10)*_0x309864:null;}function _0x3ddb3a(_0x5d3846){return new window[(_0x15fe5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f18d4,_0x15a90d)=>{_0x5d3846[_0x15fe5e([0x74,0x68,0x65,0x6e])](_0x2f18d4,_0x15a90d),window[_0x15fe5e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15a90d,0x4ae411b2^_0x194edb);});}}_0xecfa64[_0x15fe5e([0x6f,0x6e])](_0x15fe5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xf8a472,_0xc61902)=>{if(_0xc61902[0x0]!=_0x5db4ad)return _0x1af8be(_0x15fe5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xc61902[0x1]={..._0xc61902[0x1],[_0x15fe5e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f3100};},{[_0x15fe5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15fe5e([0x68,0x69,0x67,0x68])}),_0xecfa64[_0x15fe5e([0x6f,0x6e])](_0x15fe5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x30c998=>{_0x2e2e57(_0x30c998[_0x15fe5e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x273659=!0x0,_0x5c2600(_0x30c998[_0x15fe5e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x15fe5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15fe5e([0x6c,0x6f,0x77])}),_0x180e6a[_0x15fe5e([0x74,0x68,0x65,0x6e])](()=>{_0x273659||_0x1af8be(_0x15fe5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x115e9d(){return _0xecfa64[_0x15fe5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15fe5e([0x76,0x69,0x65,0x77])][_0x15fe5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x15fe5e([0x61,0x75,0x74,0x6f]);}function _0x113151(){_0xecfa64[_0x15fe5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15fe5e([0x76,0x69,0x65,0x77])][_0x15fe5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15fe5e([0x61,0x75,0x74,0x6f]);}}function _0x1c5269(_0x41eb43){const _0x442e4e=[new window[(_0x15fe5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x319736=>setTimeout(_0x319736,0x4aecfbbe^_0x194edb)),_0x180e6a[_0x15fe5e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x15fe5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3526d5=>{let _0x4be194=0x0;_0xecfa64[_0x15fe5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x15fe5e([0x6f,0x6e])](_0x15fe5e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2f91b8,_0x558d9b)=>{_0x558d9b[0x0][_0x15fe5e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4be194++,_0x4be194==(0x4ae5c48a^_0x194edb)&&(_0x3526d5(),_0x2f91b8[_0x15fe5e([0x6f,0x66,0x66])]());});}))];return window[_0x15fe5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15fe5e([0x72,0x61,0x63,0x65])](_0x442e4e)[_0x15fe5e([0x74,0x68,0x65,0x6e])](()=>_0x41eb43);}async function _0x343aa6(){await _0x180e6a;const _0x25b5bc=_0xecfa64['commands'][_0x15fe5e([0x67,0x65,0x74])](_0x15fe5e([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x25b5bc&&_0x25b5bc[_0x15fe5e([0x6f,0x6e])](_0x15fe5e([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0xf8690e=>{_0xf8690e['stop']();},{'priority':_0x15fe5e([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0xecfa64[_0x15fe5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x15fe5e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xfefd5f,_0xecfa64[_0x15fe5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x15fe5e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xfefd5f,_0xecfa64[_0x15fe5e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x15fe5e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x42a6a4(_0x2bd800){const _0x1f9c34=_0x3fc799();_0xecfa64[_0x1f9c34]=_0x15fe5e([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])+_0x2bd800,_0x2bd800!=_0x15fe5e([0x56,0x61,0x6c,0x69,0x64])&&_0x343aa6();}function _0x3fc799(){const _0x3a8a2f=window[_0x15fe5e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x15fe5e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15fe5e([0x6e,0x6f,0x77])]())[_0x15fe5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x15fe5e([0x2e]),'');let _0x42aecf=_0x15fe5e([0x73]);for(let _0x456bdf=0x0;_0x456bdf<_0x3a8a2f[_0x15fe5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x456bdf+=0x2){let _0x4459c0=window[_0x15fe5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a8a2f[_0x15fe5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x456bdf,_0x456bdf+0x2));_0x4459c0>=_0x1be84c[_0x15fe5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4459c0-=_0x1be84c[_0x15fe5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42aecf+=_0x1be84c[_0x4459c0];}return _0x42aecf;}function _0x53707b(){const _0x429e26=_0x4214c6[_0x15fe5e([0x73,0x70,0x6c,0x69,0x74])](_0x15fe5e([0x2e]));if(0x3!=_0x429e26[_0x15fe5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13e50d(_0x429e26[0x1]);function _0x13e50d(_0x2dca6d){const _0x457948=_0x2eda1a(_0x2dca6d);return _0x457948&&_0x381b1d()?_0x457948:null;function _0x381b1d(){const _0x59a7f5=_0x457948[_0x15fe5e([0x6a,0x74,0x69])],_0x5a2967=window[_0x15fe5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59a7f5[_0x15fe5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59a7f5[_0x15fe5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16d55b={..._0x457948,[_0x15fe5e([0x6a,0x74,0x69])]:_0x59a7f5[_0x15fe5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x59a7f5[_0x15fe5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16d55b[_0x15fe5e([0x76,0x63])],_0x4ae827(_0x16d55b)==_0x5a2967;}}}async function _0x143861(){let _0x148e2a=!0x0;try{const _0x417248=_0x4214c6[_0x15fe5e([0x73,0x70,0x6c,0x69,0x74])](_0x15fe5e([0x2e])),[_0x2a1ea6,_0x3e2a98,_0x2d5a32]=_0x417248;return _0x3b296b(_0x2a1ea6),await _0x11fc8f(_0x2a1ea6,_0x3e2a98,_0x2d5a32),_0x148e2a;}catch(_0xbfcc5b){return!0x1;}function _0x3b296b(_0x2d5601){const _0x10300e=_0x2eda1a(_0x2d5601);_0x10300e&&_0x10300e[_0x15fe5e([0x61,0x6c,0x67])]==_0x15fe5e([0x45,0x53,0x32,0x35,0x36])||(_0x148e2a=!0x1);}async function _0x11fc8f(_0x3e00bb,_0x410b6e,_0x2cdfe9){const _0x3e7195=window[_0x15fe5e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x15fe5e([0x66,0x72,0x6f,0x6d])](_0x2d34f9(_0x2cdfe9),_0x4205f5=>_0x4205f5[_0x15fe5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c5f83=new window[(_0x15fe5e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x15fe5e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3e00bb+_0x15fe5e([0x2e])+_0x410b6e),_0x3fb624=window[_0x15fe5e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x15fe5e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3fb624)return;const _0x3d5bc9=await _0x3fb624[_0x15fe5e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x15fe5e([0x6a,0x77,0x6b]),_0x52480e,{[_0x15fe5e([0x6e,0x61,0x6d,0x65])]:_0x15fe5e([0x45,0x43,0x44,0x53,0x41]),[_0x15fe5e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x15fe5e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x15fe5e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3fb624[_0x15fe5e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x15fe5e([0x6e,0x61,0x6d,0x65])]:_0x15fe5e([0x45,0x43,0x44,0x53,0x41]),[_0x15fe5e([0x68,0x61,0x73,0x68])]:{[_0x15fe5e([0x6e,0x61,0x6d,0x65])]:_0x15fe5e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d5bc9,_0x3e7195,_0x1c5f83)||(_0x148e2a=!0x1);}}function _0x2eda1a(_0x16bc88){return _0x16bc88[_0x15fe5e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x15fe5e([0x65,0x79]))?JSON[_0x15fe5e([0x70,0x61,0x72,0x73,0x65])](_0x2d34f9(_0x16bc88)):null;}function _0x2d34f9(_0x258ca9){return window[_0x15fe5e([0x61,0x74,0x6f,0x62])](_0x258ca9[_0x15fe5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x15fe5e([0x2b]))[_0x15fe5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x15fe5e([0x2f])));}function _0x4ae827(_0x8b50d9){let _0x337d86=0x1505;function _0x547e21(_0x357e53){for(let _0x2fe744=0x0;_0x2fe744<_0x357e53[_0x15fe5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2fe744++){const _0x45f0a4=_0x357e53[_0x15fe5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2fe744);_0x337d86=(_0x337d86<<0x5)+_0x337d86+_0x45f0a4,_0x337d86&=_0x337d86;}}function _0x2c0f5b(_0x123401){Array[_0x15fe5e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x123401)?_0x123401[_0x15fe5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c0f5b):_0x123401&&typeof _0x123401==_0x15fe5e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x15fe5e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x123401)[_0x15fe5e([0x73,0x6f,0x72,0x74])]()[_0x15fe5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40f93e,_0x41e4c0])=>{_0x547e21(_0x40f93e),_0x2c0f5b(_0x41e4c0);}):_0x547e21(window[_0x15fe5e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x123401));}return _0x2c0f5b(_0x8b50d9),_0x337d86>>>0x0;}function _0x510196(_0xba389f){return _0xba389f[_0x15fe5e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x15fe5e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x15fe5e([0x30]));}function _0xb0b0fa(_0x1077e6){return _0x1077e6[_0x15fe5e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x15fe5e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x15fe5e([0x6a,0x6f,0x69,0x6e])]('');}function _0xfefd5f(){}function _0x15fe5e(_0x53f620){return _0x53f620['map'](_0xff3fdd=>String['fromCharCode'](_0xff3fdd))['join']('');}_0x42a6a4(await _0xc8552());}(this);}}class n extends _0x190f1a{['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 _0x152a47=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x43a9a2;for(const _0xed2839 in _0x152a47){const _0x5e60a8=_0xed2839,_0x204413=_0x152a47[_0x5e60a8];if('exportInlineStylesLicenseKeyValid'==_0x204413||'exportInlineStylesLicenseKeyInvalid'==_0x204413||'exportInlineStylesLicenseKeyExpired'==_0x204413||'exportInlineStylesLicenseKeyDomainLimit'==_0x204413||'exportInlineStylesLicenseKeyNotAllowed'==_0x204413||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x204413||'exportInlineStylesLicenseKeyTrialLimit'==_0x204413||'exportInlineStylesLicenseKeyUsageLimit'==_0x204413){delete _0x152a47[_0x5e60a8],_0x43a9a2=_0x204413,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x43a9a2&&_0x152a47['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x43a9a2&&_0x152a47['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x43a9a2&&_0x152a47['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x43a9a2&&_0x152a47['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x43a9a2&&_0x152a47['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyTrialLimit'==_0x43a9a2&&_0x152a47['_showLicenseError']('trialLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x43a9a2&&_0x152a47['_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.0",
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.0",
29
+ "@ckeditor/ckeditor5-engine": "45.0.0-alpha.0",
30
+ "@ckeditor/ckeditor5-utils": "45.0.0-alpha.0",
31
+ "ckeditor5": "45.0.0-alpha.0",
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
+ function _0x2c53(_0x4573e3,_0x471462){const _0x135f3e=_0x135f();return _0x2c53=function(_0x2c53e7,_0x49cd7a){_0x2c53e7=_0x2c53e7-0x69;let _0x39164a=_0x135f3e[_0x2c53e7];return _0x39164a;},_0x2c53(_0x4573e3,_0x471462);}const _0x47f438=_0x2c53;function _0x135f(){const _0x4b9f98=['3677499FAflCn','isPremiumPlugin','exportInlineStylesLicenseKeyInvalid','trialLimit','84oxXGNa','featureNotAllowed','exportInlineStylesLicenseKeyExpired','exportInlineStylesLicenseKeyNotAllowed','get','invalid','usageLimit','domainLimit','destroy','13418eOLWLn','init','licenseKey','config','exportInlineStylesLicenseKeyEvaluationLimit','115015ZQEkFd','isOfficialPlugin','exportInlineStylesLicenseKeyUsageLimit','_licenseKeyCheckInterval','4039804WhGpsD','528327lgqKui','ExportInlineStyles','expired','exportInlineStylesLicenseKeyTrialLimit','exportInlineStylesLicenseKeyDomainLimit','5833128noyHPY','exportInlineStylesLicenseKeyValid','pluginName','editor','evaluationLimit','requires','_showLicenseError','102BRYUlL','30826863HykAjc'];_0x135f=function(){return _0x4b9f98;};return _0x135f();}(function(_0x47e002,_0x1118d2){const _0x184d3a=_0x2c53,_0x16c86e=_0x47e002();while(!![]){try{const _0x40b518=parseInt(_0x184d3a(0x8a))/0x1*(-parseInt(_0x184d3a(0x74))/0x2)+-parseInt(_0x184d3a(0x7e))/0x3+-parseInt(_0x184d3a(0x7d))/0x4+parseInt(_0x184d3a(0x79))/0x5*(parseInt(_0x184d3a(0x6b))/0x6)+-parseInt(_0x184d3a(0x8c))/0x7+-parseInt(_0x184d3a(0x83))/0x8+parseInt(_0x184d3a(0x8b))/0x9;if(_0x40b518===_0x1118d2)break;else _0x16c86e['push'](_0x16c86e['shift']());}catch(_0x5796da){_0x16c86e['push'](_0x16c86e['shift']());}}}(_0x135f,0x97f25));import{Plugin as _0x4519f4}from'ckeditor5/src/core.js';import _0x8cfb1e from'./exportinlinestylesediting.js';export default class n extends _0x4519f4{[_0x47f438(0x76)];[_0x47f438(0x7c)];static get[_0x47f438(0x85)](){const _0x4e1fbe=_0x47f438;return _0x4e1fbe(0x7f);}static get[_0x47f438(0x7a)](){return!0x0;}static get[_0x47f438(0x8d)](){return!0x0;}static get[_0x47f438(0x88)](){return[_0x8cfb1e];}[_0x47f438(0x75)](){const _0xbbd738=_0x47f438;this[_0xbbd738(0x76)]=this[_0xbbd738(0x86)][_0xbbd738(0x77)][_0xbbd738(0x6f)](_0xbbd738(0x76));const _0x4b438f=this[_0xbbd738(0x86)];this[_0xbbd738(0x7c)]=setInterval(()=>{const _0x526a3b=_0xbbd738;let _0xad4334;for(const _0x1aa32b in _0x4b438f){const _0x25e335=_0x1aa32b,_0x15d264=_0x4b438f[_0x25e335];if(_0x526a3b(0x84)==_0x15d264||_0x526a3b(0x69)==_0x15d264||_0x526a3b(0x6d)==_0x15d264||_0x526a3b(0x82)==_0x15d264||_0x526a3b(0x6e)==_0x15d264||_0x526a3b(0x78)==_0x15d264||_0x526a3b(0x81)==_0x15d264||_0x526a3b(0x7b)==_0x15d264){delete _0x4b438f[_0x25e335],_0xad4334=_0x15d264,clearInterval(this[_0x526a3b(0x7c)]),this[_0x526a3b(0x7c)]=void 0x0;break;}}_0x526a3b(0x69)==_0xad4334&&_0x4b438f[_0x526a3b(0x89)](_0x526a3b(0x70)),_0x526a3b(0x6d)==_0xad4334&&_0x4b438f[_0x526a3b(0x89)](_0x526a3b(0x80)),_0x526a3b(0x82)==_0xad4334&&_0x4b438f[_0x526a3b(0x89)](_0x526a3b(0x72)),_0x526a3b(0x6e)==_0xad4334&&_0x4b438f[_0x526a3b(0x89)](_0x526a3b(0x6c),_0x526a3b(0x7f)),_0x526a3b(0x78)==_0xad4334&&_0x4b438f[_0x526a3b(0x89)](_0x526a3b(0x87)),_0x526a3b(0x81)==_0xad4334&&_0x4b438f[_0x526a3b(0x89)](_0x526a3b(0x6a)),_0x526a3b(0x7b)==_0xad4334&&_0x4b438f[_0x526a3b(0x89)](_0x526a3b(0x71));},0x3e8);}[_0x47f438(0x73)](){const _0x4e9196=_0x47f438;super[_0x4e9196(0x73)](),this[_0x4e9196(0x7c)]&&clearInterval(this[_0x4e9196(0x7c)]);}}
@@ -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
+ const _0x43a319=_0x4caf;function _0x4caf(_0x3437be,_0x1895e0){const _0x4a9a18=_0x4a9a();return _0x4caf=function(_0x4caf4f,_0x2a0296){_0x4caf4f=_0x4caf4f-0x17f;let _0x3371c1=_0x4a9a18[_0x4caf4f];return _0x3371c1;},_0x4caf(_0x3437be,_0x1895e0);}(function(_0x5af914,_0x329aa3){const _0x5b02b0=_0x4caf,_0xf2a343=_0x5af914();while(!![]){try{const _0x2ce0bd=-parseInt(_0x5b02b0(0x18d))/0x1*(parseInt(_0x5b02b0(0x1ba))/0x2)+-parseInt(_0x5b02b0(0x190))/0x3+-parseInt(_0x5b02b0(0x196))/0x4*(-parseInt(_0x5b02b0(0x1ae))/0x5)+-parseInt(_0x5b02b0(0x1b9))/0x6+-parseInt(_0x5b02b0(0x1b6))/0x7*(-parseInt(_0x5b02b0(0x1b7))/0x8)+-parseInt(_0x5b02b0(0x1b0))/0x9+parseInt(_0x5b02b0(0x1af))/0xa*(parseInt(_0x5b02b0(0x187))/0xb);if(_0x2ce0bd===_0x329aa3)break;else _0xf2a343['push'](_0xf2a343['shift']());}catch(_0x187cc9){_0xf2a343['push'](_0xf2a343['shift']());}}}(_0x4a9a,0xd0aca));import{Command as _0xe582e1}from'ckeditor5/src/core.js';import{createElement as _0x4f95d3}from'ckeditor5/src/utils.js';function _0x4a9a(){const _0x199326=['_stylesProcessor','getRoot','viewToDom','locale','21bgVkWz','982392xHIQax','domConverter','7392444TxsaEO','255218AmMnKn','div','toView','set','EDITOR_STYLES','isBusy','setAttribute','map','editor','then','36572041AqBeKw','htmlWriter','class','finally','getStylesEntries','children','2Gpmlmv','pending','_collectAndApplyStyles','4211367HyxTcO','htmlProcessor','execute','affectsData','main','_processElementTree','532kVnkfd','get','join','refresh','bind','value','style','isEnabled','appendChild','ck-content','createDocumentFragment','size','has','_getRootDataHTMLFragment','getHtml','document','firstChild','config','exportInlineStyles','ownerDocument','getAttribute','data','removeAttribute','transformations','11805COeIXg','10yoXpHL','2351970jSxjOV','stylesProcessor'];_0x4a9a=function(){return _0x199326;};return _0x4a9a();}import _0x50fc5c from'./utils/exportinlinestylescollector.js';import _0x4739f4,{concatStylesMaps as _0x5bc662}from'./utils/exportinlinestylesmatcher.js';import{addMarginRules as _0x38cba7,addPaddingRules as _0x654248}from'ckeditor5/src/engine.js';export default class h extends _0xe582e1{[_0x43a319(0x1b2)];constructor(_0x3cd917){const _0xd5ae91=_0x43a319;super(_0x3cd917),this[_0xd5ae91(0x180)](_0xd5ae91(0x182),!0x1),this[_0xd5ae91(0x1b2)]=this[_0xd5ae91(0x185)][_0xd5ae91(0x1ab)][_0xd5ae91(0x1b1)],_0x38cba7(this[_0xd5ae91(0x1b2)]),_0x654248(this[_0xd5ae91(0x1b2)]),this[_0xd5ae91(0x193)]=!0x1;}[_0x43a319(0x199)](){const _0x4f8f69=_0x43a319;this[_0x4f8f69(0x19d)]=!this[_0x4f8f69(0x182)],this[_0x4f8f69(0x19b)]=this[_0x4f8f69(0x182)]?_0x4f8f69(0x18e):void 0x0;}async[_0x43a319(0x192)](_0x4e4be1){const _0x2b0ac6=_0x43a319,_0x23339f=this[_0x2b0ac6(0x185)][_0x2b0ac6(0x1a7)][_0x2b0ac6(0x197)](_0x2b0ac6(0x1a8)),{contentLanguageDirection:_0x1e224e}=this[_0x2b0ac6(0x185)][_0x2b0ac6(0x1b5)],{rootName:_0x3c872f=_0x2b0ac6(0x194),dataControllerDowncastOptions:_0x177cdf={},transformations:_0x268bce=_0x23339f[_0x2b0ac6(0x1ad)]||[]}=_0x4e4be1||{};this[_0x2b0ac6(0x182)]=!0x0,this[_0x2b0ac6(0x199)]();const _0x4086a4=this[_0x2b0ac6(0x1a3)](_0x3c872f,_0x177cdf),_0x1388ec=_0x4f95d3(_0x4086a4[_0x2b0ac6(0x1a9)],_0x2b0ac6(0x1bb),{'dir':_0x1e224e,'class':_0x2b0ac6(0x19f)},[_0x4086a4]);return this[_0x2b0ac6(0x18f)](_0x268bce,_0x1388ec)[_0x2b0ac6(0x186)](()=>{const _0x4ba350=_0x2b0ac6,_0x77c5ab=function(_0x394b18){const _0x57f724=_0x4caf,_0x1897d5=_0x394b18[_0x57f724(0x1a9)][_0x57f724(0x1a0)]();for(;_0x394b18[_0x57f724(0x1a6)];)_0x1897d5[_0x57f724(0x19e)](_0x394b18[_0x57f724(0x1a6)]);return _0x1897d5;}(_0x1388ec),_0x2eadea=_0x1388ec[_0x4ba350(0x1aa)](_0x4ba350(0x19c));if(_0x2eadea)for(const _0x5e2823 of _0x77c5ab[_0x4ba350(0x18c)]){const _0x34b1aa=_0x5e2823[_0x4ba350(0x1aa)](_0x4ba350(0x19c)),_0xc670b5=_0x5bc662(this[_0x4ba350(0x1b2)],[_0x2eadea,_0x34b1aa]);_0x5e2823[_0x4ba350(0x183)](_0x4ba350(0x19c),m(_0xc670b5));}return this[_0x4ba350(0x185)][_0x4ba350(0x1ab)][_0x4ba350(0x191)][_0x4ba350(0x188)][_0x4ba350(0x1a4)](_0x77c5ab);})[_0x2b0ac6(0x18a)](()=>{const _0x57a4ed=_0x2b0ac6;this[_0x57a4ed(0x182)]=!0x1,this[_0x57a4ed(0x199)]();});}[_0x43a319(0x1a3)](_0x5e90c6,_0xa101a7){const _0x3a3c4c=_0x43a319,{data:_0x4ceea4,model:_0x7e6add}=this[_0x3a3c4c(0x185)],_0x3bbdd3=_0x7e6add[_0x3a3c4c(0x1a5)][_0x3a3c4c(0x1b3)](_0x5e90c6),_0x2012fd=_0x4ceea4[_0x3a3c4c(0x17f)](_0x3bbdd3,_0xa101a7);return _0x4ceea4[_0x3a3c4c(0x191)][_0x3a3c4c(0x1b8)][_0x3a3c4c(0x1b4)](_0x2012fd);}async[_0x43a319(0x18f)](_0x5d456d,_0x34c73f){const _0x155614=_0x43a319,{stylesheets:_0xb66c37,inlineCss:_0x49e6b5,stripCssClasses:_0x193e9f}=this[_0x155614(0x185)][_0x155614(0x1a7)][_0x155614(0x197)](_0x155614(0x1a8)),{parsedCssRules:_0x176737,rootCssVariables:_0xdbb374}=await _0x50fc5c({'stylesheets':_0xb66c37||[_0x155614(0x181)],'stylesProcessor':this[_0x155614(0x1b2)],'inlineCss':_0x49e6b5});this[_0x155614(0x195)]({'transformations':_0x5d456d,'parsedCssRules':_0x176737,'element':_0x34c73f,'stripCssClasses':_0x193e9f,'parentCSSVariablesLookup':_0xdbb374[_0x155614(0x197)][_0x155614(0x19a)](_0xdbb374)});}[_0x43a319(0x195)]({element:_0x3c1562,parsedCssRules:_0x533bb9,parentCSSVariablesLookup:_0x374a3d,stripCssClasses:_0x547c95,transformations:_0x2be926}){const _0x50c1c4=_0x43a319,{stylesMap:_0x407c85,localCSSVariables:_0x2a3804}=_0x4739f4({'stylesProcessor':this[_0x50c1c4(0x1b2)],'fallbackCSSVariablesLookup':_0x374a3d,'parsedCssRules':_0x533bb9,'element':_0x3c1562});for(const _0x197de5 of _0x2be926)_0x197de5(_0x3c1562,_0x407c85);_0x407c85[_0x50c1c4(0x1a1)]?_0x3c1562[_0x50c1c4(0x183)](_0x50c1c4(0x19c),m(_0x407c85)):_0x3c1562[_0x50c1c4(0x1ac)](_0x50c1c4(0x19c));const _0x3f5306=_0xe00fbc=>_0x2a3804[_0x50c1c4(0x1a2)](_0xe00fbc)?_0x2a3804[_0x50c1c4(0x197)](_0xe00fbc):_0x374a3d(_0xe00fbc);for(const _0x2a9b8d of _0x3c1562[_0x50c1c4(0x18c)])_0x2a9b8d instanceof HTMLElement&&this[_0x50c1c4(0x195)]({'element':_0x2a9b8d,'parentCSSVariablesLookup':_0x3f5306,'parsedCssRules':_0x533bb9,'stripCssClasses':_0x547c95,'transformations':_0x2be926});_0x547c95&&_0x3c1562[_0x50c1c4(0x1ac)](_0x50c1c4(0x189));}}function m(_0x32f1a9){const _0x1b9f64=_0x43a319;return _0x32f1a9[_0x1b9f64(0x18b)]()[_0x1b9f64(0x184)](_0x4daa91=>_0x4daa91[_0x1b9f64(0x198)](':'))[_0x1b9f64(0x198)](';')+';';}
@@ -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 _0x2131(_0x290c80,_0x37e4c7){const _0x4b1227=_0x4b12();return _0x2131=function(_0x213147,_0x220593){_0x213147=_0x213147-0x64;let _0x160d4f=_0x4b1227[_0x213147];return _0x160d4f;},_0x2131(_0x290c80,_0x37e4c7);}const _0x1dd809=_0x2131;function _0x4b12(){const _0x504de5=['ExportInlineStylesEditing','7vapPoR','212960QojFRt','define','exportInlineStyles','isPremiumPlugin','init','stop','2133756STbARk','3nqecWJ','isOfficialPlugin','href','map','207127bopkLu','739424cKLSkK','532668hnFmwZ','afterInit','commands','add','config','2165215tEnNOb','fromCharCode','1021936OwEviP','editor','join','pluginName'];_0x4b12=function(){return _0x504de5;};return _0x4b12();}(function(_0x306822,_0x7bc0f){const _0x48a8f1=_0x2131,_0x226a7d=_0x306822();while(!![]){try{const _0x35a568=parseInt(_0x48a8f1(0x64))/0x1+parseInt(_0x48a8f1(0x65))/0x2*(parseInt(_0x48a8f1(0x7a))/0x3)+parseInt(_0x48a8f1(0x73))/0x4+-parseInt(_0x48a8f1(0x6b))/0x5+-parseInt(_0x48a8f1(0x66))/0x6+-parseInt(_0x48a8f1(0x72))/0x7*(parseInt(_0x48a8f1(0x6d))/0x8)+parseInt(_0x48a8f1(0x79))/0x9;if(_0x35a568===_0x7bc0f)break;else _0x226a7d['push'](_0x226a7d['shift']());}catch(_0x4aee48){_0x226a7d['push'](_0x226a7d['shift']());}}}(_0x4b12,0x35200));import{Plugin as _0x59656c}from'ckeditor5/src/core.js';import{uid as _0x56efd2}from'ckeditor5/src/utils.js';import _0x5b32c5 from'./exportinlinestylescommand.js';export default class i extends _0x59656c{static get[_0x1dd809(0x70)](){const _0x36c2b0=_0x1dd809;return _0x36c2b0(0x71);}static get[_0x1dd809(0x7b)](){return!0x0;}static get[_0x1dd809(0x76)](){return!0x0;}[_0x1dd809(0x77)](){const _0x25662c=_0x1dd809;this[_0x25662c(0x6e)][_0x25662c(0x6a)][_0x25662c(0x74)](_0x25662c(0x75),{}),this[_0x25662c(0x6e)][_0x25662c(0x68)][_0x25662c(0x69)](_0x25662c(0x75),new _0x5b32c5(this[_0x25662c(0x6e)]));}[_0x1dd809(0x67)](){!async function(_0x4b962d){const _0x215d6c=_0x422bfe([0x38,0x73,0x47,0x68,0x55,0x61,0x34,0x46,0x70,0x67,0x36,0x49,0x7a,0x54,0x57,0x6a,0x78,0x6b,0x6f,0x69,0x41,0x6e,0x32,0x4c,0x51,0x76,0x77,0x79,0x6c,0x30,0x72,0x4d,0x43,0x4e,0x45,0x56,0x4a,0x63,0x74,0x31,0x39,0x65,0x71,0x6d,0x66,0x35,0x48,0x58,0x44,0x5a,0x59,0x37,0x62,0x42,0x53,0x4b,0x64,0x4f,0x33,0x75,0x50,0x52]),_0xa20fdf=0x4ae5c572,_0x244a8b=0x4ae2a64a^_0xa20fdf,_0x3f1327=window[_0x422bfe([0x44,0x61,0x74,0x65])][_0x422bfe([0x6e,0x6f,0x77])](),_0x40bff5=_0x4b962d[_0x422bfe([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59e26e=new window[(_0x422bfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38334a=>{_0x40bff5[_0x422bfe([0x6f,0x6e,0x63,0x65])](_0x422bfe([0x72,0x65,0x61,0x64,0x79]),_0x38334a);}),_0x2656c4={[_0x422bfe([0x6b,0x74,0x79])]:_0x422bfe([0x45,0x43]),[_0x422bfe([0x75,0x73,0x65])]:_0x422bfe([0x73,0x69,0x67]),[_0x422bfe([0x63,0x72,0x76])]:_0x422bfe([0x50,0x2d,0x32,0x35,0x36]),[_0x422bfe([0x78])]:_0x422bfe([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]),[_0x422bfe([0x79])]:_0x422bfe([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]),[_0x422bfe([0x61,0x6c,0x67])]:_0x422bfe([0x45,0x53,0x32,0x35,0x36])},_0x55dede=_0x40bff5[_0x422bfe([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x422bfe([0x67,0x65,0x74])](_0x422bfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52f67f(){let _0x1d9160,_0x43edad=null,_0x39bc88=null;try{if(_0x55dede==_0x422bfe([0x47,0x50,0x4c]))return _0x422bfe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d9160=_0x1cd771(),!_0x1d9160)return _0x422bfe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d9160[_0x422bfe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x39bc88=_0x405fd4(_0x1d9160[_0x422bfe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d9160[_0x422bfe([0x6a,0x74,0x69])])),await _0x3d1cec()?_0x2f4edb()?_0x4375a8()?_0x422bfe([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x58210d()?(_0x1d9160[_0x422bfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x422bfe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43edad=_0x5861d4(_0x422bfe([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d9160[_0x422bfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x422bfe([0x74,0x72,0x69,0x61,0x6c])&&(_0x43edad=_0x5861d4(_0x422bfe([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x7fc2ed()):_0x422bfe([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x422bfe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x422bfe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5b3128){return _0x422bfe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4375a8(){const _0x904589=[_0x422bfe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x422bfe([0x74,0x72,0x69,0x61,0x6c])][_0x422bfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d9160[_0x422bfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f1327/0x3e8:0xe10*_0x244a8b;return _0x1d9160[_0x422bfe([0x65,0x78,0x70])]<_0x904589;}function _0x2f4edb(){const _0x3aa398=_0x1d9160[_0x422bfe([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3aa398&&(!!_0x3aa398[_0x422bfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x422bfe([0x2a]))||!!_0x3aa398[_0x422bfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x422bfe([0x45,0x49,0x53])));}function _0x58210d(){const _0x17024b=_0x2131,_0x52e326=_0x1d9160[_0x422bfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x52e326||0x0==_0x52e326[_0x422bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x27eb77}=new URL(window[_0x422bfe([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x17024b(0x7c)]);if(_0x52e326[_0x422bfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27eb77))return!0x0;const _0x37f6b0=_0x27eb77[_0x422bfe([0x73,0x70,0x6c,0x69,0x74])](_0x422bfe([0x2e]));return _0x52e326[_0x422bfe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43d3d1=>_0x43d3d1[_0x422bfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x422bfe([0x2a])))[_0x422bfe([0x6d,0x61,0x70])](_0x4d2588=>_0x4d2588[_0x422bfe([0x73,0x70,0x6c,0x69,0x74])](_0x422bfe([0x2e])))[_0x422bfe([0x73,0x6f,0x6d,0x65])](_0x390457=>_0x37f6b0[_0x422bfe([0x65,0x76,0x65,0x72,0x79])]((_0x161191,_0x1d78da)=>_0x390457[_0x1d78da]===_0x161191||_0x390457[_0x1d78da]===_0x422bfe([0x2a])));}function _0x7fc2ed(){return _0x43edad&&_0x39bc88?new window[(_0x422bfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26b4f7,_0x90d3d9)=>{_0x43edad[_0x422bfe([0x74,0x68,0x65,0x6e])](_0x26b4f7,_0x90d3d9),_0x39bc88[_0x422bfe([0x74,0x68,0x65,0x6e])](_0x368f9=>{_0x368f9!=_0x422bfe([0x56,0x61,0x6c,0x69,0x64])&&_0x26b4f7(_0x368f9);},_0x90d3d9);}):_0x43edad||_0x39bc88||_0x422bfe([0x56,0x61,0x6c,0x69,0x64]);}}function _0x405fd4(_0x518425,_0x5af834){return new window[(_0x422bfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b5069=>{if(_0x1e8dc1())return _0x1b5069(_0x422bfe([0x56,0x61,0x6c,0x69,0x64]));_0xe7a278(),_0x40bff5[_0x422bfe([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x422bfe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x28ea13=!0x1;const _0x119b6d=_0x56efd2();function _0x5d50d8(_0x18e908){return!!_0x18e908&&(typeof _0x18e908===_0x422bfe([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x18e908===_0x422bfe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x18e908[_0x422bfe([0x74,0x68,0x65,0x6e])]===_0x422bfe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x18e908[_0x422bfe([0x63,0x61,0x74,0x63,0x68])]===_0x422bfe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2d7b27(_0x393793){_0x3dc9f7(_0x393793)[_0x422bfe([0x74,0x68,0x65,0x6e])](_0x5e267a=>{if(!_0x5e267a||_0x5e267a[_0x422bfe([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x422bfe([0x6f,0x6b]))return _0x422bfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5338c1(_0x4e28b0(_0x119b6d+_0x5af834))!=_0x5e267a[_0x422bfe([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x422bfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x422bfe([0x56,0x61,0x6c,0x69,0x64]);})[_0x422bfe([0x74,0x68,0x65,0x6e])](_0x50964f=>(_0x1c2234(),_0x50964f),()=>{const _0x2c480f=_0x438f0d();return null==_0x2c480f?(_0x1c2234(),_0x422bfe([0x56,0x61,0x6c,0x69,0x64])):_0x422bfe(_0x3f1327-_0x2c480f>(0x6ee94172^_0xa20fdf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x422bfe([0x74,0x68,0x65,0x6e])](_0x1b5069)[_0x422bfe([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b5069(_0x422bfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5c979e=0x4ad32bf2^_0xa20fdf;function _0x1c2234(){const _0x5e7b66=_0x422bfe([0x6c,0x6c,0x63,0x74,0x2d])+_0x5338c1(_0x4e28b0(_0x518425)),_0x460d1b=_0x4928a5(_0x5338c1(window[_0x422bfe([0x4d,0x61,0x74,0x68])][_0x422bfe([0x63,0x65,0x69,0x6c])](_0x3f1327/_0x5c979e)));window[_0x422bfe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x422bfe([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e7b66,_0x460d1b);}function _0x438f0d(){const _0x2e7e80=_0x422bfe([0x6c,0x6c,0x63,0x74,0x2d])+_0x5338c1(_0x4e28b0(_0x518425)),_0x4b3dca=window[_0x422bfe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x422bfe([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e7e80);return _0x4b3dca?window[_0x422bfe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4928a5(_0x4b3dca),0x10)*_0x5c979e:null;}function _0x3dc9f7(_0xd6a34b){return new window[(_0x422bfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13d474,_0x55e605)=>{_0xd6a34b[_0x422bfe([0x74,0x68,0x65,0x6e])](_0x13d474,_0x55e605),window[_0x422bfe([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x55e605,0x4ae411b2^_0xa20fdf);});}}_0x40bff5[_0x422bfe([0x6f,0x6e])](_0x422bfe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x18743f,_0x25e572)=>{if(_0x25e572[0x0]!=_0x518425)return _0x1b5069(_0x422bfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x25e572[0x1]={..._0x25e572[0x1],[_0x422bfe([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x119b6d};},{[_0x422bfe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x422bfe([0x68,0x69,0x67,0x68])}),_0x40bff5[_0x422bfe([0x6f,0x6e])](_0x422bfe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x27348c=>{_0x5d50d8(_0x27348c[_0x422bfe([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x28ea13=!0x0,_0x2d7b27(_0x27348c[_0x422bfe([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x422bfe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x422bfe([0x6c,0x6f,0x77])}),_0x59e26e[_0x422bfe([0x74,0x68,0x65,0x6e])](()=>{_0x28ea13||_0x1b5069(_0x422bfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e8dc1(){return _0x40bff5[_0x422bfe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x422bfe([0x76,0x69,0x65,0x77])][_0x422bfe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x422bfe([0x61,0x75,0x74,0x6f]);}function _0xe7a278(){_0x40bff5[_0x422bfe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x422bfe([0x76,0x69,0x65,0x77])][_0x422bfe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x422bfe([0x61,0x75,0x74,0x6f]);}}function _0x5861d4(_0x4fa5c7){const _0x26e81f=[new window[(_0x422bfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x578386=>setTimeout(_0x578386,0x4aecfbbe^_0xa20fdf)),_0x59e26e[_0x422bfe([0x74,0x68,0x65,0x6e])](()=>new window[(_0x422bfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x398a85=>{let _0x2db7aa=0x0;_0x40bff5[_0x422bfe([0x6d,0x6f,0x64,0x65,0x6c])][_0x422bfe([0x6f,0x6e])](_0x422bfe([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1f50c7,_0x445545)=>{_0x445545[0x0][_0x422bfe([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2db7aa++,_0x2db7aa==(0x4ae5c48a^_0xa20fdf)&&(_0x398a85(),_0x1f50c7[_0x422bfe([0x6f,0x66,0x66])]());});}))];return window[_0x422bfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x422bfe([0x72,0x61,0x63,0x65])](_0x26e81f)[_0x422bfe([0x74,0x68,0x65,0x6e])](()=>_0x4fa5c7);}async function _0xdd64a9(){const _0x36b41f=_0x2131;await _0x59e26e;const _0x2e6ef8=_0x40bff5[_0x36b41f(0x68)][_0x422bfe([0x67,0x65,0x74])](_0x422bfe([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x2e6ef8&&_0x2e6ef8[_0x422bfe([0x6f,0x6e])](_0x422bfe([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x54685f=>{const _0x854d1a=_0x36b41f;_0x54685f[_0x854d1a(0x78)]();},{'priority':_0x422bfe([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0x40bff5[_0x422bfe([0x6d,0x6f,0x64,0x65,0x6c])][_0x422bfe([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xcfd6a6,_0x40bff5[_0x422bfe([0x6d,0x6f,0x64,0x65,0x6c])][_0x422bfe([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xcfd6a6,_0x40bff5[_0x422bfe([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x422bfe([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5cf541(_0x1f935a){const _0x3d62c7=_0x4d495a();_0x40bff5[_0x3d62c7]=_0x422bfe([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])+_0x1f935a,_0x1f935a!=_0x422bfe([0x56,0x61,0x6c,0x69,0x64])&&_0xdd64a9();}function _0x4d495a(){const _0x4f3a3c=window[_0x422bfe([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x422bfe([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x422bfe([0x6e,0x6f,0x77])]())[_0x422bfe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x422bfe([0x2e]),'');let _0x5f414e=_0x422bfe([0x73]);for(let _0x1bfbb4=0x0;_0x1bfbb4<_0x4f3a3c[_0x422bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bfbb4+=0x2){let _0x21aa3c=window[_0x422bfe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f3a3c[_0x422bfe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bfbb4,_0x1bfbb4+0x2));_0x21aa3c>=_0x215d6c[_0x422bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x21aa3c-=_0x215d6c[_0x422bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5f414e+=_0x215d6c[_0x21aa3c];}return _0x5f414e;}function _0x1cd771(){const _0x4940bf=_0x55dede[_0x422bfe([0x73,0x70,0x6c,0x69,0x74])](_0x422bfe([0x2e]));if(0x3!=_0x4940bf[_0x422bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x46f3c8(_0x4940bf[0x1]);function _0x46f3c8(_0xf5ed44){const _0x48a82f=_0xa57e9e(_0xf5ed44);return _0x48a82f&&_0x2fb5f0()?_0x48a82f:null;function _0x2fb5f0(){const _0x33f289=_0x48a82f[_0x422bfe([0x6a,0x74,0x69])],_0x1d0fe7=window[_0x422bfe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33f289[_0x422bfe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33f289[_0x422bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x570646={..._0x48a82f,[_0x422bfe([0x6a,0x74,0x69])]:_0x33f289[_0x422bfe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x33f289[_0x422bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x570646[_0x422bfe([0x76,0x63])],_0x4e28b0(_0x570646)==_0x1d0fe7;}}}async function _0x3d1cec(){let _0x58e90c=!0x0;try{const _0x119dee=_0x55dede[_0x422bfe([0x73,0x70,0x6c,0x69,0x74])](_0x422bfe([0x2e])),[_0x4002ba,_0x5dd6af,_0x2da3cf]=_0x119dee;return _0x4fdb10(_0x4002ba),await _0x2c49b(_0x4002ba,_0x5dd6af,_0x2da3cf),_0x58e90c;}catch(_0x487772){return!0x1;}function _0x4fdb10(_0x1e74ff){const _0x5fee47=_0xa57e9e(_0x1e74ff);_0x5fee47&&_0x5fee47[_0x422bfe([0x61,0x6c,0x67])]==_0x422bfe([0x45,0x53,0x32,0x35,0x36])||(_0x58e90c=!0x1);}async function _0x2c49b(_0xb3ff07,_0x3f3c04,_0x2f4798){const _0x57ad9d=window[_0x422bfe([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x422bfe([0x66,0x72,0x6f,0x6d])](_0x73fe84(_0x2f4798),_0x4b7bcc=>_0x4b7bcc[_0x422bfe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1df215=new window[(_0x422bfe([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x422bfe([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xb3ff07+_0x422bfe([0x2e])+_0x3f3c04),_0x91e8b9=window[_0x422bfe([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x422bfe([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x91e8b9)return;const _0x343c37=await _0x91e8b9[_0x422bfe([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x422bfe([0x6a,0x77,0x6b]),_0x2656c4,{[_0x422bfe([0x6e,0x61,0x6d,0x65])]:_0x422bfe([0x45,0x43,0x44,0x53,0x41]),[_0x422bfe([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x422bfe([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x422bfe([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x91e8b9[_0x422bfe([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x422bfe([0x6e,0x61,0x6d,0x65])]:_0x422bfe([0x45,0x43,0x44,0x53,0x41]),[_0x422bfe([0x68,0x61,0x73,0x68])]:{[_0x422bfe([0x6e,0x61,0x6d,0x65])]:_0x422bfe([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x343c37,_0x57ad9d,_0x1df215)||(_0x58e90c=!0x1);}}function _0xa57e9e(_0x508a92){return _0x508a92[_0x422bfe([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x422bfe([0x65,0x79]))?JSON[_0x422bfe([0x70,0x61,0x72,0x73,0x65])](_0x73fe84(_0x508a92)):null;}function _0x73fe84(_0x3c7a18){return window[_0x422bfe([0x61,0x74,0x6f,0x62])](_0x3c7a18[_0x422bfe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x422bfe([0x2b]))[_0x422bfe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x422bfe([0x2f])));}function _0x4e28b0(_0x25f1e0){let _0x496345=0x1505;function _0x47a170(_0x11d6fa){for(let _0x24a4f0=0x0;_0x24a4f0<_0x11d6fa[_0x422bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24a4f0++){const _0x4c942c=_0x11d6fa[_0x422bfe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24a4f0);_0x496345=(_0x496345<<0x5)+_0x496345+_0x4c942c,_0x496345&=_0x496345;}}function _0x43f0bd(_0x44deb4){Array[_0x422bfe([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x44deb4)?_0x44deb4[_0x422bfe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43f0bd):_0x44deb4&&typeof _0x44deb4==_0x422bfe([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x422bfe([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x44deb4)[_0x422bfe([0x73,0x6f,0x72,0x74])]()[_0x422bfe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3394c5,_0x1dc6d3])=>{_0x47a170(_0x3394c5),_0x43f0bd(_0x1dc6d3);}):_0x47a170(window[_0x422bfe([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x44deb4));}return _0x43f0bd(_0x25f1e0),_0x496345>>>0x0;}function _0x5338c1(_0x3622e4){return _0x3622e4[_0x422bfe([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x422bfe([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x422bfe([0x30]));}function _0x4928a5(_0x1be5f5){return _0x1be5f5[_0x422bfe([0x73,0x70,0x6c,0x69,0x74])]('')[_0x422bfe([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x422bfe([0x6a,0x6f,0x69,0x6e])]('');}function _0xcfd6a6(){}function _0x422bfe(_0xf3a117){const _0x21bb9f=_0x2131;return _0xf3a117[_0x21bb9f(0x7d)](_0x26f173=>String[_0x21bb9f(0x6c)](_0x26f173))[_0x21bb9f(0x6f)]('');}_0x5cf541(await _0x52f67f());}(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(_0x562f79,_0x400059){const _0x16e0e1=_0x48ed,_0x283d1f=_0x562f79();while(!![]){try{const _0x445147=parseInt(_0x16e0e1(0x16b))/0x1+-parseInt(_0x16e0e1(0x15e))/0x2*(-parseInt(_0x16e0e1(0x16a))/0x3)+parseInt(_0x16e0e1(0x161))/0x4*(-parseInt(_0x16e0e1(0x160))/0x5)+-parseInt(_0x16e0e1(0x166))/0x6+parseInt(_0x16e0e1(0x167))/0x7+parseInt(_0x16e0e1(0x162))/0x8+-parseInt(_0x16e0e1(0x169))/0x9;if(_0x445147===_0x400059)break;else _0x283d1f['push'](_0x283d1f['shift']());}catch(_0x2a45d4){_0x283d1f['push'](_0x283d1f['shift']());}}}(_0x5311,0xd84d5));export function splitByTopLevelComma(_0x2d931c){const _0x5ddf4a=_0x48ed,_0x2b4516=[];let _0x1c88b2='',_0x349f9e=0x0;for(;_0x349f9e<_0x2d931c[_0x5ddf4a(0x164)];){const _0x54eb56=_0x2d931c[_0x349f9e];if('('===_0x54eb56){const _0x281f9c=findMatchingParenthesis(_0x2d931c,_0x349f9e+0x1);if(-0x1===_0x281f9c)return[];_0x1c88b2+=_0x2d931c[_0x5ddf4a(0x168)](_0x349f9e,_0x281f9c+0x1),_0x349f9e=_0x281f9c+0x1;}else','!==_0x54eb56||_0x1c88b2[_0x5ddf4a(0x16d)]('\x5c')?(_0x1c88b2+=_0x54eb56,_0x349f9e++):(_0x2b4516[_0x5ddf4a(0x16c)](_0x1c88b2[_0x5ddf4a(0x163)]()),_0x1c88b2='',_0x349f9e++);}return _0x1c88b2[_0x5ddf4a(0x163)]()&&_0x2b4516[_0x5ddf4a(0x16c)](_0x1c88b2[_0x5ddf4a(0x163)]()),_0x2b4516[_0x5ddf4a(0x165)](Boolean);}function _0x48ed(_0x38f242,_0x1bb6f7){const _0x53119f=_0x5311();return _0x48ed=function(_0x48edf2,_0x1df191){_0x48edf2=_0x48edf2-0x15e;let _0x91f8dd=_0x53119f[_0x48edf2];return _0x91f8dd;},_0x48ed(_0x38f242,_0x1bb6f7);}function _0x5311(){const _0x489c05=['20qydgHD','6036752HASzCe','trim','length','filter','5788380ygwFyv','8988504hZavMP','slice','12475962QMYNdS','168GTWDus','629276HiVHwM','push','endsWith','43258SJOLwa','replace','642245yNiUvr'];_0x5311=function(){return _0x489c05;};return _0x5311();}export function findMatchingParenthesis(_0x45bf21,_0x376a77){const _0x4e3e72=_0x48ed;let _0x9c267c=0x1;for(let _0x4bfbbb=_0x376a77;_0x4bfbbb<_0x45bf21[_0x4e3e72(0x164)];_0x4bfbbb++){const _0x5ad8a8=_0x45bf21[_0x4bfbbb];if('('===_0x5ad8a8)_0x9c267c++;else{if(')'===_0x5ad8a8&&(_0x9c267c--,0x0===_0x9c267c))return _0x4bfbbb;}}return-0x1;}export function dropImportantStyleSuffix(_0x455221){const _0x375043=_0x48ed;return _0x455221[_0x375043(0x15f)](/!\s*important/i,'')[_0x375043(0x163)]();}
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 _0x468c(_0x47ff7e,_0x20964d){var _0x12fc07=_0x12fc();return _0x468c=function(_0x468cf8,_0x35f401){_0x468cf8=_0x468cf8-0x174;var _0x252784=_0x12fc07[_0x468cf8];return _0x252784;},_0x468c(_0x47ff7e,_0x20964d);}(function(_0x9a667b,_0x53243f){var _0x291767=_0x468c,_0x2f9a5a=_0x9a667b();while(!![]){try{var _0x518629=parseInt(_0x291767(0x17c))/0x1+parseInt(_0x291767(0x178))/0x2+parseInt(_0x291767(0x177))/0x3*(-parseInt(_0x291767(0x174))/0x4)+parseInt(_0x291767(0x176))/0x5+-parseInt(_0x291767(0x17b))/0x6*(parseInt(_0x291767(0x179))/0x7)+-parseInt(_0x291767(0x175))/0x8+parseInt(_0x291767(0x17a))/0x9;if(_0x518629===_0x53243f)break;else _0x2f9a5a['push'](_0x2f9a5a['shift']());}catch(_0x14f786){_0x2f9a5a['push'](_0x2f9a5a['shift']());}}}(_0x12fc,0xc527a));export{default as ExportInlineStyles}from'./exportinlinestyles.js';export{default as ExportInlineStylesCommand}from'./exportinlinestylescommand.js';function _0x12fc(){var _0x5d8f9a=['4396NaFMsB','12216520ryKpnR','361450IqlToU','1269IPuKoD','1692586lPiDKz','109578WYtQNQ','6284088ezyinv','90BuUdSI','1417483doHOrK'];_0x12fc=function(){return _0x5d8f9a;};return _0x12fc();}export{default as ExportInlineStylesEditing}from'./exportinlinestylesediting.js';export{dropImportantStyleSuffix}from'./exportinlinestylesutils.js';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(_0x43e88b,_0x2ab127){const _0x37a433=_0x5ec4,_0x2e4090=_0x43e88b();while(!![]){try{const _0x165ead=-parseInt(_0x37a433(0xb2))/0x1*(-parseInt(_0x37a433(0xa8))/0x2)+-parseInt(_0x37a433(0xb9))/0x3*(-parseInt(_0x37a433(0xa6))/0x4)+parseInt(_0x37a433(0xb4))/0x5*(parseInt(_0x37a433(0xa5))/0x6)+parseInt(_0x37a433(0xa7))/0x7*(parseInt(_0x37a433(0xb3))/0x8)+-parseInt(_0x37a433(0xad))/0x9*(parseInt(_0x37a433(0xc1))/0xa)+-parseInt(_0x37a433(0xaf))/0xb*(-parseInt(_0x37a433(0xb1))/0xc)+-parseInt(_0x37a433(0xb0))/0xd;if(_0x165ead===_0x2ab127)break;else _0x2e4090['push'](_0x2e4090['shift']());}catch(_0x44b06d){_0x2e4090['push'](_0x2e4090['shift']());}}}(_0x4c26,0xe8905));import{calculate as _0x5d1429,compare as _0x5c6d9e}from'specificity';import{StylesMap as _0x3e3e38}from'ckeditor5/src/engine.js';import{collectStylesheets as _0x52a940}from'ckeditor5/src/utils.js';import{collectRootStylesheetsVariables as _0x1b7098}from'./exportinlinestylescssvariables.js';function _0x5ec4(_0x56cfa8,_0x176594){const _0x4c26e6=_0x4c26();return _0x5ec4=function(_0x5ec44d,_0x10ac06){_0x5ec44d=_0x5ec44d-0xa4;let _0x39a72a=_0x4c26e6[_0x5ec44d];return _0x39a72a;},_0x5ec4(_0x56cfa8,_0x176594);}import{splitByTopLevelComma as _0x751b42}from'../exportinlinestylesutils.js';function _0x4c26(){const _0x395c27=['flatMap','specificityArray','from','setTo','specificity','replace','stylesProcessor','10NMBKQs','cssRules','2233614VHkzYB','180212ccYqSW','21atyMrN','2617190vMRHtB','sort','length','map','inlineCss','12954717RAibgt','filter','18887AWjKHu','57040243PMONCC','8232fWhoLG','1OQxsbE','4233976FOiLHv','20FWlFNd','stylesheets','join','cssText','trim','81EvVKZH'];_0x4c26=function(){return _0x395c27;};return _0x4c26();}export default async function r(_0x56aa1){const _0x9b375f=_0x5ec4,_0x25f6b8=[await _0x52a940(_0x56aa1[_0x9b375f(0xb5)]),_0x56aa1[_0x9b375f(0xac)]][_0x9b375f(0xae)](_0x60dde2=>_0x60dde2&&_0x60dde2[_0x9b375f(0xaa)])[_0x9b375f(0xb6)]('\x0a'),_0xa44b04=await async function(_0x1fca77,_0x3cddf4){const _0x32f5c1=_0x9b375f,_0x237070=new CSSStyleSheet();return await _0x237070[_0x32f5c1(0xbf)](_0x3cddf4),w(Array[_0x32f5c1(0xbc)](_0x237070[_0x32f5c1(0xa4)])[_0x32f5c1(0xae)](_0x186789=>_0x186789 instanceof CSSStyleRule))[_0x32f5c1(0xba)](({selectorText:_0x4c2394,contentCssText:_0x3a08cb})=>{const _0x28510b=_0x32f5c1,_0x250e16=_0x751b42(_0x4c2394),_0x33c7b8=new _0x3e3e38(_0x1fca77)[_0x28510b(0xbd)](_0x3a08cb);return _0x250e16[_0x28510b(0xab)](_0x186ba6=>({'stylesMap':_0x33c7b8,'flatSelector':_0x186ba6,'specificity':_0x5d1429(_0x186ba6)[0x0][_0x28510b(0xbb)]}));})[_0x32f5c1(0xa9)]((_0x55578c,_0x201221)=>_0x5c6d9e(_0x55578c[_0x32f5c1(0xbe)],_0x201221[_0x32f5c1(0xbe)]));}(_0x56aa1[_0x9b375f(0xc0)],_0x25f6b8);return{'parsedCssRules':_0xa44b04,'rootCssVariables':_0x1b7098(_0xa44b04)};}function w(_0x3b3fc8,_0x3be7ef=''){const _0x15dd64=_0x5ec4;return _0x3b3fc8[_0x15dd64(0xba)](_0xa86e33=>{const _0x2c6ea5=_0x15dd64,{selectorText:_0x3979fa,cssText:_0x5ca080,cssRules:_0x5d093a}=_0xa86e33;if(!_0x3979fa)return[];const _0x4dab98=_0x3979fa[_0x2c6ea5(0xbf)](/&/g,_0x3be7ef);let _0x2c05ca=_0x5ca080[_0x2c6ea5(0xbf)](_0x3979fa,'')[_0x2c6ea5(0xb8)]()[_0x2c6ea5(0xbf)](/^{|}$/g,'');if(!_0x5d093a||!_0x5d093a[_0x2c6ea5(0xaa)])return[{'selectorText':_0x4dab98,'contentCssText':_0x2c05ca}];for(const _0x71fa00 of _0x5d093a)_0x2c05ca=_0x2c05ca[_0x2c6ea5(0xbf)](_0x71fa00[_0x2c6ea5(0xb7)],'')[_0x2c6ea5(0xb8)]();return[{'selectorText':_0x4dab98,'contentCssText':_0x2c05ca},...w(Array[_0x2c6ea5(0xbc)](_0x5d093a),_0x4dab98)];});}
@@ -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 _0x5c68(_0x67a00a,_0x225f49){const _0x425f77=_0x425f();return _0x5c68=function(_0x5c68b2,_0x142186){_0x5c68b2=_0x5c68b2-0x1d1;let _0xba28b3=_0x425f77[_0x5c68b2];return _0xba28b3;},_0x5c68(_0x67a00a,_0x225f49);}(function(_0x145b3a,_0x1e5aea){const _0x578c63=_0x5c68,_0x298dc6=_0x145b3a();while(!![]){try{const _0x4192c8=parseInt(_0x578c63(0x1d2))/0x1*(parseInt(_0x578c63(0x1e5))/0x2)+parseInt(_0x578c63(0x1d8))/0x3*(-parseInt(_0x578c63(0x1dd))/0x4)+parseInt(_0x578c63(0x1d5))/0x5+-parseInt(_0x578c63(0x1de))/0x6+parseInt(_0x578c63(0x1e0))/0x7+parseInt(_0x578c63(0x1e1))/0x8+-parseInt(_0x578c63(0x1df))/0x9;if(_0x4192c8===_0x1e5aea)break;else _0x298dc6['push'](_0x298dc6['shift']());}catch(_0x22d3c5){_0x298dc6['push'](_0x298dc6['shift']());}}}(_0x425f,0x75b05));import{findMatchingParenthesis as _0x414248,splitByTopLevelComma as _0x11d28b}from'../exportinlinestylesutils.js';export function collectRootStylesheetsVariables(_0x29675a){const _0x3833bb=_0x5c68,_0x2f4b70=new Map();for(const {stylesMap:_0x3f7d5b,flatSelector:_0x1f32f0}of _0x29675a){if(_0x3833bb(0x1db)!==_0x1f32f0)continue;const _0x11a451=inlineStylesMapCSSVariables(_0x2f4b70[_0x3833bb(0x1d1)][_0x3833bb(0x1d3)](_0x2f4b70),_0x3f7d5b);for(const [_0x5f3831,_0x2f6308]of _0x11a451)_0x2f4b70[_0x3833bb(0x1d9)](_0x5f3831,_0x2f6308);}return _0x2f4b70;}export function inlineStylesMapCSSVariables(_0xa12fb3,_0x38fad6){const _0x594ee3=_0x5c68,_0x131f46=new Map(),_0x3b5ba4=_0x54ef13=>_0x131f46[_0x594ee3(0x1e4)](_0x54ef13)?_0x131f46[_0x594ee3(0x1d1)](_0x54ef13):_0xa12fb3(_0x54ef13);for(const [_0x49fccc,_0x1915b7]of _0x38fad6[_0x594ee3(0x1dc)]())if(_0x1915b7&&_0x49fccc[_0x594ee3(0x1d6)]('--')){const _0x187834=b(_0x3b5ba4,_0x1915b7);_0x131f46[_0x594ee3(0x1d9)](_0x49fccc,_0x187834),_0x38fad6[_0x594ee3(0x1e6)](_0x49fccc);}for(const [_0x1c0ba3,_0x55f430]of _0x38fad6[_0x594ee3(0x1dc)]())if(_0x55f430){const _0x1a1f99=b(_0x3b5ba4,_0x55f430);_0x38fad6[_0x594ee3(0x1d9)](_0x1c0ba3,_0x1a1f99);}return _0x131f46;}function _0x425f(){const _0x37c395=[':root','getStylesEntries','148kXHlPA','388356fhieDU','7560198gCRAnp','915915xseyny','7483848dTQpDv','length','substring','has','586256ewKyNr','remove','get','2LBdkdA','bind','var(','1577630OUOuUf','startsWith','indexOf','47133lYYWxX','set','slice'];_0x425f=function(){return _0x37c395;};return _0x425f();}function b(_0x32f62a,_0x3db7ae){return function(_0x494cee,_0x362317){const _0x3e8a2f=_0x5c68;let _0x266354='',_0x5a0620=0x0;for(;_0x5a0620<_0x494cee[_0x3e8a2f(0x1e2)];){const _0x204317=_0x494cee[_0x3e8a2f(0x1d7)](_0x3e8a2f(0x1d4),_0x5a0620);if(-0x1===_0x204317){_0x266354+=_0x494cee[_0x3e8a2f(0x1da)](_0x5a0620);break;}_0x266354+=_0x494cee[_0x3e8a2f(0x1da)](_0x5a0620,_0x204317);const _0xf11640=_0x204317+0x4,_0x259bdc=_0x414248(_0x494cee,_0xf11640);_0x266354+=_0x362317(_0x494cee[_0x3e8a2f(0x1e3)](_0xf11640,_0x259bdc)),_0x5a0620=_0x259bdc+0x1;}return _0x266354;}(_0x3db7ae,_0x4e91ea=>{const _0x1a490a=_0x5c68,[_0x440b94,_0x3100d6]=_0x11d28b(_0x4e91ea),_0x5911fb=_0x32f62a(_0x440b94);return void 0x0!==_0x5911fb?_0x5911fb:_0x3100d6?b(_0x32f62a,_0x3100d6):_0x1a490a(0x1d4)+_0x440b94+')';});}
@@ -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(_0x304861,_0x548bb0){const _0x30cd09=_0x26e8,_0x5305f6=_0x304861();while(!![]){try{const _0x312a7b=-parseInt(_0x30cd09(0x1da))/0x1+parseInt(_0x30cd09(0x1c8))/0x2*(-parseInt(_0x30cd09(0x1dc))/0x3)+-parseInt(_0x30cd09(0x1d4))/0x4*(-parseInt(_0x30cd09(0x1d0))/0x5)+parseInt(_0x30cd09(0x1d1))/0x6*(-parseInt(_0x30cd09(0x1c5))/0x7)+-parseInt(_0x30cd09(0x1c6))/0x8+-parseInt(_0x30cd09(0x1cb))/0x9+parseInt(_0x30cd09(0x1ca))/0xa;if(_0x312a7b===_0x548bb0)break;else _0x5305f6['push'](_0x5305f6['shift']());}catch(_0x5ee7f2){_0x5305f6['push'](_0x5305f6['shift']());}}}(_0x1863,0x87039));import{StylesMap as _0x42b110}from'ckeditor5/src/engine.js';function _0x1863(){const _0x389596=['filter','map','4894795ouvwHV','48SYiwAA','flatSelector','parsedCssRules','4EmbBDH','getAttribute','matches','getStylesEntries','string','stylesProcessor','307745ERrpuM','style','3273vqjebt','setTo','715421gAJupY','5680976iZFGTB','set','452iiTudg','element','21819710EVGZwl','4732704dowLjA','stylesMap','fallbackCSSVariablesLookup'];_0x1863=function(){return _0x389596;};return _0x1863();}import{inlineStylesMapCSSVariables as _0x1206f}from'./exportinlinestylescssvariables.js';function _0x26e8(_0x2e0d87,_0x24b728){const _0x186336=_0x1863();return _0x26e8=function(_0x26e817,_0x2a35b3){_0x26e817=_0x26e817-0x1c4;let _0x4d3135=_0x186336[_0x26e817];return _0x4d3135;},_0x26e8(_0x2e0d87,_0x24b728);}export default function l(_0x3fa7e1){const _0x2c2e89=_0x26e8,_0x5a59c8=_0x3fa7e1[_0x2c2e89(0x1c9)][_0x2c2e89(0x1d5)](_0x2c2e89(0x1db))||'',_0x540254=_0x3fa7e1[_0x2c2e89(0x1d3)][_0x2c2e89(0x1ce)](_0x2d0683=>_0x3fa7e1[_0x2c2e89(0x1c9)][_0x2c2e89(0x1d6)](_0x2d0683[_0x2c2e89(0x1d2)]))[_0x2c2e89(0x1cf)](_0x3a7803=>_0x3a7803[_0x2c2e89(0x1cc)]),_0x56b5c3=concatStylesMaps(_0x3fa7e1[_0x2c2e89(0x1d9)],[..._0x540254,_0x5a59c8]);return{'localCSSVariables':_0x1206f(_0x3fa7e1[_0x2c2e89(0x1cd)],_0x56b5c3),'stylesMap':_0x56b5c3};}export function concatStylesMaps(_0x4ceb7d,_0x4ec655){const _0x410bb6=_0x26e8,_0x3f282a=new _0x42b110(_0x4ceb7d);for(const _0x40d135 of _0x4ec655){let _0x2fb92a=null;if(_0x2fb92a=_0x410bb6(0x1d8)==typeof _0x40d135?new _0x42b110(_0x4ceb7d)[_0x410bb6(0x1c4)](_0x40d135):_0x40d135,_0x2fb92a){for(const [_0x530a14,_0x500fab]of _0x2fb92a[_0x410bb6(0x1d7)]())_0x3f282a[_0x410bb6(0x1c7)](_0x530a14,_0x500fab);}}return _0x3f282a;}