@secretstache/wordpress-gutenberg 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
package/build/index.js CHANGED
@@ -4,7 +4,7 @@ import{ToggleControl as e,Button as t,BaseControl as n,ColorPalette as o,Icon as
4
4
  Licensed under the MIT License (MIT), see
5
5
  http://jedwatson.github.io/classnames
6
6
  */
7
- !function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var i in e)t.call(e,i)&&e[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Se);var Re=Ve(Se.exports);const Ze=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=await V({path:"/wp/v2/".concat(t,"?search=").concat(encodeURIComponent(e))});return n?null==o?void 0:o.map(n):null==o?void 0:o.map((e=>{var t;const n=document.createElement("div");return n.innerHTML=null==e||null===(t=e.title)||void 0===t?void 0:t.rendered,{value:e.id,label:n.textContent||n.innerText||""}}))},He=e=>Ee(e,{replacement:"-",lower:!0,strict:!0}),Le=e=>{if(e.startsWith("<?xml")){const t=e.indexOf("?>");-1!==t&&(e=e.substring(t+2))}return e=e.trim()},Pe="image/svg+xml",Fe=async e=>{const t=(null==e?void 0:e.mime)===Pe||(null==e?void 0:e.mime_type)===Pe,n={isSvg:t,imageUrl:null,svgCode:null,width:null==e?void 0:e.width,height:null==e?void 0:e.height};return t?n.svgCode=await fetch(e.url).then((e=>e.text())).then(Le):n.imageUrl=null==e?void 0:e.url,n},Me=e=>{if(!e)return"";let t=e;const n=e.match(/^\+\d(\d{3})(\d{3})(\d{4})$/);return n&&(t="".concat(n[1],"-").concat(n[2],"-").concat(n[3])),t},De=e=>{const{street_number:t="",street_name:n="",city:o="",state_short:r="",post_code:i=""}=e;let a=["".concat(t," ").concat(n).trim()];o&&a.push("<br>".concat(o));let l=[];r&&l.push(r),i&&l.push(i);let c=l.join(" ");return c&&a.push("".concat(a.length>0?", ":"").concat(c)),a.join("")},Ye=e=>{const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""},Je=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{marginTop:"mt-",marginBottom:"mb-",paddingTop:"pt-",paddingBottom:"pb-"},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{marginTop:"sm:mt-",marginBottom:"sm:mb-",paddingTop:"sm:pt-",paddingBottom:"sm:pb-"};return null!=e&&e.desktop||null!=e&&e.mobile?Re({["".concat(t.marginTop).concat(e.desktop.margin.top)]:-1!==e.desktop.margin.top,["".concat(t.marginBottom).concat(e.desktop.margin.bottom)]:-1!==e.desktop.margin.bottom,["".concat(t.paddingTop).concat(e.desktop.padding.top)]:-1!==e.desktop.padding.top,["".concat(t.paddingBottom).concat(e.desktop.padding.bottom)]:-1!==e.desktop.padding.bottom,["".concat(n.marginTop).concat(e.mobile.margin.top)]:-1!==e.mobile.margin.top,["".concat(n.marginBottom).concat(e.mobile.margin.bottom)]:-1!==e.mobile.margin.bottom,["".concat(n.paddingTop).concat(e.mobile.padding.top)]:-1!==e.mobile.padding.top,["".concat(n.paddingBottom).concat(e.mobile.padding.bottom)]:-1!==e.mobile.padding.bottom}):Re({["".concat(t.marginTop).concat(e.margin.top)]:-1!==e.margin.top,["".concat(t.marginBottom).concat(e.margin.bottom)]:-1!==e.margin.bottom,["".concat(t.paddingTop).concat(e.padding.top)]:-1!==e.padding.top,["".concat(t.paddingBottom).concat(e.padding.bottom)]:-1!==e.padding.bottom})},ze=e=>{const{getPostType:t,queryType:n,curatedPostsIds:o=[],categoriesTaxonomy:r,curatedCategoriesIds:i=[],numberOfPosts:a=-1,extraQueryArgs:l,dependencies:c}=e;return A((e=>{const c={per_page:a,order:"desc",orderby:"date",_embed:!0,...l};n===Be.BY_CATEGORY&&r&&(null==i?void 0:i.length)>0?c[r]=i.join(","):n===Be.CURATED&&(null==o?void 0:o.length)>0&&(c.include=o,c.orderby="include");const s=t(),u=e("core").getEntityRecords("postType",s,c);return{postsToShow:u,isLoading:e("core/data").isResolving("core","getEntityRecords",["postType",s,c])||void 0===u}}),c)},je=(e,t,n,o)=>{const r=e===t,i=f(null),a=()=>{var e;const t=null===(e=i.current)||void 0===e?void 0:e.querySelector(o);t&&(t.style.maxHeight=t.scrollHeight+"px")};return m((()=>{r?a():(()=>{var e;const t=null===(e=i.current)||void 0===e?void 0:e.querySelector(o);t&&(t.style.maxHeight=0)})()}),[r]),m((()=>{if(!r||!i.current)return;const e=new ResizeObserver((e=>{for(const t of e)t.contentBoxSize&&a()}));return e.observe(i.current),()=>e.disconnect()}),[r]),{blockRef:i,toggleContent:()=>{n(r?null:e)},isActive:r}},Ue=(e,n)=>{const{insertBlock:o}=G(k),{childBlocks:r,innerBlocksCount:i,selectedBlock:a,selectedBlockClientId:l,parentBlockId:c,getBlockRootClientId:s}=A((t=>{var n;const{getBlock:o,getBlockCount:r,getSelectedBlock:i,getSelectedBlockClientId:a,getBlockRootClientId:l}=t(k);return{childBlocks:(null===(n=o(e))||void 0===n?void 0:n.innerBlocks)||[],innerBlocksCount:r(e),selectedBlock:i(),selectedBlockClientId:a(),parentBlockId:l(a()),getBlockRootClientId:l}}),[e]),[u,d]=b(null);h((()=>{r.length>0&&!u&&d(r[0].clientId)}),[r,u]);const p=ae(null==a?void 0:a.clientId,e);h((()=>{p?d(p.clientId):e===c&&null!=a&&a.clientId&&d(a.clientId)}),[a,p,e,c]);const g=()=>{const t=function(t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i;const r=B(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return o(r,n,e),r}(n);d(t.clientId)};return{childBlocks:r,innerBlocksCount:i,selectedBlock:a,selectedBlockClientId:l,parentBlockId:c,activeItemId:u,setActiveItemId:d,getBlockRootClientId:s,AddNewTabButton:e=>{let{label:n="Add new tab"}=e;return y(t,{className:"add-new-child-btn",icon:R,label:n,onClick:g})}}},Qe=(e,t)=>{const n=A((e=>e("core/blocks").getBlockTypes()),[]);return v((()=>{var o;return null==n||null===(o=n.filter((n=>{const o=!(null==n||!n.parent),r=!(null==n||!n.ancestor),i=(null==n?void 0:n.parent)&&n.parent.includes(e),a=(null==n?void 0:n.ancestor)&&n.ancestor.includes(e);return!t.includes(n.name)&&(!o||i)&&(!r||a)})))||void 0===o?void 0:o.map((e=>e.name))}),[n,t,e])},_e=e=>A((t=>{const n=t(k).getBlock(e),o=t(k).getBlockRootClientId(e),r=o?t(k).getBlock(o):null,i=r?r.innerBlocks.findIndex((t=>t.clientId===e)):-1;return{block:n,parentBlock:r,position:i}}),[e]),Ke=e=>{const t=A((e=>e("core/blocks").getBlockTypes()),[]);return v((()=>{var n;return null==t||null===(n=t.filter((t=>e(t))))||void 0===n?void 0:n.map((e=>e.name))}),[t,e])},$e=e=>{let{label:t="Color",value:r,attributeName:i,setAttributes:a,allowedColors:l}=e;const c=ce(l),s=le(c,a);return y(n,{label:t,children:y(o,{colors:c,value:r,disableCustomColors:!0,onChange:e=>s(e,i)})})},qe=e=>{let{imageId:n,imageUrl:o,imageAlt:i,svgCode:a,onSelect:l,onRemove:c}=e;const s=n&&o,u=s&&a;return y(O,{children:y(X,{onSelect:l,allowedTypes:["image"],value:n,render:e=>{let{open:n}=e;return s?C("div",{className:"bc-image-wrapper",children:[s&&(u?y("div",{className:"svg-container",dangerouslySetInnerHTML:{__html:a}}):y("img",{src:o,alt:i||"icon"})),C("div",{className:"bc-image-wrapper__actions",children:[y(t,{className:"bc-image-wrapper__btn bc-image-wrapper__replace-btn",type:"button",onClick:n,children:y(r,{icon:Z,size:20,className:"bc-image-wrapper__btn-icon"})}),y(t,{className:"bc-image-wrapper__btn bc-image-wrapper__remove-btn",type:"button",onClick:c,children:y(r,{icon:H,size:20,className:"bc-image-wrapper__btn-icon"})})]}),y("div",{className:"bc-image-wrapper__overlay"})]}):y(E,{icon:"format-image",onSelect:l,allowedTypes:["image","image/svg+xml"],labels:{title:"Icon Image"}})}})})},et=e=>{let{imageId:n,imageUrl:o,imageAlt:r,placeholder:i=!1,onSelectImage:a,onRemoveImage:l,className:c=""}=e;const s=n&&o;return y(O,{children:y(X,{onSelect:a,allowedTypes:["image"],value:n,render:e=>{let{open:n}=e;return s?C("div",{className:"bc-image-wrapper ".concat(c),children:[y("img",{src:o,alt:r,onClick:n}),C("div",{className:"bc-image-wrapper__actions",children:[y(t,{className:"bc-image-wrapper__btn bc-image-wrapper__replace-btn",type:"button",onClick:n,children:"Replace"}),y(t,{className:"bc-image-wrapper__btn bc-image-wrapper__remove-btn",type:"button",onClick:l,children:"Remove"})]}),y("div",{className:"bc-image-wrapper__overlay"})]}):i?y(E,{className:"media-placeholder",icon:"format-image",onSelect:a,allowedTypes:["image"],labels:{title:"Image",instructions:"Upload an image file or pick one from your media library."}}):null}})})},tt=e=>{let{url:t={value:"#",attrName:"linkSource"},isOpenInNewTab:o={value:!1,attrName:"linkIsOpenInNewTab"},setAttributes:r,label:a="Source"}=e;return C(x,{children:[y(n,{label:a,children:y(S,{className:"bc-url-input",value:t.value,onChange:e=>r({[t.attrName]:e})})}),y(i,{checked:o.value,label:"Open in a new tab",onChange:e=>r({[o.attrName]:e})})]})},nt=e=>{let{imageId:n,imageUrl:o,onImageClick:r,onRemoveClick:i,onSelectClick:a,selectButtonLabel:l="Select Image",removeButtonLabel:c="Remove Image"}=e;return n&&o?C(x,{children:[y("div",{className:"bc-selected-media-wrapper",children:y("img",{src:o,className:"bc-selected-media bc-selected-media--image",alt:"Selected Image",onClick:r})}),y(t,{className:"bc-remove-btn",onClick:i,isSecondary:!0,isDestructive:!0,children:c})]}):y(t,{variant:"secondary",onClick:a,className:"bc-select-btn",children:l})},ot=e=>{let{videoId:n,videoUrl:o,onRemoveClick:r,onSelectClick:i,selectButtonLabel:a="Select Video",removeButtonLabel:l="Remove Video"}=e;return n&&o?C(x,{children:[y("div",{className:"bc-selected-media-wrapper",children:y("video",{src:o,className:"bc-selected-media bc-selected-media--video",controls:!0})}),y(t,{className:"bc-remove-btn",onClick:r,isSecondary:!0,isDestructive:!0,children:l})]}):y(t,{variant:"secondary",onClick:i,className:"bc-select-btn",children:a})},rt=e=>{let{animationFileId:n,animationFileUrl:o,animationFileName:i,onSelectClick:a,onRemoveClick:l,selectButtonLabel:c="Select File",removeButtonLabel:s="Remove File"}=e;return n&&o?C(x,{children:[C("div",{className:"bc-animation-block-json-file",onClick:a,children:[y(r,{icon:L,size:36}),y("span",{children:i})]}),y(t,{variant:"secondary",isDestructive:!0,className:"bc-remove-btn",onClick:l,children:s})]}):y(t,{variant:"secondary",onClick:a,children:c})},it=e=>{let{mediaId:t,mediaUrl:n,mediaFileName:o="",onSelect:r,onRemove:i,type:a=Te.IMAGE,selectButtonLabel:l,removeButtonLabel:c,...s}=e;if(a===Te.IMAGE)return y(O,{children:y(X,{onSelect:r,allowedTypes:["image","image/svg+xml"],accept:"image/*",value:t,render:e=>{let{open:o}=e;return y(nt,{imageId:t,imageUrl:n,onImageClick:o,onSelectClick:o,onRemoveClick:i,selectButtonLabel:l,removeButtonLabel:c})},...s})});if(a===Te.VIDEO)return y(O,{children:y(X,{onSelect:r,allowedTypes:["video"],value:t,render:e=>{let{open:o}=e;return y(ot,{videoId:t,videoUrl:n,onSelectClick:o,onRemoveClick:i,selectButtonLabel:l,removeButtonLabel:c})},...s})});if(a===Te.ANIMATION)return y(O,{children:y(X,{onSelect:r,allowedTypes:["application/json","text/plain","application/lottie"],value:t,render:e=>{let{open:r}=e;return y(rt,{animationFileId:t,animationFileUrl:n,animationFileName:o,onSelectClick:r,onRemoveClick:i,selectButtonLabel:l,removeButtonLabel:c})},...s})});throw new Error("Unrecognized media type.")};function at(){return at=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},at.apply(null,arguments)}function lt(e){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lt(e)}function ct(e){var t=function(e,t){if("object"!=lt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=lt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lt(t)?t:t+""}function st(e,t,n){return(t=ct(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){st(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ct(o.key),o)}}function bt(e,t,n){return t&&gt(e.prototype,t),n&&gt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ft(e,t){return ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ft(e,t)}function mt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ft(e,t)}function ht(e){return ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ht(e)}function vt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vt=function(){return!!e})()}function It(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yt(e,t){if(t&&("object"==lt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return It(e)}function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function xt(e,t){if(e){if("string"==typeof e)return Ct(e,t);var n={}.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)?Ct(e,t):void 0}}function At(e){return function(e){if(Array.isArray(e))return Ct(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var wt=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{o.insertRule(e,o.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Gt="-ms-",Nt="-moz-",Bt="-webkit-",Tt="comm",Wt="rule",Vt="decl",kt="@keyframes",Ot=Math.abs,Xt=String.fromCharCode,Et=Object.assign;function St(e){return e.trim()}function Rt(e,t,n){return e.replace(t,n)}function Zt(e,t){return e.indexOf(t)}function Ht(e,t){return 0|e.charCodeAt(t)}function Lt(e,t,n){return e.slice(t,n)}function Pt(e){return e.length}function Ft(e){return e.length}function Mt(e,t){return t.push(e),e}var Dt=1,Yt=1,Jt=0,zt=0,jt=0,Ut="";function Qt(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Dt,column:Yt,length:a,return:""}}function _t(e,t){return Et(Qt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Kt(){return jt=zt>0?Ht(Ut,--zt):0,Yt--,10===jt&&(Yt=1,Dt--),jt}function $t(){return jt=zt<Jt?Ht(Ut,zt++):0,Yt++,10===jt&&(Yt=1,Dt++),jt}function qt(){return Ht(Ut,zt)}function en(){return zt}function tn(e,t){return Lt(Ut,e,t)}function nn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function on(e){return Dt=Yt=1,Jt=Pt(Ut=e),zt=0,[]}function rn(e){return Ut="",e}function an(e){return St(tn(zt-1,sn(91===e?e+2:40===e?e+1:e)))}function ln(e){for(;(jt=qt())&&jt<33;)$t();return nn(e)>2||nn(jt)>3?"":" "}function cn(e,t){for(;--t&&$t()&&!(jt<48||jt>102||jt>57&&jt<65||jt>70&&jt<97););return tn(e,en()+(t<6&&32==qt()&&32==$t()))}function sn(e){for(;$t();)switch(jt){case e:return zt;case 34:case 39:34!==e&&39!==e&&sn(jt);break;case 40:41===e&&sn(e);break;case 92:$t()}return zt}function un(e,t){for(;$t()&&e+jt!==57&&(e+jt!==84||47!==qt()););return"/*"+tn(t,zt-1)+"*"+Xt(47===e?e:$t())}function dn(e){for(;!nn(qt());)$t();return tn(e,zt)}function pn(e){return rn(gn("",null,null,null,[""],e=on(e),0,[0],e))}function gn(e,t,n,o,r,i,a,l,c){for(var s=0,u=0,d=a,p=0,g=0,b=0,f=1,m=1,h=1,v=0,I="",y=r,C=i,x=o,A=I;m;)switch(b=v,v=$t()){case 40:if(108!=b&&58==Ht(A,d-1)){-1!=Zt(A+=Rt(an(v),"&","&\f"),"&\f")&&(h=-1);break}case 34:case 39:case 91:A+=an(v);break;case 9:case 10:case 13:case 32:A+=ln(b);break;case 92:A+=cn(en()-1,7);continue;case 47:switch(qt()){case 42:case 47:Mt(fn(un($t(),en()),t,n),c);break;default:A+="/"}break;case 123*f:l[s++]=Pt(A)*h;case 125*f:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==h&&(A=Rt(A,/\f/g,"")),g>0&&Pt(A)-d&&Mt(g>32?mn(A+";",o,n,d-1):mn(Rt(A," ","")+";",o,n,d-2),c);break;case 59:A+=";";default:if(Mt(x=bn(A,t,n,s,u,r,l,I,y=[],C=[],d),i),123===v)if(0===u)gn(A,t,x,x,y,i,d,l,C);else switch(99===p&&110===Ht(A,3)?100:p){case 100:case 108:case 109:case 115:gn(e,x,x,o&&Mt(bn(e,x,x,0,0,r,l,I,r,y=[],d),C),r,C,d,l,o?y:C);break;default:gn(A,x,x,x,[""],C,0,l,C)}}s=u=g=0,f=h=1,I=A="",d=a;break;case 58:d=1+Pt(A),g=b;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==Kt())continue;switch(A+=Xt(v),v*f){case 38:h=u>0?1:(A+="\f",-1);break;case 44:l[s++]=(Pt(A)-1)*h,h=1;break;case 64:45===qt()&&(A+=an($t())),p=qt(),u=d=Pt(I=A+=dn(en())),v++;break;case 45:45===b&&2==Pt(A)&&(f=0)}}return i}function bn(e,t,n,o,r,i,a,l,c,s,u){for(var d=r-1,p=0===r?i:[""],g=Ft(p),b=0,f=0,m=0;b<o;++b)for(var h=0,v=Lt(e,d+1,d=Ot(f=a[b])),I=e;h<g;++h)(I=St(f>0?p[h]+" "+v:Rt(v,/&\f/g,p[h])))&&(c[m++]=I);return Qt(e,t,n,0===r?Wt:l,c,s,u)}function fn(e,t,n){return Qt(e,t,n,Tt,Xt(jt),Lt(e,2,-2),0)}function mn(e,t,n,o){return Qt(e,t,n,Vt,Lt(e,0,o),Lt(e,o+1,-1),o)}function hn(e,t){for(var n="",o=Ft(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function vn(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Vt:return e.return=e.return||e.value;case Tt:return"";case kt:return e.return=e.value+"{"+hn(e.children,o)+"}";case Wt:e.value=e.props.join(",")}return Pt(n=hn(e.children,o))?e.return=e.value+"{"+n+"}":""}function In(e){var t=Ft(e);return function(n,o,r,i){for(var a="",l=0;l<t;l++)a+=e[l](n,o,r,i)||"";return a}}function yn(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Cn=function(e,t,n){for(var o=0,r=0;o=r,r=qt(),38===o&&12===r&&(t[n]=1),!nn(r);)$t();return tn(e,zt)},xn=function(e,t){return rn(function(e,t){var n=-1,o=44;do{switch(nn(o)){case 0:38===o&&12===qt()&&(t[n]=1),e[n]+=Cn(zt-1,t,n);break;case 2:e[n]+=an(o);break;case 4:if(44===o){e[++n]=58===qt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Xt(o)}}while(o=$t());return e}(on(e),t))},An=new WeakMap,wn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||An.get(n))&&!o){An.set(e,!0);for(var r=[],i=xn(t,r),a=n.props,l=0,c=0;l<i.length;l++)for(var s=0;s<a.length;s++,c++)e.props[c]=r[l]?i[l].replace(/&\f/g,a[s]):a[s]+" "+i[l]}}},Gn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Nn=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},Bn=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Tn=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Wn=function(e,t,n){Bn(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Tn(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!Bn(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Tn(e)))};function Vn(e,t){switch(function(e,t){return 45^Ht(e,0)?(((t<<2^Ht(e,0))<<2^Ht(e,1))<<2^Ht(e,2))<<2^Ht(e,3):0}(e,t)){case 5103:return Bt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Bt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Bt+e+Nt+e+Gt+e+e;case 6828:case 4268:return Bt+e+Gt+e+e;case 6165:return Bt+e+Gt+"flex-"+e+e;case 5187:return Bt+e+Rt(e,/(\w+).+(:[^]+)/,Bt+"box-$1$2"+Gt+"flex-$1$2")+e;case 5443:return Bt+e+Gt+"flex-item-"+Rt(e,/flex-|-self/,"")+e;case 4675:return Bt+e+Gt+"flex-line-pack"+Rt(e,/align-content|flex-|-self/,"")+e;case 5548:return Bt+e+Gt+Rt(e,"shrink","negative")+e;case 5292:return Bt+e+Gt+Rt(e,"basis","preferred-size")+e;case 6060:return Bt+"box-"+Rt(e,"-grow","")+Bt+e+Gt+Rt(e,"grow","positive")+e;case 4554:return Bt+Rt(e,/([^-])(transform)/g,"$1"+Bt+"$2")+e;case 6187:return Rt(Rt(Rt(e,/(zoom-|grab)/,Bt+"$1"),/(image-set)/,Bt+"$1"),e,"")+e;case 5495:case 3959:return Rt(e,/(image-set\([^]*)/,Bt+"$1$`$1");case 4968:return Rt(Rt(e,/(.+:)(flex-)?(.*)/,Bt+"box-pack:$3"+Gt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Bt+e+e;case 4095:case 3583:case 4068:case 2532:return Rt(e,/(.+)-inline(.+)/,Bt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Pt(e)-1-t>6)switch(Ht(e,t+1)){case 109:if(45!==Ht(e,t+4))break;case 102:return Rt(e,/(.+:)(.+)-([^]+)/,"$1"+Bt+"$2-$3$1"+Nt+(108==Ht(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Zt(e,"stretch")?Vn(Rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ht(e,t+1))break;case 6444:switch(Ht(e,Pt(e)-3-(~Zt(e,"!important")&&10))){case 107:return Rt(e,":",":"+Bt)+e;case 101:return Rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Bt+(45===Ht(e,14)?"inline-":"")+"box$3$1"+Bt+"$2$3$1"+Gt+"$2box$3")+e}break;case 5936:switch(Ht(e,t+11)){case 114:return Bt+e+Gt+Rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Bt+e+Gt+Rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Bt+e+Gt+Rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Bt+e+Gt+e+e}return e}var kn,On,Xn,En="undefined"!=typeof document,Sn=En?void 0:(kn=function(){return yn((function(){var e={};return function(t){return e[t]}}))},On=new WeakMap,function(e){if(On.has(e))return On.get(e);var t=kn(e);return On.set(e,t),t}),Rn=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case Vt:e.return=Vn(e.value,e.length);break;case kt:return hn([_t(e,{value:Rt(e.value,"@","@"+Bt)})],o);case Wt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hn([_t(e,{props:[Rt(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return hn([_t(e,{props:[Rt(t,/:(plac\w+)/,":"+Bt+"input-$1")]}),_t(e,{props:[Rt(t,/:(plac\w+)/,":-moz-$1")]}),_t(e,{props:[Rt(t,/:(plac\w+)/,Gt+"input-$1")]})],o)}return""}))}}],Zn=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(En&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||Rn;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var r,i,a={},l=[];En&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)})));var c,s=[wn,Gn];if("production"!==process.env.NODE_ENV&&s.push(function(e){return function(t,n,o){if("rule"===t.type&&!e.compat){var r=t.value.match(/(:first|:nth|:nth-last)-child/g);if(r){for(var i=t.parent?t.parent.children:o,a=i.length-1;a>=0;a--){var l=i[a];if(l.line<t.line)break;if(l.column<t.column){if(Nn(l))return;break}}r.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return h.compat}}),Wn),En){var u,d=[vn,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==Tt&&u.insert(e.value+"{}"))}:(c=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],p=In(s.concat(o,d));i=function(e,t,n,o){u=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(u={insert:function(e){n.insert(e+t.map)}}),hn(pn(e?e+"{"+t.styles+"}":t.styles),p),o&&(h.inserted[t.name]=!0)}}else{var g=[vn],b=In(s.concat(o,g)),f=Sn(o)(t),m=function(e,t){var n=t.name;return void 0===f[n]&&(f[n]=hn(pn(e?e+"{"+t.styles+"}":t.styles),b)),f[n]};i=function(e,t,n,o){var r=t.name,i=m(e,t);return void 0===h.compat?(o&&(h.inserted[r]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?i+t.map:i):o?void(h.inserted[r]=i):i}}var h={key:t,sheet:new wt({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(l),h},Hn={exports:{}},Ln={};var Pn,Fn,Mn={};
7
+ !function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var i in e)t.call(e,i)&&e[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Se);var Re=Ve(Se.exports);const Ze=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=await V({path:"/wp/v2/".concat(t,"?search=").concat(encodeURIComponent(e))});return n?null==o?void 0:o.map(n):null==o?void 0:o.map((e=>{var t;const n=document.createElement("div");return n.innerHTML=null==e||null===(t=e.title)||void 0===t?void 0:t.rendered,{value:e.id,label:n.textContent||n.innerText||""}}))},He=e=>Ee(e,{replacement:"-",lower:!0,strict:!0}),Le=e=>{if(e.startsWith("<?xml")){const t=e.indexOf("?>");-1!==t&&(e=e.substring(t+2))}return e=e.trim()},Pe="image/svg+xml",Fe=async e=>{const t=(null==e?void 0:e.mime)===Pe||(null==e?void 0:e.mime_type)===Pe,n={isSvg:t,imageUrl:null,svgCode:null,width:null==e?void 0:e.width,height:null==e?void 0:e.height};return t?n.svgCode=await fetch(e.url).then((e=>e.text())).then(Le):n.imageUrl=null==e?void 0:e.url,n},Me=e=>{if(!e)return"";let t=e;const n=e.match(/^\+\d(\d{3})(\d{3})(\d{4})$/);return n&&(t="".concat(n[1],"-").concat(n[2],"-").concat(n[3])),t},De=e=>{const{street_number:t="",street_name:n="",city:o="",state_short:r="",post_code:i=""}=e;let a=["".concat(t," ").concat(n).trim()];o&&a.push("<br>".concat(o));let l=[];r&&l.push(r),i&&l.push(i);let c=l.join(" ");return c&&a.push("".concat(a.length>0?", ":"").concat(c)),a.join("")},Ye=e=>{const t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""},Je=function(e){var t,n,o,r,i,a,l,c,s,u,d,p,g,b,f,m;let h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"md:",v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Re({["".concat(h,"mt-").concat(null==e||null===(t=e.desktop)||void 0===t||null===(t=t.margin)||void 0===t?void 0:t.top)]:-1!==(null==e||null===(n=e.desktop)||void 0===n||null===(n=n.margin)||void 0===n?void 0:n.top),["".concat(h,"mb-").concat(null==e||null===(o=e.desktop)||void 0===o||null===(o=o.margin)||void 0===o?void 0:o.bottom)]:-1!==(null==e||null===(r=e.desktop)||void 0===r||null===(r=r.margin)||void 0===r?void 0:r.bottom),["".concat(h,"pt-").concat(null==e||null===(i=e.desktop)||void 0===i||null===(i=i.padding)||void 0===i?void 0:i.top)]:-1!==(null==e||null===(a=e.desktop)||void 0===a||null===(a=a.padding)||void 0===a?void 0:a.top),["".concat(h,"pb-").concat(null==e||null===(l=e.desktop)||void 0===l||null===(l=l.padding)||void 0===l?void 0:l.bottom)]:-1!==(null==e||null===(c=e.desktop)||void 0===c||null===(c=c.padding)||void 0===c?void 0:c.bottom),["".concat(v,"mt-").concat(null==e||null===(s=e.mobile)||void 0===s||null===(s=s.margin)||void 0===s?void 0:s.top)]:-1!==(null==e||null===(u=e.mobile)||void 0===u||null===(u=u.margin)||void 0===u?void 0:u.top),["".concat(v,"mb-").concat(null==e||null===(d=e.mobile)||void 0===d||null===(d=d.margin)||void 0===d?void 0:d.bottom)]:-1!==(null==e||null===(p=e.mobile)||void 0===p||null===(p=p.margin)||void 0===p?void 0:p.bottom),["".concat(v,"pt-").concat(null==e||null===(g=e.mobile)||void 0===g||null===(g=g.padding)||void 0===g?void 0:g.top)]:-1!==(null==e||null===(b=e.mobile)||void 0===b||null===(b=b.padding)||void 0===b?void 0:b.top),["".concat(v,"pb-").concat(null==e||null===(f=e.mobile)||void 0===f||null===(f=f.padding)||void 0===f?void 0:f.bottom)]:-1!==(null==e||null===(m=e.mobile)||void 0===m||null===(m=m.padding)||void 0===m?void 0:m.bottom)})},ze=e=>{const{getPostType:t,queryType:n,curatedPostsIds:o=[],categoriesTaxonomy:r,curatedCategoriesIds:i=[],numberOfPosts:a=-1,extraQueryArgs:l,dependencies:c}=e;return A((e=>{const c={per_page:a,order:"desc",orderby:"date",_embed:!0,...l};n===Be.BY_CATEGORY&&r&&(null==i?void 0:i.length)>0?c[r]=i.join(","):n===Be.CURATED&&(null==o?void 0:o.length)>0&&(c.include=o,c.orderby="include");const s=t(),u=e("core").getEntityRecords("postType",s,c);return{postsToShow:u,isLoading:e("core/data").isResolving("core","getEntityRecords",["postType",s,c])||void 0===u}}),c)},je=(e,t,n,o)=>{const r=e===t,i=f(null),a=()=>{var e;const t=null===(e=i.current)||void 0===e?void 0:e.querySelector(o);t&&(t.style.maxHeight=t.scrollHeight+"px")};return m((()=>{r?a():(()=>{var e;const t=null===(e=i.current)||void 0===e?void 0:e.querySelector(o);t&&(t.style.maxHeight=0)})()}),[r]),m((()=>{if(!r||!i.current)return;const e=new ResizeObserver((e=>{for(const t of e)t.contentBoxSize&&a()}));return e.observe(i.current),()=>e.disconnect()}),[r]),{blockRef:i,toggleContent:()=>{n(r?null:e)},isActive:r}},Ue=(e,n)=>{const{insertBlock:o}=G(k),{childBlocks:r,innerBlocksCount:i,selectedBlock:a,selectedBlockClientId:l,parentBlockId:c,getBlockRootClientId:s}=A((t=>{var n;const{getBlock:o,getBlockCount:r,getSelectedBlock:i,getSelectedBlockClientId:a,getBlockRootClientId:l}=t(k);return{childBlocks:(null===(n=o(e))||void 0===n?void 0:n.innerBlocks)||[],innerBlocksCount:r(e),selectedBlock:i(),selectedBlockClientId:a(),parentBlockId:l(a()),getBlockRootClientId:l}}),[e]),[u,d]=b(null);h((()=>{r.length>0&&!u&&d(r[0].clientId)}),[r,u]);const p=ae(null==a?void 0:a.clientId,e);h((()=>{p?d(p.clientId):e===c&&null!=a&&a.clientId&&d(a.clientId)}),[a,p,e,c]);const g=()=>{const t=function(t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i;const r=B(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return o(r,n,e),r}(n);d(t.clientId)};return{childBlocks:r,innerBlocksCount:i,selectedBlock:a,selectedBlockClientId:l,parentBlockId:c,activeItemId:u,setActiveItemId:d,getBlockRootClientId:s,AddNewTabButton:e=>{let{label:n="Add new tab"}=e;return y(t,{className:"add-new-child-btn",icon:R,label:n,onClick:g})}}},Qe=(e,t)=>{const n=A((e=>e("core/blocks").getBlockTypes()),[]);return v((()=>{var o;return null==n||null===(o=n.filter((n=>{const o=!(null==n||!n.parent),r=!(null==n||!n.ancestor),i=(null==n?void 0:n.parent)&&n.parent.includes(e),a=(null==n?void 0:n.ancestor)&&n.ancestor.includes(e);return!t.includes(n.name)&&(!o||i)&&(!r||a)})))||void 0===o?void 0:o.map((e=>e.name))}),[n,t,e])},_e=e=>A((t=>{const n=t(k).getBlock(e),o=t(k).getBlockRootClientId(e),r=o?t(k).getBlock(o):null,i=r?r.innerBlocks.findIndex((t=>t.clientId===e)):-1;return{block:n,parentBlock:r,position:i}}),[e]),Ke=e=>{const t=A((e=>e("core/blocks").getBlockTypes()),[]);return v((()=>{var n;return null==t||null===(n=t.filter((t=>e(t))))||void 0===n?void 0:n.map((e=>e.name))}),[t,e])},$e=e=>{let{label:t="Color",value:r,attributeName:i,setAttributes:a,allowedColors:l}=e;const c=ce(l),s=le(c,a);return y(n,{label:t,children:y(o,{colors:c,value:r,disableCustomColors:!0,onChange:e=>s(e,i)})})},qe=e=>{let{imageId:n,imageUrl:o,imageAlt:i,svgCode:a,onSelect:l,onRemove:c}=e;const s=n&&o,u=s&&a;return y(O,{children:y(X,{onSelect:l,allowedTypes:["image"],value:n,render:e=>{let{open:n}=e;return s?C("div",{className:"bc-image-wrapper",children:[s&&(u?y("div",{className:"svg-container",dangerouslySetInnerHTML:{__html:a}}):y("img",{src:o,alt:i||"icon"})),C("div",{className:"bc-image-wrapper__actions",children:[y(t,{className:"bc-image-wrapper__btn bc-image-wrapper__replace-btn",type:"button",onClick:n,children:y(r,{icon:Z,size:20,className:"bc-image-wrapper__btn-icon"})}),y(t,{className:"bc-image-wrapper__btn bc-image-wrapper__remove-btn",type:"button",onClick:c,children:y(r,{icon:H,size:20,className:"bc-image-wrapper__btn-icon"})})]}),y("div",{className:"bc-image-wrapper__overlay"})]}):y(E,{icon:"format-image",onSelect:l,allowedTypes:["image","image/svg+xml"],labels:{title:"Icon Image"}})}})})},et=e=>{let{imageId:n,imageUrl:o,imageAlt:r,placeholder:i=!1,onSelectImage:a,onRemoveImage:l,className:c=""}=e;const s=n&&o;return y(O,{children:y(X,{onSelect:a,allowedTypes:["image"],value:n,render:e=>{let{open:n}=e;return s?C("div",{className:"bc-image-wrapper ".concat(c),children:[y("img",{src:o,alt:r,onClick:n}),C("div",{className:"bc-image-wrapper__actions",children:[y(t,{className:"bc-image-wrapper__btn bc-image-wrapper__replace-btn",type:"button",onClick:n,children:"Replace"}),y(t,{className:"bc-image-wrapper__btn bc-image-wrapper__remove-btn",type:"button",onClick:l,children:"Remove"})]}),y("div",{className:"bc-image-wrapper__overlay"})]}):i?y(E,{className:"media-placeholder",icon:"format-image",onSelect:a,allowedTypes:["image"],labels:{title:"Image",instructions:"Upload an image file or pick one from your media library."}}):null}})})},tt=e=>{let{url:t={value:"#",attrName:"linkSource"},isOpenInNewTab:o={value:!1,attrName:"linkIsOpenInNewTab"},setAttributes:r,label:a="Source"}=e;return C(x,{children:[y(n,{label:a,children:y(S,{className:"bc-url-input",value:t.value,onChange:e=>r({[t.attrName]:e})})}),y(i,{checked:o.value,label:"Open in a new tab",onChange:e=>r({[o.attrName]:e})})]})},nt=e=>{let{imageId:n,imageUrl:o,onImageClick:r,onRemoveClick:i,onSelectClick:a,selectButtonLabel:l="Select Image",removeButtonLabel:c="Remove Image"}=e;return n&&o?C(x,{children:[y("div",{className:"bc-selected-media-wrapper",children:y("img",{src:o,className:"bc-selected-media bc-selected-media--image",alt:"Selected Image",onClick:r})}),y(t,{className:"bc-remove-btn",onClick:i,isSecondary:!0,isDestructive:!0,children:c})]}):y(t,{variant:"secondary",onClick:a,className:"bc-select-btn",children:l})},ot=e=>{let{videoId:n,videoUrl:o,onRemoveClick:r,onSelectClick:i,selectButtonLabel:a="Select Video",removeButtonLabel:l="Remove Video"}=e;return n&&o?C(x,{children:[y("div",{className:"bc-selected-media-wrapper",children:y("video",{src:o,className:"bc-selected-media bc-selected-media--video",controls:!0})}),y(t,{className:"bc-remove-btn",onClick:r,isSecondary:!0,isDestructive:!0,children:l})]}):y(t,{variant:"secondary",onClick:i,className:"bc-select-btn",children:a})},rt=e=>{let{animationFileId:n,animationFileUrl:o,animationFileName:i,onSelectClick:a,onRemoveClick:l,selectButtonLabel:c="Select File",removeButtonLabel:s="Remove File"}=e;return n&&o?C(x,{children:[C("div",{className:"bc-animation-block-json-file",onClick:a,children:[y(r,{icon:L,size:36}),y("span",{children:i})]}),y(t,{variant:"secondary",isDestructive:!0,className:"bc-remove-btn",onClick:l,children:s})]}):y(t,{variant:"secondary",onClick:a,children:c})},it=e=>{let{mediaId:t,mediaUrl:n,mediaFileName:o="",onSelect:r,onRemove:i,type:a=Te.IMAGE,selectButtonLabel:l,removeButtonLabel:c,...s}=e;if(a===Te.IMAGE)return y(O,{children:y(X,{onSelect:r,allowedTypes:["image","image/svg+xml"],accept:"image/*",value:t,render:e=>{let{open:o}=e;return y(nt,{imageId:t,imageUrl:n,onImageClick:o,onSelectClick:o,onRemoveClick:i,selectButtonLabel:l,removeButtonLabel:c})},...s})});if(a===Te.VIDEO)return y(O,{children:y(X,{onSelect:r,allowedTypes:["video"],value:t,render:e=>{let{open:o}=e;return y(ot,{videoId:t,videoUrl:n,onSelectClick:o,onRemoveClick:i,selectButtonLabel:l,removeButtonLabel:c})},...s})});if(a===Te.ANIMATION)return y(O,{children:y(X,{onSelect:r,allowedTypes:["application/json","text/plain","application/lottie"],value:t,render:e=>{let{open:r}=e;return y(rt,{animationFileId:t,animationFileUrl:n,animationFileName:o,onSelectClick:r,onRemoveClick:i,selectButtonLabel:l,removeButtonLabel:c})},...s})});throw new Error("Unrecognized media type.")};function at(){return at=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},at.apply(null,arguments)}function lt(e){return lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lt(e)}function ct(e){var t=function(e,t){if("object"!=lt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=lt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lt(t)?t:t+""}function st(e,t,n){return(t=ct(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){st(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ct(o.key),o)}}function bt(e,t,n){return t&&gt(e.prototype,t),n&&gt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ft(e,t){return ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ft(e,t)}function mt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ft(e,t)}function ht(e){return ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ht(e)}function vt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vt=function(){return!!e})()}function It(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yt(e,t){if(t&&("object"==lt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return It(e)}function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function xt(e,t){if(e){if("string"==typeof e)return Ct(e,t);var n={}.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)?Ct(e,t):void 0}}function At(e){return function(e){if(Array.isArray(e))return Ct(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var wt=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{o.insertRule(e,o.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Gt="-ms-",Nt="-moz-",Bt="-webkit-",Tt="comm",Wt="rule",Vt="decl",kt="@keyframes",Ot=Math.abs,Xt=String.fromCharCode,Et=Object.assign;function St(e){return e.trim()}function Rt(e,t,n){return e.replace(t,n)}function Zt(e,t){return e.indexOf(t)}function Ht(e,t){return 0|e.charCodeAt(t)}function Lt(e,t,n){return e.slice(t,n)}function Pt(e){return e.length}function Ft(e){return e.length}function Mt(e,t){return t.push(e),e}var Dt=1,Yt=1,Jt=0,zt=0,jt=0,Ut="";function Qt(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Dt,column:Yt,length:a,return:""}}function _t(e,t){return Et(Qt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Kt(){return jt=zt>0?Ht(Ut,--zt):0,Yt--,10===jt&&(Yt=1,Dt--),jt}function $t(){return jt=zt<Jt?Ht(Ut,zt++):0,Yt++,10===jt&&(Yt=1,Dt++),jt}function qt(){return Ht(Ut,zt)}function en(){return zt}function tn(e,t){return Lt(Ut,e,t)}function nn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function on(e){return Dt=Yt=1,Jt=Pt(Ut=e),zt=0,[]}function rn(e){return Ut="",e}function an(e){return St(tn(zt-1,sn(91===e?e+2:40===e?e+1:e)))}function ln(e){for(;(jt=qt())&&jt<33;)$t();return nn(e)>2||nn(jt)>3?"":" "}function cn(e,t){for(;--t&&$t()&&!(jt<48||jt>102||jt>57&&jt<65||jt>70&&jt<97););return tn(e,en()+(t<6&&32==qt()&&32==$t()))}function sn(e){for(;$t();)switch(jt){case e:return zt;case 34:case 39:34!==e&&39!==e&&sn(jt);break;case 40:41===e&&sn(e);break;case 92:$t()}return zt}function un(e,t){for(;$t()&&e+jt!==57&&(e+jt!==84||47!==qt()););return"/*"+tn(t,zt-1)+"*"+Xt(47===e?e:$t())}function dn(e){for(;!nn(qt());)$t();return tn(e,zt)}function pn(e){return rn(gn("",null,null,null,[""],e=on(e),0,[0],e))}function gn(e,t,n,o,r,i,a,l,c){for(var s=0,u=0,d=a,p=0,g=0,b=0,f=1,m=1,h=1,v=0,I="",y=r,C=i,x=o,A=I;m;)switch(b=v,v=$t()){case 40:if(108!=b&&58==Ht(A,d-1)){-1!=Zt(A+=Rt(an(v),"&","&\f"),"&\f")&&(h=-1);break}case 34:case 39:case 91:A+=an(v);break;case 9:case 10:case 13:case 32:A+=ln(b);break;case 92:A+=cn(en()-1,7);continue;case 47:switch(qt()){case 42:case 47:Mt(fn(un($t(),en()),t,n),c);break;default:A+="/"}break;case 123*f:l[s++]=Pt(A)*h;case 125*f:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==h&&(A=Rt(A,/\f/g,"")),g>0&&Pt(A)-d&&Mt(g>32?mn(A+";",o,n,d-1):mn(Rt(A," ","")+";",o,n,d-2),c);break;case 59:A+=";";default:if(Mt(x=bn(A,t,n,s,u,r,l,I,y=[],C=[],d),i),123===v)if(0===u)gn(A,t,x,x,y,i,d,l,C);else switch(99===p&&110===Ht(A,3)?100:p){case 100:case 108:case 109:case 115:gn(e,x,x,o&&Mt(bn(e,x,x,0,0,r,l,I,r,y=[],d),C),r,C,d,l,o?y:C);break;default:gn(A,x,x,x,[""],C,0,l,C)}}s=u=g=0,f=h=1,I=A="",d=a;break;case 58:d=1+Pt(A),g=b;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==Kt())continue;switch(A+=Xt(v),v*f){case 38:h=u>0?1:(A+="\f",-1);break;case 44:l[s++]=(Pt(A)-1)*h,h=1;break;case 64:45===qt()&&(A+=an($t())),p=qt(),u=d=Pt(I=A+=dn(en())),v++;break;case 45:45===b&&2==Pt(A)&&(f=0)}}return i}function bn(e,t,n,o,r,i,a,l,c,s,u){for(var d=r-1,p=0===r?i:[""],g=Ft(p),b=0,f=0,m=0;b<o;++b)for(var h=0,v=Lt(e,d+1,d=Ot(f=a[b])),I=e;h<g;++h)(I=St(f>0?p[h]+" "+v:Rt(v,/&\f/g,p[h])))&&(c[m++]=I);return Qt(e,t,n,0===r?Wt:l,c,s,u)}function fn(e,t,n){return Qt(e,t,n,Tt,Xt(jt),Lt(e,2,-2),0)}function mn(e,t,n,o){return Qt(e,t,n,Vt,Lt(e,0,o),Lt(e,o+1,-1),o)}function hn(e,t){for(var n="",o=Ft(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function vn(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Vt:return e.return=e.return||e.value;case Tt:return"";case kt:return e.return=e.value+"{"+hn(e.children,o)+"}";case Wt:e.value=e.props.join(",")}return Pt(n=hn(e.children,o))?e.return=e.value+"{"+n+"}":""}function In(e){var t=Ft(e);return function(n,o,r,i){for(var a="",l=0;l<t;l++)a+=e[l](n,o,r,i)||"";return a}}function yn(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Cn=function(e,t,n){for(var o=0,r=0;o=r,r=qt(),38===o&&12===r&&(t[n]=1),!nn(r);)$t();return tn(e,zt)},xn=function(e,t){return rn(function(e,t){var n=-1,o=44;do{switch(nn(o)){case 0:38===o&&12===qt()&&(t[n]=1),e[n]+=Cn(zt-1,t,n);break;case 2:e[n]+=an(o);break;case 4:if(44===o){e[++n]=58===qt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Xt(o)}}while(o=$t());return e}(on(e),t))},An=new WeakMap,wn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||An.get(n))&&!o){An.set(e,!0);for(var r=[],i=xn(t,r),a=n.props,l=0,c=0;l<i.length;l++)for(var s=0;s<a.length;s++,c++)e.props[c]=r[l]?i[l].replace(/&\f/g,a[s]):a[s]+" "+i[l]}}},Gn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Nn=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},Bn=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Tn=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Wn=function(e,t,n){Bn(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Tn(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!Bn(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Tn(e)))};function Vn(e,t){switch(function(e,t){return 45^Ht(e,0)?(((t<<2^Ht(e,0))<<2^Ht(e,1))<<2^Ht(e,2))<<2^Ht(e,3):0}(e,t)){case 5103:return Bt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Bt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Bt+e+Nt+e+Gt+e+e;case 6828:case 4268:return Bt+e+Gt+e+e;case 6165:return Bt+e+Gt+"flex-"+e+e;case 5187:return Bt+e+Rt(e,/(\w+).+(:[^]+)/,Bt+"box-$1$2"+Gt+"flex-$1$2")+e;case 5443:return Bt+e+Gt+"flex-item-"+Rt(e,/flex-|-self/,"")+e;case 4675:return Bt+e+Gt+"flex-line-pack"+Rt(e,/align-content|flex-|-self/,"")+e;case 5548:return Bt+e+Gt+Rt(e,"shrink","negative")+e;case 5292:return Bt+e+Gt+Rt(e,"basis","preferred-size")+e;case 6060:return Bt+"box-"+Rt(e,"-grow","")+Bt+e+Gt+Rt(e,"grow","positive")+e;case 4554:return Bt+Rt(e,/([^-])(transform)/g,"$1"+Bt+"$2")+e;case 6187:return Rt(Rt(Rt(e,/(zoom-|grab)/,Bt+"$1"),/(image-set)/,Bt+"$1"),e,"")+e;case 5495:case 3959:return Rt(e,/(image-set\([^]*)/,Bt+"$1$`$1");case 4968:return Rt(Rt(e,/(.+:)(flex-)?(.*)/,Bt+"box-pack:$3"+Gt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Bt+e+e;case 4095:case 3583:case 4068:case 2532:return Rt(e,/(.+)-inline(.+)/,Bt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Pt(e)-1-t>6)switch(Ht(e,t+1)){case 109:if(45!==Ht(e,t+4))break;case 102:return Rt(e,/(.+:)(.+)-([^]+)/,"$1"+Bt+"$2-$3$1"+Nt+(108==Ht(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Zt(e,"stretch")?Vn(Rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ht(e,t+1))break;case 6444:switch(Ht(e,Pt(e)-3-(~Zt(e,"!important")&&10))){case 107:return Rt(e,":",":"+Bt)+e;case 101:return Rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Bt+(45===Ht(e,14)?"inline-":"")+"box$3$1"+Bt+"$2$3$1"+Gt+"$2box$3")+e}break;case 5936:switch(Ht(e,t+11)){case 114:return Bt+e+Gt+Rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Bt+e+Gt+Rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Bt+e+Gt+Rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Bt+e+Gt+e+e}return e}var kn,On,Xn,En="undefined"!=typeof document,Sn=En?void 0:(kn=function(){return yn((function(){var e={};return function(t){return e[t]}}))},On=new WeakMap,function(e){if(On.has(e))return On.get(e);var t=kn(e);return On.set(e,t),t}),Rn=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case Vt:e.return=Vn(e.value,e.length);break;case kt:return hn([_t(e,{value:Rt(e.value,"@","@"+Bt)})],o);case Wt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hn([_t(e,{props:[Rt(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return hn([_t(e,{props:[Rt(t,/:(plac\w+)/,":"+Bt+"input-$1")]}),_t(e,{props:[Rt(t,/:(plac\w+)/,":-moz-$1")]}),_t(e,{props:[Rt(t,/:(plac\w+)/,Gt+"input-$1")]})],o)}return""}))}}],Zn=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(En&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||Rn;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var r,i,a={},l=[];En&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)})));var c,s=[wn,Gn];if("production"!==process.env.NODE_ENV&&s.push(function(e){return function(t,n,o){if("rule"===t.type&&!e.compat){var r=t.value.match(/(:first|:nth|:nth-last)-child/g);if(r){for(var i=t.parent?t.parent.children:o,a=i.length-1;a>=0;a--){var l=i[a];if(l.line<t.line)break;if(l.column<t.column){if(Nn(l))return;break}}r.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return h.compat}}),Wn),En){var u,d=[vn,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==Tt&&u.insert(e.value+"{}"))}:(c=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],p=In(s.concat(o,d));i=function(e,t,n,o){u=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(u={insert:function(e){n.insert(e+t.map)}}),hn(pn(e?e+"{"+t.styles+"}":t.styles),p),o&&(h.inserted[t.name]=!0)}}else{var g=[vn],b=In(s.concat(o,g)),f=Sn(o)(t),m=function(e,t){var n=t.name;return void 0===f[n]&&(f[n]=hn(pn(e?e+"{"+t.styles+"}":t.styles),b)),f[n]};i=function(e,t,n,o){var r=t.name,i=m(e,t);return void 0===h.compat?(o&&(h.inserted[r]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?i+t.map:i):o?void(h.inserted[r]=i):i}}var h={key:t,sheet:new wt({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(l),h},Hn={exports:{}},Ln={};var Pn,Fn,Mn={};
8
8
  /** @license React v16.13.1
9
9
  * react-is.development.js
10
10
  *