Current path: home/webdevt/www/wdp/wp-content/plugins/brizy/public/editor-build/276-wp/editor/js/
?? Go up: /home/webdevt/www/wdp/wp-content/plugins/brizy/public/editor-build/276-wp/editor
(()=>{var e={926:e=>{"use strict";class t{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,t){if(this.cache.set(e,t),this._size++,this._size>=this.maxSize){if(this._size=0,"function"==typeof this.onEviction)for(const[e,t]of this.oldCache.entries())this.onEviction(e,t);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){const t=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,t),t}}set(e,t){return this.cache.has(e)?this.cache.set(e,t):this._set(e,t),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){return this.cache.has(e)?this.cache.get(e):this.oldCache.has(e)?this.oldCache.get(e):void 0}delete(e){const t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache)yield e;for(const e of this.oldCache){const[t]=e;this.cache.has(t)||(yield e)}}get size(){let e=0;for(const t of this.oldCache.keys())this.cache.has(t)||e++;return Math.min(this._size+e,this.maxSize)}}e.exports=t},504:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getElementsByClassName:function(){return r},getElementsByTagName:function(){return i},getElementsByAttribute:function(){return o},removeNode:function(){return a},css:function(){return s},closestByClassName:function(){return c},hasClassName:function(){return u},removeClassName:function(){return l},children:function(){return h}});const n={ELEMENT_NODE:1};function r(e,t){const r=[];return d(e,(e=>{e.nodeType===n.ELEMENT_NODE&&u(e,t)&&r.push(e)})),r}function i(e,t){const r=[];return d(e,(e=>{e.nodeType===n.ELEMENT_NODE&&e.tagName===t&&r.push(e)})),r}function o(e,t,r){const i=[];return d(e,(e=>{if(e.nodeType===n.ELEMENT_NODE){const n=Array.from(e.attributes);let o=!1;n.forEach((n=>{o||n.nodeName!==t||void 0!==r&&n.nodeValue!==r||(i.push(e),o=!0)}))}})),i}function a(e){e.parentNode.removeChild(e)}function s(e,t,n){const r=/\s*(.+?):\s*(.+?);/g;let i=e.getAttribute("style");if(";"!==i[i.length-1]&&(i+=";"),"object"==typeof t){const n=Object.entries(t).map((e=>{let[t,n]=e;return`${t}: ${n};`})).join(" ");return void e.setAttribute("style",`${i} ${n}`)}if(t&&n&&"string"==typeof t)return void e.setAttribute("style",`${i} ${t}: ${n};`);const o={};{let e,t,n;for(;e=r.exec(i);)[,t,n]=e,o[t]=n}return t?o[t]:o}function c(e,t){do{if(e.nodeType===n.ELEMENT_NODE&&u(e,t))return e}while(e=e.parentNode);return null}function u(e,t){const n=e.getAttribute("class");return new RegExp(`\\b${t}\\b`).test(n)}function l(e,t){const n=e.getAttribute("class"),r=new RegExp(`\\b${t}\\b`,"g");e.setAttribute("class",n.replace(r,""))}function h(e){return Array.from(e.childNodes)}function d(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(d(e,t))return!0}while(e=e.nextSibling)}},786:(e,t,n)=>{function r(e){this.options=e||{locator:{}}}function i(){this.cdata=!1}function o(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function a(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function s(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function c(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}r.prototype.parseFromString=function(e,t){var n=this.options,r=new u,o=n.domBuilder||new i,s=n.errorHandler,c=n.locator,l=n.xmlns||{},h={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return c&&o.setDocumentLocator(c),r.errorHandler=function(e,t,n){if(!e){if(t instanceof i)return t;e=t}var r={},o=e instanceof Function;function s(t){var i=e[t];!i&&o&&(i=2==e.length?function(n){e(t,n)}:e),r[t]=i&&function(e){i("[xmldom "+t+"]\t"+e+a(n))}||function(){}}return n=n||{},s("warning"),s("error"),s("fatalError"),r}(s,o,c),r.domBuilder=n.domBuilder||o,/\/x?html?$/.test(t)&&(h.nbsp=" ",h.copy="©",l[""]="http://www.w3.org/1999/xhtml"),l.xml=l.xml||"http://www.w3.org/XML/1998/namespace",e?r.parse(e,l,h):r.errorHandler.error("invalid doc source"),o.doc},i.prototype={startDocument:function(){this.doc=(new l).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,a=i.createElementNS(e,n||t),s=r.length;c(this,a),this.currentElement=a,this.locator&&o(this.locator,a);for(var u=0;u<s;u++){e=r.getURI(u);var l=r.getValue(u),h=(n=r.getQName(u),i.createAttributeNS(e,n));this.locator&&o(r.getLocator(u),h),h.value=h.nodeValue=l,a.setAttributeNode(h)}},endElement:function(e,t,n){var r=this.currentElement;r.tagName,this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&o(this.locator,n),c(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=s.apply(this,arguments)){if(this.cdata)var r=this.doc.createCDATASection(e);else r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&o(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=s.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&o(this.locator,r),c(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&o(this.locator,i),c(this,i)}},warning:function(e){console.warn("[xmldom warning]\t"+e,a(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,a(this.locator))},fatalError:function(e){throw console.error("[xmldom fatalError]\t"+e,a(this.locator)),e}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){i.prototype[e]=function(){return null}}));var u=n(693).G,l=t.DOMImplementation=n(286).DOMImplementation;t.XMLSerializer=n(286).XMLSerializer,t.DOMParser=r},286:(e,t)=>{function n(e,t){for(var n in e)t[n]=e[n]}function r(e,t){var r=e.prototype;if(Object.create){var i=Object.create(t.prototype);r.__proto__=i}if(!(r instanceof t)){function o(){}o.prototype=t.prototype,n(r,o=new o),e.prototype=r=o}r.constructor!=e&&("function"!=typeof e&&console.error("unknow Class:"+e),r.constructor=e)}var i="http://www.w3.org/1999/xhtml",o={},a=o.ELEMENT_NODE=1,s=o.ATTRIBUTE_NODE=2,c=o.TEXT_NODE=3,u=o.CDATA_SECTION_NODE=4,l=o.ENTITY_REFERENCE_NODE=5,h=o.ENTITY_NODE=6,d=o.PROCESSING_INSTRUCTION_NODE=7,f=o.COMMENT_NODE=8,m=o.DOCUMENT_NODE=9,p=o.DOCUMENT_TYPE_NODE=10,g=o.DOCUMENT_FRAGMENT_NODE=11,N=o.NOTATION_NODE=12,b={},v={},w=(b.INDEX_SIZE_ERR=(v[1]="Index size error",1),b.DOMSTRING_SIZE_ERR=(v[2]="DOMString size error",2),b.HIERARCHY_REQUEST_ERR=(v[3]="Hierarchy request error",3)),E=(b.WRONG_DOCUMENT_ERR=(v[4]="Wrong document",4),b.INVALID_CHARACTER_ERR=(v[5]="Invalid character",5),b.NO_DATA_ALLOWED_ERR=(v[6]="No data allowed",6),b.NO_MODIFICATION_ALLOWED_ERR=(v[7]="No modification allowed",7),b.NOT_FOUND_ERR=(v[8]="Not found",8)),y=(b.NOT_SUPPORTED_ERR=(v[9]="Not supported",9),b.INUSE_ATTRIBUTE_ERR=(v[10]="Attribute in use",10));function x(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,v[e]),this.message=v[e],Error.captureStackTrace&&Error.captureStackTrace(this,x);return n.code=e,t&&(this.message=this.message+": "+t),n}function _(){}function D(e,t){this._node=e,this._refresh=t,T(this)}function T(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var r=e._refresh(e._node);ie(e,"length",r.length),n(r,e),e._inc=t}}function C(){}function S(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function A(e,t,n,r){if(r?t[S(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&U(i,e,r),function(e,t,n){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(i,e,n))}}function I(e,t,n){var r=S(t,n);if(!(r>=0))throw x(E,new Error(e.tagName+"@"+n));for(var i=t.length-1;r<i;)t[r]=t[++r];if(t.length=i,e){var o=e.ownerDocument;o&&(U(o,e,n),n.ownerElement=null)}}function R(e){if(this._features={},e)for(var t in e)this._features=e[t]}function O(){}function z(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function M(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(M(e,t))return!0}while(e=e.nextSibling)}function k(){}function U(e,t,n,r){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete t._nsMap[n.prefix?n.localName:""]}function $(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var i=t.firstChild,o=0;i;)r[o++]=i,i=i.nextSibling;r.length=o}}}function B(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,$(e.ownerDocument,e),t}function F(e,t,n){var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===g){var i=t.firstChild;if(null==i)return t;var o=t.lastChild}else i=o=t;var a=n?n.previousSibling:e.lastChild;i.previousSibling=a,o.nextSibling=n,a?a.nextSibling=i:e.firstChild=i,null==n?e.lastChild=o:n.previousSibling=o;do{i.parentNode=e}while(i!==o&&(i=i.nextSibling));return $(e.ownerDocument||e,e),t.nodeType==g&&(t.firstChild=t.lastChild=null),t}function L(){this._nsMap={}}function P(){}function j(){}function V(){}function q(){}function X(){}function H(){}function Y(){}function G(){}function W(){}function Q(){}function Z(){}function J(){}function K(e,t){var n=[],r=9==this.nodeType?this.documentElement:this,i=r.prefix,o=r.namespaceURI;if(o&&null==i&&null==(i=r.lookupPrefix(o)))var a=[{namespace:o,prefix:null}];return te(this,n,e,t,a),n.join("")}function ee(e,t,n){var r=e.prefix||"",i=e.namespaceURI;if(!r&&!i)return!1;if("xml"===r&&"http://www.w3.org/XML/1998/namespace"===i||"http://www.w3.org/2000/xmlns/"==i)return!1;for(var o=n.length;o--;){var a=n[o];if(a.prefix==r)return a.namespace!=i}return!0}function te(e,t,n,r,o){if(r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case a:o||(o=[]),o.length;var h=e.attributes,N=h.length,b=e.firstChild,v=e.tagName;n=i===e.namespaceURI||n,t.push("<",v);for(var w=0;w<N;w++)"xmlns"==(E=h.item(w)).prefix?o.push({prefix:E.localName,namespace:E.value}):"xmlns"==E.nodeName&&o.push({prefix:"",namespace:E.value});for(w=0;w<N;w++){var E;if(ee(E=h.item(w),0,o)){var y=E.prefix||"",x=E.namespaceURI,_=y?" xmlns:"+y:" xmlns";t.push(_,'="',x,'"'),o.push({prefix:y,namespace:x})}te(E,t,n,r,o)}if(ee(e,0,o)&&(y=e.prefix||"",x=e.namespaceURI,_=y?" xmlns:"+y:" xmlns",t.push(_,'="',x,'"'),o.push({prefix:y,namespace:x})),b||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(v)){if(t.push(">"),n&&/^script$/i.test(v))for(;b;)b.data?t.push(b.data):te(b,t,n,r,o),b=b.nextSibling;else for(;b;)te(b,t,n,r,o),b=b.nextSibling;t.push("</",v,">")}else t.push("/>");return;case m:case g:for(b=e.firstChild;b;)te(b,t,n,r,o),b=b.nextSibling;return;case s:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,z),'"');case c:return t.push(e.data.replace(/[<&]/g,z));case u:return t.push("<![CDATA[",e.data,"]]>");case f:return t.push("\x3c!--",e.data,"--\x3e");case p:var D=e.publicId,T=e.systemId;if(t.push("<!DOCTYPE ",e.name),D)t.push(' PUBLIC "',D),T&&"."!=T&&t.push('" "',T),t.push('">');else if(T&&"."!=T)t.push(' SYSTEM "',T,'">');else{var C=e.internalSubset;C&&t.push(" [",C,"]"),t.push(">")}return;case d:return t.push("<?",e.target," ",e.data,"?>");case l:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ne(e,t,n){var r;switch(t.nodeType){case a:(r=t.cloneNode(!1)).ownerDocument=e;case g:break;case s:n=!0}if(r||(r=t.cloneNode(!1)),r.ownerDocument=e,r.parentNode=null,n)for(var i=t.firstChild;i;)r.appendChild(ne(e,i,n)),i=i.nextSibling;return r}function re(e,t,n){var r=new t.constructor;for(var i in t){var o=t[i];"object"!=typeof o&&o!=r[i]&&(r[i]=o)}switch(t.childNodes&&(r.childNodes=new _),r.ownerDocument=e,r.nodeType){case a:var c=t.attributes,u=r.attributes=new C,l=c.length;u._ownerElement=r;for(var h=0;h<l;h++)r.setAttributeNode(re(e,c.item(h),!0));break;case s:n=!0}if(n)for(var d=t.firstChild;d;)r.appendChild(re(e,d,n)),d=d.nextSibling;return r}function ie(e,t,n){e[t]=n}b.INVALID_STATE_ERR=(v[11]="Invalid state",11),b.SYNTAX_ERR=(v[12]="Syntax error",12),b.INVALID_MODIFICATION_ERR=(v[13]="Invalid modification",13),b.NAMESPACE_ERR=(v[14]="Invalid namespace",14),b.INVALID_ACCESS_ERR=(v[15]="Invalid access",15),x.prototype=Error.prototype,n(b,x),_.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],r=0;r<this.length;r++)te(this[r],n,e,t);return n.join("")}},D.prototype.item=function(e){return T(this),this[e]},r(D,_),C.prototype={length:0,item:_.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new x(y);var n=this.getNamedItem(e.nodeName);return A(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new x(y);return t=this.getNamedItemNS(e.namespaceURI,e.localName),A(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return I(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return I(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}},R.prototype={hasFeature:function(e,t){var n=this._features[e.toLowerCase()];return!(!n||t&&!(t in n))},createDocument:function(e,t,n){var r=new k;if(r.implementation=this,r.childNodes=new _,r.doctype=n,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new H;return r.name=e,r.nodeName=e,r.publicId=t,r.systemId=n,r}},O.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return F(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return B(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return re(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==c&&e.nodeType==c?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var r in n)if(n[r]==e)return r;t=t.nodeType==s?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==s?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},n(o,O),n(o,O.prototype),k.prototype={nodeName:"#document",nodeType:m,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==g){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return null==this.documentElement&&e.nodeType==a&&(this.documentElement=e),F(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),B(this,e)},importNode:function(e,t){return ne(this,e,t)},getElementById:function(e){var t=null;return M(this.documentElement,(function(n){if(n.nodeType==a&&n.getAttribute("id")==e)return t=n,!0})),t},createElement:function(e){var t=new L;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new _,(t.attributes=new C)._ownerElement=t,t},createDocumentFragment:function(){var e=new Q;return e.ownerDocument=this,e.childNodes=new _,e},createTextNode:function(e){var t=new V;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new q;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new X;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Z;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new P;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new W;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new L,r=t.split(":"),i=n.attributes=new C;return n.childNodes=new _,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new P,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},r(k,O),L.prototype={nodeType:a,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===g?this.insertBefore(e,null):function(e,t){var n=t.parentNode;if(n){var r=e.lastChild;n.removeChild(t),r=e.lastChild}return r=e.lastChild,t.parentNode=e,t.previousSibling=r,t.nextSibling=null,r?r.nextSibling=t:e.firstChild=t,e.lastChild=t,$(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new D(this,(function(t){var n=[];return M(t,(function(r){r===t||r.nodeType!=a||"*"!==e&&r.tagName!=e||n.push(r)})),n}))},getElementsByTagNameNS:function(e,t){return new D(this,(function(n){var r=[];return M(n,(function(i){i===n||i.nodeType!==a||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||r.push(i)})),r}))}},k.prototype.getElementsByTagName=L.prototype.getElementsByTagName,k.prototype.getElementsByTagNameNS=L.prototype.getElementsByTagNameNS,r(L,O),P.prototype.nodeType=s,r(P,O),j.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(v[w])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},r(j,O),V.prototype={nodeName:"#text",nodeType:c,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},r(V,j),q.prototype={nodeName:"#comment",nodeType:f},r(q,j),X.prototype={nodeName:"#cdata-section",nodeType:u},r(X,j),H.prototype.nodeType=p,r(H,O),Y.prototype.nodeType=N,r(Y,O),G.prototype.nodeType=h,r(G,O),W.prototype.nodeType=l,r(W,O),Q.prototype.nodeName="#document-fragment",Q.prototype.nodeType=g,r(Q,O),Z.prototype.nodeType=d,r(Z,O),J.prototype.serializeToString=function(e,t,n){return K.call(e,t,n)},O.prototype.toString=K;try{if(Object.defineProperty){function oe(e){switch(e.nodeType){case a:case g:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(oe(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(D.prototype,"length",{get:function(){return T(this),this.$$length}}),Object.defineProperty(O.prototype,"textContent",{get:function(){return oe(this)},set:function(e){switch(this.nodeType){case a:case g:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ie=function(e,t,n){e["$$"+t]=n}}}catch(ae){}t.DOMImplementation=R,t.XMLSerializer=J},693:(e,t)=>{var n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,r=new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i=new RegExp("^"+n.source+r.source+"*(?::"+n.source+r.source+"*)?$");function o(){}function a(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function s(e,t,n,r,i,o){for(var a,s=++t,c=0;;){var u=e.charAt(s);switch(u){case"=":if(1===c)a=e.slice(t,s),c=3;else{if(2!==c)throw new Error("attribute equal must after attrName");c=3}break;case"'":case'"':if(3===c||1===c){if(1===c&&(o.warning('attribute value must after "="'),a=e.slice(t,s)),t=s+1,!((s=e.indexOf(u,t))>0))throw new Error("attribute value no end '"+u+"' match");l=e.slice(t,s).replace(/&#?\w+;/g,i),n.add(a,l,t-1),c=5}else{if(4!=c)throw new Error('attribute value must after "="');l=e.slice(t,s).replace(/&#?\w+;/g,i),n.add(a,l,t),o.warning('attribute "'+a+'" missed start quot('+u+")!!"),t=s+1,c=5}break;case"/":switch(c){case 0:n.setTagName(e.slice(t,s));case 5:case 6:case 7:c=7,n.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==c&&n.setTagName(e.slice(t,s)),s;case">":switch(c){case 0:n.setTagName(e.slice(t,s));case 5:case 6:case 7:break;case 4:case 1:"/"===(l=e.slice(t,s)).slice(-1)&&(n.closed=!0,l=l.slice(0,-1));case 2:2===c&&(l=a),4==c?(o.warning('attribute "'+l+'" missed quot(")!!'),n.add(a,l.replace(/&#?\w+;/g,i),t)):("http://www.w3.org/1999/xhtml"===r[""]&&l.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+l+'" missed value!! "'+l+'" instead!!'),n.add(l,l,t));break;case 3:throw new Error("attribute value missed!!")}return s;case"":u=" ";default:if(u<=" ")switch(c){case 0:n.setTagName(e.slice(t,s)),c=6;break;case 1:a=e.slice(t,s),c=2;break;case 4:var l=e.slice(t,s).replace(/&#?\w+;/g,i);o.warning('attribute "'+l+'" missed quot(")!!'),n.add(a,l,t);case 5:c=6}else switch(c){case 2:n.tagName,"http://www.w3.org/1999/xhtml"===r[""]&&a.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),n.add(a,a,t),t=s,c=1;break;case 5:o.warning('attribute space is required"'+a+'"!!');case 6:c=1,t=s;break;case 3:c=4,t=s;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}s++}}function c(e,t,n){for(var r=e.tagName,i=null,o=e.length;o--;){var a=e[o],s=a.qName,c=a.value;if((f=s.indexOf(":"))>0)var u=a.prefix=s.slice(0,f),l=s.slice(f+1),d="xmlns"===u&&l;else l=s,u=null,d="xmlns"===s&&"";a.localName=l,!1!==d&&(null==i&&(i={},h(n,n={})),n[d]=i[d]=c,a.uri="http://www.w3.org/2000/xmlns/",t.startPrefixMapping(d,c))}for(o=e.length;o--;)(u=(a=e[o]).prefix)&&("xml"===u&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==u&&(a.uri=n[u||""]));var f;(f=r.indexOf(":"))>0?(u=e.prefix=r.slice(0,f),l=e.localName=r.slice(f+1)):(u=null,l=e.localName=r);var m=e.uri=n[u||""];if(t.startElement(m,l,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=i,!0;if(t.endElement(m,l,r),i)for(u in i)t.endPrefixMapping(u)}function u(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=e.indexOf("</"+n+">",t),a=e.substring(t+1,o);if(/[&<]/.test(a))return/^script$/i.test(n)?(i.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,r),i.characters(a,0,a.length),o)}return t+1}function l(e,t,n,r){var i=r[n];return null==i&&((i=e.lastIndexOf("</"+n+">"))<t&&(i=e.lastIndexOf("</"+n)),r[n]=i),i<t}function h(e,t){for(var n in e)t[n]=e[n]}function d(e,t,n,r){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(i=e.indexOf("--\x3e",t+4))>t?(n.comment(e,t+4,i-t-4),i+3):(r.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var i=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,i-t-9),n.endCDATA(),i+3}var o=function(e,t){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=t,i.exec(e);n=i.exec(e);)if(r.push(n),n[1])return r}(e,t),a=o.length;if(a>1&&/!doctype/i.test(o[0][0])){var s=o[1][0],c=a>3&&/^public$/i.test(o[2][0])&&o[3][0],u=a>4&&o[4][0],l=o[a-1];return n.startDTD(s,c&&c.replace(/^(['"])(.*?)\1$/,"$2"),u&&u.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),l.index+l[0].length}return-1}function f(e,t,n){var r=e.indexOf("?>",t);if(r){var i=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return i?(i[0].length,n.processingInstruction(i[1],i[2]),r+2):-1}return-1}function m(e){}function p(e,t){return e.__proto__=t,e}o.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),h(t,t={}),function(e,t,n,r,i){function o(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(i.error("entity not found:"+e),e)}function h(t){if(t>y){var n=e.substring(y,t).replace(/&#?\w+;/g,o);v&&p(y),r.characters(n,0,t-y),y=t}}function p(t,n){for(;t>=N&&(n=b.exec(e));)g=n.index,N=g+n[0].length,v.lineNumber++;v.columnNumber=t-g+1}for(var g=0,N=0,b=/.*(?:\r\n?|\n)|.*$/g,v=r.locator,w=[{currentNSMap:t}],E={},y=0;;){try{var x=e.indexOf("<",y);if(x<0){if(!e.substr(y).match(/^\s*$/)){var _=r.doc,D=_.createTextNode(e.substr(y));_.appendChild(D),r.currentElement=D}return}switch(x>y&&h(x),e.charAt(x+1)){case"/":var T=e.indexOf(">",x+3),C=e.substring(x+2,T),S=w.pop();T<0?(C=e.substring(x+2).replace(/[\s<].*/,""),i.error("end tag name: "+C+" is not complete:"+S.tagName),T=x+1+C.length):C.match(/\s</)&&(C=C.replace(/[\s<].*/,""),i.error("end tag name: "+C+" maybe not complete"),T=x+1+C.length);var A=S.localNSMap,I=S.tagName==C;if(I||S.tagName&&S.tagName.toLowerCase()==C.toLowerCase()){if(r.endElement(S.uri,S.localName,C),A)for(var R in A)r.endPrefixMapping(R);I||i.fatalError("end tag name: "+C+" is not match the current start tagName:"+S.tagName)}else w.push(S);T++;break;case"?":v&&p(x),T=f(e,x,r);break;case"!":v&&p(x),T=d(e,x,r,i);break;default:v&&p(x);var O=new m,z=w[w.length-1].currentNSMap,M=(T=s(e,x,O,z,o,i),O.length);if(!O.closed&&l(e,T,O.tagName,E)&&(O.closed=!0,n.nbsp||i.warning("unclosed xml attribute")),v&&M){for(var k=a(v,{}),U=0;U<M;U++){var $=O[U];p($.offset),$.locator=a(v,{})}r.locator=k,c(O,r,z)&&w.push(O),r.locator=v}else c(O,r,z)&&w.push(O);"http://www.w3.org/1999/xhtml"!==O.uri||O.closed?T++:T=u(e,T,O.tagName,o,r)}}catch(e){i.error("element parse error: "+e),T=-1}T>y?y=T:h(Math.max(x,y)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}},m.prototype={setTagName:function(e){if(!i.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},add:function(e,t,n){if(!i.test(e))throw new Error("invalid attribute:"+e);this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},p({},p.prototype)instanceof p||(p=function(e,t){function n(){}for(t in n.prototype=t,n=new n,e)n[t]=e[t];return n}),t.G=o}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}(()=>{"use strict";const e=(t=n(926))&&t.__esModule?t:{default:t};var t;const r=n(786),i=n(504),o=new e.default({maxSize:100});function a(e){return o.has(e)?Promise.resolve(o.get(e)):fetch(e,{credentials:"omit"}).then((t=>{if(t.ok)return t.blob();throw new Error(`could not fetch ${e}`)})).then(c).then((t=>(o.set(e,t),t))).catch((e=>console.error("worker fetch:",e)))}function s(e,t){let{siteUrl:n,proxyUrl:r}=t;return 0!==e.indexOf(n)&&"/"!==e[0]&&r?r+encodeURIComponent(e):e}function c(e){return new Promise((t=>{var n=new FileReader;n.onload=function(){t(this.result)},n.onerror=()=>console.error("failed to decode image"),n.readAsDataURL(e)}))}function u(e){return/^data:.+;base64/.test(e)}onerror=e=>{console.error(e)},onmessage=async e=>{const{id:t,url:n,options:o,assetUrl:c,siteUrl:l,proxyUrl:h}=e.data,d=await fetch(n),f=await d.text(),m=(new r.DOMParser).parseFromString(f.replace(/(<\/[^>]+>)/g,"\n$1"),"text/html"),p={assetUrl:c,siteUrl:l,proxyUrl:h};!function(e){const t=[{type:"className",value:"brz-ed-collapsible"},{type:"className",value:"brz-ed-draggable",canDelete:e=>!(0,i.hasClassName)(e,"brz-ed-draggable__padding")},{type:"className",value:"brz-ed-border__inner"},{type:"className",value:"brz-ed-border__button"},{type:"className",value:"brz-ed-container-plus"},{type:"className",value:"brz-ed-container-trigger"},{type:"className",value:"brz-ed-toolbar"},{type:"className",value:"brz-ed-row__toolbar"},{type:"className",value:"brz-ed-column__toolbar"},{type:"className",value:"brz-ed-wrapper__toolbar"},{type:"className",value:"brz-form__select-list"},{type:"className",value:"brz-popup2__button-go-to-editor"},{type:"className",value:"brz-ed-icon-svg"},{type:"className",value:"brz-ed-slider__spinner"},{type:"className",value:"brz-ed-portal__loading"},{type:"tagName",value:"script"}];t.forEach((t=>{let n,{type:r,value:o,canDelete:a}=t;switch(r){case"className":n=(0,i.getElementsByClassName)(e,o);break;case"tagName":n=(0,i.getElementsByTagName)(e,o);break;default:throw new Error(`unsupported selector type ${r}`)}n.forEach((e=>{(void 0===a||a(e))&&(0,i.removeNode)(e)}))}))}(m),function(e){(0,i.getElementsByClassName)(e,"brz-text-mask").forEach((e=>{(0,i.css)(e,{background:"transparent",color:"inherit !important","-webkit-text-fill-color":"unset"})}))}(m),function(e){(0,i.getElementsByTagName)(e,"picture").forEach((e=>{(0,i.getElementsByTagName)(e,"source").forEach(i.removeNode),(0,i.getElementsByTagName)(e,"img").forEach((e=>e.removeAttribute("srcset")))}))}(m),await async function(e,t){const n=[];return(0,i.getElementsByTagName)(e,"img").forEach((async e=>{const r=e.getAttribute("src");r&&!u(r)&&n.push(a(s(r,t)).then((t=>(e.setAttribute("src",t),t))))})),(0,i.getElementsByAttribute)(e,"style").forEach((async e=>{const r=e.getAttribute("style");if(!r.includes("url"))return;const i=/url\(["']?([^#"')]+)["']?\)/,o=i.exec(r),[,c]=o||[];c&&!u(c)&&n.push(a(s(c,t)).then((t=>(e.setAttribute("style",r.replace(i,`url("${t}")`)),t))))})),Promise.all(n)}(m,p),function(e){(0,i.getElementsByClassName)(e,"brz-bg-image-parallax").forEach((e=>(0,i.css)(e,{transform:"none",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"})))}(m),await function(e,t){const n=[],r=["soundcloud","map","bg-map","video","bg-video"];return(0,i.getElementsByTagName)(e,"iframe").forEach((e=>{const o=(0,i.css)(e);if("none"===o.display)return void(0,i.removeNode)(e);const c=["brz-map","brz-bg-map","brz-video","brz-bg-video","brz-soundcloud"];for(let u of c){if(!(0,i.closestByClassName)(e,u))continue;const c=u.replace("brz-",""),l=r.includes(c)?a(s(`${t.assetUrl}/editor/img/screenshot-placeholder-${c}.png`,t)):Promise.resolve();l.then((t=>{const n={width:e.getAttribute("width")||o.width,height:e.getAttribute("height")||o.height,position:o.position,top:o.top,bottom:o.bottom,left:o.left,right:o.right,margin:o.margin,...t?{"background-repeat":"no-repeat","background-position":"center center","background-size":"cover","background-image":`url(${t})`}:{"background-color":"#373e48"}},r=Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return e+`${n}:${r};`}),""),i=e.ownerDocument.createElement("div");i.setAttribute("style",r),e.parentNode.replaceChild(i,e)})),n.push(l);break}})),Promise.all(n)}(m,p),function(e){(0,i.getElementsByClassName)(e,"brz-ed-draggable__padding").forEach((e=>{(0,i.hasClassName)(e,"brz-ed-draggable__padding--active")&&((0,i.css)(e,"background","transparent"),(0,i.children)(e).forEach((e=>(0,i.removeNode)(e))))}))}(m),function(e){["id","class","data-block-id","data-href"].forEach((t=>{(0,i.getElementsByAttribute)(e,t).forEach((e=>e.removeAttribute(t)))}))}(m);const g=function(e,t){const{width:n,height:r}=t;return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="${n}" height="${r}">${`<foreignObject x="0" y="0" width="100%" height="100%" style="background-color: white;">${e}</foreignObject>`}</svg>`)}((new r.XMLSerializer).serializeToString(m),o),N=g.replace(/xmlns%3Axlink%3D%22%22/g,""),b=new Blob([N],{type:"text/plain"}),v=URL.createObjectURL(b);postMessage({id:t,url:v})}})()})();