diff --git a/build/has-click-to-share.asset.php b/build/has-click-to-share.asset.php index 9d6dd74..63ee562 100644 --- a/build/has-click-to-share.asset.php +++ b/build/has-click-to-share.asset.php @@ -1 +1 @@ - array('react', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '218cc8ffaf44f794c30a'); + array('react', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '3e1eb88b9d5efb8f9137'); diff --git a/build/has-click-to-share.js b/build/has-click-to-share.js index a270756..f7ce477 100644 --- a/build/has-click-to-share.js +++ b/build/has-click-to-share.js @@ -1,4 +1,4 @@ -(()=>{var e={184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t1?n-1:0),a=1;a/gm),M=l(/\${[\w\W]*}/gm),B=l(/^data-[\-\w.\u00B7-\uFFFF]/),L=l(/^aria-[\-\w]+$/),D=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=l(/^(?:\w+script|data):/i),V=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=l(/^html$/i);var q=Object.freeze({__proto__:null,MUSTACHE_EXPR:P,ERB_EXPR:j,TMPLIT_EXPR:M,DATA_ATTR:B,ARIA_ATTR:L,IS_ALLOWED_URI:D,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:V,DOCTYPE_NAME:G});const Z=()=>"undefined"==typeof window?null:window;return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z();const r=e=>t(e);if(r.version="3.0.2",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;const a=n.document;let{document:l}=n;const{DocumentFragment:i,HTMLTemplateElement:c,Node:s,Element:k,NodeFilter:C,NamedNodeMap:P=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:j,DOMParser:M,trustedTypes:B}=n,L=k.prototype,W=E(L,"cloneNode"),V=E(L,"nextSibling"),$=E(L,"childNodes"),Q=E(L,"parentNode");if("function"==typeof c){const e=l.createElement("template");e.content&&e.content.ownerDocument&&(l=e.content.ownerDocument)}const J=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));const a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(B,a),Y=J?J.createHTML(""):"",{implementation:K,createNodeIterator:X,createDocumentFragment:ee,getElementsByTagName:te}=l,{importNode:ne}=a;let re={};r.isSupported="function"==typeof e&&"function"==typeof Q&&K&&void 0!==K.createHTMLDocument;const{MUSTACHE_EXPR:ae,ERB_EXPR:oe,TMPLIT_EXPR:le,DATA_ATTR:ie,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:se,ATTR_WHITESPACE:ue}=q;let{IS_ALLOWED_URI:ge}=q,de=null;const fe=x({},[..._,...T,...A,...R,...O]);let he=null;const me=x({},[...z,...U,...H,...I]);let pe=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,ye=null,ve=!0,Se=!0,ke=!1,Ce=!0,xe=!1,we=!1,Ee=!1,_e=!1,Te=!1,Ae=!1,Fe=!1,Re=!0,Ne=!1,Oe=!0,ze=!1,Ue={},He=null;const Ie=x({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Pe=null;const je=x({},["audio","video","img","source","image","track"]);let Me=null;const Be=x({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Le="http://www.w3.org/1998/Math/MathML",De="http://www.w3.org/2000/svg",We="http://www.w3.org/1999/xhtml";let Ve=We,Ge=!1,qe=null;const Ze=x({},[Le,De,We],h);let $e;const Qe=["application/xhtml+xml","text/html"];let Je,Ye=null;const Ke=l.createElement("form"),Xe=function(e){return e instanceof RegExp||e instanceof Function},et=function(e){Ye&&Ye===e||(e&&"object"==typeof e||(e={}),e=w(e),$e=$e=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Je="application/xhtml+xml"===$e?h:f,de="ALLOWED_TAGS"in e?x({},e.ALLOWED_TAGS,Je):fe,he="ALLOWED_ATTR"in e?x({},e.ALLOWED_ATTR,Je):me,qe="ALLOWED_NAMESPACES"in e?x({},e.ALLOWED_NAMESPACES,h):Ze,Me="ADD_URI_SAFE_ATTR"in e?x(w(Be),e.ADD_URI_SAFE_ATTR,Je):Be,Pe="ADD_DATA_URI_TAGS"in e?x(w(je),e.ADD_DATA_URI_TAGS,Je):je,He="FORBID_CONTENTS"in e?x({},e.FORBID_CONTENTS,Je):Ie,be="FORBID_TAGS"in e?x({},e.FORBID_TAGS,Je):{},ye="FORBID_ATTR"in e?x({},e.FORBID_ATTR,Je):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,ve=!1!==e.ALLOW_ARIA_ATTR,Se=!1!==e.ALLOW_DATA_ATTR,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,xe=e.SAFE_FOR_TEMPLATES||!1,we=e.WHOLE_DOCUMENT||!1,Te=e.RETURN_DOM||!1,Ae=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,_e=e.FORCE_BODY||!1,Re=!1!==e.SANITIZE_DOM,Ne=e.SANITIZE_NAMED_PROPS||!1,Oe=!1!==e.KEEP_CONTENT,ze=e.IN_PLACE||!1,ge=e.ALLOWED_URI_REGEXP||D,Ve=e.NAMESPACE||We,pe=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Xe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(pe.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Xe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(pe.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(pe.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xe&&(Se=!1),Ae&&(Te=!0),Ue&&(de=x({},[...O]),he=[],!0===Ue.html&&(x(de,_),x(he,z)),!0===Ue.svg&&(x(de,T),x(he,U),x(he,I)),!0===Ue.svgFilters&&(x(de,A),x(he,U),x(he,I)),!0===Ue.mathMl&&(x(de,R),x(he,H),x(he,I))),e.ADD_TAGS&&(de===fe&&(de=w(de)),x(de,e.ADD_TAGS,Je)),e.ADD_ATTR&&(he===me&&(he=w(he)),x(he,e.ADD_ATTR,Je)),e.ADD_URI_SAFE_ATTR&&x(Me,e.ADD_URI_SAFE_ATTR,Je),e.FORBID_CONTENTS&&(He===Ie&&(He=w(He)),x(He,e.FORBID_CONTENTS,Je)),Oe&&(de["#text"]=!0),we&&x(de,["html","head","body"]),de.table&&(x(de,["tbody"]),delete be.tbody),o&&o(e),Ye=e)},tt=x({},["mi","mo","mn","ms","mtext"]),nt=x({},["foreignobject","desc","title","annotation-xml"]),rt=x({},["title","style","font","a","script"]),at=x({},T);x(at,A),x(at,F);const ot=x({},R);x(ot,N);const lt=function(e){d(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},it=function(e,t){try{d(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!he[e])if(Te||Ae)try{lt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ct=function(e){let t,n;if(_e)e=""+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===$e&&Ve===We&&(e=''+e+"");const r=J?J.createHTML(e):e;if(Ve===We)try{t=(new M).parseFromString(r,$e)}catch(e){}if(!t||!t.documentElement){t=K.createDocument(Ve,"template",null);try{t.documentElement.innerHTML=Ge?Y:r}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(l.createTextNode(n),a.childNodes[0]||null),Ve===We?te.call(t,we?"html":"body")[0]:we?t.documentElement:a},st=function(e){return X.call(e.ownerDocument||e,e,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT,null,!1)},ut=function(e){return"object"==typeof s?e instanceof s:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},gt=function(e,t,n){re[e]&&u(re[e],(e=>{e.call(r,t,n,Ye)}))},dt=function(e){let t;if(gt("beforeSanitizeElements",e,null),(n=e)instanceof j&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof P)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return lt(e),!0;var n;const a=Je(e.nodeName);if(gt("uponSanitizeElement",e,{tagName:a,allowedTags:de}),e.hasChildNodes()&&!ut(e.firstElementChild)&&(!ut(e.content)||!ut(e.content.firstElementChild))&&v(/<[/\w]/g,e.innerHTML)&&v(/<[/\w]/g,e.textContent))return lt(e),!0;if(!de[a]||be[a]){if(!be[a]&&ht(a)){if(pe.tagNameCheck instanceof RegExp&&v(pe.tagNameCheck,a))return!1;if(pe.tagNameCheck instanceof Function&&pe.tagNameCheck(a))return!1}if(Oe&&!He[a]){const t=Q(e)||e.parentNode,n=$(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r)t.insertBefore(W(n[r],!0),V(e))}return lt(e),!0}return e instanceof k&&!function(e){let t=Q(e);t&&t.tagName||(t={namespaceURI:Ve,tagName:"template"});const n=f(e.tagName),r=f(t.tagName);return!!qe[e.namespaceURI]&&(e.namespaceURI===De?t.namespaceURI===We?"svg"===n:t.namespaceURI===Le?"svg"===n&&("annotation-xml"===r||tt[r]):Boolean(at[n]):e.namespaceURI===Le?t.namespaceURI===We?"math"===n:t.namespaceURI===De?"math"===n&&nt[r]:Boolean(ot[n]):e.namespaceURI===We?!(t.namespaceURI===De&&!nt[r])&&!(t.namespaceURI===Le&&!tt[r])&&!ot[n]&&(rt[n]||!at[n]):!("application/xhtml+xml"!==$e||!qe[e.namespaceURI]))}(e)?(lt(e),!0):"noscript"!==a&&"noembed"!==a||!v(/<\/no(script|embed)/i,e.innerHTML)?(xe&&3===e.nodeType&&(t=e.textContent,t=p(t,ae," "),t=p(t,oe," "),t=p(t,le," "),e.textContent!==t&&(d(r.removed,{element:e.cloneNode()}),e.textContent=t)),gt("afterSanitizeElements",e,null),!1):(lt(e),!0)},ft=function(e,t,n){if(Re&&("id"===t||"name"===t)&&(n in l||n in Ke))return!1;if(Se&&!ye[t]&&v(ie,t));else if(ve&&v(ce,t));else if(!he[t]||ye[t]){if(!(ht(e)&&(pe.tagNameCheck instanceof RegExp&&v(pe.tagNameCheck,e)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(e))&&(pe.attributeNameCheck instanceof RegExp&&v(pe.attributeNameCheck,t)||pe.attributeNameCheck instanceof Function&&pe.attributeNameCheck(t))||"is"===t&&pe.allowCustomizedBuiltInElements&&(pe.tagNameCheck instanceof RegExp&&v(pe.tagNameCheck,n)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(n))))return!1}else if(Me[t]);else if(v(ge,p(n,ue,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(n,"data:")||!Pe[e])if(ke&&!v(se,p(n,ue,"")));else if(n)return!1;return!0},ht=function(e){return e.indexOf("-")>0},mt=function(e){let t,n,a,o;gt("beforeSanitizeAttributes",e,null);const{attributes:l}=e;if(!l)return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:he};for(o=l.length;o--;){t=l[o];const{name:c,namespaceURI:s}=t;if(n="value"===c?t.value:y(t.value),a=Je(c),i.attrName=a,i.attrValue=n,i.keepAttr=!0,i.forceKeepAttr=void 0,gt("uponSanitizeAttribute",e,i),n=i.attrValue,i.forceKeepAttr)continue;if(it(c,e),!i.keepAttr)continue;if(!Ce&&v(/\/>/i,n)){it(c,e);continue}xe&&(n=p(n,ae," "),n=p(n,oe," "),n=p(n,le," "));const u=Je(e.nodeName);if(ft(u,a,n)){if(!Ne||"id"!==a&&"name"!==a||(it(c,e),n="user-content-"+n),J&&"object"==typeof B&&"function"==typeof B.getAttributeType)if(s);else switch(B.getAttributeType(u,a)){case"TrustedHTML":n=J.createHTML(n);break;case"TrustedScriptURL":n=J.createScriptURL(n)}try{s?e.setAttributeNS(s,c,n):e.setAttribute(c,n),g(r.removed)}catch(e){}}}gt("afterSanitizeAttributes",e,null)},pt=function e(t){let n;const r=st(t);for(gt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)gt("uponSanitizeShadowNode",n,null),dt(n)||(n.content instanceof i&&e(n.content),mt(n));gt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t,n,o,l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ge=!e,Ge&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ut(e)){if("function"!=typeof e.toString)throw S("toString is not a function");if("string"!=typeof(e=e.toString()))throw S("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Ee||et(c),r.removed=[],"string"==typeof e&&(ze=!1),ze){if(e.nodeName){const t=Je(e.nodeName);if(!de[t]||be[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)t=ct("\x3c!----\x3e"),n=t.ownerDocument.importNode(e,!0),1===n.nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?t=n:t.appendChild(n);else{if(!Te&&!xe&&!we&&-1===e.indexOf("<"))return J&&Fe?J.createHTML(e):e;if(t=ct(e),!t)return Te?null:Fe?Y:""}t&&_e&<(t.firstChild);const u=st(ze?e:t);for(;o=u.nextNode();)dt(o)||(o.content instanceof i&&pt(o.content),mt(o));if(ze)return e;if(Te){if(Ae)for(l=ee.call(t.ownerDocument);t.firstChild;)l.appendChild(t.firstChild);else l=t;return(he.shadowroot||he.shadowrootmod)&&(l=ne.call(a,l,!0)),l}let g=we?t.outerHTML:t.innerHTML;return we&&de["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&v(G,t.ownerDocument.doctype.name)&&(g="\n"+g),xe&&(g=p(g,ae," "),g=p(g,oe," "),g=p(g,le," ")),J&&Fe?J.createHTML(g):g},r.setConfig=function(e){et(e),Ee=!0},r.clearConfig=function(){Ye=null,Ee=!1},r.isValidAttribute=function(e,t,n){Ye||et({});const r=Je(e),a=Je(t);return ft(r,a,n)},r.addHook=function(e,t){"function"==typeof t&&(re[e]=re[e]||[],d(re[e],t))},r.removeHook=function(e){if(re[e])return g(re[e])},r.removeHooks=function(e){re[e]&&(re[e]=[])},r.removeAllHooks=function(){re={}},r}()}()},685:e=>{"use strict";var t=function(e){return parseInt(e,16)};e.exports=function(e,n){var r,a,o=function(e){return"#"===e.charAt(0)?e.slice(1):e}(e),l=function(e){var n=e.g,r=e.b,a=e.a;return{r:t(e.r),g:t(n),b:t(r),a:+(t(a)/255).toFixed(2)}}({r:(a=3===(r=o).length||4===r.length)?"".concat(r.slice(0,1)).concat(r.slice(0,1)):r.slice(0,2),g:a?"".concat(r.slice(1,2)).concat(r.slice(1,2)):r.slice(2,4),b:a?"".concat(r.slice(2,3)).concat(r.slice(2,3)):r.slice(4,6),a:(a?"".concat(r.slice(3,4)).concat(r.slice(3,4)):r.slice(6,8))||"ff"});return function(e,t){var n,r=e.r,a=e.g,o=e.b,l=e.a,i=(n=t,!isNaN(parseFloat(n))&&isFinite(n)?t:l);return"rgba(".concat(r,", ").concat(a,", ").concat(o,", ").concat(i,")")}(l,n)}},703:(e,t,n)=>{"use strict";var r=n(414);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,l){if(l!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","title":"Click to Share","apiVersion":2,"name":"has/click-to-share","category":"widgets","icon":"","description":"An easy-to-use Click to Share block.","keywords":["click","social","tweet","better","twitter","facebook","share","quote","blockquote"],"version":"1.0.0","textdomain":"highlight-and-share","attributes":{"uniqueId":{"type":"string","default":""},"showClickToShare":{"type":"number","default":true},"showIcon":{"type":"number","default":true},"iconSize":{"type":"number","default":-1},"iconSizeResponsive":{"type":"object","default":{"desktop":-1,"tablet":-1,"mobile":-1}},"customShareText":{"type":"string","default":""},"shareText":{"type":"string","default":""},"shareTextInner":{"type":"array","default":[]},"backgroundColor":{"type":"string","default":"#FFFFFF"},"backgroundColorHover":{"type":"string","default":"#FFFFFF"},"backgroundColorSync":{"type":"string","default":"normal"},"backgroundType":{"type":"string","default":"solid"},"backgroundGradient":{"type":"string","default":""},"backgroundGradientHover":{"type":"string","default":""},"backgroundGradientSync":{"type":"string","default":"normal"},"backgroundImage":{"type":"object","default":{"url":"","id":0,"backgroundColor":"#000000","backgroundSize":"cover","backgroundPosition":"center center","backgroundRepeat":"no-repeat","backgroundOpacity":1,"backgroundOpacityHover":1}},"icon":{"type":"string","default":""},"iconColor":{"type":"string","default":"#000000"},"iconColorHover":{"type":"string","default":"#000000"},"iconColorSync":{"type":"string","default":"normal"},"textColor":{"type":"string","default":"#000000"},"textColorHover":{"type":"string","default":"#000000"},"textColorSync":{"type":"string","default":"normal"},"shareTextColor":{"type":"string","default":"#000000"},"shareTextColorHover":{"type":"string","default":"#000000"},"shareTextColorSync":{"type":"string","default":"normal"},"fontSize":{"type":"integer","default":24},"clickShareFontSize":{"type":"integer","default":24},"clickText":{"type":"string","default":"Click to Share"},"padding":{"type":"integer","default":-1},"border":{"type":"integer","default":-1},"borderRadius":{"type":"integer","default":0},"borderColor":{"type":"string","default":"#000000"},"borderColorHover":{"type":"string","default":"#000000"},"borderColorSync":{"type":"string","default":"normal"},"fontWeight":{"type":"string","default":"400"},"maxWidth":{"type":"string","default":"-1"},"maxWidthUnit":{"type":"string","default":"-1"},"maximumWidth":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"850","unit":"px"}}},"showClickToShareText":{"type":"object","default":{"mobile":true,"tablet":true,"desktop":true}},"showClickToShareIcon":{"type":"object","default":{"mobile":true,"tablet":true,"desktop":true}},"align":{"type":"string","default":"center"},"alignment":{"type":"string","default":"center"},"marginLeft":{"type":"integer","default":0},"marginRight":{"type":"integer","default":0},"marginBottom":{"type":"integer","default":0},"marginTop":{"type":"integer","default":0},"paddingSize":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"tablet":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"desktop":{"top":"20","right":"20","bottom":"20","left":"20","unit":"px","unitSync":true}}},"marginSize":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"tablet":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"desktop":{"top":"20","right":"","bottom":"20","left":"","unit":"px","unitSync":true}}},"borderWidth":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"tablet":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"desktop":{"top":"1","right":"1","bottom":"1","left":"1","unit":"px","unitSync":true}}},"borderRadiusSize":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"tablet":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"desktop":{"top":"","right":"","bottom":"","left":"","unit":"px","unitSync":true}}},"typographyQuote":{"type":"object","default":{"mobile":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontFallback":"","fontType":"web"},"tablet":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontFallback":"","fontType":"web"},"desktop":{"fontFamily":"Arial","fontFamilySlug":"arial","fontSize":"24","fontSizeUnit":"px","fontWeight":"normal","lineHeight":"1.3","lineHeightUnit":"em","textTransform":"none","letterSpacing":"0","letterSpacingUnit":"px","fontFallback":"serif","fontType":"web"}}},"typographyShareText":{"type":"object","default":{"mobile":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontType":"web","fontFallback":"sans-serif"},"tablet":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontType":"web","fontFallback":"sans-serif"},"desktop":{"fontFamily":"Arial","fontFamilySlug":"arial","fontSize":"24","fontSizeUnit":"px","fontWeight":"normal","lineHeight":"1.3","lineHeightUnit":"em","textTransform":"none","letterSpacing":"0","letterSpacingUnit":"px","fontType":"web","fontFallback":"sans-serif"}}}},"supports":{"anchor":true,"align":true,"className":true},"example":{"attributes":{"backgroundColor":"#8364E8","backgroundColorHover":"#714EE5","backgroundType":"solid","iconColor":"#FFFFFF","iconColorHover":"#FFFFFF","textColor":"#FFFFFF","textColorHover":"#FFFFFF","shareTextColor":"#FFFFFF","shareTextColorHover":"#FFFFFF","clickText":"Click to share","paddingSize":{"mobile":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"tablet":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"desktop":{"top":"20","right":"20","bottom":"20","left":"20","unit":"px","unitSync":true}},"marginSize":{"mobile":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"tablet":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"desktop":{"top":"20","right":"","bottom":"20","left":"","unit":"px","unitSync":true}},"borderWidth":{"mobile":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"tablet":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"desktop":{"top":"1","right":"1","bottom":"1","left":"1","unit":"px","unitSync":true}},"borderRadiusSize":{"mobile":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"tablet":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"desktop":{"top":"4","right":"4","bottom":"4","left":"4","unit":"px","unitSync":true}},"typographyQuote":{"mobile":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontFallback":"","fontType":"web"},"tablet":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontFallback":"","fontType":"web"},"desktop":{"fontFamily":"Arial","fontFamilySlug":"arial","fontSize":"24","fontSizeUnit":"px","fontWeight":"normal","lineHeight":"1.3","lineHeightUnit":"em","textTransform":"none","letterSpacing":"0","letterSpacingUnit":"px","fontFallback":"serif","fontType":"web"}},"typographyShareText":{"mobile":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontType":"web","fontFallback":"sans-serif"},"tablet":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontType":"web","fontFallback":"sans-serif"},"desktop":{"fontFamily":"Arial","fontFamilySlug":"arial","fontSize":"24","fontSizeUnit":"px","fontWeight":"normal","lineHeight":"1.3","lineHeightUnit":"em","textTransform":"none","letterSpacing":"0","letterSpacingUnit":"px","fontType":"web","fontFallback":"sans-serif"}}},"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit."}}]},"editorScript":"has-click-to-share","editorStyle":"has-style-admin-css","style":"has-style-frontend-css"}');var t=n(184),r=n.n(t);const a=window.React;var o=n.n(a);const l=o().createContext();var i=n(685),c=n.n(i);const s=window.wp.i18n,u=window.wp.components;function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,l,i=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(s)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n{var e={184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t1?n-1:0),a=1;a/gm),M=l(/\${[\w\W]*}/gm),B=l(/^data-[\-\w.\u00B7-\uFFFF]/),L=l(/^aria-[\-\w]+$/),D=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=l(/^(?:\w+script|data):/i),V=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=l(/^html$/i);var q=Object.freeze({__proto__:null,MUSTACHE_EXPR:P,ERB_EXPR:j,TMPLIT_EXPR:M,DATA_ATTR:B,ARIA_ATTR:L,IS_ALLOWED_URI:D,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:V,DOCTYPE_NAME:G});const Z=()=>"undefined"==typeof window?null:window;return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z();const r=e=>t(e);if(r.version="3.0.2",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;const a=n.document;let{document:l}=n;const{DocumentFragment:i,HTMLTemplateElement:c,Node:s,Element:k,NodeFilter:C,NamedNodeMap:P=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:j,DOMParser:M,trustedTypes:B}=n,L=k.prototype,W=E(L,"cloneNode"),V=E(L,"nextSibling"),$=E(L,"childNodes"),Q=E(L,"parentNode");if("function"==typeof c){const e=l.createElement("template");e.content&&e.content.ownerDocument&&(l=e.content.ownerDocument)}const J=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));const a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(B,a),Y=J?J.createHTML(""):"",{implementation:K,createNodeIterator:X,createDocumentFragment:ee,getElementsByTagName:te}=l,{importNode:ne}=a;let re={};r.isSupported="function"==typeof e&&"function"==typeof Q&&K&&void 0!==K.createHTMLDocument;const{MUSTACHE_EXPR:ae,ERB_EXPR:oe,TMPLIT_EXPR:le,DATA_ATTR:ie,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:se,ATTR_WHITESPACE:ue}=q;let{IS_ALLOWED_URI:ge}=q,de=null;const fe=w({},[..._,...T,...A,...R,...O]);let he=null;const me=w({},[...z,...U,...H,...I]);let pe=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,ye=null,ve=!0,Se=!0,ke=!1,Ce=!0,we=!1,xe=!1,Ee=!1,_e=!1,Te=!1,Ae=!1,Fe=!1,Re=!0,Ne=!1,Oe=!0,ze=!1,Ue={},He=null;const Ie=w({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Pe=null;const je=w({},["audio","video","img","source","image","track"]);let Me=null;const Be=w({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Le="http://www.w3.org/1998/Math/MathML",De="http://www.w3.org/2000/svg",We="http://www.w3.org/1999/xhtml";let Ve=We,Ge=!1,qe=null;const Ze=w({},[Le,De,We],h);let $e;const Qe=["application/xhtml+xml","text/html"];let Je,Ye=null;const Ke=l.createElement("form"),Xe=function(e){return e instanceof RegExp||e instanceof Function},et=function(e){Ye&&Ye===e||(e&&"object"==typeof e||(e={}),e=x(e),$e=$e=-1===Qe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Je="application/xhtml+xml"===$e?h:f,de="ALLOWED_TAGS"in e?w({},e.ALLOWED_TAGS,Je):fe,he="ALLOWED_ATTR"in e?w({},e.ALLOWED_ATTR,Je):me,qe="ALLOWED_NAMESPACES"in e?w({},e.ALLOWED_NAMESPACES,h):Ze,Me="ADD_URI_SAFE_ATTR"in e?w(x(Be),e.ADD_URI_SAFE_ATTR,Je):Be,Pe="ADD_DATA_URI_TAGS"in e?w(x(je),e.ADD_DATA_URI_TAGS,Je):je,He="FORBID_CONTENTS"in e?w({},e.FORBID_CONTENTS,Je):Ie,be="FORBID_TAGS"in e?w({},e.FORBID_TAGS,Je):{},ye="FORBID_ATTR"in e?w({},e.FORBID_ATTR,Je):{},Ue="USE_PROFILES"in e&&e.USE_PROFILES,ve=!1!==e.ALLOW_ARIA_ATTR,Se=!1!==e.ALLOW_DATA_ATTR,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,we=e.SAFE_FOR_TEMPLATES||!1,xe=e.WHOLE_DOCUMENT||!1,Te=e.RETURN_DOM||!1,Ae=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,_e=e.FORCE_BODY||!1,Re=!1!==e.SANITIZE_DOM,Ne=e.SANITIZE_NAMED_PROPS||!1,Oe=!1!==e.KEEP_CONTENT,ze=e.IN_PLACE||!1,ge=e.ALLOWED_URI_REGEXP||D,Ve=e.NAMESPACE||We,pe=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Xe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(pe.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Xe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(pe.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(pe.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),we&&(Se=!1),Ae&&(Te=!0),Ue&&(de=w({},[...O]),he=[],!0===Ue.html&&(w(de,_),w(he,z)),!0===Ue.svg&&(w(de,T),w(he,U),w(he,I)),!0===Ue.svgFilters&&(w(de,A),w(he,U),w(he,I)),!0===Ue.mathMl&&(w(de,R),w(he,H),w(he,I))),e.ADD_TAGS&&(de===fe&&(de=x(de)),w(de,e.ADD_TAGS,Je)),e.ADD_ATTR&&(he===me&&(he=x(he)),w(he,e.ADD_ATTR,Je)),e.ADD_URI_SAFE_ATTR&&w(Me,e.ADD_URI_SAFE_ATTR,Je),e.FORBID_CONTENTS&&(He===Ie&&(He=x(He)),w(He,e.FORBID_CONTENTS,Je)),Oe&&(de["#text"]=!0),xe&&w(de,["html","head","body"]),de.table&&(w(de,["tbody"]),delete be.tbody),o&&o(e),Ye=e)},tt=w({},["mi","mo","mn","ms","mtext"]),nt=w({},["foreignobject","desc","title","annotation-xml"]),rt=w({},["title","style","font","a","script"]),at=w({},T);w(at,A),w(at,F);const ot=w({},R);w(ot,N);const lt=function(e){d(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},it=function(e,t){try{d(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!he[e])if(Te||Ae)try{lt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ct=function(e){let t,n;if(_e)e=""+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===$e&&Ve===We&&(e=''+e+"");const r=J?J.createHTML(e):e;if(Ve===We)try{t=(new M).parseFromString(r,$e)}catch(e){}if(!t||!t.documentElement){t=K.createDocument(Ve,"template",null);try{t.documentElement.innerHTML=Ge?Y:r}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(l.createTextNode(n),a.childNodes[0]||null),Ve===We?te.call(t,xe?"html":"body")[0]:xe?t.documentElement:a},st=function(e){return X.call(e.ownerDocument||e,e,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT,null,!1)},ut=function(e){return"object"==typeof s?e instanceof s:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},gt=function(e,t,n){re[e]&&u(re[e],(e=>{e.call(r,t,n,Ye)}))},dt=function(e){let t;if(gt("beforeSanitizeElements",e,null),(n=e)instanceof j&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof P)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return lt(e),!0;var n;const a=Je(e.nodeName);if(gt("uponSanitizeElement",e,{tagName:a,allowedTags:de}),e.hasChildNodes()&&!ut(e.firstElementChild)&&(!ut(e.content)||!ut(e.content.firstElementChild))&&v(/<[/\w]/g,e.innerHTML)&&v(/<[/\w]/g,e.textContent))return lt(e),!0;if(!de[a]||be[a]){if(!be[a]&&ht(a)){if(pe.tagNameCheck instanceof RegExp&&v(pe.tagNameCheck,a))return!1;if(pe.tagNameCheck instanceof Function&&pe.tagNameCheck(a))return!1}if(Oe&&!He[a]){const t=Q(e)||e.parentNode,n=$(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r)t.insertBefore(W(n[r],!0),V(e))}return lt(e),!0}return e instanceof k&&!function(e){let t=Q(e);t&&t.tagName||(t={namespaceURI:Ve,tagName:"template"});const n=f(e.tagName),r=f(t.tagName);return!!qe[e.namespaceURI]&&(e.namespaceURI===De?t.namespaceURI===We?"svg"===n:t.namespaceURI===Le?"svg"===n&&("annotation-xml"===r||tt[r]):Boolean(at[n]):e.namespaceURI===Le?t.namespaceURI===We?"math"===n:t.namespaceURI===De?"math"===n&&nt[r]:Boolean(ot[n]):e.namespaceURI===We?!(t.namespaceURI===De&&!nt[r])&&!(t.namespaceURI===Le&&!tt[r])&&!ot[n]&&(rt[n]||!at[n]):!("application/xhtml+xml"!==$e||!qe[e.namespaceURI]))}(e)?(lt(e),!0):"noscript"!==a&&"noembed"!==a||!v(/<\/no(script|embed)/i,e.innerHTML)?(we&&3===e.nodeType&&(t=e.textContent,t=p(t,ae," "),t=p(t,oe," "),t=p(t,le," "),e.textContent!==t&&(d(r.removed,{element:e.cloneNode()}),e.textContent=t)),gt("afterSanitizeElements",e,null),!1):(lt(e),!0)},ft=function(e,t,n){if(Re&&("id"===t||"name"===t)&&(n in l||n in Ke))return!1;if(Se&&!ye[t]&&v(ie,t));else if(ve&&v(ce,t));else if(!he[t]||ye[t]){if(!(ht(e)&&(pe.tagNameCheck instanceof RegExp&&v(pe.tagNameCheck,e)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(e))&&(pe.attributeNameCheck instanceof RegExp&&v(pe.attributeNameCheck,t)||pe.attributeNameCheck instanceof Function&&pe.attributeNameCheck(t))||"is"===t&&pe.allowCustomizedBuiltInElements&&(pe.tagNameCheck instanceof RegExp&&v(pe.tagNameCheck,n)||pe.tagNameCheck instanceof Function&&pe.tagNameCheck(n))))return!1}else if(Me[t]);else if(v(ge,p(n,ue,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(n,"data:")||!Pe[e])if(ke&&!v(se,p(n,ue,"")));else if(n)return!1;return!0},ht=function(e){return e.indexOf("-")>0},mt=function(e){let t,n,a,o;gt("beforeSanitizeAttributes",e,null);const{attributes:l}=e;if(!l)return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:he};for(o=l.length;o--;){t=l[o];const{name:c,namespaceURI:s}=t;if(n="value"===c?t.value:y(t.value),a=Je(c),i.attrName=a,i.attrValue=n,i.keepAttr=!0,i.forceKeepAttr=void 0,gt("uponSanitizeAttribute",e,i),n=i.attrValue,i.forceKeepAttr)continue;if(it(c,e),!i.keepAttr)continue;if(!Ce&&v(/\/>/i,n)){it(c,e);continue}we&&(n=p(n,ae," "),n=p(n,oe," "),n=p(n,le," "));const u=Je(e.nodeName);if(ft(u,a,n)){if(!Ne||"id"!==a&&"name"!==a||(it(c,e),n="user-content-"+n),J&&"object"==typeof B&&"function"==typeof B.getAttributeType)if(s);else switch(B.getAttributeType(u,a)){case"TrustedHTML":n=J.createHTML(n);break;case"TrustedScriptURL":n=J.createScriptURL(n)}try{s?e.setAttributeNS(s,c,n):e.setAttribute(c,n),g(r.removed)}catch(e){}}}gt("afterSanitizeAttributes",e,null)},pt=function e(t){let n;const r=st(t);for(gt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)gt("uponSanitizeShadowNode",n,null),dt(n)||(n.content instanceof i&&e(n.content),mt(n));gt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t,n,o,l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ge=!e,Ge&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ut(e)){if("function"!=typeof e.toString)throw S("toString is not a function");if("string"!=typeof(e=e.toString()))throw S("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Ee||et(c),r.removed=[],"string"==typeof e&&(ze=!1),ze){if(e.nodeName){const t=Je(e.nodeName);if(!de[t]||be[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)t=ct("\x3c!----\x3e"),n=t.ownerDocument.importNode(e,!0),1===n.nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?t=n:t.appendChild(n);else{if(!Te&&!we&&!xe&&-1===e.indexOf("<"))return J&&Fe?J.createHTML(e):e;if(t=ct(e),!t)return Te?null:Fe?Y:""}t&&_e&<(t.firstChild);const u=st(ze?e:t);for(;o=u.nextNode();)dt(o)||(o.content instanceof i&&pt(o.content),mt(o));if(ze)return e;if(Te){if(Ae)for(l=ee.call(t.ownerDocument);t.firstChild;)l.appendChild(t.firstChild);else l=t;return(he.shadowroot||he.shadowrootmod)&&(l=ne.call(a,l,!0)),l}let g=xe?t.outerHTML:t.innerHTML;return xe&&de["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&v(G,t.ownerDocument.doctype.name)&&(g="\n"+g),we&&(g=p(g,ae," "),g=p(g,oe," "),g=p(g,le," ")),J&&Fe?J.createHTML(g):g},r.setConfig=function(e){et(e),Ee=!0},r.clearConfig=function(){Ye=null,Ee=!1},r.isValidAttribute=function(e,t,n){Ye||et({});const r=Je(e),a=Je(t);return ft(r,a,n)},r.addHook=function(e,t){"function"==typeof t&&(re[e]=re[e]||[],d(re[e],t))},r.removeHook=function(e){if(re[e])return g(re[e])},r.removeHooks=function(e){re[e]&&(re[e]=[])},r.removeAllHooks=function(){re={}},r}()}()},685:e=>{"use strict";var t=function(e){return parseInt(e,16)};e.exports=function(e,n){var r,a,o=function(e){return"#"===e.charAt(0)?e.slice(1):e}(e),l=function(e){var n=e.g,r=e.b,a=e.a;return{r:t(e.r),g:t(n),b:t(r),a:+(t(a)/255).toFixed(2)}}({r:(a=3===(r=o).length||4===r.length)?"".concat(r.slice(0,1)).concat(r.slice(0,1)):r.slice(0,2),g:a?"".concat(r.slice(1,2)).concat(r.slice(1,2)):r.slice(2,4),b:a?"".concat(r.slice(2,3)).concat(r.slice(2,3)):r.slice(4,6),a:(a?"".concat(r.slice(3,4)).concat(r.slice(3,4)):r.slice(6,8))||"ff"});return function(e,t){var n,r=e.r,a=e.g,o=e.b,l=e.a,i=(n=t,!isNaN(parseFloat(n))&&isFinite(n)?t:l);return"rgba(".concat(r,", ").concat(a,", ").concat(o,", ").concat(i,")")}(l,n)}},703:(e,t,n)=>{"use strict";var r=n(414);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,l){if(l!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","title":"Click to Share","apiVersion":2,"name":"has/click-to-share","category":"widgets","icon":"","description":"An easy-to-use Click to Share block.","keywords":["click","social","tweet","better","twitter","facebook","share","quote","blockquote"],"version":"1.0.0","textdomain":"highlight-and-share","attributes":{"uniqueId":{"type":"string","default":""},"showClickToShare":{"type":"number","default":true},"showIcon":{"type":"number","default":true},"iconSize":{"type":"number","default":-1},"iconSizeResponsive":{"type":"object","default":{"desktop":-1,"tablet":-1,"mobile":-1}},"customShareText":{"type":"string","default":""},"shareText":{"type":"string","default":""},"shareTextInner":{"type":"array","default":[]},"backgroundColor":{"type":"string","default":"#FFFFFF"},"backgroundColorHover":{"type":"string","default":"#FFFFFF"},"backgroundColorSync":{"type":"string","default":"normal"},"backgroundType":{"type":"string","default":"solid"},"backgroundGradient":{"type":"string","default":""},"backgroundGradientHover":{"type":"string","default":""},"backgroundGradientSync":{"type":"string","default":"normal"},"backgroundImage":{"type":"object","default":{"url":"","id":0,"backgroundColor":"#000000","backgroundSize":"cover","backgroundPosition":"center center","backgroundRepeat":"no-repeat","backgroundOpacity":1,"backgroundOpacityHover":1}},"icon":{"type":"string","default":""},"iconColor":{"type":"string","default":"#000000"},"iconColorHover":{"type":"string","default":"#000000"},"iconColorSync":{"type":"string","default":"normal"},"textColor":{"type":"string","default":"#000000"},"textColorHover":{"type":"string","default":"#000000"},"textColorSync":{"type":"string","default":"normal"},"shareTextColor":{"type":"string","default":"#000000"},"shareTextColorHover":{"type":"string","default":"#000000"},"shareTextColorSync":{"type":"string","default":"normal"},"fontSize":{"type":"integer","default":24},"clickShareFontSize":{"type":"integer","default":24},"clickText":{"type":"string","default":"Click to Share"},"padding":{"type":"integer","default":-1},"border":{"type":"integer","default":-1},"borderRadius":{"type":"integer","default":0},"borderColor":{"type":"string","default":"#000000"},"borderColorHover":{"type":"string","default":"#000000"},"borderColorSync":{"type":"string","default":"normal"},"fontWeight":{"type":"string","default":"400"},"maxWidth":{"type":"string","default":"-1"},"maxWidthUnit":{"type":"string","default":"-1"},"maximumWidth":{"type":"object","default":{"mobile":{"width":"","unit":null},"tablet":{"width":"","unit":null},"desktop":{"width":"850","unit":"px"}}},"showClickToShareText":{"type":"object","default":{"mobile":true,"tablet":true,"desktop":true}},"showClickToShareIcon":{"type":"object","default":{"mobile":true,"tablet":true,"desktop":true}},"align":{"type":"string","default":"center"},"alignment":{"type":"string","default":"center"},"marginLeft":{"type":"integer","default":0},"marginRight":{"type":"integer","default":0},"marginBottom":{"type":"integer","default":0},"marginTop":{"type":"integer","default":0},"paddingSize":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"tablet":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"desktop":{"top":"20","right":"20","bottom":"20","left":"20","unit":"px","unitSync":true}}},"marginSize":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"tablet":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"desktop":{"top":"20","right":"","bottom":"20","left":"","unit":"px","unitSync":true}}},"borderWidth":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"tablet":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"desktop":{"top":"1","right":"1","bottom":"1","left":"1","unit":"px","unitSync":true}}},"borderRadiusSize":{"type":"object","default":{"mobile":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"tablet":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"desktop":{"top":"","right":"","bottom":"","left":"","unit":"px","unitSync":true}}},"typographyQuote":{"type":"object","default":{"mobile":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontFallback":"","fontType":"web"},"tablet":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontFallback":"","fontType":"web"},"desktop":{"fontFamily":"Arial","fontFamilySlug":"arial","fontSize":"24","fontSizeUnit":"px","fontWeight":"normal","lineHeight":"1.3","lineHeightUnit":"em","textTransform":"none","letterSpacing":"0","letterSpacingUnit":"px","fontFallback":"serif","fontType":"web"}}},"typographyShareText":{"type":"object","default":{"mobile":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontType":"web","fontFallback":"sans-serif"},"tablet":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontType":"web","fontFallback":"sans-serif"},"desktop":{"fontFamily":"Arial","fontFamilySlug":"arial","fontSize":"24","fontSizeUnit":"px","fontWeight":"normal","lineHeight":"1.3","lineHeightUnit":"em","textTransform":"none","letterSpacing":"0","letterSpacingUnit":"px","fontType":"web","fontFallback":"sans-serif"}}}},"supports":{"anchor":true,"align":true,"className":true},"example":{"attributes":{"backgroundColor":"#8364E8","backgroundColorHover":"#714EE5","backgroundType":"solid","iconColor":"#FFFFFF","iconColorHover":"#FFFFFF","textColor":"#FFFFFF","textColorHover":"#FFFFFF","shareTextColor":"#FFFFFF","shareTextColorHover":"#FFFFFF","clickText":"Click to share","paddingSize":{"mobile":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"tablet":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"desktop":{"top":"20","right":"20","bottom":"20","left":"20","unit":"px","unitSync":true}},"marginSize":{"mobile":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"tablet":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"desktop":{"top":"20","right":"","bottom":"20","left":"","unit":"px","unitSync":true}},"borderWidth":{"mobile":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"tablet":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"desktop":{"top":"1","right":"1","bottom":"1","left":"1","unit":"px","unitSync":true}},"borderRadiusSize":{"mobile":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"tablet":{"top":"","right":"","bottom":"","left":"","unit":null,"unitSync":null},"desktop":{"top":"4","right":"4","bottom":"4","left":"4","unit":"px","unitSync":true}},"typographyQuote":{"mobile":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontFallback":"","fontType":"web"},"tablet":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontFallback":"","fontType":"web"},"desktop":{"fontFamily":"Arial","fontFamilySlug":"arial","fontSize":"24","fontSizeUnit":"px","fontWeight":"normal","lineHeight":"1.3","lineHeightUnit":"em","textTransform":"none","letterSpacing":"0","letterSpacingUnit":"px","fontFallback":"serif","fontType":"web"}},"typographyShareText":{"mobile":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontType":"web","fontFallback":"sans-serif"},"tablet":{"fontFamily":"","fontFamilySlug":"","fontSize":"","fontSizeUnit":"px","fontWeight":"","lineHeight":"","lineHeightUnit":"em","textTransform":"","letterSpacing":"","letterSpacingUnit":"px","fontType":"web","fontFallback":"sans-serif"},"desktop":{"fontFamily":"Arial","fontFamilySlug":"arial","fontSize":"24","fontSizeUnit":"px","fontWeight":"normal","lineHeight":"1.3","lineHeightUnit":"em","textTransform":"none","letterSpacing":"0","letterSpacingUnit":"px","fontType":"web","fontFallback":"sans-serif"}}},"innerBlocks":[{"name":"core/paragraph","attributes":{"content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit."}}]},"editorScript":"has-click-to-share","editorStyle":"has-style-admin-css","style":"has-style-frontend-css"}');var t=n(184),r=n.n(t);const a=window.React;var o=n.n(a);const l=o().createContext();var i=n(685),c=n.n(i);const s=window.wp.i18n,u=window.wp.components;function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,l,i=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(i.push(r.value),i.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(s)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n"checkbox"===e.type,H=e=>e instanceof Date,I=e=>null==e;const P=e=>"object"==typeof e;var j=e=>!I(e)&&!Array.isArray(e)&&P(e)&&!H(e),M=e=>j(e)&&e.target?U(e.target)?e.target.checked:e.target.value:e,B=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),L=e=>Array.isArray(e)?e.filter(Boolean):[],D=e=>void 0===e,W=(e,t,n)=>{if(!t||!j(e))return n;const r=L(t.split(/[,[\].]+?/)).reduce(((e,t)=>I(e)?e:e[t]),e);return D(r)||r===e?D(e[t])?n:e[t]:r};const V={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},G={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},q="pattern",Z="required",$=a.createContext(null),Q=()=>a.useContext($);var J=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const a=o;return t._proxyFormState[a]!==G.all&&(t._proxyFormState[a]=!r||G.all),n&&(n[a]=!0),e[a]}});return a},Y=e=>j(e)&&!Object.keys(e).length,K=(e,t,n)=>{const{name:r,...a}=e;return Y(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find((e=>t[e]===(!n||G.all)))},X=e=>Array.isArray(e)?e:[e],ee=(e,t,n)=>n&&t?e===t:!e||!t||e===t||X(e).some((e=>e&&(e.startsWith(t)||t.startsWith(e))));function te(e){const t=a.useRef(e);t.current=e,a.useEffect((()=>{const n=!e.disabled&&t.current.subject.subscribe({next:t.current.callback});return()=>{n&&n.unsubscribe()}}),[e.disabled])}function ne(e){const t=Q(),{control:n=t.control,disabled:r,name:o,exact:l}=e||{},[i,c]=a.useState(n._formState),s=a.useRef(!0),u=a.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),g=a.useRef(o);return g.current=o,te({disabled:r,callback:a.useCallback((e=>s.current&&ee(g.current,e.name,l)&&K(e,u.current)&&c({...n._formState,...e})),[n,l]),subject:n._subjects.state}),a.useEffect((()=>(s.current=!0,()=>{s.current=!1})),[]),J(i,n,u.current,!1)}var re=e=>"string"==typeof e,ae=(e,t,n,r)=>{const a=Array.isArray(e);return re(e)?(r&&t.watch.add(e),W(n,e)):a?e.map((e=>(r&&t.watch.add(e),W(n,e)))):(r&&(t.watchAll=!0),n)},oe=e=>"function"==typeof e,le=e=>{for(const t in e)if(oe(e[t]))return!0;return!1};function ie(e){const t=Q(),{control:n=t.control,name:r,defaultValue:o,disabled:l,exact:i}=e||{},c=a.useRef(r);c.current=r,te({disabled:l,subject:n._subjects.watch,callback:a.useCallback((e=>{if(ee(c.current,e.name,i)){const t=ae(c.current,n._names,e.values||n._formValues);u(D(c.current)||j(t)&&!le(t)?{...t}:Array.isArray(t)?[...t]:D(t)?o:t)}}),[n,i,o])});const[s,u]=a.useState(D(o)?n._getWatch(r):o);return a.useEffect((()=>n._removeUnmounted())),s}const ce=e=>e.render(function(e){const t=Q(),{name:n,control:r=t.control,shouldUnregister:o}=e,l=B(r._names.array,n),i=ie({control:r,name:n,defaultValue:W(r._formValues,n,W(r._defaultValues,n,e.defaultValue)),exact:!0}),c=ne({control:r,name:n}),s=a.useRef(r.register(n,{...e.rules,value:i}));return a.useEffect((()=>{const e=(e,t)=>{const n=W(r._fields,e);n&&(n._f.mount=t)};return e(n,!0),()=>{const t=r._options.shouldUnregister||o;(l?t&&!r._stateFlags.action:t)?r.unregister(n):e(n,!1)}}),[n,r,l,o]),{field:{name:n,value:i,onChange:a.useCallback((e=>s.current.onChange({target:{value:M(e),name:n},type:V.CHANGE})),[n]),onBlur:a.useCallback((()=>s.current.onBlur({target:{value:W(r._formValues,n),name:n},type:V.BLUR})),[n,r]),ref:e=>{const t=W(r._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!W(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!W(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!W(c.touchedFields,n)},error:{enumerable:!0,get:()=>W(c.errors,n)}})}}(e));var se=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},ue=e=>/^\w*$/.test(e),ge=e=>L(e.replace(/["|']|\]/g,"").split(/\.|\[/));function de(e,t,n){let r=-1;const a=ue(t)?[t]:ge(t),o=a.length,l=o-1;for(;++r{for(const r of n||Object.keys(e)){const n=W(e,r);if(n){const{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else j(r)&&fe(r,t)}}};var he=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))))),me=(e,t,n)=>{const r=L(W(e,n));return de(r,"root",t[n]),de(e,n,r),e},pe=e=>"boolean"==typeof e,be=e=>"file"===e.type,ye=e=>re(e)||a.isValidElement(e),ve=e=>"radio"===e.type,Se=e=>e instanceof RegExp;const ke={value:!1,isValid:!1},Ce={value:!0,isValid:!0};var xe=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!D(e[0].attributes.value)?D(e[0].value)||""===e[0].value?Ce:{value:e[0].value,isValid:!0}:Ce:ke}return ke};const we={isValid:!1,value:null};var Ee=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),we):we;function _e(e,t,n="validate"){if(ye(e)||Array.isArray(e)&&e.every(ye)||pe(e)&&!e)return{type:n,message:ye(e)?e:"",ref:t}}var Te=e=>j(e)&&!Se(e)?e:{value:e,message:""},Ae=async(e,t,n,r,a)=>{const{ref:o,refs:l,required:i,maxLength:c,minLength:s,min:u,max:g,pattern:d,validate:f,name:h,valueAsNumber:m,mount:p,disabled:b}=e._f;if(!p||b)return{};const y=l?l[0]:o,v=e=>{r&&y.reportValidity&&(y.setCustomValidity(pe(e)?"":e||" "),y.reportValidity())},S={},k=ve(o),C=U(o),x=k||C,w=(m||be(o))&&!o.value||""===t||Array.isArray(t)&&!t.length,E=se.bind(null,h,n,S),_=(e,t,n,r="maxLength",a="minLength")=>{const l=e?t:n;S[h]={type:e?r:a,message:l,ref:o,...E(e?r:a,l)}};if(a?!Array.isArray(t)||!t.length:i&&(!x&&(w||I(t))||pe(t)&&!t||C&&!xe(l).isValid||k&&!Ee(l).isValid)){const{value:e,message:t}=ye(i)?{value:!!i,message:i}:Te(i);if(e&&(S[h]={type:Z,message:t,ref:y,...E(Z,t)},!n))return v(t),S}if(!(w||I(u)&&I(g))){let e,r;const a=Te(g),l=Te(u);if(I(t)||isNaN(t)){const n=o.valueAsDate||new Date(t),i=e=>new Date((new Date).toDateString()+" "+e),c="time"==o.type,s="week"==o.type;re(a.value)&&t&&(e=c?i(t)>i(a.value):s?t>a.value:n>new Date(a.value)),re(l.value)&&t&&(r=c?i(t)a.value),I(l.value)||(r=ne.value,o=!I(r.value)&&t.length{const t=e.constructor&&e.constructor.prototype;return j(t)&&t.hasOwnProperty("isPrototypeOf")},Re="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function Ne(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(Re&&(e instanceof Blob||e instanceof FileList)||!n&&!j(e))return e;if(t=n?[]:{},Array.isArray(e)||Fe(e))for(const n in e)t[n]=Ne(e[n]);else t=e}return t}var Oe=e=>({isOnSubmit:!e||e===G.onSubmit,isOnBlur:e===G.onBlur,isOnChange:e===G.onChange,isOnAll:e===G.all,isOnTouch:e===G.onTouched});function ze(e){for(const t in e)if(!D(e[t]))return!1;return!0}function Ue(e,t){const n=ue(t)?[t]:ge(t),r=1==n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r0&&(o=e);++a{for(const n of e)n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var Ie=e=>I(e)||!P(e);function Pe(e,t){if(Ie(e)||Ie(t))return e===t;if(H(e)&&H(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const a of n){const n=e[a];if(!r.includes(a))return!1;if("ref"!==a){const e=t[a];if(H(n)&&H(e)||j(n)&&j(e)||Array.isArray(n)&&Array.isArray(e)?!Pe(n,e):n!==e)return!1}}return!0}var je=e=>{const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Me=e=>"select-multiple"===e.type,Be=e=>ve(e)||U(e),Le=e=>je(e)&&e.isConnected;function De(e,t={}){const n=Array.isArray(e);if(j(e)||n)for(const n in e)Array.isArray(e[n])||j(e[n])&&!le(e[n])?(t[n]=Array.isArray(e[n])?[]:{},De(e[n],t[n])):I(e[n])||(t[n]=!0);return t}function We(e,t,n){const r=Array.isArray(e);if(j(e)||r)for(const r in e)Array.isArray(e[r])||j(e[r])&&!le(e[r])?D(t)||Ie(n[r])?n[r]=Array.isArray(e[r])?De(e[r],[]):{...De(e[r])}:We(e[r],I(t)?{}:t[r],n[r]):n[r]=!Pe(e[r],t[r]);return n}var Ve=(e,t)=>We(e,t,De(t)),Ge=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>D(e)?e:t?""===e?NaN:e?+e:e:n&&re(e)?new Date(e):r?r(e):e;function qe(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return be(t)?t.files:ve(t)?Ee(e.refs).value:Me(t)?[...t.selectedOptions].map((({value:e})=>e)):U(t)?xe(e.refs).value:Ge(D(t.value)?e.ref.value:t.value,e)}var Ze=(e,t,n,r)=>{const a={};for(const n of e){const e=W(t,n);e&&de(a,n,e._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},$e=e=>D(e)?void 0:Se(e)?e.source:j(e)?Se(e.value)?e.value.source:e.value:e,Qe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Je(e,t,n){const r=W(e,n);if(r||ue(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const r=a.join("."),o=W(t,r),l=W(e,r);if(o&&!Array.isArray(o)&&n!==r)return{name:n};if(l&&l.type)return{name:r,error:l};a.pop()}return{name:n}}var Ye=(e,t,n,r,a)=>!a.isOnAll&&(!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:!(n?r.isOnChange:a.isOnChange)||e),Ke=(e,t)=>!L(W(e,t)).length&&Ue(e,t);const Xe={mode:G.onSubmit,reValidateMode:G.onChange,shouldFocusError:!0};function et(e={}){let t,n={...Xe,...e},r={submitCount:0,isDirty:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},a={},o=Ne(n.defaultValues)||{},l=n.shouldUnregister?{}:Ne(o),i={action:!1,mount:!1,watch:!1},c={mount:new Set,unMount:new Set,array:new Set,watch:new Set},s=0,u={};const g={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={watch:He(),array:He(),state:He()},f=Oe(n.mode),h=Oe(n.reValidateMode),m=n.criteriaMode===G.all,p=async e=>{let t=!1;return g.isValid&&(t=n.resolver?Y((await v()).errors):await S(a,!0),e||t===r.isValid||(r.isValid=t,d.state.next({isValid:t}))),t},b=(e,t,n,r)=>{const c=W(a,e);if(c){const a=W(l,e,D(n)?W(o,e):n);D(a)||r&&r.defaultChecked||t?de(l,e,t?a:qe(c._f)):x(e,a),i.mount&&p()}},y=(e,t,n,a,l)=>{let i=!1;const c={name:e},s=W(r.touchedFields,e);if(g.isDirty){const e=r.isDirty;r.isDirty=c.isDirty=k(),i=e!==c.isDirty}if(g.dirtyFields&&(!n||a)){const n=W(r.dirtyFields,e);Pe(W(o,e),t)?Ue(r.dirtyFields,e):de(r.dirtyFields,e,!0),c.dirtyFields=r.dirtyFields,i=i||n!==W(r.dirtyFields,e)}return n&&!s&&(de(r.touchedFields,e,n),c.touchedFields=r.touchedFields,i=i||g.touchedFields&&s!==n),i&&l&&d.state.next(c),i?c:{}},v=async e=>n.resolver?await n.resolver({...l},n.context,Ze(e||c.mount,a,n.criteriaMode,n.shouldUseNativeValidation)):{},S=async(e,t,a={valid:!0})=>{for(const o in e){const i=e[o];if(i){const{_f:e,...o}=i;if(e){const o=c.array.has(e.name),s=await Ae(i,W(l,e.name),m,n.shouldUseNativeValidation,o);if(s[e.name]&&(a.valid=!1,t))break;!t&&(W(s,e.name)?o?me(r.errors,s,e.name):de(r.errors,e.name,s[e.name]):Ue(r.errors,e.name))}o&&await S(o,t,a)}}return a.valid},k=(e,t)=>(e&&t&&de(l,e,t),!Pe(A(),o)),C=(e,t,n)=>{const r={...i.mount?l:D(t)?o:re(e)?{[e]:t}:t};return ae(e,c,r,n)},x=(e,t,n={})=>{const r=W(a,e);let o=t;if(r){const n=r._f;n&&(!n.disabled&&de(l,e,Ge(t,n)),o=Re&&je(n.ref)&&I(t)?"":t,Me(n.ref)?[...n.ref.options].forEach((e=>e.selected=o.includes(e.value))):n.refs?U(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach((e=>e.checked=e.value===o)):be(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||d.watch.next({name:e})))}(n.shouldDirty||n.shouldTouch)&&y(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&T(e)},w=(e,t,n)=>{for(const r in t){const o=t[r],l=`${e}.${r}`,i=W(a,l);!c.array.has(e)&&Ie(o)&&(!i||i._f)||H(o)?x(l,o,n):w(l,o,n)}},E=(e,t,n={})=>{const i=W(a,e),s=c.array.has(e),u=Ne(t);de(l,e,u),s?(d.array.next({name:e,values:l}),(g.isDirty||g.dirtyFields)&&n.shouldDirty&&(r.dirtyFields=Ve(o,l),d.state.next({name:e,dirtyFields:r.dirtyFields,isDirty:k(e,u)}))):!i||i._f||I(u)?x(e,u,n):w(e,u,n),he(e,c)&&d.state.next({}),d.watch.next({name:e})},_=async o=>{const i=o.target;let b=i.name;const S=W(a,b);if(S){let k,C;const x=i.type?qe(S._f):M(o),w=o.type===V.BLUR||o.type===V.FOCUS_OUT,E=!Qe(S._f)&&!n.resolver&&!W(r.errors,b)&&!S._f.deps||Ye(w,W(r.touchedFields,b),r.isSubmitted,h,f),_=he(b,c,w);de(l,b,x),w?(S._f.onBlur&&S._f.onBlur(o),t&&t(0)):S._f.onChange&&S._f.onChange(o);const A=y(b,x,w,!1),F=!Y(A)||_;if(!w&&d.watch.next({name:b,type:o.type}),E)return F&&d.state.next({name:b,..._?{}:A});if(!w&&_&&d.state.next({}),u[b]=(u[b],1),d.state.next({isValidating:!0}),n.resolver){const{errors:e}=await v([b]),t=Je(r.errors,a,b),n=Je(e,a,t.name||b);k=n.error,b=n.name,C=Y(e)}else k=(await Ae(S,W(l,b),m,n.shouldUseNativeValidation))[b],C=await p(!0);S._f.deps&&T(S._f.deps),(async(n,a,o,l)=>{const i=W(r.errors,n),c=g.isValid&&r.isValid!==a;var f;if(e.delayError&&o?(f=()=>((e,t)=>{de(r.errors,e,t),d.state.next({errors:r.errors})})(n,o),t=e=>{clearTimeout(s),s=window.setTimeout(f,e)},t(e.delayError)):(clearTimeout(s),t=null,o?de(r.errors,n,o):Ue(r.errors,n)),(o?!Pe(i,o):i)||!Y(l)||c){const e={...l,...c?{isValid:a}:{},errors:r.errors,name:n};r={...r,...e},d.state.next(e)}u[n]--,g.isValidating&&!Object.values(u).some((e=>e))&&(d.state.next({isValidating:!1}),u={})})(b,C,k,A)}},T=async(e,t={})=>{let o,l;const i=X(e);if(d.state.next({isValidating:!0}),n.resolver){const t=await(async e=>{const{errors:t}=await v();if(e)for(const n of e){const e=W(t,n);e?de(r.errors,n,e):Ue(r.errors,n)}else r.errors=t;return t})(D(e)?e:i);o=Y(t),l=e?!i.some((e=>W(t,e))):o}else e?(l=(await Promise.all(i.map((async e=>{const t=W(a,e);return await S(t&&t._f?{[e]:t}:t)})))).every(Boolean),(l||r.isValid)&&p()):l=o=await S(a);return d.state.next({...!re(e)||g.isValid&&o!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:o}:{},errors:r.errors,isValidating:!1}),t.shouldFocus&&!l&&fe(a,(e=>e&&W(r.errors,e)),e?i:c.mount),l},A=e=>{const t={...o,...i.mount?l:{}};return D(e)?t:re(e)?W(t,e):e.map((e=>W(t,e)))},F=(e,t)=>({invalid:!!W((t||r).errors,e),isDirty:!!W((t||r).dirtyFields,e),isTouched:!!W((t||r).touchedFields,e),error:W((t||r).errors,e)}),R=(e,t={})=>{for(const i of e?X(e):c.mount)c.mount.delete(i),c.array.delete(i),W(a,i)&&(t.keepValue||(Ue(a,i),Ue(l,i)),!t.keepError&&Ue(r.errors,i),!t.keepDirty&&Ue(r.dirtyFields,i),!t.keepTouched&&Ue(r.touchedFields,i),!n.shouldUnregister&&!t.keepDefaultValue&&Ue(o,i));d.watch.next({}),d.state.next({...r,...t.keepDirty?{isDirty:k()}:{}}),!t.keepIsValid&&p()},N=(e,t={})=>{let r=W(a,e);const s=pe(t.disabled);return de(a,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),c.mount.add(e),r?s&&de(l,e,t.disabled?void 0:W(l,e,qe(r._f))):b(e,!0,t.value),{...s?{disabled:t.disabled}:{},...n.shouldUseNativeValidation?{required:!!t.required,min:$e(t.min),max:$e(t.max),minLength:$e(t.minLength),maxLength:$e(t.maxLength),pattern:$e(t.pattern)}:{},name:e,onChange:_,onBlur:_,ref:l=>{if(l){N(e,t),r=W(a,e);const n=D(l.value)&&l.querySelectorAll&&l.querySelectorAll("input,select,textarea")[0]||l,i=Be(n),c=r._f.refs||[];if(i?c.find((e=>e===n)):n===r._f.ref)return;de(a,e,{_f:{...r._f,...i?{refs:[...c.filter(Le),n,...Array.isArray(W(o,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),b(e,!1,void 0,n)}else r=W(a,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!B(c.array,e)||!i.action)&&c.unMount.add(e)}}},O=()=>n.shouldFocusError&&fe(a,(e=>e&&W(r.errors,e)),c.mount);return{control:{register:N,unregister:R,getFieldState:F,_executeSchema:v,_focusError:O,_getWatch:C,_getDirty:k,_updateValid:p,_removeUnmounted:()=>{for(const e of c.unMount){const t=W(a,e);t&&(t._f.refs?t._f.refs.every((e=>!Le(e))):!Le(t._f.ref))&&R(e)}c.unMount=new Set},_updateFieldArray:(e,t=[],n,c,s=!0,u=!0)=>{if(c&&n){if(i.action=!0,u&&Array.isArray(W(a,e))){const t=n(W(a,e),c.argA,c.argB);s&&de(a,e,t)}if(g.errors&&u&&Array.isArray(W(r.errors,e))){const t=n(W(r.errors,e),c.argA,c.argB);s&&de(r.errors,e,t),Ke(r.errors,e)}if(g.touchedFields&&u&&Array.isArray(W(r.touchedFields,e))){const t=n(W(r.touchedFields,e),c.argA,c.argB);s&&de(r.touchedFields,e,t)}g.dirtyFields&&(r.dirtyFields=Ve(o,l)),d.state.next({isDirty:k(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else de(l,e,t)},_getFieldArray:t=>L(W(i.mount?l:o,t,e.shouldUnregister?W(o,t,[]):[])),_subjects:d,_proxyFormState:g,get _fields(){return a},get _formValues(){return l},get _stateFlags(){return i},set _stateFlags(e){i=e},get _defaultValues(){return o},get _names(){return c},set _names(e){c=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:T,register:N,handleSubmit:(e,t)=>async o=>{o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let i=!0,c=Ne(l);d.state.next({isSubmitting:!0});try{if(n.resolver){const{errors:e,values:t}=await v();r.errors=e,c=t}else await S(a);Y(r.errors)?(d.state.next({errors:{},isSubmitting:!0}),await e(c,o)):(t&&await t({...r.errors},o),O())}catch(e){throw i=!1,e}finally{r.isSubmitted=!0,d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Y(r.errors)&&i,submitCount:r.submitCount+1,errors:r.errors})}},watch:(e,t)=>oe(e)?d.watch.subscribe({next:n=>e(C(void 0,t),n)}):C(e,t,!0),setValue:E,getValues:A,reset:(t,n)=>((t,n={})=>{const s=t||o,u=Ne(s),f=t&&!Y(t)?u:o;if(n.keepDefaultValues||(o=s),!n.keepValues){if(n.keepDirtyValues)for(const e of c.mount)W(r.dirtyFields,e)?de(f,e,W(l,e)):E(e,W(f,e));else{if(Re&&D(t))for(const e of c.mount){const t=W(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;try{if(je(e)){e.closest("form").reset();break}}catch(e){}}}a={}}l=e.shouldUnregister?n.keepDefaultValues?Ne(o):{}:u,d.array.next({values:f}),d.watch.next({values:f})}c={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!g.isValid||!!n.keepIsValid,i.watch=!!e.shouldUnregister,d.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:n.keepDirty||n.keepDirtyValues?r.isDirty:!(!n.keepDefaultValues||Pe(t,o)),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:n.keepDirty||n.keepDirtyValues?r.dirtyFields:n.keepDefaultValues&&t?Ve(o,t):{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})})(oe(t)?t(l):t,n),resetField:(e,t={})=>{W(a,e)&&(D(t.defaultValue)?E(e,W(o,e)):(E(e,t.defaultValue),de(o,e,t.defaultValue)),t.keepTouched||Ue(r.touchedFields,e),t.keepDirty||(Ue(r.dirtyFields,e),r.isDirty=t.defaultValue?k(e,W(o,e)):k()),t.keepError||(Ue(r.errors,e),g.isValid&&p()),d.state.next({...r}))},clearErrors:e=>{e?X(e).forEach((e=>Ue(r.errors,e))):r.errors={},d.state.next({errors:r.errors})},unregister:R,setError:(e,t,n)=>{const o=(W(a,e,{_f:{}})._f||{}).ref;de(r.errors,e,{...t,ref:o}),d.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},setFocus:(e,t={})=>{const n=W(a,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:F}}function tt(e={}){const t=a.useRef(),[n,r]=a.useState({isDirty:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:e.defaultValues});t.current||(t.current={...et(e),formState:n});const o=t.current.control;return o._options=e,te({subject:o._subjects.state,callback:a.useCallback((e=>{K(e,o._proxyFormState,!0)&&(o._formState={...o._formState,...e},r({...o._formState}))}),[o])}),a.useEffect((()=>{o._stateFlags.mount||(o._proxyFormState.isValid&&o._updateValid(),o._stateFlags.mount=!0),o._stateFlags.watch&&(o._stateFlags.watch=!1,o._subjects.state.next({})),o._removeUnmounted()})),a.useEffect((()=>{n.submitCount&&o._focusError()}),[o,n.submitCount]),t.current.formState=J(n,o),t.current}function nt(e,t,n,r,a){if(""!==e||""!==t||""!==n||""!==r)return e=0!=parseFloat(e)&&""!==e?parseFloat(e)+a+" ":"0 ",t=0!=parseFloat(t)&&""!==t?parseFloat(t)+a+" ":"0 ",n=0!=parseFloat(n)&&""!==n?parseFloat(n)+a+" ":"0 ",t===(r=0!=parseFloat(r)&&""!==r?parseFloat(r)+a+" ":"0 ")&&(r="",e===n&&(n="",e===t&&(t=""))),(e+t+n+r).trim()}function rt(e,t){if(t=t.toLowerCase(),void 0===e)return"";var n=e[t];return"desktop"===t?nt(n.top,n.right,n.bottom,n.left,n.unit):"tablet"===t||"mobile"===t?nt(at(e,t,n.top,"top"),at(e,t,n.right,"right"),at(e,t,n.bottom,"bottom"),at(e,t,n.left,"left"),ot(e,t,n.unit)):""}function at(e,t,n,r){if("mobile"===t&&""===n){if(""!==e.tablet[r])return e.tablet[r];if(""!==e.desktop[r])return e.desktop[r]}return"tablet"===t&&""===n&&""!==e.desktop[r]?e.desktop[r]:""!==n?n:"0"}function ot(e,t,n){return"mobile"===t&&null===n?null===e.tablet.unit?e.desktop.unit:e.tablet.unit:"tablet"===t&&null===n?e.desktop.unit:null===n?"px":n}function lt(e,t,n){return"mobile"===t&&null===n?null===e.tablet.unitSync?e.desktop.unitSync:e.tablet.unitSync:"tablet"===t&&null===n?e.desktop.unitSync:null===n||n}function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n