@emailmaker/emailmaker 1.0.111-dev.1 → 1.0.111-dev.3

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 (83) hide show
  1. package/README.md +1 -1
  2. package/emailmaker-core.e8a446cd.js +1 -0
  3. package/emailmaker-esm.js +30 -1004
  4. package/emailmaker.js +4 -6
  5. package/iframe/js/amp.BFiiFM7T.js +1 -0
  6. package/iframe/js/chunk.oX6nCJbK.js +1 -1
  7. package/iframe/js/iframe-eblock.js +1 -1
  8. package/iframe/js/iframe.js +1 -1
  9. package/iframe/js/rules.BSaCN7eK.js +1 -1
  10. package/iframe/js/sanitize-html.Brggoo7U.js +1 -0
  11. package/monacoeditorwork/css.worker.bundle.js +1 -3
  12. package/monacoeditorwork/editor.worker.bundle.js +1 -3
  13. package/monacoeditorwork/html.worker.bundle.js +4 -6
  14. package/monacoeditorwork/json.worker.bundle.js +3 -5
  15. package/monacoeditorwork/ts.worker.bundle.js +3 -5
  16. package/package.json +1 -1
  17. package/react/index.js +1 -80
  18. package/runtime/@ant-design/pro-layout/index.js +1 -1
  19. package/runtime/antd/index.js +1 -1
  20. package/runtime/app-core/index.js +1 -1
  21. package/runtime/react-dom/client/index.js +1 -1
  22. package/runtime/react-dom/index.js +1 -1
  23. package/runtime/react-router-dom/index.js +1 -1
  24. package/runtime-core/index.js +64 -136
  25. package/static/core/{e2662f37.js → 10c65b49.js} +1 -1
  26. package/static/core/{f3de9e9a2.js → 1a135ad92.js} +6 -6
  27. package/static/core/{c5aeffb2.js → 1ce976fb.js} +2 -2
  28. package/static/core/337e81ef2.js +903 -0
  29. package/static/core/{4c0eea0d.js → 3915ee5d.js} +2 -2
  30. package/static/core/49a8aa01.js +47 -0
  31. package/static/core/4c9c4d012.js +596 -0
  32. package/static/core/{32f4e73e.js → 4f6c7c6b.js} +1 -1
  33. package/static/core/5017c0042.js +40 -0
  34. package/static/core/{7cc94064.js → 5cf42238.js} +1 -1
  35. package/static/core/{b733d3e7.js → 706f8931.js} +52 -54
  36. package/static/core/773c9c0b2.js +6 -0
  37. package/static/core/784d90d82.js +471 -0
  38. package/static/core/{8610aff1.js → 947fe6ad.js} +1 -1
  39. package/static/core/{a158dbe5.js → a73d3dfc.js} +1 -1
  40. package/static/core/ab2357622.js +3 -0
  41. package/static/core/{5859d2b82.js → afcbd8062.js} +1 -1
  42. package/static/core/{58073bbd.js → b2e7fac5.js} +1 -1
  43. package/static/core/{dfecb0b1.js → b7e39056.js} +1 -1
  44. package/static/core/{5aa6ffe0.js → b90a22a7.js} +1 -1
  45. package/static/core/{6aa2fc70.js → cc20a6bf.js} +2 -2
  46. package/static/core/{9476b2c7.js → d4368c3f.js} +1 -1
  47. package/static/core/{e14c4f64.js → d4fcbedb.js} +4 -6
  48. package/static/core/{480c2e5a.js → de29fcef.js} +5 -5
  49. package/static/core/{e45be63a2.js → e2c094522.js} +2 -2
  50. package/static/core/f5199bf32.js +3 -0
  51. package/static/core/f80dab8a.js +1 -0
  52. package/static/core/{3f396ad0.js → fbbf01d2.js} +1 -1
  53. package/static/esm/28a11e05.js +1 -0
  54. package/static/esm/48e604b0.js +1 -0
  55. package/static/esm/b09da19c.js +1 -0
  56. package/static/esm/d111d47f.js +1 -0
  57. package/static/runtime/client-DclOo982.js +1 -0
  58. package/static/runtime/dist-CQOUCSSc.js +2 -0
  59. package/static/runtime/{es-D9451PGN.js → es-B1Gd5vyV.js} +7 -7
  60. package/static/runtime/{es-B_QrCd0w.js → es-B9bjSlFv.js} +5 -5
  61. package/static/runtime/{react-dom-CHJrMg3F.js → react-dom-B_ktM7d0.js} +3 -3
  62. package/static/umd/3a623ceb.js +560 -0
  63. package/emailmaker-core.0e81adc5.js +0 -2
  64. package/iframe/js/amp.kRi8xP5B.js +0 -1
  65. package/iframe/js/sanitize-html.DnGOi7Ve.js +0 -1
  66. package/static/core/167feeb72.js +0 -477
  67. package/static/core/1e55fe352.js +0 -596
  68. package/static/core/293d4deb2.js +0 -3
  69. package/static/core/29b5e247.js +0 -47
  70. package/static/core/36daa25e2.js +0 -6
  71. package/static/core/77a4a5b42.js +0 -40
  72. package/static/core/7c89c88b2.js +0 -916
  73. package/static/core/e1d78bb3.js +0 -1
  74. package/static/core/f5f05aaa2.js +0 -3
  75. package/static/esm/21e5883f.js +0 -31
  76. package/static/esm/3239c2b2.js +0 -17
  77. package/static/esm/339a15a0.js +0 -30
  78. package/static/esm/8bd1b5bb.js +0 -28
  79. package/static/runtime/client-CjhXNXhR.js +0 -1
  80. package/static/runtime/dist-C64-v4Ip.js +0 -2
  81. package/static/umd/73d630dc.js +0 -560
  82. /package/iframe/{iframe-eblock.0e81adc5.html → iframe-eblock.e8a446cd.html} +0 -0
  83. /package/iframe/{iframe.0e81adc5.html → iframe.e8a446cd.html} +0 -0
package/emailmaker.js CHANGED
@@ -12,7 +12,7 @@
12
12
  })(typeof globalThis !== 'undefined' ? globalThis : typeof self !== 'undefined' ? self : this, function() {
13
13
  'use strict';
14
14
 
15
- var e=window.__emailmaker__||(window.__emailmaker__={});(function(){"use strict";if(e!==void 0&&e.define)return;e===void 0&&(window.__amdEnv={});var t={},n={},r={},i={},a={},o=`./`,s={};function c(e,t){var n=Error(`[AMD] Failed to load module "`+e+`"`+(t?`: `+t.message:``));return n.moduleId=e,n.cause=t,n}function l(e,t,n){var r=Error(`[AMD] Failed to resolve dependency "`+t+`" for module "`+e+`"`+(n?`: `+n.message:``));return r.moduleId=e,r.dependencyId=t,r.cause=n,r}function u(e){for(var t=String(e||``).split(`/`),n=[],r=0;r<t.length;r++){var i=t[r];if(!(!i||i===`.`)){if(i===`..`){n.length>0&&n.pop();continue}n.push(i)}}return n.join(`/`)}function d(e){var t=String(e||``).replace(/\\/g,`/`),n=String(o||`./`).replace(/\\/g,`/`);return n=n.replace(/^\.\/+/,``),n=n.replace(/^\/+/,``),n&&n.slice(-1)!==`/`&&(n+=`/`),n&&t.indexOf(n)===0&&(t=t.slice(n.length)),t.indexOf(`./`)===0&&(t=t.slice(2)),t}function f(e,t){var n=String(e||``);if(!n)return n;if(!(n.indexOf(`./`)===0||n.indexOf(`../`)===0))return d(u(n));var r=u(t||``),i=r?r.split(`/`):[];i.length>0&&i.pop();for(var a=n.split(`/`),o=0;o<a.length;o++){var s=a[o];if(!(!s||s===`.`)){if(s===`..`){i.length>0&&i.pop();continue}i.push(s)}}return d(i.join(`/`))}function p(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e)||e.indexOf(`//`)===0}function m(e){var t=String(e||``);if(!t||p(t))return t;try{var n=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return n?new URL(t,n).href:t}catch{return t}}function h(){var t=String(o||`./`);if(t.slice(-1)!==`/`&&(t+=`/`),p(t)||t.charAt(0)===`/`)return t;if(e!==void 0&&e&&e.publicPath)try{return new URL(t,m(e.publicPath)).href}catch{}return m(t)}function g(e,t){var n=f(e,t),r=h(),i=Object.prototype.hasOwnProperty.call(s,n)?String(s[n]||``):n;i.slice(-3)!==`.js`&&(i+=`.js`);try{return new URL(i,r).href}catch{return r+i}}function _(){if(typeof document>`u`)return``;var e=document.currentScript;if(e){var t=e.getAttribute(`data-amd-module-id`);if(t)return t}return``}function v(e,n,r){if(Array.isArray(e)?(r=n,n=e,e=_()):typeof e==`function`?(r=e,n=[],e=_()):typeof n==`function`&&(r=n,n=[]),!e)throw Error(`[AMD] Anonymous define() could not be associated with a module id`);e in t||(t[e]={deps:n||[],factory:r})}v.amd={async:!0};function y(){return function(){}}function b(e,t){return{id:e,exports:t,uri:g(e)}}function x(e,t,n,r){if(Array.isArray(e)){var i=Promise.all(e.map(function(e){return C(e,r)})).then(function(e){return t&&t.apply(null,e),e});return n&&i.catch(n),i}return C(e,r)}function S(e,o){if(Array.isArray(e))throw Error(`[AMD] syncRequire does not support dependency arrays`);var s=f(e,o);if(s in a)throw a[s];if(s in n)return n[s];if(s in r||s in i)throw c(s,Error(`Module is still loading asynchronously`));if(!(s in t))throw c(s,Error(`Module is not available for syncRequire`));return T(s)}function C(e,i){var o=f(e,i);return o in a?Promise.reject(a[o]):o in n?Promise.resolve(n[o]):o in r?r[o]:o in t?(r[o]=w(o),r[o]):(r[o]=D(o).then(function(){if(!(o in t)){var e=c(o,Error(`Module not defined after script load`));throw a[o]=e,e}return w(o)}).catch(function(e){delete r[o];var t=c(o,e);throw a[o]=t,t}),r[o])}function w(e){var i=t[e],o=E(e),s=y(),c=b(e,s);return Promise.all(i.deps.map(function(t){return t===`exports`?s:t===`require`?o:t===`module`?c:C(t,e).catch(function(n){throw l(e,t,n)})})).then(function(t){var a=i.factory.apply(null,t);return a&&typeof a.then==`function`?a.then(function(t){return n[e]=t===void 0?c.exports:t,delete r[e],n[e]}):(n[e]=a===void 0?c.exports:a,delete r[e],n[e])}).catch(function(t){throw delete r[e],a[e]=t,t})}function T(e){var r=t[e],i=E(e),o=y(),s=b(e,o);try{var u=r.deps.map(function(t){if(t===`exports`)return o;if(t===`require`)return i;if(t===`module`)return s;try{return S(t,e)}catch(n){throw l(e,t,n)}}),d=r.factory.apply(null,u);if(d&&typeof d.then==`function`)throw c(e,Error(`Module resolved asynchronously and cannot be syncRequired`));return n[e]=d===void 0?s.exports:d,n[e]}catch(t){throw a[e]=t,t}}function E(e){var r=function(r,i,a){if(Array.isArray(r))return x(r,i,a,e);var o=f(r,e);return o in n?n[o]:o in t?S(r,e):C(r,e)};return r.resolve=function(t){return f(t,e)},r.toUrl=function(t){return g(t,e)},r.sync=function(t){return S(t,e)},r}function D(e){if(e in i)return i[e];var t=g(e);return document.querySelector(`script[src="`+t+`"]`)?(i[e]=Promise.resolve(),i[e]):(i[e]=new Promise(function(n,r){var a=document.createElement(`script`);a.src=t,a.setAttribute(`data-amd-module-id`,e),a.async=!0,a.onload=function(){n()},a.onerror=function(){delete i[e],r(Error(`Failed to load script: `+t))},document.head.appendChild(a)}),i[e])}x.config=function(e){if(e.baseUrl&&(o=e.baseUrl),e.paths)for(var t in e.paths)Object.prototype.hasOwnProperty.call(e.paths,t)&&(s[t]=e.paths[t])},x.modules=t,x.resolved=n,x.errors=a,x.toUrl=g,x.sync=S,e.define=v,e.require=x,e.syncRequire=S})(),e.require.config({baseUrl:`./`,paths:{core:`emailmaker-core.0e81adc5.js`}});
15
+ var e=window.__emailmaker__||(window.__emailmaker__={});(function(){"use strict";if(e!==void 0&&e.define)return;e===void 0&&(window.__amdEnv={});var t={},n={},r={},i={},a={},o=`./`,s={};function c(e,t){var n=Error(`[AMD] Failed to load module "`+e+`"`+(t?`: `+t.message:``));return n.moduleId=e,n.cause=t,n}function l(e,t,n){var r=Error(`[AMD] Failed to resolve dependency "`+t+`" for module "`+e+`"`+(n?`: `+n.message:``));return r.moduleId=e,r.dependencyId=t,r.cause=n,r}function u(e){for(var t=String(e||``).split(`/`),n=[],r=0;r<t.length;r++){var i=t[r];if(!(!i||i===`.`)){if(i===`..`){n.length>0&&n.pop();continue}n.push(i)}}return n.join(`/`)}function d(e){var t=String(e||``).replace(/\\/g,`/`),n=String(o||`./`).replace(/\\/g,`/`);return n=n.replace(/^\.\/+/,``),n=n.replace(/^\/+/,``),n&&n.slice(-1)!==`/`&&(n+=`/`),n&&t.indexOf(n)===0&&(t=t.slice(n.length)),t.indexOf(`./`)===0&&(t=t.slice(2)),t}function f(e,t){var n=String(e||``);if(!n)return n;if(!(n.indexOf(`./`)===0||n.indexOf(`../`)===0))return d(u(n));var r=u(t||``),i=r?r.split(`/`):[];i.length>0&&i.pop();for(var a=n.split(`/`),o=0;o<a.length;o++){var s=a[o];if(!(!s||s===`.`)){if(s===`..`){i.length>0&&i.pop();continue}i.push(s)}}return d(i.join(`/`))}function p(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e)||e.indexOf(`//`)===0}function m(e){var t=String(e||``);if(!t||p(t))return t;try{var n=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return n?new URL(t,n).href:t}catch{return t}}function h(){var t=String(o||`./`);if(t.slice(-1)!==`/`&&(t+=`/`),p(t)||t.charAt(0)===`/`)return t;if(e!==void 0&&e&&e.publicPath)try{return new URL(t,m(e.publicPath)).href}catch{}return m(t)}function g(e,t){var n=f(e,t),r=h(),i=Object.prototype.hasOwnProperty.call(s,n)?String(s[n]||``):n;i.slice(-3)!==`.js`&&(i+=`.js`);try{return new URL(i,r).href}catch{return r+i}}function _(){if(typeof document>`u`)return``;var e=document.currentScript;if(e){var t=e.getAttribute(`data-amd-module-id`);if(t)return t}return``}function v(e,n,r){if(Array.isArray(e)?(r=n,n=e,e=_()):typeof e==`function`?(r=e,n=[],e=_()):typeof n==`function`&&(r=n,n=[]),!e)throw Error(`[AMD] Anonymous define() could not be associated with a module id`);e in t||(t[e]={deps:n||[],factory:r})}v.amd={async:!0};function y(){return function(){}}function b(e,t){return{id:e,exports:t,uri:g(e)}}function x(e,t,n,r){if(Array.isArray(e)){var i=Promise.all(e.map(function(e){return C(e,r)})).then(function(e){return t&&t.apply(null,e),e});return n&&i.catch(n),i}return C(e,r)}function S(e,o){if(Array.isArray(e))throw Error(`[AMD] syncRequire does not support dependency arrays`);var s=f(e,o);if(s in a)throw a[s];if(s in n)return n[s];if(s in r||s in i)throw c(s,Error(`Module is still loading asynchronously`));if(!(s in t))throw c(s,Error(`Module is not available for syncRequire`));return T(s)}function C(e,i){var o=f(e,i);return o in a?Promise.reject(a[o]):o in n?Promise.resolve(n[o]):o in r?r[o]:o in t?(r[o]=w(o),r[o]):(r[o]=D(o).then(function(){if(!(o in t)){var e=c(o,Error(`Module not defined after script load`));throw a[o]=e,e}return w(o)}).catch(function(e){delete r[o];var t=c(o,e);throw a[o]=t,t}),r[o])}function w(e){var i=t[e],o=E(e),s=y(),c=b(e,s);return Promise.all(i.deps.map(function(t){return t===`exports`?s:t===`require`?o:t===`module`?c:C(t,e).catch(function(n){throw l(e,t,n)})})).then(function(t){var a=i.factory.apply(null,t);return a&&typeof a.then==`function`?a.then(function(t){return n[e]=t===void 0?c.exports:t,delete r[e],n[e]}):(n[e]=a===void 0?c.exports:a,delete r[e],n[e])}).catch(function(t){throw delete r[e],a[e]=t,t})}function T(e){var r=t[e],i=E(e),o=y(),s=b(e,o);try{var u=r.deps.map(function(t){if(t===`exports`)return o;if(t===`require`)return i;if(t===`module`)return s;try{return S(t,e)}catch(n){throw l(e,t,n)}}),d=r.factory.apply(null,u);if(d&&typeof d.then==`function`)throw c(e,Error(`Module resolved asynchronously and cannot be syncRequired`));return n[e]=d===void 0?s.exports:d,n[e]}catch(t){throw a[e]=t,t}}function E(e){var r=function(r,i,a){if(Array.isArray(r))return x(r,i,a,e);var o=f(r,e);return o in n?n[o]:o in t?S(r,e):C(r,e)};return r.resolve=function(t){return f(t,e)},r.toUrl=function(t){return g(t,e)},r.sync=function(t){return S(t,e)},r}function D(e){if(e in i)return i[e];var t=g(e);return document.querySelector(`script[src="`+t+`"]`)?(i[e]=Promise.resolve(),i[e]):(i[e]=new Promise(function(n,r){var a=document.createElement(`script`);a.src=t,a.setAttribute(`data-amd-module-id`,e),a.async=!0,a.onload=function(){n()},a.onerror=function(){delete i[e],r(Error(`Failed to load script: `+t))},document.head.appendChild(a)}),i[e])}x.config=function(e){if(e.baseUrl&&(o=e.baseUrl),e.paths)for(var t in e.paths)Object.prototype.hasOwnProperty.call(e.paths,t)&&(s[t]=e.paths[t])},x.modules=t,x.resolved=n,x.errors=a,x.toUrl=g,x.sync=S,e.define=v,e.require=x,e.syncRequire=S})(),e.require.config({baseUrl:`./`,paths:{core:`emailmaker-core.e8a446cd.js`}});
16
16
 
17
17
  // PublicPath (script detection via document.currentScript)
18
18
  if (!__emailmaker__.publicPath) {
@@ -47,10 +47,9 @@ __emailmaker__.publicPath = (function() {
47
47
  })();
48
48
  }
49
49
 
50
- __emailmaker__.define("static/umd/90c7deca.js",["require","exports","module"],function(Y,u,H){var j=Object.create,f=Object.defineProperty,x=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyNames,D=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty,A=(e,t)=>()=>(e&&(t=e(e=0)),t),I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),m=(e,t)=>{let r={};for(var n in e)f(r,n,{get:e[n],enumerable:!0});return t||f(r,Symbol.toStringTag,{value:"Module"}),r},v=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=M(t),s=0,o=i.length,a;s<o;s++)a=i[s],!y.call(e,a)&&a!==r&&f(e,a,{get:(c=>t[c]).bind(null,a),enumerable:!(n=x(t,a))||n.enumerable});return e},L=(e,t,r)=>(r=e!=null?j(D(e)):{},v(t||!e||!e.__esModule?f(r,"default",{value:e,enumerable:!0}):r,e)),R=e=>y.call(e,"module.exports")?e["module.exports"]:v(f({},"__esModule",{value:!0}),e),d=class E{_isDisposed=!1;constructor(t=[]){this._inner=t}addDisposable(t){return this._inner.push(t),t instanceof E&&t.addDispose(()=>{this.removeDisposable(t)}),t}addDispose(t){this.addDisposable({dispose:t})}removeDisposable(t){const r=this._inner.indexOf(t);r>=0&&this._inner.splice(r,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(const t of[...this._inner])t.dispose()}}};function h(e){return`service_container_${e}`}var w=class p extends d{static _globalContainer=new this(null);_injectCallbacks=[];_injections=Object.create(null);static get globalContainer(){return this._globalContainer}_runCallbacks(t){this._injectCallbacks.forEach(r=>r(t))}constructor(t=p._globalContainer){super(),this._parent=t,t&&this.addDisposable(t.onInject(r=>this._runCallbacks(r)))}onInject=t=>(this._injectCallbacks.push(t),{dispose:()=>{const r=this._injectCallbacks.indexOf(t);r>=0&&this._injectCallbacks.splice(r,1)}});inject(t,r){this._injections[t]=()=>r,this._runCallbacks(t)}injectFactory(t,r,n){const i=this._injections[t];let s=typeof i=="function"?i():i;const o=this._injections[t]=()=>(s=r(this,s),s);n&&o(),this._runCallbacks(t)}_find(t,r=!0){return this._injections[t]||r&&this._parent?._find(t)}_onInject(t,r,n=new d){return n.addDisposable(this.onInject(i=>{t===i&&(n.dispose(),r(this.getInstance(i)))})),this._parent&&n.addDisposable(this._parent._onInject(t,r,n)),this.addDisposable(n),n}getInstance(t,r=!0){const n=this._find(t,r);if(typeof n=="function")return n()}getOrCreateInstance(t,r){const n=this._find(t);if(typeof n=="function")return n();const i=r(this);return this.inject(t,i),i}getInstanceAsync(t){const r=this._find(t);return typeof r=="function"?Promise.resolve(r()):new Promise(n=>this._onInject(t,()=>n(this.getInstance(t))))}addService(t,r){const n=h(t);this.injectFactory(n,(s,o=[])=>o.indexOf(r)<0?[...o,r]:o);const i=new d;return i.addDispose(()=>{this.injectFactory(n,(s,o=[])=>o.filter(a=>a!==r))}),i}addServiceFactory(t,r,n){const i=h(t);let s;this.injectFactory(i,(a,c=[])=>(s=r(a,s),s===void 0?c:c.indexOf(s)<0?[...c,s]:c),n);const o=new d;return o.addDispose(()=>{this.injectFactory(i,(a,c=[])=>s===void 0?c:c.filter(l=>l!==s))}),o}getServices(t){const r=h(t);return[...this.getInstance(r,!1)||[],...this._parent?.getServices(t)||[]]}createChild(){return new p(this)}getOrCreateIsolatedContainer(t){return this.getOrCreateInstance(t,()=>{const r=this._parent?.getOrCreateIsolatedContainer(t);return new p(r)})}dispose(){this._injections=Object.create(null)}};function P(){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(r){let n=Math.random()*16;return e>0?(n=(e+n)%16|0,e=Math.floor(e/16)):(n=(t+n)%16|0,t=Math.floor(t/16)),(r==="x"?n:n&3|8).toString(16)})}function B(e=P()){return e}var _="__diModuleEvalCount",b="__diDuplicateEvalWarned",g="__diModuleEvalRecords";function O(){return"umd".trim()||"unknown"}function $(){if(typeof globalThis>"u")return;const e=globalThis,t=O(),r=Array.isArray(e[g])?e[g]:[];r.push({buildSource:t,timestamp:Date.now(),stack:new Error().stack}),e[g]=r;const n=(typeof e[_]=="number"?e[_]:0)+1;if(e[_]=n,n<=1||e[b])return;e[b]=!0,typeof console<"u"&&typeof console.warn=="function"&&{message:"[di] runtime-core/di evaluated more than once (duplicate bundle / duplicate graph)",evalCount:n,buildSource:t,records:r}.message}function F(){const e="emailmaker".trim();if(!e)throw new Error("[di] REACT_APP_NAME is required for DependencyResolver diagnostics.");return`__${e}__`}function z(e){if($(),typeof globalThis>"u")return e;const t=F(),r=O(),n=globalThis,i=n[t]=n[t]||{},s=i.__diagnostics=i.__diagnostics||{},o=s.dependencyResolver=s.dependencyResolver||{entries:[],warnings:[]},a={container:e,source:"packages/runtime-core/di/index.ts",buildSource:r,timestamp:Date.now(),stack:new Error().stack};if(o.entries.push(a),o.entries.length>1){const c=o.entries[0];if(o.entries.some(l=>l.container!==c.container)&&!o.duplicateWarningShown){o.duplicateWarningShown=!0;const l={message:"[di] Multiple DependencyResolver instances detected",namespaceKey:t,buildSource:r,entries:o.entries};o.warnings.push(l),typeof console<"u"&&typeof console.warn=="function"&&l.message}}return e}var T=z(w.globalContainer),K=class S extends Error{code;httpStatus;details;constructor(t,r,n,i){super(t),this.name="FileManagerApiError",this.code=r,this.httpStatus=n,this.details=i;const s=Error.captureStackTrace;s&&s(this,S)}};function U(e,t="BackendError"){switch(e){case 400:return"ValidationError";case 401:return"AuthenticationFailed";case 403:return"AuthorizationFailed";case 404:return"FileNotFound";case 413:return"PayloadTooLarge";case 415:return"UnsupportedMediaType";case 429:return"RateLimitExceeded";case 500:return"BackendError";case 503:return"ServiceUnavailable";case 504:return"Timeout";default:return t}}var N=new Function("url","return import(url)");function q(e){if(typeof e!="function")return!1;try{return Reflect.construct(String,[],e),!0}catch{return!1}}function J(e){return typeof e=="object"&&e!==null&&"type"in e&&"url"in e}function Q(e){return e}var V=class{_map=new Map;_optionsMap=new Map;_readyMap=new Map;_resolveMap=new Map;_initializingPlugins=new Map;_creatingPlugins=new Set;_initializedPlugins=new Set;_creationOrder=[];_lifecycleListeners=new Set;_activated=!1;constructor(e,t){this._context=e,this._pluginRegistry=t}activate(){return this._activated=!0,this._startPluginsBatch(Array.from(this._map.values()))}activateSync(){this._activated=!0,this._startPluginsBatch(Array.from(this._map.values()))}onLifecycle(e){return this._lifecycleListeners.add(e),{dispose:()=>this._lifecycleListeners.delete(e)}}_emitLifecycle(e){for(const t of Array.from(this._lifecycleListeners))try{t(e)}catch{}}async _resolveEntry(e){if(typeof e=="string"||typeof e=="symbol"){const t=await this._pluginRegistry.getAsync(e);if(!t)throw new Error(`Plugin "${String(e)}" not registered.`);return{ctor:t}}if(typeof e=="function")return e.length===0?{ctor:await e()}:{ctor:e};if(Array.isArray(e)){const[t,r]=e;if(typeof t=="function")return{ctor:t,options:r};const n=await this._pluginRegistry.getAsync(t);if(!n)throw new Error(`Plugin "${String(t)}" not registered.`);return{ctor:n,options:r}}if(J(e))return this._resolveDescriptor(e);throw new Error(`Unknown plugin entry format: ${JSON.stringify(e)}`)}async _resolveDescriptor(e){const t=e.resolve??(e.type==="umd"?"window":"module");if(e.type==="esm"){const r=await N(e.url);if(t==="module")return{ctor:r.default??r};if(t==="registry"&&e.name){const n=await this._pluginRegistry.getAsync(e.name);if(!n)throw new Error(`Plugin "${e.name}" not found in registry after ESM load`);return{ctor:n}}}if(e.type==="umd"){if(await this._loadScript(e.url),t==="window"&&e.name){const r=globalThis[e.name];if(!r)throw new Error(`Plugin "${e.name}" not found on window after script load`);return{ctor:r}}if(t==="registry"&&e.name){const r=await this._pluginRegistry.getAsync(e.name);if(!r)throw new Error(`Plugin "${e.name}" not found in registry after script load`);return{ctor:r}}}throw new Error(`Cannot resolve descriptor: type=${e.type}, resolve=${t}, name=${e.name??"none"}`)}_loadScript(e){return new Promise((t,r)=>{if(typeof document>"u"){r(new Error("Cannot load UMD script in non-browser environment"));return}const n=document.createElement("script");n.src=e,n.onload=()=>t(),n.onerror=()=>r(new Error(`Failed to load script: ${e}`)),document.head.appendChild(n)})}initSync(e){const t=[];for(const r of e){const n=this._getOrCreate(r,void 0);t.push(n)}this._activated=!0,this._startPluginsBatch(t)}async init(e){const t=[],r=new Set;for(const n of e){const{ctor:i,options:s}=await this._resolveEntry(n),o=this._getOrCreate(i,s);r.has(o)||(r.add(o),t.push(o))}this._activated=!0,await this._startPluginsBatch(t)}async setPlugins(e){const t=new Set,r=[];for(const o of e){const a=await this._resolveEntry(o);t.add(a.ctor),r.push(a)}const n=[];this._map.forEach((o,a)=>{t.has(a)||n.push({key:a,plugin:o})});for(let o=n.length-1;o>=0;o--){const{key:a,plugin:c}=n[o];await this._initializingPlugins.get(c),await this._disposePlugin(c,c.constructor.name),this._map.delete(a),this._optionsMap.delete(a),this._readyMap.delete(c),this._resolveMap.delete(c),this._initializingPlugins.delete(c),this._initializedPlugins.delete(c);const l=this._creationOrder.indexOf(c);l>=0&&this._creationOrder.splice(l,1)}const i=[],s=new Set;for(const{ctor:o,options:a}of r){const c=this._getOrCreate(o,a);s.has(c)||(s.add(c),i.push(c))}this._activated=!0,await this._startPluginsBatch(i)}isReady(e){return this._initializedPlugins.has(e)}ready(e){return this._initializingPlugins.get(e)??this._readyMap.get(e)??Promise.resolve()}async waitFor(e,t){if(this._pluginRegistry.has(e))return this.useByKeyAsync(e);const{timeout:r}=t??{};return await new Promise((n,i)=>{let s,o=!1;const a=()=>{o||(o=!0,s&&clearTimeout(s),this._pluginRegistry.off(e,a),n())};this._pluginRegistry.on(e,a),r!==void 0&&r>0&&(s=setTimeout(()=>{o||(o=!0,this._pluginRegistry.off(e,a),i(new Error(`waitFor("${String(e)}") timed out after ${r}ms`)))},r))}),this.useByKeyAsync(e)}useByKey(e){const t=this._pluginRegistry.get(e);if(!t)throw new Error(`Plugin "${String(e)}" not registered or not loaded yet. Use useByKeyAsync() for async plugins.`);const r=this._getOrCreate(t);return this._activated&&this._startPluginsBatch([r]),r}async useByKeyAsync(e){const t=await this._pluginRegistry.getAsync(e);if(!t)throw new Error(`Plugin "${String(e)}" not registered.`);const r=this._getOrCreate(t);return this._activated&&await this._startPluginsBatch([r]),r}useByCtor(e,t){const r=this._getOrCreate(e,t);return this._activated&&this._startPluginsBatch([r]),r}use(e){return typeof e=="function"?this.useByCtor(e):this.useByKey(e)}async useAsync(e){const{ctor:t,options:r}=await this._resolveEntry(e),n=this._getOrCreate(t,r);return this._activated&&await this._startPluginsBatch([n]),n}_getOrCreate(e,t){const r=e;if(!this._map.has(r)){t!==void 0&&this._optionsMap.set(r,t);const n=this._optionsMap.get(r),i=this._createPluginInstance(e,n),s=i.constructor.name;this._emitLifecycle({type:"created",plugin:i,name:s}),i.required?.(),this._map.set(r,i),this._creationOrder.push(i),this._setupReadyPromise(i)}return this._map.get(r)}_createPluginInstance(e,t){const r=e;if(this._creatingPlugins.has(r))throw new Error(`Cyclic dependency for plugin ${e.name}`);this._creatingPlugins.add(r);try{return q(e)?new e(this._context,t):e(this._context,t)||{}}finally{this._creatingPlugins.delete(r)}}_setupReadyPromise(e){const t=new Promise(r=>{this._resolveMap.set(e,r)});this._readyMap.set(e,t)}async _startPluginsBatch(e){const t=Array.from(new Set(e)),r=new Set,n=[];for(const i of t){if(this._initializedPlugins.has(i))continue;const s=this._initializingPlugins.get(i);if(s){r.add(s);continue}n.push(i)}if(n.length>0){const i=this._runBatchLifecycle(n);for(const s of n)this._initializingPlugins.set(s,i);r.add(i),i.finally(()=>{for(const s of n)this._initializingPlugins.get(s)===i&&this._initializingPlugins.delete(s)})}await Promise.all(r)}async _runBatchLifecycle(e){const t=[];for(const r of e){const n=r.constructor.name;this._emitLifecycle({type:"init:start",plugin:r,name:n});try{await r.init?.(),this._emitLifecycle({type:"init:success",plugin:r,name:n}),t.push(r)}catch(i){this._emitLifecycle({type:"init:error",plugin:r,name:n,error:i}),console.error(`init() failed for ${n}:`,i)}}for(const r of t){const n=r.constructor.name;this._emitLifecycle({type:"afterInit:start",plugin:r,name:n});try{await r.afterInit?.(),this._emitLifecycle({type:"afterInit:success",plugin:r,name:n})}catch(i){this._emitLifecycle({type:"afterInit:error",plugin:r,name:n,error:i}),console.error(`afterInit() failed for ${n}:`,i)}}for(const r of e)this._initializedPlugins.add(r),this._resolveMap.get(r)?.(),this._resolveMap.delete(r)}async _disposePlugin(e,t){this._emitLifecycle({type:"dispose:start",plugin:e,name:t});try{await e.dispose?.(),this._emitLifecycle({type:"dispose:success",plugin:e,name:t})}catch(r){this._emitLifecycle({type:"dispose:error",plugin:e,name:t,error:r}),`${t}`}}async dispose(){for(let e=this._creationOrder.length-1;e>=0;e--){const t=this._creationOrder[e];await this._initializingPlugins.get(t),await this._disposePlugin(t,t.constructor.name)}this._map.clear(),this._optionsMap.clear(),this._readyMap.clear(),this._resolveMap.clear(),this._initializingPlugins.clear(),this._initializedPlugins.clear(),this._creationOrder.length=0,this._lifecycleListeners.clear()}getStatus(){return Array.from(this._map.values()).map(e=>({name:e.constructor.name,initialized:this._initializedPlugins.has(e)}))}},C=class{_plugins=new Map;_listeners=new Map;_getOrCreateEntry(e){let t=this._plugins.get(e);return t||(t={overrides:[]},this._plugins.set(e,t)),t}_applyOverrides(e,t){const r=this._plugins.get(e);if(r?.overrides)for(const n of r.overrides)t=n(t)||t;return t}_notifyListeners(e,t){const r=this._listeners.get(e);if(!r||r.length===0)return;for(const i of r)try{i.callback(t)}catch{`${String(e)}`}const n=r.filter(i=>!i.once);n.length>0?this._listeners.set(e,n):this._listeners.delete(e)}get(e){const t=this._plugins.get(e);if(t?.ctor)return this._applyOverrides(e,t.ctor)}async getAsync(e){const t=this._plugins.get(e);if(t?.ctor)return this._applyOverrides(e,t.ctor);if(t?.loading){const r=await t.loading;return this._applyOverrides(e,r)}if(t?.factory){const r=Promise.resolve(t.factory()).then(i=>(t.ctor=i,t.loading=void 0,this._notifyListeners(e,i),i));t.loading=r;const n=await r;return this._applyOverrides(e,n)}return new Promise(r=>{this.on(e,n=>r(this._applyOverrides(e,n)))})}add(e,t){const r=this._getOrCreateEntry(e);r.ctor=t,this._notifyListeners(e,t)}addAll(e){for(const t of Object.keys(e)){const r=e[t];r!==void 0&&this.add(t,r)}}addAsync(e,t){const r=this._getOrCreateEntry(e);return r.factory=t,{dispose:()=>{r.ctor||(r.factory=void 0)}}}has(e){const t=this._plugins.get(e);return!!(t?.ctor||t?.factory)}isLoaded(e){return!!this._plugins.get(e)?.ctor}override(e,t){const r=this._getOrCreateEntry(e);return r.overrides.push(t),{dispose:()=>{const n=r.overrides.indexOf(t);n>=0&&r.overrides.splice(n,1)}}}on(e,t){const r=this.get(e);r&&t(r);let n=this._listeners.get(e);n||(n=[],this._listeners.set(e,n));const i={callback:t,once:!1};return n.push(i),{dispose:()=>this._removeListener(e,t)}}once(e,t){const r=this.get(e);if(r)return t(r),{dispose:()=>{}};let n=this._listeners.get(e);n||(n=[],this._listeners.set(e,n));const i={callback:t,once:!0};return n.push(i),{dispose:()=>this._removeListener(e,t)}}off(e,t){this._removeListener(e,t)}_removeListener(e,t){const r=this._listeners.get(e);if(r){const n=r.findIndex(i=>i.callback===t);n>=0&&r.splice(n,1),r.length===0&&this._listeners.delete(e)}}keys(){return Array.from(this._plugins.keys())}forContext(){const e=this;return{add(t,r){e.add(t,r)}}}},W=m({PluginCollection:()=>V,PluginRegistry:()=>C});Object.defineProperty(u,"Container",{enumerable:!0,get:function(){return w}}),Object.defineProperty(u,"DependencyResolver",{enumerable:!0,get:function(){return T}}),Object.defineProperty(u,"Disposable",{enumerable:!0,get:function(){return d}}),Object.defineProperty(u,"FileManagerApiError",{enumerable:!0,get:function(){return K}}),Object.defineProperty(u,"PluginRegistry",{enumerable:!0,get:function(){return C}}),Object.defineProperty(u,"__commonJSMin",{enumerable:!0,get:function(){return I}}),Object.defineProperty(u,"__esmMin",{enumerable:!0,get:function(){return A}}),Object.defineProperty(u,"__exportAll",{enumerable:!0,get:function(){return m}}),Object.defineProperty(u,"__toCommonJS",{enumerable:!0,get:function(){return R}}),Object.defineProperty(u,"__toESM",{enumerable:!0,get:function(){return L}}),Object.defineProperty(u,"app_core_exports",{enumerable:!0,get:function(){return W}}),Object.defineProperty(u,"createIdentifier",{enumerable:!0,get:function(){return B}}),Object.defineProperty(u,"generateUUID",{enumerable:!0,get:function(){return P}}),Object.defineProperty(u,"getServiceContainerId",{enumerable:!0,get:function(){return h}}),Object.defineProperty(u,"mapHttpStatusToErrorCode",{enumerable:!0,get:function(){return U}})});
50
+ __emailmaker__.define(`static/umd/c3f6d4c8.js`,[`require`,`exports`,`module`],function(e,t,n){var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>()=>(e&&(t=e(e=0)),t),u=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),d=(e,t)=>{let n={};for(var r in e)i(n,r,{get:e[r],enumerable:!0});return t||i(n,Symbol.toStringTag,{value:`Module`}),n},f=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e},p=(e,t,n)=>(n=e==null?{}:r(s(e)),f(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e)),m=e=>c.call(e,`module.exports`)?e[`module.exports`]:f(i({},`__esModule`,{value:!0}),e),h=class e{_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 g(e){return`service_container_${e}`}var _=class e extends h{static _globalContainer=new this(null);_injectCallbacks=[];_injections=Object.create(null);static get globalContainer(){return this._globalContainer}_runCallbacks(e){this._injectCallbacks.forEach(t=>t(e))}constructor(t=e._globalContainer){super(),this._parent=t,t&&this.addDisposable(t.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 h){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=g(e);this.injectFactory(n,(e,n=[])=>n.indexOf(t)<0?[...n,t]:n);let r=new h;return r.addDispose(()=>{this.injectFactory(n,(e,n=[])=>n.filter(e=>e!==t))}),r}addServiceFactory(e,t,n){let r=g(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 h;return a.addDispose(()=>{this.injectFactory(r,(e,t=[])=>i===void 0?t:t.filter(e=>e!==i))}),a}getServices(e){let t=g(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 v(){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 y(e=v()){return e}var b=`__diModuleEvalCount`,x=`__diDuplicateEvalWarned`,S=`__diModuleEvalRecords`;function C(){return`umd`}function w(){if(typeof globalThis>`u`)return;let e=globalThis,t=C(),n=Array.isArray(e[S])?e[S]:[];n.push({buildSource:t,timestamp:Date.now(),stack:Error().stack}),e[S]=n;let r=(typeof e[b]==`number`?e[b]:0)+1;e[b]=r,!(r<=1||e[x])&&(e[x]=!0)}function T(){return`__emailmaker__`}function E(e){if(w(),typeof globalThis>`u`)return e;let t=T(),n=C(),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`,namespaceKey:t,buildSource:n,entries:o.entries};o.warnings.push(e)}}return e}var D=E(_.globalContainer),O=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)}};function k(e,t=`BackendError`){switch(e){case 400:return`ValidationError`;case 401:return`AuthenticationFailed`;case 403:return`AuthorizationFailed`;case 404:return`FileNotFound`;case 413:return`PayloadTooLarge`;case 415:return`UnsupportedMediaType`;case 429:return`RateLimitExceeded`;case 500:return`BackendError`;case 503:return`ServiceUnavailable`;case 504:return`Timeout`;default:return t}}var A=Function(`url`,`return import(url)`);function j(e){if(typeof e!=`function`)return!1;try{return Reflect.construct(String,[],e),!0}catch{return!1}}function M(e){return typeof e==`object`&&!!e&&`type`in e&&`url`in e}var N=class{_map=new Map;_optionsMap=new Map;_readyMap=new Map;_resolveMap=new Map;_initializingPlugins=new Map;_creatingPlugins=new Set;_initializedPlugins=new Set;_creationOrder=[];_lifecycleListeners=new Set;_activated=!1;constructor(e,t){this._context=e,this._pluginRegistry=t}activate(){return this._activated=!0,this._startPluginsBatch(Array.from(this._map.values()))}activateSync(){this._activated=!0,this._startPluginsBatch(Array.from(this._map.values()))}onLifecycle(e){return this._lifecycleListeners.add(e),{dispose:()=>this._lifecycleListeners.delete(e)}}_emitLifecycle(e){for(let t of Array.from(this._lifecycleListeners))try{t(e)}catch{}}async _resolveEntry(e){if(typeof e==`string`||typeof e==`symbol`){let t=await this._pluginRegistry.getAsync(e);if(!t)throw Error(`Plugin "${String(e)}" not registered.`);return{ctor:t}}if(typeof e==`function`)return e.length===0?{ctor:await e()}:{ctor:e};if(Array.isArray(e)){let[t,n]=e;if(typeof t==`function`)return{ctor:t,options:n};let r=await this._pluginRegistry.getAsync(t);if(!r)throw Error(`Plugin "${String(t)}" not registered.`);return{ctor:r,options:n}}if(M(e))return this._resolveDescriptor(e);throw Error(`Unknown plugin entry format: ${JSON.stringify(e)}`)}async _resolveDescriptor(e){let t=e.resolve??(e.type===`umd`?`window`:`module`);if(e.type===`esm`){let n=await A(e.url);if(t===`module`)return{ctor:n.default??n};if(t===`registry`&&e.name){let t=await this._pluginRegistry.getAsync(e.name);if(!t)throw Error(`Plugin "${e.name}" not found in registry after ESM load`);return{ctor:t}}}if(e.type===`umd`){if(await this._loadScript(e.url),t===`window`&&e.name){let t=globalThis[e.name];if(!t)throw Error(`Plugin "${e.name}" not found on window after script load`);return{ctor:t}}if(t===`registry`&&e.name){let t=await this._pluginRegistry.getAsync(e.name);if(!t)throw Error(`Plugin "${e.name}" not found in registry after script load`);return{ctor:t}}}throw Error(`Cannot resolve descriptor: type=${e.type}, resolve=${t}, name=${e.name??`none`}`)}_loadScript(e){return new Promise((t,n)=>{if(typeof document>`u`){n(Error(`Cannot load UMD script in non-browser environment`));return}let r=document.createElement(`script`);r.src=e,r.onload=()=>t(),r.onerror=()=>n(Error(`Failed to load script: ${e}`)),document.head.appendChild(r)})}initSync(e){let t=[];for(let n of e){let e=this._getOrCreate(n,void 0);t.push(e)}this._activated=!0,this._startPluginsBatch(t)}async init(e){let t=[],n=new Set;for(let r of e){let{ctor:e,options:i}=await this._resolveEntry(r),a=this._getOrCreate(e,i);n.has(a)||(n.add(a),t.push(a))}this._activated=!0,await this._startPluginsBatch(t)}async setPlugins(e){let t=new Set,n=[];for(let r of e){let e=await this._resolveEntry(r);t.add(e.ctor),n.push(e)}let r=[];this._map.forEach((e,n)=>{t.has(n)||r.push({key:n,plugin:e})});for(let e=r.length-1;e>=0;e--){let{key:t,plugin:n}=r[e];await this._initializingPlugins.get(n),await this._disposePlugin(n,n.constructor.name),this._map.delete(t),this._optionsMap.delete(t),this._readyMap.delete(n),this._resolveMap.delete(n),this._initializingPlugins.delete(n),this._initializedPlugins.delete(n);let i=this._creationOrder.indexOf(n);i>=0&&this._creationOrder.splice(i,1)}let i=[],a=new Set;for(let{ctor:e,options:t}of n){let n=this._getOrCreate(e,t);a.has(n)||(a.add(n),i.push(n))}this._activated=!0,await this._startPluginsBatch(i)}isReady(e){return this._initializedPlugins.has(e)}ready(e){return this._initializingPlugins.get(e)??this._readyMap.get(e)??Promise.resolve()}async waitFor(e,t){if(this._pluginRegistry.has(e))return this.useByKeyAsync(e);let{timeout:n}=t??{};return await new Promise((t,r)=>{let i,a=!1,o=()=>{a||(a=!0,i&&clearTimeout(i),this._pluginRegistry.off(e,o),t())};this._pluginRegistry.on(e,o),n!==void 0&&n>0&&(i=setTimeout(()=>{a||(a=!0,this._pluginRegistry.off(e,o),r(Error(`waitFor("${String(e)}") timed out after ${n}ms`)))},n))}),this.useByKeyAsync(e)}useByKey(e){let t=this._pluginRegistry.get(e);if(!t)throw Error(`Plugin "${String(e)}" not registered or not loaded yet. Use useByKeyAsync() for async plugins.`);let n=this._getOrCreate(t);return this._activated&&this._startPluginsBatch([n]),n}async useByKeyAsync(e){let t=await this._pluginRegistry.getAsync(e);if(!t)throw Error(`Plugin "${String(e)}" not registered.`);let n=this._getOrCreate(t);return this._activated&&await this._startPluginsBatch([n]),n}useByCtor(e,t){let n=this._getOrCreate(e,t);return this._activated&&this._startPluginsBatch([n]),n}use(e){return typeof e==`function`?this.useByCtor(e):this.useByKey(e)}async useAsync(e){let{ctor:t,options:n}=await this._resolveEntry(e),r=this._getOrCreate(t,n);return this._activated&&await this._startPluginsBatch([r]),r}_getOrCreate(e,t){let n=e;if(!this._map.has(n)){t!==void 0&&this._optionsMap.set(n,t);let r=this._optionsMap.get(n),i=this._createPluginInstance(e,r),a=i.constructor.name;this._emitLifecycle({type:`created`,plugin:i,name:a}),i.required?.(),this._map.set(n,i),this._creationOrder.push(i),this._setupReadyPromise(i)}return this._map.get(n)}_createPluginInstance(e,t){let n=e;if(this._creatingPlugins.has(n))throw Error(`Cyclic dependency for plugin ${e.name}`);this._creatingPlugins.add(n);try{return j(e)?new e(this._context,t):e(this._context,t)||{}}finally{this._creatingPlugins.delete(n)}}_setupReadyPromise(e){let t=new Promise(t=>{this._resolveMap.set(e,t)});this._readyMap.set(e,t)}async _startPluginsBatch(e){let t=Array.from(new Set(e)),n=new Set,r=[];for(let e of t){if(this._initializedPlugins.has(e))continue;let t=this._initializingPlugins.get(e);if(t){n.add(t);continue}r.push(e)}if(r.length>0){let e=this._runBatchLifecycle(r);for(let t of r)this._initializingPlugins.set(t,e);n.add(e),e.finally(()=>{for(let t of r)this._initializingPlugins.get(t)===e&&this._initializingPlugins.delete(t)})}await Promise.all(n)}async _runBatchLifecycle(e){let t=[];for(let n of e){let e=n.constructor.name;this._emitLifecycle({type:`init:start`,plugin:n,name:e});try{await n.init?.(),this._emitLifecycle({type:`init:success`,plugin:n,name:e}),t.push(n)}catch(t){this._emitLifecycle({type:`init:error`,plugin:n,name:e,error:t})}}for(let e of t){let t=e.constructor.name;this._emitLifecycle({type:`afterInit:start`,plugin:e,name:t});try{await e.afterInit?.(),this._emitLifecycle({type:`afterInit:success`,plugin:e,name:t})}catch(n){this._emitLifecycle({type:`afterInit:error`,plugin:e,name:t,error:n})}}for(let t of e)this._initializedPlugins.add(t),this._resolveMap.get(t)?.(),this._resolveMap.delete(t)}async _disposePlugin(e,t){this._emitLifecycle({type:`dispose:start`,plugin:e,name:t});try{await e.dispose?.(),this._emitLifecycle({type:`dispose:success`,plugin:e,name:t})}catch(n){this._emitLifecycle({type:`dispose:error`,plugin:e,name:t,error:n})}}async dispose(){for(let e=this._creationOrder.length-1;e>=0;e--){let t=this._creationOrder[e];await this._initializingPlugins.get(t),await this._disposePlugin(t,t.constructor.name)}this._map.clear(),this._optionsMap.clear(),this._readyMap.clear(),this._resolveMap.clear(),this._initializingPlugins.clear(),this._initializedPlugins.clear(),this._creationOrder.length=0,this._lifecycleListeners.clear()}getStatus(){return Array.from(this._map.values()).map(e=>({name:e.constructor.name,initialized:this._initializedPlugins.has(e)}))}},P=class{_plugins=new Map;_listeners=new Map;_getOrCreateEntry(e){let t=this._plugins.get(e);return t||(t={overrides:[]},this._plugins.set(e,t)),t}_applyOverrides(e,t){let n=this._plugins.get(e);if(n?.overrides)for(let e of n.overrides)t=e(t)||t;return t}_notifyListeners(e,t){let n=this._listeners.get(e);if(!n||n.length===0)return;for(let e of n)try{e.callback(t)}catch{}let r=n.filter(e=>!e.once);r.length>0?this._listeners.set(e,r):this._listeners.delete(e)}get(e){let t=this._plugins.get(e);if(t?.ctor)return this._applyOverrides(e,t.ctor)}async getAsync(e){let t=this._plugins.get(e);if(t?.ctor)return this._applyOverrides(e,t.ctor);if(t?.loading){let n=await t.loading;return this._applyOverrides(e,n)}if(t?.factory){let n=Promise.resolve(t.factory()).then(n=>(t.ctor=n,t.loading=void 0,this._notifyListeners(e,n),n));t.loading=n;let r=await n;return this._applyOverrides(e,r)}return new Promise(t=>{this.on(e,n=>t(this._applyOverrides(e,n)))})}add(e,t){let n=this._getOrCreateEntry(e);n.ctor=t,this._notifyListeners(e,t)}addAll(e){for(let t of Object.keys(e)){let n=e[t];n!==void 0&&this.add(t,n)}}addAsync(e,t){let n=this._getOrCreateEntry(e);return n.factory=t,{dispose:()=>{n.ctor||(n.factory=void 0)}}}has(e){let t=this._plugins.get(e);return!!(t?.ctor||t?.factory)}isLoaded(e){return!!this._plugins.get(e)?.ctor}override(e,t){let n=this._getOrCreateEntry(e);return n.overrides.push(t),{dispose:()=>{let e=n.overrides.indexOf(t);e>=0&&n.overrides.splice(e,1)}}}on(e,t){let n=this.get(e);n&&t(n);let r=this._listeners.get(e);r||(r=[],this._listeners.set(e,r));let i={callback:t,once:!1};return r.push(i),{dispose:()=>this._removeListener(e,t)}}once(e,t){let n=this.get(e);if(n)return t(n),{dispose:()=>{}};let r=this._listeners.get(e);r||(r=[],this._listeners.set(e,r));let i={callback:t,once:!0};return r.push(i),{dispose:()=>this._removeListener(e,t)}}off(e,t){this._removeListener(e,t)}_removeListener(e,t){let n=this._listeners.get(e);if(n){let r=n.findIndex(e=>e.callback===t);r>=0&&n.splice(r,1),n.length===0&&this._listeners.delete(e)}}keys(){return Array.from(this._plugins.keys())}forContext(){let e=this;return{add(t,n){e.add(t,n)}}}},F=d({PluginCollection:()=>N,PluginRegistry:()=>P});Object.defineProperty(t,`a`,{enumerable:!0,get:function(){return D}}),Object.defineProperty(t,`c`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(t,`d`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(t,`f`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(t,`h`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(t,`i`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(t,`l`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(t,`m`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(t,`n`,{enumerable:!0,get:function(){return P}}),Object.defineProperty(t,`o`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(t,`p`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(t,`r`,{enumerable:!0,get:function(){return O}}),Object.defineProperty(t,`s`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(t,`t`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(t,`u`,{enumerable:!0,get:function(){return h}})});
51
51
 
52
-
53
- __emailmaker__.define("emailmaker.js",["require","exports","module","static/umd/90c7deca.js"],function(O,R,Ae){Object.defineProperties(R,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const v=O("./static/umd/90c7deca.js");var V=null,B="core";function G(){return typeof __emailmaker__?.require!="function"?Promise.reject(new Error("[loadEngine] AMD loader is unavailable")):new Promise((n,l)=>{__emailmaker__.require([B],a=>n(a),a=>l(a instanceof Error?a:new Error("[loadEngine] Failed to require core module")))})}function E(){return V||(V=G()),V}var j=null,P=null;async function F(n){typeof n?.prefetch=="function"&&await n.prefetch()}function L(){return j||(j=E().then(()=>{})),j}function M(n){return P||(P=F(n)),P}function U(n){return Promise.all([L(),M(n)]).then(()=>{})}function $(n){const l=n?.startupPrefetchMode;return l==="eager"||l==="idle"||l==="manual"||l==="off"?l:"eager"}function S(n){Promise.resolve().then(()=>U(n)).catch(()=>{})}function K(n){Promise.resolve().then(()=>M(n)).catch(()=>{})}function Z(n){const l=$(n);if(l==="eager")S(n);else if(l==="idle"){const a=window.requestIdleCallback;typeof a=="function"?a(()=>S(n),{timeout:1500}):setTimeout(()=>S(n),0)}}function A(n){return v.createIdentifier(n)}var Ce=v.createIdentifier(),we=A("HANDLE_ATOM_INSERT"),Ve=v.createIdentifier(),Ee=v.createIdentifier("MESSAGE_SERVICE"),je=A("SETTINGS_PANEL_EVENT"),Pe=A("MODAL_SHOW_EVENT"),Se=A("MODAL_CLOSE_EVENT"),Te=A("MODAL_UPDATE_EVENT"),xe=v.createIdentifier("client"),Ie=v.createIdentifier("ai_client"),Oe=v.createIdentifier(),Le=v.createIdentifier(),Me=v.createIdentifier("autosave-recovery"),Y=v.createIdentifier("PluginRegistry");function X(n=v.DependencyResolver){return n.getOrCreateInstance(Y,()=>new v.PluginRegistry)}var Q=X(),C=new WeakMap,ee="data-emailmaker-config-styles";function re(n){return typeof n=="string"?n.trim():""}function N(n,l){if(n.firstChild){n.insertBefore(l,n.firstChild);return}n.appendChild(l)}function ne(n,l,a){if(!n||typeof document>"u")return null;const s=re(l),c=C.get(n),m=a||n;if(!s)return c&&(c.remove(),C.delete(n)),null;if(c)return c.textContent!==s&&(c.textContent=s),(c.parentNode!==m||c!==m.firstChild)&&N(m,c),c;const u=document.createElement("style");return u.setAttribute(ee,"true"),u.textContent=s,N(m,u),C.set(n,u),u}function te(n){if(!n)return;const l=C.get(n);l&&(l.remove(),C.delete(n))}function ae(n,l){if(typeof n<"u")if(typeof n=="string"){if(n=document.querySelector(n),n)return n;const a=l.addDisposable(new v.Disposable);return new Promise((s,c)=>{const m=new MutationObserver(()=>{n=document.querySelector(n),n&&(a.dispose(),s(n))});m.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),a.addDisposable({dispose:()=>m.disconnect()})})}else return n;else return n}var _=new Map,Ue=28,ie=`
52
+ __emailmaker__.define(`emailmaker.js`,[`require`,`exports`,`module`,`static/umd/c3f6d4c8.js`],function(e,t,n){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});let r=e(`./static/umd/c3f6d4c8.js`);var i=null,a=`core`;function o(){return typeof __emailmaker__?.require==`function`?new Promise((e,t)=>{__emailmaker__.require([a],t=>e(t),e=>t(e instanceof Error?e:Error(`[loadEngine] Failed to require core module`)))}):Promise.reject(Error(`[loadEngine] AMD loader is unavailable`))}function s(){return i||=o(),i}var c=null,l=null;async function u(e){typeof e?.prefetch==`function`&&await e.prefetch()}function d(){return c||=s().then(()=>{}),c}function f(e){return l||=u(e),l}function p(e){return Promise.all([d(),f(e)]).then(()=>{})}function m(e){let t=e?.startupPrefetchMode;return t===`eager`||t===`idle`||t===`manual`||t===`off`?t:`eager`}function h(e){Promise.resolve().then(()=>p(e)).catch(()=>{})}function g(e){Promise.resolve().then(()=>f(e)).catch(()=>{})}function _(e){let t=m(e);if(t===`eager`)h(e);else if(t===`idle`){let t=window.requestIdleCallback;typeof t==`function`?t(()=>h(e),{timeout:1500}):setTimeout(()=>h(e),0)}}function v(e){return r.o(e)}r.o(),v(`HANDLE_ATOM_INSERT`),r.o(),r.o(`MESSAGE_SERVICE`),v(`SETTINGS_PANEL_EVENT`),v(`MODAL_SHOW_EVENT`),v(`MODAL_CLOSE_EVENT`),v(`MODAL_UPDATE_EVENT`),r.o(`client`),r.o(`ai_client`),r.o(),r.o(),r.o(`autosave-recovery`);var y=r.o(`PluginRegistry`);function b(e=r.a){return e.getOrCreateInstance(y,()=>new r.n)}var x=b(),S=new WeakMap,C=`data-emailmaker-config-styles`;function w(e){return typeof e==`string`?e.trim():``}function T(e,t){if(e.firstChild){e.insertBefore(t,e.firstChild);return}e.appendChild(t)}function E(e,t,n){if(!e||typeof document>`u`)return null;let r=w(t),i=S.get(e),a=n||e;if(!r)return i&&(i.remove(),S.delete(e)),null;if(i)return i.textContent!==r&&(i.textContent=r),(i.parentNode!==a||i!==a.firstChild)&&T(a,i),i;let o=document.createElement(`style`);return o.setAttribute(C,`true`),o.textContent=r,T(a,o),S.set(e,o),o}function D(e){if(!e)return;let t=S.get(e);t&&(t.remove(),S.delete(e))}function O(e,t){if(typeof e<`u`)if(typeof e==`string`){if(e=document.querySelector(e),e)return e;let n=t.addDisposable(new r.u);return new Promise((t,r)=>{let i=new MutationObserver(()=>{e=document.querySelector(e),e&&(n.dispose(),t(e))});i.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),n.addDisposable({dispose:()=>i.disconnect()})})}else return e;else return e}var k=new Map,A=`
54
53
  .blocks-app-initial-spinner-wrapper {
55
54
  width: 100%;
56
55
  height: 100%;
@@ -79,8 +78,7 @@ __emailmaker__.define("emailmaker.js",["require","exports","module","static/umd/
79
78
  100% {
80
79
  transform: rotate(360deg);
81
80
  }
82
- }`;function oe(){return()=>{}}function ue(n,l){if(!n||typeof document>"u")return oe();n.querySelectorAll(".blocks-app-initial-spinner-wrapper").forEach(u=>{u.remove()});const a=document.createElement("div");a.classList.add("blocks-app-initial-spinner-wrapper");const s=document.createElement("div");s.classList.add("blocks-app-initial-spinner"),a.appendChild(s);const c=document.createElement("style");c.setAttribute(l,"true"),c.textContent=ie,document.head?.appendChild(c),n.appendChild(a);let m=!1;return()=>{m||(m=!0,a.remove(),c.remove())}}var J=new WeakMap,T=new Map;function z(n){const l=String(n||"").trim();if(l)return q(l);const a="https://app.emailmaker.ru/api/".trim();if(a)return q(a)}function q(n){let l=n;for(;l.endsWith("/");)l=l.slice(0,l.length-1);return`${l}/wp-json`}async function le(n){if(!n.getAuthToken)return;const l=await n.getAuthToken(n.user,n.project,void 0);return l?`Bearer ${l}`:void 0}function se(n){return async({baseUrl:l})=>{const a=z(l);if(!a)throw new Error("[Loader] appInit warmup requires baseUrl or REACT_APP_OPENAPI_BASE_URL");const s=new Headers({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}),c=await le(n);c&&s.set("authorization",c);const m=await fetch(`${a}/app/v1/app_init`,{method:"POST",headers:s,body:new URLSearchParams,credentials:"same-origin"});if(!m.ok)throw new Error(`[Loader] appInit request failed: ${m.status} ${m.statusText}`);return m.json()}}function ce(n){return JSON.stringify({baseUrl:z(n.baseUrl)||"",project:n.project??"",userId:n.user?.id??""})}function me(n){return async l=>{const a=ce(l),s=T.get(a);if(s)return s;const c=Promise.resolve(n(l)).catch(m=>{throw T.delete(a),m});return T.set(a,c),c}}function fe(n){if(n.standaloneKey)return n;const l=n.appInit||se(n);let a=J.get(l);return a||(a=me(l),J.set(l,a)),Promise.resolve(a({baseUrl:n.baseUrl,user:n.user,project:n.project,prevApp:void 0})).catch(s=>{}),{...n,appInit:a}}var H=new WeakMap;function de(n){let l=null;return async(a,s,c)=>(l||(l=Promise.resolve(n(a,s,c)).finally(()=>{l=null})),l)}function pe(n){if(n.standaloneKey)return n;const l=n.getAuthToken;if(!l)return n;let a=H.get(l);return a||(a=de(l),H.set(l,a)),Promise.resolve(a(n.user,n.project,void 0)).catch(s=>{}),{...n,getAuthToken:a}}var ve=v.__exportAll({FileManagerApiError:()=>v.FileManagerApiError}),he=v.__exportAll({mapHttpStatusToErrorCode:()=>v.mapHttpStatusToErrorCode});(function(){"use strict";var n=window.__emailmaker__||(window.__emailmaker__={}),l=n.prefetch,a=n.modules&&typeof n.modules=="object"?n.modules:{},s=["React","ReactDom","ReactDomClient","ReactJsxRuntime","ReactJsxDevRuntime","PropTypes","ReactRouterDom","Antd","AntDesignIcons","AntDesignCssinjs","AntDesignProLayout","Classnames","Dayjs","Uuid","Core","AppCore"],c=n.__diagnostics||(n.__diagnostics={}),m=c.runtimeLoads||(c.runtimeLoads={entries:[],warnings:[]});window.__emailmaker__.publicPath||(window.__emailmaker__.publicPath=(function(){var i=(function(){try{var e={}.url;return e.substring(0,e.lastIndexOf("/")+1)}catch{return"./"}})();i||(i="./");try{var h=String(i);if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(h)||h.indexOf("//")===0)return h;var o=typeof document<"u"&&document.baseURI?document.baseURI:typeof window<"u"&&window.location?window.location.href:"";return o?new URL(h,o).href:h}catch{return String(i)}})()),window.__emailmaker__.assetUrl||(window.__emailmaker__.assetUrl=function(i){function h(k){try{var p=typeof document<"u"&&document.baseURI?document.baseURI:typeof window<"u"&&window.location?window.location.href:"";return p?new URL(String(k||""),p).href:String(k||"")}catch{return String(k||"")}}var o=String(i||"");if(!o)return"";if(/^(?:data:|blob:)/.test(o))return o;if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(o)||o.indexOf("//")===0||o.charAt(0)==="/")return h(o);var e=o.replace(/^\.\/+/,"").replace(/^\/+/,""),t="static/media".replace(/^\.\/+/,"").replace(/^\/+/,"").replace(/\/+$/,""),r=t&&e.indexOf(t+"/")!==0?t+"/"+e:e,g=window.__emailmaker__.publicPath||"./";try{return new URL(r,g).href}catch{return g.slice(-1)!=="/"&&(g+="/"),h(g+r)}});var u=Promise.resolve().then(()=>O("./static/umd/73d630dc.js")).then(function(i){for(var h in i)Object.prototype.hasOwnProperty.call(i,h)&&(a[h]=i[h]);return i}),d={source:"legacy-shared",modulesObject:a,modulesPromise:u,previousPrefetch:l,stack:new Error().stack,timestamp:Date.now()};if(m.entries.length>0){var f=m.entries[m.entries.length-1];if(f&&f.modulesObject!==a){var y={message:"[runtime] Duplicate runtime shared initialization detected",current:d,previous:f,timestamp:Date.now()};m.warnings.push(y),typeof console<"u"&&typeof console.warn=="function"&&y.message}}if(m.entries.push(d),n.modules=a,s.forEach(function(i){a[i]=u.then(function(h){var o=h[i];return a[i]=o,o})}),typeof n.define=="function"){let i=function(e){if(!e||typeof e!="object"&&typeof e!="function"||e.__esModule)return e;var t=Object.create(null);Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});for(var r=Reflect.ownKeys(e),g=0;g<r.length;g++){var k=r[g];if(k!=="__esModule"){var p=Object.getOwnPropertyDescriptor(e,k);p&&Object.defineProperty(t,k,p)}}return t},h=function(e,t){var r={message:e,payload:t,timestamp:Date.now()};w.warnings.push(r),I&&I.warnings&&I.warnings.push(r)},o=function(e,t,r,g,k){var p=w.byModuleId[e];p||(p=w.byModuleId[e]={moduleId:e,exportName:t,records:[],duplicateWarningShown:!1});var D=w.byExportName[t];D||(D=w.byExportName[t]={exportName:t,moduleIds:[],records:[]}),D.moduleIds.indexOf(e)<0&&D.moduleIds.push(e);var W={source:k,originalValue:r,resolvedValue:g,timestamp:Date.now(),stack:new Error().stack};return p.records.push(W),D.records.push(W),p.firstResolvedValue?(p.firstResolvedValue!==g&&p.firstOriginalValue!==r&&!p.duplicateWarningShown&&(p.duplicateWarningShown=!0,h("[runtime] Duplicate runtime module detected",{moduleId:e,exportName:t,first:{originalValue:p.firstOriginalValue,resolvedValue:p.firstResolvedValue},second:{originalValue:r,resolvedValue:g},records:p.records})),g):(p.firstResolvedValue=g,p.firstOriginalValue=r,g)};var b=n.__diagnostics||(n.__diagnostics={}),I=b.runtimeLoads||(b.runtimeLoads={entries:[],warnings:[]}),w=b.runtimeModules||(b.runtimeModules={byModuleId:Object.create(null),byExportName:Object.create(null),warnings:[]});n.define("react",[],function(){var e=a.React;return e&&typeof e.then=="function"?u.then(function(t){var r=t.React;return o("react","React",r,i(r),"barrel-promise")}):e!==void 0?o("react","React",e,i(e),"modules-cache"):u.then(function(t){var r=t.React;return o("react","React",r,i(r),"barrel-fallback")})}),n.define("@emailmaker/emailmaker/runtime/react",[],function(){var e=a.React;return e&&typeof e.then=="function"?u.then(function(t){var r=t.React;return o("@emailmaker/emailmaker/runtime/react","React",r,i(r),"barrel-promise")}):e!==void 0?o("@emailmaker/emailmaker/runtime/react","React",e,i(e),"modules-cache"):u.then(function(t){var r=t.React;return o("@emailmaker/emailmaker/runtime/react","React",r,i(r),"barrel-fallback")})}),n.define("react-dom",[],function(){var e=a.ReactDom;return e&&typeof e.then=="function"?u.then(function(t){var r=t.ReactDom;return o("react-dom","ReactDom",r,i(r),"barrel-promise")}):e!==void 0?o("react-dom","ReactDom",e,i(e),"modules-cache"):u.then(function(t){var r=t.ReactDom;return o("react-dom","ReactDom",r,i(r),"barrel-fallback")})}),n.define("@emailmaker/emailmaker/runtime/react-dom",[],function(){var e=a.ReactDom;return e&&typeof e.then=="function"?u.then(function(t){var r=t.ReactDom;return o("@emailmaker/emailmaker/runtime/react-dom","ReactDom",r,i(r),"barrel-promise")}):e!==void 0?o("@emailmaker/emailmaker/runtime/react-dom","ReactDom",e,i(e),"modules-cache"):u.then(function(t){var r=t.ReactDom;return o("@emailmaker/emailmaker/runtime/react-dom","ReactDom",r,i(r),"barrel-fallback")})}),n.define("react-dom/client",[],function(){var e=a.ReactDomClient;return e&&typeof e.then=="function"?u.then(function(t){var r=t.ReactDomClient;return o("react-dom/client","ReactDomClient",r,i(r),"barrel-promise")}):e!==void 0?o("react-dom/client","ReactDomClient",e,i(e),"modules-cache"):u.then(function(t){var r=t.ReactDomClient;return o("react-dom/client","ReactDomClient",r,i(r),"barrel-fallback")})}),n.define("@emailmaker/emailmaker/runtime/react-dom/client",[],function(){var e=a.ReactDomClient;return e&&typeof e.then=="function"?u.then(function(t){var r=t.ReactDomClient;return o("@emailmaker/emailmaker/runtime/react-dom/client","ReactDomClient",r,i(r),"barrel-promise")}):e!==void 0?o("@emailmaker/emailmaker/runtime/react-dom/client","ReactDomClient",e,i(e),"modules-cache"):u.then(function(t){var r=t.ReactDomClient;return o("@emailmaker/emailmaker/runtime/react-dom/client","ReactDomClient",r,i(r),"barrel-fallback")})}),n.define("react/jsx-runtime",[],function(){var e=a.ReactJsxRuntime;return e&&typeof e.then=="function"?u.then(function(t){var r=t.ReactJsxRuntime;return o("react/jsx-runtime","ReactJsxRuntime",r,i(r),"barrel-promise")}):e!==void 0?o("react/jsx-runtime","ReactJsxRuntime",e,i(e),"modules-cache"):u.then(function(t){var r=t.ReactJsxRuntime;return o("react/jsx-runtime","ReactJsxRuntime",r,i(r),"barrel-fallback")})}),n.define("@emailmaker/emailmaker/runtime/react/jsx-runtime",[],function(){var e=a.ReactJsxRuntime;return e&&typeof e.then=="function"?u.then(function(t){var r=t.ReactJsxRuntime;return o("@emailmaker/emailmaker/runtime/react/jsx-runtime","ReactJsxRuntime",r,i(r),"barrel-promise")}):e!==void 0?o("@emailmaker/emailmaker/runtime/react/jsx-runtime","ReactJsxRuntime",e,i(e),"modules-cache"):u.then(function(t){var r=t.ReactJsxRuntime;return o("@emailmaker/emailmaker/runtime/react/jsx-runtime","ReactJsxRuntime",r,i(r),"barrel-fallback")})}),n.define("react/jsx-dev-runtime",[],function(){var e=a.ReactJsxDevRuntime;return e&&typeof e.then=="function"?u.then(function(t){var r=t.ReactJsxDevRuntime;return o("react/jsx-dev-runtime","ReactJsxDevRuntime",r,i(r),"barrel-promise")}):e!==void 0?o("react/jsx-dev-runtime","ReactJsxDevRuntime",e,i(e),"modules-cache"):u.then(function(t){var r=t.ReactJsxDevRuntime;return o("react/jsx-dev-runtime","ReactJsxDevRuntime",r,i(r),"barrel-fallback")})}),n.define("@emailmaker/emailmaker/runtime/react/jsx-dev-runtime",[],function(){var e=a.ReactJsxDevRuntime;return e&&typeof e.then=="function"?u.then(function(t){var r=t.ReactJsxDevRuntime;return o("@emailmaker/emailmaker/runtime/react/jsx-dev-runtime","ReactJsxDevRuntime",r,i(r),"barrel-promise")}):e!==void 0?o("@emailmaker/emailmaker/runtime/react/jsx-dev-runtime","ReactJsxDevRuntime",e,i(e),"modules-cache"):u.then(function(t){var r=t.ReactJsxDevRuntime;return o("@emailmaker/emailmaker/runtime/react/jsx-dev-runtime","ReactJsxDevRuntime",r,i(r),"barrel-fallback")})}),n.define("prop-types",[],function(){var e=a.PropTypes;return e&&typeof e.then=="function"?u.then(function(t){var r=t.PropTypes;return o("prop-types","PropTypes",r,i(r),"barrel-promise")}):e!==void 0?o("prop-types","PropTypes",e,i(e),"modules-cache"):u.then(function(t){var r=t.PropTypes;return o("prop-types","PropTypes",r,i(r),"barrel-fallback")})}),n.define("@emailmaker/emailmaker/runtime/prop-types",[],function(){var e=a.PropTypes;return e&&typeof e.then=="function"?u.then(function(t){var r=t.PropTypes;return o("@emailmaker/emailmaker/runtime/prop-types","PropTypes",r,i(r),"barrel-promise")}):e!==void 0?o("@emailmaker/emailmaker/runtime/prop-types","PropTypes",e,i(e),"modules-cache"):u.then(function(t){var r=t.PropTypes;return o("@emailmaker/emailmaker/runtime/prop-types","PropTypes",r,i(r),"barrel-fallback")})}),n.define("react-router-dom",[],function(){var e=a.ReactRouterDom;return e&&typeof e.then=="function"?u.then(function(t){var r=t.ReactRouterDom;return o("react-router-dom","ReactRouterDom",r,i(r),"barrel-promise")}):e!==void 0?o("react-router-dom","ReactRouterDom",e,i(e),"modules-cache"):u.then(function(t){var r=t.ReactRouterDom;return o("react-router-dom","ReactRouterDom",r,i(r),"barrel-fallback")})}),n.define("@emailmaker/emailmaker/runtime/react-router-dom",[],function(){var e=a.ReactRouterDom;return e&&typeof e.then=="function"?u.then(function(t){var r=t.ReactRouterDom;return o("@emailmaker/emailmaker/runtime/react-router-dom","ReactRouterDom",r,i(r),"barrel-promise")}):e!==void 0?o("@emailmaker/emailmaker/runtime/react-router-dom","ReactRouterDom",e,i(e),"modules-cache"):u.then(function(t){var r=t.ReactRouterDom;return o("@emailmaker/emailmaker/runtime/react-router-dom","ReactRouterDom",r,i(r),"barrel-fallback")})}),n.define("antd",[],function(){var e=a.Antd;return e&&typeof e.then=="function"?u.then(function(t){var r=t.Antd;return o("antd","Antd",r,i(r),"barrel-promise")}):e!==void 0?o("antd","Antd",e,i(e),"modules-cache"):u.then(function(t){var r=t.Antd;return o("antd","Antd",r,i(r),"barrel-fallback")})}),n.define("@emailmaker/emailmaker/runtime/antd",[],function(){var e=a.Antd;return e&&typeof e.then=="function"?u.then(function(t){var r=t.Antd;return o("@emailmaker/emailmaker/runtime/antd","Antd",r,i(r),"barrel-promise")}):e!==void 0?o("@emailmaker/emailmaker/runtime/antd","Antd",e,i(e),"modules-cache"):u.then(function(t){var r=t.Antd;return o("@emailmaker/emailmaker/runtime/antd","Antd",r,i(r),"barrel-fallback")})}),n.define("@ant-design/icons",[],function(){var e=a.AntDesignIcons;return e&&typeof e.then=="function"?u.then(function(t){var r=t.AntDesignIcons;return o("@ant-design/icons","AntDesignIcons",r,i(r),"barrel-promise")}):e!==void 0?o("@ant-design/icons","AntDesignIcons",e,i(e),"modules-cache"):u.then(function(t){var r=t.AntDesignIcons;return o("@ant-design/icons","AntDesignIcons",r,i(r),"barrel-fallback")})}),n.define("@emailmaker/emailmaker/runtime/@ant-design/icons",[],function(){var e=a.AntDesignIcons;return e&&typeof e.then=="function"?u.then(function(t){var r=t.AntDesignIcons;return o("@emailmaker/emailmaker/runtime/@ant-design/icons","AntDesignIcons",r,i(r),"barrel-promise")}):e!==void 0?o("@emailmaker/emailmaker/runtime/@ant-design/icons","AntDesignIcons",e,i(e),"modules-cache"):u.then(function(t){var r=t.AntDesignIcons;return o("@emailmaker/emailmaker/runtime/@ant-design/icons","AntDesignIcons",r,i(r),"barrel-fallback")})}),n.define("@ant-design/cssinjs",[],function(){var e=a.AntDesignCssinjs;return e&&typeof e.then=="function"?u.then(function(t){var r=t.AntDesignCssinjs;return o("@ant-design/cssinjs","AntDesignCssinjs",r,i(r),"barrel-promise")}):e!==void 0?o("@ant-design/cssinjs","AntDesignCssinjs",e,i(e),"modules-cache"):u.then(function(t){var r=t.AntDesignCssinjs;return o("@ant-design/cssinjs","AntDesignCssinjs",r,i(r),"barrel-fallback")})}),n.define("@emailmaker/emailmaker/runtime/@ant-design/cssinjs",[],function(){var e=a.AntDesignCssinjs;return e&&typeof e.then=="function"?u.then(function(t){var r=t.AntDesignCssinjs;return o("@emailmaker/emailmaker/runtime/@ant-design/cssinjs","AntDesignCssinjs",r,i(r),"barrel-promise")}):e!==void 0?o("@emailmaker/emailmaker/runtime/@ant-design/cssinjs","AntDesignCssinjs",e,i(e),"modules-cache"):u.then(function(t){var r=t.AntDesignCssinjs;return o("@emailmaker/emailmaker/runtime/@ant-design/cssinjs","AntDesignCssinjs",r,i(r),"barrel-fallback")})}),n.define("@ant-design/pro-layout",[],function(){var e=a.AntDesignProLayout;return e&&typeof e.then=="function"?u.then(function(t){var r=t.AntDesignProLayout;return o("@ant-design/pro-layout","AntDesignProLayout",r,i(r),"barrel-promise")}):e!==void 0?o("@ant-design/pro-layout","AntDesignProLayout",e,i(e),"modules-cache"):u.then(function(t){var r=t.AntDesignProLayout;return o("@ant-design/pro-layout","AntDesignProLayout",r,i(r),"barrel-fallback")})}),n.define("@emailmaker/emailmaker/runtime/@ant-design/pro-layout",[],function(){var e=a.AntDesignProLayout;return e&&typeof e.then=="function"?u.then(function(t){var r=t.AntDesignProLayout;return o("@emailmaker/emailmaker/runtime/@ant-design/pro-layout","AntDesignProLayout",r,i(r),"barrel-promise")}):e!==void 0?o("@emailmaker/emailmaker/runtime/@ant-design/pro-layout","AntDesignProLayout",e,i(e),"modules-cache"):u.then(function(t){var r=t.AntDesignProLayout;return o("@emailmaker/emailmaker/runtime/@ant-design/pro-layout","AntDesignProLayout",r,i(r),"barrel-fallback")})}),n.define("classnames",[],function(){var e=a.Classnames;return e&&typeof e.then=="function"?u.then(function(t){var r=t.Classnames;return o("classnames","Classnames",r,i(r),"barrel-promise")}):e!==void 0?o("classnames","Classnames",e,i(e),"modules-cache"):u.then(function(t){var r=t.Classnames;return o("classnames","Classnames",r,i(r),"barrel-fallback")})}),n.define("@emailmaker/emailmaker/runtime/classnames",[],function(){var e=a.Classnames;return e&&typeof e.then=="function"?u.then(function(t){var r=t.Classnames;return o("@emailmaker/emailmaker/runtime/classnames","Classnames",r,i(r),"barrel-promise")}):e!==void 0?o("@emailmaker/emailmaker/runtime/classnames","Classnames",e,i(e),"modules-cache"):u.then(function(t){var r=t.Classnames;return o("@emailmaker/emailmaker/runtime/classnames","Classnames",r,i(r),"barrel-fallback")})}),n.define("dayjs",[],function(){var e=a.Dayjs;return e&&typeof e.then=="function"?u.then(function(t){var r=t.Dayjs;return o("dayjs","Dayjs",r,i(r),"barrel-promise")}):e!==void 0?o("dayjs","Dayjs",e,i(e),"modules-cache"):u.then(function(t){var r=t.Dayjs;return o("dayjs","Dayjs",r,i(r),"barrel-fallback")})}),n.define("@emailmaker/emailmaker/runtime/dayjs",[],function(){var e=a.Dayjs;return e&&typeof e.then=="function"?u.then(function(t){var r=t.Dayjs;return o("@emailmaker/emailmaker/runtime/dayjs","Dayjs",r,i(r),"barrel-promise")}):e!==void 0?o("@emailmaker/emailmaker/runtime/dayjs","Dayjs",e,i(e),"modules-cache"):u.then(function(t){var r=t.Dayjs;return o("@emailmaker/emailmaker/runtime/dayjs","Dayjs",r,i(r),"barrel-fallback")})}),n.define("uuid",[],function(){var e=a.Uuid;return e&&typeof e.then=="function"?u.then(function(t){var r=t.Uuid;return o("uuid","Uuid",r,i(r),"barrel-promise")}):e!==void 0?o("uuid","Uuid",e,i(e),"modules-cache"):u.then(function(t){var r=t.Uuid;return o("uuid","Uuid",r,i(r),"barrel-fallback")})}),n.define("@emailmaker/emailmaker/runtime/uuid",[],function(){var e=a.Uuid;return e&&typeof e.then=="function"?u.then(function(t){var r=t.Uuid;return o("@emailmaker/emailmaker/runtime/uuid","Uuid",r,i(r),"barrel-promise")}):e!==void 0?o("@emailmaker/emailmaker/runtime/uuid","Uuid",e,i(e),"modules-cache"):u.then(function(t){var r=t.Uuid;return o("@emailmaker/emailmaker/runtime/uuid","Uuid",r,i(r),"barrel-fallback")})}),n.define("di",[],function(){var e=a.Core;return e&&typeof e.then=="function"?u.then(function(t){var r=t.Core;return o("di","Core",r,i(r),"barrel-promise")}):e!==void 0?o("di","Core",e,i(e),"modules-cache"):u.then(function(t){var r=t.Core;return o("di","Core",r,i(r),"barrel-fallback")})}),n.define("@emailmaker/emailmaker/runtime-core",[],function(){var e=a.Core;return e&&typeof e.then=="function"?u.then(function(t){var r=t.Core;return o("@emailmaker/emailmaker/runtime-core","Core",r,i(r),"barrel-promise")}):e!==void 0?o("@emailmaker/emailmaker/runtime-core","Core",e,i(e),"modules-cache"):u.then(function(t){var r=t.Core;return o("@emailmaker/emailmaker/runtime-core","Core",r,i(r),"barrel-fallback")})}),n.define("@emailmaker/emailmaker/runtime/core",[],function(){var e=a.Core;return e&&typeof e.then=="function"?u.then(function(t){var r=t.Core;return o("@emailmaker/emailmaker/runtime/core","Core",r,i(r),"barrel-promise")}):e!==void 0?o("@emailmaker/emailmaker/runtime/core","Core",e,i(e),"modules-cache"):u.then(function(t){var r=t.Core;return o("@emailmaker/emailmaker/runtime/core","Core",r,i(r),"barrel-fallback")})}),n.define("disposable",[],function(){var e=a.Core;return e&&typeof e.then=="function"?u.then(function(t){var r=t.Core;return o("disposable","Core",r,i(r),"barrel-promise")}):e!==void 0?o("disposable","Core",e,i(e),"modules-cache"):u.then(function(t){var r=t.Core;return o("disposable","Core",r,i(r),"barrel-fallback")})}),n.define("guid",[],function(){var e=a.Core;return e&&typeof e.then=="function"?u.then(function(t){var r=t.Core;return o("guid","Core",r,i(r),"barrel-promise")}):e!==void 0?o("guid","Core",e,i(e),"modules-cache"):u.then(function(t){var r=t.Core;return o("guid","Core",r,i(r),"barrel-fallback")})}),n.define("errors-runtime",[],function(){var e=a.Core;return e&&typeof e.then=="function"?u.then(function(t){var r=t.Core;return o("errors-runtime","Core",r,i(r),"barrel-promise")}):e!==void 0?o("errors-runtime","Core",e,i(e),"modules-cache"):u.then(function(t){var r=t.Core;return o("errors-runtime","Core",r,i(r),"barrel-fallback")})}),n.define("app-core",[],function(){var e=a.AppCore;return e&&typeof e.then=="function"?u.then(function(t){var r=t.AppCore;return o("app-core","AppCore",r,i(r),"barrel-promise")}):e!==void 0?o("app-core","AppCore",e,i(e),"modules-cache"):u.then(function(t){var r=t.AppCore;return o("app-core","AppCore",r,i(r),"barrel-fallback")})}),n.define("@emailmaker/emailmaker/runtime/app-core",[],function(){var e=a.AppCore;return e&&typeof e.then=="function"?u.then(function(t){var r=t.AppCore;return o("@emailmaker/emailmaker/runtime/app-core","AppCore",r,i(r),"barrel-promise")}):e!==void 0?o("@emailmaker/emailmaker/runtime/app-core","AppCore",e,i(e),"modules-cache"):u.then(function(t){var r=t.AppCore;return o("@emailmaker/emailmaker/runtime/app-core","AppCore",r,i(r),"barrel-fallback")})})}n.prefetch=function(){return u.then(function(){if(typeof l=="function")return l()})}})(),(function(n){if(!(!n||typeof n!="object")){var l=n.__emailmaker__||(n.__emailmaker__={}),a=l.__compat||(l.__compat={});a.host=a.host||null,a.packages=a.packages||{},a.warned=a.warned||{},a.normalizeVersion||(a.normalizeVersion=function(s){return String(s||"").split("-")[0]||"0.0.0"}),a.parseVersion||(a.parseVersion=function(s){var c=a.normalizeVersion(s).split(".");return{major:parseInt(c[0]||"0",10),minor:parseInt(c[1]||"0",10),patch:parseInt(c[2]||"0",10)}}),a.compareVersions||(a.compareVersions=function(s,c){var m=a.parseVersion(s),u=a.parseVersion(c);return m.major!==u.major?m.major-u.major:m.minor!==u.minor?m.minor-u.minor:m.patch-u.patch}),a.satisfies||(a.satisfies=function(s,c){if(!c||c==="*"||c==="latest")return!0;var m=a.normalizeVersion(s),u=String(c||"").trim();if(!u)return!0;if(u.charAt(0)==="^"){var d=a.parseVersion(u.slice(1)),f=a.parseVersion(m);return a.compareVersions(m,u.slice(1))<0?!1:d.major>0?f.major===d.major:d.minor>0?f.major===0&&f.minor===d.minor:f.major===0&&f.minor===0&&f.patch===d.patch}return a.normalizeVersion(m)===a.normalizeVersion(u)}),a.warnOnce||(a.warnOnce=function(s,c,m){a.warned[s]||(a.warned[s]=!0)}),a.validateAll||(a.validateAll=function(){var s=a.host,c=a.packages||{};s&&s.supports&&Object.keys(c).forEach(function(m){var u=c[m],d=s.supports[m];d&&!a.satisfies(u.version,d)&&a.warnOnce("host:"+m+":"+u.version+":"+d,"Host supports a different package version range.",{packageId:m,packageVersion:u.version,supportedRange:d,hostVersion:s.version})}),Object.keys(c).forEach(function(m){var u=c[m],d=u.requires||{};Object.keys(d).forEach(function(f){var y=d[f],b=f==="host"?s&&s.version:c[f]&&c[f].version;b&&(a.satisfies(b,y)||a.warnOnce(m+":"+f+":"+b+":"+y,"Loaded package is outside the declared compatibility range.",{packageId:m,packageVersion:u.version,targetId:f,targetVersion:b,requiredRange:y}))})})}),a.registerHost||(a.registerHost=function(s){a.host=s,a.validateAll()}),a.registerPackage||(a.registerPackage=function(s){a.packages[s.id]=s,a.validateAll()}),l.__compat.registerHost({version:"1.0.111-dev.1",supports:{"extensions-api":"^0.9.0","extensions-react":"^0.9.0","extensions-sandbox":"^0.9.0"}})}})(typeof window<"u"?window:typeof globalThis<"u"?globalThis:void 0);function ge(n,l){return{...n,element:l}}function x(){return()=>{}}function ke(n){const l=n.element;return!l||typeof l=="string"||typeof document>"u"?x():(ne(l,n.config?.styles,l),()=>{te(l)})}function ye(n){if(n.initialSpinner===!1||typeof document>"u")return{options:n,cleanup:x()};const l=n.element;if(!l||typeof l=="string")return{options:n,cleanup:x()};l.querySelectorAll(".blocks-app-initial-spinner-wrapper").forEach(c=>{c.remove()});const a=ue(l,"data-emailmaker"),s=n.handleChunkLoaded;return{options:{...n,handleChunkLoaded:()=>{a(),s?.()}},cleanup:a}}var be="1.0.111-dev.1";async function Re(n){await U(typeof __emailmaker__<"u"?__emailmaker__:void 0)}async function _e(n){const l=new v.Disposable,a=await ae(n.element,l);l.dispose();const s=fe(pe(ge(n,a)));if(a){const f=_.get(a);if(f)try{const y=await f;if(y.getElement()===a)return y.reset(s)}catch{_.get(a)===f&&_.delete(a)}}const c=ke(s),m=ye(s),u=m.options;await L(),K(typeof __emailmaker__<"u"?__emailmaker__:void 0);const d=E().then(f=>f.init(u));a&&_.set(a,d);try{const f=await d;return a&&_.set(a,f),f}catch(f){throw c(),m.cleanup(),a&&_.get(a)===d&&_.delete(a),f}}async function De(n){return(await E()).parseAMP(n)}typeof window<"u"&&Z(typeof __emailmaker__<"u"?__emailmaker__:void 0),Object.defineProperty(R,"errors",{enumerable:!0,get:function(){return ve}}),Object.defineProperty(R,"helpers",{enumerable:!0,get:function(){return he}}),R.init=_e,R.parseAMP=De,R.pluginRegistry=Q,R.preload=Re,R.version=be});
83
-
81
+ }`;function j(){return()=>{}}function M(e,t){if(!e||typeof document>`u`)return j();e.querySelectorAll(`.blocks-app-initial-spinner-wrapper`).forEach(e=>{e.remove()});let n=document.createElement(`div`);n.classList.add(`blocks-app-initial-spinner-wrapper`);let r=document.createElement(`div`);r.classList.add(`blocks-app-initial-spinner`),n.appendChild(r);let i=document.createElement(`style`);i.setAttribute(t,`true`),i.textContent=A,document.head?.appendChild(i),e.appendChild(n);let a=!1;return()=>{a||(a=!0,n.remove(),i.remove())}}var N=new WeakMap,P=new Map;function F(e){return I(String(e||``).trim()||`https://app.emailmaker.ru/api/`)}function I(e){let t=e;for(;t.endsWith(`/`);)t=t.slice(0,t.length-1);return`${t}/wp-json`}async function L(e){if(!e.getAuthToken)return;let t=await e.getAuthToken(e.user,e.project,void 0);return t?`Bearer ${t}`:void 0}function R(e){return async({baseUrl:t})=>{let n=F(t);if(!n)throw Error(`[Loader] appInit warmup requires baseUrl or REACT_APP_OPENAPI_BASE_URL`);let r=new Headers({Accept:`application/json`,"Content-Type":`application/x-www-form-urlencoded;charset=UTF-8`}),i=await L(e);i&&r.set(`authorization`,i);let a=await fetch(`${n}/app/v1/app_init`,{method:`POST`,headers:r,body:new URLSearchParams,credentials:`same-origin`});if(!a.ok)throw Error(`[Loader] appInit request failed: ${a.status} ${a.statusText}`);return a.json()}}function z(e){return JSON.stringify({baseUrl:F(e.baseUrl)||``,project:e.project??``,userId:e.user?.id??``})}function B(e){return async t=>{let n=z(t),r=P.get(n);if(r)return r;let i=Promise.resolve(e(t)).catch(e=>{throw P.delete(n),e});return P.set(n,i),i}}function V(e){if(e.standaloneKey)return e;let t=e.appInit||R(e),n=N.get(t);return n||(n=B(t),N.set(t,n)),Promise.resolve(n({baseUrl:e.baseUrl,user:e.user,project:e.project,prevApp:void 0})).catch(e=>{}),{...e,appInit:n}}var H=new WeakMap;function U(e){let t=null;return async(n,r,i)=>(t||=Promise.resolve(e(n,r,i)).finally(()=>{t=null}),t)}function W(e){if(e.standaloneKey)return e;let t=e.getAuthToken;if(!t)return e;let n=H.get(t);return n||(n=U(t),H.set(t,n)),Promise.resolve(n(e.user,e.project,void 0)).catch(e=>{}),{...e,getAuthToken:n}}var G=r.p({FileManagerApiError:()=>r.r}),K=r.p({mapHttpStatusToErrorCode:()=>r.i});(function(){"use strict";var t=window.__emailmaker__||(window.__emailmaker__={}),n=t.prefetch,r=t.modules&&typeof t.modules==`object`?t.modules:{},i=[`React`,`ReactDom`,`ReactDomClient`,`ReactJsxRuntime`,`ReactJsxDevRuntime`,`PropTypes`,`ReactRouterDom`,`Antd`,`AntDesignIcons`,`AntDesignCssinjs`,`AntDesignProLayout`,`Classnames`,`Dayjs`,`Uuid`,`Core`,`AppCore`],a=t.__diagnostics||={},o=a.runtimeLoads||={entries:[],warnings:[]};window.__emailmaker__.publicPath||(window.__emailmaker__.publicPath=(function(){var e=(function(){try{var e={}.url;return e.substring(0,e.lastIndexOf(`/`)+1)}catch{return`./`}})();e||=`./`;try{var t=String(e);if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(t)||t.indexOf(`//`)===0)return t;var n=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return n?new URL(t,n).href:t}catch{return String(e)}})()),window.__emailmaker__.assetUrl||(window.__emailmaker__.assetUrl=function(e){function t(e){try{var t=typeof document<`u`&&document.baseURI?document.baseURI:typeof window<`u`&&window.location?window.location.href:``;return t?new URL(String(e||``),t).href:String(e||``)}catch{return String(e||``)}}var n=String(e||``);if(!n)return``;if(/^(?:data:|blob:)/.test(n))return n;if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(n)||n.indexOf(`//`)===0||n.charAt(0)===`/`)return t(n);var r=n.replace(/^\.\/+/,``).replace(/^\/+/,``),i=`static/media`.replace(/^\.\/+/,``).replace(/^\/+/,``).replace(/\/+$/,``),a=i&&r.indexOf(i+`/`)!==0?i+`/`+r:r,o=window.__emailmaker__.publicPath||`./`;try{return new URL(a,o).href}catch{return o.slice(-1)!==`/`&&(o+=`/`),t(o+a)}});var s=Promise.resolve().then(()=>e(`./static/umd/3a623ceb.js`)).then(function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return e}),c={source:`legacy-shared`,modulesObject:r,modulesPromise:s,previousPrefetch:n,stack:Error().stack,timestamp:Date.now()};if(o.entries.length>0){var l=o.entries[o.entries.length-1];if(l&&l.modulesObject!==r){var u={message:`[runtime] Duplicate runtime shared initialization detected`,current:c,previous:l,timestamp:Date.now()};o.warnings.push(u)}}if(o.entries.push(c),t.modules=r,i.forEach(function(e){r[e]=s.then(function(t){var n=t[e];return r[e]=n,n})}),typeof t.define==`function`){let e=function(e){if(!e||typeof e!=`object`&&typeof e!=`function`||e.__esModule)return e;var t=Object.create(null);Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});for(var n=Reflect.ownKeys(e),r=0;r<n.length;r++){var i=n[r];if(i!==`__esModule`){var a=Object.getOwnPropertyDescriptor(e,i);a&&Object.defineProperty(t,i,a)}}return t},n=function(e,t){var n={message:e,payload:t,timestamp:Date.now()};p.warnings.push(n),f&&f.warnings&&f.warnings.push(n)},i=function(e,t,r,i,a){var o=p.byModuleId[e];o||=p.byModuleId[e]={moduleId:e,exportName:t,records:[],duplicateWarningShown:!1};var s=p.byExportName[t];s||=p.byExportName[t]={exportName:t,moduleIds:[],records:[]},s.moduleIds.indexOf(e)<0&&s.moduleIds.push(e);var c={source:a,originalValue:r,resolvedValue:i,timestamp:Date.now(),stack:Error().stack};return o.records.push(c),s.records.push(c),o.firstResolvedValue?(o.firstResolvedValue!==i&&o.firstOriginalValue!==r&&!o.duplicateWarningShown&&(o.duplicateWarningShown=!0,n(`[runtime] Duplicate runtime module detected`,{moduleId:e,exportName:t,first:{originalValue:o.firstOriginalValue,resolvedValue:o.firstResolvedValue},second:{originalValue:r,resolvedValue:i},records:o.records})),i):(o.firstResolvedValue=i,o.firstOriginalValue=r,i)};var d=t.__diagnostics||={},f=d.runtimeLoads||={entries:[],warnings:[]},p=d.runtimeModules||={byModuleId:Object.create(null),byExportName:Object.create(null),warnings:[]};t.define(`react`,[],function(){var t=r.React;return t&&typeof t.then==`function`?s.then(function(t){var n=t.React;return i(`react`,`React`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.React;return i(`react`,`React`,n,e(n),`barrel-fallback`)}):i(`react`,`React`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/react`,[],function(){var t=r.React;return t&&typeof t.then==`function`?s.then(function(t){var n=t.React;return i(`@emailmaker/emailmaker/runtime/react`,`React`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.React;return i(`@emailmaker/emailmaker/runtime/react`,`React`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/react`,`React`,t,e(t),`modules-cache`)}),t.define(`react-dom`,[],function(){var t=r.ReactDom;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactDom;return i(`react-dom`,`ReactDom`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactDom;return i(`react-dom`,`ReactDom`,n,e(n),`barrel-fallback`)}):i(`react-dom`,`ReactDom`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/react-dom`,[],function(){var t=r.ReactDom;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactDom;return i(`@emailmaker/emailmaker/runtime/react-dom`,`ReactDom`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactDom;return i(`@emailmaker/emailmaker/runtime/react-dom`,`ReactDom`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/react-dom`,`ReactDom`,t,e(t),`modules-cache`)}),t.define(`react-dom/client`,[],function(){var t=r.ReactDomClient;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactDomClient;return i(`react-dom/client`,`ReactDomClient`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactDomClient;return i(`react-dom/client`,`ReactDomClient`,n,e(n),`barrel-fallback`)}):i(`react-dom/client`,`ReactDomClient`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/react-dom/client`,[],function(){var t=r.ReactDomClient;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactDomClient;return i(`@emailmaker/emailmaker/runtime/react-dom/client`,`ReactDomClient`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactDomClient;return i(`@emailmaker/emailmaker/runtime/react-dom/client`,`ReactDomClient`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/react-dom/client`,`ReactDomClient`,t,e(t),`modules-cache`)}),t.define(`react/jsx-runtime`,[],function(){var t=r.ReactJsxRuntime;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactJsxRuntime;return i(`react/jsx-runtime`,`ReactJsxRuntime`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactJsxRuntime;return i(`react/jsx-runtime`,`ReactJsxRuntime`,n,e(n),`barrel-fallback`)}):i(`react/jsx-runtime`,`ReactJsxRuntime`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/react/jsx-runtime`,[],function(){var t=r.ReactJsxRuntime;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactJsxRuntime;return i(`@emailmaker/emailmaker/runtime/react/jsx-runtime`,`ReactJsxRuntime`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactJsxRuntime;return i(`@emailmaker/emailmaker/runtime/react/jsx-runtime`,`ReactJsxRuntime`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/react/jsx-runtime`,`ReactJsxRuntime`,t,e(t),`modules-cache`)}),t.define(`react/jsx-dev-runtime`,[],function(){var t=r.ReactJsxDevRuntime;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactJsxDevRuntime;return i(`react/jsx-dev-runtime`,`ReactJsxDevRuntime`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactJsxDevRuntime;return i(`react/jsx-dev-runtime`,`ReactJsxDevRuntime`,n,e(n),`barrel-fallback`)}):i(`react/jsx-dev-runtime`,`ReactJsxDevRuntime`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/react/jsx-dev-runtime`,[],function(){var t=r.ReactJsxDevRuntime;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactJsxDevRuntime;return i(`@emailmaker/emailmaker/runtime/react/jsx-dev-runtime`,`ReactJsxDevRuntime`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactJsxDevRuntime;return i(`@emailmaker/emailmaker/runtime/react/jsx-dev-runtime`,`ReactJsxDevRuntime`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/react/jsx-dev-runtime`,`ReactJsxDevRuntime`,t,e(t),`modules-cache`)}),t.define(`prop-types`,[],function(){var t=r.PropTypes;return t&&typeof t.then==`function`?s.then(function(t){var n=t.PropTypes;return i(`prop-types`,`PropTypes`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.PropTypes;return i(`prop-types`,`PropTypes`,n,e(n),`barrel-fallback`)}):i(`prop-types`,`PropTypes`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/prop-types`,[],function(){var t=r.PropTypes;return t&&typeof t.then==`function`?s.then(function(t){var n=t.PropTypes;return i(`@emailmaker/emailmaker/runtime/prop-types`,`PropTypes`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.PropTypes;return i(`@emailmaker/emailmaker/runtime/prop-types`,`PropTypes`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/prop-types`,`PropTypes`,t,e(t),`modules-cache`)}),t.define(`react-router-dom`,[],function(){var t=r.ReactRouterDom;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactRouterDom;return i(`react-router-dom`,`ReactRouterDom`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactRouterDom;return i(`react-router-dom`,`ReactRouterDom`,n,e(n),`barrel-fallback`)}):i(`react-router-dom`,`ReactRouterDom`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/react-router-dom`,[],function(){var t=r.ReactRouterDom;return t&&typeof t.then==`function`?s.then(function(t){var n=t.ReactRouterDom;return i(`@emailmaker/emailmaker/runtime/react-router-dom`,`ReactRouterDom`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.ReactRouterDom;return i(`@emailmaker/emailmaker/runtime/react-router-dom`,`ReactRouterDom`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/react-router-dom`,`ReactRouterDom`,t,e(t),`modules-cache`)}),t.define(`antd`,[],function(){var t=r.Antd;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Antd;return i(`antd`,`Antd`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Antd;return i(`antd`,`Antd`,n,e(n),`barrel-fallback`)}):i(`antd`,`Antd`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/antd`,[],function(){var t=r.Antd;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Antd;return i(`@emailmaker/emailmaker/runtime/antd`,`Antd`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Antd;return i(`@emailmaker/emailmaker/runtime/antd`,`Antd`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/antd`,`Antd`,t,e(t),`modules-cache`)}),t.define(`@ant-design/icons`,[],function(){var t=r.AntDesignIcons;return t&&typeof t.then==`function`?s.then(function(t){var n=t.AntDesignIcons;return i(`@ant-design/icons`,`AntDesignIcons`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.AntDesignIcons;return i(`@ant-design/icons`,`AntDesignIcons`,n,e(n),`barrel-fallback`)}):i(`@ant-design/icons`,`AntDesignIcons`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/@ant-design/icons`,[],function(){var t=r.AntDesignIcons;return t&&typeof t.then==`function`?s.then(function(t){var n=t.AntDesignIcons;return i(`@emailmaker/emailmaker/runtime/@ant-design/icons`,`AntDesignIcons`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.AntDesignIcons;return i(`@emailmaker/emailmaker/runtime/@ant-design/icons`,`AntDesignIcons`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/@ant-design/icons`,`AntDesignIcons`,t,e(t),`modules-cache`)}),t.define(`@ant-design/cssinjs`,[],function(){var t=r.AntDesignCssinjs;return t&&typeof t.then==`function`?s.then(function(t){var n=t.AntDesignCssinjs;return i(`@ant-design/cssinjs`,`AntDesignCssinjs`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.AntDesignCssinjs;return i(`@ant-design/cssinjs`,`AntDesignCssinjs`,n,e(n),`barrel-fallback`)}):i(`@ant-design/cssinjs`,`AntDesignCssinjs`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/@ant-design/cssinjs`,[],function(){var t=r.AntDesignCssinjs;return t&&typeof t.then==`function`?s.then(function(t){var n=t.AntDesignCssinjs;return i(`@emailmaker/emailmaker/runtime/@ant-design/cssinjs`,`AntDesignCssinjs`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.AntDesignCssinjs;return i(`@emailmaker/emailmaker/runtime/@ant-design/cssinjs`,`AntDesignCssinjs`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/@ant-design/cssinjs`,`AntDesignCssinjs`,t,e(t),`modules-cache`)}),t.define(`@ant-design/pro-layout`,[],function(){var t=r.AntDesignProLayout;return t&&typeof t.then==`function`?s.then(function(t){var n=t.AntDesignProLayout;return i(`@ant-design/pro-layout`,`AntDesignProLayout`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.AntDesignProLayout;return i(`@ant-design/pro-layout`,`AntDesignProLayout`,n,e(n),`barrel-fallback`)}):i(`@ant-design/pro-layout`,`AntDesignProLayout`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/@ant-design/pro-layout`,[],function(){var t=r.AntDesignProLayout;return t&&typeof t.then==`function`?s.then(function(t){var n=t.AntDesignProLayout;return i(`@emailmaker/emailmaker/runtime/@ant-design/pro-layout`,`AntDesignProLayout`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.AntDesignProLayout;return i(`@emailmaker/emailmaker/runtime/@ant-design/pro-layout`,`AntDesignProLayout`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/@ant-design/pro-layout`,`AntDesignProLayout`,t,e(t),`modules-cache`)}),t.define(`classnames`,[],function(){var t=r.Classnames;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Classnames;return i(`classnames`,`Classnames`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Classnames;return i(`classnames`,`Classnames`,n,e(n),`barrel-fallback`)}):i(`classnames`,`Classnames`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/classnames`,[],function(){var t=r.Classnames;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Classnames;return i(`@emailmaker/emailmaker/runtime/classnames`,`Classnames`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Classnames;return i(`@emailmaker/emailmaker/runtime/classnames`,`Classnames`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/classnames`,`Classnames`,t,e(t),`modules-cache`)}),t.define(`dayjs`,[],function(){var t=r.Dayjs;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Dayjs;return i(`dayjs`,`Dayjs`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Dayjs;return i(`dayjs`,`Dayjs`,n,e(n),`barrel-fallback`)}):i(`dayjs`,`Dayjs`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/dayjs`,[],function(){var t=r.Dayjs;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Dayjs;return i(`@emailmaker/emailmaker/runtime/dayjs`,`Dayjs`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Dayjs;return i(`@emailmaker/emailmaker/runtime/dayjs`,`Dayjs`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/dayjs`,`Dayjs`,t,e(t),`modules-cache`)}),t.define(`uuid`,[],function(){var t=r.Uuid;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Uuid;return i(`uuid`,`Uuid`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Uuid;return i(`uuid`,`Uuid`,n,e(n),`barrel-fallback`)}):i(`uuid`,`Uuid`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/uuid`,[],function(){var t=r.Uuid;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Uuid;return i(`@emailmaker/emailmaker/runtime/uuid`,`Uuid`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Uuid;return i(`@emailmaker/emailmaker/runtime/uuid`,`Uuid`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/uuid`,`Uuid`,t,e(t),`modules-cache`)}),t.define(`di`,[],function(){var t=r.Core;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Core;return i(`di`,`Core`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Core;return i(`di`,`Core`,n,e(n),`barrel-fallback`)}):i(`di`,`Core`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime-core`,[],function(){var t=r.Core;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Core;return i(`@emailmaker/emailmaker/runtime-core`,`Core`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Core;return i(`@emailmaker/emailmaker/runtime-core`,`Core`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime-core`,`Core`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/core`,[],function(){var t=r.Core;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Core;return i(`@emailmaker/emailmaker/runtime/core`,`Core`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Core;return i(`@emailmaker/emailmaker/runtime/core`,`Core`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/core`,`Core`,t,e(t),`modules-cache`)}),t.define(`disposable`,[],function(){var t=r.Core;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Core;return i(`disposable`,`Core`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Core;return i(`disposable`,`Core`,n,e(n),`barrel-fallback`)}):i(`disposable`,`Core`,t,e(t),`modules-cache`)}),t.define(`guid`,[],function(){var t=r.Core;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Core;return i(`guid`,`Core`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Core;return i(`guid`,`Core`,n,e(n),`barrel-fallback`)}):i(`guid`,`Core`,t,e(t),`modules-cache`)}),t.define(`errors-runtime`,[],function(){var t=r.Core;return t&&typeof t.then==`function`?s.then(function(t){var n=t.Core;return i(`errors-runtime`,`Core`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.Core;return i(`errors-runtime`,`Core`,n,e(n),`barrel-fallback`)}):i(`errors-runtime`,`Core`,t,e(t),`modules-cache`)}),t.define(`app-core`,[],function(){var t=r.AppCore;return t&&typeof t.then==`function`?s.then(function(t){var n=t.AppCore;return i(`app-core`,`AppCore`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.AppCore;return i(`app-core`,`AppCore`,n,e(n),`barrel-fallback`)}):i(`app-core`,`AppCore`,t,e(t),`modules-cache`)}),t.define(`@emailmaker/emailmaker/runtime/app-core`,[],function(){var t=r.AppCore;return t&&typeof t.then==`function`?s.then(function(t){var n=t.AppCore;return i(`@emailmaker/emailmaker/runtime/app-core`,`AppCore`,n,e(n),`barrel-promise`)}):t===void 0?s.then(function(t){var n=t.AppCore;return i(`@emailmaker/emailmaker/runtime/app-core`,`AppCore`,n,e(n),`barrel-fallback`)}):i(`@emailmaker/emailmaker/runtime/app-core`,`AppCore`,t,e(t),`modules-cache`)})}t.prefetch=function(){return s.then(function(){if(typeof n==`function`)return n()})}})(),(function(e){if(!(!e||typeof e!=`object`)){var t=e.__emailmaker__||={},n=t.__compat||={};n.host=n.host||null,n.packages=n.packages||{},n.warned=n.warned||{},n.normalizeVersion||=function(e){return String(e||``).split(`-`)[0]||`0.0.0`},n.parseVersion||=function(e){var t=n.normalizeVersion(e).split(`.`);return{major:parseInt(t[0]||`0`,10),minor:parseInt(t[1]||`0`,10),patch:parseInt(t[2]||`0`,10)}},n.compareVersions||=function(e,t){var r=n.parseVersion(e),i=n.parseVersion(t);return r.major===i.major?r.minor===i.minor?r.patch-i.patch:r.minor-i.minor:r.major-i.major},n.satisfies||=function(e,t){if(!t||t===`*`||t===`latest`)return!0;var r=n.normalizeVersion(e),i=String(t||``).trim();if(!i)return!0;if(i.charAt(0)===`^`){var a=n.parseVersion(i.slice(1)),o=n.parseVersion(r);return n.compareVersions(r,i.slice(1))<0?!1:a.major>0?o.major===a.major:a.minor>0?o.major===0&&o.minor===a.minor:o.major===0&&o.minor===0&&o.patch===a.patch}return n.normalizeVersion(r)===n.normalizeVersion(i)},n.warnOnce||=function(e,t,r){n.warned[e]||(n.warned[e]=!0)},n.validateAll||=function(){var e=n.host,t=n.packages||{};e&&e.supports&&Object.keys(t).forEach(function(r){var i=t[r],a=e.supports[r];a&&!n.satisfies(i.version,a)&&n.warnOnce(`host:`+r+`:`+i.version+`:`+a,`Host supports a different package version range.`,{packageId:r,packageVersion:i.version,supportedRange:a,hostVersion:e.version})}),Object.keys(t).forEach(function(r){var i=t[r],a=i.requires||{};Object.keys(a).forEach(function(o){var s=a[o],c=o===`host`?e&&e.version:t[o]&&t[o].version;c&&(n.satisfies(c,s)||n.warnOnce(r+`:`+o+`:`+c+`:`+s,`Loaded package is outside the declared compatibility range.`,{packageId:r,packageVersion:i.version,targetId:o,targetVersion:c,requiredRange:s}))})})},n.registerHost||=function(e){n.host=e,n.validateAll()},n.registerPackage||=function(e){n.packages[e.id]=e,n.validateAll()},t.__compat.registerHost({version:`1.0.111-dev.3`,supports:{"extensions-api":`^0.9.0`,"extensions-react":`^0.9.0`,"extensions-sandbox":`^0.9.0`}})}})(typeof window<`u`?window:typeof globalThis<`u`?globalThis:void 0);function q(e,t){return{...e,element:t}}function J(){return()=>{}}function Y(e){let t=e.element;return!t||typeof t==`string`||typeof document>`u`?J():(E(t,e.config?.styles,t),()=>{D(t)})}function X(e){if(e.initialSpinner===!1||typeof document>`u`)return{options:e,cleanup:J()};let t=e.element;if(!t||typeof t==`string`)return{options:e,cleanup:J()};t.querySelectorAll(`.blocks-app-initial-spinner-wrapper`).forEach(e=>{e.remove()});let n=M(t,`data-emailmaker`),r=e.handleChunkLoaded;return{options:{...e,handleChunkLoaded:()=>{n(),r?.()}},cleanup:n}}var Z=`1.0.111-dev.3`;async function Q(e){await p(typeof __emailmaker__<`u`?__emailmaker__:void 0)}async function $(e){let t=new r.u,n=await O(e.element,t);t.dispose();let i=V(W(q(e,n)));if(n){let e=k.get(n);if(e)try{let t=await e;if(t.getElement()===n)return t.reset(i)}catch{k.get(n)===e&&k.delete(n)}}let a=Y(i),o=X(i),c=o.options;await d(),g(typeof __emailmaker__<`u`?__emailmaker__:void 0);let l=s().then(e=>e.init(c));n&&k.set(n,l);try{let e=await l;return n&&k.set(n,e),e}catch(e){throw a(),o.cleanup(),n&&k.get(n)===l&&k.delete(n),e}}async function ee(e){return(await s()).parseAMP(e)}typeof window<`u`&&_(typeof __emailmaker__<`u`?__emailmaker__:void 0),Object.defineProperty(t,`errors`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(t,`helpers`,{enumerable:!0,get:function(){return K}}),t.init=$,t.parseAMP=ee,t.pluginRegistry=x,t.preload=Q,t.version=Z});
84
82
 
85
83
  // Возвращаем API из entry модуля
86
84
  return __emailmaker__.syncRequire("emailmaker.js");