@emailmaker/emailmaker 1.1.10 → 1.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +0 -1
  2. package/{emailmaker-core.3487dd03.js → emailmaker-core.89533086.js} +1 -1
  3. package/emailmaker-esm.js +3 -3
  4. package/emailmaker.d.ts +1 -9
  5. package/emailmaker.js +2 -2
  6. package/iframe/js/amp.CUKrusRy.js +1 -0
  7. package/iframe/js/iframe-eblock.js +1 -1
  8. package/iframe/js/iframe.js +1 -1
  9. package/iframe/js/rules.CNqvmp_P.js +1 -1
  10. package/iframe/js/sanitize-html.BWcyAj0s.js +1 -0
  11. package/package.json +1 -1
  12. package/static/core/{52eade68.js → 103245e1.js} +1 -1
  13. package/static/core/{e776bec5.js → 4cee465e.js} +1 -1
  14. package/static/core/{c83f5b04.js → 59bd13fd.js} +1 -1
  15. package/static/core/{943d36ad.js → 63eceabd.js} +1 -1
  16. package/static/core/{600d78a8.js → 6be291d7.js} +1 -1
  17. package/static/core/{a446ebda.js → 713868e1.js} +1 -1
  18. package/static/core/{99b68b38.js → 7b449eb6.js} +1 -1
  19. package/static/core/7dfe8132.js +1 -0
  20. package/static/core/{b138b9b9.js → 879e09e7.js} +2 -2
  21. package/static/core/{d40f1338.js → 8e3ba0c5.js} +1 -1
  22. package/static/core/{32110662.js → 950fa54e.js} +17 -17
  23. package/static/core/{e1b57fc4.js → 9b14558c.js} +1 -1
  24. package/static/core/{33ef3634.js → e961bd52.js} +1 -1
  25. package/static/core/{b78dde1d.js → e98b9b31.js} +1 -1
  26. package/static/core/{3b3b4821.js → f2a1f633.js} +1 -1
  27. package/static/esm/{c1e3467e.js → b86c52d7.js} +1 -1
  28. package/two_step_headless_plugin.html +1 -1
  29. package/iframe/js/amp.CdTI2-VC.js +0 -1
  30. package/iframe/js/sanitize-html.tGUeRBWs.js +0 -1
  31. package/static/core/aed94d1a.js +0 -1
  32. /package/iframe/{iframe-eblock.3487dd03.html → iframe-eblock.89533086.html} +0 -0
  33. /package/iframe/{iframe.3487dd03.html → iframe.89533086.html} +0 -0
@@ -1,4 +1,4 @@
1
- __emailmaker__.define(`static/core/b138b9b9.js`,[`require`,`exports`,`module`,`static/core/354bf8a9.js`,`static/core/68599f0c.js`,`static/core/f6e0d03e.js`,`react`,`prop-types`,`react-dom`,`react-router-dom`],function(e,t,n){let r=e("./354bf8a9.js"),i=e("./68599f0c.js"),a=e("./f6e0d03e.js"),o=e("react");o=r.l(o);let s=e("prop-types");s=r.l(s);let c=e("react-dom"),l=e("react-router-dom");var u=class e{_inner;_isDisposed=!1;constructor(e=[]){this._inner=e}addDisposable(t){return this._inner.push(t),t instanceof e&&t.addDispose(()=>{this.removeDisposable(t)}),t}addDispose(e){this.addDisposable({dispose:e})}removeDisposable(e){let t=this._inner.indexOf(e);t>=0&&this._inner.splice(t,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(let e of[...this._inner])e.dispose()}}};function d(e){return`service_container_${e}`}var f=class e extends u{_parent;_injectCallbacks=[];_injections=Object.create(null);_runCallbacks(e){this._injectCallbacks.forEach(t=>t(e))}constructor(e=null){super(),this._parent=e,e&&this.addDisposable(e.onInject(e=>this._runCallbacks(e)))}onInject=e=>(this._injectCallbacks.push(e),{dispose:()=>{let t=this._injectCallbacks.indexOf(e);t>=0&&this._injectCallbacks.splice(t,1)}});inject(e,t){this._injections[e]=()=>t,this._runCallbacks(e)}injectFactory(e,t,n){let r=this._injections[e],i=typeof r==`function`?r():r,a=this._injections[e]=()=>(i=t(this,i),i);n&&a(),this._runCallbacks(e)}_find(e,t=!0){return this._injections[e]||t&&this._parent?._find(e)}_onInject(e,t,n=new u){return n.addDisposable(this.onInject(r=>{e===r&&(n.dispose(),t(this.getInstance(r)))})),this._parent&&n.addDisposable(this._parent._onInject(e,t,n)),this.addDisposable(n),n}getInstance(e,t=!0){let n=this._find(e,t);if(typeof n==`function`)return n()}getOrCreateInstance(e,t){let n=this._find(e);if(typeof n==`function`)return n();let r=t(this);return this.inject(e,r),r}getInstanceAsync(e){let t=this._find(e);return typeof t==`function`?Promise.resolve(t()):new Promise(t=>this._onInject(e,()=>t(this.getInstance(e))))}addService(e,t){let n=d(e);this.injectFactory(n,(e,n=[])=>n.indexOf(t)<0?[...n,t]:n);let r=new u;return r.addDispose(()=>{this.injectFactory(n,(e,n=[])=>n.filter(e=>e!==t))}),r}addServiceFactory(e,t,n){let r=d(e),i;this.injectFactory(r,(e,n=[])=>(i=t(e,i),i===void 0?n:n.indexOf(i)<0?[...n,i]:n),n);let a=new u;return a.addDispose(()=>{this.injectFactory(r,(e,t=[])=>i===void 0?t:t.filter(e=>e!==i))}),a}getServices(e){let t=d(e);return[...this.getInstance(t,!1)||[],...this._parent?.getServices(e)||[]]}createChild(){return new e(this)}getOrCreateIsolatedContainer(t){return this.getOrCreateInstance(t,()=>{let n=this._parent?.getOrCreateIsolatedContainer(t);return new e(n)})}dispose(){this._injections=Object.create(null)}};function p(e){return e.startsWith(`__`)?e:`__${e}__`}function m(e){if(typeof globalThis>`u`)throw Error(`[di] globalThis is required for namespace container access.`);let t=p(e),n=globalThis;return n[t]??={}}function h(e){return typeof e==`object`&&!!e&&typeof e.inject==`function`&&typeof e.getInstance==`function`}function g(e){return p(e||`emailmaker`)}function _(e){let t=m(g(e));if(h(t.container))return t.container;let n=new f(null);return t.container=n,n}function v(e){return _(e)}function y(){let e=new Date().getTime(),t=typeof performance<`u`&&performance.now&&performance.now()*1e3||0;return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,function(n){let r=Math.random()*16;return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),(n===`x`?r:r&3|8).toString(16)})}function b(){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID():y()}function x(e=b()){return e}function S(){return`core`}function C(e){if(typeof globalThis>`u`)return;let t=S(),n=globalThis[e]??{};globalThis[e]=n;let r=n.__diagnostics??={},i=r.diModuleEval??={evalCount:0,records:[],duplicateWarned:!1};i.records.push({buildSource:t,timestamp:Date.now(),stack:Error().stack}),i.evalCount+=1,!(i.evalCount<=1||i.duplicateWarned)&&(i.duplicateWarned=!0,i.evalCount,i.records)}function w(){return`__emailmaker__`}function T(e,t){if(C(t),typeof globalThis>`u`)return e;let n=S(),r=globalThis,i=r[t]=r[t]||{},a=i.__diagnostics=i.__diagnostics||{},o=a.dependencyResolver=a.dependencyResolver||{entries:[],warnings:[]},s={container:e,source:`packages/runtime-core/di/index.ts`,buildSource:n,timestamp:Date.now(),stack:Error().stack};if(o.entries.push(s),o.entries.length>1){let e=o.entries[0];if(o.entries.some(t=>t.container!==e.container)&&!o.duplicateWarningShown){o.duplicateWarningShown=!0;let e={message:`[di] Multiple DependencyResolver instances detected on namespace`,namespaceKey:t,buildSource:n,entries:o.entries};o.warnings.push(e)}}return e}var E;function D(){if(E)return E;let e=w();return E=T(_(e),e),E}var O=new Proxy({},{get(e,t,n){let r=D(),i=Reflect.get(r,t,n);return typeof i==`function`?i.bind(r):i}}),k=class e extends Error{code;httpStatus;details;constructor(t,n,r,i){super(t),this.name=`FileManagerApiError`,this.code=n,this.httpStatus=r,this.details=i;let a=Error.captureStackTrace;a&&a(this,e)}},ee=class extends u{_options;_listeners=[];constructor(e={}){super(),this._options=e}getListeners(e){return this._listeners.flatMap(([t])=>typeof t==`function`?t:t.getListeners(e))}hasListeners(){return this._listeners.length>0}_addListener(e,t=0,n){if(this.isDisposed())return{dispose:()=>{}};let r=this._listeners,i=this._options;n&&typeof e==`function`&&(e=e.bind(n));let a=r.findIndex(([,e])=>e<t),o=[e,t];return r.splice(a>=0?a:r.length,0,o),r.length===1&&i.onFirstListenerAdd&&i.onFirstListenerAdd(),{dispose:()=>{let e=r.indexOf(o);e>=0&&(r.splice(e,1),!r.length&&i.onLastListenerRemove&&i.onLastListenerRemove())}}}on=this._addListener.bind(this);event=this._addListener.bind(this);once=(e,t=0,n)=>{let r=this._addListener((...t)=>(r?.dispose(),n?e.call(n,...t):e(...t)),t);return r};un=e=>{let t=this._listeners.findIndex(([t])=>t===e);t>=0&&(this._listeners.splice(t,1),this._listeners.length===0&&this._options.onLastListenerRemove&&this._options.onLastListenerRemove())};dispose(){this._listeners.splice(0,this._listeners.length),this._options.onLastListenerRemove&&this._options.onLastListenerRemove(),super.dispose()}},te=class extends ee{execute(e,t){for(let n of t)try{n(...e)}catch{}}fire(...e){if(!this.isDisposed()){let t=this.execute(e,this.getListeners(e));return t===void 0?void 0:t}}},ne=class extends te{execute([e],t){for(let n of t)try{n(e)}catch{}}},re=class extends te{_suspendCounter=0;_wasFired=!1;execute([e],t){if(this._suspendCounter)this._wasFired=!0;else for(let n of t)try{n(e)}catch{}}suspend(){this._suspendCounter++}resume(){--this._suspendCounter===0&&this._wasFired&&(this.fire(),this._wasFired=!1)}},A=class extends te{async execute([e],t){let n=[];for(let r of t)try{n.push(await r(e))}catch{}return n}};function ie(e,t=0){let n=new ee,r=e(n,t);return r&&n.addDisposable(r),n.event}function ae(e,t,n=0){let r=new te,i=e((...e)=>{if(t(...e))return r.fire(...e)},n);return i&&r.addDisposable(i),r.event}function oe(e,t=0,n=0){let r=new te,i,a,o=e((...e)=>{a=e,i||=setTimeout(()=>{a&&r.fire(...a),i=void 0},t)},n);return o&&r.addDisposable(o),r.event}var se=class{_listeners=[];add(e,t=0,n){let r={fn:n?e.bind(n):e,priority:t};return this._listeners.push(r),{dispose:()=>{let e=this._listeners.indexOf(r);e>=0&&this._listeners.splice(e,1)}}}async run(e){let t=[...this._listeners].sort((e,t)=>t.priority-e.priority);for(let{fn:n}of t){let t=await n(e);typeof t==`object`&&t&&!Array.isArray(t)&&!(t instanceof Date)&&!(t instanceof RegExp)&&Object.assign(e,t)}return e}},ce=x(`ELEMENT_INSERT_HTML_PIPELINE`),le=x(`BLOCK_INSERT_HTML_PIPELINE`);function ue(e){return e.getOrCreateInstance(ce,()=>new se)}function de(e){return e.getOrCreateInstance(le,()=>new se)}async function fe(e,t){return e?ue(e).run({...t}):t}async function pe(e,t){return e?de(e).run({...t}):t}function j(e){return e}function me(e){return e&&typeof e==`object`}function he(e,t){return e&&typeof e==`object`&&e.operationId===t}var ge=j(`INIT_MESSAGE`),_e=j(``);function M(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}var ve=class extends u{_listeners=Object.create(null);addListenerAsync=(e,t,n=0,r)=>{let i=this._listeners[e]||(this._listeners[e]=[]);r&&typeof t==`function`&&(t=t.bind(r));let a=i.findIndex(([e,t])=>n<=t),o=[t,n];return this.isDisposed()||i.splice(a>=0?a:i.length,0,o),{dispose(){let e=i.indexOf(o);e>=0&&i.splice(e,1)}}};fireAsync=(e,t)=>{if(!this.isDisposed()){let n=this._listeners[e]||(this._listeners[e]=[]),r;for(let e=0;e<n.length;e++){let t=n[e][0],i=r;r=e=>t(e,i)}if(r)return r(t)}};addListener=(e,t,n=0)=>this.addListenerAsync(e,(e,n)=>{try{t(e)}catch{}return n&&n(e)},n)},ye=class extends u{_singleton;_target;_inited=!1;_emitter=this.addDisposable(new ve);constructor(e,t){super(),this._singleton=t,window.addEventListener(`message`,this._onReceiveMessage),this.addListener(ge,()=>{this._inited||(this._inited=!0,this.send(ge))}),e&&this.setTarget(e)}_onReceiveMessage=e=>{let t=e.data;if(me(t)&&e.source==this.target||this._singleton&&he(t,ge)){let n=this._emitter.fireAsync(t.operationId||_e,t.operationId===void 0?e:t.data),r=t.result,i=t.error;r&&i&&Promise.resolve(n).then(e=>this._sendMessage(r,e),e=>this._sendMessage(i,e))}};setTarget(e){this._target!==e&&(this._target=e,e&&this._postMessage(e,{operationId:ge,data:{}}))}getTarget(){return this._target}get target(){return this._target}_postMessage(e,t){try{e.postMessage(t,`*`)}catch(e){throw e?.name===`DataCloneError`&&typeof t?.data==`object`&&t?.data!==null&&t.data,e}}_sendMessage(e,t,n=!0){if(!n&&!this.isInited())return;let r=this.addDisposable(this.onInit(n=>{let i=e?{operationId:e,data:t}:t;try{this._postMessage(n,{...i})}finally{r.dispose()}}))}send(e,t,n){return typeof e==`string`?this._sendMessage(e,t,n):this._sendMessage(_e,e,t)}sendAsync(e,t,n=!0){if(!n&&!this.isInited())return Promise.resolve();let r=j(M()),i=j(M());return new Promise((n,a)=>{let o=this.addDisposable(new u);o.addDisposable(this.onInit(s=>{try{this._postMessage(s,{operationId:e,data:t,result:r,error:i})}catch(e){o.dispose(),a(e);return}o.addDisposable(this._onMessage(r,e=>{n(e),o.dispose()})),o.addDisposable(this._onMessage(i,e=>{a(e),o.dispose()}))}))})}_onMessage(e,t,n=0){return this._emitter.addListener(e,t,n)}addListener(e,t,n){return t?this._onMessage(e,t,n):this._onMessage(_e,e)}addListenerAsyncPipe(e,t,n=0){return this._emitter.addListenerAsync(e,t,n)}addListenerAsync(e,t,n=0){return this._emitter.addListenerAsync(e,async(e,n)=>{let r=await t(e);return n?n(e):r},n)}isInited(){return this._inited}get inited(){return this._inited}onInit(e,t=!0,n=0){let r=this.addDisposable(new u);return this._inited&&this._target?t&&Promise.resolve().then(()=>{!this._inited||!this._target?r.addDisposable(this.onInit(e,t,n)):e(this._target)}):r.addDisposable(this._onMessage(ge,()=>{e(this._target)},n)),r}dispose(){window.removeEventListener(`message`,this._onReceiveMessage),super.dispose()}};function be(e){return x(e)}var xe=x(),Se=be(`HANDLE_ATOM_INSERT`),Ce=x(),we=j(`SANDBOX_EXTENSION_SCRIPT_STATUS`),Te=x(`MESSAGE_SERVICE`),Ee=be(`SETTINGS_PANEL_EVENT`),De=`advanced`,Oe=be(`MODAL_SHOW_EVENT`),ke=be(`MODAL_CLOSE_EVENT`),Ae=be(`MODAL_UPDATE_EVENT`),je=`application_block_inserted`,Me=class{_context;constructor(e){this._context=e}get _container(){return this._context.container}handleBeforeInject(e,t,n){return this._container.getOrCreateInstance(le,()=>new se).add(e,t??0,n)}handleInject(e,t,n){let r=this._container.getOrCreateInstance(Te,()=>new ye),i=n?e.bind(n):e;return r.addListener(je,i,t)}},Ne=class{_factories=new Map;add(e,t){let n=e;return this._factories.set(n,t),{dispose:()=>{this._factories.get(n)===t&&this._factories.delete(n)}}}get(e){return this._factories.get(e)}},Pe=x(`DomComponentRegistry`);function Fe(e,t=Pe){return O.getOrCreateInstance(t,()=>new Ne)}function Ie(e){return typeof e==`function`}function Le(e){return(0,o.isValidElement)(e)}function Re(e){return typeof e==`function`||Le(e)}function ze(e){return typeof e==`object`&&!!e&&`type`in e&&`props`in e&&!Le(e)}function Be(e,t){return(0,o.createElement)(e,t)}function Ve(e){return class extends o.Component{_ref=(0,o.createRef)();_instance;componentDidMount(){this._ref.current&&(this._instance=e(this.props),this._ref.current.appendChild(this._instance.node))}componentDidUpdate(e){this._instance?.update&&this._instance.update(this.props)}componentWillUnmount(){this._instance?.dispose&&this._instance.dispose()}render(){return(0,o.createElement)(`div`,{ref:this._ref})}}}var He=class{_domComponentRegistry;_components=new Map;_domAdapters=new Map;constructor(e){this._domComponentRegistry=e}add(e,t){return this.override(e,()=>t)}addDom(e,t){let n=e;this._domAdapters.delete(n);let r=this._domComponentRegistry.add(e,t);return{dispose:()=>{this._domAdapters.delete(n),r.dispose()}}}override(e,t){let n=e,r=this._components.get(n);r||(r={replacers:[]},this._components.set(n,r));let i=()=>{let e=r.replacers.findIndex(e=>e.replacer===t);e>=0&&(r.replacers.splice(e,1),this._recomputeComponent(n,r))};return r.replacers.push({replacer:t,dispose:i}),this._recomputeComponent(n,r),{dispose:i}}_recomputeComponent(e,t){t.component=t.replacers.reduce((e,{replacer:t})=>t(e),void 0)}get(e){if(Re(e))return e;let t=e,n=this._components.get(t);if(n?.component)return n.component;let r=this._domComponentRegistry.get(e);if(r){let e=this._domAdapters.get(t);return e||(e=Ve(r),this._domAdapters.set(t,e)),e}}_resolveComponentInput(e){if(e==null)return null;if(typeof e==`number`||typeof e==`boolean`||Le(e))return e;if(typeof e==`string`){let t=this.get(e);return Le(t)?t:t?Be(t):e}if(Ie(e))return Be(e);if(ze(e)){let t=this.get(e.type);return Le(t)?t:t?Be(t,e.props):null}return null}getReactNode(e){return this._resolveComponentInput(e)}getReactElement(e){let t=this._resolveComponentInput(e);return Le(t)?t:typeof t==`string`||t==null||typeof t==`boolean`||typeof t==`number`?(0,o.createElement)(o.Fragment,null,t):(0,o.createElement)(o.Fragment,null)}},Ue=x(`ComponentRegistry`);function We(e,t=Ue){return O.getOrCreateInstance(t,()=>new He(Fe(O,Pe)))}function Ge(e,t){return e.getOrCreateInstance(t,()=>new A)}var Ke=class{_context;constructor(e){this._context=e}get _container(){return this._context.container}getNames(){return new Promise(e=>{let t=this._container.addService(xe,{execute:n=>{t.dispose(),e(n.value.map(e=>({name:e.name,html:e.html})))}})})}update(e,t){let n=this._container,r=We(n);return n.addService(xe,{execute:n=>{let i=n.value.find(t=>t.name===e);if(i){let{icon:e,title:n,fallbackTooltip:a,...o}=t;e&&(i.icon=r.getReactNode(e)),n&&(i.title=r.getReactNode(n)),a&&(i.fallbackTooltip=r.getReactNode(a)),Object.assign(i,o)}}})}delete(e){this._container.addService(xe,{execute:t=>{let n=t.value.findIndex(t=>t.name===e);n>=0&&t.value.splice(n,1)}})}insert(e,t){let n=this._container,r=We(n);return n.addService(xe,{execute:n=>{n.value.splice(t??n.value.length,0,{...e,title:r.getReactNode(e.title),icon:r.getReactNode(e.icon),fallbackTooltip:r.getReactNode(e.fallbackTooltip)})}})}handleBeforeInject(e,t,n){return this._container.getOrCreateInstance(ce,()=>new se).add(e,t??0,n)}handleInject(e,t,n){return Ge(this._container,Se).event(t=>{e({name:t.name,className:t.className||``,html:t.html})},t,n)}},qe=class{_messageService;constructor(e){this._messageService=e.container.getOrCreateInstance(Te,()=>new ye)}send(e,t,n){this._messageService.send(e,t,n)}sendAsync(e,t,n=!0){return this._messageService.sendAsync(e,t,n)}addListener(e,t,n){return this._messageService.addListener(e,t,n)}addListenerAsync(e,t,n=0){return this._messageService.addListenerAsync(e,t,n)}onInit(e,t=!0,n=0){return this._messageService.onInit(e,t,n)}isInited(){return this._messageService.isInited()}};function Je(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>t!==void 0))}var Ye=class{_context;_showModalEmitter;_closeModalEmitter;_updateModalEmitter;constructor(e){this._context=e;let t=e.container;this._showModalEmitter=Ge(t,Oe),this._closeModalEmitter=Ge(t,ke),this._updateModalEmitter=Ge(t,Ae)}get _container(){return this._context.container}show(e){let t=We(this._container),n=`modal_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,r=e.modalProps;return this._showModalEmitter.fire({...e,content:t.getReactNode(e.content),title:t.getReactNode(e.title),id:n,modalProps:r?{...r,footer:t.getReactNode(r.footer),okText:t.getReactNode(r.okText),cancelText:t.getReactNode(r.cancelText),closeIcon:t.getReactNode(r.closeIcon)}:void 0}),n}close(e){this._closeModalEmitter.fire(e)}closeAll(){this._closeModalEmitter.fire()}update(e,t){let n=We(this._container),r=t.modalProps;this._updateModalEmitter.fire(Je({...t,content:n.getReactNode(t.content),title:n.getReactNode(t.title),id:e,modalProps:r?{...r,footer:n.getReactNode(r.footer),okText:n.getReactNode(r.okText),cancelText:n.getReactNode(r.cancelText),closeIcon:n.getReactNode(r.closeIcon)}:void 0}))}},Xe=class{_registration;_loadedDisposable;loaded;ready;_loadedSettled=!1;_readySettled=!1;constructor(e,t){this._registration=e,this._loadedDisposable=t,this.loaded=new Promise((e,t)=>{let n=()=>this._loadedDisposable.dispose(),r=()=>{this._loadedSettled||(this._loadedSettled=!0,this._readySettled&&n(),e())},i=e=>{this._loadedSettled||(this._loadedSettled=!0,this._readySettled&&n(),t(e))};this._resolveLoaded=r,this._rejectLoaded=i}),this.ready=new Promise((e,t)=>{let n=()=>this._loadedDisposable.dispose(),r=()=>{this._readySettled||(this._readySettled=!0,this._loadedSettled&&n(),e())},i=e=>{this._readySettled||(this._readySettled=!0,this._loadedSettled&&n(),t(e))};this._resolveReady=r,this._rejectReady=i})}_resolveLoaded=()=>{};_rejectLoaded=()=>{};_resolveReady=()=>{};_rejectReady=()=>{};resolveLoaded(){this._resolveLoaded()}resolveReady(){this._resolveReady()}rejectLoad(e){this._rejectLoaded(e),this._rejectReady(e)}rejectReady(e){this._rejectReady(e)}dispose(){this._registration.dispose();let e=Error(`Sandbox script registration disposed before completion.`);this.rejectLoad(e),this.rejectReady(e)}},Ze=class{_context;constructor(e){this._context=e}get _container(){return this._context.container}get _messageService(){return this._container.getOrCreateInstance(Te,()=>new ye)}_createScriptHandle(e,t){let n=new Xe(t,this._messageService.addListener(we,t=>{if(t.key===e){if(t.phase===`load`&&t.status===`success`){n.resolveLoaded();return}if(t.phase===`ready`&&t.status===`success`){n.resolveReady();return}if(t.phase===`load`){n.rejectLoad(Error(t.error||`Sandbox script "${e}" failed to load.`));return}n.rejectReady(Error(t.error||`Sandbox script "${e}" failed to initialize.`))}}));return n}registerSandboxCSS(e){return this._container.addService(Ce,{type:`link`,key:e,parent:`head`,attributes:{rel:`stylesheet`,type:`text/css`,href:e}})}registerSandboxCSSCode(e,t){return this._container.addService(Ce,{type:`style`,key:e,parent:`head`,attributes:{type:`text/css`},innerHTML:t})}registerSandboxScript(e){let t=this._container.addService(Ce,{type:`script`,key:e,parent:`head`,attributes:{src:e,type:`text/javascript`}});return this._createScriptHandle(e,t)}registerSandboxScriptCode(e,t){let n=this._container.addService(Ce,{type:`script`,key:e,parent:`head`,attributes:{type:`text/javascript`},innerHTML:t});return this._createScriptHandle(e,n)}};function Qe(){let e=globalThis.crypto;if(e&&typeof e.randomUUID==`function`)return e.randomUUID();if(e&&typeof e.getRandomValues==`function`){let t=new Uint8Array(16);return e.getRandomValues(t),Array.from(t,e=>e.toString(16).padStart(2,`0`)).join(``)}return`nohwcrypto-${Date.now()}`}function $e(){return`__settingsPanel:${Qe()}`}function et(e,t){return{type:e,props:t}}function tt(e){return(0,o.isValidElement)(e)}function nt(e){return typeof e==`object`&&!!e&&`type`in e&&`props`in e&&!tt(e)}function rt(e,t,n){if(t==null||typeof t==`number`||typeof t==`boolean`||typeof t==`string`)return t;if(tt(t)){let r=$e();return n(e.add(r,t)),et(r,{})}if(typeof t==`function`){let r=$e();return n(e.add(r,t)),et(r,{})}if(nt(t)){let r=t.type;if(typeof r==`string`)return t;if(tt(r)||typeof r==`function`){let i=$e();return n(e.add(i,r)),et(i,t.props)}return t}return t}var it={SandboxScriptApi:Ze,ElementsApi:Ke,BlocksApi:Me,MessageService:qe,SettingsPanelApi:class{_context;_panelRegistrationDisposables=[];constructor(e){this._context=e}get _container(){return this._context.container}_clearPanelRegistrations(){for(let e of this._panelRegistrationDisposables)e.dispose();this._panelRegistrationDisposables.length=0}_trackRegistration(e){this._panelRegistrationDisposables.push(e)}showSettingsPanel(e){this._clearPanelRegistrations();let t=We(this._container),n=e=>this._trackRegistration(e),r=rt(t,e.content,n),i=e.advancedTabs?.map(e=>({...e,content:rt(t,e.content,n)})),a=e.instanceKey??Qe();Ge(this._container,Ee).fire({...e,content:r,advancedTabs:i,instanceKey:a,type:De})}closeSettingsPanel(){this._clearPanelRegistrations(),Ge(this._container,Ee).fire(null)}},ModalApi:Ye};function at(e){if(e.meta!==void 0&&e.meta!==null&&typeof e.meta==`object`)return e.meta;let t=e.catalogExtra?.meta;if(typeof t==`object`&&t)return t}function ot(e,t){let n=e.insertFrom??t?.type,r=t?.blockId??(e.id!=null&&e.id!==``?String(e.id):void 0),i=t?.project??(e.project!==void 0&&e.project!==null?String(e.project):void 0);return{type:t?.type??n,insertFrom:n,name:t?.name??e.name,blockId:r,project:i,fragmentRole:e.fragmentRole,id:r,title:e.title??void 0,blockType:e.type,meta:at(e)}}function st(e,t){return t?ot(t,e):{type:e.type,name:e.name,blockId:e.blockId,project:e.project,insertFrom:e.type}}function N(e){return x(e)}var ct;(function(e){e.BEFORE_SAVE_EMAIL=N(),e.ON_SAVEBUTTON_CLICK_ID=N(),e.ON_NEXTBUTTON_CLICK_ID=N(),e.ON_PREVIOUSBUTTON_CLICK_ID=N(),e.ON_MODEL_CHANGE=N(),e.WILL_EMAIL_INIT_ID=N(),e.ON_EMAIL_INIT_ID=N(),e.ON_BLOCK_INIT_ID=N(),e.ON_CONTENT_CHANGED_ID=N(),e.ON_PREHEADER_CHANGED_ID=N(),e.ON_SUBJECT_CHANGED_ID=N(),e.ON_EMAIL_CHANGED_ID=N(),e.ON_BLOCK_CHANGED_ID=N(),e.ON_CHUNKS_LOADED=N(),e.ON_SEND_TESTEMAIL_ID=N(),e.ON_SEND_LIVEPREVIEW_ID=N(),e.ON_SHARE_ID=N(),e.ON_SHOW_PREVIEW_ID=N(),e.ON_EMAIL_CLONE_ID=N(),e.ON_SEND_EMAIL_MODAL_ID=N(),e.ON_NOTIFICATION=N(),e.READ_LOCALE=N(),e.ON_TRANSLATE_ID=N(),e.ON_CODE_VALIDATE_ID=N(),e.UPLOAD_EVENT_ID=N(),e.PROXY_URL_EVENT_ID=N(),e.FILE_PROXY_EVENT_ID=N(),e.ON_LIMIT_ID=N(),e.ON_GLOBAL_BLOCK_PROPAGATE_UPDATE_ID=N(),e.ON_BROWSER_EXTENSION_DETECTED_ID=N()})(ct||={});function lt(e,t){return e.getOrCreateInstance(t,()=>new A).event}function ut(e,t){return e.getOrCreateInstance(t,()=>new A)}var dt=`Not implemented in plugin`,ft=x(),pt=x(),mt=x(),ht=x(),gt=x(),_t=x(),vt=x(),yt=x(`PluginCollection`),bt=N(`APP_LOAD_EVENT`),xt=N(`CONFIG_CHANGED_EVENT`),P=function(e){return e.Json=`application/json`,e.FormData=`multipart/form-data`,e.UrlEncoded=`application/x-www-form-urlencoded`,e.Text=`text/plain`,e}({}),St=class{baseUrl=`https://api.emailmaker.ru/wp-json`;securityData=null;securityWorker;abortControllers=new Map;customFetch=(...e)=>fetch(...e);baseApiParams={credentials:`same-origin`,headers:{},redirect:`follow`,referrerPolicy:`no-referrer`};constructor(e={}){Object.assign(this,e)}setSecurityData=e=>{this.securityData=e};encodeQueryParam(e,t){return`${encodeURIComponent(e)}=${encodeURIComponent(typeof t==`number`?t:`${t}`)}`}addQueryParam(e,t){return this.encodeQueryParam(t,e[t])}addArrayQueryParam(e,t){return e[t].map(e=>this.encodeQueryParam(t,e)).join(`&`)}toQueryString(e){let t=e||{};return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>Array.isArray(t[e])?this.addArrayQueryParam(t,e):this.addQueryParam(t,e)).join(`&`)}addQueryParams(e){let t=this.toQueryString(e);return t?`?${t}`:``}contentFormatters={"application/json":e=>e!==null&&(typeof e==`object`||typeof e==`string`)?JSON.stringify(e):e,"text/plain":e=>e!==null&&typeof e!=`string`?JSON.stringify(e):e,"multipart/form-data":e=>Object.keys(e||{}).reduce((t,n)=>{let r=e[n];return t.append(n,r instanceof Blob?r:typeof r==`object`&&r?JSON.stringify(r):`${r}`),t},new FormData),"application/x-www-form-urlencoded":e=>this.toQueryString(e)};mergeRequestParams(e,t){return{...this.baseApiParams,...e,...t||{},headers:{...this.baseApiParams.headers||{},...e.headers||{},...t&&t.headers||{}}}}createAbortSignal=e=>{if(this.abortControllers.has(e)){let t=this.abortControllers.get(e);return t?t.signal:void 0}let t=new AbortController;return this.abortControllers.set(e,t),t.signal};abortRequest=e=>{let t=this.abortControllers.get(e);t&&(t.abort(),this.abortControllers.delete(e))};async request({body:e,secure:t,path:n,type:r,query:i,format:a,baseUrl:o,cancelToken:s,extraQuery:c,proxyHandler:l,...u}){let d=(typeof t==`boolean`?t:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},f=this.mergeRequestParams(u,d);c&&(i=i?{...i,...c}:c);let p=i&&this.toQueryString(i),m=this.contentFormatters[r||`application/json`],h=a||f.format,g=`${o||this.baseUrl||``}${n}${p?`?${p}`:``}`,_=l?l(g,{body:e,secure:t,path:n,type:r,query:i,format:a,baseUrl:o,cancelToken:s,extraQuery:c,proxyHandler:l,...u}):g,v=new Request(_,{...f,headers:{...f.headers||{},...r&&r!==`multipart/form-data`?{"Content-Type":r}:{}},signal:(s?this.createAbortSignal(s):f.signal)||null,body:e==null?null:m(e)});return this.customFetch(v).then(async e=>{let t=e;t.data=null,t.error=null,t.meta={request:v,response:t};let n=h?await e[h]().then(e=>(t.ok?t.data=e:t.error={data:e},t)).catch(e=>(t.error=e,t)):t;return s&&this.abortControllers.delete(s),n})}},Ct=class extends St{limits={get_limits:(e,t={})=>this.request({path:`/limits/v1`,method:`GET`,query:e,...t}),stats_list:(e={})=>this.request({path:`/limits/v1/stats`,method:`GET`,...e}),stats_detail:({type:e,...t},n={})=>this.request({path:`/limits/v1/stats/${e}`,method:`GET`,...n}),warnings_list:(e={})=>this.request({path:`/limits/v1/warnings`,method:`GET`,...e}),reset_to_subscription_base_create:(e={})=>this.request({path:`/limits/v1/reset-to-subscription-base`,method:`POST`,...e}),update_create:(e={})=>this.request({path:`/limits/v1/update`,method:`POST`,...e})};unisenderProxy={get_unisender_proxy:(e,t={})=>this.request({path:`/unisender-proxy/v1`,method:`GET`,query:e,...t}),create_message_create:(e={})=>this.request({path:`/unisender-proxy/v1/create-message`,method:`POST`,...e})};bdpwr={get_bdpwr:(e,t={})=>this.request({path:`/bdpwr/v1`,method:`GET`,query:e,...t}),reset_password_create:(e={})=>this.request({path:`/bdpwr/v1/reset-password`,method:`POST`,...e}),set_password_create:(e={})=>this.request({path:`/bdpwr/v1/set-password`,method:`POST`,...e}),validate_code_create:(e={})=>this.request({path:`/bdpwr/v1/validate-code`,method:`POST`,...e})};corsProxy={get_cors_proxy:(e,t={})=>this.request({path:`/cors-proxy/V1`,method:`GET`,query:e,...t}),get_list:(e,t={})=>this.request({path:`/cors-proxy/V1/get`,method:`GET`,query:e,...t})};saveFile={get_save_file:(e,t={})=>this.request({path:`/save-file/v1`,method:`GET`,query:e,...t}),ai_create:(e,t={})=>this.request({path:`/save-file/v1/ai`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),ai_status_list:(e,t={})=>this.request({path:`/save-file/v1/ai-status`,method:`GET`,query:e,...t}),test_list:(e={})=>this.request({path:`/save-file/v1/test`,method:`GET`,...e}),upload_create:(e,t={})=>this.request({path:`/save-file/v1/upload`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),shortener_create:(e,t={})=>this.request({path:`/save-file/v1/shortener`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),get_link_create:(e,t={})=>this.request({path:`/save-file/v1/get-link`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),send_email_create:(e,t={})=>this.request({path:`/save-file/v1/send-email`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};aiGenerator={get_ai_generator:(e,t={})=>this.request({path:`/ai-generator/v1`,method:`GET`,query:e,...t}),ai_create:(e,t={})=>this.request({path:`/ai-generator/v1/ai`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),ai_status_list:(e,t={})=>this.request({path:`/ai-generator/v1/ai-status`,method:`GET`,query:e,...t}),test_list:(e={})=>this.request({path:`/ai-generator/v1/test`,method:`GET`,...e}),clear_history_list:(e,t={})=>this.request({path:`/ai-generator/v1/clear-history`,method:`GET`,query:e,...t}),save_task_create:(e,t={})=>this.request({path:`/ai-generator/v1/save-task`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),identificate_blocks_create:(e,t={})=>this.request({path:`/ai-generator/v1/identificate_blocks`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),create_subject_create:(e,t={})=>this.request({path:`/ai-generator/v1/create_subject`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),ai_subj2_create:(e={})=>this.request({path:`/ai-generator/v1/ai-subj-2`,method:`POST`,...e}),ai_chain_create:(e={})=>this.request({path:`/ai-generator/v1/ai-chain`,method:`POST`,...e})};auth={get_auth:(e,t={})=>this.request({path:`/auth/v1`,method:`GET`,query:e,...t}),users_register_create:(e,t={})=>this.request({path:`/auth/v1/users/register`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),check_auth_list:(e={})=>this.request({path:`/auth/v1/check_auth`,method:`GET`,...e}),yandex_callback_create:(e,t={})=>this.request({path:`/auth/v1/yandex/callback`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),google_callback_create:(e,t={})=>this.request({path:`/auth/v1/google/callback`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),elama_callback_list:(e,t={})=>this.request({path:`/auth/v1/elama/callback`,method:`GET`,query:e,...t}),elama_callback_create:(e,t={})=>this.request({path:`/auth/v1/elama/callback`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),elama_refresh_token_list:(e,t={})=>this.request({path:`/auth/v1/elama/refresh_token`,method:`GET`,query:e,...t}),elama_refresh_token_create:(e,t={})=>this.request({path:`/auth/v1/elama/refresh_token`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};inbox={get_inbox:(e,t={})=>this.request({path:`/inbox/v1`,method:`GET`,query:e,...t}),check_inbox_create:(e,t={})=>this.request({path:`/inbox/v1/check-inbox`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};promo={get_promo:(e,t={})=>this.request({path:`/promo/v1`,method:`GET`,query:e,...t}),set_code_create:(e,t={})=>this.request({path:`/promo/v1/set_code`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),get_code_info_list:(e,t={})=>this.request({path:`/promo/v1/get_code_info`,method:`GET`,query:e,...t}),get_referral_data_list:(e={})=>this.request({path:`/promo/v1/get_referral_data`,method:`GET`,...e})};optimization={get_optimization:(e,t={})=>this.request({path:`/optimization/v1`,method:`GET`,query:e,...t}),validate_images_create:(e,t={})=>this.request({path:`/optimization/v1/validate/images`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),validate_links_create:(e,t={})=>this.request({path:`/optimization/v1/validate/links`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),validate_spamassasin_create:(e,t={})=>this.request({path:`/optimization/v1/validate/spamassasin`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t})};previewSettings={get_preview_settings:(e,t={})=>this.request({path:`/preview_settings/v1`,method:`GET`,query:e,...t}),preview_emails_detail:({id:e,...t},n={})=>this.request({path:`/preview_settings/v1/preview/emails/${e}`,method:`GET`,...n}),preview_emails_partial_update:({id:e,...t},n,r={})=>this.request({path:`/preview_settings/v1/preview/emails/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,...r}),projects_temporary_user_create:({projectId:e,...t},n,r={})=>this.request({path:`/preview_settings/v1/projects/${e}/temporary_user`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),projects_temporary_user_delete:({projectId:e,...t},n={})=>this.request({path:`/preview_settings/v1/projects/${e}/temporary_user`,method:`DELETE`,...n}),emails_temporary_access_list:({emailId:e,...t},n={})=>this.request({path:`/preview_settings/v1/emails/${e}/temporary_access`,method:`GET`,...n}),emails_temporary_access_create:({emailId:e,...t},n,r={})=>this.request({path:`/preview_settings/v1/emails/${e}/temporary_access`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),emails_temporary_access_delete:({emailId:e,targetUserId:t,...n},r={})=>this.request({path:`/preview_settings/v1/emails/${e}/temporary_access/${t}`,method:`DELETE`,...r})};emFiles={get_em_files:(e,t={})=>this.request({path:`/em-files/v1`,method:`GET`,query:e,...t}),folders_list:(e,t={})=>this.request({path:`/em-files/v1/folders`,method:`GET`,query:e,format:`json`,...t}),folders_create:(e,t={})=>this.request({path:`/em-files/v1/folders`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),folders_delete:(e,t={})=>this.request({path:`/em-files/v1/folders`,method:`DELETE`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),empty_trash_create:(e,t={})=>this.request({path:`/em-files/v1/empty-trash`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),files_list:(e,t={})=>this.request({path:`/em-files/v1/files`,method:`GET`,query:e,format:`json`,...t}),files_create:(e,t={})=>this.request({path:`/em-files/v1/files`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),files_delete:(e,t={})=>this.request({path:`/em-files/v1/files`,method:`DELETE`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),files_partial_update:(e,t={})=>this.request({path:`/em-files/v1/files`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),files_upload_by_url_create:(e,t={})=>this.request({path:`/em-files/v1/files/upload-by-url`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),files_rename_partial_update:(e,t={})=>this.request({path:`/em-files/v1/files/rename`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),items_move_partial_update:(e,t={})=>this.request({path:`/em-files/v1/items/move`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),file_dimensions_list:(e,t={})=>this.request({path:`/em-files/v1/file/dimensions`,method:`GET`,query:e,format:`json`,...t}),cache_clear_create:(e,t={})=>this.request({path:`/em-files/v1/cache/clear`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};projects={get_projects:(e,t={})=>this.request({path:`/projects/v1`,method:`GET`,query:e,...t}),flush_email_template_cache_create:(e={})=>this.request({path:`/projects/v1/flush-email-template-cache`,method:`POST`,...e}),list_advanced_list:(e,t={})=>this.request({path:`/projects/v1/list_advanced`,method:`GET`,query:e,...t}),top_used_list:(e,t={})=>this.request({path:`/projects/v1/top-used`,method:`GET`,query:e,...t}),frequent_list:(e,t={})=>this.request({path:`/projects/v1/frequent`,method:`GET`,query:e,...t}),members_bulk_create:(e,t={})=>this.request({path:`/projects/v1/members/bulk`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),flush_project_cache_create:(e,t={})=>this.request({path:`/projects/v1/flush-project-cache`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),profile_options_list:(e={})=>this.request({path:`/projects/v1/profile/options`,method:`GET`,...e}),profile_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/profile/${e}`,method:`GET`,...n}),profile_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/profile/${e}`,method:`PATCH`,...n}),storage_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/storage/${e}`,method:`GET`,...n}),storage_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/storage/${e}`,method:`PATCH`,...n}),storage_test_create:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/storage/${e}/test`,method:`POST`,...n}),integrations_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/integrations/${e}`,method:`GET`,query:t,...n}),integrations_partial_update:({projectId:e,...t},n,r={})=>this.request({path:`/projects/v1/integrations/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,...r}),members_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/members/${e}`,method:`GET`,...n}),styles_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/styles/${e}`,method:`GET`,...n}),styles_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/styles/${e}`,method:`PATCH`,...n}),social_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/social/${e}`,method:`GET`,...n}),social_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/social/${e}`,method:`PATCH`,...n}),developer_credentials_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/developer-credentials/${e}`,method:`GET`,...n}),developer_credentials_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/developer-credentials/${e}`,method:`PATCH`,...n}),developer_credentials_rotate_secret_create:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/developer-credentials/${e}/rotate-secret`,method:`POST`,...n}),developer_credentials_verify_secret_create:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/developer-credentials/${e}/verify-secret`,method:`POST`,...n}),developer_kit_postman_collection_list:(e={})=>this.request({path:`/projects/v1/developer-kit/postman-collection`,method:`GET`,...e}),usage_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/usage/${e}`,method:`GET`,...n}),billing_context_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/billing-context/${e}`,method:`GET`,...n}),settings_summary_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/settings-summary/${e}`,method:`GET`,...n})};wp={get_wp:(e,t={})=>this.request({path:`/wp/v2`,method:`GET`,query:e,...t}),confirmation_list:(e,t={})=>this.request({path:`/wp/v2/confirmation`,method:`GET`,query:e,...t}),users_register_create:(e={})=>this.request({path:`/wp/v2/users/register`,method:`POST`,...e}),users_lostpassword_create:(e={})=>this.request({path:`/wp/v2/users/lostpassword`,method:`POST`,...e}),users_lost_password_create:(e={})=>this.request({path:`/wp/v2/users/lost-password`,method:`POST`,...e}),posts_list:(e,t={})=>this.request({path:`/wp/v2/posts`,method:`GET`,query:e,format:`json`,...t}),posts_create:(e,t={})=>this.request({path:`/wp/v2/posts`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),posts_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/posts/${e}`,method:`GET`,query:t,format:`json`,...n}),posts_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/posts/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),posts_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/posts/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),posts_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/posts/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),posts_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/posts/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),posts_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/posts/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),pages_list:(e,t={})=>this.request({path:`/wp/v2/pages`,method:`GET`,query:e,format:`json`,...t}),pages_create:(e,t={})=>this.request({path:`/wp/v2/pages`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),pages_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/pages/${e}`,method:`GET`,query:t,format:`json`,...n}),pages_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/pages/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),pages_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/pages/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),pages_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/pages/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),pages_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/pages/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),pages_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/pages/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),media_list:(e,t={})=>this.request({path:`/wp/v2/media`,method:`GET`,query:e,format:`json`,...t}),media_create:(e,t={})=>this.request({path:`/wp/v2/media`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),media_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/media/${e}`,method:`GET`,query:t,format:`json`,...n}),media_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),media_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),media_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),media_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),media_post_process_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}/post-process`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),media_edit_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}/edit`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),menu_items_list:(e,t={})=>this.request({path:`/wp/v2/menu-items`,method:`GET`,query:e,format:`json`,...t}),menu_items_create:(e,t={})=>this.request({path:`/wp/v2/menu-items`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),menu_items_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`GET`,query:t,format:`json`,...n}),menu_items_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/menu-items/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),menu_items_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/menu-items/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),blocks_list:(e,t={})=>this.request({path:`/wp/v2/blocks`,method:`GET`,query:e,format:`json`,...t}),blocks_create:(e,t={})=>this.request({path:`/wp/v2/blocks`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),blocks_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`GET`,query:t,format:`json`,...n}),blocks_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/blocks/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),blocks_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/blocks/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),blocks_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/blocks/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),blocks_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/blocks/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),blocks_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/blocks/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),templates_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/templates/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),templates_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/templates/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),templates_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/templates/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),templates_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/templates/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),templates_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),templates_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/templates/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),templates_list:(e,t={})=>this.request({path:`/wp/v2/templates`,method:`GET`,query:e,format:`json`,...t}),templates_create:(e,t={})=>this.request({path:`/wp/v2/templates`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),templates_lookup_list:(e,t={})=>this.request({path:`/wp/v2/templates/lookup`,method:`GET`,query:e,...t}),templates_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/templates/${e}`,method:`GET`,query:t,format:`json`,...n}),templates_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),templates_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),templates_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),templates_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/template-parts/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),template_parts_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/template-parts/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),template_parts_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/template-parts/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),template_parts_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/template-parts/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),template_parts_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/template-parts/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),template_parts_list:(e,t={})=>this.request({path:`/wp/v2/template-parts`,method:`GET`,query:e,format:`json`,...t}),template_parts_create:(e,t={})=>this.request({path:`/wp/v2/template-parts`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),template_parts_lookup_list:(e,t={})=>this.request({path:`/wp/v2/template-parts/lookup`,method:`GET`,query:e,...t}),template_parts_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`GET`,query:t,format:`json`,...n}),template_parts_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),global_styles_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/global-styles/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),global_styles_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/global-styles/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),global_styles_themes_variations_list:({stylesheet:e,...t},n={})=>this.request({path:`/wp/v2/global-styles/themes/${e}/variations`,method:`GET`,...n}),global_styles_themes_detail:({stylesheet:e,...t},n={})=>this.request({path:`/wp/v2/global-styles/themes/${e}`,method:`GET`,...n}),global_styles_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:`GET`,format:`json`,...n}),global_styles_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),global_styles_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),global_styles_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_list:(e,t={})=>this.request({path:`/wp/v2/navigation`,method:`GET`,query:e,format:`json`,...t}),navigation_create:(e,t={})=>this.request({path:`/wp/v2/navigation`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),navigation_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`GET`,query:t,format:`json`,...n}),navigation_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/navigation/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),navigation_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/navigation/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),navigation_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/navigation/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),navigation_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/navigation/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),navigation_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/navigation/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),font_families_list:(e,t={})=>this.request({path:`/wp/v2/font-families`,method:`GET`,query:e,format:`json`,...t}),font_families_create:(e,t={})=>this.request({path:`/wp/v2/font-families`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),font_families_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`GET`,query:t,format:`json`,...n}),font_families_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_font_faces_list:({fontFamilyId:e,...t},n={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces`,method:`GET`,query:t,format:`json`,...n}),font_families_font_faces_create:({fontFamilyId:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_font_faces_detail:({fontFamilyId:e,id:t,...n},r={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces/${t}`,method:`GET`,query:n,format:`json`,...r}),font_families_font_faces_delete:({fontFamilyId:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),eblock_list:(e,t={})=>this.request({path:`/wp/v2/eblock`,method:`GET`,query:e,format:`json`,...t}),eblock_create:(e,t={})=>this.request({path:`/wp/v2/eblock`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),eblock_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`GET`,query:t,format:`json`,...n}),eblock_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/eblock/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),eblock_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/eblock/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),eblock_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/eblock/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),eblock_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/eblock/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),eblock_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/eblock/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),email_list:(e,t={})=>this.request({path:`/wp/v2/email`,method:`GET`,query:e,format:`json`,...t}),email_create:(e,t={})=>this.request({path:`/wp/v2/email`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),email_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/email/${e}`,method:`GET`,query:t,format:`json`,...n}),email_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/email/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),email_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/email/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),email_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/email/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),email_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/email/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),email_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/email/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),notification_list:(e,t={})=>this.request({path:`/wp/v2/notification`,method:`GET`,query:e,format:`json`,...t}),notification_create:(e,t={})=>this.request({path:`/wp/v2/notification`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),notification_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/notification/${e}`,method:`GET`,query:t,format:`json`,...n}),notification_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/notification/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),notification_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/notification/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),payment_list:(e,t={})=>this.request({path:`/wp/v2/payment`,method:`GET`,query:e,format:`json`,...t}),payment_create:(e,t={})=>this.request({path:`/wp/v2/payment`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),payment_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/payment/${e}`,method:`GET`,query:t,format:`json`,...n}),payment_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/payment/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),payment_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/payment/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),payment_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/payment/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),payment_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/payment/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_list:(e,t={})=>this.request({path:`/wp/v2/project`,method:`GET`,query:e,format:`json`,...t}),project_create:(e,t={})=>this.request({path:`/wp/v2/project`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),project_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/project/${e}`,method:`GET`,query:t,format:`json`,...n}),project_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/project/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/project/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/project/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/project/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/project/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),project_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/project/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),project_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/project/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),subscription_list:(e,t={})=>this.request({path:`/wp/v2/subscription`,method:`GET`,query:e,format:`json`,...t}),subscription_create:(e,t={})=>this.request({path:`/wp/v2/subscription`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),subscription_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`GET`,query:t,format:`json`,...n}),subscription_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),subscription_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),subscription_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),subscription_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),user_promocodes_list:(e,t={})=>this.request({path:`/wp/v2/user_promocodes`,method:`GET`,query:e,format:`json`,...t}),user_promocodes_create:(e,t={})=>this.request({path:`/wp/v2/user_promocodes`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),user_promocodes_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`GET`,query:t,format:`json`,...n}),user_promocodes_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),user_promocodes_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),user_promocodes_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),user_promocodes_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),types_list:(e,t={})=>this.request({path:`/wp/v2/types`,method:`GET`,query:e,format:`json`,...t}),types_detail:({type:e,...t},n={})=>this.request({path:`/wp/v2/types/${e}`,method:`GET`,query:t,format:`json`,...n}),statuses_list:(e,t={})=>this.request({path:`/wp/v2/statuses`,method:`GET`,query:e,format:`json`,...t}),statuses_detail:({status:e,...t},n={})=>this.request({path:`/wp/v2/statuses/${e}`,method:`GET`,query:t,format:`json`,...n}),taxonomies_list:(e,t={})=>this.request({path:`/wp/v2/taxonomies`,method:`GET`,query:e,format:`json`,...t}),taxonomies_detail:({taxonomy:e,...t},n={})=>this.request({path:`/wp/v2/taxonomies/${e}`,method:`GET`,query:t,format:`json`,...n}),categories_list:(e,t={})=>this.request({path:`/wp/v2/categories`,method:`GET`,query:e,format:`json`,...t}),categories_create:(e,t={})=>this.request({path:`/wp/v2/categories`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),categories_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/categories/${e}`,method:`GET`,query:t,format:`json`,...n}),categories_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/categories/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),categories_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/categories/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),categories_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/categories/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),categories_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/categories/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),tags_list:(e,t={})=>this.request({path:`/wp/v2/tags`,method:`GET`,query:e,format:`json`,...t}),tags_create:(e,t={})=>this.request({path:`/wp/v2/tags`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),tags_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/tags/${e}`,method:`GET`,query:t,format:`json`,...n}),tags_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/tags/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),tags_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/tags/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),tags_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/tags/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),tags_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/tags/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menus_list:(e,t={})=>this.request({path:`/wp/v2/menus`,method:`GET`,query:e,format:`json`,...t}),menus_create:(e,t={})=>this.request({path:`/wp/v2/menus`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),menus_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/menus/${e}`,method:`GET`,query:t,format:`json`,...n}),menus_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menus/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menus_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menus/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menus_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menus/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menus_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menus/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),wp_pattern_category_list:(e,t={})=>this.request({path:`/wp/v2/wp_pattern_category`,method:`GET`,query:e,format:`json`,...t}),wp_pattern_category_create:(e,t={})=>this.request({path:`/wp/v2/wp_pattern_category`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),wp_pattern_category_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`GET`,query:t,format:`json`,...n}),wp_pattern_category_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),wp_pattern_category_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),wp_pattern_category_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),wp_pattern_category_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),group_list:(e,t={})=>this.request({path:`/wp/v2/group`,method:`GET`,query:e,format:`json`,...t}),group_create:(e,t={})=>this.request({path:`/wp/v2/group`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),group_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/group/${e}`,method:`GET`,query:t,format:`json`,...n}),group_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/group/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),group_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/group/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),group_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/group/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),group_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/group/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blockfolder_list:(e,t={})=>this.request({path:`/wp/v2/blockfolder`,method:`GET`,query:e,format:`json`,...t}),blockfolder_create:(e,t={})=>this.request({path:`/wp/v2/blockfolder`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),blockfolder_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`GET`,query:t,format:`json`,...n}),blockfolder_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blockfolder_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blockfolder_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blockfolder_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocktags_list:(e,t={})=>this.request({path:`/wp/v2/blocktags`,method:`GET`,query:e,format:`json`,...t}),blocktags_create:(e,t={})=>this.request({path:`/wp/v2/blocktags`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),blocktags_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`GET`,query:t,format:`json`,...n}),blocktags_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocktags_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocktags_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocktags_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),emailtags_list:(e,t={})=>this.request({path:`/wp/v2/emailtags`,method:`GET`,query:e,format:`json`,...t}),emailtags_create:(e,t={})=>this.request({path:`/wp/v2/emailtags`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),emailtags_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`GET`,query:t,format:`json`,...n}),emailtags_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),emailtags_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),emailtags_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),emailtags_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),folder_list:(e,t={})=>this.request({path:`/wp/v2/folder`,method:`GET`,query:e,format:`json`,...t}),folder_create:(e,t={})=>this.request({path:`/wp/v2/folder`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),folder_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/folder/${e}`,method:`GET`,query:t,format:`json`,...n}),folder_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/folder/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),folder_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/folder/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),folder_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/folder/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),folder_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/folder/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_list:(e,t={})=>this.request({path:`/wp/v2/users`,method:`GET`,query:e,format:`json`,...t}),users_create:(e,t={})=>this.request({path:`/wp/v2/users`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/users/${e}`,method:`GET`,query:t,format:`json`,...n}),users_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_me_list:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`GET`,query:e,format:`json`,...t}),users_me_create:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_me_update:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`PUT`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_me_partial_update:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_me_delete:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`DELETE`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_application_passwords_list:({userId:e,...t},n={})=>this.request({path:`/wp/v2/users/${e}/application-passwords`,method:`GET`,query:t,format:`json`,...n}),users_application_passwords_create:({userId:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}/application-passwords`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_application_passwords_delete:({userId:e,...t},n={})=>this.request({path:`/wp/v2/users/${e}/application-passwords`,method:`DELETE`,format:`json`,...n}),users_application_passwords_introspect_list:({userId:e,...t},n={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/introspect`,method:`GET`,query:t,format:`json`,...n}),users_application_passwords_detail:({userId:e,uuid:t,...n},r={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`GET`,query:n,format:`json`,...r}),users_application_passwords_create2:({userId:e,uuid:t,...n},r,i={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`POST`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),users_application_passwords_update:({userId:e,uuid:t,...n},r,i={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`PUT`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),users_application_passwords_partial_update:({userId:e,uuid:t,...n},r,i={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`PATCH`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),users_application_passwords_delete2:({userId:e,uuid:t,...n},r={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`DELETE`,format:`json`,...r}),comments_list:(e,t={})=>this.request({path:`/wp/v2/comments`,method:`GET`,query:e,format:`json`,...t}),comments_create:(e,t={})=>this.request({path:`/wp/v2/comments`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),comments_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/comments/${e}`,method:`GET`,query:t,format:`json`,...n}),comments_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/comments/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),comments_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/comments/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),comments_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/comments/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),comments_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/comments/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),search_list:(e,t={})=>this.request({path:`/wp/v2/search`,method:`GET`,query:e,format:`json`,...t}),block_renderer_detail:({name:e,...t},n={})=>this.request({path:`/wp/v2/block-renderer/${e}`,method:`GET`,query:t,format:`json`,...n}),block_renderer_create:({name:e,...t},n,r={})=>this.request({path:`/wp/v2/block-renderer/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),block_types_list:(e,t={})=>this.request({path:`/wp/v2/block-types`,method:`GET`,query:e,format:`json`,...t}),block_types_detail:({namespace:e,...t},n={})=>this.request({path:`/wp/v2/block-types/${e}`,method:`GET`,query:t,format:`json`,...n}),block_types_detail2:({name:e,namespace:t,...n},r={})=>this.request({path:`/wp/v2/block-types/${t}/${e}`,method:`GET`,query:n,format:`json`,...r}),settings_list:(e={})=>this.request({path:`/wp/v2/settings`,method:`GET`,format:`json`,...e}),settings_create:(e,t={})=>this.request({path:`/wp/v2/settings`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),settings_update:(e,t={})=>this.request({path:`/wp/v2/settings`,method:`PUT`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),settings_partial_update:(e,t={})=>this.request({path:`/wp/v2/settings`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),themes_list:(e,t={})=>this.request({path:`/wp/v2/themes`,method:`GET`,query:e,format:`json`,...t}),themes_detail:({stylesheet:e,...t},n={})=>this.request({path:`/wp/v2/themes/${e}`,method:`GET`,format:`json`,...n}),plugins_list:(e,t={})=>this.request({path:`/wp/v2/plugins`,method:`GET`,query:e,format:`json`,...t}),plugins_create:(e,t={})=>this.request({path:`/wp/v2/plugins`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),plugins_detail:({plugin:e,...t},n={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`GET`,query:t,format:`json`,...n}),plugins_create2:({plugin:e,...t},n,r={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),plugins_update:({plugin:e,...t},n,r={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),plugins_partial_update:({plugin:e,...t},n,r={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),plugins_delete:({plugin:e,...t},n,r={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),sidebars_list:(e,t={})=>this.request({path:`/wp/v2/sidebars`,method:`GET`,query:e,format:`json`,...t}),sidebars_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:`GET`,query:t,format:`json`,...n}),sidebars_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),sidebars_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),sidebars_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),widget_types_list:(e,t={})=>this.request({path:`/wp/v2/widget-types`,method:`GET`,query:e,format:`json`,...t}),widget_types_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/widget-types/${e}`,method:`GET`,query:t,format:`json`,...n}),widget_types_encode_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widget-types/${e}/encode`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),widget_types_render_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widget-types/${e}/render`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),widgets_list:(e,t={})=>this.request({path:`/wp/v2/widgets`,method:`GET`,query:e,format:`json`,...t}),widgets_create:(e,t={})=>this.request({path:`/wp/v2/widgets`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),widgets_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`GET`,query:t,format:`json`,...n}),widgets_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),widgets_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),widgets_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),widgets_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),block_directory_search_list:(e,t={})=>this.request({path:`/wp/v2/block-directory/search`,method:`GET`,query:e,format:`json`,...t}),pattern_directory_patterns_list:(e,t={})=>this.request({path:`/wp/v2/pattern-directory/patterns`,method:`GET`,query:e,format:`json`,...t}),block_patterns_patterns_list:(e={})=>this.request({path:`/wp/v2/block-patterns/patterns`,method:`GET`,format:`json`,...e}),block_patterns_categories_list:(e={})=>this.request({path:`/wp/v2/block-patterns/categories`,method:`GET`,format:`json`,...e}),menu_locations_list:(e,t={})=>this.request({path:`/wp/v2/menu-locations`,method:`GET`,query:e,format:`json`,...t}),menu_locations_detail:({location:e,...t},n={})=>this.request({path:`/wp/v2/menu-locations/${e}`,method:`GET`,query:t,format:`json`,...n}),font_collections_list:(e,t={})=>this.request({path:`/wp/v2/font-collections`,method:`GET`,query:e,format:`json`,...t}),font_collections_detail:({slug:e,...t},n={})=>this.request({path:`/wp/v2/font-collections/${e}`,method:`GET`,query:t,format:`json`,...n}),icons_list:(e,t={})=>this.request({path:`/wp/v2/icons`,method:`GET`,query:e,format:`json`,...t}),icons_detail:({name:e,...t},n={})=>this.request({path:`/wp/v2/icons/${e}`,method:`GET`,query:t,format:`json`,...n})};userToProject={get_user_to_project:(e,t={})=>this.request({path:`/user_to_project/v1`,method:`GET`,query:e,...t}),add_user_create:(e,t={})=>this.request({path:`/user_to_project/v1/add_user`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};payment={get_payment:(e,t={})=>this.request({path:`/payment/v1`,method:`GET`,query:e,...t}),check_duplicate_list:(e,t={})=>this.request({path:`/payment/v1/check_duplicate`,method:`GET`,query:e,...t}),check_duplicate_create:(e,t={})=>this.request({path:`/payment/v1/check_duplicate`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),subscription_payment_create:(e,t={})=>this.request({path:`/payment/v1/subscription_payment`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),subscription_cancelled_create:(e={})=>this.request({path:`/payment/v1/subscription_cancelled`,method:`POST`,...e}),refund_create:(e,t={})=>this.request({path:`/payment/v1/refund`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),package_purchase_create:(e,t={})=>this.request({path:`/payment/v1/package_purchase`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};counters={get_counters:(e,t={})=>this.request({path:`/counters/v1`,method:`GET`,query:e,...t}),increment_counter_partial_update:(e={})=>this.request({path:`/counters/v1/increment_counter`,method:`PATCH`,...e})};users={get_users:(e,t={})=>this.request({path:`/users/v1`,method:`GET`,query:e,...t}),is_paying_user_list:(e={})=>this.request({path:`/users/v1/is_paying_user`,method:`GET`,...e}),subscription_by_email_list:(e,t={})=>this.request({path:`/users/v1/subscription_by_email`,method:`GET`,query:e,...t})};email={get_email:(e,t={})=>this.request({path:`/email/v2`,method:`GET`,query:e,...t}),export_batches_create:(e={})=>this.request({path:`/email/v2/export/batches`,method:`POST`,...e}),export_batches_latest_list:(e,t={})=>this.request({path:`/email/v2/export/batches/latest`,method:`GET`,query:e,...t}),export_batches_detail:({batchId:e,...t},n={})=>this.request({path:`/email/v2/export/batches/${e}`,method:`GET`,...n}),export_batches_delete:({batchId:e,...t},n={})=>this.request({path:`/email/v2/export/batches/${e}`,method:`DELETE`,...n}),export_batches_cancel_create:({batchId:e,...t},n={})=>this.request({path:`/email/v2/export/batches/${e}/cancel`,method:`POST`,...n}),export_download_list:(e,t={})=>this.request({path:`/email/v2/export/download`,method:`GET`,query:e,...t}),templates_list:(e,t={})=>this.request({path:`/email/v2/templates`,method:`GET`,query:e,...t}),html_list:(e,t={})=>this.request({path:`/email/v2/html`,method:`GET`,query:e,...t}),copy_create:(e,t={})=>this.request({path:`/email/v2/copy`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};wpOpenapi={wp_openapi_list:(e,t={})=>this.request({path:`/wp-openapi`,method:`GET`,query:e,...t}),stoplight_ui_list:(e={})=>this.request({path:`/wp-openapi/stoplight-ui`,method:`GET`,...e}),get_wp_openapi:(e,t={})=>this.request({path:`/wp-openapi/v1`,method:`GET`,query:e,...t}),schema_list:(e,t={})=>this.request({path:`/wp-openapi/v1/schema`,method:`GET`,query:e,...t})};subscription={get_subscription:(e,t={})=>this.request({path:`/subscription/v2`,method:`GET`,query:e,...t}),activate_trial_list:(e={})=>this.request({path:`/subscription/v2/activate_trial`,method:`GET`,...e}),me_list:(e={})=>this.request({path:`/subscription/v2/me`,method:`GET`,...e}),me_notification_preferences_update:(e={})=>this.request({path:`/subscription/v2/me/notification-preferences`,method:`PUT`,...e})};app={get_app:(e,t={})=>this.request({path:`/app/v1`,method:`GET`,query:e,...t}),app_init_create:(e,t={})=>this.request({path:`/app/v1/app_init`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};jwtAuth={get_jwt_auth:(e,t={})=>this.request({path:`/jwt-auth/v1`,method:`GET`,query:e,...t}),token_create:(e={})=>this.request({path:`/jwt-auth/v1/token`,method:`POST`,...e}),token_validate_create:(e={})=>this.request({path:`/jwt-auth/v1/token/validate`,method:`POST`,...e})};translations={translations_list:(e,t={})=>this.request({path:`/translations`,method:`GET`,query:e,...t}),post_translations:(e={})=>this.request({path:`/translations/v1`,method:`POST`,...e}),get_translations:(e,t={})=>this.request({path:`/translations/v1`,method:`GET`,query:e,...t}),get_translations2:({file:e,...t},n={})=>this.request({path:`/translations/v1/${e}`,method:`GET`,...n}),get_translations3:({id:e,file:t,...n},r={})=>this.request({path:`/translations/v1/${t}/${e}`,method:`GET`,...r})};em1CSync={get_em1_c_sync:(e,t={})=>this.request({path:`/em-1c-sync/v1`,method:`GET`,query:e,...t}),invoice_request_create:(e={})=>this.request({path:`/em-1c-sync/v1/invoice-request`,method:`POST`,...e}),invoice_create:(e={})=>this.request({path:`/em-1c-sync/v1/invoice`,method:`POST`,...e}),ack_create:(e={})=>this.request({path:`/em-1c-sync/v1/ack`,method:`POST`,...e}),test_receiver_create:(e={})=>this.request({path:`/em-1c-sync/v1/test-receiver`,method:`POST`,...e})};prmonline={get_prmonline:(e,t={})=>this.request({path:`/prmonline/v1`,method:`GET`,query:e,...t}),save_ref_create:(e={})=>this.request({path:`/prmonline/v1/save-ref`,method:`POST`,...e}),track_list:(e={})=>this.request({path:`/prmonline/v1/track`,method:`GET`,...e}),track_create:(e={})=>this.request({path:`/prmonline/v1/track`,method:`POST`,...e})};wpMailSmtp={get_wp_mail_smtp:(e,t={})=>this.request({path:`/wp-mail-smtp/v1`,method:`GET`,query:e,...t}),e_detail:({data:e,...t},n={})=>this.request({path:`/wp-mail-smtp/v1/e/${e}`,method:`GET`,...n})};emailmakerLayoutConverter={get_emailmaker_layout_converter:(e,t={})=>this.request({path:`/emailmaker-layout-converter/v1`,method:`GET`,query:e,...t}),convert_create:(e,t={})=>this.request({path:`/emailmaker-layout-converter/v1/convert`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),convert_async_create:(e,t={})=>this.request({path:`/emailmaker-layout-converter/v1/convert/async`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),convert_jobs_detail:({jobId:e,...t},n={})=>this.request({path:`/emailmaker-layout-converter/v1/convert/jobs/${e}`,method:`GET`,...n})};emFmOps={get_em_fm_ops:(e,t={})=>this.request({path:`/em-fm-ops/v1`,method:`GET`,query:e,...t}),history_list:(e,t={})=>this.request({path:`/em-fm-ops/v1/history`,method:`GET`,query:e,...t})};wpSiteHealth={get_wp_site_health:(e,t={})=>this.request({path:`/wp-site-health/v1`,method:`GET`,query:e,...t}),tests_background_updates_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/background-updates`,method:`GET`,format:`json`,...e}),tests_loopback_requests_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/loopback-requests`,method:`GET`,format:`json`,...e}),tests_https_status_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/https-status`,method:`GET`,format:`json`,...e}),tests_dotorg_communication_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/dotorg-communication`,method:`GET`,format:`json`,...e}),tests_authorization_header_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/authorization-header`,method:`GET`,format:`json`,...e}),directory_sizes_list:(e={})=>this.request({path:`/wp-site-health/v1/directory-sizes`,method:`GET`,...e}),tests_page_cache_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/page-cache`,method:`GET`,...e})};wpBlockEditor={get_wp_block_editor:(e,t={})=>this.request({path:`/wp-block-editor/v1`,method:`GET`,query:e,...t}),url_details_list:(e,t={})=>this.request({path:`/wp-block-editor/v1/url-details`,method:`GET`,query:e,...t}),export_list:(e={})=>this.request({path:`/wp-block-editor/v1/export`,method:`GET`,...e}),navigation_fallback_list:(e={})=>this.request({path:`/wp-block-editor/v1/navigation-fallback`,method:`GET`,format:`json`,...e})};wpAbilities={get_wp_abilities:(e,t={})=>this.request({path:`/wp-abilities/v1`,method:`GET`,query:e,...t}),categories_list:(e,t={})=>this.request({path:`/wp-abilities/v1/categories`,method:`GET`,query:e,format:`json`,...t}),categories_detail:({slug:e,...t},n={})=>this.request({path:`/wp-abilities/v1/categories/${e}`,method:`GET`,format:`json`,...n}),abilities_run_list:({name:e,...t},n={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`GET`,query:t,format:`json`,...n}),abilities_run_create:({name:e,...t},n,r={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),abilities_run_update:({name:e,...t},n,r={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),abilities_run_partial_update:({name:e,...t},n,r={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),abilities_run_delete:({name:e,...t},n,r={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),abilities_list:(e,t={})=>this.request({path:`/wp-abilities/v1/abilities`,method:`GET`,query:e,format:`json`,...t}),abilities_detail:({name:e,...t},n={})=>this.request({path:`/wp-abilities/v1/abilities/${e}`,method:`GET`,format:`json`,...n})}},wt=x(`client`),Tt=x(`ai_client`),Et=x(),Dt=x(),Ot=`INJECTION`;function kt(e){return e.getState}function F(e){if(kt(e)){let t=e.getState()[Ot];return t&&O.getInstance(t)}else return e}r.i(),i.n();function At(e,t){for(let n of e)if(n&&t in n)return n[t]}function jt(e){return Object.assign({},...e)}var Mt=[`generic`,`stockImages`,`emFiles`,`cdn`];function Nt(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function Pt(e){return!Nt(e)||`match`in e||`rewrite`in e||`proxyBase`in e?!1:Object.keys(e).some(e=>Mt.includes(e))}function Ft(e){return e.length===0?[]:e.length===1?e[0]:e}function It(e){let t=!1,n=[];for(let r of e)if(r!==void 0){if(t=!0,Array.isArray(r)){n=[...r,...n];continue}n=[r,...n]}if(t)return Ft(n)}function Lt(e){return Nt(e)&&(`value`in e||`replace`in e)}function Rt(e,t){return t===void 0?e:Array.isArray(t)?[...t,...e]:[t,...e]}function zt(e){let t=!1,n=[],r=!1;for(let i of e)if(i!==void 0){if(Lt(i)){t=!0,i.replace&&(n=[],r=!0),i.value!==void 0&&(n=Rt(n,i.value),r=!0);continue}n=Rt(n,i),r=!0}let i=r?Ft(n):void 0;if(!t)return i;if(i!==void 0)return{value:i}}function Bt(e){let t=e.filter(e=>e!==void 0);if(t.length===0)return;if(!t.some(e=>Pt(e)))return It(t);let n={};for(let t of Mt){let r=zt(e.map(e=>{if(e!==void 0)return Pt(e)?e[t]:t===`generic`?e:void 0}));r!==void 0&&(n[t]=r)}return Object.keys(n).length>0?n:void 0}function Vt(e){return It(e)}function Ht(e){if(e!==void 0){if(Array.isArray(e))return{replace:!1,hosts:e};if(Nt(e)&&Array.isArray(e.value))return{replace:!!e.replace,hosts:e.value}}}function Ut(e,t){let n=[...e],r=new Set(n.map(e=>e.toLowerCase()));for(let e of t){let t=e.trim().replace(/:\d+$/,``);if(!t)continue;let i=t.toLowerCase();r.has(i)||(r.add(i),n.push(t))}return n}function Wt(e){let t=[],n=!1;for(let r of e){let e=Ht(r);e&&(n=!0,e.replace&&(t=[]),t=Ut(t,e.hosts))}return n?t:void 0}function Gt(e){let t=e.filter(e=>e!==void 0);if(t.length===0)return;let n=jt(t.map(({directHosts:e,...t})=>t)),r=Wt(t.map(e=>e?.directHosts));return r!==void 0&&(n.directHosts=r),n}var Kt=3e5,qt=new Map,Jt=new Map,Yt=new Set([`generic`,`stockImages`,`emFiles`,`cdn`]),Xt=/^https:\/\/(?:media\d*|i)\.giphy\.com\/media/i,Zt=/^https:\/\/api\.giphy\.com\/v1\/gifs/i,Qt=/^https:\/\/images\.unsplash\.com/i,$t=/^https:\/\/api\.unsplash\.com/i,en=/^https:\/\/assets\.streamlinehq\.com/i,tn=/^https:\/\/public-api\.streamlinehq\.com/i;function nn(e){return typeof e==`string`&&e.trim().length>0}function rn(){let e=`https://px0.racs.rest/`;if(nn(e))return e;let t=i.t.env.REACT_APP_UNSPLASH_PROXY;return nn(t)?t:void 0}function an(){return{stockImagesProxyUrl:`https://api.emailmaker.ru/services/stock_images`,stockImagesProxyUrlApi:`https://api.emailmaker.ru/services/stock_images_api`,genericProxyUrl:rn()}}function on(e){let t=[],{stockImagesProxyUrl:n,stockImagesProxyUrlApi:r,genericProxyUrl:i}=an();return r&&t.push({id:`mode-default-stock-images-api`,match:`https://api.unsplash.com/{path}`,proxyBase:r,rewrite:`{path}?proxy_url={origin}{search}{hash}`}),n&&t.push({id:`mode-default-stock-images-cdn`,match:`https://images.unsplash.com/{path}`,proxyBase:n,rewrite:`{path}?proxy_url={origin}{search}{hash}`}),i&&t.push({id:`mode-default-generic`,proxyBase:i,rewrite:`{path}?proxy_url={origin}{search}{hash}`}),t.length>0?t:void 0}function sn(e){return!!e}var cn=()=>{if(!(typeof window>`u`))return window.location.origin};function ln(e){let t=cn();if(!t)return!1;try{return new URL(e).origin===t}catch{return!1}}function un(e,t){try{let n=new URL(e).hostname.toLowerCase();return t.find(e=>e.toLowerCase()===n)??null}catch{return null}}function dn(e,t){return t?!1:e===`downloadBlob`||e===`display`}function fn(e){let t=e.trim();return t?t.replace(/:\d+$/,``):``}function pn(e,t){if(!t.proxySameOrigin&&ln(e))try{return{skipReason:`same-origin`,matchedHost:new URL(e).hostname}}catch{return null}let n=un(e,t.directHosts);return n?{skipReason:`direct-host`,matchedHost:n}:null}function mn(e){let t=[];for(let n of e){if(Array.isArray(n)){for(let e of n)t.push(e);continue}t.push(n)}return t}function hn(e){let t=new Set,n=[];for(let r of e){let e=_n(typeof r==`string`?r:r.proxyBase||``);e&&t.has(e)||(e&&t.add(e),n.push(r))}return n}function gn(e){return e?.backendProxy}function _n(e){return e.replace(/\/$/,``)}function vn(e){return/^https?:\/\//i.test(e)}function yn(e){return e===`/`?``:e.replace(/\/$/,``)}function bn(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function xn(e){let t=new Set;return e.filter(e=>!e.url||t.has(e.url)?!1:(t.add(e.url),!0))}function Sn(){return`https://emcdn.ru`}function Cn(e){return!bn(e)||`match`in e||`rewrite`in e||`proxyBase`in e?!1:Object.keys(e).some(e=>Yt.has(e))}function wn(e){if(e!=null)return bn(e)&&(`value`in e||`replace`in e)?e.value:e}function Tn(e,t=`generic`,n=!1){let r=Fn(e,n);if(r)return Cn(r)?wn(r[t]??r.generic):r}function En(e,t=!1){let n=Fn(e,t);return n?Cn(n)?Object.keys(n).filter(e=>Yt.has(e)).map(e=>wn(n[e])).filter(Boolean):[n]:[]}function Dn(e){let t=gn(e);return t?[t]:[]}function On(e,t=!1){if(sn(t))return{proxyBlobFetch:!0,proxyImgSrc:!0,proxyCdn:!0,proxyEmFiles:!0,proxyStockImages:!0};let{stockImagesProxyUrl:n,stockImagesProxyUrlApi:r}=an();return{proxyBlobFetch:!0,proxyImgSrc:!1,proxyCdn:!1,proxyEmFiles:!1,proxyStockImages:nn(n)||nn(r)}}function kn(e){let t=[],n=new Set;for(let r of e){let e=fn(r);if(!e)continue;let i=e.toLowerCase();n.has(i)||(n.add(i),t.push(e))}return t}function An(e){return e?kn(Array.isArray(e)?e:e.value??[]):[]}function jn(e,t){return{inheritDefaults:!e,proxySameOrigin:!1,directHosts:[],...On(t,e)}}function Mn(e,t=!1){let n=jn(t,e),r=e?.resourceProxyPolicy??{};return{inheritDefaults:r.inheritDefaults??n.inheritDefaults,proxySameOrigin:r.proxySameOrigin??n.proxySameOrigin,directHosts:r.directHosts===void 0?n.directHosts:An(r.directHosts),proxyBlobFetch:r.proxyBlobFetch??n.proxyBlobFetch,proxyImgSrc:r.proxyImgSrc??n.proxyImgSrc,proxyCdn:r.proxyCdn??n.proxyCdn,proxyEmFiles:r.proxyEmFiles??n.proxyEmFiles,proxyStockImages:r.proxyStockImages??n.proxyStockImages,recoveryTtlMs:r.recoveryTtlMs??n.recoveryTtlMs}}function Nn(e,t=!1){return Mn(e,t).inheritDefaults}function Pn(e,t=!1){let n=Mn(e,t).recoveryTtlMs;return typeof n==`number`&&n>0?n:Kt}function Fn(e,t=!1){let n=e?.resourceProxy;if(!Nn(e,t))return n;let r=on(e);if(n===void 0)return r;let i=Bt([r,n]);return Array.isArray(i)?hn(mn(i)):i}function In(e){return{proxyEmFiles:!0,proxyAi:!1}}function Ln(e,t,n,r=!1){let i=Mn(n,r);if(t===`display`)return e===`stockImages`?i.proxyStockImages:i.proxyImgSrc;switch(e){case`cdn`:return i.proxyCdn;case`emFiles`:return i.proxyEmFiles;case`stockImages`:return i.proxyStockImages;default:return i.proxyBlobFetch}}function Rn(e,t,n,r=!1){return e===`stockImages`&&Ln(`stockImages`,t,n,r)}function zn(e,t){let n=In(t),r=t?.backendProxyPolicy;switch(e){case`emFiles`:return r?.proxyEmFiles??n.proxyEmFiles;case`ai`:return r?.proxyAi??n.proxyAi;default:return!0}}var Bn={url:`.+`,url_encoded:`.+`,origin:`https?:\\/\\/[^\\/?#]+`,origin_encoded:`.+`,proxy_url:`https?:\\/\\/[^\\/?#]+`,proxy_url_encoded:`.+`,path:`[^?#]*`,pathname:`[^?#]*`,path_with_slash:`\\/[^?#]*`,pathname_with_slash:`\\/[^?#]*`,query:`[^#]*`,search:`\\?[^#]*`,hash:`#.*`,fragment:`.*`,pathname_after_wp_json:`[^?#]*`,pathname_after_wp_json_with_slash:`\\/[^?#]*`,rest_namespace:`[^/?#]*`,rest_version:`[^/?#]*`,rest_route:`[^?#]*`,rest_route_with_slash:`\\/[^?#]*`};function Vn(e){let t=[],n=e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`).replace(/\\\{([a-z_]+)\\\}/gi,(e,n)=>(t.push(n),`(${Bn[n]||`.+`})`));return{regex:RegExp(`^${n}$`,`i`),tokens:t}}function Hn(e){return/[?#]/.test(e)||/\{(?:url|url_encoded|query|search|hash|fragment)\}/i.test(e)}function Un(e,t){if(Hn(t))return e;try{let t=new URL(e);return`${t.origin}${t.pathname}`}catch{return e.split(/[?#]/)[0]||e}}function Wn(e,t,n){if(n.endsWith(`_encoded`))return!0;let r=e.slice(0,t),i=r.lastIndexOf(`#`),a=r.lastIndexOf(`?`),o=r.lastIndexOf(`&`),s=r.lastIndexOf(`=`);return s>Math.max(a,o)&&s>i}function Gn(e){try{let t=new URL(e),n=t.pathname.replace(/^\/+/,``),r=t.search.replace(/^\?/,``),i=t.hash.replace(/^#/,``),a=n.replace(/^wp-json\/?/i,``),o=a?`/${a}`:`/`,s=a.match(/^([^/]+)(?:\/([^/]+))?(?:\/(.*))?$/),c=s?.[1]||``,l=s?.[2]||``,u=s?.[3]||``;return{url:e,url_encoded:encodeURIComponent(e),origin:t.origin,origin_encoded:encodeURIComponent(t.origin),proxy_url:t.origin,proxy_url_encoded:encodeURIComponent(t.origin),path:n,pathname:n,path_with_slash:t.pathname||`/`,pathname_with_slash:t.pathname||`/`,query:r,search:t.search,hash:t.hash,fragment:i,pathname_after_wp_json:a,pathname_after_wp_json_with_slash:o,rest_namespace:c,rest_version:l,rest_route:u,rest_route_with_slash:u?`/${u}`:`/`}}catch{return}}function Kn(e,t){if(!e)return{};if(Array.isArray(e)){for(let n of e){let e=Kn(n,t);if(e!==void 0)return e}return}if(e===`*`)return{};let n=Un(t,e),{regex:r,tokens:i}=Vn(e),a=r.exec(n);if(!a)return;let o={};return i.forEach((e,t)=>{o[`matched_${e}`]=a[t+1]||``}),o}function qn(e,t,n={}){let r=Gn(t);if(!r)return t;let i={...r,...n},a=``,o=0,s=/\{([a-z_]+)\}/gi,c;for(;c=s.exec(e);){a+=e.slice(o,c.index);let t=i[c[1]]??``,n=Wn(e,c.index,c[1])?encodeURIComponent(t):t;a+=n,o=c.index+c[0].length}a+=e.slice(o);try{let e=new URL(a),n=new URL(t);return!a.includes(`{search}`)&&!a.includes(`{query}`)&&n.search&&n.searchParams.forEach((t,n)=>{e.searchParams.has(n)||e.searchParams.append(n,t)}),!a.includes(`{hash}`)&&!a.includes(`{fragment}`)&&n.hash&&!e.hash&&(e.hash=n.hash),e.toString()}catch{return a}}function Jn(e,t){try{let n=new URL(t);return`${_n(e)}/${n.pathname.replace(/^\//,``)}${n.search}${n.hash}`}catch{return t}}function Yn(e,t){let n=_n(e);return t?vn(t)?t:t.startsWith(`?`)||t.startsWith(`#`)?`${n}${t}`:`${n}${t.startsWith(`/`)?``:`/`}${t}`:n}function Xn(e,t,n,r){let i=e.match;return i?Array.isArray(i)?i.some(i=>Xn({...e,match:i},t,n,r)):typeof i==`function`?!!i({url:t,resourceType:n,intent:r}):i===`*`?!0:Kn(i,t)!==void 0:!0}function Zn(e,t,n,r,i,a){if(e==null)return[];let o=Array.isArray(e)?e:[e],s=[];return o.forEach((e,o)=>{if(!e)return;if(typeof e==`string`){let i=e.includes(`{`)&&e.includes(`}`)?qn(e,t):Jn(e,t);s.push({key:`${n}:${o}`,url:i,source:r});return}if(!bn(e)||!(`rewrite`in e))return;let c=e;if(!Xn(c,t,i,a))return;let l=(typeof c.match==`string`||Array.isArray(c.match))&&Kn(c.match,t)||{},u=typeof c.proxyBase==`string`&&c.proxyBase.trim()?c.proxyBase.trim():void 0;(Array.isArray(c.rewrite)?c.rewrite:[c.rewrite]).filter(Boolean).forEach((e,d)=>{let f=typeof e==`function`?(()=>{let n=e({url:t,proxyBase:u,resourceType:i,intent:a,...l}),r=u&&!vn(n)?Yn(u,n):n;return r.includes(`{`)&&r.includes(`}`)?qn(r,t,l):r})():u?qn(Yn(u,e),t,l):e.includes(`{`)&&e.includes(`}`)?qn(e,t,l):Jn(e,t);s.push({key:`${n}:${c.id||`rule`}:${o}:${d}`,url:f,source:r})})}),xn(s)}function Qn(e,t,n,r){let i=e.match;return i?Array.isArray(i)?i.some(i=>Qn({...e,match:i},t,n,r)):typeof i==`function`?!!i({url:t,method:r,requestType:n}):i===`*`?!0:Kn(i,t)!==void 0:!0}function $n(e,t,n,r=`generic`){if(e==null)return[];let i=Array.isArray(e)?e:[e],a=[];return i.forEach((e,i)=>{if(!e)return;if(typeof e==`string`){let n=e.includes(`{`)&&e.includes(`}`)?qn(e,t):Jn(e,t);a.push({key:`backend:${i}`,url:n,source:`resource`});return}if(!bn(e)||!(`rewrite`in e))return;let o=e;if(!Qn(o,t,r,n))return;let s=(typeof o.match==`string`||Array.isArray(o.match))&&Kn(o.match,t)||{},c=typeof o.proxyBase==`string`&&o.proxyBase.trim()?o.proxyBase.trim():void 0;(Array.isArray(o.rewrite)?o.rewrite:[o.rewrite]).filter(Boolean).forEach((e,l)=>{let u=typeof e==`function`?(()=>{let i=e({url:t,proxyBase:c,method:n,requestType:r,...s}),a=c&&!vn(i)?Yn(c,i):i;return a.includes(`{`)&&a.includes(`}`)?qn(a,t,s):a})():c?qn(Yn(c,e),t,s):e.includes(`{`)&&e.includes(`}`)?qn(e,t,s):Jn(e,t);a.push({key:`backend:${o.id||`rule`}:${i}:${l}`,url:u,source:`resource`})})}),xn(a)}function er(e,t,n){return[e,...n.map(e=>e.url)].join(`|`)}function tr(e,t){if(!e||t.length<2)return t;let n=qt.get(e);if(!n?.activeUrl)return t;let r=t.find(e=>e.url===n.activeUrl);return r?[r,...t.filter(e=>e.url!==n.activeUrl)]:t}function nr(e){e&&Jt.get(e)?.forEach(e=>{try{e()}catch{}})}function rr(e,t){if(!e)return()=>void 0;let n=Jt.get(e)||new Set;return n.add(t),Jt.set(e,n),()=>{let n=Jt.get(e);n&&(n.delete(t),n.size===0&&Jt.delete(e))}}function ir(e,t){if(!e)return!1;let n=qt.get(e);return!!n?.failedUntil&&n.activeUrl===t.url&&n.failedUntil>Date.now()}function ar(e,t){let n=tr(e,t);if(!e||n.length<2)return n;let r=[],i=[];return n.forEach(t=>{ir(e,t)?i.push(t):r.push(t)}),[...r,...i]}function or(e,t){if(!e)return;let n=qt.get(e);qt.set(e,{activeUrl:t.url}),(n?.activeUrl!==t.url||n?.failedUntil)&&nr(e)}function sr(e,t,n,r=!1){if(!e)return;let i=Pn(n,r),a={activeUrl:t.url,failedUntil:Date.now()+i},o=qt.get(e);qt.set(e,a),(o?.activeUrl!==a.activeUrl||o?.failedUntil!==a.failedUntil)&&nr(e)}function cr(e){return en.test(e)||tn.test(e)}function lr(e){return Xt.test(e)||Zt.test(e)}function ur(e){return cr(e)||lr(e)}function dr(e,t){let n=Sn();return n&&e.startsWith(_n(n))?`cdn`:Qt.test(e)||$t.test(e)?`stockImages`:`generic`}function fr(e){try{let t=new URL(e);return/(?:^|\/)wp-json\/em-files\/v\d+(?:\/|$)/i.test(t.pathname)?`emFiles`:/(?:^|\/)wp-json\/ai-generator\/v\d+(?:\/|$)/i.test(t.pathname)?`ai`:`generic`}catch{return`generic`}}function pr(e,t){try{let n=new URL(e),r=new URL(t),i=yn(r.pathname),a=i===``?!0:n.pathname===i||n.pathname.startsWith(`${i}/`);if(n.origin!==r.origin||!a)return null;let o=n.searchParams.get(`url`);if(o)return o;let s=n.searchParams.get(`proxy_url`);if(!s)return null;let c=new URL(s),l=i===``?n.pathname.replace(/^\/+/,``):n.pathname.slice(i.length).replace(/^\/+/,``);return c.pathname=l?`/${l}`:`/`,n.searchParams.forEach((e,t)=>{t===`proxy_url`||t===`url`||c.searchParams.has(t)||c.searchParams.append(t,e)}),n.hash&&!c.hash&&(c.hash=n.hash),c.toString()}catch{return null}}function mr(e,t=[]){return e==null||(Array.isArray(e)?e:[e]).forEach(e=>{if(e){if(typeof e==`string`){let n=e.split(`{`)[0]?.trim();n&&t.push(_n(n));return}!bn(e)||!(`rewrite`in e)||(typeof e.proxyBase==`string`&&e.proxyBase.trim()&&t.push(_n(e.proxyBase.trim())),(Array.isArray(e.rewrite)?e.rewrite:[e.rewrite]).forEach(e=>{if(typeof e!=`string`)return;let n=e.split(`{`)[0]?.trim();n&&t.push(_n(n))}))}}),t}function hr(e,t,n=!1){return En(t,n).flatMap(e=>mr(e)).filter(Boolean).some(t=>t&&e.startsWith(t))}function gr(e,t){return Dn(t).flatMap(e=>mr(e)).filter(Boolean).some(t=>t&&e.startsWith(t))}function _r(e,t,n=!1){let r=En(t,n).flatMap(e=>mr(e)).filter(Boolean);for(let t of r){let n=pr(e,t);if(n)return n}return null}function vr(e,t,n=!1){return hr(e,t,n)}function yr(e,t,n=!1){return _r(e,t,n)||e}function br(e,t,n,r=!1){return!!Tn(n,e,r)&&Ln(e,t,n,r)}function xr(e,t){return!!gn(t)&&zn(e,t)}function Sr(e,t,n,r=!1){if(sn(r)||t===`downloadBlob`)return!1;switch(e){case`stockImages`:return Ln(e,t,n,r);default:return!1}}function Cr(e,t={}){let n=t.config,r=yr(e,n,t.standalone),i=t.resourceType||dr(r,n),a=t.intent||`display`;if(ur(r))return{resourceType:`generic`,intent:a,candidates:[]};let o=br(i,a,n,t.standalone)?Zn(Tn(n,i,t.standalone),r,i,`resource`,i,a):[];return{resourceType:i,intent:a,candidates:o,stabilityKey:o.length?er(i,a,o):void 0}}function wr(e,t={}){let n=t.requestType||fr(e);return xr(n,t.config)?$n(gn(t.config),e,t.method,n):[]}function Tr(e,t={},n){let r=t.intent||n;if(vr(e,t.config,t.standalone)){let n=yr(e,t.config,t.standalone),i=t.resourceType||dr(n,t.config),a={key:`already-proxied`,url:e,source:`direct`};return{chain:{resourceType:i,intent:r,candidates:[a]},candidates:[a]}}let i=yr(e,t.config,t.standalone),a=t.resourceType||dr(i,t.config),o=Sr(a,r,t.config,t.standalone);if(dn(r,o)&&!ur(i)&&!Rn(a,r,t.config,t.standalone)){let e=pn(i,Mn(t.config,t.standalone));if(e){let t={key:`direct-${e.skipReason}`,url:i,source:`direct`};return{chain:{resourceType:a,intent:r,candidates:[t],directShortCircuit:e},candidates:[t]}}}let s=Cr(i,{...t,intent:r,resourceType:a});return{chain:s,candidates:xn([...ar(s.stabilityKey,s.candidates),...o?[]:[{key:`direct`,url:i,source:`direct`}]])}}function Er(e,t,n={},r){let{chain:i,candidates:a}=Tr(e,n,r),o=a.find(e=>e.url===t);return!o||o.source!==`resource`?null:{chain:i,candidate:o}}function Dr(e,t,n={}){let r=Er(e,t,n,`display`);r&&or(r.chain.stabilityKey,r.candidate)}function Or(e,t,n={}){let r=Er(e,t,n,`display`);r&&sr(r.chain.stabilityKey,r.candidate,n.config,n.standalone)}function kr(e,t,n,r=!1){return{src:e,changed:n,exhausted:r,reason:t}}var Ar=class extends Error{final=!0;skipReason;hostname;constructor(e,t){super(`Direct resource fetch failed (${e}: ${t}). ${e===`same-origin`?`The same-origin asset is unreachable; check that the resource exists and is served by the editor origin.`:`Add CORS headers for the editor origin or remove the host from directHosts.`}`),this.name=`DirectResourceFetchError`,this.skipReason=e,this.hostname=t}};function jr(e,t){return new Ar(e,t)}function Mr(e){if(e instanceof Error&&e.name===`AbortError`)return!1;if(e instanceof TypeError)return!0;if(e instanceof Error){if(e.message===`Proxy validation failed`)return!1;if(e.message.startsWith(`Proxy fetch failed with status`))return!0}return!0}function Nr(e,t=!1){let n=Mn(e,t);return{inheritDefaults:n.inheritDefaults,proxySameOrigin:n.proxySameOrigin,directHosts:[...n.directHosts]}}function Pr(e){return e.length>0&&e.every(e=>e.source===`direct`)}function Fr(e,t,n){return e.directShortCircuit?e.directShortCircuit.skipReason:t.length===1&&t[0]?.source===`direct`&&ur(n)?`direct-only-vendor`:null}function Ir(e,t,n){return e.directShortCircuit||n===`direct-only-vendor`||Pr(t)?`direct`:`proxy`}function Lr(e,t={}){let{chain:n,candidates:r}=Tr(e,t,t.intent||`display`),i=n.stabilityKey?qt.get(n.stabilityKey):void 0,a=r[0]?.url||e,o=Fr(n,r,yr(e,t.config,t.standalone)),s=Nr(t.config,t.standalone);return{originalUrl:e,resourceType:n.resourceType,intent:n.intent,stabilityKey:n.stabilityKey,currentSrc:a,runtimeState:i?{...i}:void 0,decision:Ir(n,r,o),skipReason:o,matchedHost:n.directShortCircuit?.matchedHost,policy:s,candidates:r.map(e=>({...e,isCurrent:e.url===a,isFailed:ir(n.stabilityKey,e),failedUntil:i?.activeUrl===e.url?i?.failedUntil:void 0}))}}function Rr(e,t={}){let n=Tr(e,t,`display`),r=n.candidates,i=r[0]?.url||e,a=Math.max(0,r.findIndex(e=>e.url===i)),o=()=>{let o=Tr(e,t,`display`),s=o.candidates,c=s[0]?.url||e;return!c||c===i?(n=o,r=s,a=Math.max(0,s.findIndex(e=>e.url===i)),kr(i,`unchanged`,!1)):(n=o,r=s,i=c,a=Math.max(0,s.findIndex(e=>e.url===i)),kr(i,`runtime-update`,!0))};return{get src(){return i},get stabilityKey(){return n.chain.stabilityKey},handleChangeSrc:()=>o(),handleSuccess:()=>{Dr(e,i,t)},handleError:()=>{Or(e,i,t);let n=o();if(n.changed&&n.src)return n;let s=r[a+1];return!s||s.url===i?kr(null,`exhausted`,!1,!0):(i=s.url,a+=1,kr(i,`candidate-fallback`,!0))},subscribeToSrcChange:e=>rr(n.chain.stabilityKey,()=>{let t=o();t.changed&&e(t)}),getDebugSnapshot:()=>Lr(e,t)}}async function zr(e,t={}){if(vr(e,t.config,t.standalone))return fetch(e,t.init);let n=t.config,{chain:r,candidates:i}=Tr(e,t,t.intent||`downloadBlob`),a;for(let e of i)try{let n=await fetch(e.url,t.init);if(!n.ok)throw Error(`Proxy fetch failed with status ${n.status}`);if(t.validateBlob){let e=await n.clone().blob();if(!await t.validateBlob(e))throw Error(`Proxy validation failed`)}return e.source===`resource`&&or(r.stabilityKey,e),n}catch(i){a=i,e.source===`resource`&&sr(r.stabilityKey,e,n,t.standalone)}throw r.directShortCircuit&&i.length===1&&i[0]?.source===`direct`&&Mr(a)?jr(r.directShortCircuit.skipReason,r.directShortCircuit.matchedHost):a instanceof Error?a:Error(`Failed to fetch resource through proxy chain`)}function Br(e,t={}){return gr(e,t.config)?[e]:wr(e,t).map(e=>e.url)}function Vr(e,t){let n=Sn(),r=t.filter(Boolean).map(e=>String(e).replace(/^\/+|\/+$/g,``));return n?`${_n(n)}/${r.join(`/`)}`:r.join(`/`)}function Hr(e,t){let n=Sn();return!!n&&e.startsWith(_n(n))}var Ur=e=>{let t=new FormData,n=(e,t,r)=>{if(t!=null){if(t instanceof Blob){e.append(r,t);return}if(Array.isArray(t)){t.forEach((t,i)=>{n(e,t,r?`${r}[${i}]`:`${i}`)});return}if(typeof t==`object`){Object.keys(t).forEach(i=>{let a=t[i];n(e,a,r?`${r}[${i}]`:i)});return}e.append(r,String(t))}};return n(t,e),t};function Wr(e){for(;e.endsWith(`/`);)e=e.slice(0,e.length-1);return/\/wp-json$/i.test(e)?e:`${e}/wp-json`}var Gr={baseUrl:Wr(`https://app.emailmaker.ru/api/`),baseApiParams:{secure:!0,credentials:`same-origin`,format:`json`},securityWorker:()=>({credentials:`same-origin`})},Kr=new Map;function qr(e){if(e)return e.getState().configSlice?.config}var Jr=class extends Ct{container;constructor(e={},t){super(e),this.container=t}buildRequestUrl(e){let{path:t,baseUrl:n,extraQuery:r}=e,{query:i}=e;r&&(i=i?{...i,...r}:r);let a=i&&this.toQueryString(i);return`${n||this.baseUrl||``}${t}${a?`?${a}`:``}`}buildRequestKey(e,t){return`${t.toUpperCase()} ${e}`}getBackendProxyCandidates(e,t){let n=Br(e,{config:qr(this.container?.getInstance(ht)),method:t,standalone:this.container?.getInstance(vt)!==void 0}),r=n.length>0?n:[e],i=this.buildRequestKey(e,t),a=Kr.get(i);return!a||!r.includes(a)?r:[a,...r.filter(e=>e!==a)]}shouldRetryResponse(e){return e.status===502||e.status===503||e.status===504}async request(e){let t=this.buildRequestUrl(e),n=e.method||`GET`,r=this.buildRequestKey(t,n),i=this.getBackendProxyCandidates(t,n),a,o;for(let n of i){let s=e=>e===t?n:e;try{let t=await super.request({...e,proxyHandler:s});if(!t.ok&&this.shouldRetryResponse(t)&&n!==i[i.length-1]){o=t,Kr.get(r)===n&&Kr.delete(r);continue}return Kr.set(r,n),t}catch(e){if(a=e,Kr.get(r)===n&&Kr.delete(r),e instanceof DOMException&&e.name===`AbortError`)throw e}}if(o)return o;throw a instanceof Error?a:Error(`Backend proxy chain failed`)}};function Yr(e=Gr){let t=new Map;return{create(n,r){let i=new Jr({...e,...n},r);return i.contentFormatters[`multipart/form-data`]=Ur,t.set(i,{options:n,container:r}),i},getOptions(){return e},setOptions(n){e=n;for(let[n,r]of t)Object.assign(n,{...e,...r.options})}}}var Xr=x();function Zr(e){return e.getOrCreateInstance(Xr,()=>Yr())}function Qr(e,t={}){let n=kt(e)?F(e):e;return Zr(n).create(t,n)}var $r=x(),ei=x(),ti=x(),ni=e=>{e.inject(ti,{execute:async(t,n={})=>{let r=e.getServices($r),i=t instanceof Request?t:new Request(t,n);for(let e of r){let t=await e.execute(i);t instanceof Request&&(i=t)}let a=await fetch(i),o=e.getServices(ei);for(let e of o)a=await e.execute(a);return a}})},ri=e=>{ni(e);let t=e.getInstance(ti);e.inject(wt,Qr(e,{customFetch:t?.execute||fetch}))},ii;(function(e){let t=`https://racs.emcdn.ru/v3`;function n(e,n){let r={method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/json`},body:JSON.stringify(n)};return fetch(`${t}?resource=${e}&dataset=${document.location.hostname}`,r)}e.post=n;async function r(e,n=0){let r={method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/json`},body:`{"filter":{},"limit":${n}}`};return await(await fetch(`${t}/get?resource=${e}&dataset=${document.location.hostname}`,r)).json()}e.getAll=r})(ii||={});function ai(e){if(typeof e==`object`&&e){let t={};for(let n of Object.keys(e)){let r=e[n];r&&typeof r==`object`?t[n]=ai(r):t[n]=r}return t}return e}function oi(e,t){if(e!==t){if(!e||!t||typeof e!=`object`||typeof t!=`object`)return!1;let n=e instanceof Array,r=t instanceof Array;if(n){if(!r)return!1;let n=e.length;if(t.length!==n)return!1;for(let r=0;r<n;r++)if(!oi(e[r],t[r]))return!1}else if(r)return!1;let i=Object.keys(e),a=Object.keys(t),o=i.length;if(o!==a.length)return!1;for(let n=0;n<o;n++){let r=i[n];if(!t.hasOwnProperty(r)||!oi(e[r],t[r]))return!1}}return!0}var si={text:{fontFamily:[`Safe Fonts`,`-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif`],fontSize:16,fontSizeDim:`px`,lineHeight:21,lineHeightDim:`px`,color:`#5a5a5a`,contrastColor:`#FFFFFF`,textAlign:`left`,paddingBottom:10,paddingBottomDim:`px`},headings:{fontFamily:[`Safe Fonts`,`-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif`],fontSize:24,fontSizeDim:`px`,lineHeight:32,lineHeightDim:`px`,color:`#333333`,contrastColor:`#FFFFFF`,textAlign:`left`,paddingTop:20,paddingTopDim:`px`,paddingBottom:20,paddingBottomDim:`px`,letterSpacing:0,letterSpacingDim:`px`,bold:!0,italic:!1},links:{color:`#1C52DC`,contrastColor:`#FFFFFF`,underline:!0},buttons:{fontFamily:[`Safe Fonts`,`-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif`],fontSize:16,fontSizeDim:`px`,letterSpacing:0,letterSpacingDim:`px`,color:`#FFFFFF`,contrastColor:`#1C52DC`,bold:!1,italic:!1,backgroundColor:`#1C52DC`,contrastBackgroundColor:`#FFFFFF`,marginTop:10,marginTopDim:`px`,marginBottom:10,marginBottomDim:`px`,border:{all:null,top:null,right:null,bottom:null,left:null},borderRadius:{all:5,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null},textAlign:`center`,padding:{all:null,top:null,right:null,bottom:null,left:null}},block:{backgroundColor:`#FFFFFF`,contrastBackgroundColor:`#1C52DC`,padding:{all:null,top:null,right:null,bottom:null,left:null}},cards:{contrastBackgroundColor:`#1C52DC`,contrastTextColor:`#FFFFFF`,baseBackgroundColor:`#F8F8F8`,baseTextColor:`#333333`,border:{all:null,top:null,right:null,bottom:null,left:null},borderRadius:{all:10,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null}}},ci=`ERROR`,li=`useblocks`,ui={isPlugin:!0},di={isEditor:!1},fi={em_token:`em_token`,em_elements_view:`em_elements_view`,em_new_block:`em_new_block`,em_new_email:`em_new_email`,em_id:`em_id`,em_name:`em_name`,em_email:`em_email`,em_locale:`em_locale`,em_carrotquest_hash:`em_carrotquest_hash`,em_ducalis_hash:`em_ducalis_hash`,em_email_subscription_consent:`em_email_subscription_consent`,em_folder:`em_folder`,promocode:`promocode`,em_active_tab:`em_active_tab`},pi={em_color_scheme:`em_color_scheme`,em_code_mode_pane_sizes:`em_code_mode_pane_sizes`,em_preview_pane_sizes:`em_preview_pane_sizes`,em_default_sizes:`em_default_sizes`,em_pane_sizes:`em_pane_sizes`,em_test_emails:`em_test_emails`,em_menu_is_locked:`em_menu_is_locked`,em_code_mode_settings:`em_code_mode_settings`,em_folder_is_open:`em_folder_is_open`,em_active_tab:`em_active_tab`,em_ai_settings:`em_ai_settings`,em_last_active_page:`em_last_active_page`},mi=`deleted`,hi=`not all`,gi=`light`,_i=`dark`,vi=`system`,yi=`(prefers-color-scheme: light)`,bi=`(prefers-color-scheme: dark)`,xi={auth:`/auth`,projects_index:`/`,projects:`/projects`,project:`/projects/:projectId/emails`,email:`/projects/:projectId/emails/:emailId`,create_email:`/projects/:projectId/emails/new`,billing:`/billing`},Si={ADD_NEW_PROJECT_MODAL:`ADD_NEW_PROJECT_MODAL`,EDIT_PROJECT_MODAL:`EDIT_PROJECT_MODAL`,BLOCKS_MODAL:`BLOCKS_MODAL`,EDIT_PROFILE_MODAL:`EDIT_PROFILE_MODAL`,SEND_TEST_EMAIL:`SEND_TEST_EMAIL`,ADD_NEW_EBLOCK_MODAL:`ADD_NEW_EBLOCK_MODAL`,ADD_NEW_EMAIL_MODAL:`ADD_NEW_EMAIL_MODAL`,ADD_NEW_AI_EMAIL:`ADD_NEW_AI_EMAIL`,SWITCH_TO_PLAN_MODAL:`SWITCH_TO_PLAN_MODAL`,IMAGE_EDITOR_MODAL:`IMAGE_EDITOR_MODAL`,ADD_NEW_FOLDER_MODAL:`ADD_NEW_FOLDER_MODAL`,EDIT_FOLDER_NAME_MODAL:`EDIT_FOLDER_NAME_MODAL`,ADD_NEW_GROUP_MODAL:`ADD_NEW_GROUP_MODAL`,EDIT_GROUP_NAME_MODAL:`EDIT_GROUP_NAME_MODAL`,RENAME_EMAIL_MODAL:`RENAME_EMAIL_MODAL`,RENAME_BLOCK_MODAL:`RENAME_BLOCK_MODAL`,UPLOAD_IMAGE_MODAL:`UPLOAD_IMAGE_MODAL`,UPLOAD_BACKGROUND_MODAL:`UPLOAD_BACKGROUND_MODAL`,UPLOAD_IMAGE_MODAL_AI:`UPLOAD_IMAGE_MODAL_AI`,UPLOAD_BACKGROUND_MODAL_AI:`UPLOAD_BACKGROUND_MODAL_AI`,UPLOAD_IMAGE_MODAL_STOCK:`UPLOAD_IMAGE_MODAL_STOCK`,UPLOAD_BACKGROUND_MODAL_STOCK:`UPLOAD_BACKGROUND_MODAL_STOCK`,UPLOAD_IMAGE_MODAL_GIF:`UPLOAD_IMAGE_MODAL_GIF`,UPLOAD_BACKGROUND_MODAL_GIF:`UPLOAD_BACKGROUND_MODAL_GIF`,UPLOAD_IMAGE_MODAL_EDIT:`UPLOAD_IMAGE_MODAL_EDIT`,UPLOAD_BACKGROUND_MODAL_EDIT:`UPLOAD_BACKGROUND_MODAL_EDIT`,UPLOAD_IMAGE_MODAL_UPLOAD:`UPLOAD_IMAGE_MODAL_UPLOAD`,UPLOAD_BACKGROUND_MODAL_UPLOAD:`UPLOAD_BACKGROUND_MODAL_UPLOAD`},Ci=`application/x-emailmaker-social-reorder`,wi={MESSAGE:`message`,INIT_PREVIEW:`init_preview`,UPDATE_PREVIEW:`update_preview`,UPDATE_EDITOR:`update_editor`,UPDATE_EDITOR_POSITION:`update_editor_position`,UPDATE_SIDE_MENU_EDITOR:`update_side_menu_editor`,SAVE_EMAIL:`saveEmail`,SANDBOX_ELEMENT_SETTINGS_SET:`sandbox_element_settings_set`,SANDBOX_CURRENT_IMAGE_RELOAD:`sandbox_current_image_reload`,SANDBOX_NATIVE_IMAGE_DROP_CLEAR:`sandbox_native-image-drop-clear`,SANDBOX_EMAIL_SETTINGS_SET:`sandbox_email_settings_set`,SANDBOX_BLOCK_SETTINGS_SET:`sandbox_block_settings_set`,SANDBOX_ELEMENT_PARENT_GET:`sandbox_element_parent_get`,SANDBOX_ELEMENT_PARENT_TABLE_GET:`sandbox_element_parent_table_get`,SANDBOX_ELEMENT_PREV_GET:`sandbox_element_prev_get`,SANDBOX_ELEMENT_NEXT_GET:`sandbox_element_next_get`,SANDBOX_ELEMENT_REMOVE:`sandbox_element_remove`,SANDBOX_ELEMENT_ACTIVE_RESET:`sandbox_element_active_reset`,SANDBOX_ELEMENT_ACTIVE_SET:`sandbox_element_active_set`,SANDBOX_ELEMENT_HOVER_SET:`sandbox_element_hover_set`,SANDBOX_ELEMENT_IMG_LINK:`sandbox_element_img_link`,SANDBOX_ELEMENT_TEXT:`sandbox_element_text`,SANDBOX_EMAIL_CONTENT_GET:`sandbox_email_content_get`,SANDBOX_SET_POSITION_TO_IMG:`sandbox_set_position_to_img`,SANDBOX_SET_POSITION_TO_LINK:`sandbox_set_position_to_link`,SANDBOX_ACCORDION_ADD_SECTION:`sandbox_accordion_add_section`,SANDBOX_ACCORDION_REMOVE_SECTION:`sandbox_accordion_remove_section`,APPLICATION_FOCUS_IN_IFRAME:`application_focus_in_iframe`,APPLICATION_EMAIL_SETTINGS_SET:`application_email_settings_set`,APPLICATION_BLOCK_SETTINGS_SET:`application_block_settings_set`,APPLICATION_ELEMENT_SETTINGS_SET:`application_element_settings_set`,_APPLICATION_ELEMENT_SETTINGS_SET:j(`application_element_settings_set`),APPLICATION_ELEMENT_SETTINGS_CLOSE:`application_element_settings_close`,APPLICATION_ACTION:`application_action`,APPLICATION_EBLOCK_ADD:`application_eblock_add`,APPLICATION_EBLOCK_PROPAGATE_UPDATE:`application_eblock_propagate_update`,SANDBOX_EBLOCK_SET_EM_BLOCK_ID:`sandbox_eblock_set_em_block_id`,APPLICATION_SCROLL_TO:`application_scroll-to`,APPLICATION_SCROLL_BLOCK_SHOW:`application_scroll-block-show`,APPLICATION_SCROLL_BLOCK_HIDE:`application_scroll-block-hide`,APPLICATION_DISCUSS_SET_ID:`application_discuss_set_id`,APPLICATION_DISCUSS_GET_COMMENT:`application_discuss_get_comment`,APPLICATION_DISCUSS_NO_COMMENT:`application_discuss_no_comment`,APPLICATION_DISCUSS_SAVE_TARGET:`application_discuss_save_target`,APPLICATION_IFRAME_SET_HEIGHT:`application_iframe_set_height`,APPLICATION_COMMON_STYLES_UPDATE:`application_commonStyles_update`,APPLICATION_EMAIL_CONTENT_GET:`application_email_content_get`,APPLICATION_OPEN_IMAGE_AI_POPUP:`application_open-image-ai-popup`,APPLICATION_OPEN_IMAGE_UPLOAD_POPUP:`application_open-image-upload-popup`,APPLICATION_OPEN_IMAGE_EDIT_POPUP:`application_open-image-edit-popup`,APPLICATION_OPEN_IMAGE_GIF_POPUP:`application_open-image-gif-popup`,APPLICATION_OPEN_IMAGE_STOCK_POPUP:`application_open-image-stock-popup`,APPLICATION_CLOSE_IMAGE_EDIT_POPUP:`application_close-image-edit-popup`,APPLICATION_NATIVE_IMAGE_DROP:`application_native-image-drop`,APPLICATION_SUBJECT_UPDATE:j(`application_subject_update`),APPLICATION_PREHEADER_UPDATE:j(`application_preheader_update`),APPLICATION_DOMPARSER_ERROR:j(`application_domparser_error`),APPLICATION_UPDATE_ENTITY:j(`application_update_entity`),APPLICATION_IFRAME_DRAG_EVENT:j(`application_iframe_drag_event`),APPLICATION_HAS_AMP:j(`application_has_amp`),APPLICATION_PREVIEW_ALERT_SHOW:`application_preview_alert_show`,APPLICATION_ATOM_INSERTED:j(`application_atom_inserted`),APPLICATION_TEMPLATE_NOT_EM_ALERT_SHOW:`application_template_not_em_alert_show`,SANDBOX_WINDOW_CHARACTERISTIC:`sandbox_window-characteristic`,SANDBOX_IFRAME_SETSIZE:`sandbox_iframe-setsize`,SANDBOX_BLOCK_INSERT:`sandbox_block-insert`,SANDBOX_ATOM_INSERT:`sandbox_atom-insert`,SANDBOX_DRAG_CANCEL:`sandbox_drag-cancel`,UPDATE_EDITOR_POSITION_FROM_EDITOR:`update_position_from_editor`,UPDATE_EDITOR_POSITION_FROM_IFRAME:`update_position_from_iframe`,SANDBOX_CHANGE_PREVIEW:`sandbox_change_preview`,APPLICATION_CHANGE_PREVIEW:`application_change_preview`,SANDBOX_LOCK_EDIT:`sandbox_lock_edit`,SANDBOX_FLOATBLOCK_ADD:`sandbox_floatBlock_add`,SANDBOX_FLOATBLOCK_REMOVE:`sandbox_floatBlock_remove`,EDITOR_CHANGE_FOCUS:`editor_change_focus`,SANDBOX_RESIZED:`sandbox_resized`,SANDBOX_LOCK_DISCUSS:`sandbox_lock_discuss`,SANDBOX_DISCUSS_SET_TARGET:`sandbox_discuss_set_target`,SANDBOX_DISCUSS_REMOVE_TARGET:`sandbox_discuss_remove_target`,SANDBOX_DISCUSS_RESET:`sandbox_discuss_reset`,SANDBOX_DISCUSS_GET_TARGET:`sandbox_discuss_get_target`,SANDBOX_READY:j(`SANDBOX_READY`),SANDBOX_FLOATBLOCK_WRAP:`sandbox_floatblock_wrap`,SANDBOX_FLOATBLOCK_DIR:`sandbox_floatblock_dir`,SANDBOX_SUBJECT_UPDATE:j(`sandbox_subject_update`),SANDBOX_PREHEADER_UPDATE:j(`sandbox_preheader_update`),SANDBOX_DRAG_EVENT:j(`sandbox_drag_event`),SANDBOX_ADD_MERGETAG:j(`sandbox_add_mergetag`),SANDBOX_TRANSLATIONS:j(`sandbox_send_translations`),SANDBOX_SET_THEME_VARIABLES:j(`sandbox_send_theme_variables`),SANDBOX_SET_ENTITY:j(`sandbox_set_entity`),SANDBOX_INIT_START:j(`sandbox_init_start`),SANDBOX_INITED:j(`sandbox_inited`),SANDBOX_UPDATE_ENTITY:j(`sandbox_update_entity`),RELOAD:j(`reload`),SANDBOX_ADD_EXTENSIONS:j(`sandbox_add_extensions`),SANDBOX_REMOVE_EXTENSIONS:j(`sandbox_remove_extensions`),SANDBOX_ADD_SCRIPT:j(`sandbox_add_script`),SANDBOX_IS_EMAIL_EMPTY:j(`sandbox_is_email_empty`),SANDBOX_SWITCH_THEME:j(`sandbox_switch_theme`)},Ti={language:`html`,detectIndentation:!1,wordWrap:`on`,wrappingIndent:`same`,smoothScrolling:!0,automaticLayout:!0,tabSize:2,indentSize:2},Ei=function(e){return e.IMG=`img`,e.TEXT=`text`,e.LINK=`a`,e.TABLE=`table`,e.VINDENT=`vindent`,e.TD=`td`,e.STRUCTURE=`structure`,e.GROUP=`group`,e.BUTTON=`button`,e.DIV=`div`,e.FLOAT_BLOCK=`floatBlock`,e.VAR=`var`,e.EMPTY_TABLE=`emptyTable`,e.EMPTY_TD=`emptyTd`,e.COUNTDOWN=`countdown`,e.VIDEO=`video`,e.COLUMN=`column`,e.CAROUSEL=`carousel`,e.ACCORDION=`accordion`,e.CUSTOM_TABLE=`customTable`,e.SOCIAL=`social`,e}({}),Di={ALL:`All`,STANDARD:`Standard`,PROJECT:`Project`},Oi=`Appearance`,ki=`Structure`,Ai=`Settings`,ji=`Properties`,Mi=`History`,Ni=`Disabled_tab`,Pi=`Edit selected element`,Fi=`UTM parameters`,Ii=`Table properties`,Li=`Edit selected table cells`,Ri=`#b9b1b1`,zi=`Edit`,Bi=`AiChat`,Vi=`Build`,Hi=`Styles`,Ui=`Discuss`,Wi=`Blocks`,Gi=`Atoms`,Ki=`Optimise`,qi={top:{width:null,style:null,color:null},right:{width:null,style:null,color:null},bottom:{width:null,style:null,color:null},left:{width:null,style:null,color:null},all:{width:null,style:null,color:null}},Ji=`block`,Yi=`email`,Xi=`cards`,Zi=`list`,Qi=`pending`,$i=`d41d8`,ea=`valid`,ta=`warnings`,na=`errors`,ra={LINKS:`Links`,IMAGES:`Images`,SPAM_ASSASSIN:`Spam assassin`,PROBLEMS:`Problems`},ia=`1865`,aa=127017,oa=`desktop`,sa=`mobile`,ca=`emailtags`,la=`blocktags`,ua=e=>({REORDER_ATOM:e(`Reorder element`),CLONE_ATOM:e(`Clone element`),REMOVE_ATOM:e(`Remove element`),EDIT_ATOM:e(`Edit element`),CHANGE_IMAGE:e(`Change image`),REORDER_BLOCK:e(`Reorder block`),REORDER_BLOCK_UP:e(`Move up`),REORDER_BLOCK_DOWN:e(`Move down`),EDIT_BLOCK:e(`Edit block`),CLONE_BLOCK:e(`Clone block`),MERGE_BLOCK:e(`Merge with the chosen block`),UNMERGE_BLOCK:e(`Split blocks`),COPY_BLOCK_TO_CLIPBOARD:e(`Copy block to clipboard`),PASTE_BLOCK_FROM_CLIPBOARD:e(`Paste block from clipboard`),REMOVE_BLOCK:e(`Remove block`),SAVE_TO_BLOCKS:e(`Save to Blocks`),UPDATE_GLOBAL_BLOCK_IN_TEMPLATES:e(`Push block update to all templates`),ADD_BLOCK:e(`Add block`),ADD_EMPTY_BLOCK:e(`Add an empty block`),ADD_SAVED_BLOCK:e(`Add a saved block`),ADD_COMMON_BLOCK:e(`Add a common block`),ADD_TEMPLATE_BLOCK:e(`Add a template block`),ADD_SEARCH_BLOCK:e(`Search a block`),REORDER_GROUP:e(`Reorder group`),EDIT_GROUP:e(`Edit group`),CLONE_GROUP:e(`Clone group`),REMOVE_GROUP:e(`Remove group`),ADD_GROUP:e(`Add group`),LINK:e(`link`),TABLE_COLUMN:e(`cell`),TABLE:e(`table`),FLOAT_BLOCK:e(`column`),CONTAINER:e(`container`),PICTURE:e(`picture`),CAROUSEL:e(`carousel`),ACCORDION:e(`accordion`),SOCIAL:e(`Social media`),VERTICAL_INDENT:e(`indent`),TEXT:e(`text`),BUTTON:e(`button`),VAR:e(`variable`),STRUCTURE:e(`block`),EMAIL:e(`email`),GROUP:e(`group`),TYPOGRAF:e(`Typograf`),COUNTDOWN:e(`countdown`),ELEMENT:e(`element`),VIDEO:e(`video`),ELEMENT_PATH_LINK:e(`Link`),ELEMENT_PATH_BLOCK:e(`Block`),ELEMENT_PATH_ATOM:e(`Element`),ELEMENT_PATH_TD:e(`Cell`),ELEMENT_PATH_TABLE:e(`Table`),ELEMENT_PATH_FLOATBLOCK:e(`Column`),ELEMENT_PATH_TEXT:e(`Text`),ELEMENT_PATH_DIV:e(`Container`),ELEMENT_PATH_GROUP:e(`Group`),ELEMENT_PATH_EMAIL:e(`Email`),ELEMENT_PATH_IMG:e(`Picture`),ELEMENT_PATH_VINDENT:e(`Indent`),ELEMENT_PATH_BUTTON:e(`Button`),ELEMENT_PATH_CAROUSEL:e(`Carousel`),ELEMENT_PATH_ACCORDION:e(`Accordion`),ELEMENT_PATH_SOCIAL:e(`Social media`),ELEMENT_PATH_SECTION:e(`Section`),TINYMCE_CHANGECASE:e(`Case Change`),TINYMCE_UPPERCASE:e(`Uppercase`),TINYMCE_LOWERCASE:e(`Lowercase`),PASTE_HERE:e(`Drop here`),INSERT_COLUMN_BEFORE_TABLE:e(`Insert column before`),INSERT_COLUMN_AFTER_TABLE:e(`Insert column after`),INSERT_ROW_BEFORE_TABLE:e(`Insert row before`),INSERT_ROW_AFTER_TABLE:e(`Insert row after`),MERGE_RIGHT_CELL_TABLE:e(`Merge right cell`),MERGE_LEFT_CELL_TABLE:e(`Merge left cell`),MERGE_TOP_CELL_TABLE:e(`Merge top cell`),MERGE_BOTTOM_CELL_TABLE:e(`Merge bottom cell`),SPLIT_CELL_TABLE:e(`Split cell`),REMOVE_COLUMN_TABLE:e(`Remove column`),REMOVE_ROW_TABLE:e(`Remove row`),DROP_BLOCK_HINT:e(`Click or drag a block`)}),da={Applications:`Apps`,Articles:`Article`,Banners:`Banners`,Buttons:`Buttons`,"Call to Action":`Call to Action`,Contacts:`Contacts`,Content:`Content`,"E-Commerce":`E-Commerce`,Feature:`Features`,Footer:`Footers`,Header:`Headers`,Lists:`Lists`,Menu:`Menus`,Other:`Others`,Polls:`Polls`,Promocodes:`Promocodes`,Separators:`Separators`},fa={maker:`https://ai-mail.emcdn.ru`,blocks:`https://ai-mail.useblocks.io`},pa=`
1
+ __emailmaker__.define(`static/core/879e09e7.js`,[`require`,`exports`,`module`,`static/core/354bf8a9.js`,`static/core/68599f0c.js`,`static/core/f6e0d03e.js`,`react`,`prop-types`,`react-dom`,`react-router-dom`],function(e,t,n){let r=e("./354bf8a9.js"),i=e("./68599f0c.js"),a=e("./f6e0d03e.js"),o=e("react");o=r.l(o);let s=e("prop-types");s=r.l(s);let c=e("react-dom"),l=e("react-router-dom");var u=class e{_inner;_isDisposed=!1;constructor(e=[]){this._inner=e}addDisposable(t){return this._inner.push(t),t instanceof e&&t.addDispose(()=>{this.removeDisposable(t)}),t}addDispose(e){this.addDisposable({dispose:e})}removeDisposable(e){let t=this._inner.indexOf(e);t>=0&&this._inner.splice(t,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(let e of[...this._inner])e.dispose()}}};function d(e){return`service_container_${e}`}var f=class e extends u{_parent;_injectCallbacks=[];_injections=Object.create(null);_runCallbacks(e){this._injectCallbacks.forEach(t=>t(e))}constructor(e=null){super(),this._parent=e,e&&this.addDisposable(e.onInject(e=>this._runCallbacks(e)))}onInject=e=>(this._injectCallbacks.push(e),{dispose:()=>{let t=this._injectCallbacks.indexOf(e);t>=0&&this._injectCallbacks.splice(t,1)}});inject(e,t){this._injections[e]=()=>t,this._runCallbacks(e)}injectFactory(e,t,n){let r=this._injections[e],i=typeof r==`function`?r():r,a=this._injections[e]=()=>(i=t(this,i),i);n&&a(),this._runCallbacks(e)}_find(e,t=!0){return this._injections[e]||t&&this._parent?._find(e)}_onInject(e,t,n=new u){return n.addDisposable(this.onInject(r=>{e===r&&(n.dispose(),t(this.getInstance(r)))})),this._parent&&n.addDisposable(this._parent._onInject(e,t,n)),this.addDisposable(n),n}getInstance(e,t=!0){let n=this._find(e,t);if(typeof n==`function`)return n()}getOrCreateInstance(e,t){let n=this._find(e);if(typeof n==`function`)return n();let r=t(this);return this.inject(e,r),r}getInstanceAsync(e){let t=this._find(e);return typeof t==`function`?Promise.resolve(t()):new Promise(t=>this._onInject(e,()=>t(this.getInstance(e))))}addService(e,t){let n=d(e);this.injectFactory(n,(e,n=[])=>n.indexOf(t)<0?[...n,t]:n);let r=new u;return r.addDispose(()=>{this.injectFactory(n,(e,n=[])=>n.filter(e=>e!==t))}),r}addServiceFactory(e,t,n){let r=d(e),i;this.injectFactory(r,(e,n=[])=>(i=t(e,i),i===void 0?n:n.indexOf(i)<0?[...n,i]:n),n);let a=new u;return a.addDispose(()=>{this.injectFactory(r,(e,t=[])=>i===void 0?t:t.filter(e=>e!==i))}),a}getServices(e){let t=d(e);return[...this.getInstance(t,!1)||[],...this._parent?.getServices(e)||[]]}createChild(){return new e(this)}getOrCreateIsolatedContainer(t){return this.getOrCreateInstance(t,()=>{let n=this._parent?.getOrCreateIsolatedContainer(t);return new e(n)})}dispose(){this._injections=Object.create(null)}};function p(e){return e.startsWith(`__`)?e:`__${e}__`}function m(e){if(typeof globalThis>`u`)throw Error(`[di] globalThis is required for namespace container access.`);let t=p(e),n=globalThis;return n[t]??={}}function h(e){return typeof e==`object`&&!!e&&typeof e.inject==`function`&&typeof e.getInstance==`function`}function g(e){return p(e||`emailmaker`)}function _(e){let t=m(g(e));if(h(t.container))return t.container;let n=new f(null);return t.container=n,n}function v(e){return _(e)}function y(){let e=new Date().getTime(),t=typeof performance<`u`&&performance.now&&performance.now()*1e3||0;return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,function(n){let r=Math.random()*16;return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),(n===`x`?r:r&3|8).toString(16)})}function b(){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID():y()}function x(e=b()){return e}function S(){return`core`}function C(e){if(typeof globalThis>`u`)return;let t=S(),n=globalThis[e]??{};globalThis[e]=n;let r=n.__diagnostics??={},i=r.diModuleEval??={evalCount:0,records:[],duplicateWarned:!1};i.records.push({buildSource:t,timestamp:Date.now(),stack:Error().stack}),i.evalCount+=1,!(i.evalCount<=1||i.duplicateWarned)&&(i.duplicateWarned=!0,i.evalCount,i.records)}function w(){return`__emailmaker__`}function T(e,t){if(C(t),typeof globalThis>`u`)return e;let n=S(),r=globalThis,i=r[t]=r[t]||{},a=i.__diagnostics=i.__diagnostics||{},o=a.dependencyResolver=a.dependencyResolver||{entries:[],warnings:[]},s={container:e,source:`packages/runtime-core/di/index.ts`,buildSource:n,timestamp:Date.now(),stack:Error().stack};if(o.entries.push(s),o.entries.length>1){let e=o.entries[0];if(o.entries.some(t=>t.container!==e.container)&&!o.duplicateWarningShown){o.duplicateWarningShown=!0;let e={message:`[di] Multiple DependencyResolver instances detected on namespace`,namespaceKey:t,buildSource:n,entries:o.entries};o.warnings.push(e)}}return e}var E;function D(){if(E)return E;let e=w();return E=T(_(e),e),E}var O=new Proxy({},{get(e,t,n){let r=D(),i=Reflect.get(r,t,n);return typeof i==`function`?i.bind(r):i}}),k=class e extends Error{code;httpStatus;details;constructor(t,n,r,i){super(t),this.name=`FileManagerApiError`,this.code=n,this.httpStatus=r,this.details=i;let a=Error.captureStackTrace;a&&a(this,e)}},ee=class extends u{_options;_listeners=[];constructor(e={}){super(),this._options=e}getListeners(e){return this._listeners.flatMap(([t])=>typeof t==`function`?t:t.getListeners(e))}hasListeners(){return this._listeners.length>0}_addListener(e,t=0,n){if(this.isDisposed())return{dispose:()=>{}};let r=this._listeners,i=this._options;n&&typeof e==`function`&&(e=e.bind(n));let a=r.findIndex(([,e])=>e<t),o=[e,t];return r.splice(a>=0?a:r.length,0,o),r.length===1&&i.onFirstListenerAdd&&i.onFirstListenerAdd(),{dispose:()=>{let e=r.indexOf(o);e>=0&&(r.splice(e,1),!r.length&&i.onLastListenerRemove&&i.onLastListenerRemove())}}}on=this._addListener.bind(this);event=this._addListener.bind(this);once=(e,t=0,n)=>{let r=this._addListener((...t)=>(r?.dispose(),n?e.call(n,...t):e(...t)),t);return r};un=e=>{let t=this._listeners.findIndex(([t])=>t===e);t>=0&&(this._listeners.splice(t,1),this._listeners.length===0&&this._options.onLastListenerRemove&&this._options.onLastListenerRemove())};dispose(){this._listeners.splice(0,this._listeners.length),this._options.onLastListenerRemove&&this._options.onLastListenerRemove(),super.dispose()}},te=class extends ee{execute(e,t){for(let n of t)try{n(...e)}catch{}}fire(...e){if(!this.isDisposed()){let t=this.execute(e,this.getListeners(e));return t===void 0?void 0:t}}},ne=class extends te{execute([e],t){for(let n of t)try{n(e)}catch{}}},re=class extends te{_suspendCounter=0;_wasFired=!1;execute([e],t){if(this._suspendCounter)this._wasFired=!0;else for(let n of t)try{n(e)}catch{}}suspend(){this._suspendCounter++}resume(){--this._suspendCounter===0&&this._wasFired&&(this.fire(),this._wasFired=!1)}},A=class extends te{async execute([e],t){let n=[];for(let r of t)try{n.push(await r(e))}catch{}return n}};function ie(e,t=0){let n=new ee,r=e(n,t);return r&&n.addDisposable(r),n.event}function ae(e,t,n=0){let r=new te,i=e((...e)=>{if(t(...e))return r.fire(...e)},n);return i&&r.addDisposable(i),r.event}function oe(e,t=0,n=0){let r=new te,i,a,o=e((...e)=>{a=e,i||=setTimeout(()=>{a&&r.fire(...a),i=void 0},t)},n);return o&&r.addDisposable(o),r.event}var se=class{_listeners=[];add(e,t=0,n){let r={fn:n?e.bind(n):e,priority:t};return this._listeners.push(r),{dispose:()=>{let e=this._listeners.indexOf(r);e>=0&&this._listeners.splice(e,1)}}}async run(e){let t=[...this._listeners].sort((e,t)=>t.priority-e.priority);for(let{fn:n}of t){let t=await n(e);typeof t==`object`&&t&&!Array.isArray(t)&&!(t instanceof Date)&&!(t instanceof RegExp)&&Object.assign(e,t)}return e}},ce=x(`ELEMENT_INSERT_HTML_PIPELINE`),le=x(`BLOCK_INSERT_HTML_PIPELINE`);function ue(e){return e.getOrCreateInstance(ce,()=>new se)}function de(e){return e.getOrCreateInstance(le,()=>new se)}async function fe(e,t){return e?ue(e).run({...t}):t}async function pe(e,t){return e?de(e).run({...t}):t}function j(e){return e}function me(e){return e&&typeof e==`object`}function he(e,t){return e&&typeof e==`object`&&e.operationId===t}var ge=j(`INIT_MESSAGE`),_e=j(``);function M(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}var ve=class extends u{_listeners=Object.create(null);addListenerAsync=(e,t,n=0,r)=>{let i=this._listeners[e]||(this._listeners[e]=[]);r&&typeof t==`function`&&(t=t.bind(r));let a=i.findIndex(([e,t])=>n<=t),o=[t,n];return this.isDisposed()||i.splice(a>=0?a:i.length,0,o),{dispose(){let e=i.indexOf(o);e>=0&&i.splice(e,1)}}};fireAsync=(e,t)=>{if(!this.isDisposed()){let n=this._listeners[e]||(this._listeners[e]=[]),r;for(let e=0;e<n.length;e++){let t=n[e][0],i=r;r=e=>t(e,i)}if(r)return r(t)}};addListener=(e,t,n=0)=>this.addListenerAsync(e,(e,n)=>{try{t(e)}catch{}return n&&n(e)},n)},ye=class extends u{_singleton;_target;_inited=!1;_emitter=this.addDisposable(new ve);constructor(e,t){super(),this._singleton=t,window.addEventListener(`message`,this._onReceiveMessage),this.addListener(ge,()=>{this._inited||(this._inited=!0,this.send(ge))}),e&&this.setTarget(e)}_onReceiveMessage=e=>{let t=e.data;if(me(t)&&e.source==this.target||this._singleton&&he(t,ge)){let n=this._emitter.fireAsync(t.operationId||_e,t.operationId===void 0?e:t.data),r=t.result,i=t.error;r&&i&&Promise.resolve(n).then(e=>this._sendMessage(r,e),e=>this._sendMessage(i,e))}};setTarget(e){this._target!==e&&(this._target=e,e&&this._postMessage(e,{operationId:ge,data:{}}))}getTarget(){return this._target}get target(){return this._target}_postMessage(e,t){try{e.postMessage(t,`*`)}catch(e){throw e?.name===`DataCloneError`&&typeof t?.data==`object`&&t?.data!==null&&t.data,e}}_sendMessage(e,t,n=!0){if(!n&&!this.isInited())return;let r=this.addDisposable(this.onInit(n=>{let i=e?{operationId:e,data:t}:t;try{this._postMessage(n,{...i})}finally{r.dispose()}}))}send(e,t,n){return typeof e==`string`?this._sendMessage(e,t,n):this._sendMessage(_e,e,t)}sendAsync(e,t,n=!0){if(!n&&!this.isInited())return Promise.resolve();let r=j(M()),i=j(M());return new Promise((n,a)=>{let o=this.addDisposable(new u);o.addDisposable(this.onInit(s=>{try{this._postMessage(s,{operationId:e,data:t,result:r,error:i})}catch(e){o.dispose(),a(e);return}o.addDisposable(this._onMessage(r,e=>{n(e),o.dispose()})),o.addDisposable(this._onMessage(i,e=>{a(e),o.dispose()}))}))})}_onMessage(e,t,n=0){return this._emitter.addListener(e,t,n)}addListener(e,t,n){return t?this._onMessage(e,t,n):this._onMessage(_e,e)}addListenerAsyncPipe(e,t,n=0){return this._emitter.addListenerAsync(e,t,n)}addListenerAsync(e,t,n=0){return this._emitter.addListenerAsync(e,async(e,n)=>{let r=await t(e);return n?n(e):r},n)}isInited(){return this._inited}get inited(){return this._inited}onInit(e,t=!0,n=0){let r=this.addDisposable(new u);return this._inited&&this._target?t&&Promise.resolve().then(()=>{!this._inited||!this._target?r.addDisposable(this.onInit(e,t,n)):e(this._target)}):r.addDisposable(this._onMessage(ge,()=>{e(this._target)},n)),r}dispose(){window.removeEventListener(`message`,this._onReceiveMessage),super.dispose()}};function be(e){return x(e)}var xe=x(),Se=be(`HANDLE_ATOM_INSERT`),Ce=x(),we=j(`SANDBOX_EXTENSION_SCRIPT_STATUS`),Te=x(`MESSAGE_SERVICE`),Ee=be(`SETTINGS_PANEL_EVENT`),De=`advanced`,Oe=be(`MODAL_SHOW_EVENT`),ke=be(`MODAL_CLOSE_EVENT`),Ae=be(`MODAL_UPDATE_EVENT`),je=`application_block_inserted`,Me=class{_context;constructor(e){this._context=e}get _container(){return this._context.container}handleBeforeInject(e,t,n){return this._container.getOrCreateInstance(le,()=>new se).add(e,t??0,n)}handleInject(e,t,n){let r=this._container.getOrCreateInstance(Te,()=>new ye),i=n?e.bind(n):e;return r.addListener(je,i,t)}},Ne=class{_factories=new Map;add(e,t){let n=e;return this._factories.set(n,t),{dispose:()=>{this._factories.get(n)===t&&this._factories.delete(n)}}}get(e){return this._factories.get(e)}},Pe=x(`DomComponentRegistry`);function Fe(e,t=Pe){return O.getOrCreateInstance(t,()=>new Ne)}function Ie(e){return typeof e==`function`}function Le(e){return(0,o.isValidElement)(e)}function Re(e){return typeof e==`function`||Le(e)}function ze(e){return typeof e==`object`&&!!e&&`type`in e&&`props`in e&&!Le(e)}function Be(e,t){return(0,o.createElement)(e,t)}function Ve(e){return class extends o.Component{_ref=(0,o.createRef)();_instance;componentDidMount(){this._ref.current&&(this._instance=e(this.props),this._ref.current.appendChild(this._instance.node))}componentDidUpdate(e){this._instance?.update&&this._instance.update(this.props)}componentWillUnmount(){this._instance?.dispose&&this._instance.dispose()}render(){return(0,o.createElement)(`div`,{ref:this._ref})}}}var He=class{_domComponentRegistry;_components=new Map;_domAdapters=new Map;constructor(e){this._domComponentRegistry=e}add(e,t){return this.override(e,()=>t)}addDom(e,t){let n=e;this._domAdapters.delete(n);let r=this._domComponentRegistry.add(e,t);return{dispose:()=>{this._domAdapters.delete(n),r.dispose()}}}override(e,t){let n=e,r=this._components.get(n);r||(r={replacers:[]},this._components.set(n,r));let i=()=>{let e=r.replacers.findIndex(e=>e.replacer===t);e>=0&&(r.replacers.splice(e,1),this._recomputeComponent(n,r))};return r.replacers.push({replacer:t,dispose:i}),this._recomputeComponent(n,r),{dispose:i}}_recomputeComponent(e,t){t.component=t.replacers.reduce((e,{replacer:t})=>t(e),void 0)}get(e){if(Re(e))return e;let t=e,n=this._components.get(t);if(n?.component)return n.component;let r=this._domComponentRegistry.get(e);if(r){let e=this._domAdapters.get(t);return e||(e=Ve(r),this._domAdapters.set(t,e)),e}}_resolveComponentInput(e){if(e==null)return null;if(typeof e==`number`||typeof e==`boolean`||Le(e))return e;if(typeof e==`string`){let t=this.get(e);return Le(t)?t:t?Be(t):e}if(Ie(e))return Be(e);if(ze(e)){let t=this.get(e.type);return Le(t)?t:t?Be(t,e.props):null}return null}getReactNode(e){return this._resolveComponentInput(e)}getReactElement(e){let t=this._resolveComponentInput(e);return Le(t)?t:typeof t==`string`||t==null||typeof t==`boolean`||typeof t==`number`?(0,o.createElement)(o.Fragment,null,t):(0,o.createElement)(o.Fragment,null)}},Ue=x(`ComponentRegistry`);function We(e,t=Ue){return O.getOrCreateInstance(t,()=>new He(Fe(O,Pe)))}function Ge(e,t){return e.getOrCreateInstance(t,()=>new A)}var Ke=class{_context;constructor(e){this._context=e}get _container(){return this._context.container}getNames(){return new Promise(e=>{let t=this._container.addService(xe,{execute:n=>{t.dispose(),e(n.value.map(e=>({name:e.name,html:e.html})))}})})}update(e,t){let n=this._container,r=We(n);return n.addService(xe,{execute:n=>{let i=n.value.find(t=>t.name===e);if(i){let{icon:e,title:n,fallbackTooltip:a,...o}=t;e&&(i.icon=r.getReactNode(e)),n&&(i.title=r.getReactNode(n)),a&&(i.fallbackTooltip=r.getReactNode(a)),Object.assign(i,o)}}})}delete(e){this._container.addService(xe,{execute:t=>{let n=t.value.findIndex(t=>t.name===e);n>=0&&t.value.splice(n,1)}})}insert(e,t){let n=this._container,r=We(n);return n.addService(xe,{execute:n=>{n.value.splice(t??n.value.length,0,{...e,title:r.getReactNode(e.title),icon:r.getReactNode(e.icon),fallbackTooltip:r.getReactNode(e.fallbackTooltip)})}})}handleBeforeInject(e,t,n){return this._container.getOrCreateInstance(ce,()=>new se).add(e,t??0,n)}handleInject(e,t,n){return Ge(this._container,Se).event(t=>{e({name:t.name,className:t.className||``,html:t.html})},t,n)}},qe=class{_messageService;constructor(e){this._messageService=e.container.getOrCreateInstance(Te,()=>new ye)}send(e,t,n){this._messageService.send(e,t,n)}sendAsync(e,t,n=!0){return this._messageService.sendAsync(e,t,n)}addListener(e,t,n){return this._messageService.addListener(e,t,n)}addListenerAsync(e,t,n=0){return this._messageService.addListenerAsync(e,t,n)}onInit(e,t=!0,n=0){return this._messageService.onInit(e,t,n)}isInited(){return this._messageService.isInited()}};function Je(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>t!==void 0))}var Ye=class{_context;_showModalEmitter;_closeModalEmitter;_updateModalEmitter;constructor(e){this._context=e;let t=e.container;this._showModalEmitter=Ge(t,Oe),this._closeModalEmitter=Ge(t,ke),this._updateModalEmitter=Ge(t,Ae)}get _container(){return this._context.container}show(e){let t=We(this._container),n=`modal_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,r=e.modalProps;return this._showModalEmitter.fire({...e,content:t.getReactNode(e.content),title:t.getReactNode(e.title),id:n,modalProps:r?{...r,footer:t.getReactNode(r.footer),okText:t.getReactNode(r.okText),cancelText:t.getReactNode(r.cancelText),closeIcon:t.getReactNode(r.closeIcon)}:void 0}),n}close(e){this._closeModalEmitter.fire(e)}closeAll(){this._closeModalEmitter.fire()}update(e,t){let n=We(this._container),r=t.modalProps;this._updateModalEmitter.fire(Je({...t,content:n.getReactNode(t.content),title:n.getReactNode(t.title),id:e,modalProps:r?{...r,footer:n.getReactNode(r.footer),okText:n.getReactNode(r.okText),cancelText:n.getReactNode(r.cancelText),closeIcon:n.getReactNode(r.closeIcon)}:void 0}))}},Xe=class{_registration;_loadedDisposable;loaded;ready;_loadedSettled=!1;_readySettled=!1;constructor(e,t){this._registration=e,this._loadedDisposable=t,this.loaded=new Promise((e,t)=>{let n=()=>this._loadedDisposable.dispose(),r=()=>{this._loadedSettled||(this._loadedSettled=!0,this._readySettled&&n(),e())},i=e=>{this._loadedSettled||(this._loadedSettled=!0,this._readySettled&&n(),t(e))};this._resolveLoaded=r,this._rejectLoaded=i}),this.ready=new Promise((e,t)=>{let n=()=>this._loadedDisposable.dispose(),r=()=>{this._readySettled||(this._readySettled=!0,this._loadedSettled&&n(),e())},i=e=>{this._readySettled||(this._readySettled=!0,this._loadedSettled&&n(),t(e))};this._resolveReady=r,this._rejectReady=i})}_resolveLoaded=()=>{};_rejectLoaded=()=>{};_resolveReady=()=>{};_rejectReady=()=>{};resolveLoaded(){this._resolveLoaded()}resolveReady(){this._resolveReady()}rejectLoad(e){this._rejectLoaded(e),this._rejectReady(e)}rejectReady(e){this._rejectReady(e)}dispose(){this._registration.dispose();let e=Error(`Sandbox script registration disposed before completion.`);this.rejectLoad(e),this.rejectReady(e)}},Ze=class{_context;constructor(e){this._context=e}get _container(){return this._context.container}get _messageService(){return this._container.getOrCreateInstance(Te,()=>new ye)}_createScriptHandle(e,t){let n=new Xe(t,this._messageService.addListener(we,t=>{if(t.key===e){if(t.phase===`load`&&t.status===`success`){n.resolveLoaded();return}if(t.phase===`ready`&&t.status===`success`){n.resolveReady();return}if(t.phase===`load`){n.rejectLoad(Error(t.error||`Sandbox script "${e}" failed to load.`));return}n.rejectReady(Error(t.error||`Sandbox script "${e}" failed to initialize.`))}}));return n}registerSandboxCSS(e){return this._container.addService(Ce,{type:`link`,key:e,parent:`head`,attributes:{rel:`stylesheet`,type:`text/css`,href:e}})}registerSandboxCSSCode(e,t){return this._container.addService(Ce,{type:`style`,key:e,parent:`head`,attributes:{type:`text/css`},innerHTML:t})}registerSandboxScript(e){let t=this._container.addService(Ce,{type:`script`,key:e,parent:`head`,attributes:{src:e,type:`text/javascript`}});return this._createScriptHandle(e,t)}registerSandboxScriptCode(e,t){let n=this._container.addService(Ce,{type:`script`,key:e,parent:`head`,attributes:{type:`text/javascript`},innerHTML:t});return this._createScriptHandle(e,n)}};function Qe(){let e=globalThis.crypto;if(e&&typeof e.randomUUID==`function`)return e.randomUUID();if(e&&typeof e.getRandomValues==`function`){let t=new Uint8Array(16);return e.getRandomValues(t),Array.from(t,e=>e.toString(16).padStart(2,`0`)).join(``)}return`nohwcrypto-${Date.now()}`}function $e(){return`__settingsPanel:${Qe()}`}function et(e,t){return{type:e,props:t}}function tt(e){return(0,o.isValidElement)(e)}function nt(e){return typeof e==`object`&&!!e&&`type`in e&&`props`in e&&!tt(e)}function rt(e,t,n){if(t==null||typeof t==`number`||typeof t==`boolean`||typeof t==`string`)return t;if(tt(t)){let r=$e();return n(e.add(r,t)),et(r,{})}if(typeof t==`function`){let r=$e();return n(e.add(r,t)),et(r,{})}if(nt(t)){let r=t.type;if(typeof r==`string`)return t;if(tt(r)||typeof r==`function`){let i=$e();return n(e.add(i,r)),et(i,t.props)}return t}return t}var it={SandboxScriptApi:Ze,ElementsApi:Ke,BlocksApi:Me,MessageService:qe,SettingsPanelApi:class{_context;_panelRegistrationDisposables=[];constructor(e){this._context=e}get _container(){return this._context.container}_clearPanelRegistrations(){for(let e of this._panelRegistrationDisposables)e.dispose();this._panelRegistrationDisposables.length=0}_trackRegistration(e){this._panelRegistrationDisposables.push(e)}showSettingsPanel(e){this._clearPanelRegistrations();let t=We(this._container),n=e=>this._trackRegistration(e),r=rt(t,e.content,n),i=e.advancedTabs?.map(e=>({...e,content:rt(t,e.content,n)})),a=e.instanceKey??Qe();Ge(this._container,Ee).fire({...e,content:r,advancedTabs:i,instanceKey:a,type:De})}closeSettingsPanel(){this._clearPanelRegistrations(),Ge(this._container,Ee).fire(null)}},ModalApi:Ye};function at(e){if(e.meta!==void 0&&e.meta!==null&&typeof e.meta==`object`)return e.meta;let t=e.catalogExtra?.meta;if(typeof t==`object`&&t)return t}function ot(e,t){let n=e.insertFrom??t?.type,r=t?.blockId??(e.id!=null&&e.id!==``?String(e.id):void 0),i=t?.project??(e.project!==void 0&&e.project!==null?String(e.project):void 0);return{type:t?.type??n,insertFrom:n,name:t?.name??e.name,blockId:r,project:i,fragmentRole:e.fragmentRole,id:r,title:e.title??void 0,blockType:e.type,meta:at(e)}}function st(e,t){return t?ot(t,e):{type:e.type,name:e.name,blockId:e.blockId,project:e.project,insertFrom:e.type}}function N(e){return x(e)}var ct;(function(e){e.BEFORE_SAVE_EMAIL=N(),e.ON_SAVEBUTTON_CLICK_ID=N(),e.ON_NEXTBUTTON_CLICK_ID=N(),e.ON_PREVIOUSBUTTON_CLICK_ID=N(),e.ON_MODEL_CHANGE=N(),e.WILL_EMAIL_INIT_ID=N(),e.ON_EMAIL_INIT_ID=N(),e.ON_BLOCK_INIT_ID=N(),e.ON_CONTENT_CHANGED_ID=N(),e.ON_PREHEADER_CHANGED_ID=N(),e.ON_SUBJECT_CHANGED_ID=N(),e.ON_EMAIL_CHANGED_ID=N(),e.ON_BLOCK_CHANGED_ID=N(),e.ON_CHUNKS_LOADED=N(),e.ON_SEND_TESTEMAIL_ID=N(),e.ON_SEND_LIVEPREVIEW_ID=N(),e.ON_SHARE_ID=N(),e.ON_SHOW_PREVIEW_ID=N(),e.ON_EMAIL_CLONE_ID=N(),e.ON_SEND_EMAIL_MODAL_ID=N(),e.ON_NOTIFICATION=N(),e.READ_LOCALE=N(),e.ON_TRANSLATE_ID=N(),e.ON_CODE_VALIDATE_ID=N(),e.UPLOAD_EVENT_ID=N(),e.PROXY_URL_EVENT_ID=N(),e.FILE_PROXY_EVENT_ID=N(),e.ON_LIMIT_ID=N(),e.ON_BROWSER_EXTENSION_DETECTED_ID=N()})(ct||={});function lt(e,t){return e.getOrCreateInstance(t,()=>new A).event}function ut(e,t){return e.getOrCreateInstance(t,()=>new A)}var dt=`Not implemented in plugin`,ft=x(),pt=x(),mt=x(),ht=x(),gt=x(),_t=x(),vt=x(),yt=x(`PluginCollection`),bt=N(`APP_LOAD_EVENT`),xt=N(`CONFIG_CHANGED_EVENT`),P=function(e){return e.Json=`application/json`,e.FormData=`multipart/form-data`,e.UrlEncoded=`application/x-www-form-urlencoded`,e.Text=`text/plain`,e}({}),St=class{baseUrl=`https://api.emailmaker.ru/wp-json`;securityData=null;securityWorker;abortControllers=new Map;customFetch=(...e)=>fetch(...e);baseApiParams={credentials:`same-origin`,headers:{},redirect:`follow`,referrerPolicy:`no-referrer`};constructor(e={}){Object.assign(this,e)}setSecurityData=e=>{this.securityData=e};encodeQueryParam(e,t){return`${encodeURIComponent(e)}=${encodeURIComponent(typeof t==`number`?t:`${t}`)}`}addQueryParam(e,t){return this.encodeQueryParam(t,e[t])}addArrayQueryParam(e,t){return e[t].map(e=>this.encodeQueryParam(t,e)).join(`&`)}toQueryString(e){let t=e||{};return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>Array.isArray(t[e])?this.addArrayQueryParam(t,e):this.addQueryParam(t,e)).join(`&`)}addQueryParams(e){let t=this.toQueryString(e);return t?`?${t}`:``}contentFormatters={"application/json":e=>e!==null&&(typeof e==`object`||typeof e==`string`)?JSON.stringify(e):e,"text/plain":e=>e!==null&&typeof e!=`string`?JSON.stringify(e):e,"multipart/form-data":e=>Object.keys(e||{}).reduce((t,n)=>{let r=e[n];return t.append(n,r instanceof Blob?r:typeof r==`object`&&r?JSON.stringify(r):`${r}`),t},new FormData),"application/x-www-form-urlencoded":e=>this.toQueryString(e)};mergeRequestParams(e,t){return{...this.baseApiParams,...e,...t||{},headers:{...this.baseApiParams.headers||{},...e.headers||{},...t&&t.headers||{}}}}createAbortSignal=e=>{if(this.abortControllers.has(e)){let t=this.abortControllers.get(e);return t?t.signal:void 0}let t=new AbortController;return this.abortControllers.set(e,t),t.signal};abortRequest=e=>{let t=this.abortControllers.get(e);t&&(t.abort(),this.abortControllers.delete(e))};async request({body:e,secure:t,path:n,type:r,query:i,format:a,baseUrl:o,cancelToken:s,extraQuery:c,proxyHandler:l,...u}){let d=(typeof t==`boolean`?t:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},f=this.mergeRequestParams(u,d);c&&(i=i?{...i,...c}:c);let p=i&&this.toQueryString(i),m=this.contentFormatters[r||`application/json`],h=a||f.format,g=`${o||this.baseUrl||``}${n}${p?`?${p}`:``}`,_=l?l(g,{body:e,secure:t,path:n,type:r,query:i,format:a,baseUrl:o,cancelToken:s,extraQuery:c,proxyHandler:l,...u}):g,v=new Request(_,{...f,headers:{...f.headers||{},...r&&r!==`multipart/form-data`?{"Content-Type":r}:{}},signal:(s?this.createAbortSignal(s):f.signal)||null,body:e==null?null:m(e)});return this.customFetch(v).then(async e=>{let t=e;t.data=null,t.error=null,t.meta={request:v,response:t};let n=h?await e[h]().then(e=>(t.ok?t.data=e:t.error={data:e},t)).catch(e=>(t.error=e,t)):t;return s&&this.abortControllers.delete(s),n})}},Ct=class extends St{limits={get_limits:(e,t={})=>this.request({path:`/limits/v1`,method:`GET`,query:e,...t}),stats_list:(e={})=>this.request({path:`/limits/v1/stats`,method:`GET`,...e}),stats_detail:({type:e,...t},n={})=>this.request({path:`/limits/v1/stats/${e}`,method:`GET`,...n}),warnings_list:(e={})=>this.request({path:`/limits/v1/warnings`,method:`GET`,...e}),reset_to_subscription_base_create:(e={})=>this.request({path:`/limits/v1/reset-to-subscription-base`,method:`POST`,...e}),update_create:(e={})=>this.request({path:`/limits/v1/update`,method:`POST`,...e})};unisenderProxy={get_unisender_proxy:(e,t={})=>this.request({path:`/unisender-proxy/v1`,method:`GET`,query:e,...t}),create_message_create:(e={})=>this.request({path:`/unisender-proxy/v1/create-message`,method:`POST`,...e})};bdpwr={get_bdpwr:(e,t={})=>this.request({path:`/bdpwr/v1`,method:`GET`,query:e,...t}),reset_password_create:(e={})=>this.request({path:`/bdpwr/v1/reset-password`,method:`POST`,...e}),set_password_create:(e={})=>this.request({path:`/bdpwr/v1/set-password`,method:`POST`,...e}),validate_code_create:(e={})=>this.request({path:`/bdpwr/v1/validate-code`,method:`POST`,...e})};corsProxy={get_cors_proxy:(e,t={})=>this.request({path:`/cors-proxy/V1`,method:`GET`,query:e,...t}),get_list:(e,t={})=>this.request({path:`/cors-proxy/V1/get`,method:`GET`,query:e,...t})};saveFile={get_save_file:(e,t={})=>this.request({path:`/save-file/v1`,method:`GET`,query:e,...t}),ai_create:(e,t={})=>this.request({path:`/save-file/v1/ai`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),ai_status_list:(e,t={})=>this.request({path:`/save-file/v1/ai-status`,method:`GET`,query:e,...t}),test_list:(e={})=>this.request({path:`/save-file/v1/test`,method:`GET`,...e}),upload_create:(e,t={})=>this.request({path:`/save-file/v1/upload`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),shortener_create:(e,t={})=>this.request({path:`/save-file/v1/shortener`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),get_link_create:(e,t={})=>this.request({path:`/save-file/v1/get-link`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),send_email_create:(e,t={})=>this.request({path:`/save-file/v1/send-email`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};aiGenerator={get_ai_generator:(e,t={})=>this.request({path:`/ai-generator/v1`,method:`GET`,query:e,...t}),ai_create:(e,t={})=>this.request({path:`/ai-generator/v1/ai`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),ai_status_list:(e,t={})=>this.request({path:`/ai-generator/v1/ai-status`,method:`GET`,query:e,...t}),test_list:(e={})=>this.request({path:`/ai-generator/v1/test`,method:`GET`,...e}),clear_history_list:(e,t={})=>this.request({path:`/ai-generator/v1/clear-history`,method:`GET`,query:e,...t}),save_task_create:(e,t={})=>this.request({path:`/ai-generator/v1/save-task`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),identificate_blocks_create:(e,t={})=>this.request({path:`/ai-generator/v1/identificate_blocks`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),create_subject_create:(e,t={})=>this.request({path:`/ai-generator/v1/create_subject`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),ai_subj2_create:(e={})=>this.request({path:`/ai-generator/v1/ai-subj-2`,method:`POST`,...e}),ai_chain_create:(e={})=>this.request({path:`/ai-generator/v1/ai-chain`,method:`POST`,...e})};auth={get_auth:(e,t={})=>this.request({path:`/auth/v1`,method:`GET`,query:e,...t}),users_register_create:(e,t={})=>this.request({path:`/auth/v1/users/register`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),check_auth_list:(e={})=>this.request({path:`/auth/v1/check_auth`,method:`GET`,...e}),yandex_callback_create:(e,t={})=>this.request({path:`/auth/v1/yandex/callback`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),google_callback_create:(e,t={})=>this.request({path:`/auth/v1/google/callback`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),elama_callback_list:(e,t={})=>this.request({path:`/auth/v1/elama/callback`,method:`GET`,query:e,...t}),elama_callback_create:(e,t={})=>this.request({path:`/auth/v1/elama/callback`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),elama_refresh_token_list:(e,t={})=>this.request({path:`/auth/v1/elama/refresh_token`,method:`GET`,query:e,...t}),elama_refresh_token_create:(e,t={})=>this.request({path:`/auth/v1/elama/refresh_token`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};inbox={get_inbox:(e,t={})=>this.request({path:`/inbox/v1`,method:`GET`,query:e,...t}),check_inbox_create:(e,t={})=>this.request({path:`/inbox/v1/check-inbox`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};promo={get_promo:(e,t={})=>this.request({path:`/promo/v1`,method:`GET`,query:e,...t}),set_code_create:(e,t={})=>this.request({path:`/promo/v1/set_code`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),get_code_info_list:(e,t={})=>this.request({path:`/promo/v1/get_code_info`,method:`GET`,query:e,...t}),get_referral_data_list:(e={})=>this.request({path:`/promo/v1/get_referral_data`,method:`GET`,...e})};optimization={get_optimization:(e,t={})=>this.request({path:`/optimization/v1`,method:`GET`,query:e,...t}),validate_images_create:(e,t={})=>this.request({path:`/optimization/v1/validate/images`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),validate_links_create:(e,t={})=>this.request({path:`/optimization/v1/validate/links`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),validate_spamassasin_create:(e,t={})=>this.request({path:`/optimization/v1/validate/spamassasin`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t})};previewSettings={get_preview_settings:(e,t={})=>this.request({path:`/preview_settings/v1`,method:`GET`,query:e,...t}),preview_emails_detail:({id:e,...t},n={})=>this.request({path:`/preview_settings/v1/preview/emails/${e}`,method:`GET`,...n}),preview_emails_partial_update:({id:e,...t},n,r={})=>this.request({path:`/preview_settings/v1/preview/emails/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,...r}),projects_temporary_user_create:({projectId:e,...t},n,r={})=>this.request({path:`/preview_settings/v1/projects/${e}/temporary_user`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),projects_temporary_user_delete:({projectId:e,...t},n={})=>this.request({path:`/preview_settings/v1/projects/${e}/temporary_user`,method:`DELETE`,...n}),emails_temporary_access_list:({emailId:e,...t},n={})=>this.request({path:`/preview_settings/v1/emails/${e}/temporary_access`,method:`GET`,...n}),emails_temporary_access_create:({emailId:e,...t},n,r={})=>this.request({path:`/preview_settings/v1/emails/${e}/temporary_access`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),emails_temporary_access_delete:({emailId:e,targetUserId:t,...n},r={})=>this.request({path:`/preview_settings/v1/emails/${e}/temporary_access/${t}`,method:`DELETE`,...r})};emFiles={get_em_files:(e,t={})=>this.request({path:`/em-files/v1`,method:`GET`,query:e,...t}),folders_list:(e,t={})=>this.request({path:`/em-files/v1/folders`,method:`GET`,query:e,format:`json`,...t}),folders_create:(e,t={})=>this.request({path:`/em-files/v1/folders`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),folders_delete:(e,t={})=>this.request({path:`/em-files/v1/folders`,method:`DELETE`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),empty_trash_create:(e,t={})=>this.request({path:`/em-files/v1/empty-trash`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),files_list:(e,t={})=>this.request({path:`/em-files/v1/files`,method:`GET`,query:e,format:`json`,...t}),files_create:(e,t={})=>this.request({path:`/em-files/v1/files`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),files_delete:(e,t={})=>this.request({path:`/em-files/v1/files`,method:`DELETE`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),files_partial_update:(e,t={})=>this.request({path:`/em-files/v1/files`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),files_upload_by_url_create:(e,t={})=>this.request({path:`/em-files/v1/files/upload-by-url`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),files_rename_partial_update:(e,t={})=>this.request({path:`/em-files/v1/files/rename`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),items_move_partial_update:(e,t={})=>this.request({path:`/em-files/v1/items/move`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),file_dimensions_list:(e,t={})=>this.request({path:`/em-files/v1/file/dimensions`,method:`GET`,query:e,format:`json`,...t}),cache_clear_create:(e,t={})=>this.request({path:`/em-files/v1/cache/clear`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};projects={get_projects:(e,t={})=>this.request({path:`/projects/v1`,method:`GET`,query:e,...t}),flush_email_template_cache_create:(e={})=>this.request({path:`/projects/v1/flush-email-template-cache`,method:`POST`,...e}),list_advanced_list:(e,t={})=>this.request({path:`/projects/v1/list_advanced`,method:`GET`,query:e,...t}),top_used_list:(e,t={})=>this.request({path:`/projects/v1/top-used`,method:`GET`,query:e,...t}),frequent_list:(e,t={})=>this.request({path:`/projects/v1/frequent`,method:`GET`,query:e,...t}),members_bulk_create:(e,t={})=>this.request({path:`/projects/v1/members/bulk`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),flush_project_cache_create:(e,t={})=>this.request({path:`/projects/v1/flush-project-cache`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),profile_options_list:(e={})=>this.request({path:`/projects/v1/profile/options`,method:`GET`,...e}),profile_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/profile/${e}`,method:`GET`,...n}),profile_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/profile/${e}`,method:`PATCH`,...n}),storage_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/storage/${e}`,method:`GET`,...n}),storage_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/storage/${e}`,method:`PATCH`,...n}),storage_test_create:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/storage/${e}/test`,method:`POST`,...n}),integrations_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/integrations/${e}`,method:`GET`,query:t,...n}),integrations_partial_update:({projectId:e,...t},n,r={})=>this.request({path:`/projects/v1/integrations/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,...r}),members_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/members/${e}`,method:`GET`,...n}),styles_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/styles/${e}`,method:`GET`,...n}),styles_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/styles/${e}`,method:`PATCH`,...n}),social_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/social/${e}`,method:`GET`,...n}),social_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/social/${e}`,method:`PATCH`,...n}),developer_credentials_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/developer-credentials/${e}`,method:`GET`,...n}),developer_credentials_partial_update:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/developer-credentials/${e}`,method:`PATCH`,...n}),developer_credentials_rotate_secret_create:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/developer-credentials/${e}/rotate-secret`,method:`POST`,...n}),developer_credentials_verify_secret_create:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/developer-credentials/${e}/verify-secret`,method:`POST`,...n}),developer_kit_postman_collection_list:(e={})=>this.request({path:`/projects/v1/developer-kit/postman-collection`,method:`GET`,...e}),usage_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/usage/${e}`,method:`GET`,...n}),billing_context_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/billing-context/${e}`,method:`GET`,...n}),settings_summary_detail:({projectId:e,...t},n={})=>this.request({path:`/projects/v1/settings-summary/${e}`,method:`GET`,...n})};wp={get_wp:(e,t={})=>this.request({path:`/wp/v2`,method:`GET`,query:e,...t}),confirmation_list:(e,t={})=>this.request({path:`/wp/v2/confirmation`,method:`GET`,query:e,...t}),users_register_create:(e={})=>this.request({path:`/wp/v2/users/register`,method:`POST`,...e}),users_lostpassword_create:(e={})=>this.request({path:`/wp/v2/users/lostpassword`,method:`POST`,...e}),users_lost_password_create:(e={})=>this.request({path:`/wp/v2/users/lost-password`,method:`POST`,...e}),posts_list:(e,t={})=>this.request({path:`/wp/v2/posts`,method:`GET`,query:e,format:`json`,...t}),posts_create:(e,t={})=>this.request({path:`/wp/v2/posts`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),posts_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/posts/${e}`,method:`GET`,query:t,format:`json`,...n}),posts_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/posts/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),posts_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/posts/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),posts_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/posts/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),posts_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/posts/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),posts_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/posts/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),posts_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/posts/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),pages_list:(e,t={})=>this.request({path:`/wp/v2/pages`,method:`GET`,query:e,format:`json`,...t}),pages_create:(e,t={})=>this.request({path:`/wp/v2/pages`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),pages_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/pages/${e}`,method:`GET`,query:t,format:`json`,...n}),pages_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/pages/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),pages_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/pages/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),pages_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/pages/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),pages_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/pages/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),pages_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/pages/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),pages_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/pages/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),media_list:(e,t={})=>this.request({path:`/wp/v2/media`,method:`GET`,query:e,format:`json`,...t}),media_create:(e,t={})=>this.request({path:`/wp/v2/media`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),media_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/media/${e}`,method:`GET`,query:t,format:`json`,...n}),media_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),media_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),media_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),media_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),media_post_process_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}/post-process`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),media_edit_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/media/${e}/edit`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),menu_items_list:(e,t={})=>this.request({path:`/wp/v2/menu-items`,method:`GET`,query:e,format:`json`,...t}),menu_items_create:(e,t={})=>this.request({path:`/wp/v2/menu-items`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),menu_items_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`GET`,query:t,format:`json`,...n}),menu_items_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/menu-items/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),menu_items_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menu-items/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menu_items_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/menu-items/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),blocks_list:(e,t={})=>this.request({path:`/wp/v2/blocks`,method:`GET`,query:e,format:`json`,...t}),blocks_create:(e,t={})=>this.request({path:`/wp/v2/blocks`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),blocks_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`GET`,query:t,format:`json`,...n}),blocks_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/blocks/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),blocks_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/blocks/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),blocks_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/blocks/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),blocks_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/blocks/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),blocks_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocks/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocks_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/blocks/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),templates_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/templates/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),templates_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/templates/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),templates_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/templates/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),templates_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/templates/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),templates_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),templates_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/templates/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),templates_list:(e,t={})=>this.request({path:`/wp/v2/templates`,method:`GET`,query:e,format:`json`,...t}),templates_create:(e,t={})=>this.request({path:`/wp/v2/templates`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),templates_lookup_list:(e,t={})=>this.request({path:`/wp/v2/templates/lookup`,method:`GET`,query:e,...t}),templates_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/templates/${e}`,method:`GET`,query:t,format:`json`,...n}),templates_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),templates_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),templates_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),templates_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/templates/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/template-parts/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),template_parts_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/template-parts/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),template_parts_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/template-parts/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),template_parts_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/template-parts/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),template_parts_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/template-parts/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),template_parts_list:(e,t={})=>this.request({path:`/wp/v2/template-parts`,method:`GET`,query:e,format:`json`,...t}),template_parts_create:(e,t={})=>this.request({path:`/wp/v2/template-parts`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),template_parts_lookup_list:(e,t={})=>this.request({path:`/wp/v2/template-parts/lookup`,method:`GET`,query:e,...t}),template_parts_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`GET`,query:t,format:`json`,...n}),template_parts_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),template_parts_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/template-parts/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),global_styles_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/global-styles/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),global_styles_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/global-styles/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),global_styles_themes_variations_list:({stylesheet:e,...t},n={})=>this.request({path:`/wp/v2/global-styles/themes/${e}/variations`,method:`GET`,...n}),global_styles_themes_detail:({stylesheet:e,...t},n={})=>this.request({path:`/wp/v2/global-styles/themes/${e}`,method:`GET`,...n}),global_styles_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:`GET`,format:`json`,...n}),global_styles_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),global_styles_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),global_styles_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/global-styles/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_list:(e,t={})=>this.request({path:`/wp/v2/navigation`,method:`GET`,query:e,format:`json`,...t}),navigation_create:(e,t={})=>this.request({path:`/wp/v2/navigation`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),navigation_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`GET`,query:t,format:`json`,...n}),navigation_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/navigation/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),navigation_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/navigation/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),navigation_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/navigation/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),navigation_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/navigation/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),navigation_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/navigation/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),navigation_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/navigation/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),font_families_list:(e,t={})=>this.request({path:`/wp/v2/font-families`,method:`GET`,query:e,format:`json`,...t}),font_families_create:(e,t={})=>this.request({path:`/wp/v2/font-families`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),font_families_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`GET`,query:t,format:`json`,...n}),font_families_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_font_faces_list:({fontFamilyId:e,...t},n={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces`,method:`GET`,query:t,format:`json`,...n}),font_families_font_faces_create:({fontFamilyId:e,...t},n,r={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),font_families_font_faces_detail:({fontFamilyId:e,id:t,...n},r={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces/${t}`,method:`GET`,query:n,format:`json`,...r}),font_families_font_faces_delete:({fontFamilyId:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/font-families/${e}/font-faces/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),eblock_list:(e,t={})=>this.request({path:`/wp/v2/eblock`,method:`GET`,query:e,format:`json`,...t}),eblock_create:(e,t={})=>this.request({path:`/wp/v2/eblock`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),eblock_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`GET`,query:t,format:`json`,...n}),eblock_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/eblock/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),eblock_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/eblock/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),eblock_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/eblock/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),eblock_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/eblock/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),eblock_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/eblock/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),eblock_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/eblock/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),email_list:(e,t={})=>this.request({path:`/wp/v2/email`,method:`GET`,query:e,format:`json`,...t}),email_create:(e,t={})=>this.request({path:`/wp/v2/email`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),email_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/email/${e}`,method:`GET`,query:t,format:`json`,...n}),email_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/email/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),email_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/email/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),email_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/email/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),email_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/email/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),email_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/email/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),email_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/email/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),notification_list:(e,t={})=>this.request({path:`/wp/v2/notification`,method:`GET`,query:e,format:`json`,...t}),notification_create:(e,t={})=>this.request({path:`/wp/v2/notification`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),notification_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/notification/${e}`,method:`GET`,query:t,format:`json`,...n}),notification_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_autosaves_list:({id:e,...t},n={})=>this.request({path:`/wp/v2/notification/${e}/autosaves`,method:`GET`,query:t,format:`json`,...n}),notification_autosaves_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/notification/${e}/autosaves`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),notification_autosaves_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/notification/${e}/autosaves/${t}`,method:`GET`,query:n,format:`json`,...r}),payment_list:(e,t={})=>this.request({path:`/wp/v2/payment`,method:`GET`,query:e,format:`json`,...t}),payment_create:(e,t={})=>this.request({path:`/wp/v2/payment`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),payment_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/payment/${e}`,method:`GET`,query:t,format:`json`,...n}),payment_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/payment/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),payment_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/payment/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),payment_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/payment/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),payment_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/payment/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_list:(e,t={})=>this.request({path:`/wp/v2/project`,method:`GET`,query:e,format:`json`,...t}),project_create:(e,t={})=>this.request({path:`/wp/v2/project`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),project_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/project/${e}`,method:`GET`,query:t,format:`json`,...n}),project_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/project/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/project/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/project/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/project/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),project_revisions_list:({parent:e,...t},n={})=>this.request({path:`/wp/v2/project/${e}/revisions`,method:`GET`,query:t,format:`json`,...n}),project_revisions_detail:({parent:e,id:t,...n},r={})=>this.request({path:`/wp/v2/project/${e}/revisions/${t}`,method:`GET`,query:n,format:`json`,...r}),project_revisions_delete:({parent:e,id:t,...n},r,i={})=>this.request({path:`/wp/v2/project/${e}/revisions/${t}`,method:`DELETE`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),subscription_list:(e,t={})=>this.request({path:`/wp/v2/subscription`,method:`GET`,query:e,format:`json`,...t}),subscription_create:(e,t={})=>this.request({path:`/wp/v2/subscription`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),subscription_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`GET`,query:t,format:`json`,...n}),subscription_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),subscription_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),subscription_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),subscription_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/subscription/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),user_promocodes_list:(e,t={})=>this.request({path:`/wp/v2/user_promocodes`,method:`GET`,query:e,format:`json`,...t}),user_promocodes_create:(e,t={})=>this.request({path:`/wp/v2/user_promocodes`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),user_promocodes_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`GET`,query:t,format:`json`,...n}),user_promocodes_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),user_promocodes_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),user_promocodes_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),user_promocodes_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/user_promocodes/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),types_list:(e,t={})=>this.request({path:`/wp/v2/types`,method:`GET`,query:e,format:`json`,...t}),types_detail:({type:e,...t},n={})=>this.request({path:`/wp/v2/types/${e}`,method:`GET`,query:t,format:`json`,...n}),statuses_list:(e,t={})=>this.request({path:`/wp/v2/statuses`,method:`GET`,query:e,format:`json`,...t}),statuses_detail:({status:e,...t},n={})=>this.request({path:`/wp/v2/statuses/${e}`,method:`GET`,query:t,format:`json`,...n}),taxonomies_list:(e,t={})=>this.request({path:`/wp/v2/taxonomies`,method:`GET`,query:e,format:`json`,...t}),taxonomies_detail:({taxonomy:e,...t},n={})=>this.request({path:`/wp/v2/taxonomies/${e}`,method:`GET`,query:t,format:`json`,...n}),categories_list:(e,t={})=>this.request({path:`/wp/v2/categories`,method:`GET`,query:e,format:`json`,...t}),categories_create:(e,t={})=>this.request({path:`/wp/v2/categories`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),categories_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/categories/${e}`,method:`GET`,query:t,format:`json`,...n}),categories_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/categories/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),categories_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/categories/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),categories_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/categories/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),categories_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/categories/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),tags_list:(e,t={})=>this.request({path:`/wp/v2/tags`,method:`GET`,query:e,format:`json`,...t}),tags_create:(e,t={})=>this.request({path:`/wp/v2/tags`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),tags_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/tags/${e}`,method:`GET`,query:t,format:`json`,...n}),tags_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/tags/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),tags_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/tags/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),tags_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/tags/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),tags_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/tags/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menus_list:(e,t={})=>this.request({path:`/wp/v2/menus`,method:`GET`,query:e,format:`json`,...t}),menus_create:(e,t={})=>this.request({path:`/wp/v2/menus`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),menus_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/menus/${e}`,method:`GET`,query:t,format:`json`,...n}),menus_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menus/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menus_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menus/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menus_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menus/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),menus_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/menus/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),wp_pattern_category_list:(e,t={})=>this.request({path:`/wp/v2/wp_pattern_category`,method:`GET`,query:e,format:`json`,...t}),wp_pattern_category_create:(e,t={})=>this.request({path:`/wp/v2/wp_pattern_category`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),wp_pattern_category_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`GET`,query:t,format:`json`,...n}),wp_pattern_category_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),wp_pattern_category_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),wp_pattern_category_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),wp_pattern_category_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/wp_pattern_category/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),group_list:(e,t={})=>this.request({path:`/wp/v2/group`,method:`GET`,query:e,format:`json`,...t}),group_create:(e,t={})=>this.request({path:`/wp/v2/group`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),group_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/group/${e}`,method:`GET`,query:t,format:`json`,...n}),group_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/group/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),group_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/group/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),group_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/group/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),group_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/group/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blockfolder_list:(e,t={})=>this.request({path:`/wp/v2/blockfolder`,method:`GET`,query:e,format:`json`,...t}),blockfolder_create:(e,t={})=>this.request({path:`/wp/v2/blockfolder`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),blockfolder_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`GET`,query:t,format:`json`,...n}),blockfolder_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blockfolder_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blockfolder_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blockfolder_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blockfolder/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocktags_list:(e,t={})=>this.request({path:`/wp/v2/blocktags`,method:`GET`,query:e,format:`json`,...t}),blocktags_create:(e,t={})=>this.request({path:`/wp/v2/blocktags`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),blocktags_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`GET`,query:t,format:`json`,...n}),blocktags_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocktags_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocktags_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),blocktags_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/blocktags/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),emailtags_list:(e,t={})=>this.request({path:`/wp/v2/emailtags`,method:`GET`,query:e,format:`json`,...t}),emailtags_create:(e,t={})=>this.request({path:`/wp/v2/emailtags`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),emailtags_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`GET`,query:t,format:`json`,...n}),emailtags_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),emailtags_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),emailtags_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),emailtags_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/emailtags/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),folder_list:(e,t={})=>this.request({path:`/wp/v2/folder`,method:`GET`,query:e,format:`json`,...t}),folder_create:(e,t={})=>this.request({path:`/wp/v2/folder`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),folder_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/folder/${e}`,method:`GET`,query:t,format:`json`,...n}),folder_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/folder/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),folder_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/folder/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),folder_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/folder/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),folder_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/folder/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_list:(e,t={})=>this.request({path:`/wp/v2/users`,method:`GET`,query:e,format:`json`,...t}),users_create:(e,t={})=>this.request({path:`/wp/v2/users`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/users/${e}`,method:`GET`,query:t,format:`json`,...n}),users_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_me_list:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`GET`,query:e,format:`json`,...t}),users_me_create:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_me_update:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`PUT`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_me_partial_update:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_me_delete:(e,t={})=>this.request({path:`/wp/v2/users/me`,method:`DELETE`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),users_application_passwords_list:({userId:e,...t},n={})=>this.request({path:`/wp/v2/users/${e}/application-passwords`,method:`GET`,query:t,format:`json`,...n}),users_application_passwords_create:({userId:e,...t},n,r={})=>this.request({path:`/wp/v2/users/${e}/application-passwords`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),users_application_passwords_delete:({userId:e,...t},n={})=>this.request({path:`/wp/v2/users/${e}/application-passwords`,method:`DELETE`,format:`json`,...n}),users_application_passwords_introspect_list:({userId:e,...t},n={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/introspect`,method:`GET`,query:t,format:`json`,...n}),users_application_passwords_detail:({userId:e,uuid:t,...n},r={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`GET`,query:n,format:`json`,...r}),users_application_passwords_create2:({userId:e,uuid:t,...n},r,i={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`POST`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),users_application_passwords_update:({userId:e,uuid:t,...n},r,i={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`PUT`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),users_application_passwords_partial_update:({userId:e,uuid:t,...n},r,i={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`PATCH`,body:r,type:`application/x-www-form-urlencoded`,format:`json`,...i}),users_application_passwords_delete2:({userId:e,uuid:t,...n},r={})=>this.request({path:`/wp/v2/users/${e}/application-passwords/${t}`,method:`DELETE`,format:`json`,...r}),comments_list:(e,t={})=>this.request({path:`/wp/v2/comments`,method:`GET`,query:e,format:`json`,...t}),comments_create:(e,t={})=>this.request({path:`/wp/v2/comments`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),comments_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/comments/${e}`,method:`GET`,query:t,format:`json`,...n}),comments_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/comments/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),comments_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/comments/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),comments_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/comments/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),comments_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/comments/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),search_list:(e,t={})=>this.request({path:`/wp/v2/search`,method:`GET`,query:e,format:`json`,...t}),block_renderer_detail:({name:e,...t},n={})=>this.request({path:`/wp/v2/block-renderer/${e}`,method:`GET`,query:t,format:`json`,...n}),block_renderer_create:({name:e,...t},n,r={})=>this.request({path:`/wp/v2/block-renderer/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),block_types_list:(e,t={})=>this.request({path:`/wp/v2/block-types`,method:`GET`,query:e,format:`json`,...t}),block_types_detail:({namespace:e,...t},n={})=>this.request({path:`/wp/v2/block-types/${e}`,method:`GET`,query:t,format:`json`,...n}),block_types_detail2:({name:e,namespace:t,...n},r={})=>this.request({path:`/wp/v2/block-types/${t}/${e}`,method:`GET`,query:n,format:`json`,...r}),settings_list:(e={})=>this.request({path:`/wp/v2/settings`,method:`GET`,format:`json`,...e}),settings_create:(e,t={})=>this.request({path:`/wp/v2/settings`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),settings_update:(e,t={})=>this.request({path:`/wp/v2/settings`,method:`PUT`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),settings_partial_update:(e,t={})=>this.request({path:`/wp/v2/settings`,method:`PATCH`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),themes_list:(e,t={})=>this.request({path:`/wp/v2/themes`,method:`GET`,query:e,format:`json`,...t}),themes_detail:({stylesheet:e,...t},n={})=>this.request({path:`/wp/v2/themes/${e}`,method:`GET`,format:`json`,...n}),plugins_list:(e,t={})=>this.request({path:`/wp/v2/plugins`,method:`GET`,query:e,format:`json`,...t}),plugins_create:(e,t={})=>this.request({path:`/wp/v2/plugins`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),plugins_detail:({plugin:e,...t},n={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`GET`,query:t,format:`json`,...n}),plugins_create2:({plugin:e,...t},n,r={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),plugins_update:({plugin:e,...t},n,r={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),plugins_partial_update:({plugin:e,...t},n,r={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),plugins_delete:({plugin:e,...t},n,r={})=>this.request({path:`/wp/v2/plugins/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),sidebars_list:(e,t={})=>this.request({path:`/wp/v2/sidebars`,method:`GET`,query:e,format:`json`,...t}),sidebars_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:`GET`,query:t,format:`json`,...n}),sidebars_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),sidebars_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),sidebars_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/sidebars/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),widget_types_list:(e,t={})=>this.request({path:`/wp/v2/widget-types`,method:`GET`,query:e,format:`json`,...t}),widget_types_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/widget-types/${e}`,method:`GET`,query:t,format:`json`,...n}),widget_types_encode_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widget-types/${e}/encode`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),widget_types_render_create:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widget-types/${e}/render`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,...r}),widgets_list:(e,t={})=>this.request({path:`/wp/v2/widgets`,method:`GET`,query:e,format:`json`,...t}),widgets_create:(e,t={})=>this.request({path:`/wp/v2/widgets`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,format:`json`,...t}),widgets_detail:({id:e,...t},n={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`GET`,query:t,format:`json`,...n}),widgets_create2:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),widgets_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),widgets_partial_update:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),widgets_delete:({id:e,...t},n,r={})=>this.request({path:`/wp/v2/widgets/${e}`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),block_directory_search_list:(e,t={})=>this.request({path:`/wp/v2/block-directory/search`,method:`GET`,query:e,format:`json`,...t}),pattern_directory_patterns_list:(e,t={})=>this.request({path:`/wp/v2/pattern-directory/patterns`,method:`GET`,query:e,format:`json`,...t}),block_patterns_patterns_list:(e={})=>this.request({path:`/wp/v2/block-patterns/patterns`,method:`GET`,format:`json`,...e}),block_patterns_categories_list:(e={})=>this.request({path:`/wp/v2/block-patterns/categories`,method:`GET`,format:`json`,...e}),menu_locations_list:(e,t={})=>this.request({path:`/wp/v2/menu-locations`,method:`GET`,query:e,format:`json`,...t}),menu_locations_detail:({location:e,...t},n={})=>this.request({path:`/wp/v2/menu-locations/${e}`,method:`GET`,query:t,format:`json`,...n}),font_collections_list:(e,t={})=>this.request({path:`/wp/v2/font-collections`,method:`GET`,query:e,format:`json`,...t}),font_collections_detail:({slug:e,...t},n={})=>this.request({path:`/wp/v2/font-collections/${e}`,method:`GET`,query:t,format:`json`,...n}),icons_list:(e,t={})=>this.request({path:`/wp/v2/icons`,method:`GET`,query:e,format:`json`,...t}),icons_detail:({name:e,...t},n={})=>this.request({path:`/wp/v2/icons/${e}`,method:`GET`,query:t,format:`json`,...n})};userToProject={get_user_to_project:(e,t={})=>this.request({path:`/user_to_project/v1`,method:`GET`,query:e,...t}),add_user_create:(e,t={})=>this.request({path:`/user_to_project/v1/add_user`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};payment={get_payment:(e,t={})=>this.request({path:`/payment/v1`,method:`GET`,query:e,...t}),check_duplicate_list:(e,t={})=>this.request({path:`/payment/v1/check_duplicate`,method:`GET`,query:e,...t}),check_duplicate_create:(e,t={})=>this.request({path:`/payment/v1/check_duplicate`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),subscription_payment_create:(e,t={})=>this.request({path:`/payment/v1/subscription_payment`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),subscription_cancelled_create:(e={})=>this.request({path:`/payment/v1/subscription_cancelled`,method:`POST`,...e}),refund_create:(e,t={})=>this.request({path:`/payment/v1/refund`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),package_purchase_create:(e,t={})=>this.request({path:`/payment/v1/package_purchase`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};counters={get_counters:(e,t={})=>this.request({path:`/counters/v1`,method:`GET`,query:e,...t}),increment_counter_partial_update:(e={})=>this.request({path:`/counters/v1/increment_counter`,method:`PATCH`,...e})};users={get_users:(e,t={})=>this.request({path:`/users/v1`,method:`GET`,query:e,...t}),is_paying_user_list:(e={})=>this.request({path:`/users/v1/is_paying_user`,method:`GET`,...e}),subscription_by_email_list:(e,t={})=>this.request({path:`/users/v1/subscription_by_email`,method:`GET`,query:e,...t})};email={get_email:(e,t={})=>this.request({path:`/email/v2`,method:`GET`,query:e,...t}),export_batches_create:(e={})=>this.request({path:`/email/v2/export/batches`,method:`POST`,...e}),export_batches_latest_list:(e,t={})=>this.request({path:`/email/v2/export/batches/latest`,method:`GET`,query:e,...t}),export_batches_detail:({batchId:e,...t},n={})=>this.request({path:`/email/v2/export/batches/${e}`,method:`GET`,...n}),export_batches_delete:({batchId:e,...t},n={})=>this.request({path:`/email/v2/export/batches/${e}`,method:`DELETE`,...n}),export_batches_cancel_create:({batchId:e,...t},n={})=>this.request({path:`/email/v2/export/batches/${e}/cancel`,method:`POST`,...n}),export_download_list:(e,t={})=>this.request({path:`/email/v2/export/download`,method:`GET`,query:e,...t}),templates_list:(e,t={})=>this.request({path:`/email/v2/templates`,method:`GET`,query:e,...t}),html_list:(e,t={})=>this.request({path:`/email/v2/html`,method:`GET`,query:e,...t}),copy_create:(e,t={})=>this.request({path:`/email/v2/copy`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};wpOpenapi={wp_openapi_list:(e,t={})=>this.request({path:`/wp-openapi`,method:`GET`,query:e,...t}),stoplight_ui_list:(e={})=>this.request({path:`/wp-openapi/stoplight-ui`,method:`GET`,...e}),get_wp_openapi:(e,t={})=>this.request({path:`/wp-openapi/v1`,method:`GET`,query:e,...t}),schema_list:(e,t={})=>this.request({path:`/wp-openapi/v1/schema`,method:`GET`,query:e,...t})};subscription={get_subscription:(e,t={})=>this.request({path:`/subscription/v2`,method:`GET`,query:e,...t}),activate_trial_list:(e={})=>this.request({path:`/subscription/v2/activate_trial`,method:`GET`,...e}),me_list:(e={})=>this.request({path:`/subscription/v2/me`,method:`GET`,...e}),me_notification_preferences_update:(e={})=>this.request({path:`/subscription/v2/me/notification-preferences`,method:`PUT`,...e})};app={get_app:(e,t={})=>this.request({path:`/app/v1`,method:`GET`,query:e,...t}),app_init_create:(e,t={})=>this.request({path:`/app/v1/app_init`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t})};jwtAuth={get_jwt_auth:(e,t={})=>this.request({path:`/jwt-auth/v1`,method:`GET`,query:e,...t}),token_create:(e={})=>this.request({path:`/jwt-auth/v1/token`,method:`POST`,...e}),token_validate_create:(e={})=>this.request({path:`/jwt-auth/v1/token/validate`,method:`POST`,...e})};translations={translations_list:(e,t={})=>this.request({path:`/translations`,method:`GET`,query:e,...t}),post_translations:(e={})=>this.request({path:`/translations/v1`,method:`POST`,...e}),get_translations:(e,t={})=>this.request({path:`/translations/v1`,method:`GET`,query:e,...t}),get_translations2:({file:e,...t},n={})=>this.request({path:`/translations/v1/${e}`,method:`GET`,...n}),get_translations3:({id:e,file:t,...n},r={})=>this.request({path:`/translations/v1/${t}/${e}`,method:`GET`,...r})};em1CSync={get_em1_c_sync:(e,t={})=>this.request({path:`/em-1c-sync/v1`,method:`GET`,query:e,...t}),invoice_request_create:(e={})=>this.request({path:`/em-1c-sync/v1/invoice-request`,method:`POST`,...e}),invoice_create:(e={})=>this.request({path:`/em-1c-sync/v1/invoice`,method:`POST`,...e}),ack_create:(e={})=>this.request({path:`/em-1c-sync/v1/ack`,method:`POST`,...e}),test_receiver_create:(e={})=>this.request({path:`/em-1c-sync/v1/test-receiver`,method:`POST`,...e})};prmonline={get_prmonline:(e,t={})=>this.request({path:`/prmonline/v1`,method:`GET`,query:e,...t}),save_ref_create:(e={})=>this.request({path:`/prmonline/v1/save-ref`,method:`POST`,...e}),track_list:(e={})=>this.request({path:`/prmonline/v1/track`,method:`GET`,...e}),track_create:(e={})=>this.request({path:`/prmonline/v1/track`,method:`POST`,...e})};wpMailSmtp={get_wp_mail_smtp:(e,t={})=>this.request({path:`/wp-mail-smtp/v1`,method:`GET`,query:e,...t}),e_detail:({data:e,...t},n={})=>this.request({path:`/wp-mail-smtp/v1/e/${e}`,method:`GET`,...n})};emailmakerLayoutConverter={get_emailmaker_layout_converter:(e,t={})=>this.request({path:`/emailmaker-layout-converter/v1`,method:`GET`,query:e,...t}),convert_create:(e,t={})=>this.request({path:`/emailmaker-layout-converter/v1/convert`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),convert_async_create:(e,t={})=>this.request({path:`/emailmaker-layout-converter/v1/convert/async`,method:`POST`,body:e,type:`application/x-www-form-urlencoded`,...t}),convert_jobs_detail:({jobId:e,...t},n={})=>this.request({path:`/emailmaker-layout-converter/v1/convert/jobs/${e}`,method:`GET`,...n})};emFmOps={get_em_fm_ops:(e,t={})=>this.request({path:`/em-fm-ops/v1`,method:`GET`,query:e,...t}),history_list:(e,t={})=>this.request({path:`/em-fm-ops/v1/history`,method:`GET`,query:e,...t})};wpSiteHealth={get_wp_site_health:(e,t={})=>this.request({path:`/wp-site-health/v1`,method:`GET`,query:e,...t}),tests_background_updates_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/background-updates`,method:`GET`,format:`json`,...e}),tests_loopback_requests_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/loopback-requests`,method:`GET`,format:`json`,...e}),tests_https_status_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/https-status`,method:`GET`,format:`json`,...e}),tests_dotorg_communication_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/dotorg-communication`,method:`GET`,format:`json`,...e}),tests_authorization_header_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/authorization-header`,method:`GET`,format:`json`,...e}),directory_sizes_list:(e={})=>this.request({path:`/wp-site-health/v1/directory-sizes`,method:`GET`,...e}),tests_page_cache_list:(e={})=>this.request({path:`/wp-site-health/v1/tests/page-cache`,method:`GET`,...e})};wpBlockEditor={get_wp_block_editor:(e,t={})=>this.request({path:`/wp-block-editor/v1`,method:`GET`,query:e,...t}),url_details_list:(e,t={})=>this.request({path:`/wp-block-editor/v1/url-details`,method:`GET`,query:e,...t}),export_list:(e={})=>this.request({path:`/wp-block-editor/v1/export`,method:`GET`,...e}),navigation_fallback_list:(e={})=>this.request({path:`/wp-block-editor/v1/navigation-fallback`,method:`GET`,format:`json`,...e})};wpAbilities={get_wp_abilities:(e,t={})=>this.request({path:`/wp-abilities/v1`,method:`GET`,query:e,...t}),categories_list:(e,t={})=>this.request({path:`/wp-abilities/v1/categories`,method:`GET`,query:e,format:`json`,...t}),categories_detail:({slug:e,...t},n={})=>this.request({path:`/wp-abilities/v1/categories/${e}`,method:`GET`,format:`json`,...n}),abilities_run_list:({name:e,...t},n={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`GET`,query:t,format:`json`,...n}),abilities_run_create:({name:e,...t},n,r={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`POST`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),abilities_run_update:({name:e,...t},n,r={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`PUT`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),abilities_run_partial_update:({name:e,...t},n,r={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`PATCH`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),abilities_run_delete:({name:e,...t},n,r={})=>this.request({path:`/wp-abilities/v1/abilities/${e}/run`,method:`DELETE`,body:n,type:`application/x-www-form-urlencoded`,format:`json`,...r}),abilities_list:(e,t={})=>this.request({path:`/wp-abilities/v1/abilities`,method:`GET`,query:e,format:`json`,...t}),abilities_detail:({name:e,...t},n={})=>this.request({path:`/wp-abilities/v1/abilities/${e}`,method:`GET`,format:`json`,...n})}},wt=x(`client`),Tt=x(`ai_client`),Et=x(),Dt=x(),Ot=`INJECTION`;function kt(e){return e.getState}function F(e){if(kt(e)){let t=e.getState()[Ot];return t&&O.getInstance(t)}else return e}r.i(),i.n();function At(e,t){for(let n of e)if(n&&t in n)return n[t]}function jt(e){return Object.assign({},...e)}var Mt=[`generic`,`stockImages`,`emFiles`,`cdn`];function Nt(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function Pt(e){return!Nt(e)||`match`in e||`rewrite`in e||`proxyBase`in e?!1:Object.keys(e).some(e=>Mt.includes(e))}function Ft(e){return e.length===0?[]:e.length===1?e[0]:e}function It(e){let t=!1,n=[];for(let r of e)if(r!==void 0){if(t=!0,Array.isArray(r)){n=[...r,...n];continue}n=[r,...n]}if(t)return Ft(n)}function Lt(e){return Nt(e)&&(`value`in e||`replace`in e)}function Rt(e,t){return t===void 0?e:Array.isArray(t)?[...t,...e]:[t,...e]}function zt(e){let t=!1,n=[],r=!1;for(let i of e)if(i!==void 0){if(Lt(i)){t=!0,i.replace&&(n=[],r=!0),i.value!==void 0&&(n=Rt(n,i.value),r=!0);continue}n=Rt(n,i),r=!0}let i=r?Ft(n):void 0;if(!t)return i;if(i!==void 0)return{value:i}}function Bt(e){let t=e.filter(e=>e!==void 0);if(t.length===0)return;if(!t.some(e=>Pt(e)))return It(t);let n={};for(let t of Mt){let r=zt(e.map(e=>{if(e!==void 0)return Pt(e)?e[t]:t===`generic`?e:void 0}));r!==void 0&&(n[t]=r)}return Object.keys(n).length>0?n:void 0}function Vt(e){return It(e)}function Ht(e){if(e!==void 0){if(Array.isArray(e))return{replace:!1,hosts:e};if(Nt(e)&&Array.isArray(e.value))return{replace:!!e.replace,hosts:e.value}}}function Ut(e,t){let n=[...e],r=new Set(n.map(e=>e.toLowerCase()));for(let e of t){let t=e.trim().replace(/:\d+$/,``);if(!t)continue;let i=t.toLowerCase();r.has(i)||(r.add(i),n.push(t))}return n}function Wt(e){let t=[],n=!1;for(let r of e){let e=Ht(r);e&&(n=!0,e.replace&&(t=[]),t=Ut(t,e.hosts))}return n?t:void 0}function Gt(e){let t=e.filter(e=>e!==void 0);if(t.length===0)return;let n=jt(t.map(({directHosts:e,...t})=>t)),r=Wt(t.map(e=>e?.directHosts));return r!==void 0&&(n.directHosts=r),n}var Kt=3e5,qt=new Map,Jt=new Map,Yt=new Set([`generic`,`stockImages`,`emFiles`,`cdn`]),Xt=/^https:\/\/(?:media\d*|i)\.giphy\.com\/media/i,Zt=/^https:\/\/api\.giphy\.com\/v1\/gifs/i,Qt=/^https:\/\/images\.unsplash\.com/i,$t=/^https:\/\/api\.unsplash\.com/i,en=/^https:\/\/assets\.streamlinehq\.com/i,tn=/^https:\/\/public-api\.streamlinehq\.com/i;function nn(e){return typeof e==`string`&&e.trim().length>0}function rn(){let e=`https://px0.racs.rest/`;if(nn(e))return e;let t=i.t.env.REACT_APP_UNSPLASH_PROXY;return nn(t)?t:void 0}function an(){return{stockImagesProxyUrl:`https://api.emailmaker.ru/services/stock_images`,stockImagesProxyUrlApi:`https://api.emailmaker.ru/services/stock_images_api`,genericProxyUrl:rn()}}function on(e){let t=[],{stockImagesProxyUrl:n,stockImagesProxyUrlApi:r,genericProxyUrl:i}=an();return r&&t.push({id:`mode-default-stock-images-api`,match:`https://api.unsplash.com/{path}`,proxyBase:r,rewrite:`{path}?proxy_url={origin}{search}{hash}`}),n&&t.push({id:`mode-default-stock-images-cdn`,match:`https://images.unsplash.com/{path}`,proxyBase:n,rewrite:`{path}?proxy_url={origin}{search}{hash}`}),i&&t.push({id:`mode-default-generic`,proxyBase:i,rewrite:`{path}?proxy_url={origin}{search}{hash}`}),t.length>0?t:void 0}function sn(e){return!!e}var cn=()=>{if(!(typeof window>`u`))return window.location.origin};function ln(e){let t=cn();if(!t)return!1;try{return new URL(e).origin===t}catch{return!1}}function un(e,t){try{let n=new URL(e).hostname.toLowerCase();return t.find(e=>e.toLowerCase()===n)??null}catch{return null}}function dn(e,t){return t?!1:e===`downloadBlob`||e===`display`}function fn(e){let t=e.trim();return t?t.replace(/:\d+$/,``):``}function pn(e,t){if(!t.proxySameOrigin&&ln(e))try{return{skipReason:`same-origin`,matchedHost:new URL(e).hostname}}catch{return null}let n=un(e,t.directHosts);return n?{skipReason:`direct-host`,matchedHost:n}:null}function mn(e){let t=[];for(let n of e){if(Array.isArray(n)){for(let e of n)t.push(e);continue}t.push(n)}return t}function hn(e){let t=new Set,n=[];for(let r of e){let e=_n(typeof r==`string`?r:r.proxyBase||``);e&&t.has(e)||(e&&t.add(e),n.push(r))}return n}function gn(e){return e?.backendProxy}function _n(e){return e.replace(/\/$/,``)}function vn(e){return/^https?:\/\//i.test(e)}function yn(e){return e===`/`?``:e.replace(/\/$/,``)}function bn(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function xn(e){let t=new Set;return e.filter(e=>!e.url||t.has(e.url)?!1:(t.add(e.url),!0))}function Sn(){return`https://emcdn.ru`}function Cn(e){return!bn(e)||`match`in e||`rewrite`in e||`proxyBase`in e?!1:Object.keys(e).some(e=>Yt.has(e))}function wn(e){if(e!=null)return bn(e)&&(`value`in e||`replace`in e)?e.value:e}function Tn(e,t=`generic`,n=!1){let r=Fn(e,n);if(r)return Cn(r)?wn(r[t]??r.generic):r}function En(e,t=!1){let n=Fn(e,t);return n?Cn(n)?Object.keys(n).filter(e=>Yt.has(e)).map(e=>wn(n[e])).filter(Boolean):[n]:[]}function Dn(e){let t=gn(e);return t?[t]:[]}function On(e,t=!1){if(sn(t))return{proxyBlobFetch:!0,proxyImgSrc:!0,proxyCdn:!0,proxyEmFiles:!0,proxyStockImages:!0};let{stockImagesProxyUrl:n,stockImagesProxyUrlApi:r}=an();return{proxyBlobFetch:!0,proxyImgSrc:!1,proxyCdn:!1,proxyEmFiles:!1,proxyStockImages:nn(n)||nn(r)}}function kn(e){let t=[],n=new Set;for(let r of e){let e=fn(r);if(!e)continue;let i=e.toLowerCase();n.has(i)||(n.add(i),t.push(e))}return t}function An(e){return e?kn(Array.isArray(e)?e:e.value??[]):[]}function jn(e,t){return{inheritDefaults:!e,proxySameOrigin:!1,directHosts:[],...On(t,e)}}function Mn(e,t=!1){let n=jn(t,e),r=e?.resourceProxyPolicy??{};return{inheritDefaults:r.inheritDefaults??n.inheritDefaults,proxySameOrigin:r.proxySameOrigin??n.proxySameOrigin,directHosts:r.directHosts===void 0?n.directHosts:An(r.directHosts),proxyBlobFetch:r.proxyBlobFetch??n.proxyBlobFetch,proxyImgSrc:r.proxyImgSrc??n.proxyImgSrc,proxyCdn:r.proxyCdn??n.proxyCdn,proxyEmFiles:r.proxyEmFiles??n.proxyEmFiles,proxyStockImages:r.proxyStockImages??n.proxyStockImages,recoveryTtlMs:r.recoveryTtlMs??n.recoveryTtlMs}}function Nn(e,t=!1){return Mn(e,t).inheritDefaults}function Pn(e,t=!1){let n=Mn(e,t).recoveryTtlMs;return typeof n==`number`&&n>0?n:Kt}function Fn(e,t=!1){let n=e?.resourceProxy;if(!Nn(e,t))return n;let r=on(e);if(n===void 0)return r;let i=Bt([r,n]);return Array.isArray(i)?hn(mn(i)):i}function In(e){return{proxyEmFiles:!0,proxyAi:!1}}function Ln(e,t,n,r=!1){let i=Mn(n,r);if(t===`display`)return e===`stockImages`?i.proxyStockImages:i.proxyImgSrc;switch(e){case`cdn`:return i.proxyCdn;case`emFiles`:return i.proxyEmFiles;case`stockImages`:return i.proxyStockImages;default:return i.proxyBlobFetch}}function Rn(e,t,n,r=!1){return e===`stockImages`&&Ln(`stockImages`,t,n,r)}function zn(e,t){let n=In(t),r=t?.backendProxyPolicy;switch(e){case`emFiles`:return r?.proxyEmFiles??n.proxyEmFiles;case`ai`:return r?.proxyAi??n.proxyAi;default:return!0}}var Bn={url:`.+`,url_encoded:`.+`,origin:`https?:\\/\\/[^\\/?#]+`,origin_encoded:`.+`,proxy_url:`https?:\\/\\/[^\\/?#]+`,proxy_url_encoded:`.+`,path:`[^?#]*`,pathname:`[^?#]*`,path_with_slash:`\\/[^?#]*`,pathname_with_slash:`\\/[^?#]*`,query:`[^#]*`,search:`\\?[^#]*`,hash:`#.*`,fragment:`.*`,pathname_after_wp_json:`[^?#]*`,pathname_after_wp_json_with_slash:`\\/[^?#]*`,rest_namespace:`[^/?#]*`,rest_version:`[^/?#]*`,rest_route:`[^?#]*`,rest_route_with_slash:`\\/[^?#]*`};function Vn(e){let t=[],n=e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`).replace(/\\\{([a-z_]+)\\\}/gi,(e,n)=>(t.push(n),`(${Bn[n]||`.+`})`));return{regex:RegExp(`^${n}$`,`i`),tokens:t}}function Hn(e){return/[?#]/.test(e)||/\{(?:url|url_encoded|query|search|hash|fragment)\}/i.test(e)}function Un(e,t){if(Hn(t))return e;try{let t=new URL(e);return`${t.origin}${t.pathname}`}catch{return e.split(/[?#]/)[0]||e}}function Wn(e,t,n){if(n.endsWith(`_encoded`))return!0;let r=e.slice(0,t),i=r.lastIndexOf(`#`),a=r.lastIndexOf(`?`),o=r.lastIndexOf(`&`),s=r.lastIndexOf(`=`);return s>Math.max(a,o)&&s>i}function Gn(e){try{let t=new URL(e),n=t.pathname.replace(/^\/+/,``),r=t.search.replace(/^\?/,``),i=t.hash.replace(/^#/,``),a=n.replace(/^wp-json\/?/i,``),o=a?`/${a}`:`/`,s=a.match(/^([^/]+)(?:\/([^/]+))?(?:\/(.*))?$/),c=s?.[1]||``,l=s?.[2]||``,u=s?.[3]||``;return{url:e,url_encoded:encodeURIComponent(e),origin:t.origin,origin_encoded:encodeURIComponent(t.origin),proxy_url:t.origin,proxy_url_encoded:encodeURIComponent(t.origin),path:n,pathname:n,path_with_slash:t.pathname||`/`,pathname_with_slash:t.pathname||`/`,query:r,search:t.search,hash:t.hash,fragment:i,pathname_after_wp_json:a,pathname_after_wp_json_with_slash:o,rest_namespace:c,rest_version:l,rest_route:u,rest_route_with_slash:u?`/${u}`:`/`}}catch{return}}function Kn(e,t){if(!e)return{};if(Array.isArray(e)){for(let n of e){let e=Kn(n,t);if(e!==void 0)return e}return}if(e===`*`)return{};let n=Un(t,e),{regex:r,tokens:i}=Vn(e),a=r.exec(n);if(!a)return;let o={};return i.forEach((e,t)=>{o[`matched_${e}`]=a[t+1]||``}),o}function qn(e,t,n={}){let r=Gn(t);if(!r)return t;let i={...r,...n},a=``,o=0,s=/\{([a-z_]+)\}/gi,c;for(;c=s.exec(e);){a+=e.slice(o,c.index);let t=i[c[1]]??``,n=Wn(e,c.index,c[1])?encodeURIComponent(t):t;a+=n,o=c.index+c[0].length}a+=e.slice(o);try{let e=new URL(a),n=new URL(t);return!a.includes(`{search}`)&&!a.includes(`{query}`)&&n.search&&n.searchParams.forEach((t,n)=>{e.searchParams.has(n)||e.searchParams.append(n,t)}),!a.includes(`{hash}`)&&!a.includes(`{fragment}`)&&n.hash&&!e.hash&&(e.hash=n.hash),e.toString()}catch{return a}}function Jn(e,t){try{let n=new URL(t);return`${_n(e)}/${n.pathname.replace(/^\//,``)}${n.search}${n.hash}`}catch{return t}}function Yn(e,t){let n=_n(e);return t?vn(t)?t:t.startsWith(`?`)||t.startsWith(`#`)?`${n}${t}`:`${n}${t.startsWith(`/`)?``:`/`}${t}`:n}function Xn(e,t,n,r){let i=e.match;return i?Array.isArray(i)?i.some(i=>Xn({...e,match:i},t,n,r)):typeof i==`function`?!!i({url:t,resourceType:n,intent:r}):i===`*`?!0:Kn(i,t)!==void 0:!0}function Zn(e,t,n,r,i,a){if(e==null)return[];let o=Array.isArray(e)?e:[e],s=[];return o.forEach((e,o)=>{if(!e)return;if(typeof e==`string`){let i=e.includes(`{`)&&e.includes(`}`)?qn(e,t):Jn(e,t);s.push({key:`${n}:${o}`,url:i,source:r});return}if(!bn(e)||!(`rewrite`in e))return;let c=e;if(!Xn(c,t,i,a))return;let l=(typeof c.match==`string`||Array.isArray(c.match))&&Kn(c.match,t)||{},u=typeof c.proxyBase==`string`&&c.proxyBase.trim()?c.proxyBase.trim():void 0;(Array.isArray(c.rewrite)?c.rewrite:[c.rewrite]).filter(Boolean).forEach((e,d)=>{let f=typeof e==`function`?(()=>{let n=e({url:t,proxyBase:u,resourceType:i,intent:a,...l}),r=u&&!vn(n)?Yn(u,n):n;return r.includes(`{`)&&r.includes(`}`)?qn(r,t,l):r})():u?qn(Yn(u,e),t,l):e.includes(`{`)&&e.includes(`}`)?qn(e,t,l):Jn(e,t);s.push({key:`${n}:${c.id||`rule`}:${o}:${d}`,url:f,source:r})})}),xn(s)}function Qn(e,t,n,r){let i=e.match;return i?Array.isArray(i)?i.some(i=>Qn({...e,match:i},t,n,r)):typeof i==`function`?!!i({url:t,method:r,requestType:n}):i===`*`?!0:Kn(i,t)!==void 0:!0}function $n(e,t,n,r=`generic`){if(e==null)return[];let i=Array.isArray(e)?e:[e],a=[];return i.forEach((e,i)=>{if(!e)return;if(typeof e==`string`){let n=e.includes(`{`)&&e.includes(`}`)?qn(e,t):Jn(e,t);a.push({key:`backend:${i}`,url:n,source:`resource`});return}if(!bn(e)||!(`rewrite`in e))return;let o=e;if(!Qn(o,t,r,n))return;let s=(typeof o.match==`string`||Array.isArray(o.match))&&Kn(o.match,t)||{},c=typeof o.proxyBase==`string`&&o.proxyBase.trim()?o.proxyBase.trim():void 0;(Array.isArray(o.rewrite)?o.rewrite:[o.rewrite]).filter(Boolean).forEach((e,l)=>{let u=typeof e==`function`?(()=>{let i=e({url:t,proxyBase:c,method:n,requestType:r,...s}),a=c&&!vn(i)?Yn(c,i):i;return a.includes(`{`)&&a.includes(`}`)?qn(a,t,s):a})():c?qn(Yn(c,e),t,s):e.includes(`{`)&&e.includes(`}`)?qn(e,t,s):Jn(e,t);a.push({key:`backend:${o.id||`rule`}:${i}:${l}`,url:u,source:`resource`})})}),xn(a)}function er(e,t,n){return[e,...n.map(e=>e.url)].join(`|`)}function tr(e,t){if(!e||t.length<2)return t;let n=qt.get(e);if(!n?.activeUrl)return t;let r=t.find(e=>e.url===n.activeUrl);return r?[r,...t.filter(e=>e.url!==n.activeUrl)]:t}function nr(e){e&&Jt.get(e)?.forEach(e=>{try{e()}catch{}})}function rr(e,t){if(!e)return()=>void 0;let n=Jt.get(e)||new Set;return n.add(t),Jt.set(e,n),()=>{let n=Jt.get(e);n&&(n.delete(t),n.size===0&&Jt.delete(e))}}function ir(e,t){if(!e)return!1;let n=qt.get(e);return!!n?.failedUntil&&n.activeUrl===t.url&&n.failedUntil>Date.now()}function ar(e,t){let n=tr(e,t);if(!e||n.length<2)return n;let r=[],i=[];return n.forEach(t=>{ir(e,t)?i.push(t):r.push(t)}),[...r,...i]}function or(e,t){if(!e)return;let n=qt.get(e);qt.set(e,{activeUrl:t.url}),(n?.activeUrl!==t.url||n?.failedUntil)&&nr(e)}function sr(e,t,n,r=!1){if(!e)return;let i=Pn(n,r),a={activeUrl:t.url,failedUntil:Date.now()+i},o=qt.get(e);qt.set(e,a),(o?.activeUrl!==a.activeUrl||o?.failedUntil!==a.failedUntil)&&nr(e)}function cr(e){return en.test(e)||tn.test(e)}function lr(e){return Xt.test(e)||Zt.test(e)}function ur(e){return cr(e)||lr(e)}function dr(e,t){let n=Sn();return n&&e.startsWith(_n(n))?`cdn`:Qt.test(e)||$t.test(e)?`stockImages`:`generic`}function fr(e){try{let t=new URL(e);return/(?:^|\/)wp-json\/em-files\/v\d+(?:\/|$)/i.test(t.pathname)?`emFiles`:/(?:^|\/)wp-json\/ai-generator\/v\d+(?:\/|$)/i.test(t.pathname)?`ai`:`generic`}catch{return`generic`}}function pr(e,t){try{let n=new URL(e),r=new URL(t),i=yn(r.pathname),a=i===``?!0:n.pathname===i||n.pathname.startsWith(`${i}/`);if(n.origin!==r.origin||!a)return null;let o=n.searchParams.get(`url`);if(o)return o;let s=n.searchParams.get(`proxy_url`);if(!s)return null;let c=new URL(s),l=i===``?n.pathname.replace(/^\/+/,``):n.pathname.slice(i.length).replace(/^\/+/,``);return c.pathname=l?`/${l}`:`/`,n.searchParams.forEach((e,t)=>{t===`proxy_url`||t===`url`||c.searchParams.has(t)||c.searchParams.append(t,e)}),n.hash&&!c.hash&&(c.hash=n.hash),c.toString()}catch{return null}}function mr(e,t=[]){return e==null||(Array.isArray(e)?e:[e]).forEach(e=>{if(e){if(typeof e==`string`){let n=e.split(`{`)[0]?.trim();n&&t.push(_n(n));return}!bn(e)||!(`rewrite`in e)||(typeof e.proxyBase==`string`&&e.proxyBase.trim()&&t.push(_n(e.proxyBase.trim())),(Array.isArray(e.rewrite)?e.rewrite:[e.rewrite]).forEach(e=>{if(typeof e!=`string`)return;let n=e.split(`{`)[0]?.trim();n&&t.push(_n(n))}))}}),t}function hr(e,t,n=!1){return En(t,n).flatMap(e=>mr(e)).filter(Boolean).some(t=>t&&e.startsWith(t))}function gr(e,t){return Dn(t).flatMap(e=>mr(e)).filter(Boolean).some(t=>t&&e.startsWith(t))}function _r(e,t,n=!1){let r=En(t,n).flatMap(e=>mr(e)).filter(Boolean);for(let t of r){let n=pr(e,t);if(n)return n}return null}function vr(e,t,n=!1){return hr(e,t,n)}function yr(e,t,n=!1){return _r(e,t,n)||e}function br(e,t,n,r=!1){return!!Tn(n,e,r)&&Ln(e,t,n,r)}function xr(e,t){return!!gn(t)&&zn(e,t)}function Sr(e,t,n,r=!1){if(sn(r)||t===`downloadBlob`)return!1;switch(e){case`stockImages`:return Ln(e,t,n,r);default:return!1}}function Cr(e,t={}){let n=t.config,r=yr(e,n,t.standalone),i=t.resourceType||dr(r,n),a=t.intent||`display`;if(ur(r))return{resourceType:`generic`,intent:a,candidates:[]};let o=br(i,a,n,t.standalone)?Zn(Tn(n,i,t.standalone),r,i,`resource`,i,a):[];return{resourceType:i,intent:a,candidates:o,stabilityKey:o.length?er(i,a,o):void 0}}function wr(e,t={}){let n=t.requestType||fr(e);return xr(n,t.config)?$n(gn(t.config),e,t.method,n):[]}function Tr(e,t={},n){let r=t.intent||n;if(vr(e,t.config,t.standalone)){let n=yr(e,t.config,t.standalone),i=t.resourceType||dr(n,t.config),a={key:`already-proxied`,url:e,source:`direct`};return{chain:{resourceType:i,intent:r,candidates:[a]},candidates:[a]}}let i=yr(e,t.config,t.standalone),a=t.resourceType||dr(i,t.config),o=Sr(a,r,t.config,t.standalone);if(dn(r,o)&&!ur(i)&&!Rn(a,r,t.config,t.standalone)){let e=pn(i,Mn(t.config,t.standalone));if(e){let t={key:`direct-${e.skipReason}`,url:i,source:`direct`};return{chain:{resourceType:a,intent:r,candidates:[t],directShortCircuit:e},candidates:[t]}}}let s=Cr(i,{...t,intent:r,resourceType:a});return{chain:s,candidates:xn([...ar(s.stabilityKey,s.candidates),...o?[]:[{key:`direct`,url:i,source:`direct`}]])}}function Er(e,t,n={},r){let{chain:i,candidates:a}=Tr(e,n,r),o=a.find(e=>e.url===t);return!o||o.source!==`resource`?null:{chain:i,candidate:o}}function Dr(e,t,n={}){let r=Er(e,t,n,`display`);r&&or(r.chain.stabilityKey,r.candidate)}function Or(e,t,n={}){let r=Er(e,t,n,`display`);r&&sr(r.chain.stabilityKey,r.candidate,n.config,n.standalone)}function kr(e,t,n,r=!1){return{src:e,changed:n,exhausted:r,reason:t}}var Ar=class extends Error{final=!0;skipReason;hostname;constructor(e,t){super(`Direct resource fetch failed (${e}: ${t}). ${e===`same-origin`?`The same-origin asset is unreachable; check that the resource exists and is served by the editor origin.`:`Add CORS headers for the editor origin or remove the host from directHosts.`}`),this.name=`DirectResourceFetchError`,this.skipReason=e,this.hostname=t}};function jr(e,t){return new Ar(e,t)}function Mr(e){if(e instanceof Error&&e.name===`AbortError`)return!1;if(e instanceof TypeError)return!0;if(e instanceof Error){if(e.message===`Proxy validation failed`)return!1;if(e.message.startsWith(`Proxy fetch failed with status`))return!0}return!0}function Nr(e,t=!1){let n=Mn(e,t);return{inheritDefaults:n.inheritDefaults,proxySameOrigin:n.proxySameOrigin,directHosts:[...n.directHosts]}}function Pr(e){return e.length>0&&e.every(e=>e.source===`direct`)}function Fr(e,t,n){return e.directShortCircuit?e.directShortCircuit.skipReason:t.length===1&&t[0]?.source===`direct`&&ur(n)?`direct-only-vendor`:null}function Ir(e,t,n){return e.directShortCircuit||n===`direct-only-vendor`||Pr(t)?`direct`:`proxy`}function Lr(e,t={}){let{chain:n,candidates:r}=Tr(e,t,t.intent||`display`),i=n.stabilityKey?qt.get(n.stabilityKey):void 0,a=r[0]?.url||e,o=Fr(n,r,yr(e,t.config,t.standalone)),s=Nr(t.config,t.standalone);return{originalUrl:e,resourceType:n.resourceType,intent:n.intent,stabilityKey:n.stabilityKey,currentSrc:a,runtimeState:i?{...i}:void 0,decision:Ir(n,r,o),skipReason:o,matchedHost:n.directShortCircuit?.matchedHost,policy:s,candidates:r.map(e=>({...e,isCurrent:e.url===a,isFailed:ir(n.stabilityKey,e),failedUntil:i?.activeUrl===e.url?i?.failedUntil:void 0}))}}function Rr(e,t={}){let n=Tr(e,t,`display`),r=n.candidates,i=r[0]?.url||e,a=Math.max(0,r.findIndex(e=>e.url===i)),o=()=>{let o=Tr(e,t,`display`),s=o.candidates,c=s[0]?.url||e;return!c||c===i?(n=o,r=s,a=Math.max(0,s.findIndex(e=>e.url===i)),kr(i,`unchanged`,!1)):(n=o,r=s,i=c,a=Math.max(0,s.findIndex(e=>e.url===i)),kr(i,`runtime-update`,!0))};return{get src(){return i},get stabilityKey(){return n.chain.stabilityKey},handleChangeSrc:()=>o(),handleSuccess:()=>{Dr(e,i,t)},handleError:()=>{Or(e,i,t);let n=o();if(n.changed&&n.src)return n;let s=r[a+1];return!s||s.url===i?kr(null,`exhausted`,!1,!0):(i=s.url,a+=1,kr(i,`candidate-fallback`,!0))},subscribeToSrcChange:e=>rr(n.chain.stabilityKey,()=>{let t=o();t.changed&&e(t)}),getDebugSnapshot:()=>Lr(e,t)}}async function zr(e,t={}){if(vr(e,t.config,t.standalone))return fetch(e,t.init);let n=t.config,{chain:r,candidates:i}=Tr(e,t,t.intent||`downloadBlob`),a;for(let e of i)try{let n=await fetch(e.url,t.init);if(!n.ok)throw Error(`Proxy fetch failed with status ${n.status}`);if(t.validateBlob){let e=await n.clone().blob();if(!await t.validateBlob(e))throw Error(`Proxy validation failed`)}return e.source===`resource`&&or(r.stabilityKey,e),n}catch(i){a=i,e.source===`resource`&&sr(r.stabilityKey,e,n,t.standalone)}throw r.directShortCircuit&&i.length===1&&i[0]?.source===`direct`&&Mr(a)?jr(r.directShortCircuit.skipReason,r.directShortCircuit.matchedHost):a instanceof Error?a:Error(`Failed to fetch resource through proxy chain`)}function Br(e,t={}){return gr(e,t.config)?[e]:wr(e,t).map(e=>e.url)}function Vr(e,t){let n=Sn(),r=t.filter(Boolean).map(e=>String(e).replace(/^\/+|\/+$/g,``));return n?`${_n(n)}/${r.join(`/`)}`:r.join(`/`)}function Hr(e,t){let n=Sn();return!!n&&e.startsWith(_n(n))}var Ur=e=>{let t=new FormData,n=(e,t,r)=>{if(t!=null){if(t instanceof Blob){e.append(r,t);return}if(Array.isArray(t)){t.forEach((t,i)=>{n(e,t,r?`${r}[${i}]`:`${i}`)});return}if(typeof t==`object`){Object.keys(t).forEach(i=>{let a=t[i];n(e,a,r?`${r}[${i}]`:i)});return}e.append(r,String(t))}};return n(t,e),t};function Wr(e){for(;e.endsWith(`/`);)e=e.slice(0,e.length-1);return/\/wp-json$/i.test(e)?e:`${e}/wp-json`}var Gr={baseUrl:Wr(`https://app.emailmaker.ru/api/`),baseApiParams:{secure:!0,credentials:`same-origin`,format:`json`},securityWorker:()=>({credentials:`same-origin`})},Kr=new Map;function qr(e){if(e)return e.getState().configSlice?.config}var Jr=class extends Ct{container;constructor(e={},t){super(e),this.container=t}buildRequestUrl(e){let{path:t,baseUrl:n,extraQuery:r}=e,{query:i}=e;r&&(i=i?{...i,...r}:r);let a=i&&this.toQueryString(i);return`${n||this.baseUrl||``}${t}${a?`?${a}`:``}`}buildRequestKey(e,t){return`${t.toUpperCase()} ${e}`}getBackendProxyCandidates(e,t){let n=Br(e,{config:qr(this.container?.getInstance(ht)),method:t,standalone:this.container?.getInstance(vt)!==void 0}),r=n.length>0?n:[e],i=this.buildRequestKey(e,t),a=Kr.get(i);return!a||!r.includes(a)?r:[a,...r.filter(e=>e!==a)]}shouldRetryResponse(e){return e.status===502||e.status===503||e.status===504}async request(e){let t=this.buildRequestUrl(e),n=e.method||`GET`,r=this.buildRequestKey(t,n),i=this.getBackendProxyCandidates(t,n),a,o;for(let n of i){let s=e=>e===t?n:e;try{let t=await super.request({...e,proxyHandler:s});if(!t.ok&&this.shouldRetryResponse(t)&&n!==i[i.length-1]){o=t,Kr.get(r)===n&&Kr.delete(r);continue}return Kr.set(r,n),t}catch(e){if(a=e,Kr.get(r)===n&&Kr.delete(r),e instanceof DOMException&&e.name===`AbortError`)throw e}}if(o)return o;throw a instanceof Error?a:Error(`Backend proxy chain failed`)}};function Yr(e=Gr){let t=new Map;return{create(n,r){let i=new Jr({...e,...n},r);return i.contentFormatters[`multipart/form-data`]=Ur,t.set(i,{options:n,container:r}),i},getOptions(){return e},setOptions(n){e=n;for(let[n,r]of t)Object.assign(n,{...e,...r.options})}}}var Xr=x();function Zr(e){return e.getOrCreateInstance(Xr,()=>Yr())}function Qr(e,t={}){let n=kt(e)?F(e):e;return Zr(n).create(t,n)}var $r=x(),ei=x(),ti=x(),ni=e=>{e.inject(ti,{execute:async(t,n={})=>{let r=e.getServices($r),i=t instanceof Request?t:new Request(t,n);for(let e of r){let t=await e.execute(i);t instanceof Request&&(i=t)}let a=await fetch(i),o=e.getServices(ei);for(let e of o)a=await e.execute(a);return a}})},ri=e=>{ni(e);let t=e.getInstance(ti);e.inject(wt,Qr(e,{customFetch:t?.execute||fetch}))},ii;(function(e){let t=`https://racs.emcdn.ru/v3`;function n(e,n){let r={method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/json`},body:JSON.stringify(n)};return fetch(`${t}?resource=${e}&dataset=${document.location.hostname}`,r)}e.post=n;async function r(e,n=0){let r={method:`POST`,headers:{"Content-Type":`application/json`,Accept:`application/json`},body:`{"filter":{},"limit":${n}}`};return await(await fetch(`${t}/get?resource=${e}&dataset=${document.location.hostname}`,r)).json()}e.getAll=r})(ii||={});function ai(e){if(typeof e==`object`&&e){let t={};for(let n of Object.keys(e)){let r=e[n];r&&typeof r==`object`?t[n]=ai(r):t[n]=r}return t}return e}function oi(e,t){if(e!==t){if(!e||!t||typeof e!=`object`||typeof t!=`object`)return!1;let n=e instanceof Array,r=t instanceof Array;if(n){if(!r)return!1;let n=e.length;if(t.length!==n)return!1;for(let r=0;r<n;r++)if(!oi(e[r],t[r]))return!1}else if(r)return!1;let i=Object.keys(e),a=Object.keys(t),o=i.length;if(o!==a.length)return!1;for(let n=0;n<o;n++){let r=i[n];if(!t.hasOwnProperty(r)||!oi(e[r],t[r]))return!1}}return!0}var si={text:{fontFamily:[`Safe Fonts`,`-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif`],fontSize:16,fontSizeDim:`px`,lineHeight:21,lineHeightDim:`px`,color:`#5a5a5a`,contrastColor:`#FFFFFF`,textAlign:`left`,paddingBottom:10,paddingBottomDim:`px`},headings:{fontFamily:[`Safe Fonts`,`-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif`],fontSize:24,fontSizeDim:`px`,lineHeight:32,lineHeightDim:`px`,color:`#333333`,contrastColor:`#FFFFFF`,textAlign:`left`,paddingTop:20,paddingTopDim:`px`,paddingBottom:20,paddingBottomDim:`px`,letterSpacing:0,letterSpacingDim:`px`,bold:!0,italic:!1},links:{color:`#1C52DC`,contrastColor:`#FFFFFF`,underline:!0},buttons:{fontFamily:[`Safe Fonts`,`-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif`],fontSize:16,fontSizeDim:`px`,letterSpacing:0,letterSpacingDim:`px`,color:`#FFFFFF`,contrastColor:`#1C52DC`,bold:!1,italic:!1,backgroundColor:`#1C52DC`,contrastBackgroundColor:`#FFFFFF`,marginTop:10,marginTopDim:`px`,marginBottom:10,marginBottomDim:`px`,border:{all:null,top:null,right:null,bottom:null,left:null},borderRadius:{all:5,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null},textAlign:`center`,padding:{all:null,top:null,right:null,bottom:null,left:null}},block:{backgroundColor:`#FFFFFF`,contrastBackgroundColor:`#1C52DC`,padding:{all:null,top:null,right:null,bottom:null,left:null}},cards:{contrastBackgroundColor:`#1C52DC`,contrastTextColor:`#FFFFFF`,baseBackgroundColor:`#F8F8F8`,baseTextColor:`#333333`,border:{all:null,top:null,right:null,bottom:null,left:null},borderRadius:{all:10,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null}}},ci=`ERROR`,li=`useblocks`,ui={isPlugin:!0},di={isEditor:!1},fi={em_token:`em_token`,em_elements_view:`em_elements_view`,em_new_block:`em_new_block`,em_new_email:`em_new_email`,em_id:`em_id`,em_name:`em_name`,em_email:`em_email`,em_locale:`em_locale`,em_carrotquest_hash:`em_carrotquest_hash`,em_ducalis_hash:`em_ducalis_hash`,em_email_subscription_consent:`em_email_subscription_consent`,em_folder:`em_folder`,promocode:`promocode`,em_active_tab:`em_active_tab`},pi={em_color_scheme:`em_color_scheme`,em_code_mode_pane_sizes:`em_code_mode_pane_sizes`,em_preview_pane_sizes:`em_preview_pane_sizes`,em_default_sizes:`em_default_sizes`,em_pane_sizes:`em_pane_sizes`,em_test_emails:`em_test_emails`,em_menu_is_locked:`em_menu_is_locked`,em_code_mode_settings:`em_code_mode_settings`,em_folder_is_open:`em_folder_is_open`,em_active_tab:`em_active_tab`,em_ai_settings:`em_ai_settings`,em_last_active_page:`em_last_active_page`},mi=`deleted`,hi=`not all`,gi=`light`,_i=`dark`,vi=`system`,yi=`(prefers-color-scheme: light)`,bi=`(prefers-color-scheme: dark)`,xi={auth:`/auth`,projects_index:`/`,projects:`/projects`,project:`/projects/:projectId/emails`,email:`/projects/:projectId/emails/:emailId`,create_email:`/projects/:projectId/emails/new`,billing:`/billing`},Si={ADD_NEW_PROJECT_MODAL:`ADD_NEW_PROJECT_MODAL`,EDIT_PROJECT_MODAL:`EDIT_PROJECT_MODAL`,BLOCKS_MODAL:`BLOCKS_MODAL`,EDIT_PROFILE_MODAL:`EDIT_PROFILE_MODAL`,SEND_TEST_EMAIL:`SEND_TEST_EMAIL`,ADD_NEW_EBLOCK_MODAL:`ADD_NEW_EBLOCK_MODAL`,UPDATE_GLOBAL_BLOCKS_MODAL:`UPDATE_GLOBAL_BLOCKS_MODAL`,SAVE_GLOBAL_BLOCK_CHOICE_MODAL:`SAVE_GLOBAL_BLOCK_CHOICE_MODAL`,ADD_NEW_EMAIL_MODAL:`ADD_NEW_EMAIL_MODAL`,ADD_NEW_AI_EMAIL:`ADD_NEW_AI_EMAIL`,SWITCH_TO_PLAN_MODAL:`SWITCH_TO_PLAN_MODAL`,IMAGE_EDITOR_MODAL:`IMAGE_EDITOR_MODAL`,ADD_NEW_FOLDER_MODAL:`ADD_NEW_FOLDER_MODAL`,EDIT_FOLDER_NAME_MODAL:`EDIT_FOLDER_NAME_MODAL`,ADD_NEW_GROUP_MODAL:`ADD_NEW_GROUP_MODAL`,EDIT_GROUP_NAME_MODAL:`EDIT_GROUP_NAME_MODAL`,RENAME_EMAIL_MODAL:`RENAME_EMAIL_MODAL`,RENAME_BLOCK_MODAL:`RENAME_BLOCK_MODAL`,UPLOAD_IMAGE_MODAL:`UPLOAD_IMAGE_MODAL`,UPLOAD_BACKGROUND_MODAL:`UPLOAD_BACKGROUND_MODAL`,UPLOAD_IMAGE_MODAL_AI:`UPLOAD_IMAGE_MODAL_AI`,UPLOAD_BACKGROUND_MODAL_AI:`UPLOAD_BACKGROUND_MODAL_AI`,UPLOAD_IMAGE_MODAL_STOCK:`UPLOAD_IMAGE_MODAL_STOCK`,UPLOAD_BACKGROUND_MODAL_STOCK:`UPLOAD_BACKGROUND_MODAL_STOCK`,UPLOAD_IMAGE_MODAL_GIF:`UPLOAD_IMAGE_MODAL_GIF`,UPLOAD_BACKGROUND_MODAL_GIF:`UPLOAD_BACKGROUND_MODAL_GIF`,UPLOAD_IMAGE_MODAL_EDIT:`UPLOAD_IMAGE_MODAL_EDIT`,UPLOAD_BACKGROUND_MODAL_EDIT:`UPLOAD_BACKGROUND_MODAL_EDIT`,UPLOAD_IMAGE_MODAL_UPLOAD:`UPLOAD_IMAGE_MODAL_UPLOAD`,UPLOAD_BACKGROUND_MODAL_UPLOAD:`UPLOAD_BACKGROUND_MODAL_UPLOAD`},Ci=`application/x-emailmaker-social-reorder`,wi={MESSAGE:`message`,INIT_PREVIEW:`init_preview`,UPDATE_PREVIEW:`update_preview`,UPDATE_EDITOR:`update_editor`,UPDATE_EDITOR_POSITION:`update_editor_position`,UPDATE_SIDE_MENU_EDITOR:`update_side_menu_editor`,SAVE_EMAIL:`saveEmail`,SANDBOX_ELEMENT_SETTINGS_SET:`sandbox_element_settings_set`,SANDBOX_CURRENT_IMAGE_RELOAD:`sandbox_current_image_reload`,SANDBOX_NATIVE_IMAGE_DROP_CLEAR:`sandbox_native-image-drop-clear`,SANDBOX_EMAIL_SETTINGS_SET:`sandbox_email_settings_set`,SANDBOX_BLOCK_SETTINGS_SET:`sandbox_block_settings_set`,SANDBOX_ELEMENT_PARENT_GET:`sandbox_element_parent_get`,SANDBOX_ELEMENT_PARENT_TABLE_GET:`sandbox_element_parent_table_get`,SANDBOX_ELEMENT_PREV_GET:`sandbox_element_prev_get`,SANDBOX_ELEMENT_NEXT_GET:`sandbox_element_next_get`,SANDBOX_ELEMENT_REMOVE:`sandbox_element_remove`,SANDBOX_ELEMENT_ACTIVE_RESET:`sandbox_element_active_reset`,SANDBOX_ELEMENT_ACTIVE_SET:`sandbox_element_active_set`,SANDBOX_ELEMENT_HOVER_SET:`sandbox_element_hover_set`,SANDBOX_ELEMENT_IMG_LINK:`sandbox_element_img_link`,SANDBOX_ELEMENT_TEXT:`sandbox_element_text`,SANDBOX_EMAIL_CONTENT_GET:`sandbox_email_content_get`,SANDBOX_SET_POSITION_TO_IMG:`sandbox_set_position_to_img`,SANDBOX_SET_POSITION_TO_LINK:`sandbox_set_position_to_link`,SANDBOX_ACCORDION_ADD_SECTION:`sandbox_accordion_add_section`,SANDBOX_ACCORDION_REMOVE_SECTION:`sandbox_accordion_remove_section`,APPLICATION_FOCUS_IN_IFRAME:`application_focus_in_iframe`,APPLICATION_EMAIL_SETTINGS_SET:`application_email_settings_set`,APPLICATION_BLOCK_SETTINGS_SET:`application_block_settings_set`,APPLICATION_ELEMENT_SETTINGS_SET:`application_element_settings_set`,_APPLICATION_ELEMENT_SETTINGS_SET:j(`application_element_settings_set`),APPLICATION_ELEMENT_SETTINGS_CLOSE:`application_element_settings_close`,APPLICATION_ACTION:`application_action`,APPLICATION_EBLOCK_ADD:`application_eblock_add`,SANDBOX_EBLOCK_SET_EM_BLOCK_ID:`sandbox_eblock_set_em_block_id`,SANDBOX_GLOBAL_BLOCK_REPLACE:`sandbox_global_block_replace`,APPLICATION_SCROLL_TO:`application_scroll-to`,APPLICATION_SCROLL_BLOCK_SHOW:`application_scroll-block-show`,APPLICATION_SCROLL_BLOCK_HIDE:`application_scroll-block-hide`,APPLICATION_DISCUSS_SET_ID:`application_discuss_set_id`,APPLICATION_DISCUSS_GET_COMMENT:`application_discuss_get_comment`,APPLICATION_DISCUSS_NO_COMMENT:`application_discuss_no_comment`,APPLICATION_DISCUSS_SAVE_TARGET:`application_discuss_save_target`,APPLICATION_IFRAME_SET_HEIGHT:`application_iframe_set_height`,APPLICATION_COMMON_STYLES_UPDATE:`application_commonStyles_update`,APPLICATION_EMAIL_CONTENT_GET:`application_email_content_get`,APPLICATION_OPEN_IMAGE_AI_POPUP:`application_open-image-ai-popup`,APPLICATION_OPEN_IMAGE_UPLOAD_POPUP:`application_open-image-upload-popup`,APPLICATION_OPEN_IMAGE_EDIT_POPUP:`application_open-image-edit-popup`,APPLICATION_OPEN_IMAGE_GIF_POPUP:`application_open-image-gif-popup`,APPLICATION_OPEN_IMAGE_STOCK_POPUP:`application_open-image-stock-popup`,APPLICATION_CLOSE_IMAGE_EDIT_POPUP:`application_close-image-edit-popup`,APPLICATION_NATIVE_IMAGE_DROP:`application_native-image-drop`,APPLICATION_SUBJECT_UPDATE:j(`application_subject_update`),APPLICATION_PREHEADER_UPDATE:j(`application_preheader_update`),APPLICATION_DOMPARSER_ERROR:j(`application_domparser_error`),APPLICATION_UPDATE_ENTITY:j(`application_update_entity`),APPLICATION_IFRAME_DRAG_EVENT:j(`application_iframe_drag_event`),APPLICATION_HAS_AMP:j(`application_has_amp`),APPLICATION_PREVIEW_ALERT_SHOW:`application_preview_alert_show`,APPLICATION_ATOM_INSERTED:j(`application_atom_inserted`),APPLICATION_TEMPLATE_NOT_EM_ALERT_SHOW:`application_template_not_em_alert_show`,SANDBOX_WINDOW_CHARACTERISTIC:`sandbox_window-characteristic`,SANDBOX_IFRAME_SETSIZE:`sandbox_iframe-setsize`,SANDBOX_BLOCK_INSERT:`sandbox_block-insert`,SANDBOX_ATOM_INSERT:`sandbox_atom-insert`,SANDBOX_DRAG_CANCEL:`sandbox_drag-cancel`,UPDATE_EDITOR_POSITION_FROM_EDITOR:`update_position_from_editor`,UPDATE_EDITOR_POSITION_FROM_IFRAME:`update_position_from_iframe`,SANDBOX_CHANGE_PREVIEW:`sandbox_change_preview`,APPLICATION_CHANGE_PREVIEW:`application_change_preview`,SANDBOX_LOCK_EDIT:`sandbox_lock_edit`,SANDBOX_FLOATBLOCK_ADD:`sandbox_floatBlock_add`,SANDBOX_FLOATBLOCK_REMOVE:`sandbox_floatBlock_remove`,EDITOR_CHANGE_FOCUS:`editor_change_focus`,SANDBOX_RESIZED:`sandbox_resized`,SANDBOX_LOCK_DISCUSS:`sandbox_lock_discuss`,SANDBOX_DISCUSS_SET_TARGET:`sandbox_discuss_set_target`,SANDBOX_DISCUSS_REMOVE_TARGET:`sandbox_discuss_remove_target`,SANDBOX_DISCUSS_RESET:`sandbox_discuss_reset`,SANDBOX_DISCUSS_GET_TARGET:`sandbox_discuss_get_target`,SANDBOX_READY:j(`SANDBOX_READY`),SANDBOX_FLOATBLOCK_WRAP:`sandbox_floatblock_wrap`,SANDBOX_FLOATBLOCK_DIR:`sandbox_floatblock_dir`,SANDBOX_SUBJECT_UPDATE:j(`sandbox_subject_update`),SANDBOX_PREHEADER_UPDATE:j(`sandbox_preheader_update`),SANDBOX_DRAG_EVENT:j(`sandbox_drag_event`),SANDBOX_ADD_MERGETAG:j(`sandbox_add_mergetag`),SANDBOX_TRANSLATIONS:j(`sandbox_send_translations`),SANDBOX_SET_THEME_VARIABLES:j(`sandbox_send_theme_variables`),SANDBOX_SET_ENTITY:j(`sandbox_set_entity`),SANDBOX_INIT_START:j(`sandbox_init_start`),SANDBOX_INITED:j(`sandbox_inited`),SANDBOX_UPDATE_ENTITY:j(`sandbox_update_entity`),RELOAD:j(`reload`),SANDBOX_ADD_EXTENSIONS:j(`sandbox_add_extensions`),SANDBOX_REMOVE_EXTENSIONS:j(`sandbox_remove_extensions`),SANDBOX_ADD_SCRIPT:j(`sandbox_add_script`),SANDBOX_IS_EMAIL_EMPTY:j(`sandbox_is_email_empty`),SANDBOX_SWITCH_THEME:j(`sandbox_switch_theme`)},Ti={language:`html`,detectIndentation:!1,wordWrap:`on`,wrappingIndent:`same`,smoothScrolling:!0,automaticLayout:!0,tabSize:2,indentSize:2},Ei=function(e){return e.IMG=`img`,e.TEXT=`text`,e.LINK=`a`,e.TABLE=`table`,e.VINDENT=`vindent`,e.TD=`td`,e.STRUCTURE=`structure`,e.GROUP=`group`,e.BUTTON=`button`,e.DIV=`div`,e.FLOAT_BLOCK=`floatBlock`,e.VAR=`var`,e.EMPTY_TABLE=`emptyTable`,e.EMPTY_TD=`emptyTd`,e.COUNTDOWN=`countdown`,e.VIDEO=`video`,e.COLUMN=`column`,e.CAROUSEL=`carousel`,e.ACCORDION=`accordion`,e.CUSTOM_TABLE=`customTable`,e.SOCIAL=`social`,e}({}),Di={ALL:`All`,STANDARD:`Standard`,PROJECT:`Project`},Oi=`Appearance`,ki=`Structure`,Ai=`Settings`,ji=`Properties`,Mi=`History`,Ni=`Disabled_tab`,Pi=`Edit selected element`,Fi=`UTM parameters`,Ii=`Table properties`,Li=`Edit selected table cells`,Ri=`#b9b1b1`,zi=`Edit`,Bi=`AiChat`,Vi=`Build`,Hi=`Styles`,Ui=`Discuss`,Wi=`Blocks`,Gi=`Atoms`,Ki=`Optimise`,qi={top:{width:null,style:null,color:null},right:{width:null,style:null,color:null},bottom:{width:null,style:null,color:null},left:{width:null,style:null,color:null},all:{width:null,style:null,color:null}},Ji=`block`,Yi=`email`,Xi=`cards`,Zi=`list`,Qi=`pending`,$i=`d41d8`,ea=`valid`,ta=`warnings`,na=`errors`,ra={LINKS:`Links`,IMAGES:`Images`,SPAM_ASSASSIN:`Spam assassin`,PROBLEMS:`Problems`},ia=`1865`,aa=127017,oa=`desktop`,sa=`mobile`,ca=`emailtags`,la=`blocktags`,ua=e=>({REORDER_ATOM:e(`Reorder element`),CLONE_ATOM:e(`Clone element`),REMOVE_ATOM:e(`Remove element`),EDIT_ATOM:e(`Edit element`),CHANGE_IMAGE:e(`Change image`),REORDER_BLOCK:e(`Reorder block`),REORDER_BLOCK_UP:e(`Move up`),REORDER_BLOCK_DOWN:e(`Move down`),EDIT_BLOCK:e(`Edit block`),CLONE_BLOCK:e(`Clone block`),MERGE_BLOCK:e(`Merge with the chosen block`),UNMERGE_BLOCK:e(`Split blocks`),COPY_BLOCK_TO_CLIPBOARD:e(`Copy block to clipboard`),PASTE_BLOCK_FROM_CLIPBOARD:e(`Paste block from clipboard`),REMOVE_BLOCK:e(`Remove block`),SAVE_TO_BLOCKS:e(`Save to Blocks`),UPDATE_GLOBAL_BLOCK_IN_TEMPLATES:e(`Push block update to all templates`),ADD_BLOCK:e(`Add block`),ADD_EMPTY_BLOCK:e(`Add an empty block`),ADD_SAVED_BLOCK:e(`Add a saved block`),ADD_COMMON_BLOCK:e(`Add a common block`),ADD_TEMPLATE_BLOCK:e(`Add a template block`),ADD_SEARCH_BLOCK:e(`Search a block`),REORDER_GROUP:e(`Reorder group`),EDIT_GROUP:e(`Edit group`),CLONE_GROUP:e(`Clone group`),REMOVE_GROUP:e(`Remove group`),ADD_GROUP:e(`Add group`),LINK:e(`link`),TABLE_COLUMN:e(`cell`),TABLE:e(`table`),FLOAT_BLOCK:e(`column`),CONTAINER:e(`container`),PICTURE:e(`picture`),CAROUSEL:e(`carousel`),ACCORDION:e(`accordion`),SOCIAL:e(`Social media`),VERTICAL_INDENT:e(`indent`),TEXT:e(`text`),BUTTON:e(`button`),VAR:e(`variable`),STRUCTURE:e(`block`),EMAIL:e(`email`),GROUP:e(`group`),TYPOGRAF:e(`Typograf`),COUNTDOWN:e(`countdown`),ELEMENT:e(`element`),VIDEO:e(`video`),ELEMENT_PATH_LINK:e(`Link`),ELEMENT_PATH_BLOCK:e(`Block`),ELEMENT_PATH_ATOM:e(`Element`),ELEMENT_PATH_TD:e(`Cell`),ELEMENT_PATH_TABLE:e(`Table`),ELEMENT_PATH_FLOATBLOCK:e(`Column`),ELEMENT_PATH_TEXT:e(`Text`),ELEMENT_PATH_DIV:e(`Container`),ELEMENT_PATH_GROUP:e(`Group`),ELEMENT_PATH_EMAIL:e(`Email`),ELEMENT_PATH_IMG:e(`Picture`),ELEMENT_PATH_VINDENT:e(`Indent`),ELEMENT_PATH_BUTTON:e(`Button`),ELEMENT_PATH_CAROUSEL:e(`Carousel`),ELEMENT_PATH_ACCORDION:e(`Accordion`),ELEMENT_PATH_SOCIAL:e(`Social media`),ELEMENT_PATH_SECTION:e(`Section`),TINYMCE_CHANGECASE:e(`Case Change`),TINYMCE_UPPERCASE:e(`Uppercase`),TINYMCE_LOWERCASE:e(`Lowercase`),PASTE_HERE:e(`Drop here`),INSERT_COLUMN_BEFORE_TABLE:e(`Insert column before`),INSERT_COLUMN_AFTER_TABLE:e(`Insert column after`),INSERT_ROW_BEFORE_TABLE:e(`Insert row before`),INSERT_ROW_AFTER_TABLE:e(`Insert row after`),MERGE_RIGHT_CELL_TABLE:e(`Merge right cell`),MERGE_LEFT_CELL_TABLE:e(`Merge left cell`),MERGE_TOP_CELL_TABLE:e(`Merge top cell`),MERGE_BOTTOM_CELL_TABLE:e(`Merge bottom cell`),SPLIT_CELL_TABLE:e(`Split cell`),REMOVE_COLUMN_TABLE:e(`Remove column`),REMOVE_ROW_TABLE:e(`Remove row`),DROP_BLOCK_HINT:e(`Click or drag a block`)}),da={Applications:`Apps`,Articles:`Article`,Banners:`Banners`,Buttons:`Buttons`,"Call to Action":`Call to Action`,Contacts:`Contacts`,Content:`Content`,"E-Commerce":`E-Commerce`,Feature:`Features`,Footer:`Footers`,Header:`Headers`,Lists:`Lists`,Menu:`Menus`,Other:`Others`,Polls:`Polls`,Promocodes:`Promocodes`,Separators:`Separators`},fa={maker:`https://ai-mail.emcdn.ru`,blocks:`https://ai-mail.useblocks.io`},pa=`
2
2
  <svg width="176" height="26" viewBox="0 0 1011 140" xmlns="http://www.w3.org/2000/svg">
3
3
  <path d="M439.573 130.401V5.63195H464.743V130.401H439.573Z" fill="currentColor"/>
4
4
  <path d="M389.906 130.401V42.8892H415.077V130.401H389.906ZM402.492 29.026C398.297 29.026 394.676 27.7264 391.63 25.127C388.585 22.4699 387.062 18.9464 387.062 14.5563C387.062 10.1086 388.585 6.58501 391.63 3.98566C394.676 1.32855 398.297 0 402.492 0C406.687 0 410.307 1.32855 413.353 3.98566C416.399 6.58501 417.922 10.1086 417.922 14.5563C417.922 18.9464 416.399 22.4699 413.353 25.127C410.307 27.7264 406.687 29.026 402.492 29.026Z" fill="currentColor"/>
@@ -26,7 +26,7 @@ The error may be correlated with this previous error:
26
26
  `,`
27
27
  `)===t.replaceAll(`\r
28
28
  `,`
29
- `)}var _d=new class{pageLoadTs;polls=new Map;processedEmails=new Set;constructor(e=hd()){this.pageLoadTs=e}onAutoSaveStarted(e,t){ud(e,t)}onAutoSaveCompleted(e){}onHistoryFetched(e,t,n,r,i=!1,a=null){let o=md(t),s=this.polls.get(e);if(s&&(s.triggerRefetch=r,s.dispatch=n),i&&s?.phase===`fast`){o&&pd(o,s.pending.sentAt)&&(fd(e),this.cancelPolling(e),n(Vu({emailId:e,payload:o,phase:`found`})),this.processedEmails.add(e));return}if(i&&s?.phase===`bg`){o&&pd(o,s.pending.sentAt)&&(fd(e),this.cancelPolling(e),n(Vu({emailId:e,payload:o,phase:`bg`})));return}if(this.processedEmails.has(e))return;let c=i?dd(e):null,l=c&&(c.sentAt<this.pageLoadTs||!gd(c.html,a))?c:null;l?o&&pd(o,l.sentAt)?(fd(e),n(Vu({emailId:e,payload:o,phase:`found`})),this.processedEmails.add(e)):this.startFastPoll(e,l,n,r):(o?.slug?.includes(`autosave`)?n(Vu({emailId:e,payload:o,phase:`normal`})):n(Wu(e)),this.processedEmails.add(e))}cancelPolling(e){let t=this.polls.get(e);t?.timer&&clearTimeout(t.timer),t&&t.dispatch(Uu(!1)),this.polls.delete(e),this.processedEmails.delete(e)}startFastPoll(e,t,n,r){n(Uu(!0));let i={phase:`fast`,attempts:0,pending:t,timer:null,triggerRefetch:r,dispatch:n};this.polls.set(e,i),this.scheduleNextPoll(e)}scheduleNextPoll(e){let t=this.polls.get(e);if(!t)return;let n=t.phase===`fast`,r=n?rd:ad,i=n?id:od;t.timer=setTimeout(()=>{let t=this.polls.get(e);if(t)if(t.attempts++,t.triggerRefetch(),n&&t.attempts>=i){let{pending:n,dispatch:r}=t;fd(e),r(Uu(!1)),r(Vu({emailId:e,payload:{html:n.html,common_styles:n.common_styles,subject:n.subject,preheader:n.preheader},phase:`timeout`})),this.processedEmails.add(e),t.phase=`bg`,t.attempts=0,this.scheduleNextPoll(e)}else !n&&t.attempts>=i?(fd(e),this.cancelPolling(e)):this.scheduleNextPoll(e)},r)}},vd={pro:{config:{mode:`pro`,autosaveTimeout:5e3,autosaveRetryMaxAttempts:5,autosaveRetryIntervalMs:3e4,theme:``,themes:{},mergeTagsShow:!0,styles:``,revisionService:!1,headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!0,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!0,webversionEnabled:!0,commonStylesEnabled:!0,emailResponsiveControlEnabled:!0,templateNotEmAlertShow:!1,emailDropdownMenuEnabled:!0,emailDropdownMenuClone:!0,emailDropdownMenuImport:!0,emailDropdownMenuImportButton:!1,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,exportHtmlEnabled:!0,exportZipEnabled:!0,exportTextEnabled:!0,exportClipboardEnabled:!0,exportWebHookEnabled:!0,exportOutlookEnabled:!0,exportPdfEnabled:!0,exportPngEnabled:!0,nextButtonEnabled:!1,nextButtonText:``,saveButtonEnabled:!0,saveButtonText:``,commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!0,saveBlockEnabled:!0,globalBlockCheckboxEnabled:!1,editImageControlEnabled:!0,lockEditor:!1,lockPreheaderAndTitle:!1,disableSideMenu:!1,menuDirection:`right`,defaultBuildPanel:``,commentsEnabled:!0,aiAssistentEnabled:!0,optimizeEnabled:!0,optimizeLinksEnabled:!0,optimizeImagesEnabled:!0,optimizeSpamAssassinEnabled:!0,optimizeCheckCodeEnabled:!0,settingsEnabled:!0,UTMEnabled:!0,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!0,tagsEnabled:!0,isTemplateEnabled:!0,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!0,deleteButtonEnabled:!0,toggleSidePanel:!0,blocksSectionsShow:!0,blocksEmptyEnabled:!0,blocksSavedEnabled:!0,blocksCommonEnabled:!0,blocksTemplateEnabled:!0,blocksSearchEnabled:!0,blocksAddPanelEnabled:!0,imagePathDropdownEnabled:!0,formFieldImageTitleEnabled:!0,formFieldBorderEnabled:!0,formFieldBorderRadiusEnabled:!0,formFieldBoxShadowEnabled:!0,formFieldVisibilityEnabled:!0,formFieldExportAsPictureEnabled:!0,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!0,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!0,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!0,formButtonFieldReplacerEnabled:!0,formCellFieldVerticalAlignEnabled:!0,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!0,formCellFieldSizeEnabled:!0,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formImageFieldVerticalAlignEnabled:!0,formImageFieldReplacerEnabled:!0,formImageFieldHeightEnabled:!0,formTextFieldTypografEnabled:!0,formTextFieldReplacerEnabled:!0,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!0,elementCountdownEnabled:!0,elementVideoEnabled:!0,elementAIimageEnabled:!0,elementAItextEnabled:!0,elementCarouselEnabled:!0,elementAccordionEnabled:!0,elementFormEnabled:!1,preventSendDataToEM:!1,imageInfoToolUrl:``,resourceProxy:void 0,resourceProxyPolicy:void 0,imageCenterFileManagerView:!0,imageCenterLocalUploadEnabled:!0,imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterIconStockEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:1,compressMaxWidthOrHeight:2e3,ampExportEnabled:!0,formFieldAmpVisibilityEnabled:!0,testEmails:[],pushToGTM:!0,activeNextButton:!0,iconStrokeWidth:1.4,fileManager:{defaultFolderName:``,enableMoveFolder:!0,enableEdit:!0,enableTrash:!0,enableCopyFile:!0}},project:void 0,page:{isNew:!0,type:`email`,project:0,id:``,showToken:0}},editor:{config:{mode:`editor`,autosaveTimeout:5e3,autosaveRetryMaxAttempts:5,autosaveRetryIntervalMs:3e4,theme:``,themes:{},mergeTagsShow:!1,styles:``,headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!1,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!1,webversionEnabled:!1,commonStylesEnabled:!1,emailResponsiveControlEnabled:!1,templateNotEmAlertShow:!1,emailDropdownMenuEnabled:!1,emailDropdownMenuClone:!0,emailDropdownMenuImport:!1,emailDropdownMenuImportButton:!1,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,exportHtmlEnabled:!0,exportTextEnabled:!1,exportZipEnabled:!0,exportClipboardEnabled:!1,exportWebHookEnabled:!1,exportOutlookEnabled:!0,exportPdfEnabled:!0,exportPngEnabled:!0,nextButtonEnabled:!1,nextButtonText:``,saveButtonEnabled:!0,saveButtonText:``,commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!1,saveBlockEnabled:!0,globalBlockCheckboxEnabled:!1,editImageControlEnabled:!0,lockEditor:!1,lockPreheaderAndTitle:!1,disableSideMenu:!1,menuDirection:`right`,defaultBuildPanel:``,commentsEnabled:!1,aiAssistentEnabled:!1,optimizeEnabled:!1,optimizeLinksEnabled:!0,optimizeImagesEnabled:!0,optimizeSpamAssassinEnabled:!0,optimizeCheckCodeEnabled:!0,settingsEnabled:!0,UTMEnabled:!1,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!1,tagsEnabled:!0,isTemplateEnabled:!1,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!1,deleteButtonEnabled:!0,toggleSidePanel:!1,blocksSectionsShow:!0,blocksEmptyEnabled:!0,blocksSavedEnabled:!0,blocksCommonEnabled:!0,blocksTemplateEnabled:!0,blocksSearchEnabled:!0,blocksAddPanelEnabled:!0,imagePathDropdownEnabled:!1,formFieldImageTitleEnabled:!1,formFieldBorderEnabled:!1,formFieldBorderRadiusEnabled:!1,formFieldBoxShadowEnabled:!1,formFieldVisibilityEnabled:!1,formFieldExportAsPictureEnabled:!1,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!1,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!1,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!1,formButtonFieldReplacerEnabled:!1,formCellFieldVerticalAlignEnabled:!1,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!0,formCellFieldSizeEnabled:!1,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formImageFieldVerticalAlignEnabled:!1,formImageFieldReplacerEnabled:!1,formImageFieldHeightEnabled:!1,formTextFieldTypografEnabled:!1,formTextFieldReplacerEnabled:!1,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!0,elementCountdownEnabled:!0,elementVideoEnabled:!1,elementAIimageEnabled:!0,elementAItextEnabled:!1,elementCarouselEnabled:!1,elementAccordionEnabled:!1,elementFormEnabled:!1,preventSendDataToEM:!1,imageInfoToolUrl:``,resourceProxy:void 0,resourceProxyPolicy:void 0,imageCenterFileManagerView:!0,imageCenterLocalUploadEnabled:!0,imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterIconStockEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:1,compressMaxWidthOrHeight:2e3,ampExportEnabled:!1,formFieldAmpVisibilityEnabled:!1,testEmails:[],pushToGTM:!0,activeNextButton:!0,iconStrokeWidth:1.4},project:void 0,page:{isNew:!1,type:`email`,project:0,id:``,showToken:0}},simple:{config:{mode:`simple`,autosaveTimeout:5e3,autosaveRetryMaxAttempts:5,autosaveRetryIntervalMs:3e4,theme:``,themes:{},mergeTagsShow:!1,styles:``,headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!0,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!0,webversionEnabled:!1,commonStylesEnabled:!1,emailResponsiveControlEnabled:!1,templateNotEmAlertShow:!1,emailDropdownMenuEnabled:!0,emailDropdownMenuClone:!0,emailDropdownMenuImport:!0,emailDropdownMenuImportButton:!1,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,exportHtmlEnabled:!0,exportZipEnabled:!0,exportTextEnabled:!0,exportClipboardEnabled:!0,exportWebHookEnabled:!0,exportOutlookEnabled:!1,exportPdfEnabled:!0,exportPngEnabled:!0,nextButtonEnabled:!1,nextButtonText:``,saveButtonEnabled:!0,saveButtonText:``,commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!0,saveBlockEnabled:!0,globalBlockCheckboxEnabled:!1,editImageControlEnabled:!0,lockEditor:!1,lockPreheaderAndTitle:!1,disableSideMenu:!1,menuDirection:`right`,defaultBuildPanel:``,commentsEnabled:!0,aiAssistentEnabled:!0,optimizeEnabled:!0,optimizeLinksEnabled:!0,optimizeImagesEnabled:!0,optimizeSpamAssassinEnabled:!0,optimizeCheckCodeEnabled:!0,settingsEnabled:!0,UTMEnabled:!1,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!0,tagsEnabled:!0,isTemplateEnabled:!0,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!0,deleteButtonEnabled:!0,toggleSidePanel:!0,blocksSectionsShow:!0,blocksEmptyEnabled:!0,blocksSavedEnabled:!0,blocksCommonEnabled:!0,blocksTemplateEnabled:!0,blocksSearchEnabled:!0,blocksAddPanelEnabled:!0,imagePathDropdownEnabled:!0,formFieldImageTitleEnabled:!0,formFieldBorderEnabled:!1,formFieldBorderRadiusEnabled:!1,formFieldBoxShadowEnabled:!1,formFieldVisibilityEnabled:!1,formFieldExportAsPictureEnabled:!1,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!0,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!0,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!0,formButtonFieldReplacerEnabled:!1,formCellFieldVerticalAlignEnabled:!0,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!0,formCellFieldSizeEnabled:!1,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formImageFieldVerticalAlignEnabled:!1,formImageFieldReplacerEnabled:!1,formImageFieldHeightEnabled:!1,formTextFieldTypografEnabled:!1,formTextFieldReplacerEnabled:!1,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!1,elementCountdownEnabled:!1,elementVideoEnabled:!1,elementAIimageEnabled:!0,elementAItextEnabled:!1,elementCarouselEnabled:!1,elementAccordionEnabled:!1,elementFormEnabled:!1,preventSendDataToEM:!1,imageInfoToolUrl:``,resourceProxy:void 0,resourceProxyPolicy:void 0,imageCenterFileManagerView:!1,imageCenterLocalUploadEnabled:!0,imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterIconStockEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:1,compressMaxWidthOrHeight:2e3,ampExportEnabled:!1,formFieldAmpVisibilityEnabled:!1,testEmails:[],pushToGTM:!0,activeNextButton:!0,iconStrokeWidth:1.4,fileManager:{defaultFolderName:``,enableMoveFolder:!0,enableEdit:!0,enableTrash:!0}},project:void 0,page:{isNew:!1,type:`email`,project:0,id:``,showToken:0}},blocks:{config:{mode:`freeUserBlocks`,autosaveTimeout:5e3,autosaveRetryMaxAttempts:5,autosaveRetryIntervalMs:3e4,theme:``,themes:{},mergeTagsShow:!0,styles:``,revisionService:!1,headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!0,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!0,webversionEnabled:!0,commonStylesEnabled:!0,emailResponsiveControlEnabled:!0,templateNotEmAlertShow:!1,emailDropdownMenuEnabled:!0,emailDropdownMenuClone:!0,emailDropdownMenuImport:!0,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,exportHtmlEnabled:!0,exportZipEnabled:!0,exportTextEnabled:!0,exportClipboardEnabled:!0,exportWebHookEnabled:!0,exportOutlookEnabled:!0,exportPdfEnabled:!0,exportPngEnabled:!0,nextButtonEnabled:!1,nextButtonText:``,saveButtonEnabled:!0,saveButtonText:``,commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!0,saveBlockEnabled:!0,globalBlockCheckboxEnabled:!1,editImageControlEnabled:!0,lockEditor:!1,lockPreheaderAndTitle:!1,disableSideMenu:!1,menuDirection:`right`,defaultBuildPanel:``,commentsEnabled:!0,aiAssistentEnabled:!0,optimizeEnabled:!0,optimizeLinksEnabled:!0,optimizeImagesEnabled:!0,optimizeSpamAssassinEnabled:!0,optimizeCheckCodeEnabled:!0,settingsEnabled:!0,UTMEnabled:!0,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!0,tagsEnabled:!0,isTemplateEnabled:!0,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!0,deleteButtonEnabled:!0,toggleSidePanel:!0,blocksSectionsShow:!0,blocksEmptyEnabled:!0,blocksSavedEnabled:!0,blocksCommonEnabled:!0,blocksTemplateEnabled:!0,blocksSearchEnabled:!0,blocksAddPanelEnabled:!0,imagePathDropdownEnabled:!0,formFieldImageTitleEnabled:!0,formFieldBorderEnabled:!0,formFieldBorderRadiusEnabled:!0,formFieldBoxShadowEnabled:!0,formFieldVisibilityEnabled:!0,formFieldExportAsPictureEnabled:!0,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!0,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!0,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!0,formCellFieldVerticalAlignEnabled:!0,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!0,formCellFieldSizeEnabled:!0,formButtonFieldReplacerEnabled:!0,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formImageFieldVerticalAlignEnabled:!0,formImageFieldReplacerEnabled:!0,formImageFieldHeightEnabled:!0,formTextFieldTypografEnabled:!0,formTextFieldReplacerEnabled:!0,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!1,elementCountdownEnabled:!0,elementVideoEnabled:!0,elementAIimageEnabled:!0,elementAItextEnabled:!0,elementCarouselEnabled:!0,elementAccordionEnabled:!0,elementFormEnabled:!1,preventSendDataToEM:!1,imageInfoToolUrl:``,resourceProxy:void 0,resourceProxyPolicy:void 0,imageCenterFileManagerView:!1,imageCenterLocalUploadEnabled:!0,imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterIconStockEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:1,compressMaxWidthOrHeight:2e3,ampExportEnabled:!0,formFieldAmpVisibilityEnabled:!0,testEmails:[],pushToGTM:!0,activeNextButton:!0,iconStrokeWidth:1.4},project:void 0,page:{isNew:!0,type:`email`,project:0,id:``,showToken:0}}},yd=e=>vd[e]||vd.editor;function bd({id:e,type:t,title:n,excerpt:r,author:i,acf:{subject:a,description:o,html:s,project:c,related_email:l,tags:u,type:d,is_template:f,global_block:p,lock:m},...h}){return{...h,id:String(e),author:String(i),renderGuid:b(),description:o,html:s,excerpt:wu(n),project:J(c)?c.ID:c,project_author:J(c)?c.post_author:void 0,project_title:J(c)?c.post_title:void 0,tags:u,is_template:f,global_block:p,type:d,related_email:X(J(l)?l.ID:l),title:wu(n)||``,lock:m}}function xd({title:e,subject:t,description:n,renderGuid:r,html:i,project:a,tags:o,type:s,related_email:c,is_template:l,global_block:u,lock:d,author:f,...p}){return{...p,author:Y(f),title:e,acf:{description:n,related_email:Y(c),html:i,project:a,tags:o,type:s,is_template:l,...typeof u==`boolean`?{global_block:u}:{},lock:d}}}function Sd({id:e,title:t,acf:{html:n},excerpt:r,parent:i,author:a,...o}){return{...o,id:X(e),author:X(a),parent:X(i),title:wu(t)||``,html:n,excerpt:J(r)?r.rendered:r}}function Cd({parent:e,title:t,html:n,project:r,author:i,...a}){return{...a,author:Y(i),parent:Y(e),title:wu(t),"acf[html]":n,"acf[project]":J(r)?r.id||r.ID:r}}var wd=eu({reducerPath:`blocksApi`,tagTypes:[`Blocks`,`TemplatesBlocks`,`ParentsBlocks`,`Block`],baseQuery:xu({baseUrl:`https://app.emailmaker.ru/api/wp-json/wp/v2/`}),endpoints:e=>({getBlocks:e.query({queryFn(e,t){let n=q(t),r={order:`desc`,orderby:`modified`},i={};if(e.notEmbed||(i._embed=``),e.projectId&&(i._embed=`author`,i._fields=`id,title,blocktags,blockfolder,group,modified,date,type,acf.lock,acf.project.ID,acf.type,author,acf.is_template,acf.global_block,acf.html,_embedded`,r[`filter[meta_key]`]=`project`,r[`filter[meta_value]`]=e.projectId),e.fields&&(i._fields=e.fields),e.page&&(r.page=e.page),e.order&&(r.order=e.order),e.orderby&&(r.orderby=e.orderby),e.folderTag&&e.folderTag!==`all`?(r[`filter[tax_query][relation]`]=`AND`,r[`filter[tax_query][0][taxonomy]`]=`blockfolder`,r[`filter[tax_query][0][field]`]=`id`,r[`filter[tax_query][0][terms]`]=e.folderTag,r[`filter[tax_query][0][include_children]`]=`0`):e.hasOwnProperty(`folderTag`)&&(e.folderTag!==`all`||typeof e.folderTag==`object`&&e.folderTag===null)&&!e.tags?.length&&e.status&&e.status!==`trash`&&(r[`filter[tax_query][0][taxonomy]`]=`blockfolder`,r[`filter[tax_query][0][operator]`]=`NOT EXISTS`),e.tags?.length>0&&e.status!==`trash`){r[`filter[tax_query][relation]`]=`AND`;for(let t=0,n=e.tags.length;t<n;t++){let n=e.tags[t];r[`filter[tax_query][${t+1}][taxonomy]`]=`blocktags`,r[`filter[tax_query][${t+1}][field]`]=`id`,r[`filter[tax_query][${t+1}][terms]`]=n}}return e.type&&(r[`filter[meta_query][2][key]`]=`type`,r[`filter[meta_query][2][value]`]=e.type),e.name&&(r.search=e.name),e.pageSize&&(r.per_page=e.pageSize),e.status===`trash`&&(i.status=`trash`),n.wp.eblock_list(r,{extraQuery:i}).then(Q(bd))},providesTags:e=>e?[...e.map(({id:e})=>({type:`Blocks`,id:e})),{type:`Blocks`,id:`LIST`}]:[{type:`Blocks`,id:`LIST`}],keepUnusedDataFor:0}),getBlocksSchema:e.query({queryFn(e,t){return q(t).wp.eblock_list(void 0,{method:`OPTIONS`,extraQuery:{_fields:`schema.properties.acf`}})}}),getParentEmailBlocks:e.query({queryFn(e,t){let n=q(t),r={"filter[meta_query][0][compare]":`LIKE`},i={};if(e.notEmbed||(i._embed=``),e.emailId&&(r[`filter[meta_query][0][key]`]=`related_email`,r[`filter[meta_query][0][value]`]=e.emailId),e.fields&&(i._fields=e.fields),e.page&&(r.page=e.page),e.tags?.length>0){r[`filter[tax_query][relation]`]=`AND`;for(let t=0,n=e.tags.length;t<n;t++){let n=e.tags[t];r[`filter[tax_query][${t}][taxonomy]`]=`blocktags`,r[`filter[tax_query][${t}][field]`]=`id`,r[`filter[tax_query][${t}][terms]`]=n}}return e.type&&(r[`filter[meta_query][2][key]`]=`type`,r[`filter[meta_query][2][value]`]=e.type),e.name&&(r.search=e.name),e.pageSize&&(r.per_page=e.pageSize),n.wp.eblock_list(r,{extraQuery:i}).then(Q(bd))},providesTags:e=>e?[...e.map(({id:e})=>({type:`ParentsBlocks`,id:e})),{type:`ParentsBlocks`,id:`LIST`}]:[{type:`ParentsBlocks`,id:`LIST`}],keepUnusedDataFor:0}),getTemplateBlocks:e.query({queryFn:(e,t)=>{let n=q(t),r={"filter[meta_query][1][key]":`is_template`,"filter[meta_query][1][value]":`1`,orderby:`modified`,order:`desc`},i={};if(e.notEmbed||(i._embed=``),e.fields&&(i._fields=e.fields),e.page&&(r.page=e.page),e.tags?.length>0){r[`filter[tax_query][relation]`]=`AND`;for(let t=0,n=e.tags.length;t<n;t++){let n=e.tags[t];r[`filter[tax_query][${t}][taxonomy]`]=`blocktags`,r[`filter[tax_query][${t}][field]`]=`id`,r[`filter[tax_query][${t}][terms]`]=n}}return e.type&&(r[`filter[meta_query][2][key]`]=`type`,r[`filter[meta_query][2][value]`]=e.type),e.name&&(r.search=e.name),e.pageSize&&(r.per_page=e.pageSize),n.wp.eblock_list(r,{extraQuery:i}).then(Q(bd))},providesTags:e=>e?[...e.map(({id:e})=>({type:`TemplatesBlocks`,id:e})),{type:`TemplatesBlocks`,id:`LIST`}]:[{type:`TemplatesBlocks`,id:`LIST`}],keepUnusedDataFor:0}),getBlock:e.query({queryFn(e,t){return q(t).wp.eblock_detail({id:Y(e)},{extraQuery:{_embed:``}}).then(Z(bd))},providesTags:(e,t,n)=>[{type:`Block`,id:n}],keepUnusedDataFor:0}),getBlockHistory:e.query({queryFn({blockId:e,page:t=1},n){return q(n).wp.eblock_revisions_list({parent:e,per_page:20,page:t},{extraQuery:{_fields:`author,slug,date,modified,title,acf.html,acf.common_styles,id`}}).then(n=>Pu(n,(n,r)=>({data:n.filter(e=>e.acf.html).map(e=>({...e,acf:{...e.acf,html:e.acf.html}})).map(Sd),totalPages:+r.response.headers.get(`X-WP-TotalPages`),args:{blockId:e,page:t}})))},keepUnusedDataFor:0}),addBlock:e.mutation({queryFn(e,t){return q(t).wp.eblock_create({...xd(e),status:`publish`},{type:P.Json}).then(Z(bd))},invalidatesTags:[{type:`Blocks`,id:`LIST`}]}),editBlock:e.mutation({queryFn:Ru(e=>({blockId:t,source:n,...r},i)=>{let a=q(e),o=Cu(xd(r));return a.wp.eblock_partial_update({id:t},o,{type:P.Json,extraQuery:{_embed:`wp:term`}}).then(Z(bd))})}),deleteBlock:e.mutation({queryFn(e,t){let n=q(t),r,i;return typeof e==`object`?(r=e.id,i=e.force):(r=e,i=!1),n.wp.eblock_delete({id:r},{force:i}).then(Lu(bd))},invalidatesTags:(e,t,n)=>[{type:`Blocks`,id:n}]}),addTag:e.mutation({queryFn(e,t){return q(t).wp.blocktags_create({...e},{type:P.Json})}}),getDeletableTag:e.query({queryFn([e,t],n){return q(n).wp.eblock_list({status:[`private`],"filter[meta_key]":`project`,"filter[meta_value]":e,blocktags:[t]},{extraQuery:{"_fields[]":`blocktags`}}).then(Q(bd))}}),autoSaveBlock:e.mutation({queryFn({blockId:e,body:t},n){let r=q(n),i=Cd(t);return r.wp.eblock_autosaves_create({id:e},i,{type:P.FormData}).then(Z(Sd))}})})}),{useGetBlocksQuery:Td,useGetBlockQuery:Ed,useLazyGetBlockQuery:Dd,useGetBlockHistoryQuery:Od,useLazyGetBlockHistoryQuery:kd,useGetBlocksSchemaQuery:Ad,useGetParentEmailBlocksQuery:jd,useAddBlockMutation:Md,useEditBlockMutation:Nd,useAddTagMutation:Pd,useAutoSaveBlockMutation:Fd,useGetTemplateBlocksQuery:Id}=wd,Ld=window.localStorage?.getItem(pi.em_code_mode_settings),Rd=Ld&&JSON.parse(Ld),zd=Nu({activeModal:``,lastActiveSettingsTab:Vi,activeSettingsTab:Vi,isPanelHistoryCollapsed:!0,monacoHeight:0,isCodeMode:Rd?.isCodeMode||ui.isPlugin&&Rd?.isCodeMode===void 0,codeModeDirection:Rd?.codeModeDirection||`left`,isHeaderCodeMenuOpen:{current:!1,switched:!1},emailWidth:`100%`,emailViewType:oa,mobileViewActive:{shutdown:!0,styles:!0},emailMaxWidthSize:425,propertiesPanelKey:Pi,parentBlocks:[],isGlobalLoading:!1});localStorage.getItem(pi.em_code_mode_settings)||window.localStorage.setItem(pi.em_code_mode_settings,JSON.stringify({codeModeDirection:zd.codeModeDirection,isCodeMode:zd.isCodeMode}));var $=`emailPageSlice`,Bd=H({name:$,initialState:zd,reducers:{openModal:(e,t)=>{e.activeModal=t.payload},closeModal:e=>{e.activeModal=``},setActiveSettingsTab:(e,t)=>{e.lastActiveSettingsTab=e.activeSettingsTab,e.activeSettingsTab=t.payload,t.payload!==`History`&&(e.isPanelHistoryCollapsed=!0)},resetToLastActiveSettingsTab:e=>{e.lastActiveSettingsTab===`Properties`?e.activeSettingsTab=`Build`:e.activeSettingsTab=e.lastActiveSettingsTab,e.lastActiveSettingsTab!==`History`&&(e.isPanelHistoryCollapsed=!0)},switchIsPanelHistoryCollapsed:(e,t)=>{e.isPanelHistoryCollapsed=t.payload||!e.isPanelHistoryCollapsed},setEmailWidth:(e,{payload:t})=>{e.emailWidth=t,e.emailViewType=t>e.emailMaxWidthSize||t===`100%`?oa:sa,window.localStorage.setItem(pi.em_default_sizes,JSON.stringify(t))},setEmailMaxWidthSize:(e,{payload:t})=>{e.emailMaxWidthSize=t},setEmailViewType:(e,t)=>{e.emailViewType=t.payload},switchCodeMode:e=>{let t=!e.isCodeMode;e.isCodeMode=t,window.localStorage.setItem(pi.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:t}))},setCodeMode:(e,t)=>{let n=t.payload;e.isCodeMode!==n&&(e.isCodeMode=n,window.localStorage.setItem(pi.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:n})))},switchCodeModeDirection:(e,t)=>{e.codeModeDirection=t.payload,window.localStorage.setItem(pi.em_code_mode_settings,JSON.stringify({isCodeMode:e.isCodeMode,codeModeDirection:t.payload}))},setMobileViewActive:(e,t)=>{e.mobileViewActive=t.payload},setPropertiesPanelKey:(e,t)=>{e.propertiesPanelKey=t.payload},resetParentBlocks:e=>{e.parentBlocks=[]},setParentBlocks:(e,t)=>{e.parentBlocks=t.payload},setIsGlobalLoading:(e,t)=>{e.isGlobalLoading=t.payload},setHeaderCodeMenuOpen:(e,t)=>{e.isHeaderCodeMenuOpen.current&&!t.payload?e.isHeaderCodeMenuOpen.switched=!0:e.isHeaderCodeMenuOpen.switched=!1,e.isHeaderCodeMenuOpen.current=t.payload}},extraReducers:e=>{e.addMatcher(wd.endpoints.getParentEmailBlocks.matchFulfilled,(e,t)=>{e.parentBlocks=t.payload})}}),{openModal:Vd,closeModal:Hd,setActiveSettingsTab:Ud,resetToLastActiveSettingsTab:Wd,switchIsPanelHistoryCollapsed:Gd,setEmailWidth:Kd,switchCodeMode:qd,switchCodeModeDirection:Jd,setMobileViewActive:Yd,setEmailViewType:Xd,setCodeMode:Zd,setEmailMaxWidthSize:Qd,setPropertiesPanelKey:$d,resetParentBlocks:ef,setIsGlobalLoading:tf,setHeaderCodeMenuOpen:nf}=Bd.actions,rf=e=>e[$].isCodeMode,af=e=>e[$].emailWidth,of=e=>e[$].activeModal,sf=e=>e[$].parentBlocks,cf=e=>e[$].emailViewType,lf=e=>e[$].isGlobalLoading,uf=e=>e[$].mobileViewActive,df=e=>e[$].codeModeDirection,ff=e=>e[$].activeSettingsTab,pf=e=>e[$].propertiesPanelKey,mf=e=>e[$].isHeaderCodeMenuOpen,hf=e=>e[$].isPanelHistoryCollapsed,gf=[`is_paying`,`is_paying_user`,`paying`,`paying_user`];function _f(e){if(!e||typeof e!=`object`)return!1;let t=e;for(let e of gf){let n=t[e];if(n===!0||n===1||n===`1`||typeof n==`string`&&n.trim().toLowerCase()===`true`)return!0}return!1}function vf(e){if(e===void 0)return;if(e===null||e===``)return null;let t=Number(e);return Number.isFinite(t)?t:null}function yf(e){if(!e)return!1;let t=e,n=t.trial_enabled??t.trial??t.is_get_trial;return n===!0||n===1||n===`1`||typeof n==`string`&&n.toLowerCase()===`true`}function bf(e){let t=e.acf??{},{autosaves:n,hide_mergetags:r,theme:i,newsletter_consent:a,code_editor:o,counters:s,subscription:c,subscription_end:l,recurring_payments:u,subscription_id:d,promocode:f,subscription_amount:p,enterprise_users_limit:m,enterprise_price:h,enterprise_12_price:g,privacy_policy_agreement:_,last_used_project:v,email_confirmation:y,email_builder_config:b}=t,{id:x,acf:S,...C}=e,w=yf(t),T=_f(t)||_f(C)||_f(e.meta);return{...C,id:X(x),username:C.username||``,email:C.email||``,password:C.password||``,trial_enabled:w,is_paying:T,autosaves:n,hide_mergetags:r,theme:i,newsletter_consent:a,code_editor:o?{...o,font_size:Number(o.font_size)}:void 0,counters:Object.keys(s).reduce((e,t)=>(e[t]=Number(s[t]),e),{}),subscription:c,subscription_end:l,recurring_payments:u,subscription_id:d,promocode:f,subscription_amount:vf(p),enterprise_users_limit:vf(m),enterprise_price:vf(h),enterprise_12_price:vf(g),privacy_policy_agreement:_,last_used_project:v,email_confirmation:y,email_builder_config:b}}function xf({autosaves:e,theme:t,newsletter_consent:n,code_editor:r,counters:i,subscription:a,subscription_end:o,recurring_payments:s,subscription_id:c,promocode:l,subscription_amount:u,enterprise_users_limit:d,enterprise_price:f,enterprise_12_price:p,privacy_policy_agreement:m,locale:h,last_used_project:g,email_confirmation:_,email_builder_config:v,trial_enabled:y,is_paying:b,id:x,...S}){return{...S,id:Y(x),locale:h,acf:{autosaves:e,theme:t,newsletter_consent:n,code_editor:r?{...r,font_size:String(r.font_size)}:void 0,counters:i,subscription:a,subscription_end:o,recurring_payments:s,subscription_id:c,promocode:l,subscription_amount:u,enterprise_users_limit:d,enterprise_price:f,enterprise_12_price:p,privacy_policy_agreement:m,last_used_project:g,email_confirmation:_,email_builder_config:v,...y===void 0?{}:{trial_enabled:y},...b===void 0?{}:{is_paying:b}}}}function Sf({title:e,acf:{limits:t,price:n},...r}){return{...r,title:wu(e)||``,limits:t,price:n}}var Cf=eu({reducerPath:`authorizationApi`,baseQuery:xu({baseUrl:`https://app.emailmaker.ru/api/wp-json/wp/v2/`}),endpoints:e=>({userRegistration:e.mutation({queryFn(e,t){return q(t).wp.users_register_create({body:e,type:P.Json})}}),emailUserRegistration:e.mutation({query:e=>({url:`${`https://app.emailmaker.ru/api/`.replaceAll(/[\\/]$/g,``)}/wp-json/auth/v1/users/register`,method:`POST`,body:e})}),getMailConfirmation:e.query({queryFn(e,t){return q(t).wp.confirmation_list({...e})}}),getSchema:e.query({queryFn(e,t){return q(t).wp.users_me_list(void 0,{method:`OPTIONS`,extraQuery:{_fields:`schema`}})}}),getMe:e.query({queryFn(e,t){return q(t).wp.users_me_list(null).then(Z(e=>e instanceof Array?e[0]:e)).then(Z(bf))}}),getUser:e.query({queryFn(e,t){return q(t).wp.users_detail({id:e}).then(Z(bf))}}),editMe:e.mutation({queryFn(e,t){let n=q(t),r=Cu(xf(e),!0);return n.wp.users_me_create(r,{type:P.Json}).then(Z(bf))}}),getSubscriptions:e.query({queryFn(e,t){return q(t).wp.subscription_list(void 0).then(Q(Sf))}}),activateTrial:e.mutation({query:e=>({url:`${`https://app.emailmaker.ru/api/`.replaceAll(/[\\/]$/g,``)}/wp-json/subscription/v2/activate_trial`,method:`GET`,headers:{Authorization:`Bearer ${e}`,"Content-Type":`application/json`}})}),getElamaCallback:e.mutation({query:e=>({url:`${`https://app.emailmaker.ru/api/`.replaceAll(/[\\/]$/g,``)}/wp-json/auth/v1/elama/callback`,method:`POST`,body:e})}),refreshElamaToken:e.mutation({query:e=>({url:`${`https://app.emailmaker.ru/api/`.replaceAll(/[\\/]$/g,``)}/wp-json/auth/v1/elama/refresh_token`,method:`POST`,body:{refresh_token:e}})})})}),{useGetMeQuery:wf,useLazyGetMeQuery:Tf,useEditMeMutation:Ef,useLazyGetSchemaQuery:Df,useGetSubscriptionsQuery:Of,useLazyGetMailConfirmationQuery:kf,useEmailUserRegistrationMutation:Af,useActivateTrialMutation:jf,useGetElamaCallbackMutation:Mf,useRefreshElamaTokenMutation:Nf}=Cf;function Pf(e){if(e){let{type:t,project:n,isNew:r,id:i}=e;return`/projects/${n}/${t===`block`?`blocks`:`emails`}/${r?`new?template=${i}`:i}`}else return``}function Ff(){return Ol(ep)}function If(e){return e.hasOwnProperty(`children`)}function Lf(e,t,n){return e?.length?e.map((e,r)=>If(e)?{key:b(),value:e.value,label:e.label,children:Lf(e.children,t,n),type:`group`}:{key:b(),label:e.label,value:e.value,onClick:t=>{n(e.value,t.domEvent)}}):void 0}var Rf=`configSlice`,zf=Nu(yd(`pro`));function Bf(e){return e.user.mode||e.serverSide.mode||localStorage.getItem(`configSwither`)||`pro`}function Vf(e){return yd(Bf(e))?.config||{}}function Hf(e){let t=Bf(e);return e.serverSide.advancedConfigs?.[t]||{}}function Uf(e){let t=Bf(e),n=e?.user?.advancedConfigs?.[t],r=n===void 0?e?.user?.advancedConfigs?.pro:n;return{...e?.advancedConfigs?.[t]||{},...r||{}}}function Wf(e){let t=Vf(e),n=Hf(e);return[Uf(e),e.user,n,e.serverSide,t,e.base]}function Gf(e){let t;for(let n of e)n?.fileManager&&(t={...t||{},...n.fileManager});return t}function Kf(e){return Bt(e.map(e=>e?.resourceProxy))}function qf(e){return Gt(e.map(e=>e?.resourceProxyPolicy))}function Jf(e){return Vt(e.map(e=>e?.backendProxy))}function Yf(e){return jt(e.map(e=>e?.backendProxyPolicy||{}).filter(Boolean))}function Xf(e){let t=Vf(e),n=Hf(e),r=Uf(e),i=[e.base,t,e.serverSide,n,e.user,r],a=jt(i),o=Gf(i);o!==void 0&&(a.fileManager=o);let s=Kf(i);s!==void 0&&(a.resourceProxy=s);let c=qf(i);c&&Object.keys(c).length>0&&(a.resourceProxyPolicy=c);let l=Jf(i);l!==void 0&&(a.backendProxy=l);let u=Yf(i);return u&&Object.keys(u).length>0&&(a.backendProxyPolicy=u),a}var Zf=hs(`config/changeConfigModeWithCodeCheck`,async(e,{dispatch:t,getState:n})=>{t(pp(e)),t(Cf.endpoints.editMe.initiate({email_builder_config:e})),await new Promise(e=>setTimeout(e,0));let r=n(),i=r.emailPageSlice?.isCodeMode;return r.configSlice?.config?.codeEnabled===!1&&i&&t(Zd(!1)),e}),Qf=H({name:Rf,initialState:()=>{let e={...zf,config:{...zf.config,mergeTags:void 0}};return{base:e.config,serverSide:{},user:{},advancedConfigs:{},config:e.config,page:e.page,project:e.project,pluginDefaultCommonStyles:void 0}},reducers:{setPage:(e,t)=>{e.page=t.payload},setAllConfigs:(e,{payload:t})=>{e.user=t.user,e.serverSide=t.serverSide,e.advancedConfigs={...t.advancedConfigs||{},...t.user?.advancedConfigs||{}},e.config=Xf(e)},changeConfigMode:(e,t)=>{e.user.mode=t.payload,e.config=Xf(e)},setInitialMergeTags:(e,t)=>{e.base.mergeTags=t.payload,e.config.mergeTags=At(Wf(e),`mergeTags`)},setMergeTags:(e,t)=>{e.user.mergeTags=t.payload,e.config.mergeTags=At(Wf(e),`mergeTags`)},setUserConfig:(e,{payload:t})=>{e.user=t,e.config=Xf(e)},updateUserConfig:(e,{payload:t})=>{e.user={...e.user,...t},e.config=Xf(e)},setProject:(e,t)=>{e.project=t.payload},setActiveNextButton:(e,t)=>{e.user.activeNextButton=t.payload,e.config.activeNextButton=At(Wf(e),`activeNextButton`)!==void 0},setPluginDefaultCommonStyles:(e,t)=>{t.payload===void 0?delete e.pluginDefaultCommonStyles:e.pluginDefaultCommonStyles=t.payload}},extraReducers:e=>{}}),$f=e=>e[Rf].config.mergeTags,ep=e=>e[Rf].config,tp=e=>e[Rf].page,np=e=>e[Rf].config.themes,rp=e=>e[Rf].config.styles,ip=e=>e[Rf].project,ap=e=>e[Rf].config.mode,op=e=>e[Rf].pluginDefaultCommonStyles,{setPage:sp,setAllConfigs:cp,updateUserConfig:lp,setUserConfig:up,setProject:dp,setMergeTags:fp,changeConfigMode:pp,setInitialMergeTags:mp,setActiveNextButton:hp,setPluginDefaultCommonStyles:gp}=Qf.actions,_p=eu({reducerPath:`emailsApi`,tagTypes:[`Emails`,`Email`,`EmailAutosaves`,`TemplateEmail`],baseQuery:xu({baseUrl:`https://app.emailmaker.ru/api/wp-json/wp/v2/`}),endpoints:e=>({getEmails:e.query({queryFn(e,t){let n=q(t),r={order:`desc`,orderby:`modified`},i={};if(e.notEmbed||(i._embed=``),e.projectId&&(i._embed=`author`,i._fields=`id,title,meta,emailtags,folder,group,modified,date,type,acf.lock,acf.project.ID,author,acf.is_template,_embedded`,r[`filter[meta_key]`]=`project`,r[`filter[meta_value]`]=e.projectId),e.fields&&(i._fields=e.fields),e.page&&(r.page=e.page),e.order&&(r.order=e.order),e.orderby&&(r.orderby=e.orderby),e.folderTag&&e.folderTag!==`all`?(r[`filter[tax_query][relation]`]=`AND`,r[`filter[tax_query][0][taxonomy]`]=`folder`,r[`filter[tax_query][0][field]`]=`id`,r[`filter[tax_query][0][terms]`]=e.folderTag,r[`filter[tax_query][0][include_children]`]=`0`):(e.folderTag!==`all`||typeof e.folderTag==`object`&&e.folderTag===null)&&!e.tags?.length&&e.status&&e.status!==`trash`&&(r[`filter[tax_query][0][taxonomy]`]=`folder`,r[`filter[tax_query][0][operator]`]=`NOT EXISTS`),e.tags?.length>0&&e.status!==`trash`){r[`filter[tax_query][relation]`]=`AND`;for(let t=0,n=e.tags.length;t<n;t++){let n=e.tags[t];r[`filter[tax_query][${t+1}][taxonomy]`]=`emailtags`,r[`filter[tax_query][${t+1}][field]`]=`id`,r[`filter[tax_query][${t+1}][terms]`]=n}}return e.name&&(r.search=e.name),e.pageSize&&(r.per_page=e.pageSize),e.status===`trash`&&(i.status=`trash`),n.wp.email_list(r,{extraQuery:i}).then(e=>Q(Ou)(e))},providesTags:(e,t,n,{response:r})=>{let i=r?.headers.get(`X-WP-Total`)||0;return e?[...e.map(({id:e})=>({type:`Emails`,id:`${n.folderTag||n.tags?.[0]||n.projectId}_${n.page}_${n.status}_${i}`})),{type:`Emails`,id:`${n.folderTag||n.tags?.[0]||n.projectId}_${n.page}_${n.status}_${i}`}]:[{type:`Emails`,id:`${n.folderTag||n.tags?.[0]||n.projectId}_${n.page}_${n.status}_${i}`}]},keepUnusedDataFor:0}),getTemplateEmails:e.query({queryFn(e,t){let n=q(t),r={"filter[meta_query][1][key]":`is_template`,"filter[meta_query][1][value]":`1`,"filter[meta_query][0][compare]":`LIKE`,orderby:`modified`,order:`desc`},i={_embed:`author,wp:term`,_fields:`_embedded,id,title,meta,emailtags,folder,group,modified,date,type,acf.lock,acf.project.ID,acf.is_template`};if(e.emailId&&(r[`filter[meta_query][0][key]`]=`parent_email`,r[`filter[meta_query][0][value]`]=e.emailId),e.fields&&(i._fields=e.fields),e.group?.length>0||e.projectGroup?.length>0){let t=[...e.group||[],...e.projectGroup||[]].reduce((e,{key:t,parentId:n})=>(e[n]||(e[n]=[]),e[n].push(String(t)),e),{}),n=Object.values(t).map(e=>e.sort());r[`filter[tax_query][relation]`]=`AND`,n.forEach((e,t)=>{r[`filter[tax_query][${t}][relation]`]=`OR`,e.forEach((e,n)=>{r[`filter[tax_query][${t}][${n}][taxonomy]`]=`group`,r[`filter[tax_query][${t}][${n}][field]`]=`id`,r[`filter[tax_query][${t}][${n}][terms]`]=e})})}if(e.tags?.length>0){r[`filter[tax_query][relation]`]=`AND`;for(let t=0,n=e.tags.length;t<n;t++){let n=e.tags[t];r[`filter[tax_query][${t}][taxonomy]`]=`emailtags`,r[`filter[tax_query][${t}][field]`]=`id`,r[`filter[tax_query][${t}][terms]`]=n}}if(e.type&&(r[`filter[meta_query][2][key]`]=`type`,r[`filter[meta_query][2][value]`]=e.type),e.name&&(r.search=e.name),e.pageSize&&(r.per_page=e.pageSize),e.page){r.page=e.page;let{groupsTemplateProjectTotal:n,groupsTemplateProjectTotalPages:i}=t.getState()?.projectSlice;if(!e.projectGroup?.length&&!e.group?.length&&i<e.page&&e.groupType===Di.ALL&&n&&i&&!e.projectId){let t=24-n%24+(e.page-(i+1))*24;t&&(r.page=1,r.offset=t)}}return e.projectId&&(r[`filter[meta_key]`]=`project`,r[`filter[meta_value]`]=e.projectId),n.wp.email_list(r,{extraQuery:i}).then(Q(Ou))},keepUnusedDataFor:0}),getEmail:e.query({queryFn(e,t){return q(t).wp.email_detail({id:Y(e)},{extraQuery:{_embed:`wp:term`,_fields:`_embedded,id,author,title,meta,emailtags,folder,group,modified,date,type,parent,date_gmt
29
+ `)}var _d=new class{pageLoadTs;polls=new Map;processedEmails=new Set;constructor(e=hd()){this.pageLoadTs=e}onAutoSaveStarted(e,t){ud(e,t)}onAutoSaveCompleted(e){}onHistoryFetched(e,t,n,r,i=!1,a=null){let o=md(t),s=this.polls.get(e);if(s&&(s.triggerRefetch=r,s.dispatch=n),i&&s?.phase===`fast`){o&&pd(o,s.pending.sentAt)&&(fd(e),this.cancelPolling(e),n(Vu({emailId:e,payload:o,phase:`found`})),this.processedEmails.add(e));return}if(i&&s?.phase===`bg`){o&&pd(o,s.pending.sentAt)&&(fd(e),this.cancelPolling(e),n(Vu({emailId:e,payload:o,phase:`bg`})));return}if(this.processedEmails.has(e))return;let c=i?dd(e):null,l=c&&(c.sentAt<this.pageLoadTs||!gd(c.html,a))?c:null;l?o&&pd(o,l.sentAt)?(fd(e),n(Vu({emailId:e,payload:o,phase:`found`})),this.processedEmails.add(e)):this.startFastPoll(e,l,n,r):(o?.slug?.includes(`autosave`)?n(Vu({emailId:e,payload:o,phase:`normal`})):n(Wu(e)),this.processedEmails.add(e))}cancelPolling(e){let t=this.polls.get(e);t?.timer&&clearTimeout(t.timer),t&&t.dispatch(Uu(!1)),this.polls.delete(e),this.processedEmails.delete(e)}startFastPoll(e,t,n,r){n(Uu(!0));let i={phase:`fast`,attempts:0,pending:t,timer:null,triggerRefetch:r,dispatch:n};this.polls.set(e,i),this.scheduleNextPoll(e)}scheduleNextPoll(e){let t=this.polls.get(e);if(!t)return;let n=t.phase===`fast`,r=n?rd:ad,i=n?id:od;t.timer=setTimeout(()=>{let t=this.polls.get(e);if(t)if(t.attempts++,t.triggerRefetch(),n&&t.attempts>=i){let{pending:n,dispatch:r}=t;fd(e),r(Uu(!1)),r(Vu({emailId:e,payload:{html:n.html,common_styles:n.common_styles,subject:n.subject,preheader:n.preheader},phase:`timeout`})),this.processedEmails.add(e),t.phase=`bg`,t.attempts=0,this.scheduleNextPoll(e)}else !n&&t.attempts>=i?(fd(e),this.cancelPolling(e)):this.scheduleNextPoll(e)},r)}},vd={pro:{config:{mode:`pro`,autosaveTimeout:5e3,autosaveRetryMaxAttempts:5,autosaveRetryIntervalMs:3e4,theme:``,themes:{},mergeTagsShow:!0,styles:``,revisionService:!1,headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!0,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!0,webversionEnabled:!0,commonStylesEnabled:!0,emailResponsiveControlEnabled:!0,templateNotEmAlertShow:!1,emailDropdownMenuEnabled:!0,emailDropdownMenuClone:!0,emailDropdownMenuImport:!0,emailDropdownMenuImportButton:!1,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,exportHtmlEnabled:!0,exportZipEnabled:!0,exportTextEnabled:!0,exportClipboardEnabled:!0,exportWebHookEnabled:!0,exportOutlookEnabled:!0,exportPdfEnabled:!0,exportPngEnabled:!0,nextButtonEnabled:!1,nextButtonText:``,saveButtonEnabled:!0,saveButtonText:``,commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!0,saveBlockEnabled:!0,globalBlockCheckboxEnabled:!0,editImageControlEnabled:!0,lockEditor:!1,lockPreheaderAndTitle:!1,disableSideMenu:!1,menuDirection:`right`,defaultBuildPanel:``,commentsEnabled:!0,aiAssistentEnabled:!0,optimizeEnabled:!0,optimizeLinksEnabled:!0,optimizeImagesEnabled:!0,optimizeSpamAssassinEnabled:!0,optimizeCheckCodeEnabled:!0,settingsEnabled:!0,UTMEnabled:!0,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!0,tagsEnabled:!0,isTemplateEnabled:!0,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!0,deleteButtonEnabled:!0,toggleSidePanel:!0,blocksSectionsShow:!0,blocksEmptyEnabled:!0,blocksSavedEnabled:!0,blocksCommonEnabled:!0,blocksTemplateEnabled:!0,blocksSearchEnabled:!0,blocksAddPanelEnabled:!0,imagePathDropdownEnabled:!0,formFieldImageTitleEnabled:!0,formFieldBorderEnabled:!0,formFieldBorderRadiusEnabled:!0,formFieldBoxShadowEnabled:!0,formFieldVisibilityEnabled:!0,formFieldExportAsPictureEnabled:!0,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!0,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!0,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!0,formButtonFieldReplacerEnabled:!0,formCellFieldVerticalAlignEnabled:!0,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!0,formCellFieldSizeEnabled:!0,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formImageFieldVerticalAlignEnabled:!0,formImageFieldReplacerEnabled:!0,formImageFieldHeightEnabled:!0,formTextFieldTypografEnabled:!0,formTextFieldReplacerEnabled:!0,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!0,elementCountdownEnabled:!0,elementVideoEnabled:!0,elementAIimageEnabled:!0,elementAItextEnabled:!0,elementCarouselEnabled:!0,elementAccordionEnabled:!0,elementFormEnabled:!1,preventSendDataToEM:!1,imageInfoToolUrl:``,resourceProxy:void 0,resourceProxyPolicy:void 0,imageCenterFileManagerView:!0,imageCenterLocalUploadEnabled:!0,imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterIconStockEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:1,compressMaxWidthOrHeight:2e3,ampExportEnabled:!0,formFieldAmpVisibilityEnabled:!0,testEmails:[],pushToGTM:!0,activeNextButton:!0,iconStrokeWidth:1.4,fileManager:{defaultFolderName:``,enableMoveFolder:!0,enableEdit:!0,enableTrash:!0,enableCopyFile:!0}},project:void 0,page:{isNew:!0,type:`email`,project:0,id:``,showToken:0}},editor:{config:{mode:`editor`,autosaveTimeout:5e3,autosaveRetryMaxAttempts:5,autosaveRetryIntervalMs:3e4,theme:``,themes:{},mergeTagsShow:!1,styles:``,headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!1,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!1,webversionEnabled:!1,commonStylesEnabled:!1,emailResponsiveControlEnabled:!1,templateNotEmAlertShow:!1,emailDropdownMenuEnabled:!1,emailDropdownMenuClone:!0,emailDropdownMenuImport:!1,emailDropdownMenuImportButton:!1,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,exportHtmlEnabled:!0,exportTextEnabled:!1,exportZipEnabled:!0,exportClipboardEnabled:!1,exportWebHookEnabled:!1,exportOutlookEnabled:!0,exportPdfEnabled:!0,exportPngEnabled:!0,nextButtonEnabled:!1,nextButtonText:``,saveButtonEnabled:!0,saveButtonText:``,commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!1,saveBlockEnabled:!0,globalBlockCheckboxEnabled:!0,editImageControlEnabled:!0,lockEditor:!1,lockPreheaderAndTitle:!1,disableSideMenu:!1,menuDirection:`right`,defaultBuildPanel:``,commentsEnabled:!1,aiAssistentEnabled:!1,optimizeEnabled:!1,optimizeLinksEnabled:!0,optimizeImagesEnabled:!0,optimizeSpamAssassinEnabled:!0,optimizeCheckCodeEnabled:!0,settingsEnabled:!0,UTMEnabled:!1,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!1,tagsEnabled:!0,isTemplateEnabled:!1,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!1,deleteButtonEnabled:!0,toggleSidePanel:!1,blocksSectionsShow:!0,blocksEmptyEnabled:!0,blocksSavedEnabled:!0,blocksCommonEnabled:!0,blocksTemplateEnabled:!0,blocksSearchEnabled:!0,blocksAddPanelEnabled:!0,imagePathDropdownEnabled:!1,formFieldImageTitleEnabled:!1,formFieldBorderEnabled:!1,formFieldBorderRadiusEnabled:!1,formFieldBoxShadowEnabled:!1,formFieldVisibilityEnabled:!1,formFieldExportAsPictureEnabled:!1,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!1,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!1,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!1,formButtonFieldReplacerEnabled:!1,formCellFieldVerticalAlignEnabled:!1,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!0,formCellFieldSizeEnabled:!1,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formImageFieldVerticalAlignEnabled:!1,formImageFieldReplacerEnabled:!1,formImageFieldHeightEnabled:!1,formTextFieldTypografEnabled:!1,formTextFieldReplacerEnabled:!1,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!0,elementCountdownEnabled:!0,elementVideoEnabled:!1,elementAIimageEnabled:!0,elementAItextEnabled:!1,elementCarouselEnabled:!1,elementAccordionEnabled:!1,elementFormEnabled:!1,preventSendDataToEM:!1,imageInfoToolUrl:``,resourceProxy:void 0,resourceProxyPolicy:void 0,imageCenterFileManagerView:!0,imageCenterLocalUploadEnabled:!0,imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterIconStockEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:1,compressMaxWidthOrHeight:2e3,ampExportEnabled:!1,formFieldAmpVisibilityEnabled:!1,testEmails:[],pushToGTM:!0,activeNextButton:!0,iconStrokeWidth:1.4},project:void 0,page:{isNew:!1,type:`email`,project:0,id:``,showToken:0}},simple:{config:{mode:`simple`,autosaveTimeout:5e3,autosaveRetryMaxAttempts:5,autosaveRetryIntervalMs:3e4,theme:``,themes:{},mergeTagsShow:!1,styles:``,headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!0,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!0,webversionEnabled:!1,commonStylesEnabled:!1,emailResponsiveControlEnabled:!1,templateNotEmAlertShow:!1,emailDropdownMenuEnabled:!0,emailDropdownMenuClone:!0,emailDropdownMenuImport:!0,emailDropdownMenuImportButton:!1,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,exportHtmlEnabled:!0,exportZipEnabled:!0,exportTextEnabled:!0,exportClipboardEnabled:!0,exportWebHookEnabled:!0,exportOutlookEnabled:!1,exportPdfEnabled:!0,exportPngEnabled:!0,nextButtonEnabled:!1,nextButtonText:``,saveButtonEnabled:!0,saveButtonText:``,commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!0,saveBlockEnabled:!0,globalBlockCheckboxEnabled:!0,editImageControlEnabled:!0,lockEditor:!1,lockPreheaderAndTitle:!1,disableSideMenu:!1,menuDirection:`right`,defaultBuildPanel:``,commentsEnabled:!0,aiAssistentEnabled:!0,optimizeEnabled:!0,optimizeLinksEnabled:!0,optimizeImagesEnabled:!0,optimizeSpamAssassinEnabled:!0,optimizeCheckCodeEnabled:!0,settingsEnabled:!0,UTMEnabled:!1,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!0,tagsEnabled:!0,isTemplateEnabled:!0,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!0,deleteButtonEnabled:!0,toggleSidePanel:!0,blocksSectionsShow:!0,blocksEmptyEnabled:!0,blocksSavedEnabled:!0,blocksCommonEnabled:!0,blocksTemplateEnabled:!0,blocksSearchEnabled:!0,blocksAddPanelEnabled:!0,imagePathDropdownEnabled:!0,formFieldImageTitleEnabled:!0,formFieldBorderEnabled:!1,formFieldBorderRadiusEnabled:!1,formFieldBoxShadowEnabled:!1,formFieldVisibilityEnabled:!1,formFieldExportAsPictureEnabled:!1,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!0,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!0,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!0,formButtonFieldReplacerEnabled:!1,formCellFieldVerticalAlignEnabled:!0,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!0,formCellFieldSizeEnabled:!1,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formImageFieldVerticalAlignEnabled:!1,formImageFieldReplacerEnabled:!1,formImageFieldHeightEnabled:!1,formTextFieldTypografEnabled:!1,formTextFieldReplacerEnabled:!1,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!1,elementCountdownEnabled:!1,elementVideoEnabled:!1,elementAIimageEnabled:!0,elementAItextEnabled:!1,elementCarouselEnabled:!1,elementAccordionEnabled:!1,elementFormEnabled:!1,preventSendDataToEM:!1,imageInfoToolUrl:``,resourceProxy:void 0,resourceProxyPolicy:void 0,imageCenterFileManagerView:!1,imageCenterLocalUploadEnabled:!0,imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterIconStockEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:1,compressMaxWidthOrHeight:2e3,ampExportEnabled:!1,formFieldAmpVisibilityEnabled:!1,testEmails:[],pushToGTM:!0,activeNextButton:!0,iconStrokeWidth:1.4,fileManager:{defaultFolderName:``,enableMoveFolder:!0,enableEdit:!0,enableTrash:!0}},project:void 0,page:{isNew:!1,type:`email`,project:0,id:``,showToken:0}},blocks:{config:{mode:`freeUserBlocks`,autosaveTimeout:5e3,autosaveRetryMaxAttempts:5,autosaveRetryIntervalMs:3e4,theme:``,themes:{},mergeTagsShow:!0,styles:``,revisionService:!1,headerShow:!0,headerTitleVisible:!0,headerPreheaderVisible:!0,headerArrowBackVisible:!0,historyEnabled:!0,codeEnabled:!0,codeSideEnabled:!0,previewIconEnabled:!0,previewModeEnabled:!0,livePreviewEnabled:!0,sendTestEnabled:!0,sharePreviewEnabled:!0,webversionEnabled:!0,commonStylesEnabled:!0,emailResponsiveControlEnabled:!0,templateNotEmAlertShow:!1,emailDropdownMenuEnabled:!0,emailDropdownMenuClone:!0,emailDropdownMenuImport:!0,emailDropdownMenuLock:!0,emailDropdownMenuRemove:!0,emailExportEnabled:!0,exportHtmlEnabled:!0,exportZipEnabled:!0,exportTextEnabled:!0,exportClipboardEnabled:!0,exportWebHookEnabled:!0,exportOutlookEnabled:!0,exportPdfEnabled:!0,exportPngEnabled:!0,nextButtonEnabled:!1,nextButtonText:``,saveButtonEnabled:!0,saveButtonText:``,commandButtonsEnabled:!0,emailIdShow:!1,sidePanelFloating:!0,desktopMobileSwitchRule:!0,desktopMobileSwitchPanel:!1,onlyCodeModeInMobile:!1,pathEnabled:!0,copyPasteEnabled:!0,saveBlockEnabled:!0,globalBlockCheckboxEnabled:!0,editImageControlEnabled:!0,lockEditor:!1,lockPreheaderAndTitle:!1,disableSideMenu:!1,menuDirection:`right`,defaultBuildPanel:``,commentsEnabled:!0,aiAssistentEnabled:!0,optimizeEnabled:!0,optimizeLinksEnabled:!0,optimizeImagesEnabled:!0,optimizeSpamAssassinEnabled:!0,optimizeCheckCodeEnabled:!0,settingsEnabled:!0,UTMEnabled:!0,subjectEnabled:!0,preheaderEnabled:!0,descriptionEnabled:!0,tagsEnabled:!0,isTemplateEnabled:!0,switchDesktopMobilePropsEnabled:!0,stepToOtherElementEnabled:!0,deleteButtonEnabled:!0,toggleSidePanel:!0,blocksSectionsShow:!0,blocksEmptyEnabled:!0,blocksSavedEnabled:!0,blocksCommonEnabled:!0,blocksTemplateEnabled:!0,blocksSearchEnabled:!0,blocksAddPanelEnabled:!0,imagePathDropdownEnabled:!0,formFieldImageTitleEnabled:!0,formFieldBorderEnabled:!0,formFieldBorderRadiusEnabled:!0,formFieldBoxShadowEnabled:!0,formFieldVisibilityEnabled:!0,formFieldExportAsPictureEnabled:!0,emailPaneDesktopSize:0,formButtonFieldInsertImageEnabled:!0,formButtonFieldVerticalAlignEnabled:!0,formButtonFieldTextAlignEnabled:!0,formButtonFieldBackgroundImageEnabled:!0,formButtonFieldPaddingsEnabled:!0,formCellFieldVerticalAlignEnabled:!0,formCellFieldBackgroundImageEnabled:!0,formCellFieldPaddingsEnabled:!0,formCellFieldSizeEnabled:!0,formButtonFieldReplacerEnabled:!0,formLinkFieldInsertImageEnabled:!0,formTableFieldBackgroundImageEnabled:!0,formDivFieldBackgroundImageEnabled:!0,formImageFieldVerticalAlignEnabled:!0,formImageFieldReplacerEnabled:!0,formImageFieldHeightEnabled:!0,formTextFieldTypografEnabled:!0,formTextFieldReplacerEnabled:!0,formEmailFieldBackgroundImageEnabled:!0,elementImageEnabled:!0,elementTextEnabled:!0,elementHeaderEnabled:!0,elementButtonEnabled:!0,elementListULEnabled:!0,elementListOLEnabled:!0,elementDividerEnabled:!0,elementSpacerEnabled:!0,elementSocialEnabled:!0,elementTableEnabled:!1,elementCountdownEnabled:!0,elementVideoEnabled:!0,elementAIimageEnabled:!0,elementAItextEnabled:!0,elementCarouselEnabled:!0,elementAccordionEnabled:!0,elementFormEnabled:!1,preventSendDataToEM:!1,imageInfoToolUrl:``,resourceProxy:void 0,resourceProxyPolicy:void 0,imageCenterFileManagerView:!1,imageCenterLocalUploadEnabled:!0,imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterIconStockEnabled:!0,imageCenterEditorEnabled:!0,compressMaxSize:1,compressMaxWidthOrHeight:2e3,ampExportEnabled:!0,formFieldAmpVisibilityEnabled:!0,testEmails:[],pushToGTM:!0,activeNextButton:!0,iconStrokeWidth:1.4},project:void 0,page:{isNew:!0,type:`email`,project:0,id:``,showToken:0}}},yd=e=>vd[e]||vd.editor;function bd({id:e,type:t,title:n,excerpt:r,author:i,acf:{subject:a,description:o,html:s,project:c,related_email:l,tags:u,type:d,is_template:f,global_block:p,lock:m},...h}){return{...h,id:String(e),author:String(i),renderGuid:b(),description:o,html:s,excerpt:wu(n),project:J(c)?c.ID:c,project_author:J(c)?c.post_author:void 0,project_title:J(c)?c.post_title:void 0,tags:u,is_template:f,global_block:p,type:d,related_email:X(J(l)?l.ID:l),title:wu(n)||``,lock:m}}function xd({title:e,subject:t,description:n,renderGuid:r,html:i,project:a,tags:o,type:s,related_email:c,is_template:l,global_block:u,lock:d,author:f,...p}){return{...p,author:Y(f),title:e,acf:{description:n,related_email:Y(c),html:i,project:a,tags:o,type:s,is_template:l,...typeof u==`boolean`?{global_block:u}:{},lock:d}}}function Sd({id:e,title:t,acf:{html:n},excerpt:r,parent:i,author:a,...o}){return{...o,id:X(e),author:X(a),parent:X(i),title:wu(t)||``,html:n,excerpt:J(r)?r.rendered:r}}function Cd({parent:e,title:t,html:n,project:r,author:i,...a}){return{...a,author:Y(i),parent:Y(e),title:wu(t),"acf[html]":n,"acf[project]":J(r)?r.id||r.ID:r}}var wd=eu({reducerPath:`blocksApi`,tagTypes:[`Blocks`,`TemplatesBlocks`,`ParentsBlocks`,`Block`],baseQuery:xu({baseUrl:`https://app.emailmaker.ru/api/wp-json/wp/v2/`}),endpoints:e=>({getBlocks:e.query({queryFn(e,t){let n=q(t),r={order:`desc`,orderby:`modified`},i={};if(e.notEmbed||(i._embed=``),e.projectId&&(i._embed=`author`,i._fields=`id,title,blocktags,blockfolder,group,modified,date,type,acf.lock,acf.project.ID,acf.type,author,acf.is_template,acf.global_block,acf.html,_embedded`,r[`filter[meta_key]`]=`project`,r[`filter[meta_value]`]=e.projectId),e.fields&&(i._fields=e.fields),e.page&&(r.page=e.page),e.order&&(r.order=e.order),e.orderby&&(r.orderby=e.orderby),e.folderTag&&e.folderTag!==`all`?(r[`filter[tax_query][relation]`]=`AND`,r[`filter[tax_query][0][taxonomy]`]=`blockfolder`,r[`filter[tax_query][0][field]`]=`id`,r[`filter[tax_query][0][terms]`]=e.folderTag,r[`filter[tax_query][0][include_children]`]=`0`):e.hasOwnProperty(`folderTag`)&&(e.folderTag!==`all`||typeof e.folderTag==`object`&&e.folderTag===null)&&!e.tags?.length&&e.status&&e.status!==`trash`&&(r[`filter[tax_query][0][taxonomy]`]=`blockfolder`,r[`filter[tax_query][0][operator]`]=`NOT EXISTS`),e.tags?.length>0&&e.status!==`trash`){r[`filter[tax_query][relation]`]=`AND`;for(let t=0,n=e.tags.length;t<n;t++){let n=e.tags[t];r[`filter[tax_query][${t+1}][taxonomy]`]=`blocktags`,r[`filter[tax_query][${t+1}][field]`]=`id`,r[`filter[tax_query][${t+1}][terms]`]=n}}return e.type&&(r[`filter[meta_query][2][key]`]=`type`,r[`filter[meta_query][2][value]`]=e.type),e.name&&(r.search=e.name),e.pageSize&&(r.per_page=e.pageSize),e.status===`trash`&&(i.status=`trash`),n.wp.eblock_list(r,{extraQuery:i}).then(Q(bd))},providesTags:e=>e?[...e.map(({id:e})=>({type:`Blocks`,id:e})),{type:`Blocks`,id:`LIST`}]:[{type:`Blocks`,id:`LIST`}],keepUnusedDataFor:0}),getBlocksSchema:e.query({queryFn(e,t){return q(t).wp.eblock_list(void 0,{method:`OPTIONS`,extraQuery:{_fields:`schema.properties.acf`}})}}),getParentEmailBlocks:e.query({queryFn(e,t){let n=q(t),r={"filter[meta_query][0][compare]":`LIKE`},i={};if(e.notEmbed||(i._embed=``),e.emailId&&(r[`filter[meta_query][0][key]`]=`related_email`,r[`filter[meta_query][0][value]`]=e.emailId),e.fields&&(i._fields=e.fields),e.page&&(r.page=e.page),e.tags?.length>0){r[`filter[tax_query][relation]`]=`AND`;for(let t=0,n=e.tags.length;t<n;t++){let n=e.tags[t];r[`filter[tax_query][${t}][taxonomy]`]=`blocktags`,r[`filter[tax_query][${t}][field]`]=`id`,r[`filter[tax_query][${t}][terms]`]=n}}return e.type&&(r[`filter[meta_query][2][key]`]=`type`,r[`filter[meta_query][2][value]`]=e.type),e.name&&(r.search=e.name),e.pageSize&&(r.per_page=e.pageSize),n.wp.eblock_list(r,{extraQuery:i}).then(Q(bd))},providesTags:e=>e?[...e.map(({id:e})=>({type:`ParentsBlocks`,id:e})),{type:`ParentsBlocks`,id:`LIST`}]:[{type:`ParentsBlocks`,id:`LIST`}],keepUnusedDataFor:0}),getTemplateBlocks:e.query({queryFn:(e,t)=>{let n=q(t),r={"filter[meta_query][1][key]":`is_template`,"filter[meta_query][1][value]":`1`,orderby:`modified`,order:`desc`},i={};if(e.notEmbed||(i._embed=``),e.fields&&(i._fields=e.fields),e.page&&(r.page=e.page),e.tags?.length>0){r[`filter[tax_query][relation]`]=`AND`;for(let t=0,n=e.tags.length;t<n;t++){let n=e.tags[t];r[`filter[tax_query][${t}][taxonomy]`]=`blocktags`,r[`filter[tax_query][${t}][field]`]=`id`,r[`filter[tax_query][${t}][terms]`]=n}}return e.type&&(r[`filter[meta_query][2][key]`]=`type`,r[`filter[meta_query][2][value]`]=e.type),e.name&&(r.search=e.name),e.pageSize&&(r.per_page=e.pageSize),n.wp.eblock_list(r,{extraQuery:i}).then(Q(bd))},providesTags:e=>e?[...e.map(({id:e})=>({type:`TemplatesBlocks`,id:e})),{type:`TemplatesBlocks`,id:`LIST`}]:[{type:`TemplatesBlocks`,id:`LIST`}],keepUnusedDataFor:0}),getBlock:e.query({queryFn(e,t){return q(t).wp.eblock_detail({id:Y(e)},{extraQuery:{_embed:``}}).then(Z(bd))},providesTags:(e,t,n)=>[{type:`Block`,id:n}],keepUnusedDataFor:0}),getBlockHistory:e.query({queryFn({blockId:e,page:t=1},n){return q(n).wp.eblock_revisions_list({parent:e,per_page:20,page:t},{extraQuery:{_fields:`author,slug,date,modified,title,acf.html,acf.common_styles,id`}}).then(n=>Pu(n,(n,r)=>({data:n.filter(e=>e.acf.html).map(e=>({...e,acf:{...e.acf,html:e.acf.html}})).map(Sd),totalPages:+r.response.headers.get(`X-WP-TotalPages`),args:{blockId:e,page:t}})))},keepUnusedDataFor:0}),addBlock:e.mutation({queryFn(e,t){return q(t).wp.eblock_create({...xd(e),status:`publish`},{type:P.Json}).then(Z(bd))},invalidatesTags:[{type:`Blocks`,id:`LIST`}]}),editBlock:e.mutation({queryFn:Ru(e=>({blockId:t,source:n,...r},i)=>{let a=q(e),o=Cu(xd(r));return a.wp.eblock_partial_update({id:t},o,{type:P.Json,extraQuery:{_embed:`wp:term`}}).then(Z(bd))})}),deleteBlock:e.mutation({queryFn(e,t){let n=q(t),r,i;return typeof e==`object`?(r=e.id,i=e.force):(r=e,i=!1),n.wp.eblock_delete({id:r},{force:i}).then(Lu(bd))},invalidatesTags:(e,t,n)=>[{type:`Blocks`,id:n}]}),addTag:e.mutation({queryFn(e,t){return q(t).wp.blocktags_create({...e},{type:P.Json})}}),getDeletableTag:e.query({queryFn([e,t],n){return q(n).wp.eblock_list({status:[`private`],"filter[meta_key]":`project`,"filter[meta_value]":e,blocktags:[t]},{extraQuery:{"_fields[]":`blocktags`}}).then(Q(bd))}}),autoSaveBlock:e.mutation({queryFn({blockId:e,body:t},n){let r=q(n),i=Cd(t);return r.wp.eblock_autosaves_create({id:e},i,{type:P.FormData}).then(Z(Sd))}})})}),{useGetBlocksQuery:Td,useGetBlockQuery:Ed,useLazyGetBlockQuery:Dd,useGetBlockHistoryQuery:Od,useLazyGetBlockHistoryQuery:kd,useGetBlocksSchemaQuery:Ad,useGetParentEmailBlocksQuery:jd,useAddBlockMutation:Md,useEditBlockMutation:Nd,useAddTagMutation:Pd,useAutoSaveBlockMutation:Fd,useGetTemplateBlocksQuery:Id}=wd,Ld=window.localStorage?.getItem(pi.em_code_mode_settings),Rd=Ld&&JSON.parse(Ld),zd=Nu({activeModal:``,lastActiveSettingsTab:Vi,activeSettingsTab:Vi,isPanelHistoryCollapsed:!0,monacoHeight:0,isCodeMode:Rd?.isCodeMode||ui.isPlugin&&Rd?.isCodeMode===void 0,codeModeDirection:Rd?.codeModeDirection||`left`,isHeaderCodeMenuOpen:{current:!1,switched:!1},emailWidth:`100%`,emailViewType:oa,mobileViewActive:{shutdown:!0,styles:!0},emailMaxWidthSize:425,propertiesPanelKey:Pi,parentBlocks:[],isGlobalLoading:!1});localStorage.getItem(pi.em_code_mode_settings)||window.localStorage.setItem(pi.em_code_mode_settings,JSON.stringify({codeModeDirection:zd.codeModeDirection,isCodeMode:zd.isCodeMode}));var $=`emailPageSlice`,Bd=H({name:$,initialState:zd,reducers:{openModal:(e,t)=>{e.activeModal=t.payload},closeModal:e=>{e.activeModal=``},setActiveSettingsTab:(e,t)=>{e.lastActiveSettingsTab=e.activeSettingsTab,e.activeSettingsTab=t.payload,t.payload!==`History`&&(e.isPanelHistoryCollapsed=!0)},resetToLastActiveSettingsTab:e=>{e.lastActiveSettingsTab===`Properties`?e.activeSettingsTab=`Build`:e.activeSettingsTab=e.lastActiveSettingsTab,e.lastActiveSettingsTab!==`History`&&(e.isPanelHistoryCollapsed=!0)},switchIsPanelHistoryCollapsed:(e,t)=>{e.isPanelHistoryCollapsed=t.payload||!e.isPanelHistoryCollapsed},setEmailWidth:(e,{payload:t})=>{e.emailWidth=t,e.emailViewType=t>e.emailMaxWidthSize||t===`100%`?oa:sa,window.localStorage.setItem(pi.em_default_sizes,JSON.stringify(t))},setEmailMaxWidthSize:(e,{payload:t})=>{e.emailMaxWidthSize=t},setEmailViewType:(e,t)=>{e.emailViewType=t.payload},switchCodeMode:e=>{let t=!e.isCodeMode;e.isCodeMode=t,window.localStorage.setItem(pi.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:t}))},setCodeMode:(e,t)=>{let n=t.payload;e.isCodeMode!==n&&(e.isCodeMode=n,window.localStorage.setItem(pi.em_code_mode_settings,JSON.stringify({codeModeDirection:e.codeModeDirection,isCodeMode:n})))},switchCodeModeDirection:(e,t)=>{e.codeModeDirection=t.payload,window.localStorage.setItem(pi.em_code_mode_settings,JSON.stringify({isCodeMode:e.isCodeMode,codeModeDirection:t.payload}))},setMobileViewActive:(e,t)=>{e.mobileViewActive=t.payload},setPropertiesPanelKey:(e,t)=>{e.propertiesPanelKey=t.payload},resetParentBlocks:e=>{e.parentBlocks=[]},setParentBlocks:(e,t)=>{e.parentBlocks=t.payload},setIsGlobalLoading:(e,t)=>{e.isGlobalLoading=t.payload},setHeaderCodeMenuOpen:(e,t)=>{e.isHeaderCodeMenuOpen.current&&!t.payload?e.isHeaderCodeMenuOpen.switched=!0:e.isHeaderCodeMenuOpen.switched=!1,e.isHeaderCodeMenuOpen.current=t.payload}},extraReducers:e=>{e.addMatcher(wd.endpoints.getParentEmailBlocks.matchFulfilled,(e,t)=>{e.parentBlocks=t.payload})}}),{openModal:Vd,closeModal:Hd,setActiveSettingsTab:Ud,resetToLastActiveSettingsTab:Wd,switchIsPanelHistoryCollapsed:Gd,setEmailWidth:Kd,switchCodeMode:qd,switchCodeModeDirection:Jd,setMobileViewActive:Yd,setEmailViewType:Xd,setCodeMode:Zd,setEmailMaxWidthSize:Qd,setPropertiesPanelKey:$d,resetParentBlocks:ef,setIsGlobalLoading:tf,setHeaderCodeMenuOpen:nf}=Bd.actions,rf=e=>e[$].isCodeMode,af=e=>e[$].emailWidth,of=e=>e[$].activeModal,sf=e=>e[$].parentBlocks,cf=e=>e[$].emailViewType,lf=e=>e[$].isGlobalLoading,uf=e=>e[$].mobileViewActive,df=e=>e[$].codeModeDirection,ff=e=>e[$].activeSettingsTab,pf=e=>e[$].propertiesPanelKey,mf=e=>e[$].isHeaderCodeMenuOpen,hf=e=>e[$].isPanelHistoryCollapsed,gf=[`is_paying`,`is_paying_user`,`paying`,`paying_user`];function _f(e){if(!e||typeof e!=`object`)return!1;let t=e;for(let e of gf){let n=t[e];if(n===!0||n===1||n===`1`||typeof n==`string`&&n.trim().toLowerCase()===`true`)return!0}return!1}function vf(e){if(e===void 0)return;if(e===null||e===``)return null;let t=Number(e);return Number.isFinite(t)?t:null}function yf(e){if(!e)return!1;let t=e,n=t.trial_enabled??t.trial??t.is_get_trial;return n===!0||n===1||n===`1`||typeof n==`string`&&n.toLowerCase()===`true`}function bf(e){let t=e.acf??{},{autosaves:n,hide_mergetags:r,theme:i,newsletter_consent:a,code_editor:o,counters:s,subscription:c,subscription_end:l,recurring_payments:u,subscription_id:d,promocode:f,subscription_amount:p,enterprise_users_limit:m,enterprise_price:h,enterprise_12_price:g,privacy_policy_agreement:_,last_used_project:v,email_confirmation:y,email_builder_config:b}=t,{id:x,acf:S,...C}=e,w=yf(t),T=_f(t)||_f(C)||_f(e.meta);return{...C,id:X(x),username:C.username||``,email:C.email||``,password:C.password||``,trial_enabled:w,is_paying:T,autosaves:n,hide_mergetags:r,theme:i,newsletter_consent:a,code_editor:o?{...o,font_size:Number(o.font_size)}:void 0,counters:Object.keys(s).reduce((e,t)=>(e[t]=Number(s[t]),e),{}),subscription:c,subscription_end:l,recurring_payments:u,subscription_id:d,promocode:f,subscription_amount:vf(p),enterprise_users_limit:vf(m),enterprise_price:vf(h),enterprise_12_price:vf(g),privacy_policy_agreement:_,last_used_project:v,email_confirmation:y,email_builder_config:b}}function xf({autosaves:e,theme:t,newsletter_consent:n,code_editor:r,counters:i,subscription:a,subscription_end:o,recurring_payments:s,subscription_id:c,promocode:l,subscription_amount:u,enterprise_users_limit:d,enterprise_price:f,enterprise_12_price:p,privacy_policy_agreement:m,locale:h,last_used_project:g,email_confirmation:_,email_builder_config:v,trial_enabled:y,is_paying:b,id:x,...S}){return{...S,id:Y(x),locale:h,acf:{autosaves:e,theme:t,newsletter_consent:n,code_editor:r?{...r,font_size:String(r.font_size)}:void 0,counters:i,subscription:a,subscription_end:o,recurring_payments:s,subscription_id:c,promocode:l,subscription_amount:u,enterprise_users_limit:d,enterprise_price:f,enterprise_12_price:p,privacy_policy_agreement:m,last_used_project:g,email_confirmation:_,email_builder_config:v,...y===void 0?{}:{trial_enabled:y},...b===void 0?{}:{is_paying:b}}}}function Sf({title:e,acf:{limits:t,price:n},...r}){return{...r,title:wu(e)||``,limits:t,price:n}}var Cf=eu({reducerPath:`authorizationApi`,baseQuery:xu({baseUrl:`https://app.emailmaker.ru/api/wp-json/wp/v2/`}),endpoints:e=>({userRegistration:e.mutation({queryFn(e,t){return q(t).wp.users_register_create({body:e,type:P.Json})}}),emailUserRegistration:e.mutation({query:e=>({url:`${`https://app.emailmaker.ru/api/`.replaceAll(/[\\/]$/g,``)}/wp-json/auth/v1/users/register`,method:`POST`,body:e})}),getMailConfirmation:e.query({queryFn(e,t){return q(t).wp.confirmation_list({...e})}}),getSchema:e.query({queryFn(e,t){return q(t).wp.users_me_list(void 0,{method:`OPTIONS`,extraQuery:{_fields:`schema`}})}}),getMe:e.query({queryFn(e,t){return q(t).wp.users_me_list(null).then(Z(e=>e instanceof Array?e[0]:e)).then(Z(bf))}}),getUser:e.query({queryFn(e,t){return q(t).wp.users_detail({id:e}).then(Z(bf))}}),editMe:e.mutation({queryFn(e,t){let n=q(t),r=Cu(xf(e),!0);return n.wp.users_me_create(r,{type:P.Json}).then(Z(bf))}}),getSubscriptions:e.query({queryFn(e,t){return q(t).wp.subscription_list(void 0).then(Q(Sf))}}),activateTrial:e.mutation({query:e=>({url:`${`https://app.emailmaker.ru/api/`.replaceAll(/[\\/]$/g,``)}/wp-json/subscription/v2/activate_trial`,method:`GET`,headers:{Authorization:`Bearer ${e}`,"Content-Type":`application/json`}})}),getElamaCallback:e.mutation({query:e=>({url:`${`https://app.emailmaker.ru/api/`.replaceAll(/[\\/]$/g,``)}/wp-json/auth/v1/elama/callback`,method:`POST`,body:e})}),refreshElamaToken:e.mutation({query:e=>({url:`${`https://app.emailmaker.ru/api/`.replaceAll(/[\\/]$/g,``)}/wp-json/auth/v1/elama/refresh_token`,method:`POST`,body:{refresh_token:e}})})})}),{useGetMeQuery:wf,useLazyGetMeQuery:Tf,useEditMeMutation:Ef,useLazyGetSchemaQuery:Df,useGetSubscriptionsQuery:Of,useLazyGetMailConfirmationQuery:kf,useEmailUserRegistrationMutation:Af,useActivateTrialMutation:jf,useGetElamaCallbackMutation:Mf,useRefreshElamaTokenMutation:Nf}=Cf;function Pf(e){if(e){let{type:t,project:n,isNew:r,id:i}=e;return`/projects/${n}/${t===`block`?`blocks`:`emails`}/${r?`new?template=${i}`:i}`}else return``}function Ff(){return Ol(ep)}function If(e){return e.hasOwnProperty(`children`)}function Lf(e,t,n){return e?.length?e.map((e,r)=>If(e)?{key:b(),value:e.value,label:e.label,children:Lf(e.children,t,n),type:`group`}:{key:b(),label:e.label,value:e.value,onClick:t=>{n(e.value,t.domEvent)}}):void 0}var Rf=`configSlice`,zf=Nu(yd(`pro`));function Bf(e){return e.user.mode||e.serverSide.mode||localStorage.getItem(`configSwither`)||`pro`}function Vf(e){return yd(Bf(e))?.config||{}}function Hf(e){let t=Bf(e);return e.serverSide.advancedConfigs?.[t]||{}}function Uf(e){let t=Bf(e),n=e?.user?.advancedConfigs?.[t],r=n===void 0?e?.user?.advancedConfigs?.pro:n;return{...e?.advancedConfigs?.[t]||{},...r||{}}}function Wf(e){let t=Vf(e),n=Hf(e);return[Uf(e),e.user,n,e.serverSide,t,e.base]}function Gf(e){let t;for(let n of e)n?.fileManager&&(t={...t||{},...n.fileManager});return t}function Kf(e){return Bt(e.map(e=>e?.resourceProxy))}function qf(e){return Gt(e.map(e=>e?.resourceProxyPolicy))}function Jf(e){return Vt(e.map(e=>e?.backendProxy))}function Yf(e){return jt(e.map(e=>e?.backendProxyPolicy||{}).filter(Boolean))}function Xf(e){let t=Vf(e),n=Hf(e),r=Uf(e),i=[e.base,t,e.serverSide,n,e.user,r],a=jt(i),o=Gf(i);o!==void 0&&(a.fileManager=o);let s=Kf(i);s!==void 0&&(a.resourceProxy=s);let c=qf(i);c&&Object.keys(c).length>0&&(a.resourceProxyPolicy=c);let l=Jf(i);l!==void 0&&(a.backendProxy=l);let u=Yf(i);return u&&Object.keys(u).length>0&&(a.backendProxyPolicy=u),a}var Zf=hs(`config/changeConfigModeWithCodeCheck`,async(e,{dispatch:t,getState:n})=>{t(pp(e)),t(Cf.endpoints.editMe.initiate({email_builder_config:e})),await new Promise(e=>setTimeout(e,0));let r=n(),i=r.emailPageSlice?.isCodeMode;return r.configSlice?.config?.codeEnabled===!1&&i&&t(Zd(!1)),e}),Qf=H({name:Rf,initialState:()=>{let e={...zf,config:{...zf.config,mergeTags:void 0}};return{base:e.config,serverSide:{},user:{},advancedConfigs:{},config:e.config,page:e.page,project:e.project,pluginDefaultCommonStyles:void 0}},reducers:{setPage:(e,t)=>{e.page=t.payload},setAllConfigs:(e,{payload:t})=>{e.user=t.user,e.serverSide=t.serverSide,e.advancedConfigs={...t.advancedConfigs||{},...t.user?.advancedConfigs||{}},e.config=Xf(e)},changeConfigMode:(e,t)=>{e.user.mode=t.payload,e.config=Xf(e)},setInitialMergeTags:(e,t)=>{e.base.mergeTags=t.payload,e.config.mergeTags=At(Wf(e),`mergeTags`)},setMergeTags:(e,t)=>{e.user.mergeTags=t.payload,e.config.mergeTags=At(Wf(e),`mergeTags`)},setUserConfig:(e,{payload:t})=>{e.user=t,e.config=Xf(e)},updateUserConfig:(e,{payload:t})=>{e.user={...e.user,...t},e.config=Xf(e)},setProject:(e,t)=>{e.project=t.payload},setActiveNextButton:(e,t)=>{e.user.activeNextButton=t.payload,e.config.activeNextButton=At(Wf(e),`activeNextButton`)!==void 0},setPluginDefaultCommonStyles:(e,t)=>{t.payload===void 0?delete e.pluginDefaultCommonStyles:e.pluginDefaultCommonStyles=t.payload}},extraReducers:e=>{}}),$f=e=>e[Rf].config.mergeTags,ep=e=>e[Rf].config,tp=e=>e[Rf].page,np=e=>e[Rf].config.themes,rp=e=>e[Rf].config.styles,ip=e=>e[Rf].project,ap=e=>e[Rf].config.mode,op=e=>e[Rf].pluginDefaultCommonStyles,{setPage:sp,setAllConfigs:cp,updateUserConfig:lp,setUserConfig:up,setProject:dp,setMergeTags:fp,changeConfigMode:pp,setInitialMergeTags:mp,setActiveNextButton:hp,setPluginDefaultCommonStyles:gp}=Qf.actions,_p=eu({reducerPath:`emailsApi`,tagTypes:[`Emails`,`Email`,`EmailAutosaves`,`TemplateEmail`],baseQuery:xu({baseUrl:`https://app.emailmaker.ru/api/wp-json/wp/v2/`}),endpoints:e=>({getEmails:e.query({queryFn(e,t){let n=q(t),r={order:`desc`,orderby:`modified`},i={};if(e.notEmbed||(i._embed=``),e.projectId&&(i._embed=`author`,i._fields=`id,title,meta,emailtags,folder,group,modified,date,type,acf.lock,acf.project.ID,author,acf.is_template,_embedded`,r[`filter[meta_key]`]=`project`,r[`filter[meta_value]`]=e.projectId),e.fields&&(i._fields=e.fields),e.page&&(r.page=e.page),e.order&&(r.order=e.order),e.orderby&&(r.orderby=e.orderby),e.folderTag&&e.folderTag!==`all`?(r[`filter[tax_query][relation]`]=`AND`,r[`filter[tax_query][0][taxonomy]`]=`folder`,r[`filter[tax_query][0][field]`]=`id`,r[`filter[tax_query][0][terms]`]=e.folderTag,r[`filter[tax_query][0][include_children]`]=`0`):(e.folderTag!==`all`||typeof e.folderTag==`object`&&e.folderTag===null)&&!e.tags?.length&&e.status&&e.status!==`trash`&&(r[`filter[tax_query][0][taxonomy]`]=`folder`,r[`filter[tax_query][0][operator]`]=`NOT EXISTS`),e.tags?.length>0&&e.status!==`trash`){r[`filter[tax_query][relation]`]=`AND`;for(let t=0,n=e.tags.length;t<n;t++){let n=e.tags[t];r[`filter[tax_query][${t+1}][taxonomy]`]=`emailtags`,r[`filter[tax_query][${t+1}][field]`]=`id`,r[`filter[tax_query][${t+1}][terms]`]=n}}return e.name&&(r.search=e.name),e.pageSize&&(r.per_page=e.pageSize),e.status===`trash`&&(i.status=`trash`),n.wp.email_list(r,{extraQuery:i}).then(e=>Q(Ou)(e))},providesTags:(e,t,n,{response:r})=>{let i=r?.headers.get(`X-WP-Total`)||0;return e?[...e.map(({id:e})=>({type:`Emails`,id:`${n.folderTag||n.tags?.[0]||n.projectId}_${n.page}_${n.status}_${i}`})),{type:`Emails`,id:`${n.folderTag||n.tags?.[0]||n.projectId}_${n.page}_${n.status}_${i}`}]:[{type:`Emails`,id:`${n.folderTag||n.tags?.[0]||n.projectId}_${n.page}_${n.status}_${i}`}]},keepUnusedDataFor:0}),getTemplateEmails:e.query({queryFn(e,t){let n=q(t),r={"filter[meta_query][1][key]":`is_template`,"filter[meta_query][1][value]":`1`,"filter[meta_query][0][compare]":`LIKE`,orderby:`modified`,order:`desc`},i={_embed:`author,wp:term`,_fields:`_embedded,id,title,meta,emailtags,folder,group,modified,date,type,acf.lock,acf.project.ID,acf.is_template`};if(e.emailId&&(r[`filter[meta_query][0][key]`]=`parent_email`,r[`filter[meta_query][0][value]`]=e.emailId),e.fields&&(i._fields=e.fields),e.group?.length>0||e.projectGroup?.length>0){let t=[...e.group||[],...e.projectGroup||[]].reduce((e,{key:t,parentId:n})=>(e[n]||(e[n]=[]),e[n].push(String(t)),e),{}),n=Object.values(t).map(e=>e.sort());r[`filter[tax_query][relation]`]=`AND`,n.forEach((e,t)=>{r[`filter[tax_query][${t}][relation]`]=`OR`,e.forEach((e,n)=>{r[`filter[tax_query][${t}][${n}][taxonomy]`]=`group`,r[`filter[tax_query][${t}][${n}][field]`]=`id`,r[`filter[tax_query][${t}][${n}][terms]`]=e})})}if(e.tags?.length>0){r[`filter[tax_query][relation]`]=`AND`;for(let t=0,n=e.tags.length;t<n;t++){let n=e.tags[t];r[`filter[tax_query][${t}][taxonomy]`]=`emailtags`,r[`filter[tax_query][${t}][field]`]=`id`,r[`filter[tax_query][${t}][terms]`]=n}}if(e.type&&(r[`filter[meta_query][2][key]`]=`type`,r[`filter[meta_query][2][value]`]=e.type),e.name&&(r.search=e.name),e.pageSize&&(r.per_page=e.pageSize),e.page){r.page=e.page;let{groupsTemplateProjectTotal:n,groupsTemplateProjectTotalPages:i}=t.getState()?.projectSlice;if(!e.projectGroup?.length&&!e.group?.length&&i<e.page&&e.groupType===Di.ALL&&n&&i&&!e.projectId){let t=24-n%24+(e.page-(i+1))*24;t&&(r.page=1,r.offset=t)}}return e.projectId&&(r[`filter[meta_key]`]=`project`,r[`filter[meta_value]`]=e.projectId),n.wp.email_list(r,{extraQuery:i}).then(Q(Ou))},keepUnusedDataFor:0}),getEmail:e.query({queryFn(e,t){return q(t).wp.email_detail({id:Y(e)},{extraQuery:{_embed:`wp:term`,_fields:`_embedded,id,author,title,meta,emailtags,folder,group,modified,date,type,parent,date_gmt
30
30
  acf.description,
31
31
  acf.html,
32
32
  acf.common_styles,