useblocks 1.3.11-dev.1 → 1.3.11-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 (68) hide show
  1. package/README.md +3 -3
  2. package/iframe/.vite/manifest.json +4 -4
  3. package/iframe/{iframe-eblock.c5a8ebf9.html → iframe-eblock.5751e42b.html} +2 -2
  4. package/iframe/{iframe.c5a8ebf9.html → iframe.5751e42b.html} +2 -2
  5. package/iframe/js/elMarkupHelper.BpDXO-hq.js +279 -0
  6. package/iframe/js/{iframe-eblock.body.c5a8ebf9.js → iframe-eblock.body.5751e42b.js} +1 -1
  7. package/iframe/js/iframe-eblock.js +2 -2
  8. package/iframe/js/{iframe.body.c5a8ebf9.js → iframe.body.5751e42b.js} +1 -1
  9. package/iframe/js/iframe.js +2 -2
  10. package/package.json +1 -1
  11. package/runtime/react/index.js +1 -1
  12. package/static/core/{bf6cd7cc.js → 11009bdf.js} +1 -1
  13. package/static/core/{3f1b20ee.js → 11dadbc0.js} +1 -1
  14. package/static/core/{d3ae23fa.js → 1c06cdb7.js} +1 -1
  15. package/static/core/{2aa29959.js → 1c3a16fc.js} +1 -1
  16. package/static/core/{2a8276a7.js → 1c7a6d45.js} +1 -1
  17. package/static/core/{490ecf9b.js → 257745eb.js} +1 -1
  18. package/static/core/{1155fc70.js → 261a3a42.js} +1 -1
  19. package/static/core/2bed6a18.js +7 -0
  20. package/static/core/347b0a0b.js +1 -0
  21. package/static/core/{f3eb0f57.js → 3b65bc50.js} +1 -1
  22. package/static/core/{1d3606c0.js → 3d8e2478.js} +1 -1
  23. package/static/core/{1c0ad4e2.js → 3eeb4445.js} +1 -1
  24. package/static/core/{d8b648e9.js → 467344d4.js} +1 -1
  25. package/static/core/{8c5662da.js → 513e36bd.js} +1 -1
  26. package/static/core/{bfa8fbcd.js → 516f59e7.js} +1 -1
  27. package/static/core/{203f8a09.js → 58dca22f.js} +1 -1
  28. package/static/core/{4430410a.js → 5da33486.js} +1 -1
  29. package/static/core/{a636d084.js → 6172f09a.js} +1 -1
  30. package/static/core/{9689c25e.js → 62855b97.js} +1 -1
  31. package/static/core/{e4a8dec2.js → 66113a18.js} +1 -1
  32. package/static/core/{35a1d850.js → 71727873.js} +1 -1
  33. package/static/core/{e6bcae1a.js → 76543cb2.js} +1 -1
  34. package/static/core/{81908794.js → 7e329493.js} +1 -1
  35. package/static/core/{2b3023ec.js → 8406bab5.js} +1 -1
  36. package/static/core/{6b521a88.js → 8845436d.js} +2 -2
  37. package/static/core/{b90b0517.js → 94f9492b.js} +1 -1
  38. package/static/core/{6a4c653c.js → aee84e3d.js} +1 -1
  39. package/static/core/{62abaa0c.js → b55ae539.js} +1 -1
  40. package/static/core/{1c94aa95.js → b59c63d2.js} +1 -1
  41. package/static/core/{c96e8d1f.js → b9f553d7.js} +1 -1
  42. package/static/core/{f10baea7.js → bda2d9d5.js} +1 -1
  43. package/static/core/{8b0eaa20.js → c0a3f7d0.js} +2 -2
  44. package/static/core/{880187e3.js → c13b3d4f.js} +1 -1
  45. package/static/core/{411823ad.js → d2cf6b4b.js} +1 -1
  46. package/static/core/{3b0fc21e.js → d343e46e.js} +1 -1
  47. package/static/core/{14819724.js → d9d5b376.js} +1 -1
  48. package/static/core/{b8e2e735.js → dd008ec2.js} +1 -1
  49. package/static/core/{dbf8654f.js → e037a420.js} +1 -1
  50. package/static/core/{e5cae5a9.js → e698ec22.js} +1 -1
  51. package/static/core/{ebf996e0.js → e7e888c1.js} +1 -1
  52. package/static/core/ed65b5c3.js +19 -0
  53. package/static/core/{2f369eab.js → ef035f6b.js} +1 -1
  54. package/static/core/{6c84f3aa.js → f1b8515a.js} +1 -1
  55. package/static/core/{e955189e.js → f8585ce6.js} +1 -1
  56. package/static/esm/{f97f42d1.js → c5372168.js} +1 -1
  57. package/static/umd-runtime/{runtime.CtmO-sKr.js → runtime.Lgfb59e0.js} +1 -1
  58. package/useblocks-core.5751e42b.js +875 -0
  59. package/useblocks-esm.js +6 -6
  60. package/{useblocks-po.c5a8ebf9.js → useblocks-po.5751e42b.js} +1 -1
  61. package/useblocks.d.ts +4 -4
  62. package/useblocks.js +12 -12
  63. package/vendor/useblocks-ui-kit/package.json +1 -1
  64. package/iframe/js/elMarkupHelper.DjmNMeRr.js +0 -279
  65. package/static/core/a5cf594a.js +0 -1
  66. package/static/core/cff76b3c.js +0 -7
  67. package/static/core/ed99afa7.js +0 -19
  68. package/useblocks-core.c5a8ebf9.js +0 -875
@@ -1,6 +1,6 @@
1
1
  __useblocks__.define("static/core/a71c4cd8.js",["require","exports","module","static/core/2ff39ddf.js"],function(e,t,s){const o=e("./2ff39ddf.js");var a=[{name:"META",selector:"head > meta[charset]",required:!0,requiredParent:"HEAD",attrs:[{name:"charset",value:["utf-8"],required:!0}],unique:!0},{name:"SCRIPT",selector:"head > script[src]",required:!0,requiredParent:"HEAD",attrs:[{name:"src",value:["https://cdn.ampproject.org/v0.js"],required:!0}],attrLists:["nonce-attr","amphtml-engine-attrs"],unique:!0},{name:"STYLE",selector:"head > style[amp-custom-length-check]",requiredParent:"HEAD",attrs:[{name:"amp-custom-length-check",value:[""],required:!0},{name:"type",value:["text/css"]}],attrLists:["nonce-attr"],unique:!0},{name:"STYLE",selector:"head > style[amp-custom]",requiredParent:"HEAD",attrs:[{name:"amp-custom",value:[""],required:!0},{name:"type",value:["text/css"]}],unique:!0},{name:"STYLE",selector:"head > style[amp-custom]",requiredParent:"HEAD",attrs:[{name:"amp-custom",value:[""],required:!0},{name:"type",value:["text/css"]}],unique:!0},{name:"STYLE",selector:"head > style[amp4email-boilerplate]",requiredParent:"HEAD",attrs:[{name:"amp4email-boilerplate",value:[""],required:!0}],unique:!0},{name:"SCRIPT",selector:"amp-state > script[type]",requiresExtension:["amp-bind"],requiredParent:"AMP-STATE",attrs:[{name:"type",value:["application/json"],required:!0}],attrLists:["nonce-attr"]},{name:"HEAD",selector:"html > head",required:!0,requiredParent:"HTML",attrs:[],unique:!0},{name:"BODY",selector:"html > body",required:!0,requiredParent:"HTML",attrs:[],unique:!0},{name:"SECTION",selector:"amp-accordion > section",requiredParent:"AMP-ACCORDION",attrs:[{name:"expanded",value:[""]},{name:"[data-expand]"}]},{name:"DIV",selector:"div[submit-success][template]",attrs:[{name:"align"},{name:"submit-success",required:!0},{name:"template",required:!0}]},{name:"DIV",selector:"div[submit-error][template]",attrs:[{name:"align"},{name:"submit-error",required:!0},{name:"template",required:!0}]},{name:"SCRIPT",selector:"script[type][template]",requiresExtension:["amp-mustache"],attrs:[{name:"id",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"},{name:"type",value:["text/plain"],required:!0},{name:"template",value:["amp-mustache"],required:!0}],attrLists:["nonce-attr"]},{name:"FORM",selector:"form[action-xhr]",requiresExtension:["amp-form"],attrs:[{name:"accept"},{name:"accept-charset"},{name:"action-xhr",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"autocomplete"},{name:"custom-validation-reporting",value:["as-you-go","interact-and-submit","show-all-on-submit","show-first-on-submit"]},{name:"enctype"},{name:"method",value:["post"],required:!0},{name:"novalidate"},{name:"xssi-prefix"}]},{name:"DIV",selector:"div[submitting]",attrs:[{name:"align"},{name:"submitting",required:!0}]},{name:"DIV",selector:"div[submit-success]",attrs:[{name:"align"},{name:"submit-success",required:!0}]},{name:"DIV",selector:"div[submit-error]",attrs:[{name:"align"},{name:"submit-error",required:!0}]},{name:"SCRIPT",selector:"script[type]",attrs:[{name:"type",value:["application/ld+json"],required:!0}],attrLists:["nonce-attr"]},{name:"DIV",selector:"div[fetch-error]",attrs:[{name:"align"},{name:"fetch-error",required:!0}]},{name:"NAV",selector:"nav[toolbar]",requiredParent:"AMP-SIDEBAR",attrs:[{name:"toolbar",required:!0},{name:"toolbar-target",required:!0}]},{name:"HTML",selector:"html",required:!0,requiredParent:"$ROOT",attrs:[{name:"⚡4email",value:[""],required:!0},{name:"data-css-strict",value:[""],required:!0}],unique:!0},{name:"TITLE",selector:"title",deprecation:"Title tags in email have no meaning. This tag may become invalid in the future.",attrs:[{name:"[text]"}]},{name:"META",selector:"meta",attrs:[{name:"content"},{name:"itemprop"},{name:"name",disallowedValueRegex:"(^|\\s)(amp-.*|amp4ads-.*|apple-itunes-app|content-disposition|revisit-after|viewport)(\\s|$)"},{name:"media"},{name:"property"},{name:"scheme"}]},{name:"ARTICLE",selector:"article",attrs:[]},{name:"SECTION",selector:"section",attrs:[]},{name:"NAV",selector:"nav",attrs:[]},{name:"ASIDE",selector:"aside",attrs:[]},{name:"H1",selector:"h1",attrs:[{name:"align"}]},{name:"H2",selector:"h2",attrs:[{name:"align"}]},{name:"H3",selector:"h3",attrs:[{name:"align"}]},{name:"H4",selector:"h4",attrs:[{name:"align"}]},{name:"H5",selector:"h5",attrs:[{name:"align"}]},{name:"H6",selector:"h6",attrs:[{name:"align"}]},{name:"HEADER",selector:"header",attrs:[]},{name:"FOOTER",selector:"footer",attrs:[]},{name:"ADDRESS",selector:"address",attrs:[]},{name:"P",selector:"p",attrs:[{name:"align"}]},{name:"HR",selector:"hr",attrs:[]},{name:"PRE",selector:"pre",attrs:[]},{name:"BLOCKQUOTE",selector:"blockquote",attrs:[{name:"align"}],attrLists:["cite-attr"]},{name:"OL",selector:"ol",attrs:[{name:"reversed",value:[""]},{name:"start",valueRegex:"[0-9]*"},{name:"type",valueRegex:"[1AaIi]"}]},{name:"UL",selector:"ul",attrs:[]},{name:"LI",selector:"li",attrs:[{name:"value",valueRegex:"[0-9]*"}]},{name:"DL",selector:"dl",attrs:[]},{name:"DT",selector:"dt",attrs:[]},{name:"DD",selector:"dd",attrs:[]},{name:"FIGURE",selector:"figure",attrs:[]},{name:"FIGCAPTION",selector:"figcaption",attrs:[]},{name:"DIV",selector:"div",attrs:[{name:"align"}]},{name:"MAIN",selector:"main",attrs:[]},{name:"A",selector:"a",attrs:[{name:"border"},{name:"href",valueUrl:{protocol:["http","https","mailto","tel"],allowRelative:!1},disallowedValueRegex:"__amp_source_origin|(.|\\s){{|}}(.|\\s)|^{{.*[^}][^}]$|^[^{][^{].*}}$|^}}|{{$|{{#|{{/|{{\\^"},{name:"hreflang"},{name:"media"},{name:"role"},{name:"tabindex"},{name:"target",value:["_blank"]},{name:"type",value:["text/html"]}]},{name:"EM",selector:"em",attrs:[]},{name:"STRONG",selector:"strong",attrs:[]},{name:"SMALL",selector:"small",attrs:[]},{name:"S",selector:"s",attrs:[]},{name:"CITE",selector:"cite",attrs:[]},{name:"Q",selector:"q",attrs:[],attrLists:["cite-attr"]},{name:"DFN",selector:"dfn",attrs:[]},{name:"ABBR",selector:"abbr",attrs:[]},{name:"DATA",selector:"data",attrs:[]},{name:"TIME",selector:"time",attrs:[{name:"datetime"},{name:"pubdate",value:[""]}]},{name:"CODE",selector:"code",attrs:[]},{name:"VAR",selector:"var",attrs:[]},{name:"SAMP",selector:"samp",attrs:[]},{name:"KBD",selector:"kbd",attrs:[]},{name:"SUB",selector:"sub",attrs:[]},{name:"SUP",selector:"sup",attrs:[]},{name:"I",selector:"i",attrs:[]},{name:"B",selector:"b",attrs:[]},{name:"U",selector:"u",attrs:[]},{name:"MARK",selector:"mark",attrs:[]},{name:"RUBY",selector:"ruby",attrs:[]},{name:"RB",selector:"rb",attrs:[]},{name:"RT",selector:"rt",attrs:[]},{name:"RP",selector:"rp",attrs:[]},{name:"BDO",selector:"bdo",attrs:[{name:"dir"}]},{name:"SPAN",selector:"span",attrs:[]},{name:"BR",selector:"br",attrs:[]},{name:"WBR",selector:"wbr",attrs:[]},{name:"INS",selector:"ins",attrs:[{name:"datetime"}],attrLists:["cite-attr"]},{name:"DEL",selector:"del",attrs:[{name:"datetime"}],attrLists:["cite-attr"]},{name:"TABLE",selector:"table",attrs:[{name:"align"},{name:"bgcolor"},{name:"border",value:["0","1"]},{name:"cellpadding"},{name:"cellspacing"},{name:"width"}]},{name:"CAPTION",selector:"caption",attrs:[]},{name:"COLGROUP",selector:"colgroup",attrs:[{name:"span"}]},{name:"COL",selector:"col",attrs:[{name:"span"}]},{name:"TBODY",selector:"tbody",attrs:[]},{name:"THEAD",selector:"thead",attrs:[]},{name:"TFOOT",selector:"tfoot",attrs:[]},{name:"TR",selector:"tr",attrs:[{name:"align"},{name:"bgcolor"},{name:"height"},{name:"valign"}]},{name:"TD",selector:"td",attrs:[{name:"align"},{name:"bgcolor"},{name:"colspan"},{name:"headers"},{name:"height"},{name:"rowspan"},{name:"valign"},{name:"width"}]},{name:"TH",selector:"th",attrs:[{name:"abbr"},{name:"align"},{name:"bgcolor"},{name:"colspan"},{name:"headers"},{name:"height"},{name:"rowspan"},{name:"scope"},{name:"valign"},{name:"width"}]},{name:"FORM",selector:"form",requiresExtension:["amp-form"],attrs:[{name:"accept"},{name:"accept-charset"},{name:"action-xhr",valueUrl:{protocol:["https"],allowRelative:!1},disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"autocomplete"},{name:"custom-validation-reporting",value:["as-you-go","interact-and-submit","show-all-on-submit","show-first-on-submit"]},{name:"enctype"},{name:"method",value:["get"]},{name:"novalidate"},{name:"xssi-prefix"}]},{name:"LABEL",selector:"label",attrs:[{name:"for"}]},{name:"INPUT",selector:"input",attrs:[{name:"type",disallowedValueRegex:"(^|\\s)(file|image|password|)(\\s|$)"}],attrLists:["input-common-attr","name-attr"]},{name:"BUTTON",selector:"button",attrs:[{name:"disabled",value:[""]},{name:"role"},{name:"tabindex"},{name:"type"},{name:"value"},{name:"[disabled]"},{name:"[value]"}],attrLists:["name-attr"]},{name:"SELECT",selector:"select",attrs:[{name:"disabled"},{name:"multiple"},{name:"required"},{name:"size"},{name:"[disabled]"},{name:"[multiple]"},{name:"[required]"},{name:"[size]"}],attrLists:["name-attr"]},{name:"DATALIST",selector:"datalist",attrs:[]},{name:"OPTGROUP",selector:"optgroup",requiredParent:"SELECT",attrs:[{name:"disabled"},{name:"label"},{name:"[disabled]"},{name:"[label]"}]},{name:"OPTION",selector:"option",attrs:[{name:"disabled"},{name:"label"},{name:"selected"},{name:"value"},{name:"[disabled]"},{name:"[label]"},{name:"[selected]"},{name:"[value]"}]},{name:"TEXTAREA",selector:"textarea",attrs:[{name:"autocomplete"},{name:"autoexpand"},{name:"cols"},{name:"disabled"},{name:"maxlength"},{name:"minlength"},{name:"pattern"},{name:"placeholder"},{name:"readonly"},{name:"required"},{name:"rows"},{name:"spellcheck"},{name:"wrap"},{name:"[autocomplete]"},{name:"[cols]"},{name:"[defaulttext]"},{name:"[disabled]"},{name:"[maxlength]"},{name:"[minlength]"},{name:"[pattern]"},{name:"[placeholder]"},{name:"[readonly]"},{name:"[required]"},{name:"[rows]"},{name:"[spellcheck]"},{name:"[wrap]"}],attrLists:["name-attr"]},{name:"OUTPUT",selector:"output",attrs:[{name:"for"},{name:"form"}],attrLists:["name-attr"]},{name:"PROGRESS",selector:"progress",attrs:[{name:"max"},{name:"value"}]},{name:"METER",selector:"meter",attrs:[{name:"high"},{name:"low"},{name:"max"},{name:"min"},{name:"optimum"},{name:"value"}]},{name:"FIELDSET",selector:"fieldset",attrs:[{name:"disabled"},{name:"[disabled]"}],attrLists:["name-attr"]},{name:"LEGEND",selector:"legend",attrs:[]},{name:"DETAILS",selector:"details",attrs:[{name:"open",value:[""]},{name:"[open]"}]},{name:"SUMMARY",selector:"summary",requiredParent:"DETAILS",attrs:[]},{name:"AMP-IMG",selector:"amp-img",attrs:[{name:"alt"},{name:"attribution"},{name:"placeholder"},{name:"[alt]"},{name:"[attribution]"},{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay"],required:!0}],attrLists:["extended-amp-global","mandatory-src-amp4email","$AMP_LAYOUT_ATTRS"]},{name:"AMP-LAYOUT",selector:"amp-layout",attrs:[{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay","container"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-accordion']",attrs:[{name:"custom-element",value:["amp-accordion"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-accordion-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-ACCORDION",selector:"amp-accordion",requiresExtension:["amp-accordion"],attrs:[{name:"animate",value:[""]},{name:"expand-single-section",value:[""]},{name:"layout",value:["container"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-anim']",attrs:[{name:"custom-element",value:["amp-anim"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-anim-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-ANIM",selector:"amp-anim",requiresExtension:["amp-anim"],attrs:[{name:"alt"},{name:"attribution"},{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","nodisplay"],required:!0}],attrLists:["extended-amp-global","mandatory-src-amp4email","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-autocomplete']",attrs:[{name:"custom-element",value:["amp-autocomplete"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-autocomplete-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-AUTOCOMPLETE",selector:"amp-autocomplete",requiresExtension:["amp-autocomplete"],attrs:[{name:"highlight-user-entry"},{name:"inline"},{name:"items"},{name:"max-items"},{name:"min-characters"},{name:"prefetch"},{name:"query"},{name:"submit-on-enter"},{name:"suggest-first"},{name:"src",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"template"},{name:"layout",value:["container"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-bind']",attrs:[{name:"custom-element",value:["amp-bind"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-bind-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-STATE",selector:"amp-state",requiresExtension:["amp-bind"],attrs:[],attrLists:["mandatory-id-attr"]},{name:"AMP-BIND-MACRO",selector:"amp-bind-macro",requiresExtension:["amp-bind"],attrs:[{name:"arguments"},{name:"expression",required:!0}],attrLists:["mandatory-id-attr"]},{name:"SCRIPT",selector:"script[custom-element='amp-carousel']",attrs:[{name:"custom-element",value:["amp-carousel"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-carousel-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-CAROUSEL",selector:"amp-carousel",requiresExtension:["amp-carousel"],attrs:[{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay"],required:!0}],attrLists:["amp-carousel-common","extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-fit-text']",attrs:[{name:"custom-element",value:["amp-fit-text"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-fit-text-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-FIT-TEXT",selector:"amp-fit-text",requiresExtension:["amp-fit-text"],attrs:[{name:"max-font-size"},{name:"min-font-size"},{name:"layout",value:["responsive","fill","fixed","fixed_height","flex_item","intrinsic","nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-form']",attrs:[{name:"custom-element",value:["amp-form"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-form-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"SCRIPT",selector:"script[custom-element='amp-image-lightbox']",deprecation:"amp-image-lightbox cannot be properly positioned in emails and will soon be invalid in AMP4EMAIL.",attrs:[{name:"custom-element",value:["amp-image-lightbox"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-image-lightbox-0.1.js","https://cdn.ampproject.org/v0/amp-image-lightbox-latest.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-IMAGE-LIGHTBOX",selector:"amp-image-lightbox",requiresExtension:["amp-image-lightbox"],attrs:[{name:"controls"},{name:"layout",value:["nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-lightbox']",deprecation:"amp-lightbox cannot be properly positioned in emails and will soon be invalid in AMP4EMAIL.",attrs:[{name:"custom-element",value:["amp-lightbox"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-lightbox-0.1.js","https://cdn.ampproject.org/v0/amp-lightbox-latest.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-LIGHTBOX",selector:"amp-lightbox",requiresExtension:["amp-lightbox"],attrs:[{name:"animate-in",value:["fade-in","fly-in-bottom","fly-in-top"]},{name:"controls"},{name:"from"},{name:"[open]"},{name:"layout",value:["nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-list']",attrs:[{name:"custom-element",value:["amp-list"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-list-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-LIST",selector:"amp-list",requiresExtension:["amp-list"],attrs:[{name:"binding",value:["always","no","refresh","refresh-evaluate"]},{name:"diffable",value:[""]},{name:"items"},{name:"max-items"},{name:"single-item"},{name:"src",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|{{|}}"},{name:"template"},{name:"xssi-prefix"},{name:"[is-layout-container]"},{name:"layout",value:["responsive","container","fill","fixed","fixed_height","flex_item","nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-template='amp-mustache']",attrs:[{name:"custom-template",value:["amp-mustache"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-mustache-0.1.js","https://cdn.ampproject.org/v0/amp-mustache-0.2.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"TEMPLATE",selector:"template",requiresExtension:["amp-mustache"],attrs:[{name:"id",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"},{name:"type",value:["amp-mustache"],required:!0}]},{name:"SCRIPT",selector:"script[custom-element='amp-selector']",attrs:[{name:"custom-element",value:["amp-selector"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-selector-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-SELECTOR",selector:"amp-selector",requiresExtension:["amp-selector"],attrs:[{name:"disabled",value:[""]},{name:"form"},{name:"keyboard-select-mode",value:["focus","none","select"]},{name:"multiple",value:[""]},{name:"[disabled]"},{name:"[selected]"},{name:"layout",value:["responsive","fill","fixed","fixed_height","nodisplay","container"],required:!0}],attrLists:["extended-amp-global","name-attr","$AMP_LAYOUT_ATTRS"]},{name:"$REFERENCE_POINT",selector:"amp-selector option",attrs:[{name:"disabled",value:[""]},{name:"option",required:!0},{name:"selected",value:[""]}]},{name:"$REFERENCE_POINT",selector:"amp-selector child",attrs:[]},{name:"SCRIPT",selector:"script[custom-element='amp-sidebar']",attrs:[{name:"custom-element",value:["amp-sidebar"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-sidebar-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-SIDEBAR",selector:"amp-sidebar",requiresExtension:["amp-sidebar"],attrs:[{name:"side",value:["left","right"]},{name:"layout",value:["nodisplay"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]},{name:"SCRIPT",selector:"script[custom-element='amp-timeago']",attrs:[{name:"custom-element",value:["amp-timeago"],required:!0},{name:"src",value:["https://cdn.ampproject.org/v0/amp-timeago-0.1.js"],required:!0}],attrLists:["common-extension-attrs"]},{name:"AMP-TIMEAGO",selector:"amp-timeago",requiresExtension:["amp-timeago"],attrs:[{name:"cutoff",valueRegex:"\\d+"},{name:"datetime",valueRegex:"\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d(:[0-5]\\d(\\.\\d+)?)?(Z|[+-][0-1][0-9]:[0-5][0-9])",required:!0},{name:"locale"},{name:"[datetime]"},{name:"[title]"},{name:"layout",value:["responsive","fixed","fixed_height"],required:!0}],attrLists:["extended-amp-global","$AMP_LAYOUT_ATTRS"]}],n=[{name:"cite-attr",attrs:[{name:"cite",valueUrl:{protocol:["http","https"],allowEmpty:!0},disallowedValueRegex:"__amp_source_origin"}]},{name:"input-common-attr",attrs:[{name:"accept"},{name:"accesskey"},{name:"autocomplete"},{name:"checked"},{name:"disabled"},{name:"height"},{name:"max"},{name:"maxlength"},{name:"min"},{name:"minlength"},{name:"multiple"},{name:"pattern"},{name:"placeholder"},{name:"readonly"},{name:"required"},{name:"size"},{name:"spellcheck"},{name:"step"},{name:"tabindex"},{name:"value"},{name:"width"},{name:"[autocomplete]"},{name:"[checked]"},{name:"[disabled]"},{name:"[height]"},{name:"[max]"},{name:"[maxlength]"},{name:"[min]"},{name:"[minlength]"},{name:"[multiple]"},{name:"[pattern]"},{name:"[placeholder]"},{name:"[readonly]"},{name:"[required]"},{name:"[size]"},{name:"[spellcheck]"},{name:"[step]"},{name:"[value]"},{name:"[width]"}]},{name:"amphtml-engine-attrs",attrs:[{name:"async",value:[""],required:!0},{name:"crossorigin",value:["anonymous"]},{name:"type",value:["text/javascript"]}]},{name:"mandatory-src-amp4email",attrs:[{name:"src",valueUrl:{protocol:["https"],allowRelative:!1},required:!0,disallowedValueRegex:"__amp_source_origin|(.|\\s){{|}}(.|\\s)|^{{.*[^}][^}]$|^[^{][^{].*}}$|^}}|{{$|{{#|{{/|{{\\^"}]},{name:"extended-amp-global",attrs:[{name:"i-amphtml-layout",value:["container","fill","fixed","fixed-height","flex-item","fluid","intrinsic","nodisplay","responsive"]},{name:"media"},{name:"noloading",value:[""]}]},{name:"$AMP_LAYOUT_ATTRS",attrs:[{name:"disable-inline-width"},{name:"height"},{name:"heights"},{name:"layout"},{name:"sizes"},{name:"width"},{name:"[height]"},{name:"[width]"}]},{name:"nonce-attr",attrs:[]},{name:"common-extension-attrs",attrs:[{name:"async",value:[""],required:!0},{name:"crossorigin",value:["anonymous"]},{name:"type",value:["text/javascript"]}]},{name:"mandatory-id-attr",attrs:[{name:"id",required:!0,disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"}]},{name:"name-attr",attrs:[{name:"name",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"}]},{name:"$GLOBAL_ATTRS",attrs:[{name:"itemid"},{name:"itemprop"},{name:"itemref"},{name:"itemscope"},{name:"itemtype"},{name:"about"},{name:"content"},{name:"datatype"},{name:"inlist"},{name:"prefix"},{name:"property"},{name:"rel",disallowedValueRegex:"(^|\\s)(canonical|components|dns-prefetch|import|manifest|preconnect|preload|prerender|serviceworker|stylesheet|subresource)(\\s|$)"},{name:"resource"},{name:"rev"},{name:"style"},{name:"typeof"},{name:"vocab"},{name:"accesskey"},{name:"class"},{name:"dir"},{name:"draggable"},{name:"hidden",value:[""]},{name:"id",disallowedValueRegex:"(^|\\s)(__amp_\\S*|__count__|__defineGetter__|__defineSetter__|__lookupGetter__|__lookupSetter__|__noSuchMethod__|__parent__|__proto__|__AMP_\\S*|\\$p|\\$proxy|acceptCharset|addEventListener|appendChild|assignedSlot|attachShadow|AMP|baseURI|checkValidity|childElementCount|childNodes|classList|className|clientHeight|clientLeft|clientTop|clientWidth|compareDocumentPosition|computedName|computedRole|contentEditable|createShadowRoot|enqueAction|firstChild|firstElementChild|getAnimations|getAttribute|getAttributeNS|getAttributeNode|getAttributeNodeNS|getBoundingClientRect|getClientRects|getDestinationInsertionPoints|getElementsByClassName|getElementsByTagName|getElementsByTagNameNS|getRootNode|hasAttribute|hasAttributeNS|hasAttributes|hasChildNodes|hasPointerCapture|i-amphtml-\\S*|innerHTML|innerText|inputMode|insertAdjacentElement|insertAdjacentHTML|insertAdjacentText|isContentEditable|isDefaultNamespace|isEqualNode|isSameNode|lastChild|lastElementChild|lookupNamespaceURI|namespaceURI|nextElementSibling|nextSibling|nodeName|nodeType|nodeValue|offsetHeight|offsetLeft|offsetParent|offsetTop|offsetWidth|outerHTML|outerText|ownerDocument|parentElement|parentNode|previousElementSibling|previousSibling|querySelector|querySelectorAll|releasePointerCapture|removeAttribute|removeAttributeNS|removeAttributeNode|removeChild|removeEventListener|replaceChild|reportValidity|requestPointerLock|scrollHeight|scrollIntoView|scrollIntoViewIfNeeded|scrollLeft|scrollWidth|setAttribute|setAttributeNS|setAttributeNode|setAttributeNodeNS|setPointerCapture|shadowRoot|styleMap|tabIndex|tagName|textContent|toString|valueOf|(webkit|ms|moz|o)dropzone|(webkit|moz|ms|o)MatchesSelector|(webkit|moz|ms|o)RequestFullScreen|(webkit|moz|ms|o)RequestFullscreen)(\\s|$)"},{name:"lang"},{name:"slot"},{name:"tabindex"},{name:"title"},{name:"translate"},{name:"aria-activedescendant"},{name:"aria-atomic"},{name:"aria-autocomplete"},{name:"aria-busy"},{name:"aria-checked"},{name:"aria-controls"},{name:"aria-current"},{name:"aria-describedby"},{name:"aria-disabled"},{name:"aria-dropeffect"},{name:"aria-expanded"},{name:"aria-flowto"},{name:"aria-grabbed"},{name:"aria-haspopup"},{name:"aria-hidden"},{name:"aria-invalid"},{name:"aria-label"},{name:"aria-labelledby"},{name:"aria-level"},{name:"aria-live"},{name:"aria-modal"},{name:"aria-multiline"},{name:"aria-multiselectable"},{name:"aria-orientation"},{name:"aria-owns"},{name:"aria-posinset"},{name:"aria-pressed"},{name:"aria-readonly"},{name:"aria-relevant"},{name:"aria-required"},{name:"aria-selected"},{name:"aria-setsize"},{name:"aria-sort"},{name:"aria-valuemax"},{name:"aria-valuemin"},{name:"aria-valuenow"},{name:"aria-valuetext"},{name:"on"},{name:"role"},{name:"placeholder",value:[""]},{name:"fallback",value:[""]},{name:"overflow"},{name:"amp-access"},{name:"amp-access-behavior"},{name:"amp-access-hide"},{name:"amp-access-id"},{name:"amp-access-loader"},{name:"amp-access-loading"},{name:"amp-access-off"},{name:"amp-access-on"},{name:"amp-access-show"},{name:"amp-access-style"},{name:"amp-access-template"},{name:"i-amp-access-id"},{name:"validation-for"},{name:"visible-when-invalid",value:["badInput","customError","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort","typeMismatch","valueMissing"]},{name:"amp-fx",valueRegex:"(fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)(\\s|fade-in|fade-in-scroll|float-in-bottom|float-in-top|fly-in-bottom|fly-in-left|fly-in-right|fly-in-top|parallax)*"},{name:"subscriptions-action"},{name:"subscriptions-actions",value:[""]},{name:"subscriptions-decorate"},{name:"subscriptions-dialog",value:[""]},{name:"subscriptions-display"},{name:"subscriptions-lang"},{name:"subscriptions-section",value:["actions","content","content-not-granted","loading"]},{name:"subscriptions-service"},{name:"subscriptions-google-rtc"},{name:"next-page-hide"},{name:"next-page-replace"},{name:"[aria-activedescendant]"},{name:"[aria-atomic]"},{name:"[aria-autocomplete]"},{name:"[aria-busy]"},{name:"[aria-checked]"},{name:"[aria-controls]"},{name:"[aria-describedby]"},{name:"[aria-disabled]"},{name:"[aria-dropeffect]"},{name:"[aria-expanded]"},{name:"[aria-flowto]"},{name:"[aria-grabbed]"},{name:"[aria-haspopup]"},{name:"[aria-hidden]"},{name:"[aria-invalid]"},{name:"[aria-label]"},{name:"[aria-labelledby]"},{name:"[aria-level]"},{name:"[aria-live]"},{name:"[aria-multiline]"},{name:"[aria-multiselectable]"},{name:"[aria-orientation]"},{name:"[aria-owns]"},{name:"[aria-posinset]"},{name:"[aria-pressed]"},{name:"[aria-readonly]"},{name:"[aria-relevant]"},{name:"[aria-required]"},{name:"[aria-selected]"},{name:"[aria-setsize]"},{name:"[aria-sort]"},{name:"[aria-valuemax]"},{name:"[aria-valuemin]"},{name:"[aria-valuenow]"},{name:"[aria-valuetext]"},{name:"[class]"},{name:"[hidden]"},{name:"[text]"},{name:"i-amphtml-binding",value:[""]},{name:"autoscroll"}]},{name:"amp-carousel-common",attrs:[{name:"autoplay",valueRegex:"(|[0-9]+)"},{name:"controls"},{name:"delay",valueRegex:"[0-9]+"},{name:"loop",value:[""]},{name:"slide",valueRegex:"[0-9]+"},{name:"type",value:["carousel","slides"]},{name:"[slide]"}]}],r=[{name:"amp-accordion",versions:["0.1"]},{name:"amp-anim",versions:["0.1"]},{name:"amp-autocomplete",versions:["0.1"]},{name:"amp-bind",versions:["0.1"]},{name:"amp-carousel",versions:["0.1"]},{name:"amp-fit-text",versions:["0.1"]},{name:"amp-form",versions:["0.1"]},{name:"amp-image-lightbox",versions:["0.1","latest"]},{name:"amp-lightbox",versions:["0.1","latest"]},{name:"amp-list",versions:["0.1"]},{name:"amp-mustache",versions:["0.1","0.2"]},{name:"amp-selector",versions:["0.1"]},{name:"amp-sidebar",versions:["0.1"]},{name:"amp-timeago",versions:["0.1"]}],m=[{name:"-moz-appearance"},{name:"-webkit-appearance"},{name:"-webkit-tap-highlight-color"},{name:"align-content"},{name:"align-items"},{name:"align-self"},{name:"appearance"},{name:"aspect-ratio"},{name:"azimuth"},{name:"background"},{name:"background-attachment"},{name:"background-blend-mode"},{name:"background-clip"},{name:"background-color"},{name:"background-image"},{name:"background-origin"},{name:"background-position"},{name:"background-repeat"},{name:"background-size"},{name:"border"},{name:"border-bottom"},{name:"border-bottom-color"},{name:"border-bottom-left-radius"},{name:"border-bottom-right-radius"},{name:"border-bottom-style"},{name:"border-bottom-width"},{name:"border-collapse"},{name:"border-color"},{name:"border-left"},{name:"border-left-color"},{name:"border-left-style"},{name:"border-left-width"},{name:"border-radius"},{name:"border-right"},{name:"border-right-color"},{name:"border-right-style"},{name:"border-right-width"},{name:"border-spacing"},{name:"border-style"},{name:"border-top"},{name:"border-top-color"},{name:"border-top-left-radius"},{name:"border-top-right-radius"},{name:"border-top-style"},{name:"border-top-width"},{name:"border-width"},{name:"bottom"},{name:"box-shadow"},{name:"box-sizing"},{name:"break-after"},{name:"break-before"},{name:"break-inside"},{name:"caption-side"},{name:"caret-color"},{name:"clear"},{name:"color"},{name:"color-adjust"},{name:"column-count"},{name:"column-fill"},{name:"column-gap"},{name:"column-rule"},{name:"column-rule-color"},{name:"column-rule-style"},{name:"column-rule-width"},{name:"column-span"},{name:"column-width"},{name:"columns"},{name:"counter-increment"},{name:"counter-reset"},{name:"cursor",value:["initial","pointer"]},{name:"direction"},{name:"display"},{name:"elevation"},{name:"empty-cells"},{name:"filter",valueRegex:"^ *((blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(([^() ]*|(rgb|rgba|hsl|hsla)\\([^()]*\\))( +([^() ]*|(rgb|rgba|hsl|hsla)\\([^()]*\\)))*\\) *)*$"},{name:"flex"},{name:"flex-basis"},{name:"flex-direction"},{name:"flex-flow"},{name:"flex-grow"},{name:"flex-shrink"},{name:"flex-wrap"},{name:"float"},{name:"font"},{name:"font-family"},{name:"font-feature-settings"},{name:"font-kerning"},{name:"font-size"},{name:"font-size-adjust"},{name:"font-stretch"},{name:"font-style"},{name:"font-synthesis"},{name:"font-variant"},{name:"font-variant-alternates"},{name:"font-variant-caps"},{name:"font-variant-east-asian"},{name:"font-variant-ligatures"},{name:"font-variant-numeric"},{name:"font-variation-settings"},{name:"font-weight"},{name:"gap"},{name:"grid"},{name:"grid-area"},{name:"grid-auto-columns"},{name:"grid-auto-flow"},{name:"grid-auto-rows"},{name:"grid-column"},{name:"grid-column-end"},{name:"grid-column-start"},{name:"grid-row"},{name:"grid-row-end"},{name:"grid-row-start"},{name:"grid-template"},{name:"grid-template-areas"},{name:"grid-template-columns"},{name:"grid-template-rows"},{name:"height"},{name:"hyphens"},{name:"image-orientation"},{name:"image-resolution"},{name:"inline-size"},{name:"isolation"},{name:"justify-content"},{name:"justify-items"},{name:"justify-self"},{name:"left"},{name:"letter-spacing"},{name:"line-break"},{name:"line-height"},{name:"list-style"},{name:"list-style-position"},{name:"list-style-type"},{name:"margin"},{name:"margin-bottom"},{name:"margin-left"},{name:"margin-right"},{name:"margin-top"},{name:"max-height"},{name:"max-width"},{name:"min-height"},{name:"min-width"},{name:"mix-blend-mode"},{name:"object-fit"},{name:"object-position"},{name:"offset-distance"},{name:"opacity"},{name:"order"},{name:"outline"},{name:"outline-color"},{name:"outline-offset"},{name:"outline-style"},{name:"outline-width"},{name:"overflow"},{name:"overflow-wrap"},{name:"overflow-x"},{name:"overflow-y"},{name:"padding"},{name:"padding-bottom"},{name:"padding-left"},{name:"padding-right"},{name:"padding-top"},{name:"pause"},{name:"pause-after"},{name:"pause-before"},{name:"perspective"},{name:"perspective-origin"},{name:"pitch"},{name:"pitch-range"},{name:"place-items"},{name:"position"},{name:"quotes"},{name:"resize"},{name:"richness"},{name:"right"},{name:"row-gap"},{name:"speak"},{name:"speak-header"},{name:"speak-numeral"},{name:"speak-punctuation"},{name:"speech-rate"},{name:"stress"},{name:"table-layout"},{name:"text-align"},{name:"text-align-last"},{name:"text-combine-upright"},{name:"text-decoration"},{name:"text-decoration-color"},{name:"text-decoration-line"},{name:"text-decoration-skip"},{name:"text-decoration-style"},{name:"text-emphasis"},{name:"text-emphasis-color"},{name:"text-emphasis-position"},{name:"text-emphasis-style"},{name:"text-indent"},{name:"text-justify"},{name:"text-orientation"},{name:"text-overflow"},{name:"text-shadow"},{name:"text-transform"},{name:"text-underline-position"},{name:"top"},{name:"transform"},{name:"transform-box"},{name:"transform-origin"},{name:"transform-style"},{name:"transition",valueRegex:"^ *((initial|unset)|(((none|offset-distance|opacity|transform|visibility)( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms)( *(linear|(ease|ease-in|ease-out|ease-in-out|cubic-bezier\\( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(, *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?){3} *\\))|(step-start|step-end|steps\\( *(|-|\\+)[0-9]+(, *(jump-start|jump-end|jump-none|jump-both|start|end))? *\\)))( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms))?)?)?)(, *((none|offset-distance|opacity|transform|visibility)( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms)( *(linear|(ease|ease-in|ease-out|ease-in-out|cubic-bezier\\( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(, *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?){3} *\\))|(step-start|step-end|steps\\( *(|-|\\+)[0-9]+(, *(jump-start|jump-end|jump-none|jump-both|start|end))? *\\)))( *(|-|\\+)([0-9]+|[0-9]*\\.[0-9]+)(e(|-|\\+)?[0-9]+)?(s|ms))?)?)?))*)) *$"},{name:"transition-delay"},{name:"transition-duration"},{name:"transition-property",valueRegex:"^ *(initial|unset|(none|offset-distance|opacity|transform|visibility)(, *(none|offset-distance|opacity|transform|visibility))*) *$"},{name:"transition-timing-function"},{name:"unicode-bidi"},{name:"vertical-align"},{name:"visibility",value:["hidden","initial","visible"]},{name:"voice-family"},{name:"white-space"},{name:"width"},{name:"word-break"},{name:"word-spacing"},{name:"word-wrap"},{name:"writing-mode"},{name:"z-index",valueRegex:"([-+]?0)|([-+]?100)|([-+]?[1-9][0-9]?)"}],i={tags:a,attrLists:n,extensions:r,declarations:m};t.default=i});
2
2
 
3
- __useblocks__.define("static/core/2f369eab.js",["require","exports","module","static/core/2ff39ddf.js","static/core/82dfd28b.js","static/core/d8b648e9.js","vite/preload-helper"],function(R,C,Ae){const ge=R("./2ff39ddf.js"),d=R("./82dfd28b.js"),E=R("./d8b648e9.js");let G=R("vite/preload-helper");function D(e){let t=e.documentElement;return t||(t=e.createElement("html"),e.appendChild(t)),t}function P(e){let t=e.head;if(!t){t=e.createElement("head");const i=D(e);i.insertBefore(t,i.firstChild)}return t}function I(e){const t=Object.create(null),i=e.getAttributeNames();for(const r of i)t[r]=e.getAttribute(r);return t}function Y(e){for(const t of document.querySelectorAll("iframe"))if(t.contentDocument===e.ownerDocument)return t}function J(e){const t=P(e);if(!e.querySelector("style[amp4email-boilerplate]")){const i=e.createElement("style");i.setAttribute("amp4email-boilerplate",""),i.innerHTML="body{visibility:hidden}",t.prepend(i)}}function K(e){const t=e.querySelector("style[amp4email-boilerplate]");t&&t.remove()}var q="amp-custom";function Q(e,t){return`em-${e.replaceAll("-","_")}-${t.toLowerCase()}`}function H(e,t,i){for(const r of t)if(d.css.isStyleRule(r)){const l=r.selectorText.split(/\+>~/).flatMap(s=>s.trim().split(" "));if(l.length===1&&l[0].trim().startsWith(".em-")){for(const s of r.style)if(r.style.getPropertyPriority(s)==="important"){for(const o of e.querySelectorAll(r.selectorText))if(d.isHtmlElement(o)){const u=o.style;for(const c of[...u])if(c.startsWith(s)){const g=i(c,u.getPropertyValue(c)),w=o.getAttribute("class");o.setAttribute("class",w?`${g} ${w}`:g),u.removeProperty(c)}}}}}else d.css.isMediaRule(r)&&H(e,r.cssRules,i)}function U(e,t){const i=t.sheet;if(i){const s=new Set;H(e,i.cssRules,(o,u)=>{const c=Q(o,u),g=[...i.cssRules],w=`.${c} { ${o}: ${u} }`;return!g.find(v=>d.css.isStyleRule(v)&&v.selectorText===`.${c}`)&&!s.has(w)&&(s.add(w),t.innerHTML=`
3
+ __useblocks__.define("static/core/ef035f6b.js",["require","exports","module","static/core/2ff39ddf.js","static/core/a42ab03f.js","static/core/467344d4.js","vite/preload-helper"],function(R,C,Ae){const ge=R("./2ff39ddf.js"),d=R("./a42ab03f.js"),E=R("./467344d4.js");let G=R("vite/preload-helper");function D(e){let t=e.documentElement;return t||(t=e.createElement("html"),e.appendChild(t)),t}function P(e){let t=e.head;if(!t){t=e.createElement("head");const i=D(e);i.insertBefore(t,i.firstChild)}return t}function I(e){const t=Object.create(null),i=e.getAttributeNames();for(const r of i)t[r]=e.getAttribute(r);return t}function Y(e){for(const t of document.querySelectorAll("iframe"))if(t.contentDocument===e.ownerDocument)return t}function J(e){const t=P(e);if(!e.querySelector("style[amp4email-boilerplate]")){const i=e.createElement("style");i.setAttribute("amp4email-boilerplate",""),i.innerHTML="body{visibility:hidden}",t.prepend(i)}}function K(e){const t=e.querySelector("style[amp4email-boilerplate]");t&&t.remove()}var q="amp-custom";function Q(e,t){return`em-${e.replaceAll("-","_")}-${t.toLowerCase()}`}function H(e,t,i){for(const r of t)if(d.css.isStyleRule(r)){const l=r.selectorText.split(/\+>~/).flatMap(s=>s.trim().split(" "));if(l.length===1&&l[0].trim().startsWith(".em-")){for(const s of r.style)if(r.style.getPropertyPriority(s)==="important"){for(const o of e.querySelectorAll(r.selectorText))if(d.isHtmlElement(o)){const u=o.style;for(const c of[...u])if(c.startsWith(s)){const g=i(c,u.getPropertyValue(c)),w=o.getAttribute("class");o.setAttribute("class",w?`${g} ${w}`:g),u.removeProperty(c)}}}}}else d.css.isMediaRule(r)&&H(e,r.cssRules,i)}function U(e,t){const i=t.sheet;if(i){const s=new Set;H(e,i.cssRules,(o,u)=>{const c=Q(o,u),g=[...i.cssRules],w=`.${c} { ${o}: ${u} }`;return!g.find(v=>d.css.isStyleRule(v)&&v.selectorText===`.${c}`)&&!s.has(w)&&(s.add(w),t.innerHTML=`
4
4
  .${c} { ${o}: ${u} };
5
5
  ${t.innerHTML}`),c}),s.size&&(t.innerHTML=`
6
6
  ${[...s].join(`
@@ -1 +1 @@
1
- __useblocks__.define("static/core/6c84f3aa.js",["require","exports","module","static/core/2ff39ddf.js","static/core/cf7d1dd7.js","static/core/82dfd28b.js"],function(d,m,E){const j=d("./2ff39ddf.js"),y=d("./cf7d1dd7.js"),e=d("./82dfd28b.js");var R=20;async function h(t){const i=e.peekEmailDocuments(t),o=i?.current()?.get().serverId;if(!i||o==null)return e.err("unavailable","The document has no saved revisions yet.");const s=e.featureRefusal(t,"version_history","revision history");if(s)return s;const n={wpId:e.openDocumentWpId(t,o)};return e.isBlockSessionKey(i.sessionKey())?e.canReadBlockHistory(t)?{port:e.resolveBlockHistoryPort(t),documentId:String(o),context:n}:e.err("unavailable","Revision history is not available for this block."):await e.isEmailHistoryAvailable(t)?{port:e.resolveEmailHistoryPort(t),documentId:String(o),context:n}:e.planRefusal("Revision history is not available on the current plan.")}async function p({port:t,documentId:i,context:o},s){for(let n=1;n<=R;n+=1){const{revisions:r,hasMore:a}=await t.readRevisions(i,n,o),u=r.find(l=>String(l.id)===s);if(u)return u;if(!a)break}return e.err("notFound",`There is no revision "${s}": take an id from history.listRevisions.`)}async function b(t,i){const o=await p(t,i);if(e.isResult(o))return o;const{port:s,documentId:n,context:r}=t,a=o.html?.trim()?o:{...o,...await s.readRevision?.(n,i,r)};return a.html?.trim()?a:e.err("unavailable",`The revision "${i}" has no content to show.`)}function g(t){t.getInstance(y.STORE_ID)?.dispatch?.(e.markAppearanceNeedsUpdate())}function k(t,i){const o=t?e.tryParseISO(t):void 0;return o instanceof Date&&!Number.isNaN(o.getTime())?String(e.formatDate(o,i)):""}function w(t){const i=new WeakMap,o=s=>{const n=i.get(s)??h(t).then(r=>e.isResult(r)?r:p(r,s.revision));return i.set(s,n),n};return{"history.restoreRevision":{precheck:async s=>{if(!e.openDocument(t))return e.noDocument();if(e.isReadOnly(t))return e.readOnlyError();const n=await o(s);return e.isResult(n)?n:void 0},consent:async s=>{const{__:n}=e.agentTranslator(t),r=await o(s).catch(()=>{}),{date:a,modified:u,authorName:l,author:c,subject:f}=e.isResult(r)?{}:r??{},v=l??(typeof c=="string"&&!/^\d+$/.test(c)?c:"");return{title:n("Go back to an earlier version of the email"),...e.detailsOf({label:n("Date"),value:k(a??u,n)},{label:n("Author"),value:v},{label:n("Subject"),value:e.clip(f??"")})}}}}}function _(t){const i=s=>s.aborted?e.cancelledError():e.readOnlyRefusal(t),o=async(s,n)=>{const r=e.openDocument(t);if(!r)return e.noDocument();if(e.isReadOnly(t))return e.readOnlyError();const a=await h(t);if(e.isResult(a))return a;const u=i(n);if(u)return u;const l=await b(a,s);if(e.isResult(l))return l;const c=i(n);return c||(e.openDocument(t)===r?{document:r,loaded:l}:e.err("unavailable","The open document changed while the revision was loading."))};return{"history.restoreRevision":async({revision:s},n)=>{const r=await o(s,n.signal);if(e.isResult(r))return r;const{document:a,loaded:u}=r,l=e.fromRevision(u)?.attributes;l&&e.writeEmailAttributes(a,l),g(t);const c=a.get().version;e.replaceDocumentContent(a,e.peekEmailDocuments(t)?.history(),u.html,{undoable:!0}),a.get().version===c&&a.markUnsaved();const{date:f,modified:v,subject:D}=u;return{revision:s,date:f??v,subject:D,unsaved:!0}}}}m.agentRevisionGates=w,m.agentRevisionHandlers=_});
1
+ __useblocks__.define("static/core/f1b8515a.js",["require","exports","module","static/core/2ff39ddf.js","static/core/cf7d1dd7.js","static/core/a42ab03f.js"],function(d,m,E){const j=d("./2ff39ddf.js"),y=d("./cf7d1dd7.js"),e=d("./a42ab03f.js");var R=20;async function h(t){const i=e.peekEmailDocuments(t),o=i?.current()?.get().serverId;if(!i||o==null)return e.err("unavailable","The document has no saved revisions yet.");const s=e.featureRefusal(t,"version_history","revision history");if(s)return s;const n={wpId:e.openDocumentWpId(t,o)};return e.isBlockSessionKey(i.sessionKey())?e.canReadBlockHistory(t)?{port:e.resolveBlockHistoryPort(t),documentId:String(o),context:n}:e.err("unavailable","Revision history is not available for this block."):await e.isEmailHistoryAvailable(t)?{port:e.resolveEmailHistoryPort(t),documentId:String(o),context:n}:e.planRefusal("Revision history is not available on the current plan.")}async function p({port:t,documentId:i,context:o},s){for(let n=1;n<=R;n+=1){const{revisions:r,hasMore:a}=await t.readRevisions(i,n,o),u=r.find(l=>String(l.id)===s);if(u)return u;if(!a)break}return e.err("notFound",`There is no revision "${s}": take an id from history.listRevisions.`)}async function b(t,i){const o=await p(t,i);if(e.isResult(o))return o;const{port:s,documentId:n,context:r}=t,a=o.html?.trim()?o:{...o,...await s.readRevision?.(n,i,r)};return a.html?.trim()?a:e.err("unavailable",`The revision "${i}" has no content to show.`)}function g(t){t.getInstance(y.STORE_ID)?.dispatch?.(e.markAppearanceNeedsUpdate())}function k(t,i){const o=t?e.tryParseISO(t):void 0;return o instanceof Date&&!Number.isNaN(o.getTime())?String(e.formatDate(o,i)):""}function w(t){const i=new WeakMap,o=s=>{const n=i.get(s)??h(t).then(r=>e.isResult(r)?r:p(r,s.revision));return i.set(s,n),n};return{"history.restoreRevision":{precheck:async s=>{if(!e.openDocument(t))return e.noDocument();if(e.isReadOnly(t))return e.readOnlyError();const n=await o(s);return e.isResult(n)?n:void 0},consent:async s=>{const{__:n}=e.agentTranslator(t),r=await o(s).catch(()=>{}),{date:a,modified:u,authorName:l,author:c,subject:f}=e.isResult(r)?{}:r??{},v=l??(typeof c=="string"&&!/^\d+$/.test(c)?c:"");return{title:n("Go back to an earlier version of the email"),...e.detailsOf({label:n("Date"),value:k(a??u,n)},{label:n("Author"),value:v},{label:n("Subject"),value:e.clip(f??"")})}}}}}function _(t){const i=s=>s.aborted?e.cancelledError():e.readOnlyRefusal(t),o=async(s,n)=>{const r=e.openDocument(t);if(!r)return e.noDocument();if(e.isReadOnly(t))return e.readOnlyError();const a=await h(t);if(e.isResult(a))return a;const u=i(n);if(u)return u;const l=await b(a,s);if(e.isResult(l))return l;const c=i(n);return c||(e.openDocument(t)===r?{document:r,loaded:l}:e.err("unavailable","The open document changed while the revision was loading."))};return{"history.restoreRevision":async({revision:s},n)=>{const r=await o(s,n.signal);if(e.isResult(r))return r;const{document:a,loaded:u}=r,l=e.fromRevision(u)?.attributes;l&&e.writeEmailAttributes(a,l),g(t);const c=a.get().version;e.replaceDocumentContent(a,e.peekEmailDocuments(t)?.history(),u.html,{undoable:!0}),a.get().version===c&&a.markUnsaved();const{date:f,modified:v,subject:D}=u;return{revision:s,date:f??v,subject:D,unsaved:!0}}}}m.agentRevisionGates=w,m.agentRevisionHandlers=_});
@@ -1 +1 @@
1
- __useblocks__.define("static/core/e955189e.js",["require","exports","module","static/core/2ff39ddf.js","static/core/82dfd28b.js","vite/preload-helper"],function(a,g,z){const j=a("./2ff39ddf.js"),t=a("./82dfd28b.js");let f=a("vite/preload-helper");var h=3e3,S=/\.(woff2?|ttf|otf|eot)(\?|$)/i;function b(e){if(S.test(e.name))return"font";switch(e.initiatorType){case"script":return"script";case"link":case"css":return"style";case"fetch":case"xmlhttprequest":return"fetch";case"img":case"image":return"image";default:return"other"}}function _(e){return e.decodedBodySize===0&&e.transferSize===0?{transferred:null,fromCache:null}:{transferred:e.transferSize,fromCache:e.transferSize===0}}function d(e,r){return{name:e.name,kind:b(e),startedAt:t.toAbsolute(e.startTime,r),finishedAt:t.toAbsolute(e.responseEnd,r),..._(e)}}function y(e){if(!t.isDiagnosticsEnabled()||typeof PerformanceObserver>"u")return null;performance.setResourceTimingBufferSize(h);const{timeOrigin:r}=performance,n=new PerformanceObserver(s=>{s.getEntries().forEach(i=>{e(d(i,r))})});return n.observe({type:"resource",buffered:!0}),()=>n.disconnect()}var k="__emmDiagnostics__";function p(e){return typeof e=="object"&&e!==null}function o(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function R(e){if(!p(e))return null;const r=o(e.startTime),n=o(e.responseEnd),s=o(e.transferSize),i=o(e.decodedBodySize);return typeof e.name!="string"||typeof e.initiatorType!="string"||r===null||n===null||s===null||i===null?null:{name:e.name,initiatorType:e.initiatorType,startTime:r,responseEnd:n,transferSize:s,decodedBodySize:i}}function D(e){if(!p(e)||e.mark!=="__emmDiagnostics__")return null;if(e.type==="paint"||e.type==="settled"){const r=o(e.at);return r===null?null:{type:e.type,at:r}}if(e.type==="resources"){const r=o(e.timeOrigin);return r===null||!Array.isArray(e.items)?null:{type:"resources",records:e.items.map(R).filter(n=>n!==null).map(n=>d(n,r))}}return null}var c=null,m=null,u=!1,l=!1;function E(){return c?!0:(c=y(e=>t.getDiagnosticsStore().resources.push(e)),c!==null)}function w(){if(m!==null)return!0;if(!t.isDiagnosticsEnabled()||typeof window>"u")return!1;const e=r=>{const n=D(r.data);if(!n)return;const s=t.getDiagnosticsStore();if(n.type==="paint"){u||(u=!0,s.marks.push({phase:t.PHASES.canvasPainted,at:n.at}));return}if(n.type==="settled"){l||(l=!0,s.marks.push({phase:t.PHASES.canvasSettled,at:n.at}));return}n.records.forEach(i=>s.resources.push(i))};return window.addEventListener("message",e),m=()=>window.removeEventListener("message",e),!0}function v(){t.clearDiagnostics(),u=!1,l=!1}async function P(){if(!t.isDiagnosticsEnabled()||typeof window>"u")return!1;const{buildReportPayload:e,renderReportHtml:r}=await(0,f.__vitePreload)(async()=>{const{buildReportPayload:i,renderReportHtml:O}=await Promise.resolve().then(()=>a("./1d3606c0.js"));return{buildReportPayload:i,renderReportHtml:O}},void 0,{}.url),n=r(e(t.getDiagnosticsSnapshot(),t.getResourcesSnapshot())),s=window.open("","_blank");return s?(s.document.open(),s.document.write(n),s.document.close(),!0):!1}async function T(){const{buildReportPayload:e}=await(0,f.__vitePreload)(async()=>{const{buildReportPayload:r}=await Promise.resolve().then(()=>a("./1d3606c0.js"));return{buildReportPayload:r}},void 0,{}.url);return e(t.getDiagnosticsSnapshot(),t.getResourcesSnapshot())}function A(){if(!t.isDiagnosticsEnabled())return!1;t.drainLoaderMarks(),E(),w();const e=t.getBrandNamespace();return e?(e.diagnostics={snapshot:t.getDiagnosticsSnapshot,resources:t.getResourcesSnapshot,report:P,export:T,clear:v},!0):!1}g.installDiagnostics=A});
1
+ __useblocks__.define("static/core/f8585ce6.js",["require","exports","module","static/core/2ff39ddf.js","static/core/a42ab03f.js","vite/preload-helper"],function(a,g,z){const j=a("./2ff39ddf.js"),t=a("./a42ab03f.js");let f=a("vite/preload-helper");var h=3e3,S=/\.(woff2?|ttf|otf|eot)(\?|$)/i;function b(e){if(S.test(e.name))return"font";switch(e.initiatorType){case"script":return"script";case"link":case"css":return"style";case"fetch":case"xmlhttprequest":return"fetch";case"img":case"image":return"image";default:return"other"}}function _(e){return e.decodedBodySize===0&&e.transferSize===0?{transferred:null,fromCache:null}:{transferred:e.transferSize,fromCache:e.transferSize===0}}function d(e,r){return{name:e.name,kind:b(e),startedAt:t.toAbsolute(e.startTime,r),finishedAt:t.toAbsolute(e.responseEnd,r),..._(e)}}function y(e){if(!t.isDiagnosticsEnabled()||typeof PerformanceObserver>"u")return null;performance.setResourceTimingBufferSize(h);const{timeOrigin:r}=performance,n=new PerformanceObserver(s=>{s.getEntries().forEach(i=>{e(d(i,r))})});return n.observe({type:"resource",buffered:!0}),()=>n.disconnect()}var k="__emmDiagnostics__";function p(e){return typeof e=="object"&&e!==null}function o(e){return typeof e=="number"&&Number.isFinite(e)?e:null}function R(e){if(!p(e))return null;const r=o(e.startTime),n=o(e.responseEnd),s=o(e.transferSize),i=o(e.decodedBodySize);return typeof e.name!="string"||typeof e.initiatorType!="string"||r===null||n===null||s===null||i===null?null:{name:e.name,initiatorType:e.initiatorType,startTime:r,responseEnd:n,transferSize:s,decodedBodySize:i}}function D(e){if(!p(e)||e.mark!=="__emmDiagnostics__")return null;if(e.type==="paint"||e.type==="settled"){const r=o(e.at);return r===null?null:{type:e.type,at:r}}if(e.type==="resources"){const r=o(e.timeOrigin);return r===null||!Array.isArray(e.items)?null:{type:"resources",records:e.items.map(R).filter(n=>n!==null).map(n=>d(n,r))}}return null}var c=null,m=null,u=!1,l=!1;function E(){return c?!0:(c=y(e=>t.getDiagnosticsStore().resources.push(e)),c!==null)}function w(){if(m!==null)return!0;if(!t.isDiagnosticsEnabled()||typeof window>"u")return!1;const e=r=>{const n=D(r.data);if(!n)return;const s=t.getDiagnosticsStore();if(n.type==="paint"){u||(u=!0,s.marks.push({phase:t.PHASES.canvasPainted,at:n.at}));return}if(n.type==="settled"){l||(l=!0,s.marks.push({phase:t.PHASES.canvasSettled,at:n.at}));return}n.records.forEach(i=>s.resources.push(i))};return window.addEventListener("message",e),m=()=>window.removeEventListener("message",e),!0}function v(){t.clearDiagnostics(),u=!1,l=!1}async function P(){if(!t.isDiagnosticsEnabled()||typeof window>"u")return!1;const{buildReportPayload:e,renderReportHtml:r}=await(0,f.__vitePreload)(async()=>{const{buildReportPayload:i,renderReportHtml:O}=await Promise.resolve().then(()=>a("./3d8e2478.js"));return{buildReportPayload:i,renderReportHtml:O}},void 0,{}.url),n=r(e(t.getDiagnosticsSnapshot(),t.getResourcesSnapshot())),s=window.open("","_blank");return s?(s.document.open(),s.document.write(n),s.document.close(),!0):!1}async function T(){const{buildReportPayload:e}=await(0,f.__vitePreload)(async()=>{const{buildReportPayload:r}=await Promise.resolve().then(()=>a("./3d8e2478.js"));return{buildReportPayload:r}},void 0,{}.url);return e(t.getDiagnosticsSnapshot(),t.getResourcesSnapshot())}function A(){if(!t.isDiagnosticsEnabled())return!1;t.drainLoaderMarks(),E(),w();const e=t.getBrandNamespace();return e?(e.diagnostics={snapshot:t.getDiagnosticsSnapshot,resources:t.getResourcesSnapshot,report:P,export:T,clear:v},!0):!1}g.installDiagnostics=A});
@@ -1 +1 @@
1
- var m=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 U(e){return`service_container_${e}`}var D=new Set,K;function Ye(){if(!K)return;const e=new Error("getInstanceAsync"),t=Error;return typeof t.captureStackTrace=="function"&&t.captureStackTrace(e,Oe.prototype.getInstanceAsync),e.stack}function j(e){D.delete(e)&&K?.end(e)}var Oe=class X extends m{_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 m){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=Ye();return new Promise((s,o)=>{const i={id:String(t),startedAt:Date.now(),origin:r,container:this,reject:o};D.add(i),K?.start(i),this._onInject(t,()=>{j(i),s(this.getInstance(t))})})}failPendingWaits(t){for(const n of Array.from(D))n.container===this&&(j(n),n.reject(t))}pendingWaits(){return[...D].filter(t=>t.container===this)}addService(t,n){const r=U(t);this.injectFactory(r,(o,i=[])=>i.indexOf(n)<0?[...i,n]:i);const s=new m;return s.addDispose(()=>{this.injectFactory(r,(o,i=[])=>i.filter(a=>a!==n))}),s}addServiceFactory(t,n,r){const s=U(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 m;return i.addDispose(()=>{this.injectFactory(s,(a,c=[])=>o===void 0?c:c.filter(_=>_!==o))}),i}getServices(t){const n=U(t);return[...this.getInstance(n,!1)||[],...this._parent?.getServices(t)||[]]}createChild(){return new X(this)}getOrCreateIsolatedContainer(t){return this.getOrCreateInstance(t,()=>{const n=this._parent?.getOrCreateIsolatedContainer(t);return new X(n)})}remove(t){const n=this._injections;delete n[String(t)]}injectListenerCount(){return this._injectCallbacks.length}dispose(){for(const t of Array.from(D))t.container===this&&j(t);this._injections=Object.create(null),this._injectCallbacks=[],super.dispose()}};function H(e){return e.startsWith("__")?e:`__${e}__`}function Je(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 Qe(e){return e!=null&&typeof e=="object"&&typeof e.inject=="function"&&typeof e.getInstance=="function"}function Ze(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 Ie(e){const t=Ze(e),n=Je(t);if(Qe(n.container))return n.container;const r=new Oe(null);return n.container=r,r}function Tn(e){return Ie(e)}function et(){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 tt(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():et()}function d(e=tt()){return e}function ge(){return"esm".trim()||"unknown"}function nt(e){if(typeof globalThis>"u")return;const t=ge(),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 rt(){const e="useblocks".trim();if(!e)throw new Error("[di] REACT_APP_NAME is required for DependencyResolver diagnostics.");return`__${e}__`}function st(e,t){if(nt(t),typeof globalThis>"u")return e;const n=ge(),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 ot(){if(w)return w;const e=rt();return w=st(Ie(e),e),w}var B=new Proxy({},{get(e,t,n){const r=ot(),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 y(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 Nn(e){return e instanceof DOMException&&e.name==="AbortError"}function me(e){if(e?.aborted)throw y(e.reason)}function Dn(e,t){return t?(t.aborted&&e.catch(()=>{}),me(t),new Promise((n,r)=>{const s=()=>{o(),r(y(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 m{_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()}},L=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}}},Cn=class extends L{execute([e],t){for(const n of t)try{n(e)}catch{}}},vn=class extends L{_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 L{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 yn(e,t=0){const n=new Te,r=e(n,t);return r&&n.addDisposable(r),n.event}function Ln(e,t,n=0){const r=new L,s=e((...o)=>{if(t(...o))return r.fire(...o)},n);return s&&r.addDisposable(s),r.event}function bn(e,t=0,n=0){const r=new L;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 Pn(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_BLOCK_CHANGED_ID=l("events.ON_BLOCK_CHANGED_ID"),e.ON_BLOCK_OPEN_ID=l("events.ON_BLOCK_OPEN_ID"),e.ON_BLOCK_CLOSE_ID=l("events.ON_BLOCK_CLOSE_ID"),e.OPEN_BLOCK_REQUEST_ID=l("events.OPEN_BLOCK_REQUEST_ID"),e.ON_BLOCK_SAVEBUTTON_CLICK_ID=l("events.ON_BLOCK_SAVEBUTTON_CLICK_ID"),e.ON_BLOCK_CLONE_ID=l("events.ON_BLOCK_CLONE_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_ANALYTICS_EVENT=l("events.ON_ANALYTICS_EVENT"),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.ON_IMPORT_VALIDATE_ID=l("events.ON_IMPORT_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"),it=d("plugin.optionsSource"),Un=d("plugin.store"),at=d("ConfigSource"),jn=d("plugin.standalone.project"),ct=d("plugin.standalone.bootstrapToken"),Gn=d("plugin.element"),_t=d("plugin.securityModule"),Xn=d("plugin.standalone.activated"),Hn=d("plugin.standalone.fileProxyRegistered"),V=d("plugin.jwt.token"),C=d("plugin.jwt.error"),Vn=d("PluginCollection"),$n=l("APP_LOAD_EVENT"),Wn=l("CONFIG_CHANGED_EVENT");function ut(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 lt(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 Kn(e){return e}function dt(e){return e&&typeof e=="object"}function re(e,t){return e&&typeof e=="object"&&e.operationId===t}var g="INIT_MESSAGE",ft="em:port-ready",pt="em:window-drained",G="";function se(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}var ht=class extends m{_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)},qn=class extends m{_singleton;_target;_transport;_transportSubscription;_ports=new Map;_drained=new WeakSet;_portSendHeld=new WeakSet;_inited=!1;_emitter=this.addDisposable(new ht);_handshaken=new WeakSet;_greeted=new WeakSet;_outgoingFilter;_outgoingObservers=new Set;_offTargetListeners=new Map;constructor(e,t){super(),this._singleton=t,this._transport=ut({postMessage:()=>{}},window),this._transportSubscription=this.addDisposable(this._transport.subscribe(this._onTransportMessage)),this.addListener(g,()=>{this._inited||(this._inited=!0,this._target&&this._handshaken.add(this._target),this.send(g))}),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,g)){this._greeted.delete(r),this._handshaken.add(r),this._postMessage(r,{operationId:g,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),dt(n)&&i||this._singleton&&re(n,g)){if(s&&i){const u=this._target;Promise.resolve().then(()=>this.usePort(s,!0,u))}const a=this._emitter.fireAsync(n.operationId||G,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(g,void 0);return}this._inited=!1,this._postMessage(e,{operationId:g,data:{}})}}sendPort(e,t){this._postMessage(e,{operationId:g,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:g,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=lt(e),s=r.subscribe(this._onTransportMessage);this._ports.set(n,{transport:r,subscription:s}),t&&(r.send({operationId:ft,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:pt,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(G,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 m);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(G,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 m);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(g,()=>{e(this._target)},n)),r}dispose(){for(const e of Array.from(this._ports.keys()))this._closePort(e);this._transport.close(),super.dispose()}};function b(e){return d(e)}var zn=d("extensions.atomsHandlers"),Yn=b("HANDLE_ATOM_INSERT"),Jn=d("HeadlessMode"),Qn=d("extensions.sandboxExtensions"),Zn="SANDBOX_EXTENSION_SCRIPT_STATUS",er=d("MESSAGE_SERVICE"),tr=b("SETTINGS_PANEL_EVENT"),nr="advanced",rr=b("MODAL_SHOW_EVENT"),sr=b("MODAL_CLOSE_EVENT"),or=b("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})({}),Et=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),O=this.contentFormatters[r||"application/json"],E=o||h.format,R=`${i||this.baseUrl||""}${n}${p?`?${p}`:""}`,qe=_?_(R,{body:e,secure:t,path:n,type:r,query:s,format:o,baseUrl:i,cancelToken:a,extraQuery:c,proxyHandler:_,...u}):R,ee=new Request(qe,{...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:O(e)});return this.customFetch(ee).then(async te=>{const I=te;I.data=null,I.error=null,I.meta={request:ee,response:I};const ze=E?await te[E]().then(x=>(I.ok?I.data=x:I.error={data:x},I)).catch(x=>(I.error=x,I)):I;return a&&this.abortControllers.delete(a),ze})}},At=d("prewarm.networkActivity");function Ot(){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 It(e){return e.getOrCreateInstance(At,()=>Ot())}var gt=Symbol("rest.publicRequest"),z=d("rest.requestHandler"),mt=d("rest.responseHandler"),Se=d("rest.customFetch"),Tt=(e,t)=>fetch(e,t),Ne=d("rest_transport"),St=e=>{e.inject(Se,{execute:async(t,n={})=>{const r=e.getServices(z),s={public:n[gt]===!0},o=It(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(mt);for(const _ of c)a=await _.execute(a,i);return a}finally{o()}}})};function pr(e,t){const n=e.getInstance(Ne);if(!n)throw new Error("[restApi] транспорт не зарегистрирован в контейнере");return Object.assign({},...t.map(r=>new r(n)))}var De="INJECTION";function Ce(e){return e.getState}function hr(e){if(Ce(e)){const t=e.getState()[De];return t&&B.getOrCreateInstance(t,()=>B.createChild())}else return e}function Er(e){if(!Ce(e)){e.dispose();return}const t=e.getState()[De];t&&(B.getInstance(t)?.dispose(),B.remove(t))}function Ar(e,t){for(const n of e)if(n&&t in n)return n[t]}function Nt(e){return Object.assign({},...e)}var ve=["generic","stockImages","emFiles","cdn"];function Y(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function oe(e){return!Y(e)||"match"in e||"rewrite"in e||"proxyBase"in e?!1:Object.keys(e).some(t=>ve.includes(t))}function ye(e){return e.length===0?[]:e.length===1?e[0]:e}function Le(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 Dt(e){return Y(e)&&("value"in e||"replace"in e)}function ie(e,t){return t===void 0?e:Array.isArray(t)?[...t,...e]:[t,...e]}function Ct(e){let t=!1,n=[],r=!1;for(const o of e)if(o!==void 0){if(Dt(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 Or(e){const t=e.filter(r=>r!==void 0);if(t.length===0)return;if(!t.some(r=>oe(r)))return Le(t);const n={};for(const r of ve){const s=Ct(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 Le(e)}function vt(e){if(e!==void 0){if(Array.isArray(e))return{replace:!1,hosts:e};if(Y(e)&&Array.isArray(e.value))return{replace:!!e.replace,hosts:e.value}}}function yt(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 Lt(e){let t=[],n=!1;for(const r of e){const s=vt(r);s&&(n=!0,s.replace&&(t=[]),t=yt(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=Nt(t.map(({directHosts:s,...o})=>o)),r=Lt(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 Pe(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function bt(e){const t=new Set;return e.filter(n=>!n.url||t.has(n.url)?!1:(t.add(n.url),!0))}function Pt(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 Q(e,t){if(!e)return{};if(Array.isArray(e)){for(const a of e){const c=Q(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 Re(e,t,n,r){const s=e.match;return s?Array.isArray(s)?s.some(o=>Re({...e,match:o},t,n,r)):typeof s=="function"?!!s({url:t,method:r,requestType:n}):s==="*"?!0:Q(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(!Pe(i)||!("rewrite"in i))return;const c=i;if(!Re(c,t,r,n))return;const _=typeof c.match=="string"||Array.isArray(c.match)?Q(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 O=f({url:t,proxyBase:u,method:n,requestType:r,..._}),E=u&&!be(O)?ce(u,O):O;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"})})}),bt(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 Xt(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}!Pe(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 Ht(e,t){return Pt(t).flatMap(n=>Xt(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 Ht(e,t.config)?[e]:$t(e,t).map(n=>n.url)}function N(e){for(;e.endsWith("/");)e=e.slice(0,e.length-1);return/\/wp-json$/i.test(e)?e:`${e}/wp-json`}function Kt(...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 qt(){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 Yt(){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 Jt(){const e="https://app.useblocks.io/api".trim();return e?N(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=N(r);t.has(s)||(t.add(s),n.push(s))}return n}function xe(e){const t=String(e||"").trim();return t?N(t):Jt()}function we(e,t=[]){return e?Zt([e,...t]).slice(0,3):[]}function Me(){return Qt(String({}.REACT_APP_OPENAPI_FAILOVER_BASE_URLS||"").trim())}function en(e=Date.now()){return A?e-A.switchedAt>=zt():!0}function Be(e=Date.now()){A&&en(e)&&(A=null)}function S(e){if(!qt())return!1;const t=xe(e);if(!t)return!1;const n=Me();return n.length===0?!1:we(t,n).length>1}function P(e){const t=xe(e);if(!t)return[];const n=Me();return n.length===0?[t]:we(t,n)}function Z(e){const t=P(e);if(t.length===0)return"";if(Be(),A){const n=t.indexOf(A.activeUrl);if(n>=0)return t[n]}return t[0]}function ke(e){const t=P(e);if(t.length<=1||(Be(),!A||!t.includes(A.activeUrl)))return t;const n=A.activeUrl;return[n,...t.filter(r=>r!==n)]}function tn(e){return Z(e)||void 0}function Fe(e){const t=e||void 0;if(typeof AbortController>"u")return{signal:t,timeoutError:()=>{},done:()=>{}};const n=Yt(),r=new AbortController;let s;const o=setTimeout(()=>{s=nn(n),r.abort(s)},n);return{signal:Kt(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 Ue(e){return e===502||e===503||e===504}function je(e){return!(e instanceof Error)&&!(e instanceof DOMException)?!1:e.name==="TimeoutError"?!0:e instanceof TypeError}var Ge;function mr(e){Ge=e}function k(e,t){if(!S(t))return;const n=P(t);if(n.length<=1)return;const r=n.indexOf(N(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&&Ge?.()}function Xe(e,t){if(!S(t))return;const n=N(e),r=P(t);if(r.includes(n)){if(n===r[0]){A=null;return}A?.activeUrl!==n&&(A={activeUrl:n,switchedAt:Date.now()})}}function He(){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:N("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(at);return t?t.get()??t.bootstrap():void 0}var an=class extends Et{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(_t)!==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?Fe(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 O=h?.timeoutError();if(O)throw O;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?ke(n):n?[Z(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&&Ue(f.status)){if(a=f,!u){k(_,n);continue}break}return f.ok&&Xe(_,n),f}catch(f){if(!je(f))throw f;i=f,u||k(_,n)}}if(r&&He(),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"),Tr=e=>{St(e);const t=cn({customFetch:e.getInstance(Se)?.execute??Tt},e);e.inject(Ne,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 F(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(!F(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)||!F(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 $=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($,async(i,a)=>{if(o.stale)return"";try{let c=await a||void 0;if(!c){const _=e.getInstance(ct);_&&(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 Ve(e,t){const n=he.get(e)??{applied:!1};(!n.applied||n.getAuthToken!==t.getAuthToken||!F(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(it)?.watch(n=>{t=n}),e.addService(z,{execute:async(n,r)=>{if(r?.public||!t?.getAuthToken)return;e.getInstance($)===void 0&&Ve(e,t);const s=await e.getInstanceAsync($);s&&n.headers.set("authorization",`Bearer ${s}`)}})}function Sr(e,t){if(e===t)return;let n=0;const r=Math.min(e.length,t.length);for(;n<r&&e[n]===t[n];)n++;let s=e.length,o=t.length;for(;s>n&&o>n&&e[s-1]===t[o-1];)s--,o--;return{start:n,fromEnd:s,toEnd:o}}function Nr(e){let t=2166136261;for(let n=0;n<e.length;n++)t=Math.imul(t^e.charCodeAt(n),16777619);return{length:e.length,hash:t>>>0}}var Dr={theme:"canvas_fact_theme",flags:"canvas_fact_flags",commonStyles:"canvas_fact_common_styles",lockEditor:"canvas_fact_lock_editor",codeMode:"canvas_fact_code_mode",appName:"canvas_fact_app_name",previewPage:"canvas_fact_preview_page",viewport:"canvas_fact_viewport"},Cr={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}}},$e="ERROR",vr="useblocks",yr={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"},Lr={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_emails_v2:"em_emails_v2",em_checks_v2:"em_checks_v2",em_blocks_v2:"em_blocks_v2",em_revisions_v2:"em_revisions_v2",em_defer_chrome:"em_defer_chrome",em_stripo_import:"em_stripo_import",em_guest_locale:"em_guest_locale"},br="light",Pr="dark",Rr="system",xr="(prefers-color-scheme: dark)",wr=8e3,Mr=2e3,Br=15e3,kr=3e3,Fr={MESSAGE:"message",INIT_PREVIEW:"init_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_EBLOCK_CLEAR_EM_BLOCK_ID:"sandbox_eblock_clear_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_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_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",SANDBOX_CANVAS_SYNCED:"sandbox_canvas_synced",SANDBOX_ELEMENT_OPERATION:"sandbox_element_operation"},Ur={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 We(e){return function(t){return{setOptions:()=>{},instance:{},dispose:()=>{},...e(t)||{}}}}function jr(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=$e){const t=new Error(e);return t.name="AuthPipelineError",t}async function On(e,t,n,r){const s=r?.attemptTimeout??S(n),o=S(n)?ke(n):P(n).length>0?[Z(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?Fe(t.signal):void 0;try{const p=await fetch(`${u}${i}`,{...t,...h?{signal:h.signal}:{}});if(!p.ok&&Ue(p.status)){if(a=p,!f){k(u,n);continue}break}return p.ok&&Xe(u,n),p}catch(p){const O=h?.timeoutError();if(!O&&!je(p))throw p;c=O||p,f||k(u,n)}finally{h?.done()}}if(S(n)&&He(),a)return a;throw c instanceof Error?c:new Error("[apiOriginFailover] fetch chain failed")}function Ee(e){e.inject(C,void 0),e.inject(V,void 0)}var Gr=We(e=>{let t,n;const r=En();return e.addService(z,{execute:r.decorate(async(s,o)=>{if(o?.public||!t)return;const i=String(e.getInstance(V)||"").trim();if(i){s.headers.append("authorization",`Bearer ${i}`);return}if(!e.getInstance(C))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 On("/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(C,void 0),e.inject(V,h),s.headers.append("authorization",`Bearer ${h}`)}catch{throw e.inject(C,$e),An()}})}),{setOptions(s){const o=s.jwtAuth,i=String(s.baseUrl||"").trim()||void 0,a=!F(o,t),c=i!==n;if(t=o,n=i,!o){Ee(e);return}a||c?Ee(e):e.inject(C,void 0)}}}),Xr=We(e=>(hn(e),{setOptions(t){Ve(e,t)}}));function In(e){return typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(e):e.replace(/([^a-zA-Z0-9_-])/g,"\\$1")}function W(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=W(e,s);if(o)return o}return null}function Ke(e,t=[]){const n=e.querySelectorAll("*");for(let r=0;r<n.length;r++){const s=n[r]?.shadowRoot;s&&(t.push(s),Ke(s,t))}return t}function gn(e,t,n){if(e.isConnected)return e;const r=e.id?.trim();return r?mn(`#${In(r)}`,t,n):Promise.reject(y("Editor mount element was disconnected and has no id — pass a CSS selector or call init() again after the host remounts the container."))}function mn(e,t,n){if(me(n),typeof e<"u"){if(typeof e=="string"){const r=e,s=W(r);if(s)return s;const o=t.addDisposable(new m);return new Promise((i,a)=>{const c=E=>{o.dispose(),E()},_=()=>{c(()=>a(y(n?.reason)))};if(n?.aborted){_();return}n?.addEventListener("abort",_),o.addDispose(()=>n?.removeEventListener("abort",_));const u=document.body??document.documentElement;if(!u){c(()=>a(y("Document is not ready to observe mount element")));return}const f=new Set,h=new MutationObserver(()=>{const E=W(r);if(E){c(()=>i(E));return}O()}),p=E=>{f.has(E)||(f.add(E),h.observe(E,{attributes:!0,childList:!0,subtree:!0}))},O=()=>{const E=document.documentElement;if(E)for(const R of Ke(E))p(R)};p(u),O(),o.addDispose(()=>h.disconnect())})}return e instanceof Element?gn(e,t,n):e}return e}var Hr=new Map;export{Jn as $,Tr as A,Pn as At,hr as B,Dn as Bt,Dr as C,ct as Ct,ln as D,ne as Dt,hn as E,Un as Et,Ir as F,bn as Ft,Ne as G,tt as Gt,Se as H,Sn as Ht,Or as I,Ln as It,_r as J,U as Jt,pr as K,Tn as Kt,gr as L,yn as Lt,tn as M,L as Mt,mr as N,Cn as Nt,F as O,xn as Ot,Kt as P,vn as Pt,Yn as Q,Nt as R,y as Rt,Cr as S,Xn as St,Nr as T,jn as Tt,gt as U,B as Ut,Er as V,me as Vt,z as W,d as Wt,nr as X,dr as Y,m as Yt,zn as Z,Lr as _,kn as _t,On as a,Zn as at,Rr as b,Vn as bt,En as c,qn as ct,kr as d,wn as dt,er as et,wr as f,$n as ft,br as g,Bn as gt,Fr as h,Mn as ht,Gr as i,Qn as it,Z as j,q as jt,_n as k,Rn as kt,yr as l,ft as lt,Pr as m,at as mt,mn as n,rr as nt,jr as o,tr as ot,Mr as p,Wn as pt,fr as q,Oe as qt,Xr as r,or as rt,We as s,G as st,Hr as t,sr as tt,Br as u,Kn as ut,Ur as v,Fn as vt,Sr as w,Hn as wt,vr as x,_t as xt,xr as y,it as yt,Ar as z,Nn as zt};
1
+ var m=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 U(e){return`service_container_${e}`}var D=new Set,K;function Ye(){if(!K)return;const e=new Error("getInstanceAsync"),t=Error;return typeof t.captureStackTrace=="function"&&t.captureStackTrace(e,Oe.prototype.getInstanceAsync),e.stack}function j(e){D.delete(e)&&K?.end(e)}var Oe=class X extends m{_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 m){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=Ye();return new Promise((s,o)=>{const i={id:String(t),startedAt:Date.now(),origin:r,container:this,reject:o};D.add(i),K?.start(i),this._onInject(t,()=>{j(i),s(this.getInstance(t))})})}failPendingWaits(t){for(const n of Array.from(D))n.container===this&&(j(n),n.reject(t))}pendingWaits(){return[...D].filter(t=>t.container===this)}addService(t,n){const r=U(t);this.injectFactory(r,(o,i=[])=>i.indexOf(n)<0?[...i,n]:i);const s=new m;return s.addDispose(()=>{this.injectFactory(r,(o,i=[])=>i.filter(a=>a!==n))}),s}addServiceFactory(t,n,r){const s=U(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 m;return i.addDispose(()=>{this.injectFactory(s,(a,c=[])=>o===void 0?c:c.filter(_=>_!==o))}),i}getServices(t){const n=U(t);return[...this.getInstance(n,!1)||[],...this._parent?.getServices(t)||[]]}createChild(){return new X(this)}getOrCreateIsolatedContainer(t){return this.getOrCreateInstance(t,()=>{const n=this._parent?.getOrCreateIsolatedContainer(t);return new X(n)})}remove(t){const n=this._injections;delete n[String(t)]}injectListenerCount(){return this._injectCallbacks.length}dispose(){for(const t of Array.from(D))t.container===this&&j(t);this._injections=Object.create(null),this._injectCallbacks=[],super.dispose()}};function H(e){return e.startsWith("__")?e:`__${e}__`}function Je(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 Qe(e){return e!=null&&typeof e=="object"&&typeof e.inject=="function"&&typeof e.getInstance=="function"}function Ze(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 Ie(e){const t=Ze(e),n=Je(t);if(Qe(n.container))return n.container;const r=new Oe(null);return n.container=r,r}function Tn(e){return Ie(e)}function et(){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 tt(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():et()}function d(e=tt()){return e}function ge(){return"esm".trim()||"unknown"}function nt(e){if(typeof globalThis>"u")return;const t=ge(),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 rt(){const e="useblocks".trim();if(!e)throw new Error("[di] REACT_APP_NAME is required for DependencyResolver diagnostics.");return`__${e}__`}function st(e,t){if(nt(t),typeof globalThis>"u")return e;const n=ge(),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 ot(){if(w)return w;const e=rt();return w=st(Ie(e),e),w}var B=new Proxy({},{get(e,t,n){const r=ot(),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 y(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 Nn(e){return e instanceof DOMException&&e.name==="AbortError"}function me(e){if(e?.aborted)throw y(e.reason)}function Dn(e,t){return t?(t.aborted&&e.catch(()=>{}),me(t),new Promise((n,r)=>{const s=()=>{o(),r(y(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 m{_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()}},b=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}}},Cn=class extends b{execute([e],t){for(const n of t)try{n(e)}catch{}}},vn=class extends b{_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 b{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 yn(e,t=0){const n=new Te,r=e(n,t);return r&&n.addDisposable(r),n.event}function bn(e,t,n=0){const r=new b,s=e((...o)=>{if(t(...o))return r.fire(...o)},n);return s&&r.addDisposable(s),r.event}function Ln(e,t=0,n=0){const r=new b;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 Pn(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_BLOCK_CHANGED_ID=l("events.ON_BLOCK_CHANGED_ID"),e.ON_BLOCK_OPEN_ID=l("events.ON_BLOCK_OPEN_ID"),e.ON_BLOCK_CLOSE_ID=l("events.ON_BLOCK_CLOSE_ID"),e.OPEN_BLOCK_REQUEST_ID=l("events.OPEN_BLOCK_REQUEST_ID"),e.ON_BLOCK_SAVEBUTTON_CLICK_ID=l("events.ON_BLOCK_SAVEBUTTON_CLICK_ID"),e.ON_BLOCK_CLONE_ID=l("events.ON_BLOCK_CLONE_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_ANALYTICS_EVENT=l("events.ON_ANALYTICS_EVENT"),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.ON_IMPORT_VALIDATE_ID=l("events.ON_IMPORT_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"),it=d("plugin.optionsSource"),Un=d("plugin.store"),at=d("ConfigSource"),jn=d("plugin.standalone.project"),ct=d("plugin.standalone.bootstrapToken"),Gn=d("plugin.element"),_t=d("plugin.securityModule"),Xn=d("plugin.standalone.activated"),Hn=d("plugin.standalone.fileProxyRegistered"),V=d("plugin.jwt.token"),C=d("plugin.jwt.error"),Vn=d("PluginCollection"),$n=l("APP_LOAD_EVENT"),Wn=l("CONFIG_CHANGED_EVENT");function ut(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 lt(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 Kn(e){return e}function dt(e){return e&&typeof e=="object"}function re(e,t){return e&&typeof e=="object"&&e.operationId===t}var g="INIT_MESSAGE",ft="em:port-ready",pt="em:window-drained",G="";function se(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}var ht=class extends m{_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)},qn=class extends m{_singleton;_target;_transport;_transportSubscription;_ports=new Map;_drained=new WeakSet;_portSendHeld=new WeakSet;_inited=!1;_emitter=this.addDisposable(new ht);_handshaken=new WeakSet;_greeted=new WeakSet;_outgoingFilter;_outgoingObservers=new Set;_offTargetListeners=new Map;constructor(e,t){super(),this._singleton=t,this._transport=ut({postMessage:()=>{}},window),this._transportSubscription=this.addDisposable(this._transport.subscribe(this._onTransportMessage)),this.addListener(g,()=>{this._inited||(this._inited=!0,this._target&&this._handshaken.add(this._target),this.send(g))}),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,g)){this._greeted.delete(r),this._handshaken.add(r),this._postMessage(r,{operationId:g,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),dt(n)&&i||this._singleton&&re(n,g)){if(s&&i){const u=this._target;Promise.resolve().then(()=>this.usePort(s,!0,u))}const a=this._emitter.fireAsync(n.operationId||G,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(g,void 0);return}this._inited=!1,this._postMessage(e,{operationId:g,data:{}})}}sendPort(e,t){this._postMessage(e,{operationId:g,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:g,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=lt(e),s=r.subscribe(this._onTransportMessage);this._ports.set(n,{transport:r,subscription:s}),t&&(r.send({operationId:ft,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:pt,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(G,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 m);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(G,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 m);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(g,()=>{e(this._target)},n)),r}dispose(){for(const e of Array.from(this._ports.keys()))this._closePort(e);this._transport.close(),super.dispose()}};function L(e){return d(e)}var zn=d("extensions.atomsHandlers"),Yn=L("HANDLE_ATOM_INSERT"),Jn=d("HeadlessMode"),Qn=d("extensions.sandboxExtensions"),Zn="SANDBOX_EXTENSION_SCRIPT_STATUS",er=d("MESSAGE_SERVICE"),tr=L("SETTINGS_PANEL_EVENT"),nr="advanced",rr=L("MODAL_SHOW_EVENT"),sr=L("MODAL_CLOSE_EVENT"),or=L("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})({}),Et=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),O=this.contentFormatters[r||"application/json"],E=o||h.format,R=`${i||this.baseUrl||""}${n}${p?`?${p}`:""}`,qe=_?_(R,{body:e,secure:t,path:n,type:r,query:s,format:o,baseUrl:i,cancelToken:a,extraQuery:c,proxyHandler:_,...u}):R,ee=new Request(qe,{...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:O(e)});return this.customFetch(ee).then(async te=>{const I=te;I.data=null,I.error=null,I.meta={request:ee,response:I};const ze=E?await te[E]().then(x=>(I.ok?I.data=x:I.error={data:x},I)).catch(x=>(I.error=x,I)):I;return a&&this.abortControllers.delete(a),ze})}},At=d("prewarm.networkActivity");function Ot(){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 It(e){return e.getOrCreateInstance(At,()=>Ot())}var gt=Symbol("rest.publicRequest"),z=d("rest.requestHandler"),mt=d("rest.responseHandler"),Se=d("rest.customFetch"),Tt=(e,t)=>fetch(e,t),Ne=d("rest_transport"),St=e=>{e.inject(Se,{execute:async(t,n={})=>{const r=e.getServices(z),s={public:n[gt]===!0},o=It(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(mt);for(const _ of c)a=await _.execute(a,i);return a}finally{o()}}})};function pr(e,t){const n=e.getInstance(Ne);if(!n)throw new Error("[restApi] транспорт не зарегистрирован в контейнере");return Object.assign({},...t.map(r=>new r(n)))}var De="INJECTION";function Ce(e){return e.getState}function hr(e){if(Ce(e)){const t=e.getState()[De];return t&&B.getOrCreateInstance(t,()=>B.createChild())}else return e}function Er(e){if(!Ce(e)){e.dispose();return}const t=e.getState()[De];t&&(B.getInstance(t)?.dispose(),B.remove(t))}function Ar(e,t){for(const n of e)if(n&&t in n)return n[t]}function Nt(e){return Object.assign({},...e)}var ve=["generic","stockImages","emFiles","cdn"];function Y(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function oe(e){return!Y(e)||"match"in e||"rewrite"in e||"proxyBase"in e?!1:Object.keys(e).some(t=>ve.includes(t))}function ye(e){return e.length===0?[]:e.length===1?e[0]:e}function be(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 Dt(e){return Y(e)&&("value"in e||"replace"in e)}function ie(e,t){return t===void 0?e:Array.isArray(t)?[...t,...e]:[t,...e]}function Ct(e){let t=!1,n=[],r=!1;for(const o of e)if(o!==void 0){if(Dt(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 Or(e){const t=e.filter(r=>r!==void 0);if(t.length===0)return;if(!t.some(r=>oe(r)))return be(t);const n={};for(const r of ve){const s=Ct(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 be(e)}function vt(e){if(e!==void 0){if(Array.isArray(e))return{replace:!1,hosts:e};if(Y(e)&&Array.isArray(e.value))return{replace:!!e.replace,hosts:e.value}}}function yt(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 bt(e){let t=[],n=!1;for(const r of e){const s=vt(r);s&&(n=!0,s.replace&&(t=[]),t=yt(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=Nt(t.map(({directHosts:s,...o})=>o)),r=bt(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 Le(e){return/^https?:\/\//i.test(e)}function Pe(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function Lt(e){const t=new Set;return e.filter(n=>!n.url||t.has(n.url)?!1:(t.add(n.url),!0))}function Pt(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 Q(e,t){if(!e)return{};if(Array.isArray(e)){for(const a of e){const c=Q(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?Le(t)?t:t.startsWith("?")||t.startsWith("#")?`${n}${t}`:`${n}${t.startsWith("/")?"":"/"}${t}`:n}function Re(e,t,n,r){const s=e.match;return s?Array.isArray(s)?s.some(o=>Re({...e,match:o},t,n,r)):typeof s=="function"?!!s({url:t,method:r,requestType:n}):s==="*"?!0:Q(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(!Pe(i)||!("rewrite"in i))return;const c=i;if(!Re(c,t,r,n))return;const _=typeof c.match=="string"||Array.isArray(c.match)?Q(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 O=f({url:t,proxyBase:u,method:n,requestType:r,..._}),E=u&&!Le(O)?ce(u,O):O;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"})})}),Lt(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 Xt(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}!Pe(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 Ht(e,t){return Pt(t).flatMap(n=>Xt(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 Ht(e,t.config)?[e]:$t(e,t).map(n=>n.url)}function N(e){for(;e.endsWith("/");)e=e.slice(0,e.length-1);return/\/wp-json$/i.test(e)?e:`${e}/wp-json`}function Kt(...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 qt(){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 Yt(){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 Jt(){const e="https://app.useblocks.io/api".trim();return e?N(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=N(r);t.has(s)||(t.add(s),n.push(s))}return n}function xe(e){const t=String(e||"").trim();return t?N(t):Jt()}function we(e,t=[]){return e?Zt([e,...t]).slice(0,3):[]}function Me(){return Qt(String({}.REACT_APP_OPENAPI_FAILOVER_BASE_URLS||"").trim())}function en(e=Date.now()){return A?e-A.switchedAt>=zt():!0}function Be(e=Date.now()){A&&en(e)&&(A=null)}function S(e){if(!qt())return!1;const t=xe(e);if(!t)return!1;const n=Me();return n.length===0?!1:we(t,n).length>1}function P(e){const t=xe(e);if(!t)return[];const n=Me();return n.length===0?[t]:we(t,n)}function Z(e){const t=P(e);if(t.length===0)return"";if(Be(),A){const n=t.indexOf(A.activeUrl);if(n>=0)return t[n]}return t[0]}function ke(e){const t=P(e);if(t.length<=1||(Be(),!A||!t.includes(A.activeUrl)))return t;const n=A.activeUrl;return[n,...t.filter(r=>r!==n)]}function tn(e){return Z(e)||void 0}function Fe(e){const t=e||void 0;if(typeof AbortController>"u")return{signal:t,timeoutError:()=>{},done:()=>{}};const n=Yt(),r=new AbortController;let s;const o=setTimeout(()=>{s=nn(n),r.abort(s)},n);return{signal:Kt(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 Ue(e){return e===502||e===503||e===504}function je(e){return!(e instanceof Error)&&!(e instanceof DOMException)?!1:e.name==="TimeoutError"?!0:e instanceof TypeError}var Ge;function mr(e){Ge=e}function k(e,t){if(!S(t))return;const n=P(t);if(n.length<=1)return;const r=n.indexOf(N(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&&Ge?.()}function Xe(e,t){if(!S(t))return;const n=N(e),r=P(t);if(r.includes(n)){if(n===r[0]){A=null;return}A?.activeUrl!==n&&(A={activeUrl:n,switchedAt:Date.now()})}}function He(){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:N("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(at);return t?t.get()??t.bootstrap():void 0}var an=class extends Et{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(_t)!==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?Fe(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 O=h?.timeoutError();if(O)throw O;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?ke(n):n?[Z(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&&Ue(f.status)){if(a=f,!u){k(_,n);continue}break}return f.ok&&Xe(_,n),f}catch(f){if(!je(f))throw f;i=f,u||k(_,n)}}if(r&&He(),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"),Tr=e=>{St(e);const t=cn({customFetch:e.getInstance(Se)?.execute??Tt},e);e.inject(Ne,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 F(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(!F(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)||!F(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 $=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($,async(i,a)=>{if(o.stale)return"";try{let c=await a||void 0;if(!c){const _=e.getInstance(ct);_&&(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 Ve(e,t){const n=he.get(e)??{applied:!1};(!n.applied||n.getAuthToken!==t.getAuthToken||!F(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(it)?.watch(n=>{t=n}),e.addService(z,{execute:async(n,r)=>{if(r?.public||!t?.getAuthToken)return;e.getInstance($)===void 0&&Ve(e,t);const s=await e.getInstanceAsync($);s&&n.headers.set("authorization",`Bearer ${s}`)}})}function Sr(e,t){if(e===t)return;let n=0;const r=Math.min(e.length,t.length);for(;n<r&&e[n]===t[n];)n++;let s=e.length,o=t.length;for(;s>n&&o>n&&e[s-1]===t[o-1];)s--,o--;return{start:n,fromEnd:s,toEnd:o}}function Nr(e){let t=2166136261;for(let n=0;n<e.length;n++)t=Math.imul(t^e.charCodeAt(n),16777619);return{length:e.length,hash:t>>>0}}var Dr={theme:"canvas_fact_theme",flags:"canvas_fact_flags",commonStyles:"canvas_fact_common_styles",lockEditor:"canvas_fact_lock_editor",codeMode:"canvas_fact_code_mode",appName:"canvas_fact_app_name",previewPage:"canvas_fact_preview_page",viewport:"canvas_fact_viewport"},Cr={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}}},$e="ERROR",vr="useblocks",yr={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",prm_ref_link_id:"_p_rlid",em_active_tab:"em_active_tab"},br={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_emails_v2:"em_emails_v2",em_checks_v2:"em_checks_v2",em_blocks_v2:"em_blocks_v2",em_revisions_v2:"em_revisions_v2",em_defer_chrome:"em_defer_chrome",em_stripo_import:"em_stripo_import",em_billing_v2:"em_billing_v2",em_guest_locale:"em_guest_locale"},Lr="light",Pr="dark",Rr="system",xr="(prefers-color-scheme: dark)",wr=8e3,Mr=2e3,Br=15e3,kr=3e3,Fr={MESSAGE:"message",INIT_PREVIEW:"init_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_EBLOCK_CLEAR_EM_BLOCK_ID:"sandbox_eblock_clear_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_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_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",SANDBOX_CANVAS_SYNCED:"sandbox_canvas_synced",SANDBOX_ELEMENT_OPERATION:"sandbox_element_operation"},Ur={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 We(e){return function(t){return{setOptions:()=>{},instance:{},dispose:()=>{},...e(t)||{}}}}function jr(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=$e){const t=new Error(e);return t.name="AuthPipelineError",t}async function On(e,t,n,r){const s=r?.attemptTimeout??S(n),o=S(n)?ke(n):P(n).length>0?[Z(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?Fe(t.signal):void 0;try{const p=await fetch(`${u}${i}`,{...t,...h?{signal:h.signal}:{}});if(!p.ok&&Ue(p.status)){if(a=p,!f){k(u,n);continue}break}return p.ok&&Xe(u,n),p}catch(p){const O=h?.timeoutError();if(!O&&!je(p))throw p;c=O||p,f||k(u,n)}finally{h?.done()}}if(S(n)&&He(),a)return a;throw c instanceof Error?c:new Error("[apiOriginFailover] fetch chain failed")}function Ee(e){e.inject(C,void 0),e.inject(V,void 0)}var Gr=We(e=>{let t,n;const r=En();return e.addService(z,{execute:r.decorate(async(s,o)=>{if(o?.public||!t)return;const i=String(e.getInstance(V)||"").trim();if(i){s.headers.append("authorization",`Bearer ${i}`);return}if(!e.getInstance(C))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 On("/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(C,void 0),e.inject(V,h),s.headers.append("authorization",`Bearer ${h}`)}catch{throw e.inject(C,$e),An()}})}),{setOptions(s){const o=s.jwtAuth,i=String(s.baseUrl||"").trim()||void 0,a=!F(o,t),c=i!==n;if(t=o,n=i,!o){Ee(e);return}a||c?Ee(e):e.inject(C,void 0)}}}),Xr=We(e=>(hn(e),{setOptions(t){Ve(e,t)}}));function In(e){return typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(e):e.replace(/([^a-zA-Z0-9_-])/g,"\\$1")}function W(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=W(e,s);if(o)return o}return null}function Ke(e,t=[]){const n=e.querySelectorAll("*");for(let r=0;r<n.length;r++){const s=n[r]?.shadowRoot;s&&(t.push(s),Ke(s,t))}return t}function gn(e,t,n){if(e.isConnected)return e;const r=e.id?.trim();return r?mn(`#${In(r)}`,t,n):Promise.reject(y("Editor mount element was disconnected and has no id — pass a CSS selector or call init() again after the host remounts the container."))}function mn(e,t,n){if(me(n),typeof e<"u"){if(typeof e=="string"){const r=e,s=W(r);if(s)return s;const o=t.addDisposable(new m);return new Promise((i,a)=>{const c=E=>{o.dispose(),E()},_=()=>{c(()=>a(y(n?.reason)))};if(n?.aborted){_();return}n?.addEventListener("abort",_),o.addDispose(()=>n?.removeEventListener("abort",_));const u=document.body??document.documentElement;if(!u){c(()=>a(y("Document is not ready to observe mount element")));return}const f=new Set,h=new MutationObserver(()=>{const E=W(r);if(E){c(()=>i(E));return}O()}),p=E=>{f.has(E)||(f.add(E),h.observe(E,{attributes:!0,childList:!0,subtree:!0}))},O=()=>{const E=document.documentElement;if(E)for(const R of Ke(E))p(R)};p(u),O(),o.addDispose(()=>h.disconnect())})}return e instanceof Element?gn(e,t,n):e}return e}var Hr=new Map;export{Jn as $,Tr as A,Pn as At,hr as B,Dn as Bt,Dr as C,ct as Ct,ln as D,ne as Dt,hn as E,Un as Et,Ir as F,Ln as Ft,Ne as G,tt as Gt,Se as H,Sn as Ht,Or as I,bn as It,_r as J,U as Jt,pr as K,Tn as Kt,gr as L,yn as Lt,tn as M,b as Mt,mr as N,Cn as Nt,F as O,xn as Ot,Kt as P,vn as Pt,Yn as Q,Nt as R,y as Rt,Cr as S,Xn as St,Nr as T,jn as Tt,gt as U,B as Ut,Er as V,me as Vt,z as W,d as Wt,nr as X,dr as Y,m as Yt,zn as Z,br as _,kn as _t,On as a,Zn as at,Rr as b,Vn as bt,En as c,qn as ct,kr as d,wn as dt,er as et,wr as f,$n as ft,Lr as g,Bn as gt,Fr as h,Mn as ht,Gr as i,Qn as it,Z as j,q as jt,_n as k,Rn as kt,yr as l,ft as lt,Pr as m,at as mt,mn as n,rr as nt,jr as o,tr as ot,Mr as p,Wn as pt,fr as q,Oe as qt,Xr as r,or as rt,We as s,G as st,Hr as t,sr as tt,Br as u,Kn as ut,Ur as v,Fn as vt,Sr as w,Hn as wt,vr as x,_t as xt,xr as y,it as yt,Ar as z,Nn as zt};
@@ -1 +1 @@
1
- __useblocks__.define(`static/umd-runtime/runtime.js`,[`require`,`exports`,`module`,`static/umd-runtime/DXuqyllu.js`,`static/umd-runtime/G2k8ELiO.js`,`static/umd-runtime/Dqoi-pC_.js`],function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:`Module`});let r=e("./DXuqyllu.js"),i=e("./G2k8ELiO.js"),a=e("./Dqoi-pC_.js");var o=r.r(i.w(),1),s=typeof o.default==`function`?(...e)=>(0,o.default)(...e):{...o.default};for(let e of Object.keys(o.default||{}))e!=="default"&&(s[e]=o.default[e]);var c=r.n({Activity:()=>ee,Children:()=>te,Component:()=>ne,Fragment:()=>re,Profiler:()=>ie,PureComponent:()=>ae,StrictMode:()=>oe,Suspense:()=>se,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>ce,__COMPILER_RUNTIME:()=>le,cache:()=>ue,cacheSignal:()=>de,cloneElement:()=>d,createContext:()=>f,createElement:()=>p,createRef:()=>m,default:()=>u,forwardRef:()=>h,isValidElement:()=>g,lazy:()=>_,memo:()=>v,startTransition:()=>y,unstable_useCacheRefresh:()=>b,use:()=>x,useActionState:()=>S,useCallback:()=>C,useContext:()=>w,useDebugValue:()=>T,useDeferredValue:()=>E,useEffect:()=>D,useEffectEvent:()=>O,useId:()=>k,useImperativeHandle:()=>A,useInsertionEffect:()=>j,useLayoutEffect:()=>M,useMemo:()=>N,useOptimistic:()=>P,useReducer:()=>F,useRef:()=>I,useState:()=>L,useSyncExternalStore:()=>R,useTransition:()=>z,version:()=>B}),l=r.r(a.Q(),1),u=l.default&&l.default.default?l.default.default:l.default,{Activity:ee,Children:te,Component:ne,Fragment:re,Profiler:ie,PureComponent:ae,StrictMode:oe,Suspense:se,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:ce,__COMPILER_RUNTIME:le,cache:ue,cacheSignal:de,cloneElement:d,createContext:f,createElement:p,createRef:m,forwardRef:h,isValidElement:g,lazy:_,memo:v,startTransition:y,unstable_useCacheRefresh:b,use:x,useActionState:S,useCallback:C,useContext:w,useDebugValue:T,useDeferredValue:E,useEffect:D,useEffectEvent:O,useId:k,useImperativeHandle:A,useInsertionEffect:j,useLayoutEffect:M,useMemo:N,useOptimistic:P,useReducer:F,useRef:I,useState:L,useSyncExternalStore:R,useTransition:z,version:B}=l.default;try{var V=Symbol.for(`editor-runtime.react.copies`),H=globalThis[V];H||(H=[],globalThis[V]=H);for(var U=!1,W=0;W<H.length;W++){var G=H[W];G&&G.react===l.default&&G.package===`useblocks`&&G.version===`1.3.11-dev.1`&&(U=!0)}U||H.push({package:`useblocks`,version:`1.3.11-dev.1`,react:l.default})}catch{}var fe=r.n({__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>me,createPortal:()=>he,default:()=>pe,flushSync:()=>ge,preconnect:()=>_e,prefetchDNS:()=>ve,preinit:()=>ye,preinitModule:()=>be,preload:()=>xe,preloadModule:()=>Se,requestFormReset:()=>Ce,unstable_batchedUpdates:()=>we,useFormState:()=>Te,useFormStatus:()=>Ee,version:()=>De}),K=r.r(a.Z(),1),pe=K.default&&K.default.default?K.default.default:K.default,{__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:me,createPortal:he,flushSync:ge,preconnect:_e,prefetchDNS:ve,preinit:ye,preinitModule:be,preload:xe,preloadModule:Se,requestFormReset:Ce,unstable_batchedUpdates:we,useFormState:Te,useFormStatus:Ee,version:De}=K.default,Oe=r.n({createRoot:()=>Ae,default:()=>ke,hydrateRoot:()=>je,version:()=>Me}),q=r.r(a.X(),1),ke=q.default&&q.default.default?q.default.default:q.default,{createRoot:Ae,hydrateRoot:je,version:Me}=q.default,Ne=r.n({Fragment:()=>J,jsx:()=>Y,jsxs:()=>X}),{Fragment:J,jsx:Y,jsxs:X}=r.r(a.Y(),1),Pe=r.n({Fragment:()=>J,jsx:()=>Y,jsxDEV:()=>Y,jsxs:()=>X}),Fe=r.n({default:()=>a.t});let Z=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function Ie(e,t){let n=10**(t+1),r=Math.floor(e*n);return Math.round(r/10)*10/n}let Le=(e={})=>{let{rootValue:t=16,precision:n=5,mediaQuery:r=!1}=e,a=(e,r)=>{if(!r)return e;let i=parseFloat(r);return i<=1?e:`${Ie(i/t,n)}rem`};return{visit:e=>{let t={...e};return Object.entries(e).forEach(([e,n])=>{if(typeof n==`string`&&n.includes(`px`)){let r=n.replace(Z,a);t[e]=r}!i.f[e]&&typeof n==`number`&&n!==0&&(t[e]=`${n}px`.replace(Z,a));let o=e.trim();if(o.startsWith(`@`)&&o.includes(`px`)&&r){let n=e.replace(Z,a);t[n]=t[e],delete t[e]}}),t}}};var Re=r.n({Keyframes:()=>i.i,NaNLinter:()=>i.l,StyleContext:()=>i.b,StyleProvider:()=>i.x,Theme:()=>i.v,_experimental:()=>i.n,autoPrefixTransformer:()=>i.C,createCache:()=>i.S,createTheme:()=>i._,extractStyle:()=>i.a,genCalc:()=>i.y,getComputedToken:()=>i.p,legacyLogicalPropertiesTransformer:()=>i.r,legacyNotSelectorLinter:()=>i.d,logicalPropertiesLinter:()=>i.u,parentSelectorLinter:()=>i.c,px2remTransformer:()=>Le,token2CSSVar:()=>i.h,unit:()=>i.g,useCSSVarRegister:()=>i.o,useCacheToken:()=>i.m,useStyleRegister:()=>i.s}),Q=r.n({Ls:()=>Ge,default:()=>ze,en:()=>We,extend:()=>Be,isDayjs:()=>He,locale:()=>Ve,p:()=>Ke,unix:()=>Ue}),$=r.r(i.t(),1),ze=$.default&&$.default.default?$.default.default:$.default,{extend:Be,locale:Ve,isDayjs:He,unix:Ue,en:We,Ls:Ge,p:Ke}=$.default;let qe=(function(){var t,n=function(){return t||=Promise.resolve().then(()=>e("./B7h7P1Np.js"))};return{then:function(e,t){return n().then(e,t)},catch:function(e){return n().catch(e)},finally:function(e){return n().finally(e)}}})(),Je=(function(){var t,n=function(){return t||=Promise.resolve().then(()=>e("./BauvM4c_.js"))};return{then:function(e,t){return n().then(e,t)},catch:function(e){return n().catch(e)},finally:function(e){return n().finally(e)}}})();Object.defineProperty(t,"AntDesignCssinjs",{enumerable:!0,get:function(){return Re}}),Object.defineProperty(t,"AntDesignIconBase",{enumerable:!0,get:function(){return Fe}}),t.AntDesignIcons=Je,t.Antd=qe,t.Classnames=s,Object.defineProperty(t,"Dayjs",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(t,"React",{enumerable:!0,get:function(){return c}}),Object.defineProperty(t,"ReactDom",{enumerable:!0,get:function(){return fe}}),Object.defineProperty(t,"ReactDomClient",{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(t,"ReactJsxDevRuntime",{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(t,"ReactJsxRuntime",{enumerable:!0,get:function(){return Ne}})});
1
+ __useblocks__.define(`static/umd-runtime/runtime.js`,[`require`,`exports`,`module`,`static/umd-runtime/DXuqyllu.js`,`static/umd-runtime/G2k8ELiO.js`,`static/umd-runtime/Dqoi-pC_.js`],function(e,t,n){Object.defineProperty(t,Symbol.toStringTag,{value:`Module`});let r=e("./DXuqyllu.js"),i=e("./G2k8ELiO.js"),a=e("./Dqoi-pC_.js");var o=r.r(i.w(),1),s=typeof o.default==`function`?(...e)=>(0,o.default)(...e):{...o.default};for(let e of Object.keys(o.default||{}))e!=="default"&&(s[e]=o.default[e]);var c=r.n({Activity:()=>ee,Children:()=>te,Component:()=>ne,Fragment:()=>re,Profiler:()=>ie,PureComponent:()=>ae,StrictMode:()=>oe,Suspense:()=>se,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>ce,__COMPILER_RUNTIME:()=>le,cache:()=>ue,cacheSignal:()=>de,cloneElement:()=>d,createContext:()=>f,createElement:()=>p,createRef:()=>m,default:()=>u,forwardRef:()=>h,isValidElement:()=>g,lazy:()=>_,memo:()=>v,startTransition:()=>y,unstable_useCacheRefresh:()=>b,use:()=>x,useActionState:()=>S,useCallback:()=>C,useContext:()=>w,useDebugValue:()=>T,useDeferredValue:()=>E,useEffect:()=>D,useEffectEvent:()=>O,useId:()=>k,useImperativeHandle:()=>A,useInsertionEffect:()=>j,useLayoutEffect:()=>M,useMemo:()=>N,useOptimistic:()=>P,useReducer:()=>F,useRef:()=>I,useState:()=>L,useSyncExternalStore:()=>R,useTransition:()=>z,version:()=>B}),l=r.r(a.Q(),1),u=l.default&&l.default.default?l.default.default:l.default,{Activity:ee,Children:te,Component:ne,Fragment:re,Profiler:ie,PureComponent:ae,StrictMode:oe,Suspense:se,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:ce,__COMPILER_RUNTIME:le,cache:ue,cacheSignal:de,cloneElement:d,createContext:f,createElement:p,createRef:m,forwardRef:h,isValidElement:g,lazy:_,memo:v,startTransition:y,unstable_useCacheRefresh:b,use:x,useActionState:S,useCallback:C,useContext:w,useDebugValue:T,useDeferredValue:E,useEffect:D,useEffectEvent:O,useId:k,useImperativeHandle:A,useInsertionEffect:j,useLayoutEffect:M,useMemo:N,useOptimistic:P,useReducer:F,useRef:I,useState:L,useSyncExternalStore:R,useTransition:z,version:B}=l.default;try{var V=Symbol.for(`editor-runtime.react.copies`),H=globalThis[V];H||(H=[],globalThis[V]=H);for(var U=!1,W=0;W<H.length;W++){var G=H[W];G&&G.react===l.default&&G.package===`useblocks`&&G.version===`1.3.11-dev.3`&&(U=!0)}U||H.push({package:`useblocks`,version:`1.3.11-dev.3`,react:l.default})}catch{}var fe=r.n({__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>me,createPortal:()=>he,default:()=>pe,flushSync:()=>ge,preconnect:()=>_e,prefetchDNS:()=>ve,preinit:()=>ye,preinitModule:()=>be,preload:()=>xe,preloadModule:()=>Se,requestFormReset:()=>Ce,unstable_batchedUpdates:()=>we,useFormState:()=>Te,useFormStatus:()=>Ee,version:()=>De}),K=r.r(a.Z(),1),pe=K.default&&K.default.default?K.default.default:K.default,{__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:me,createPortal:he,flushSync:ge,preconnect:_e,prefetchDNS:ve,preinit:ye,preinitModule:be,preload:xe,preloadModule:Se,requestFormReset:Ce,unstable_batchedUpdates:we,useFormState:Te,useFormStatus:Ee,version:De}=K.default,Oe=r.n({createRoot:()=>Ae,default:()=>ke,hydrateRoot:()=>je,version:()=>Me}),q=r.r(a.X(),1),ke=q.default&&q.default.default?q.default.default:q.default,{createRoot:Ae,hydrateRoot:je,version:Me}=q.default,Ne=r.n({Fragment:()=>J,jsx:()=>Y,jsxs:()=>X}),{Fragment:J,jsx:Y,jsxs:X}=r.r(a.Y(),1),Pe=r.n({Fragment:()=>J,jsx:()=>Y,jsxDEV:()=>Y,jsxs:()=>X}),Fe=r.n({default:()=>a.t});let Z=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function Ie(e,t){let n=10**(t+1),r=Math.floor(e*n);return Math.round(r/10)*10/n}let Le=(e={})=>{let{rootValue:t=16,precision:n=5,mediaQuery:r=!1}=e,a=(e,r)=>{if(!r)return e;let i=parseFloat(r);return i<=1?e:`${Ie(i/t,n)}rem`};return{visit:e=>{let t={...e};return Object.entries(e).forEach(([e,n])=>{if(typeof n==`string`&&n.includes(`px`)){let r=n.replace(Z,a);t[e]=r}!i.f[e]&&typeof n==`number`&&n!==0&&(t[e]=`${n}px`.replace(Z,a));let o=e.trim();if(o.startsWith(`@`)&&o.includes(`px`)&&r){let n=e.replace(Z,a);t[n]=t[e],delete t[e]}}),t}}};var Re=r.n({Keyframes:()=>i.i,NaNLinter:()=>i.l,StyleContext:()=>i.b,StyleProvider:()=>i.x,Theme:()=>i.v,_experimental:()=>i.n,autoPrefixTransformer:()=>i.C,createCache:()=>i.S,createTheme:()=>i._,extractStyle:()=>i.a,genCalc:()=>i.y,getComputedToken:()=>i.p,legacyLogicalPropertiesTransformer:()=>i.r,legacyNotSelectorLinter:()=>i.d,logicalPropertiesLinter:()=>i.u,parentSelectorLinter:()=>i.c,px2remTransformer:()=>Le,token2CSSVar:()=>i.h,unit:()=>i.g,useCSSVarRegister:()=>i.o,useCacheToken:()=>i.m,useStyleRegister:()=>i.s}),Q=r.n({Ls:()=>Ge,default:()=>ze,en:()=>We,extend:()=>Be,isDayjs:()=>He,locale:()=>Ve,p:()=>Ke,unix:()=>Ue}),$=r.r(i.t(),1),ze=$.default&&$.default.default?$.default.default:$.default,{extend:Be,locale:Ve,isDayjs:He,unix:Ue,en:We,Ls:Ge,p:Ke}=$.default;let qe=(function(){var t,n=function(){return t||=Promise.resolve().then(()=>e("./B7h7P1Np.js"))};return{then:function(e,t){return n().then(e,t)},catch:function(e){return n().catch(e)},finally:function(e){return n().finally(e)}}})(),Je=(function(){var t,n=function(){return t||=Promise.resolve().then(()=>e("./BauvM4c_.js"))};return{then:function(e,t){return n().then(e,t)},catch:function(e){return n().catch(e)},finally:function(e){return n().finally(e)}}})();Object.defineProperty(t,"AntDesignCssinjs",{enumerable:!0,get:function(){return Re}}),Object.defineProperty(t,"AntDesignIconBase",{enumerable:!0,get:function(){return Fe}}),t.AntDesignIcons=Je,t.Antd=qe,t.Classnames=s,Object.defineProperty(t,"Dayjs",{enumerable:!0,get:function(){return Q}}),Object.defineProperty(t,"React",{enumerable:!0,get:function(){return c}}),Object.defineProperty(t,"ReactDom",{enumerable:!0,get:function(){return fe}}),Object.defineProperty(t,"ReactDomClient",{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(t,"ReactJsxDevRuntime",{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(t,"ReactJsxRuntime",{enumerable:!0,get:function(){return Ne}})});