useblocks 1.1.103 → 1.1.108

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 (66) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +1 -0
  3. package/iframe/.vite/manifest.json +13 -25
  4. package/iframe/css/sandbox.css +11 -9
  5. package/iframe/{iframe-eblock.b65837b7.html → iframe-eblock.facd6272.html} +2 -2
  6. package/iframe/{iframe.b65837b7.html → iframe.facd6272.html} +2 -2
  7. package/iframe/js/elMarkupHelper.JLkggsgY.js +279 -0
  8. package/iframe/js/iframe-eblock.body.facd6272.js +9 -0
  9. package/iframe/js/iframe-eblock.js +2 -2
  10. package/iframe/js/iframe.body.facd6272.js +129 -0
  11. package/iframe/js/iframe.js +2 -2
  12. package/iframe/js/{typograf.all.BbXdyfMT.js → typograf.all.CGEpDoct.js} +12 -12
  13. package/package.json +1 -1
  14. package/runtime/react/index.js +1 -1
  15. package/static/core/{69cf8e2c.js → 19e01848.js} +1 -1
  16. package/static/core/{36448ec6.js → 23ecb0b0.js} +1 -1
  17. package/static/core/{aa3448fe.js → 2865a0ae.js} +1 -1
  18. package/static/core/{6b904901.js → 32813d7b.js} +3 -3
  19. package/static/core/{8288f720.js → 34804219.js} +1 -1
  20. package/static/core/{5c36eb62.js → 38ea9ef6.js} +1 -1
  21. package/static/core/{defdbce4.js → 42ef449b.js} +1 -1
  22. package/static/core/{ff7d14e8.js → 49be45c4.js} +1 -1
  23. package/static/core/{63f26591.js → 4d698359.js} +1 -1
  24. package/static/core/{29993987.js → 4ec0aff8.js} +1 -1
  25. package/static/core/{a6303cb2.js → 501559e1.js} +1 -1
  26. package/static/core/622a2220.js +2 -0
  27. package/static/core/{4c8d0155.js → 66619f08.js} +6 -6
  28. package/static/core/{68650ff2.js → 83a7fff3.js} +11 -11
  29. package/static/core/{ed8a3337.js → 87e91b5e.js} +1 -1
  30. package/static/core/{f8819751.js → 8a452a94.js} +2 -2
  31. package/static/core/{5d7aff4e.js → 9b50835f.js} +1 -1
  32. package/static/core/{3501b0a6.js → a77f31cb.js} +1 -1
  33. package/static/core/{2a85f6f1.js → aa65675c.js} +3 -3
  34. package/static/core/{47bde21f.js → c6bde249.js} +1 -1
  35. package/static/core/{fd8197a8.js → c9cebb1a.js} +1 -1
  36. package/static/core/cc70a22f.js +4 -0
  37. package/static/core/{a013bc08.js → d8e8d436.js} +1 -1
  38. package/static/core/da678146.js +28 -0
  39. package/static/core/{b7d1fefc.js → e86ffdcb.js} +1 -1
  40. package/static/core/{50c87f51.js → e8a44736.js} +1 -1
  41. package/static/core/ebcc0451.js +1 -0
  42. package/static/core/{7b850506.js → f369973d.js} +1 -1
  43. package/static/core/{20098caa.js → f50ba1e0.js} +1 -1
  44. package/static/core/f89490a1.js +7 -0
  45. package/static/core/{756874c6.js → fe5390c8.js} +1 -1
  46. package/static/core/{d74756b9.js → feb1ffa4.js} +1 -1
  47. package/static/esm/1e463a71.js +1 -0
  48. package/static/esm/delivery-libs.js +1 -1
  49. package/static/umd-runtime/delivery-libs.BymXnePv.js +1 -0
  50. package/static/umd-runtime/{runtime.D3aKaKTc.js → runtime.DeDiWiET.js} +1 -1
  51. package/useblocks-core.facd6272.js +859 -0
  52. package/useblocks-esm.js +11 -11
  53. package/{useblocks-po.b65837b7.js → useblocks-po.facd6272.js} +1 -1
  54. package/useblocks.d.ts +144 -13
  55. package/useblocks.js +12 -12
  56. package/vendor/useblocks-ui-kit/package.json +1 -1
  57. package/iframe/js/discussHandlers.B36tbVEC.js +0 -88
  58. package/iframe/js/iframe-eblock.body.b65837b7.js +0 -233
  59. package/iframe/js/iframe.body.b65837b7.js +0 -319
  60. package/iframe/js/rolldown-runtime.BRlIiq3h.js +0 -1
  61. package/static/core/348ec5fd.js +0 -7
  62. package/static/core/41dd8b28.js +0 -28
  63. package/static/core/c9a4d1ef.js +0 -4
  64. package/static/esm/668ee399.js +0 -1
  65. package/static/umd-runtime/delivery-libs.3Svr0avG.js +0 -1
  66. package/useblocks-core.b65837b7.js +0 -859
@@ -1 +0,0 @@
1
- var O=class Ae{_inner;_isDisposed=!1;constructor(t=[]){this._inner=t}addDisposable(t){return this._inner.push(t),t instanceof Ae&&t.addDispose(()=>{this.removeDisposable(t)}),t}addDispose(t){this.addDisposable({dispose:t})}removeDisposable(t){const n=this._inner.indexOf(t);n>=0&&this._inner.splice(n,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(const t of[...this._inner])t.dispose()}}};function F(e){return`service_container_${e}`}var N=new Set,W;function Ke(){if(!W)return;const e=new Error("getInstanceAsync"),t=Error;return typeof t.captureStackTrace=="function"&&t.captureStackTrace(e,Ie.prototype.getInstanceAsync),e.stack}function U(e){N.delete(e)&&W?.end(e)}var Ie=class G extends O{_parent;_injectCallbacks=[];_injections=Object.create(null);_runCallbacks(t){[...this._injectCallbacks].forEach(n=>n(t))}constructor(t=null){super(),this._parent=t,t&&this.addDisposable(t.onInject(n=>this._runCallbacks(n)))}onInject=t=>(this._injectCallbacks.push(t),{dispose:()=>{const n=this._injectCallbacks.indexOf(t);n>=0&&this._injectCallbacks.splice(n,1)}});inject(t,n){this._injections[t]=()=>n,this._runCallbacks(t)}injectFactory(t,n,r){const s=this._injections[t];let o=typeof s=="function"?s():s;const i=this._injections[t]=()=>(o=n(this,o),o);r&&i(),this._runCallbacks(t)}_find(t,n=!0){return this._injections[t]||n&&this._parent?._find(t)}_onInject(t,n,r=new O){return r.addDisposable(this.onInject(s=>{t===s&&!r.isDisposed()&&(r.dispose(),n(this.getInstance(s)))})),this._parent&&r.addDisposable(this._parent._onInject(t,n,r)),this.addDisposable(r),r}getInstance(t,n=!0){const r=this._find(t,n);if(typeof r=="function")return r()}getOrCreateInstance(t,n){const r=this._find(t);if(typeof r=="function")return r();const s=n(this);return this.inject(t,s),s}getInstanceAsync(t){const n=this._find(t);if(typeof n=="function")return Promise.resolve(n());const r=Ke();return new Promise((s,o)=>{const i={id:String(t),startedAt:Date.now(),origin:r,container:this,reject:o};N.add(i),W?.start(i),this._onInject(t,()=>{U(i),s(this.getInstance(t))})})}failPendingWaits(t){for(const n of Array.from(N))n.container===this&&(U(n),n.reject(t))}pendingWaits(){return[...N].filter(t=>t.container===this)}addService(t,n){const r=F(t);this.injectFactory(r,(o,i=[])=>i.indexOf(n)<0?[...i,n]:i);const s=new O;return s.addDispose(()=>{this.injectFactory(r,(o,i=[])=>i.filter(a=>a!==n))}),s}addServiceFactory(t,n,r){const s=F(t);let o;this.injectFactory(s,(a,c=[])=>(o=n(a,o),o===void 0?c:c.indexOf(o)<0?[...c,o]:c),r);const i=new O;return i.addDispose(()=>{this.injectFactory(s,(a,c=[])=>o===void 0?c:c.filter(_=>_!==o))}),i}getServices(t){const n=F(t);return[...this.getInstance(n,!1)||[],...this._parent?.getServices(t)||[]]}createChild(){return new G(this)}getOrCreateIsolatedContainer(t){return this.getOrCreateInstance(t,()=>{const n=this._parent?.getOrCreateIsolatedContainer(t);return new G(n)})}remove(t){const n=this._injections;delete n[String(t)]}injectListenerCount(){return this._injectCallbacks.length}dispose(){for(const t of Array.from(N))t.container===this&&U(t);this._injections=Object.create(null),this._injectCallbacks=[],super.dispose()}};function H(e){return e.startsWith("__")?e:`__${e}__`}function ze(e){if(typeof globalThis>"u")throw new Error("[di] globalThis is required for namespace container access.");const t=H(e),n=globalThis;return n[t]??={}}function Je(e){return e!=null&&typeof e=="object"&&typeof e.inject=="function"&&typeof e.getInstance=="function"}function Ye(e){if(e)return H(e);const t="useblocks".trim();if(!t)throw new Error("[di] REACT_APP_NAME is required for resolveContainer().");return H(t)}function ge(e){const t=Ye(e),n=ze(t);if(Je(n.container))return n.container;const r=new Ie(null);return n.container=r,r}function Tn(e){return ge(e)}function Qe(){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 Ze(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():Qe()}function d(e=Ze()){return e}function me(){return"esm".trim()||"unknown"}function et(e){if(typeof globalThis>"u")return;const t=me(),n=globalThis[e]??{};globalThis[e]=n;const r=n.__diagnostics??={},s=r.diModuleEval??={evalCount:0,records:[]};s.records.push({buildSource:t,timestamp:Date.now(),stack:new Error().stack}),s.evalCount+=1}function tt(){const e="useblocks".trim();if(!e)throw new Error("[di] REACT_APP_NAME is required for DependencyResolver diagnostics.");return`__${e}__`}function nt(e,t){if(et(t),typeof globalThis>"u")return e;const n=me(),r=globalThis,s=r[t]=r[t]||{},o=s.__diagnostics=s.__diagnostics||{},i=o.dependencyResolver=o.dependencyResolver||{entries:[]},a={container:e,source:"packages/runtime-core/di/index.ts",buildSource:n,timestamp:Date.now(),stack:new Error().stack};return i.entries.push(a),e}var w;function rt(){if(w)return w;const e=tt();return w=nt(ge(e),e),w}var te=new Proxy({},{get(e,t,n){const r=rt(),s=Reflect.get(r,t,n);return typeof s=="function"?s.bind(r):s}});function Sn(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}}function b(e){if(e instanceof DOMException&&e.name==="AbortError")return e;const t=e===void 0?"The operation was aborted.":typeof e=="string"?e:e instanceof Error?e.message:String(e);return new DOMException(t,"AbortError")}function Dn(e){return e instanceof DOMException&&e.name==="AbortError"}function Oe(e){if(e?.aborted)throw b(e.reason)}function Nn(e,t){return t?(t.aborted&&e.catch(()=>{}),Oe(t),new Promise((n,r)=>{const s=()=>{o(),r(b(t.reason))},o=()=>{t.removeEventListener("abort",s)};t.addEventListener("abort",s),e.then(i=>{o(),n(i)},i=>{o(),r(i)})})):e}var Te=class extends O{_options;_listeners=[];constructor(e={}){super(),this._options=e}getListeners(e){return this._listeners.flatMap(([t])=>typeof t=="function"?t:t.getListeners(e))}hasListeners(){for(const[e]of this._listeners){if(typeof e=="function")return!0;const t=e;if(typeof t.hasListeners=="function"){if(t.hasListeners())return!0;continue}return!0}return!1}_addListener(e,t=0,n){if(this.isDisposed())return{dispose:()=>{}};const r=this._listeners,s=this._options;n&&typeof e=="function"&&(e=e.bind(n));const o=r.findIndex(([,a])=>a<t),i=[e,t];return r.splice(o>=0?o:r.length,0,i),r.length===1&&s.onFirstListenerAdd&&s.onFirstListenerAdd(),{dispose:()=>{const a=r.indexOf(i);a>=0&&(r.splice(a,1),!r.length&&s.onLastListenerRemove&&s.onLastListenerRemove())}}}on=this._addListener.bind(this);event=this._addListener.bind(this);once=(e,t=0,n)=>{const r=this._addListener((...s)=>(r?.dispose(),n?e.call(n,...s):e(...s)),t);return r};un=e=>{const t=this._listeners.findIndex(([n])=>n===e);t>=0&&(this._listeners.splice(t,1),this._listeners.length===0&&this._options.onLastListenerRemove&&this._options.onLastListenerRemove())};dispose(){this._listeners.splice(0,this._listeners.length),this._options.onLastListenerRemove&&this._options.onLastListenerRemove(),super.dispose()}},C=class extends Te{execute(e,t){for(const n of t)try{n(...e)}catch{}}fire(...e){if(!this.isDisposed()){const t=this.execute(e,this.getListeners(e));return t===void 0?void 0:t}}},yn=class extends C{execute([e],t){for(const n of t)try{n(e)}catch{}}},vn=class extends C{_suspendCounter=0;_wasFired=!1;execute([e],t){if(this._suspendCounter)this._wasFired=!0;else for(const n of t)try{n(e)}catch{}}suspend(){this._suspendCounter++}resume(){--this._suspendCounter===0&&this._wasFired&&(this.fire(),this._wasFired=!1)}},q=class extends C{async execute([e],t){const n=[];for(const r of t)try{n.push(await r(e))}catch{}return n}async fireSettled(e){const t={results:[],errors:[]};if(this.isDisposed())return t;for(const n of this.getListeners([e]))try{t.results.push(await n(e))}catch(r){t.errors.push(r)}return t}};function bn(e,t=0){const n=new Te,r=e(n,t);return r&&n.addDisposable(r),n.event}function Cn(e,t,n=0){const r=new C,s=e((...o)=>{if(t(...o))return r.fire(...o)},n);return s&&r.addDisposable(s),r.event}function Pn(e,t=0,n=0){const r=new C;let s,o;const i=e((...a)=>{o=a,s||(s=setTimeout(()=>{o&&r.fire(...o),s=void 0},t))},n);return i&&r.addDisposable(i),r.event}function Ln(e,t){return e.getOrCreateInstance(t,()=>new q)}function l(e){return d(e)}var ne;(function(e){e.BEFORE_SAVE_EMAIL=l("events.BEFORE_SAVE_EMAIL"),e.ON_SAVEBUTTON_CLICK_ID=l("events.ON_SAVEBUTTON_CLICK_ID"),e.ON_NEXTBUTTON_CLICK_ID=l("events.ON_NEXTBUTTON_CLICK_ID"),e.ON_PREVIOUSBUTTON_CLICK_ID=l("events.ON_PREVIOUSBUTTON_CLICK_ID"),e.ON_DOCUMENT_SESSION_CHANGE=l("events.ON_DOCUMENT_SESSION_CHANGE"),e.WILL_EMAIL_INIT_ID=l("events.WILL_EMAIL_INIT_ID"),e.ON_EMAIL_INIT_ID=l("events.ON_EMAIL_INIT_ID"),e.ON_BLOCK_INIT_ID=l("events.ON_BLOCK_INIT_ID"),e.ON_CONTENT_CHANGED_ID=l("events.ON_CONTENT_CHANGED_ID"),e.ON_PREHEADER_CHANGED_ID=l("events.ON_PREHEADER_CHANGED_ID"),e.ON_SUBJECT_CHANGED_ID=l("events.ON_SUBJECT_CHANGED_ID"),e.ON_EMAIL_CHANGED_ID=l("events.ON_EMAIL_CHANGED_ID"),e.ON_HEADER_APPLIED_ID=l("events.ON_HEADER_APPLIED_ID"),e.ON_BLOCK_CHANGED_ID=l("events.ON_BLOCK_CHANGED_ID"),e.ON_CHUNKS_LOADED=l("events.ON_CHUNKS_LOADED"),e.ON_SEND_TESTEMAIL_ID=l("events.ON_SEND_TESTEMAIL_ID"),e.ON_SEND_LIVEPREVIEW_ID=l("events.ON_SEND_LIVEPREVIEW_ID"),e.ON_SHARE_ID=l("events.ON_SHARE_ID"),e.ON_SHOW_PREVIEW_ID=l("events.ON_SHOW_PREVIEW_ID"),e.ON_EMAIL_CLONE_ID=l("events.ON_EMAIL_CLONE_ID"),e.ON_SEND_EMAIL_MODAL_ID=l("events.ON_SEND_EMAIL_MODAL_ID"),e.ON_NOTIFICATION=l("events.ON_NOTIFICATION"),e.READ_LOCALE=l("events.READ_LOCALE"),e.ON_TRANSLATE_ID=l("events.ON_TRANSLATE_ID"),e.ON_CODE_VALIDATE_ID=l("events.ON_CODE_VALIDATE_ID"),e.UPLOAD_EVENT_ID=l("events.UPLOAD_EVENT_ID"),e.PROXY_URL_EVENT_ID=l("events.PROXY_URL_EVENT_ID"),e.FILE_PROXY_EVENT_ID=l("events.FILE_PROXY_EVENT_ID"),e.ON_LIMIT_ID=l("events.ON_LIMIT_ID"),e.ON_BROWSER_EXTENSION_DETECTED_ID=l("events.ON_BROWSER_EXTENSION_DETECTED_ID"),e.ON_LAYOUT_CONVERT_REQUEST_ID=l("events.ON_LAYOUT_CONVERT_REQUEST_ID"),e.ON_BROWSER_TRANSLATE_DETECTED_ID=l("events.ON_BROWSER_TRANSLATE_DETECTED_ID"),e.AI_TEXT_REQUEST_ID=l("events.AI_TEXT_REQUEST_ID"),e.AI_IMAGE_REQUEST_ID=l("events.AI_IMAGE_REQUEST_ID"),e.AI_TEXT_PROGRESS_ID=l("events.AI_TEXT_PROGRESS_ID"),e.AI_IMAGE_PROGRESS_ID=l("events.AI_IMAGE_PROGRESS_ID"),e.AI_TEXT_STREAM_ID=l("events.AI_TEXT_STREAM_ID")})(ne||(ne={}));function Rn(e,t){return e.getOrCreateInstance(t,()=>new q).event}function xn(e,t){return e.getOrCreateInstance(t,()=>new q)}var wn=d("plugin.app"),Mn=d("plugin.disposable"),Bn=d("InitPipelineContext"),kn=d("plugin.instance"),Fn=d("plugin.lateSurfaceListeners"),st=d("plugin.optionsSource"),Un=d("plugin.store"),ot=d("ConfigSource"),jn=d("plugin.standalone.project"),it=d("plugin.standalone.bootstrapToken"),Gn=d("plugin.element"),at=d("plugin.securityModule"),Hn=d("plugin.standalone.activated"),Xn=d("plugin.standalone.fileProxyRegistered"),X=d("plugin.jwt.token"),y=d("plugin.jwt.error"),Vn=d("PluginCollection"),$n=l("APP_LOAD_EVENT"),Wn=l("CONFIG_CHANGED_EVENT");function ct(e,t=window){return{peer:e,send(n){e.postMessage(n,"*")},subscribe(n){const r=s=>{n({data:s.data,source:s.source,ports:s.ports})};return t.addEventListener("message",r),{dispose:()=>t.removeEventListener("message",r)}},close(){}}}function _t(e){let t=!1;return{peer:e,send(n){e.postMessage(n)},subscribe(n){const r=s=>{n({data:s.data,source:e})};return e.addEventListener("message",r),t||(t=!0,e.start()),{dispose:()=>e.removeEventListener("message",r)}},close(){e.close()}}}function qn(e){return e}function ut(e){return e&&typeof e=="object"}function re(e,t){return e&&typeof e=="object"&&e.operationId===t}var m="INIT_MESSAGE",lt="em:port-ready",dt="em:window-drained",j="";function se(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}var ft=class extends O{_listeners=Object.create(null);addListenerAsync=(e,t,n=0,r)=>{const s=this._listeners[e]||(this._listeners[e]=[]);r&&typeof t=="function"&&(t=t.bind(r));const o=s.findIndex(([a,c])=>n<=c),i=[t,n];return this.isDisposed()||s.splice(o>=0?o:s.length,0,i),{dispose(){const a=s.indexOf(i);a>=0&&s.splice(a,1)}}};fireAsync=(e,t)=>{if(!this.isDisposed()){const n=this._listeners[e]||(this._listeners[e]=[]);let r;for(let s=0;s<n.length;s++){const o=n[s][0],i=r;r=a=>o(a,i)}if(r)return r(t)}};addListener=(e,t,n=0)=>this.addListenerAsync(e,(r,s)=>{try{t(r)}catch{}return s&&s(r)},n)},Kn=class extends O{_singleton;_target;_transport;_transportSubscription;_ports=new Map;_drained=new WeakSet;_portSendHeld=new WeakSet;_inited=!1;_emitter=this.addDisposable(new ft);_handshaken=new WeakSet;_greeted=new WeakSet;_outgoingFilter;_outgoingObservers=new Set;_offTargetListeners=new Map;constructor(e,t){super(),this._singleton=t,this._transport=ct({postMessage:()=>{}},window),this._transportSubscription=this.addDisposable(this._transport.subscribe(this._onTransportMessage)),this.addListener(m,()=>{this._inited||(this._inited=!0,this._target&&this._handshaken.add(this._target),this.send(m))}),e&&this.setTarget(e)}_onTransportMessage=e=>{const t=e,n=t.data,r=t.source,s=n?.port===!0?t.ports?.[0]:void 0,o=!this._isPortSource(t.source);if(o&&r&&n?.operationId==="em:window-drained"){this._ports.has(r)&&this._drained.add(r);return}if(o&&r&&this._drained.has(r))return;if(r&&r!==this._target&&this._greeted.has(r)&&re(n,m)){this._greeted.delete(r),this._handshaken.add(r),this._postMessage(r,{operationId:m,data:{}}),s&&this.usePort(s,!0,r);return}const i=t.source===this.target||this._isCurrentPort(t.source);if(i||this._notifyOffTarget(n?.operationId,t.source),ut(n)&&i||this._singleton&&re(n,m)){if(s&&i){const u=this._target;Promise.resolve().then(()=>this.usePort(s,!0,u))}const a=this._emitter.fireAsync(n.operationId||j,n.operationId===void 0?t:n.data),c=n.result,_=n.error;c&&_&&Promise.resolve(a).then(u=>this._sendMessage(c,u),u=>this._sendMessage(_,u))}};setTarget(e){if(this._target!==e){if(this._target=e,!e){this._inited=!1;return}if(this._handshaken.has(e)){this._inited=!0,this._emitter.fireAsync(m,void 0);return}this._inited=!1,this._postMessage(e,{operationId:m,data:{}})}}sendPort(e,t){this._postMessage(e,{operationId:m,data:{},port:!0},[t])}observeOutgoing(e){return this._outgoingObservers.add(e),{dispose:()=>{this._outgoingObservers.delete(e)}}}_notifyOutgoing(e,t){for(const n of Array.from(this._outgoingObservers))try{n(e,t)}catch{}}addOffTargetListener(e,t){let n=this._offTargetListeners.get(e);return n||(n=new Set,this._offTargetListeners.set(e,n)),n.add(t),{dispose:()=>{n.delete(t)}}}_notifyOffTarget(e,t){const n=typeof e=="string"?this._offTargetListeners.get(e):void 0,r=n?.size?this._knownPeer(t):void 0;if(!(!n||!r))for(const s of Array.from(n))try{s(r)}catch{}}_knownPeer(e){for(const[n,r]of this._ports)if(r.transport.peer===e)return n;const t=e;return typeof e=="object"&&e!==null&&(this._handshaken.has(t)||this._greeted.has(t))?t:void 0}setOutgoingFilter(e){return this._outgoingFilter=e,()=>{this._outgoingFilter===e&&(this._outgoingFilter=void 0)}}sendNow(e){const t=this._target;return!this._inited||!t?!1:(this._postMessage(t,e),!0)}greet(e){this._handshaken.has(e)||this._greeted.has(e)||this._target===e||(this._greeted.add(e),this._postMessage(e,{operationId:m,data:{}}))}forget(e){this._handshaken.delete(e),this._greeted.delete(e),this._closePort(e),this._drained.delete(e),this._target===e&&(this._inited=!1)}usePort(e,t=!1,n=this._target){if(!n||this._ports.has(n))return;const r=_t(e),s=r.subscribe(this._onTransportMessage);this._ports.set(n,{transport:r,subscription:s}),t&&(r.send({operationId:lt,data:{}}),this.drainWindow(n))}holdPort(e=this._target){!e||!this._ports.has(e)||(this._portSendHeld.add(e),this._drained.delete(e))}resumePort(e=this._target){e&&this._portSendHeld.delete(e)}useWindow(e=this._target){e&&(this._closePort(e),this._drained.delete(e))}get usesPort(){return this._target!==void 0&&this._ports.has(this._target)&&!this._portSendHeld.has(this._target)}hasPort(e,t){const n=this._ports.get(e);return n!==void 0&&(t===void 0||n.transport.peer===t)}_closePort(e){const t=this._ports.get(e);t&&(t.subscription.dispose(),t.transport.close(),this._ports.delete(e),this._portSendHeld.delete(e))}drainWindow(e){this._ports.has(e)&&e.postMessage({operationId:dt,data:{}},"*")}isWindowDrained(e){return this._drained.has(e)}_isPortSource(e){for(const t of this._ports.values())if(t.transport.peer===e)return!0;return!1}_isCurrentPort(e){return this._target!==void 0&&this._ports.get(this._target)?.transport.peer===e}getTarget(){return this._target}get target(){return this._target}_postMessage(e,t,n){let r=t;this._outgoingFilter&&!n?.length&&(r="data"in t?{...t,data:this._outgoingFilter(t.data)}:this._outgoingFilter(t));try{const s=this._ports.get(e);if(s&&!this._portSendHeld.has(e)){s.transport.send(r);return}if(n?.length){e.postMessage(r,"*",n);return}e.postMessage(r,"*")}catch(s){if(s?.name==="DataCloneError"){const o=typeof r?.data=="object"&&r?.data!==null?r.data:void 0}throw s}}_sendMessage(e,t,n=!0){if(!n&&!this.isInited())return;e&&this._notifyOutgoing(e,t);const r=this.addDisposable(this.onInit(s=>{const o=e?{operationId:e,data:t}:t;try{this._postMessage(s,{...o})}finally{r.dispose()}}))}send(e,t,n){return typeof e=="string"?this._sendMessage(e,t,n):this._sendMessage(j,e,t)}sendAsync(e,t,n=!0){if(!n&&!this.isInited())return Promise.resolve();this._notifyOutgoing(e,t);const r=se(),s=se();return new Promise((o,i)=>{const a=this.addDisposable(new O);a.addDisposable(this.onInit(c=>{try{this._postMessage(c,{operationId:e,data:t,result:r,error:s})}catch(_){a.dispose(),i(_);return}a.addDisposable(this._onMessage(r,_=>{o(_),a.dispose()})),a.addDisposable(this._onMessage(s,_=>{i(_),a.dispose()}))}))})}_onMessage(e,t,n=0){return this._emitter.addListener(e,t,n)}addListener(e,t,n){return t?this._onMessage(e,t,n):this._onMessage(j,e)}addListenerAsyncPipe(e,t,n=0){return this._emitter.addListenerAsync(e,t,n)}addListenerAsync(e,t,n=0){return this._emitter.addListenerAsync(e,async(r,s)=>{const o=await t(r);return s?s(r):o},n)}isInited(){return this._inited}get inited(){return this._inited}onInit(e,t=!0,n=0){const r=this.addDisposable(new O);return this._inited&&this._target?t&&Promise.resolve().then(()=>{!this._inited||!this._target?r.addDisposable(this.onInit(e,t,n)):e(this._target)}):r.addDisposable(this._onMessage(m,()=>{e(this._target)},n)),r}dispose(){for(const e of Array.from(this._ports.keys()))this._closePort(e);this._transport.close(),super.dispose()}};function P(e){return d(e)}var zn=d("extensions.atomsHandlers"),Jn=P("HANDLE_ATOM_INSERT"),Yn=d("HeadlessMode"),Qn=d("extensions.sandboxExtensions"),Zn="SANDBOX_EXTENSION_SCRIPT_STATUS",er=d("MESSAGE_SERVICE"),tr=P("SETTINGS_PANEL_EVENT"),nr="advanced",rr=P("MODAL_SHOW_EVENT"),sr=P("MODAL_CLOSE_EVENT"),or=P("MODAL_UPDATE_EVENT"),ir=d("client"),ar=d("v2_client"),cr=d("ai_client"),_r=d("app.cookieManager"),ur=d("app.storageProvider"),lr=d("image-blob-resolver"),dr=d("template-directives"),fr=(function(e){return e.Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded",e.Text="text/plain",e})({}),pt=class{baseUrl="https://api.emailmaker.ru/wp-json";securityData=null;securityWorker;abortControllers=new Map;customFetch=(...e)=>fetch(...e);baseApiParams={credentials:"same-origin",headers:{},redirect:"follow",referrerPolicy:"no-referrer"};constructor(e={}){Object.assign(this,e)}setSecurityData=e=>{this.securityData=e};encodeQueryParam(e,t){return`${encodeURIComponent(e)}=${encodeURIComponent(typeof t=="number"?t:`${t}`)}`}addQueryParam(e,t){return this.encodeQueryParam(t,e[t])}addArrayQueryParam(e,t){return e[t].map(n=>this.encodeQueryParam(t,n)).join("&")}toQueryString(e){const t=e||{};return Object.keys(t).filter(n=>typeof t[n]<"u").map(n=>Array.isArray(t[n])?this.addArrayQueryParam(t,n):this.addQueryParam(t,n)).join("&")}addQueryParams(e){const t=this.toQueryString(e);return t?`?${t}`:""}contentFormatters={"application/json":e=>e!==null&&(typeof e=="object"||typeof e=="string")?JSON.stringify(e):e,"text/plain":e=>e!==null&&typeof e!="string"?JSON.stringify(e):e,"multipart/form-data":e=>Object.keys(e||{}).reduce((t,n)=>{const r=e[n];return t.append(n,r instanceof Blob?r:typeof r=="object"&&r!==null?JSON.stringify(r):`${r}`),t},new FormData),"application/x-www-form-urlencoded":e=>this.toQueryString(e)};mergeRequestParams(e,t){return{...this.baseApiParams,...e,...t||{},headers:{...this.baseApiParams.headers||{},...e.headers||{},...t&&t.headers||{}}}}createAbortSignal=e=>{if(this.abortControllers.has(e)){const n=this.abortControllers.get(e);return n?n.signal:void 0}const t=new AbortController;return this.abortControllers.set(e,t),t.signal};abortRequest=e=>{const t=this.abortControllers.get(e);t&&(t.abort(),this.abortControllers.delete(e))};async request({body:e,secure:t,path:n,type:r,query:s,format:o,baseUrl:i,cancelToken:a,extraQuery:c,proxyHandler:_,...u}){const f=(typeof t=="boolean"?t:this.baseApiParams.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{},h=this.mergeRequestParams(u,f);c&&(s=s?{...s,...c}:c);const p=s&&this.toQueryString(s),I=this.contentFormatters[r||"application/json"],E=o||h.format,R=`${i||this.baseUrl||""}${n}${p?`?${p}`:""}`,We=_?_(R,{body:e,secure:t,path:n,type:r,query:s,format:o,baseUrl:i,cancelToken:a,extraQuery:c,proxyHandler:_,...u}):R,Z=new Request(We,{...h,headers:{...h.headers||{},...r&&r!=="multipart/form-data"?{"Content-Type":r}:{}},signal:(a?this.createAbortSignal(a):h.signal)||null,body:typeof e>"u"||e===null?null:I(e)});return this.customFetch(Z).then(async ee=>{const g=ee;g.data=null,g.error=null,g.meta={request:Z,response:g};const qe=E?await ee[E]().then(x=>(g.ok?g.data=x:g.error={data:x},g)).catch(x=>(g.error=x,g)):g;return a&&this.abortControllers.delete(a),qe})}},ht=d("prewarm.networkActivity");function Et(){let e=0;const t=new Set,n=()=>{t.forEach(r=>r())};return{begin(){e+=1,n();let r=!1;return()=>{r||(r=!0,e-=1,n())}},inFlight:()=>e,watch(r){return t.add(r),()=>t.delete(r)}}}function At(e){return e.getOrCreateInstance(ht,()=>Et())}var It=Symbol("rest.publicRequest"),K=d("rest.requestHandler"),gt=d("rest.responseHandler"),Se=d("rest.customFetch"),mt=(e,t)=>fetch(e,t),De=d("rest_transport"),Ot=e=>{e.inject(Se,{execute:async(t,n={})=>{const r=e.getServices(K),s={public:n[It]===!0},o=At(e).begin();try{let i=t instanceof Request?t:new Request(t,n);for(const _ of r){const u=await _.execute(i,s);u instanceof Request&&(i=u)}let a=await fetch(i);const c=e.getServices(gt);for(const _ of c)a=await _.execute(a,i);return a}finally{o()}}})};function pr(e,t){const n=e.getInstance(De);if(!n)throw new Error("[restApi] транспорт не зарегистрирован в контейнере");return Object.assign({},...t.map(r=>new r(n)))}var Tt="INJECTION";function St(e){return e.getState}function hr(e){if(!St(e)){e.dispose();return}const t=e.getState()[Tt];t&&(te.getInstance(t)?.dispose(),te.remove(t))}function Er(e,t){for(const n of e)if(n&&t in n)return n[t]}function Dt(e){return Object.assign({},...e)}var Ne=["generic","stockImages","emFiles","cdn"];function z(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function oe(e){return!z(e)||"match"in e||"rewrite"in e||"proxyBase"in e?!1:Object.keys(e).some(t=>Ne.includes(t))}function ye(e){return e.length===0?[]:e.length===1?e[0]:e}function ve(e){let t=!1,n=[];for(const r of e)if(r!==void 0){if(t=!0,Array.isArray(r)){n=[...r,...n];continue}n=[r,...n]}if(t)return ye(n)}function Nt(e){return z(e)&&("value"in e||"replace"in e)}function ie(e,t){return t===void 0?e:Array.isArray(t)?[...t,...e]:[t,...e]}function yt(e){let t=!1,n=[],r=!1;for(const o of e)if(o!==void 0){if(Nt(o)){t=!0,o.replace&&(n=[],r=!0),o.value!==void 0&&(n=ie(n,o.value),r=!0);continue}n=ie(n,o),r=!0}const s=r?ye(n):void 0;if(!t)return s;if(s!==void 0)return{value:s}}function Ar(e){const t=e.filter(r=>r!==void 0);if(t.length===0)return;if(!t.some(r=>oe(r)))return ve(t);const n={};for(const r of Ne){const s=yt(e.map(o=>{if(o!==void 0)return oe(o)?o[r]:r==="generic"?o:void 0}));s!==void 0&&(n[r]=s)}return Object.keys(n).length>0?n:void 0}function Ir(e){return ve(e)}function vt(e){if(e!==void 0){if(Array.isArray(e))return{replace:!1,hosts:e};if(z(e)&&Array.isArray(e.value))return{replace:!!e.replace,hosts:e.value}}}function bt(e,t){const n=[...e],r=new Set(n.map(s=>s.toLowerCase()));for(const s of t){const o=s.trim().replace(/:\d+$/,"");if(!o)continue;const i=o.toLowerCase();r.has(i)||(r.add(i),n.push(o))}return n}function Ct(e){let t=[],n=!1;for(const r of e){const s=vt(r);s&&(n=!0,s.replace&&(t=[]),t=bt(t,s.hosts))}return n?t:void 0}function gr(e){const t=e.filter(s=>s!==void 0);if(t.length===0)return;const n=Dt(t.map(({directHosts:s,...o})=>o)),r=Ct(t.map(s=>s?.directHosts));return r!==void 0&&(n.directHosts=r),n}function J(e){return e?.backendProxy}function v(e){return e.replace(/\/$/,"")}function be(e){return/^https?:\/\//i.test(e)}function Ce(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Pt(e){const t=new Set;return e.filter(n=>!n.url||t.has(n.url)?!1:(t.add(n.url),!0))}function Lt(e){const t=J(e);return t?[t]:[]}function Rt(e){return{proxyEmFiles:!0,proxyAi:!1}}function xt(e,t){const n=Rt(t),r=t?.backendProxyPolicy;switch(e){case"emFiles":return r?.proxyEmFiles??n.proxyEmFiles;case"ai":return r?.proxyAi??n.proxyAi;default:return!0}}var wt={url:".+",url_encoded:".+",origin:"https?:\\/\\/[^\\/?#]+",origin_encoded:".+",proxy_url:"https?:\\/\\/[^\\/?#]+",proxy_url_encoded:".+",path:"[^?#]*",pathname:"[^?#]*",path_with_slash:"\\/[^?#]*",pathname_with_slash:"\\/[^?#]*",query:"[^#]*",search:"\\?[^#]*",hash:"#.*",fragment:".*",pathname_after_wp_json:"[^?#]*",pathname_after_wp_json_with_slash:"\\/[^?#]*",rest_namespace:"[^/?#]*",rest_version:"[^/?#]*",rest_route:"[^?#]*",rest_route_with_slash:"\\/[^?#]*"};function Mt(e){const t=[],n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\\\{([a-z_]+)\\\}/gi,(r,s)=>(t.push(s),`(${wt[s]||".+"})`));return{regex:new RegExp(`^${n}$`,"i"),tokens:t}}function Bt(e){return/[?#]/.test(e)||/\{(?:url|url_encoded|query|search|hash|fragment)\}/i.test(e)}function kt(e,t){if(Bt(t))return e;try{const n=new URL(e);return`${n.origin}${n.pathname}`}catch{return e.split(/[?#]/)[0]||e}}function Ft(e,t,n){if(n.endsWith("_encoded"))return!0;const r=e.slice(0,t),s=r.lastIndexOf("#"),o=r.lastIndexOf("?"),i=r.lastIndexOf("&"),a=r.lastIndexOf("=");return a>Math.max(o,i)&&a>s}function Ut(e){try{const t=new URL(e),n=t.pathname.replace(/^\/+/,""),r=t.search.replace(/^\?/,""),s=t.hash.replace(/^#/,""),o=n.replace(/^wp-json\/?/i,""),i=o?`/${o}`:"/",a=o.match(/^([^/]+)(?:\/([^/]+))?(?:\/(.*))?$/),c=a?.[1]||"",_=a?.[2]||"",u=a?.[3]||"";return{url:e,url_encoded:encodeURIComponent(e),origin:t.origin,origin_encoded:encodeURIComponent(t.origin),proxy_url:t.origin,proxy_url_encoded:encodeURIComponent(t.origin),path:n,pathname:n,path_with_slash:t.pathname||"/",pathname_with_slash:t.pathname||"/",query:r,search:t.search,hash:t.hash,fragment:s,pathname_after_wp_json:o,pathname_after_wp_json_with_slash:i,rest_namespace:c,rest_version:_,rest_route:u,rest_route_with_slash:u?`/${u}`:"/"}}catch{return}}function Y(e,t){if(!e)return{};if(Array.isArray(e)){for(const a of e){const c=Y(a,t);if(c!==void 0)return c}return}if(e==="*")return{};const n=kt(t,e),{regex:r,tokens:s}=Mt(e),o=r.exec(n);if(!o)return;const i={};return s.forEach((a,c)=>{i[`matched_${a}`]=o[c+1]||""}),i}function M(e,t,n={}){const r=Ut(t);if(!r)return t;const s={...r,...n};let o="",i=0;const a=/\{([a-z_]+)\}/gi;let c;for(;c=a.exec(e);){o+=e.slice(i,c.index);const _=s[c[1]]??"",u=Ft(e,c.index,c[1])?encodeURIComponent(_):_;o+=u,i=c.index+c[0].length}o+=e.slice(i);try{const _=new URL(o),u=new URL(t);return!o.includes("{search}")&&!o.includes("{query}")&&u.search&&u.searchParams.forEach((f,h)=>{_.searchParams.has(h)||_.searchParams.append(h,f)}),!o.includes("{hash}")&&!o.includes("{fragment}")&&u.hash&&!_.hash&&(_.hash=u.hash),_.toString()}catch{return o}}function ae(e,t){try{const n=new URL(t);return`${v(e)}/${n.pathname.replace(/^\//,"")}${n.search}${n.hash}`}catch{return t}}function ce(e,t){const n=v(e);return t?be(t)?t:t.startsWith("?")||t.startsWith("#")?`${n}${t}`:`${n}${t.startsWith("/")?"":"/"}${t}`:n}function Pe(e,t,n,r){const s=e.match;return s?Array.isArray(s)?s.some(o=>Pe({...e,match:o},t,n,r)):typeof s=="function"?!!s({url:t,method:r,requestType:n}):s==="*"?!0:Y(s,t)!==void 0:!0}function jt(e,t,n,r="generic"){if(e==null)return[];const s=Array.isArray(e)?e:[e],o=[];return s.forEach((i,a)=>{if(!i)return;if(typeof i=="string"){const f=i.includes("{")&&i.includes("}")?M(i,t):ae(i,t);o.push({key:`backend:${a}`,url:f,source:"resource"});return}if(!Ce(i)||!("rewrite"in i))return;const c=i;if(!Pe(c,t,r,n))return;const _=typeof c.match=="string"||Array.isArray(c.match)?Y(c.match,t)||{}:{},u=typeof c.proxyBase=="string"&&c.proxyBase.trim()?c.proxyBase.trim():void 0;(Array.isArray(c.rewrite)?c.rewrite:[c.rewrite]).filter(Boolean).forEach((f,h)=>{const p=typeof f=="function"?(()=>{const I=f({url:t,proxyBase:u,method:n,requestType:r,..._}),E=u&&!be(I)?ce(u,I):I;return E.includes("{")&&E.includes("}")?M(E,t,_):E})():u?M(ce(u,f),t,_):f.includes("{")&&f.includes("}")?M(f,t,_):ae(f,t);o.push({key:`backend:${c.id||"rule"}:${a}:${h}`,url:p,source:"resource"})})}),Pt(o)}function Gt(e){try{const t=new URL(e);return/(?:^|\/)wp-json\/em-files\/v\d+(?:\/|$)/i.test(t.pathname)?"emFiles":/(?:^|\/)wp-json\/ai-generator\/v\d+(?:\/|$)/i.test(t.pathname)?"ai":"generic"}catch{return"generic"}}function Ht(e,t=[]){return e==null||(Array.isArray(e)?e:[e]).forEach(n=>{if(n){if(typeof n=="string"){const r=n.split("{")[0]?.trim();r&&t.push(v(r));return}!Ce(n)||!("rewrite"in n)||(typeof n.proxyBase=="string"&&n.proxyBase.trim()&&t.push(v(n.proxyBase.trim())),(Array.isArray(n.rewrite)?n.rewrite:[n.rewrite]).forEach(r=>{if(typeof r!="string")return;const s=r.split("{")[0]?.trim();s&&t.push(v(s))}))}}),t}function Xt(e,t){return Lt(t).flatMap(n=>Ht(n)).filter(Boolean).some(n=>n&&e.startsWith(n))}function Vt(e,t){return!!J(t)&&xt(e,t)}function $t(e,t={}){const n=t.requestType||Gt(e);return Vt(n,t.config)?jt(J(t.config),e,t.method,n):[]}function Wt(e,t={}){return Xt(e,t.config)?[e]:$t(e,t).map(n=>n.url)}function D(e){for(;e.endsWith("/");)e=e.slice(0,e.length-1);return/\/wp-json$/i.test(e)?e:`${e}/wp-json`}function qt(...e){const t=e.filter(o=>o!=null);if(t.length===0)return;if(t.length===1)return t[0];const n=t.find(o=>o.aborted);if(n)return n;if(typeof AbortSignal<"u"&&typeof AbortSignal.any=="function")return AbortSignal.any(t);const r=new AbortController,s=o=>{r.signal.aborted||r.abort(o.reason)};for(const o of t)o.addEventListener("abort",()=>s(o),{once:!0});return r.signal}var _e=3e5,ue=15e3,A=null,le=!1;function Kt(){return!0}function zt(){const e=String({}.REACT_APP_OPENAPI_FAILOVER_TTL_MS||"").trim();if(!e)return _e;const t=Number(e);return Number.isFinite(t)&&t>0?t:_e}function Jt(){const e=String({}.REACT_APP_OPENAPI_FAILOVER_ATTEMPT_TIMEOUT_MS||"").trim();if(!e)return ue;const t=Number(e);return Number.isFinite(t)&&t>0?t:ue}function Yt(){const e="https://app.useblocks.io/api".trim();return e?D(e):void 0}function Qt(e){const t=e.trim();if(!t)return[];if(t.startsWith("["))try{const n=JSON.parse(t);if(!Array.isArray(n))throw new Error("expected JSON array");return n.map(r=>String(r).trim()).filter(Boolean)}catch{return le||(le=!0),[]}return t.split(",").map(n=>n.trim()).filter(Boolean)}function Zt(e){const t=new Set,n=[];for(const r of e){const s=D(r);t.has(s)||(t.add(s),n.push(s))}return n}function Le(e){const t=String(e||"").trim();return t?D(t):Yt()}function Re(e,t=[]){return e?Zt([e,...t]).slice(0,3):[]}function xe(){return Qt(String({}.REACT_APP_OPENAPI_FAILOVER_BASE_URLS||"").trim())}function en(e=Date.now()){return A?e-A.switchedAt>=zt():!0}function we(e=Date.now()){A&&en(e)&&(A=null)}function S(e){if(!Kt())return!1;const t=Le(e);if(!t)return!1;const n=xe();return n.length===0?!1:Re(t,n).length>1}function L(e){const t=Le(e);if(!t)return[];const n=xe();return n.length===0?[t]:Re(t,n)}function Q(e){const t=L(e);if(t.length===0)return"";if(we(),A){const n=t.indexOf(A.activeUrl);if(n>=0)return t[n]}return t[0]}function Me(e){const t=L(e);if(t.length<=1||(we(),!A||!t.includes(A.activeUrl)))return t;const n=A.activeUrl;return[n,...t.filter(r=>r!==n)]}function tn(e){return Q(e)||void 0}function Be(e){const t=e||void 0;if(typeof AbortController>"u")return{signal:t,timeoutError:()=>{},done:()=>{}};const n=Jt(),r=new AbortController;let s;const o=setTimeout(()=>{s=nn(n),r.abort(s)},n);return{signal:qt(t,r.signal),timeoutError:()=>s,done:()=>clearTimeout(o)}}function nn(e){const t=`[apiOriginFailover] origin attempt timed out after ${e}ms`;if(typeof DOMException=="function")return new DOMException(t,"TimeoutError");const n=new Error(t);return n.name="TimeoutError",n}function ke(e){return e===502||e===503||e===504}function Fe(e){return!(e instanceof Error)&&!(e instanceof DOMException)?!1:e.name==="TimeoutError"?!0:e instanceof TypeError}var Ue;function mr(e){Ue=e}function B(e,t){if(!S(t))return;const n=L(t);if(n.length<=1)return;const r=n.indexOf(D(e));if(r<0)return;const s=r+1;if(s>=n.length)return;const o=n[s],i=A?.activeUrl;A={activeUrl:o,switchedAt:Date.now()},i!==o&&Ue?.()}function je(e,t){if(!S(t))return;const n=D(e),r=L(t);if(r.includes(n)){if(n===r[0]){A=null;return}A?.activeUrl!==n&&(A={activeUrl:n,switchedAt:Date.now()})}}function Ge(){A=null}var rn=e=>{const t=new FormData,n=(r,s,o)=>{if(s!=null){if(s instanceof Blob){r.append(o,s);return}if(Array.isArray(s)){s.forEach((i,a)=>{const c=o?`${o}[${a}]`:`${a}`;n(r,i,c)});return}if(typeof s=="object"){Object.keys(s).forEach(i=>{const a=s[i],c=o?`${o}[${i}]`:i;n(r,a,c)});return}r.append(o,String(s))}};return n(t,e),t},sn={baseUrl:D("https://app.useblocks.io/api"),baseApiParams:{secure:!0,credentials:"same-origin",format:"json"},securityWorker:()=>({credentials:"same-origin"})},T=new Map;function on(e){const t=e?.getInstance(ot);return t?t.get()??t.bootstrap():void 0}var an=class extends pt{container;constructor(e={},t){super(e),this.container=t}buildRequestUrl(e){const{path:t,baseUrl:n,extraQuery:r}=e;let{query:s}=e;r&&(s=s?{...s,...r}:r);const o=s&&this.toQueryString(s);return`${n||this.baseUrl||""}${t}${o?`?${o}`:""}`}buildRequestKey(e,t){return`${t.toUpperCase()} ${e}`}getBackendProxyCandidates(e,t){const n=on(this.container),r=this.container?.getInstance(at)!==void 0,s=Wt(e,{config:n,method:t,standalone:r}),o=s.length>0?s:[e],i=this.buildRequestKey(e,t),a=T.get(i);return!a||!o.includes(a)?o:[a,...o.filter(c=>c!==a)]}shouldRetryResponse(e){return e.status===502||e.status===503||e.status===504}resolveFailoverBaseUrl(){return String(this.baseUrl||"").trim()||void 0}async requestOnOrigin(e,t,n=!1){const r={...e,baseUrl:t},s=this.buildRequestUrl(r),o=r.method||"GET",i=this.buildRequestKey(s,o),a=this.getBackendProxyCandidates(s,o);let c,_;for(const u of a){const f=p=>p===s?u:p,h=n?Be(e.signal):void 0;try{const p=await super.request({...r,proxyHandler:f,...h?{signal:h.signal}:{}});if(!p.ok&&this.shouldRetryResponse(p)&&u!==a[a.length-1]){_=p,T.get(i)===u&&T.delete(i);continue}return T.set(i,u),p}catch(p){T.get(i)===u&&T.delete(i);const I=h?.timeoutError();if(I)throw I;if(c=p,(p instanceof DOMException||p instanceof Error)&&p.name==="AbortError")throw p}finally{h?.done()}}if(_)return _;throw c instanceof Error?c:new Error("Backend proxy chain failed")}async request(e){const t=String(e.baseUrl||"").trim();if(t)return this.requestOnOrigin(e,t);const n=this.resolveFailoverBaseUrl(),r=S(n),s=e.failoverAttemptTimeout??r,o=r?Me(n):n?[Q(n)]:[this.baseUrl].filter(Boolean);if(o.length===0)return this.requestOnOrigin(e,this.baseUrl);let i,a;for(let c=0;c<o.length;c++){const _=o[c],u=c===o.length-1;try{const f=await this.requestOnOrigin(e,_,s);if(!f.ok&&ke(f.status)){if(a=f,!u){B(_,n);continue}break}return f.ok&&je(_,n),f}catch(f){if(!Fe(f))throw f;i=f,u||B(_,n)}}if(r&&Ge(),a)return a;throw i instanceof Error?i:new Error("API origin failover chain failed")}};function cn(e={},t){const n=new an({...sn,...e},t);return n.contentFormatters["multipart/form-data"]=rn,n}var _n=d("rest.clientFactory"),Or=e=>{Ot(e);const t=cn({customFetch:e.getInstance(Se)?.execute??mt},e);e.inject(De,t)},de;(function(e){const t="https://racs.rest/v3";function n(s,o){const i={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(o)};return fetch(`${t}?resource=${s}&dataset=${document.location.hostname}`,i)}e.post=n;async function r(s,o=0){const i={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:`{"filter":{},"limit":${o}}`};return await(await fetch(`${t}/get?resource=${s}&dataset=${document.location.hostname}`,i)).json()}e.getAll=r})(de||(de={}));function k(e,t){if(e!==t){if(!e||!t||typeof e!="object"||typeof t!="object")return!1;const n=Array.isArray(e),r=Array.isArray(t);if(n){if(!r)return!1;const a=e.length;if(t.length!==a)return!1;for(let c=0;c<a;c++)if(!k(e[c],t[c]))return!1}else if(r)return!1;const s=Object.keys(e),o=Object.keys(t),i=s.length;if(i!==o.length)return!1;for(let a=0;a<i;a++){const c=s[a];if(!t.hasOwnProperty(c)||!k(e[c],t[c]))return!1}}return!0}function un(e){const t=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"="),n=atob(t),r=new Uint8Array(n.length);for(let s=0;s<n.length;s++)r[s]=n.charCodeAt(s);return new TextDecoder().decode(r)}function ln(e){const[t,n,r]=e.split("."),s=JSON.parse(un(n));return{exp:s.exp,createdAt:s.iat,data:s}}var V=d("plugin.auth.token"),fe=new WeakMap,dn=3e4;function fn(e){let t;try{t=ln(e).exp}catch{return!0}return typeof t!="number"||!Number.isFinite(t)?!0:t*1e3<=Date.now()+dn}function pn(e,t,n,r){const s=fe.get(e);s&&(s.stale=!0);const o={stale:!1};fe.set(e,o),e.injectFactory(V,async(i,a)=>{if(o.stale)return"";try{let c=await a||void 0;if(!c){const _=e.getInstance(it);_&&(c=await _)}return t?!c||fn(c)?await t(n,r,c):c:""}catch{return""}},!0)}var pe=d("auth.oauthProvided"),he=new WeakMap;function He(e,t){const n=he.get(e)??{applied:!1};(!n.applied||n.getAuthToken!==t.getAuthToken||!k(n.user,t.user)||n.project!==t.project)&&(he.set(e,{applied:!0,getAuthToken:t.getAuthToken,user:t.user,project:t.project}),pn(e,t.getAuthToken,t.user,t.project))}function hn(e){if(e.getInstance(pe))return;e.inject(pe,!0);let t;e.getInstance(st)?.watch(n=>{t=n}),e.addService(K,{execute:async(n,r)=>{if(r?.public||!t?.getAuthToken)return;e.getInstance(V)===void 0&&He(e,t);const s=await e.getInstanceAsync(V);s&&n.headers.set("authorization",`Bearer ${s}`)}})}var Tr={text:{fontFamily:["Google Fonts","Sans Serif","Mulish","Regular"],fontSize:16,fontSizeDim:"px",lineHeight:24,lineHeightDim:"px",color:"#595959",contrastColor:"#FFFFFF",textAlign:"left",paddingBottom:10,paddingBottomDim:"px"},headings:{fontFamily:["Google Fonts","Sans Serif","Mulish","Bold"],fontSize:28,fontSizeDim:"px",lineHeight:34,lineHeightDim:"px",color:"#000000",contrastColor:"#FFFFFF",textAlign:"left",paddingTop:20,paddingTopDim:"px",paddingBottom:20,paddingBottomDim:"px",letterSpacing:0,letterSpacingDim:"px",bold:!0,italic:!1},links:{color:"#1890ff",contrastColor:"#FFFFFF",underline:!0},buttons:{fontFamily:["Google Fonts","Sans Serif","Mulish","Medium"],fontSize:16,fontSizeDim:"px",letterSpacing:0,letterSpacingDim:"px",color:"#FFFFFF",contrastColor:"#1890ff",bold:!1,italic:!1,backgroundColor:"#1890ff",contrastBackgroundColor:"#FFFFFF",marginTop:10,marginTopDim:"px",marginBottom:10,marginBottomDim:"px",border:{all:null,top:null,right:null,bottom:null,left:null},borderRadius:{all:6,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null},textAlign:"center",padding:{all:null,top:null,right:null,bottom:null,left:null}},block:{backgroundColor:"#FFFFFF",contrastBackgroundColor:"#1890ff",padding:{all:null,top:null,right:null,bottom:null,left:null}},cards:{contrastBackgroundColor:"#1890ff",contrastTextColor:"#ffffff",baseBackgroundColor:"#f8f8f8",baseTextColor:"#333333",border:{all:null,top:null,right:null,bottom:null,left:null},borderRadius:{all:10,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null}}},Xe="ERROR",Sr="useblocks",Dr={em_token:"em_access_token",em_refresh_token:"em_refresh_token",em_admin_token:"em_admin_access_token",em_admin_refresh_token:"em_admin_refresh_token",em_impersonation:"em_impersonation",em_elements_view:"em_elements_view",em_new_block:"em_new_block",em_new_email:"em_new_email",em_id:"em_id",em_name:"em_name",em_email:"em_email",em_locale:"em_locale",em_carrotquest_hash:"em_carrotquest_hash",em_ducalis_hash:"em_ducalis_hash",em_email_subscription_consent:"em_email_subscription_consent",em_folder:"em_folder",promocode:"promocode",em_active_tab:"em_active_tab"},Nr={em_color_scheme:"em_color_scheme",em_code_mode_pane_sizes:"em_code_mode_pane_sizes",em_preview_pane_sizes:"em_preview_pane_sizes",em_default_sizes:"em_default_sizes",em_pane_sizes:"em_pane_sizes",em_test_emails:"em_test_emails",em_menu_is_locked:"em_menu_is_locked",em_code_mode_settings:"em_code_mode_settings",em_folder_is_open:"em_folder_is_open",em_active_tab:"em_active_tab",em_ai_settings:"em_ai_settings",em_last_active_page:"em_last_active_page",em_layout_convert_never_suggest:"em_layout_convert_never_suggest",em_filemanager_v2:"em_filemanager_v2",em_projects_v2:"em_projects_v2",em_translations_v2:"em_translations_v2",em_defer_chrome:"em_defer_chrome",em_stripo_import:"em_stripo_import",em_guest_locale:"em_guest_locale"},yr="light",vr="dark",br="(prefers-color-scheme: dark)",Cr={MESSAGE:"message",INIT_PREVIEW:"init_preview",UPDATE_PREVIEW:"update_preview",UPDATE_EDITOR:"update_editor",UPDATE_EDITOR_POSITION:"update_editor_position",UPDATE_SIDE_MENU_EDITOR:"update_side_menu_editor",SAVE_EMAIL:"saveEmail",SANDBOX_ELEMENT_SETTINGS_SET:"sandbox_element_settings_set",SANDBOX_IMAGE_RESET:"sandbox_image_reset",SANDBOX_NATIVE_IMAGE_DROP_CLEAR:"sandbox_native-image-drop-clear",SANDBOX_EMAIL_SETTINGS_SET:"sandbox_email_settings_set",SANDBOX_BLOCK_SETTINGS_SET:"sandbox_block_settings_set",SANDBOX_ELEMENT_PARENT_GET:"sandbox_element_parent_get",SANDBOX_ELEMENT_PARENT_TABLE_GET:"sandbox_element_parent_table_get",SANDBOX_ELEMENT_PREV_GET:"sandbox_element_prev_get",SANDBOX_ELEMENT_NEXT_GET:"sandbox_element_next_get",SANDBOX_ELEMENT_REMOVE:"sandbox_element_remove",SANDBOX_ELEMENT_ACTIVE_RESET:"sandbox_element_active_reset",SANDBOX_ELEMENT_ACTIVE_SET:"sandbox_element_active_set",SANDBOX_ELEMENT_HOVER_SET:"sandbox_element_hover_set",SANDBOX_ELEMENT_IMG_LINK:"sandbox_element_img_link",SANDBOX_ELEMENT_TEXT:"sandbox_element_text",SANDBOX_EMAIL_CONTENT_GET:"sandbox_email_content_get",SANDBOX_SET_POSITION_TO_IMG:"sandbox_set_position_to_img",SANDBOX_SET_POSITION_TO_LINK:"sandbox_set_position_to_link",SANDBOX_ACCORDION_ADD_SECTION:"sandbox_accordion_add_section",SANDBOX_ACCORDION_REMOVE_SECTION:"sandbox_accordion_remove_section",APPLICATION_FOCUS_IN_IFRAME:"application_focus_in_iframe",APPLICATION_EMAIL_SETTINGS_SET:"application_email_settings_set",APPLICATION_BLOCK_SETTINGS_SET:"application_block_settings_set",APPLICATION_ELEMENT_SETTINGS_SET:"application_element_settings_set",_APPLICATION_ELEMENT_SETTINGS_SET:"application_element_settings_set",APPLICATION_ELEMENT_SETTINGS_CLOSE:"application_element_settings_close",APPLICATION_ACTION:"application_action",APPLICATION_EBLOCK_ADD:"application_eblock_add",SANDBOX_EBLOCK_SET_EM_BLOCK_ID:"sandbox_eblock_set_em_block_id",SANDBOX_GLOBAL_BLOCK_REPLACE:"sandbox_global_block_replace",APPLICATION_SCROLL_TO:"application_scroll-to",APPLICATION_SCROLL_BLOCK_SHOW:"application_scroll-block-show",APPLICATION_SCROLL_BLOCK_HIDE:"application_scroll-block-hide",APPLICATION_DISCUSS_SET_ID:"application_discuss_set_id",APPLICATION_DISCUSS_GET_COMMENT:"application_discuss_get_comment",APPLICATION_DISCUSS_NO_COMMENT:"application_discuss_no_comment",APPLICATION_DISCUSS_SAVE_TARGET:"application_discuss_save_target",APPLICATION_IFRAME_SET_HEIGHT:"application_iframe_set_height",APPLICATION_COMMON_STYLES_UPDATE:"application_commonStyles_update",APPLICATION_EMAIL_CONTENT_GET:"application_email_content_get",APPLICATION_OPEN_IMAGE_AI_POPUP:"application_open-image-ai-popup",APPLICATION_OPEN_IMAGE_UPLOAD_POPUP:"application_open-image-upload-popup",APPLICATION_OPEN_IMAGE_EDIT_POPUP:"application_open-image-edit-popup",APPLICATION_OPEN_IMAGE_GIF_POPUP:"application_open-image-gif-popup",APPLICATION_OPEN_IMAGE_STOCK_POPUP:"application_open-image-stock-popup",APPLICATION_CLOSE_IMAGE_EDIT_POPUP:"application_close-image-edit-popup",APPLICATION_NATIVE_IMAGE_DROP:"application_native-image-drop",APPLICATION_SUBJECT_UPDATE:"application_subject_update",APPLICATION_PREHEADER_UPDATE:"application_preheader_update",APPLICATION_DOMPARSER_ERROR:"application_domparser_error",APPLICATION_SYNC_DRIFT:"application_sync_drift",APPLICATION_UPDATE_ENTITY:"application_update_entity",APPLICATION_IFRAME_DRAG_EVENT:"application_iframe_drag_event",APPLICATION_HAS_AMP:"application_has_amp",APPLICATION_CANVAS_IMAGE_GET:"application_canvas_image_get",APPLICATION_PREVIEW_ALERT_SHOW:"application_preview_alert_show",APPLICATION_ATOM_INSERTED:"application_atom_inserted",APPLICATION_TEMPLATE_NOT_EM_ALERT_SHOW:"application_template_not_em_alert_show",SANDBOX_WINDOW_CHARACTERISTIC:"sandbox_window-characteristic",SANDBOX_IFRAME_SETSIZE:"sandbox_iframe-setsize",SANDBOX_BLOCK_INSERT:"sandbox_block-insert",SANDBOX_ATOM_INSERT:"sandbox_atom-insert",SANDBOX_DRAG_CANCEL:"sandbox_drag-cancel",UPDATE_EDITOR_POSITION_FROM_EDITOR:"update_position_from_editor",UPDATE_EDITOR_POSITION_FROM_IFRAME:"update_position_from_iframe",SANDBOX_CHANGE_PREVIEW:"sandbox_change_preview",APPLICATION_CHANGE_PREVIEW:"application_change_preview",SANDBOX_LOCK_EDIT:"sandbox_lock_edit",SANDBOX_FLOATBLOCK_ADD:"sandbox_floatBlock_add",SANDBOX_FLOATBLOCK_REMOVE:"sandbox_floatBlock_remove",SANDBOX_FLOATBLOCK_COPY:"sandbox_floatBlock_copy",SANDBOX_FLOATBLOCK_SWAP:"sandbox_floatBlock_swap",EDITOR_CHANGE_FOCUS:"editor_change_focus",SANDBOX_RESIZED:"sandbox_resized",SANDBOX_LOCK_DISCUSS:"sandbox_lock_discuss",SANDBOX_DISCUSS_SET_TARGET:"sandbox_discuss_set_target",SANDBOX_DISCUSS_REMOVE_TARGET:"sandbox_discuss_remove_target",SANDBOX_DISCUSS_RESET:"sandbox_discuss_reset",SANDBOX_DISCUSS_GET_TARGET:"sandbox_discuss_get_target",SANDBOX_READY:"SANDBOX_READY",SANDBOX_FLOATBLOCK_WRAP:"sandbox_floatblock_wrap",SANDBOX_FLOATBLOCK_DIR:"sandbox_floatblock_dir",SANDBOX_SUBJECT_UPDATE:"sandbox_subject_update",SANDBOX_PREHEADER_UPDATE:"sandbox_preheader_update",SANDBOX_DRAG_EVENT:"sandbox_drag_event",SANDBOX_WHEEL:"sandbox_wheel",SANDBOX_ADD_MERGETAG:"sandbox_add_mergetag",SANDBOX_TRANSLATIONS:"sandbox_send_translations",SANDBOX_SET_THEME_VARIABLES:"sandbox_send_theme_variables",SANDBOX_SET_PROJECT_FONTS:"sandbox_set_project_fonts",SANDBOX_CANVAS_IMAGE_CACHE_SETUP:"sandbox_canvas_image_cache_setup",SANDBOX_SET_ENTITY:"sandbox_set_entity",SANDBOX_INIT_START:"sandbox_init_start",SANDBOX_INITED:"sandbox_inited",SANDBOX_UPDATE_ENTITY:"sandbox_update_entity",RELOAD:"reload",SANDBOX_ADD_EXTENSIONS:"sandbox_add_extensions",SANDBOX_REMOVE_EXTENSIONS:"sandbox_remove_extensions",SANDBOX_ADD_SCRIPT:"sandbox_add_script",SANDBOX_IS_EMAIL_EMPTY:"sandbox_is_email_empty",SANDBOX_SWITCH_THEME:"sandbox_switch_theme",SANDBOX_CANVAS_HEALTH:"sandbox_canvas_health"},Pr={language:"html",detectIndentation:!1,wordWrap:"on",wrappingIndent:"same",smoothScrolling:!0,automaticLayout:!0,tabSize:2,indentSize:2},En=e=>{const t={current:Promise.resolve(),state:e,decorate:(n,r)=>(r&&(n=n.bind(r)),function(...s){const o=t.current.then(()=>n(...s));return t.current=o.then(i=>{t.state=i},i=>{}),o})};return t};function Ve(e){return function(t){return{setOptions:()=>{},instance:{},dispose:()=>{},...e(t)||{}}}}function Lr(e){return t=>{const n={},r=[];for(const i of e)r.push(i(t));for(const i of r)Object.assign(n,i.instance);return{instance:n,setOptions:async i=>{for(const a of r)await a.setOptions(i)},dispose:()=>{for(const i of r)i.dispose()}}}}function An(e=Xe){const t=new Error(e);return t.name="AuthPipelineError",t}async function In(e,t,n,r){const s=r?.attemptTimeout??S(n),o=S(n)?Me(n):L(n).length>0?[Q(n)]:[];if(o.length===0)throw new Error("[apiOriginFailover] no API base URL configured");const i=e.startsWith("/")?e:`/${e}`;let a,c;for(let _=0;_<o.length;_++){const u=o[_],f=_===o.length-1,h=s?Be(t.signal):void 0;try{const p=await fetch(`${u}${i}`,{...t,...h?{signal:h.signal}:{}});if(!p.ok&&ke(p.status)){if(a=p,!f){B(u,n);continue}break}return p.ok&&je(u,n),p}catch(p){const I=h?.timeoutError();if(!I&&!Fe(p))throw p;c=I||p,f||B(u,n)}finally{h?.done()}}if(S(n)&&Ge(),a)return a;throw c instanceof Error?c:new Error("[apiOriginFailover] fetch chain failed")}function Ee(e){e.inject(y,void 0),e.inject(X,void 0)}var Rr=Ve(e=>{let t,n;const r=En();return e.addService(K,{execute:r.decorate(async(s,o)=>{if(o?.public||!t)return;const i=String(e.getInstance(X)||"").trim();if(i){s.headers.append("authorization",`Bearer ${i}`);return}if(!e.getInstance(y))try{const a=e.getInstance(_n),c=String(a?.getOptions()?.baseUrl||"").trim(),_=tn(n||c||void 0);if(!_)throw new Error("JWT auth requires baseUrl");const u=await In("/jwt-auth/token",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)},_);if(!u.ok)throw new Error(`JWT auth failed: ${u.status}`);const f=await u.json(),h=String(f.token||"").trim();if(!h)throw new Error("JWT auth failed: empty token");e.inject(y,void 0),e.inject(X,h),s.headers.append("authorization",`Bearer ${h}`)}catch{throw e.inject(y,Xe),An()}})}),{setOptions(s){const o=s.jwtAuth,i=String(s.baseUrl||"").trim()||void 0,a=!k(o,t),c=i!==n;if(t=o,n=i,!o){Ee(e);return}a||c?Ee(e):e.inject(y,void 0)}}}),xr=Ve(e=>(hn(e),{setOptions(t){He(e,t)}}));function gn(e){return typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(e):e.replace(/([^a-zA-Z0-9_-])/g,"\\$1")}function $(e,t=document){try{const r=t.querySelector(e);if(r)return r}catch{return null}const n=t.querySelectorAll("*");for(let r=0;r<n.length;r++){const s=n[r]?.shadowRoot;if(!s)continue;const o=$(e,s);if(o)return o}return null}function $e(e,t=[]){const n=e.querySelectorAll("*");for(let r=0;r<n.length;r++){const s=n[r]?.shadowRoot;s&&(t.push(s),$e(s,t))}return t}function mn(e,t,n){if(e.isConnected)return e;const r=e.id?.trim();return r?On(`#${gn(r)}`,t,n):Promise.reject(b("Editor mount element was disconnected and has no id — pass a CSS selector or call init() again after the host remounts the container."))}function On(e,t,n){if(Oe(n),typeof e<"u"){if(typeof e=="string"){const r=e,s=$(r);if(s)return s;const o=t.addDisposable(new O);return new Promise((i,a)=>{const c=E=>{o.dispose(),E()},_=()=>{c(()=>a(b(n?.reason)))};if(n?.aborted){_();return}n?.addEventListener("abort",_),o.addDispose(()=>n?.removeEventListener("abort",_));const u=document.body??document.documentElement;if(!u){c(()=>a(b("Document is not ready to observe mount element")));return}const f=new Set,h=new MutationObserver(()=>{const E=$(r);if(E){c(()=>i(E));return}I()}),p=E=>{f.has(E)||(f.add(E),h.observe(E,{attributes:!0,childList:!0,subtree:!0}))},I=()=>{const E=document.documentElement;if(E)for(const R of $e(E))p(R)};p(u),I(),o.addDispose(()=>h.disconnect())})}return e instanceof Element?mn(e,t,n):e}return e}var wr=new Map;export{lt as $,Dt as A,Nn as At,dr as B,Q as C,yn as Ct,Ir as D,bn as Dt,qt as E,Cn as Et,K as F,Ze as Ft,er as G,zn as H,De as I,Tn as It,or as J,sr as K,pr as L,F as Lt,hr as M,Sn as Mt,Se as N,te as Nt,Ar as O,b as Ot,It as P,d as Pt,Kn as Q,fr as R,O as Rt,Or as S,C as St,mr as T,Pn as Tt,Jn as U,nr as V,Yn as W,Zn as X,Qn as Y,tr as Z,Tr as _,ne as _t,In as a,Mn as at,k as b,Ln as bt,En as c,Fn as ct,Cr as d,at as dt,qn as et,yr as f,Hn as ft,Sr as g,Un as gt,br as h,jn as ht,Rr as i,ot as it,Er as j,Oe as jt,gr as k,Dn as kt,Dr as l,st as lt,Pr as m,Xn as mt,On as n,$n as nt,Lr as o,Bn as ot,Nr as p,it as pt,rr as q,xr as r,Wn as rt,Ve as s,kn as st,wr as t,wn as tt,vr as u,Vn as ut,hn as v,xn as vt,tn as w,vn as wt,_n as x,q as xt,ln as y,Rn as yt,_r as z};
@@ -1 +0,0 @@
1
- __useblocks__.define(`static/umd-runtime/delivery-libs.js`,[`require`,`exports`,`module`,`static/umd-runtime/DXuqyllu.js`,`useblocks/runtime/classnames`,`static/umd-runtime/ui-kit.js`,`useblocks/runtime/antd`,`static/umd-runtime/ui-kit-icons.js`,`useblocks/runtime/react`,`useblocks/runtime/react-dom`,`useblocks/runtime/react-dom/client`,`useblocks/runtime/react/jsx-runtime`,`useblocks/runtime/react/jsx-dev-runtime`,`useblocks/runtime/@ant-design/icons/es/components/AntdIcon`,`useblocks/runtime/@ant-design/cssinjs`,`useblocks/runtime/dayjs`],function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:`Module`});let r=e("./DXuqyllu.js"),i=e("useblocks/runtime/classnames");i=r.r(i);let a=e("static/umd-runtime/ui-kit.js"),o=e("useblocks/runtime/antd"),s=e("static/umd-runtime/ui-kit-icons.js"),c=e("useblocks/runtime/react");c=r.r(c);let l=e("useblocks/runtime/react-dom");l=r.r(l);let u=e("useblocks/runtime/react-dom/client");u=r.r(u);let d=e("useblocks/runtime/react/jsx-runtime");d=r.r(d);let f=e("useblocks/runtime/react/jsx-dev-runtime");f=r.r(f);let p=e("useblocks/runtime/@ant-design/icons/es/components/AntdIcon");p=r.r(p);let m=e("useblocks/runtime/@ant-design/cssinjs");m=r.r(m);let h=e("useblocks/runtime/dayjs");h=r.r(h),Object.defineProperty(t,"AntDesignCssinjs",{enumerable:!0,get:function(){return m}}),Object.defineProperty(t,"AntDesignIconBase",{enumerable:!0,get:function(){return p}}),t.Classnames=i.default,Object.defineProperty(t,"Dayjs",{enumerable:!0,get:function(){return h}}),Object.defineProperty(t,"React",{enumerable:!0,get:function(){return c}}),Object.defineProperty(t,"ReactDom",{enumerable:!0,get:function(){return l}}),Object.defineProperty(t,"ReactDomClient",{enumerable:!0,get:function(){return u}}),Object.defineProperty(t,"ReactJsxDevRuntime",{enumerable:!0,get:function(){return f}}),Object.defineProperty(t,"ReactJsxRuntime",{enumerable:!0,get:function(){return d}}),t.antd$Alert=o.Alert,t.antd$App=o.App,t.antd$AutoComplete=o.AutoComplete,t.antd$Avatar=o.Avatar,t.antd$Breadcrumb=o.Breadcrumb,t.antd$Button=o.Button,t.antd$Card=o.Card,t.antd$Carousel=o.Carousel,t.antd$Cascader=o.Cascader,t.antd$Checkbox=o.Checkbox,t.antd$Col=o.Col,t.antd$ColorPicker=o.ColorPicker,t.antd$ConfigProvider=o.ConfigProvider,t.antd$DatePicker=o.DatePicker,t.antd$Divider=o.Divider,t.antd$Dropdown=o.Dropdown,t.antd$Empty=o.Empty,t.antd$Flex=o.Flex,t.antd$Form=o.Form,t.antd$Image=o.Image,t.antd$Input=o.Input,t.antd$InputNumber=o.InputNumber,t.antd$Layout=o.Layout,t.antd$List=o.List,t.antd$Menu=o.Menu,t.antd$Modal=o.Modal,t.antd$Pagination=o.Pagination,t.antd$Popconfirm=o.Popconfirm,t.antd$Progress=o.Progress,t.antd$Radio=o.Radio,t.antd$Result=o.Result,t.antd$Row=o.Row,t.antd$Segmented=o.Segmented,t.antd$Select=o.Select,t.antd$Skeleton=o.Skeleton,t.antd$Space=o.Space,t.antd$Spin=o.Spin,t.antd$Switch=o.Switch,t.antd$Table=o.Table,t.antd$Tabs=o.Tabs,t.antd$Tag=o.Tag,t.antd$Tooltip=o.Tooltip,t.antd$Tree=o.Tree,t.antd$Typography=o.Typography,t.antd$Upload=o.Upload,t.antd$theme=o.theme,t.icons$AI=s.AI,t.icons$AIRequests=s.AIRequests,t.icons$AMP=s.AMP,t.icons$AddImage=s.AddImage,t.icons$AddSlide=s.AddSlide,t.icons$AimOutlined=s.AimOutlined,t.icons$AlignCenterOutlined=s.AlignCenterOutlined,t.icons$AlignLeftOutlined=s.AlignLeftOutlined,t.icons$AlignRightOutlined=s.AlignRightOutlined,t.icons$AlignVerticalBottom=s.AlignVerticalBottom,t.icons$AlignVerticalCenter=s.AlignVerticalCenter,t.icons$AlignVerticalTop=s.AlignVerticalTop,t.icons$Anchor=s.Anchor,t.icons$AppstoreAddOutlined=s.AppstoreAddOutlined,t.icons$AppstoreOutlined=s.AppstoreOutlined,t.icons$ArrowLeftOutlined=s.ArrowLeftOutlined,t.icons$ArrowRightOutlined=s.ArrowRightOutlined,t.icons$ArrowUpOutlined=s.ArrowUpOutlined,t.icons$Atom=s.Atom,t.icons$BgPositionHorizontal=s.BgPositionHorizontal,t.icons$BgPositionVertical=s.BgPositionVertical,t.icons$Block=s.Block,t.icons$BoldOutlined=s.BoldOutlined,t.icons$BorderOuterOutlined=s.BorderOuterOutlined,t.icons$BorderRadius=s.BorderRadius,t.icons$BuildOutlined=s.BuildOutlined,t.icons$CalendarOutlined=s.CalendarOutlined,t.icons$ChatGpt=s.ChatGpt,t.icons$CheckCircleFilled=s.CheckCircleFilled,t.icons$CheckCircleOutlined=s.CheckCircleOutlined,t.icons$CheckCircleVerified=s.CheckCircleVerified,t.icons$CheckOutlined=s.CheckOutlined,t.icons$ChevronDownCustom=s.ChevronDownCustom,t.icons$ClearChat=s.ClearChat,t.icons$Close=s.Close,t.icons$CloseCircleFilled=s.CloseCircleFilled,t.icons$CloseOutlined=s.CloseOutlined,t.icons$CloudDownloadOutlined=s.CloudDownloadOutlined,t.icons$CloudUploadOutlined=s.CloudUploadOutlined,t.icons$Code=s.Code,t.icons$Column=s.Column,t.icons$ColumnHeightOutlined=s.ColumnHeightOutlined,t.icons$ColumnWidthOutlined=s.ColumnWidthOutlined,t.icons$CommentOutlined=s.CommentOutlined,t.icons$CopyOutlined=s.CopyOutlined,t.icons$CreateBlock=s.CreateBlock,t.icons$CreditCard02Icon=s.CreditCard02Icon,t.icons$DarkMode=s.DarkMode,t.icons$DeleteOutlined=s.DeleteOutlined,t.icons$DesktopOutlined=s.DesktopOutlined,t.icons$DotsHoriz=s.DotsHoriz,t.icons$DownOutlined=s.DownOutlined,t.icons$Edit=s.Edit,t.icons$EditOutlined=s.EditOutlined,t.icons$ElementAccordion=s.ElementAccordion,t.icons$ElementButton=s.ElementButton,t.icons$ElementCarousel=s.ElementCarousel,t.icons$ElementCountdown=s.ElementCountdown,t.icons$ElementDivider=s.ElementDivider,t.icons$ElementForm=s.ElementForm,t.icons$ElementImage=s.ElementImage,t.icons$ElementImageAI=s.ElementImageAI,t.icons$ElementListOL=s.ElementListOL,t.icons$ElementListUL=s.ElementListUL,t.icons$ElementSocial=s.ElementSocial,t.icons$ElementSpacer=s.ElementSpacer,t.icons$ElementTable=s.ElementTable,t.icons$ElementText=s.ElementText,t.icons$ElementTextAI=s.ElementTextAI,t.icons$ElementTitle=s.ElementTitle,t.icons$ElementVideo=s.ElementVideo,t.icons$Email=s.Email,t.icons$EmailConfirmation=s.EmailConfirmation,t.icons$EmailEnvelope=s.EmailEnvelope,t.icons$ExclamationCircleOutlined=s.ExclamationCircleOutlined,t.icons$EyeInvisibleOutlined=s.EyeInvisibleOutlined,t.icons$EyeOutlined=s.EyeOutlined,t.icons$FileImageOutlined=s.FileImageOutlined,t.icons$FileOutlined=s.FileOutlined,t.icons$FilePdfOutlined=s.FilePdfOutlined,t.icons$FileTextOutlined=s.FileTextOutlined,t.icons$FileWordOutlined=s.FileWordOutlined,t.icons$FileZipOutlined=s.FileZipOutlined,t.icons$FolderOpen=s.FolderOpen,t.icons$FontSizeOutlined=s.FontSizeOutlined,t.icons$Globe02Icon=s.Globe02Icon,t.icons$GoToParent=s.GoToParent,t.icons$Grid01Icon=s.Grid01Icon,t.icons$Group=s.Group,t.icons$HistoryOutlined=s.HistoryOutlined,t.icons$HolderOutlined=s.HolderOutlined,t.icons$Image=s.Image,t.icons$ImageAdd=s.ImageAdd,t.icons$InboxOutlined=s.InboxOutlined,t.icons$InfoCircleOutlined=s.InfoCircleOutlined,t.icons$IntegrationConfigure=s.IntegrationConfigure,t.icons$ItalicOutlined=s.ItalicOutlined,t.icons$LandscapeView=s.LandscapeView,t.icons$LayoutCol1=s.LayoutCol1,t.icons$LayoutCol2=s.LayoutCol2,t.icons$LayoutCol2WideLeft=s.LayoutCol2WideLeft,t.icons$LayoutCol2WideRight=s.LayoutCol2WideRight,t.icons$LayoutCol3=s.LayoutCol3,t.icons$LayoutCol4=s.LayoutCol4,t.icons$LightMode=s.LightMode,t.icons$LineHeightOutlined=s.LineHeightOutlined,t.icons$Link03=s.Link03,t.icons$LinkOutlined=s.LinkOutlined,t.icons$LoadingOutlined=s.LoadingOutlined,t.icons$Lock=s.Lock,t.icons$LockOutlined=s.LockOutlined,t.icons$MailOutlined=s.MailOutlined,t.icons$MenuOutlined=s.MenuOutlined,t.icons$MergeTags=s.MergeTags,t.icons$MixedView=s.MixedView,t.icons$MobileOutlined=s.MobileOutlined,t.icons$MoreOutlined=s.MoreOutlined,t.icons$Optimization=s.Optimization,t.icons$OrderedListOutlined=s.OrderedListOutlined,t.icons$PaddingBottom=s.PaddingBottom,t.icons$PaddingLeftRight=s.PaddingLeftRight,t.icons$PaddingTop=s.PaddingTop,t.icons$PanelLeft=s.PanelLeft,t.icons$Paragraph=s.Paragraph,t.icons$Percent02Icon=s.Percent02Icon,t.icons$PhoneOutlined=s.PhoneOutlined,t.icons$PicLeftOutlined=s.PicLeftOutlined,t.icons$PlayCircleOutlined=s.PlayCircleOutlined,t.icons$PlusCircleOutlined=s.PlusCircleOutlined,t.icons$PlusSquareOutlined=s.PlusSquareOutlined,t.icons$PortraitView=s.PortraitView,t.icons$RadiusUpleftOutlined=s.RadiusUpleftOutlined,t.icons$RedoOutlined=s.RedoOutlined,t.icons$Replacer=s.Replacer,t.icons$RightCircleOutlined=s.RightCircleOutlined,t.icons$RightOutlined=s.RightOutlined,t.icons$RollbackOutlined=s.RollbackOutlined,t.icons$Sale04Icon=s.Sale04Icon,t.icons$SaveBlock=s.SaveBlock,t.icons$SaveOutlined=s.SaveOutlined,t.icons$SearchOutlined=s.SearchOutlined,t.icons$SendOutlined=s.SendOutlined,t.icons$SettingOutlined=s.SettingOutlined,t.icons$ShareAltOutlined=s.ShareAltOutlined,t.icons$ShieldTickIcon=s.ShieldTickIcon,t.icons$SliderGroup=s.SliderGroup,t.icons$SnippetsOutlined=s.SnippetsOutlined,t.icons$Speed=s.Speed,t.icons$SplitCellsOutlined=s.SplitCellsOutlined,t.icons$SquareView=s.SquareView,t.icons$StrikethroughOutlined=s.StrikethroughOutlined,t.icons$Styles=s.Styles,t.icons$Subscript=s.Subscript,t.icons$Superscript=s.Superscript,t.icons$SwapHorizontalIcon=s.SwapHorizontalIcon,t.icons$SwapOutlined=s.SwapOutlined,t.icons$SyncOutlined=s.SyncOutlined,t.icons$Target=s.Target,t.icons$Typograf=s.Typograf,t.icons$UnLock=s.UnLock,t.icons$UnderlineOutlined=s.UnderlineOutlined,t.icons$UndoOutlined=s.UndoOutlined,t.icons$UnorderedListOutlined=s.UnorderedListOutlined,t.icons$UserOutlined=s.UserOutlined,t.icons$VideoCameraOutlined=s.VideoCameraOutlined,t.icons$Vimeo=s.Vimeo,t.icons$Web=s.Web,t.icons$WebHook=s.WebHook,t.icons$YoutubeOutlined=s.YoutubeOutlined,t.ui_kit$Alert=a.Alert,t.ui_kit$App=a.App,t.ui_kit$Breadcrumb=a.Breadcrumb,t.ui_kit$Button=a.Button,t.ui_kit$Card=a.Card,t.ui_kit$Carousel=a.Carousel,t.ui_kit$Cascader=a.Cascader,t.ui_kit$CheckableTag=a.CheckableTag,t.ui_kit$Checkbox=a.Checkbox,t.ui_kit$Col=a.Col,t.ui_kit$ColorPickerClearGlyph=a.ColorPickerClearGlyph,t.ui_kit$ColorPickerInput=a.ColorPickerInput,t.ui_kit$Comment=a.Comment,t.ui_kit$ControlFontFamily=a.ControlFontFamily,t.ui_kit$DatePicker=a.DatePicker,t.ui_kit$Divider=a.Divider,t.ui_kit$DraggableInputNumber=a.DraggableInputNumber,t.ui_kit$Dropdown=a.Dropdown,t.ui_kit$EmIcons=a.EmIcons,t.ui_kit$Flex=a.Flex,t.ui_kit$Form=a.Form,t.ui_kit$FormAlignControl=a.FormAlignControl,t.ui_kit$FormAlignTextControl=a.FormAlignTextControl,t.ui_kit$FormBackgroundSettings=a.FormBackgroundSettings,t.ui_kit$FormBorderInputs=a.FormBorderInputs,t.ui_kit$FormBorderRadiusInputs=a.FormBorderRadiusInputs,t.ui_kit$FormBoxShadowInputs=a.FormBoxShadowInputs,t.ui_kit$FormColorField=a.FormColorField,t.ui_kit$FormDirectionControl=a.FormDirectionControl,t.ui_kit$FormDisplayControl=a.FormDisplayControl,t.ui_kit$FormOptionsList=a.FormOptionsList,t.ui_kit$FormPaddingInputs=a.FormPaddingInputs,t.ui_kit$FormSection=a.FormSection,t.ui_kit$FormSizeInputs=a.FormSizeInputs,t.ui_kit$FormSwitchRow=a.FormSwitchRow,t.ui_kit$FormTypographyFields=a.FormTypographyFields,t.ui_kit$FormVerticalAlignControl=a.FormVerticalAlignControl,t.ui_kit$Image=a.Image,t.ui_kit$Input=a.Input,t.ui_kit$InputNumber=a.InputNumber,t.ui_kit$InputSelect=a.InputSelect,t.ui_kit$LIST_ITEM_BORDERLESS_CLASS=a.LIST_ITEM_BORDERLESS_CLASS,t.ui_kit$Layout=a.Layout,t.ui_kit$LimitsCounter=a.LimitsCounter,t.ui_kit$Link=a.Link,t.ui_kit$List=a.List,t.ui_kit$Modal=a.Modal,t.ui_kit$PageLoader=a.PageLoader,t.ui_kit$PanelForm=a.PanelForm,t.ui_kit$Password=a.Password,t.ui_kit$Popconfirm=a.Popconfirm,t.ui_kit$Progress=a.Progress,t.ui_kit$Radio=a.Radio,t.ui_kit$RadioColorFilter=a.RadioColorFilter,t.ui_kit$Result=a.Result,t.ui_kit$Row=a.Row,t.ui_kit$SearchInput=a.SearchInput,t.ui_kit$Segmented=a.Segmented,t.ui_kit$Select=a.Select,t.ui_kit$Skeleton=a.Skeleton,t.ui_kit$Space=a.Space,t.ui_kit$Spin=a.Spin,t.ui_kit$StyleProvider=a.StyleProvider,t.ui_kit$Switch=a.Switch,t.ui_kit$Tabs=a.Tabs,t.ui_kit$Tag=a.Tag,t.ui_kit$Text=a.Text,t.ui_kit$TextArea=a.TextArea,t.ui_kit$ThemeProvider=a.ThemeProvider,t.ui_kit$Title=a.Title,t.ui_kit$Tooltip=a.Tooltip,t.ui_kit$Typography=a.Typography,t.ui_kit$UiKitI18nProvider=a.UiKitI18nProvider,t.ui_kit$Upload=a.Upload,t.ui_kit$XCircleClearIcon=a.XCircleClearIcon,t.ui_kit$createTransformer=a.createTransformer,t.ui_kit$darkThemePreset=a.darkThemePreset,t.ui_kit$iconColors=a.iconColors,t.ui_kit$lightThemePreset=a.lightThemePreset,t.ui_kit$useToken=a.useToken});