@secretstache/wordpress-gutenberg 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
package/build/index.css CHANGED
@@ -83,10 +83,10 @@
83
83
 
84
84
  .block-editor__container .add-new-child-btn {
85
85
  display: flex;
86
- margin: rem-calc(20) auto !important;
86
+ margin: 20px auto !important;
87
87
  align-items: center;
88
88
  flex-direction: column;
89
- height: rem-calc(50);
89
+ height: 50px;
90
90
  justify-content: center;
91
91
  width: 100%;
92
92
  user-select: text;
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import{ToggleControl as e,Button as t,BaseControl as n,ColorPalette as o,Icon as r,CheckboxControl as i,RadioControl as a,RangeControl as l,TabPanel as c,Notice as s,Spinner as u,Placeholder as d,SelectControl as p}from"@wordpress/components";import{useState as g,useRef as f,useEffect as b,useLayoutEffect as m}from"@wordpress/element";import{jsx as h,jsxs as v,Fragment as I}from"react/jsx-runtime";import{useSelect as y,useDispatch as C}from"@wordpress/data";import x from"@wordpress/api-fetch";import{store as A,MediaUploadCheck as w,MediaUpload as G,MediaPlaceholder as N,URLInput as W}from"@wordpress/block-editor";import{plus as B,edit as T,trash as V,page as O}from"@wordpress/icons";import*as X from"react";import{forwardRef as S,useContext as R,useLayoutEffect as E,useEffect as Z,useRef as k,useState as H,useMemo as P,useCallback as L,createContext as F,Component as D,Fragment as M,createRef as Y,createElement as J}from"react";import{createPortal as z,findDOMNode as j}from"react-dom";import{addFilter as U}from"@wordpress/hooks";const Q="Enable Preview",_="Please check this option to see how the block will actually look and behave on the frontend.",K=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{disabled:n=!1,label:o=Q,helpText:r=_}=t,[i,a]=g(!1),l=()=>a((e=>!e));return{isPreview:i,renderPreviewToggle:()=>h(e,{label:o,help:r,checked:i,onChange:l,disabled:n})}},$=e=>{let{isEnabled:t,setupSlider:n,dependencies:o}=e;const r=f(null),i=f(null);return b((()=>(t&&null!=r&&r.current&&(i.current=n(r.current)),()=>{var e;i.current&&(null===(e=i.current)||void 0===e||e.destroy(),i.current=null)})),[t,...o]),{sliderElRef:r,sliderInstance:i.current}},q=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return y((o=>{const{getBlock:r,getBlockRootClientId:i,getBlockHierarchyRootClientId:a}=o("core/block-editor");if(!e)return null;const{rootBlockId:l="",includeSelf:c=!1}=n;if(l){if(a(e)!==l)return null}let s=e,u=r(s);if(c&&(null==u?void 0:u.name)===t)return u;let d=i(s),p=r(d);for(;p&&(!l||d!==l)&&d;){if(p.name===t)return p;s=d,d=i(s),p=r(d)}return null}),[e,t,n.rootBlockId,n.includeSelf])},ee=(e,t)=>(n,o)=>{const r=e.find((e=>e.color===n));t({[o]:r?{value:n,slug:r.slug}:null})},te=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return y((t=>{var n;const{getSettings:o}=t("core/block-editor"),r=null===(n=o())||void 0===n?void 0:n.colors;return e.length>0?null==r?void 0:r.filter((t=>e.includes(t.slug))):r}),[])},ne=e=>(t,n)=>{e({[t]:n})},oe={linkLabel:{type:"string",default:""},linkSource:{type:"string",default:"#"},linkIsOpenInNewTab:{type:"boolean",default:!1}},re={media:{type:"object",default:{id:null,url:"",alt:"",filename:""}}},ie={title:{type:"string",default:"Title"},description:{type:"string",default:"Description"}},ae={animationFile:{type:"object",default:{id:null,url:null,name:null,filename:null,mime:null}},isAnimationLooped:{type:"boolean",default:!0}},le={curatedPosts:{type:"array",default:[],items:{type:"object",properties:{value:{type:"number"},label:{type:"string"}}}}},ce={curatedCategories:{type:"array",default:[],items:{type:"object",properties:{value:{type:"number"},label:{type:"string"}}}}},se={numberOfPosts:{type:"number",default:5}},ue=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={type:"string"};e&&(null==e?void 0:e.length)>0&&(i.enum=e,i.default=e[0]);let a={type:"string"};return t&&(null==t?void 0:t.length)>0&&(a.enum=[...t],a.default=t[0]),{dataSource:i,queryType:a,...n?le:{},...o?ce:{},...r?se:{}}},de={isIncludeBackgroundMedia:{type:"boolean",default:!1},backgroundMediaType:{type:"string",default:"color"},backgroundColor:{type:"object",default:{value:"#ffffff",slug:"white"}},backgroundImage:{type:"object",default:{id:null,url:""}},backgroundVideo:{type:"object",default:{id:null,url:""}},isIncludeOverlay:{type:"boolean",default:!1}},pe={spacing:{type:"object",default:{margin:{top:0,bottom:0},padding:{top:0,bottom:0}}}},ge={spacing:{type:"object",default:{desktop:{margin:{top:0,bottom:0},padding:{top:0,bottom:0}},mobile:{margin:{top:0,bottom:0},padding:{top:0,bottom:0}}}}},fe={LATEST:"latest",CURATED:"curated",BY_CATEGORY:"by_category"},be={IMAGE:"image",VIDEO:"video",ANIMATION:"animation"},me={[be.IMAGE]:"Image",[be.VIDEO]:"Video",[be.ANIMATION]:"Animation"};"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function he(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ve,Ie,ye={exports:{}};Ie=function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E\'","Ը":"Y\'","Թ":"T\'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C\'","Կ":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}'),t=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function n(n,o){if("string"!=typeof n)throw new Error("slugify: string argument expected");var r=t[(o="string"==typeof o?{replacement:o}:o||{}).locale]||{},i=void 0===o.replacement?"-":o.replacement,a=void 0===o.trim||o.trim,l=n.normalize().split("").reduce((function(t,n){var a=r[n];return void 0===a&&(a=e[n]),void 0===a&&(a=n),a===i&&(a=" "),t+a.replace(o.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")}),"");return o.strict&&(l=l.replace(/[^A-Za-z0-9\s]/g,"")),a&&(l=l.trim()),l=l.replace(/\s+/g,i),o.lower&&(l=l.toLowerCase()),l}return n.extend=function(t){Object.assign(e,t)},n},(ve=ye).exports=Ie(),ve.exports.default=Ie();var Ce=he(ye.exports);const xe=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=await x({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||""}}))},Ae=e=>Ce(e,{replacement:"-",lower:!0,strict:!0}),we=e=>{if(e.startsWith("<?xml")){const t=e.indexOf("?>");-1!==t&&(e=e.substring(t+2))}return e=e.trim()},Ge="image/svg+xml",Ne=async e=>{const t=(null==e?void 0:e.mime)===Ge||(null==e?void 0:e.mime_type)===Ge,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(we):n.imageUrl=null==e?void 0:e.url,n},We=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},Be=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("")},Te=e=>{const{getPostType:t,queryType:n,curatedPostsIds:o=[],categoriesTaxonomy:r,curatedCategoriesIds:i=[],numberOfPosts:a=-1,extraQueryArgs:l,dependencies:c}=e;return y((e=>{const c={per_page:a,order:"desc",orderby:"date",_embed:!0,...l};n===fe.BY_CATEGORY&&r&&(null==i?void 0:i.length)>0?c[r]=i.join(","):n===fe.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)},Ve=(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 b((()=>{r?a():(()=>{var e;const t=null===(e=i.current)||void 0===e?void 0:e.querySelector(o);t&&(t.style.maxHeight=0)})()}),[r]),b((()=>{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}},Oe=(e,n,o)=>{const{insertBlock:r}=C(A),{childBlocks:i,innerBlocksCount:a,selectedBlock:l,selectedBlockClientId:c,parentBlockId:s,getBlockRootClientId:u}=y((t=>{var n;const{getBlock:o,getBlockCount:r,getSelectedBlock:i,getSelectedBlockClientId:a,getBlockRootClientId:l}=t(A);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]),[d,p]=g(null);m((()=>{i.length>0&&!d&&p(i[0].clientId)}),[i,d]);const f=q(null==l?void 0:l.clientId,n,{rootBlockId:e,includeSelf:!0});m((()=>{f?p(f.clientId):e===s&&null!=l&&l.clientId&&p(l.clientId)}),[l,f,e,s]);const b=()=>{const t=function(t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a;const i=o(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return r(i,n,e),i}(n);p(t.clientId)};return{childBlocks:i,innerBlocksCount:a,selectedBlock:l,selectedBlockClientId:c,parentBlockId:s,activeItemId:d,setActiveItemId:p,getBlockRootClientId:u,AddNewTabButton:e=>{let{label:n="Add new tab"}=e;return h(t,{className:"add-new-child-btn",icon:B,label:n,onClick:b})}}},Xe=e=>{let{label:t="Color",value:r,attributeName:i,setAttributes:a,allowedColors:l}=e;const c=te(l),s=ee(c,a);return h(n,{label:t,children:h(o,{colors:c,value:r,disableCustomColors:!0,onChange:e=>s(e,i)})})},Se=e=>{let{imageId:n,imageUrl:o,imageAlt:i,svgCode:a,onSelect:l,onRemove:c}=e;const s=n&&o,u=s&&a;return h(w,{children:h(G,{onSelect:l,allowedTypes:["image"],value:n,render:e=>{let{open:n}=e;return s?v("div",{className:"bc-image-wrapper",children:[s&&(u?h("div",{className:"svg-container",dangerouslySetInnerHTML:{__html:a}}):h("img",{src:o,alt:i||"icon"})),v("div",{className:"bc-image-wrapper__actions",children:[h(t,{className:"bc-image-wrapper__btn bc-image-wrapper__replace-btn",type:"button",onClick:n,children:h(r,{icon:T,size:20,className:"bc-image-wrapper__btn-icon"})}),h(t,{className:"bc-image-wrapper__btn bc-image-wrapper__remove-btn",type:"button",onClick:c,children:h(r,{icon:V,size:20,className:"bc-image-wrapper__btn-icon"})})]}),h("div",{className:"bc-image-wrapper__overlay"})]}):h(N,{icon:"format-image",onSelect:l,allowedTypes:["image","image/svg+xml"],labels:{title:"Icon Image"}})}})})},Re=e=>{let{imageId:n,imageUrl:o,imageAlt:r,placeholder:i=!1,onSelectImage:a,onRemoveImage:l,className:c=""}=e;const s=n&&o;return h(w,{children:h(G,{onSelect:a,allowedTypes:["image"],value:n,render:e=>{let{open:n}=e;return s?v("div",{className:"bc-image-wrapper ".concat(c),children:[h("img",{src:o,alt:r,onClick:n}),v("div",{className:"bc-image-wrapper__actions",children:[h(t,{className:"bc-image-wrapper__btn bc-image-wrapper__replace-btn",type:"button",onClick:n,children:"Replace"}),h(t,{className:"bc-image-wrapper__btn bc-image-wrapper__remove-btn",type:"button",onClick:l,children:"Remove"})]}),h("div",{className:"bc-image-wrapper__overlay"})]}):i?h(N,{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}})})},Ee=e=>{let{url:t={value:"#",attrName:"linkSource"},isOpenInNewTab:o={value:!1,attrName:"linkIsOpenInNewTab"},setAttributes:r,label:a="Source"}=e;return v(I,{children:[h(n,{label:a,children:h(W,{className:"bc-url-input",value:t.value,onChange:e=>r({[t.attrName]:e})})}),h(i,{checked:o.value,label:"Open in a new tab",onChange:e=>r({[o.attrName]:e})})]})},Ze=e=>{let{imageId:n,imageUrl:o,onImageClick:r,onRemoveClick:i,onSelectClick:a}=e;return n&&o?v(I,{children:[h("div",{className:"bc-selected-media-wrapper",children:h("img",{src:o,className:"bc-selected-media bc-selected-media--image",alt:"Selected Image",onClick:r})}),h(t,{className:"bc-remove-btn",onClick:i,isSecondary:!0,isDestructive:!0,children:"Remove Image"})]}):h(t,{variant:"secondary",onClick:a,className:"bc-select-btn",children:"Select Image"})},ke=e=>{let{videoId:n,videoUrl:o,onRemoveClick:r,onSelectClick:i}=e;return n&&o?v(I,{children:[h("div",{className:"bc-selected-media-wrapper",children:h("video",{src:o,className:"bc-selected-media bc-selected-media--video",controls:!0})}),h(t,{className:"bc-remove-btn",onClick:r,isSecondary:!0,isDestructive:!0,children:"Remove Video"})]}):h(t,{variant:"secondary",onClick:i,className:"bc-select-btn",children:"Select Video"})},He=e=>{let{animationFileId:n,animationFileUrl:o,animationFileName:i,onSelectClick:a,onRemoveClick:l}=e;return n&&o?v(I,{children:[v("div",{className:"bc-animation-block-json-file",onClick:a,children:[h(r,{icon:O,size:36}),h("span",{children:i})]}),h(t,{variant:"secondary",isDestructive:!0,className:"bc-remove-btn",onClick:l,children:"Remove File"})]}):h(t,{variant:"secondary",onClick:a,children:"Select File"})},Pe=e=>{let{mediaId:t,mediaUrl:n,mediaFileName:o="",onSelect:r,onRemove:i,type:a=be.IMAGE,...l}=e;if(a===be.IMAGE)return h(w,{children:h(G,{onSelect:r,allowedTypes:["image","image/svg+xml"],accept:"image/*",value:t,render:e=>{let{open:o}=e;return h(Ze,{imageId:t,imageUrl:n,onImageClick:o,onSelectClick:o,onRemoveClick:i})},...l})});if(a===be.VIDEO)return h(w,{children:h(G,{onSelect:r,allowedTypes:["video"],value:t,render:e=>{let{open:o}=e;return h(ke,{videoId:t,videoUrl:n,onSelectClick:o,onRemoveClick:i})},...l})});if(a===be.ANIMATION)return h(w,{children:h(G,{onSelect:r,allowedTypes:["application/json","text/plain","application/lottie"],value:t,render:e=>{let{open:r}=e;return h(He,{animationFileId:t,animationFileUrl:n,animationFileName:o,onSelectClick:r,onRemoveClick:i})},...l})});throw new Error("Unrecognized media type.")};function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Le.apply(this,arguments)}function Fe(e){return Fe="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},Fe(e)}function De(e){var t=function(e,t){if("object"!=Fe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Fe(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fe(t)?t:t+""}function Me(e,t,n){return(t=De(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(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 Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){Me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function je(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,De(o.key),o)}}function Ue(e,t,n){return t&&je(e.prototype,t),n&&je(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qe(e,t){return Qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qe(e,t)}function _e(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&&Qe(e,t)}function Ke(e){return Ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ke(e)}function $e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($e=function(){return!!e})()}function qe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function et(e,t){if(t&&("object"===Fe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qe(e)}function tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function nt(e,t){if(e){if("string"==typeof e)return tt(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)?tt(e,t):void 0}}function ot(e){return function(e){if(Array.isArray(e))return tt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||nt(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 rt=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){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),it="-ms-",at="-moz-",lt="-webkit-",ct="comm",st="rule",ut="decl",dt="@keyframes",pt=Math.abs,gt=String.fromCharCode,ft=Object.assign;function bt(e){return e.trim()}function mt(e,t,n){return e.replace(t,n)}function ht(e,t){return e.indexOf(t)}function vt(e,t){return 0|e.charCodeAt(t)}function It(e,t,n){return e.slice(t,n)}function yt(e){return e.length}function Ct(e){return e.length}function xt(e,t){return t.push(e),e}var At=1,wt=1,Gt=0,Nt=0,Wt=0,Bt="";function Tt(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:At,column:wt,length:a,return:""}}function Vt(e,t){return ft(Tt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ot(){return Wt=Nt>0?vt(Bt,--Nt):0,wt--,10===Wt&&(wt=1,At--),Wt}function Xt(){return Wt=Nt<Gt?vt(Bt,Nt++):0,wt++,10===Wt&&(wt=1,At++),Wt}function St(){return vt(Bt,Nt)}function Rt(){return Nt}function Et(e,t){return It(Bt,e,t)}function Zt(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 kt(e){return At=wt=1,Gt=yt(Bt=e),Nt=0,[]}function Ht(e){return Bt="",e}function Pt(e){return bt(Et(Nt-1,Dt(91===e?e+2:40===e?e+1:e)))}function Lt(e){for(;(Wt=St())&&Wt<33;)Xt();return Zt(e)>2||Zt(Wt)>3?"":" "}function Ft(e,t){for(;--t&&Xt()&&!(Wt<48||Wt>102||Wt>57&&Wt<65||Wt>70&&Wt<97););return Et(e,Rt()+(t<6&&32==St()&&32==Xt()))}function Dt(e){for(;Xt();)switch(Wt){case e:return Nt;case 34:case 39:34!==e&&39!==e&&Dt(Wt);break;case 40:41===e&&Dt(e);break;case 92:Xt()}return Nt}function Mt(e,t){for(;Xt()&&e+Wt!==57&&(e+Wt!==84||47!==St()););return"/*"+Et(t,Nt-1)+"*"+gt(47===e?e:Xt())}function Yt(e){for(;!Zt(St());)Xt();return Et(e,Nt)}function Jt(e){return Ht(zt("",null,null,null,[""],e=kt(e),0,[0],e))}function zt(e,t,n,o,r,i,a,l,c){for(var s=0,u=0,d=a,p=0,g=0,f=0,b=1,m=1,h=1,v=0,I="",y=r,C=i,x=o,A=I;m;)switch(f=v,v=Xt()){case 40:if(108!=f&&58==vt(A,d-1)){-1!=ht(A+=mt(Pt(v),"&","&\f"),"&\f")&&(h=-1);break}case 34:case 39:case 91:A+=Pt(v);break;case 9:case 10:case 13:case 32:A+=Lt(f);break;case 92:A+=Ft(Rt()-1,7);continue;case 47:switch(St()){case 42:case 47:xt(Ut(Mt(Xt(),Rt()),t,n),c);break;default:A+="/"}break;case 123*b:l[s++]=yt(A)*h;case 125*b:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==h&&(A=mt(A,/\f/g,"")),g>0&&yt(A)-d&&xt(g>32?Qt(A+";",o,n,d-1):Qt(mt(A," ","")+";",o,n,d-2),c);break;case 59:A+=";";default:if(xt(x=jt(A,t,n,s,u,r,l,I,y=[],C=[],d),i),123===v)if(0===u)zt(A,t,x,x,y,i,d,l,C);else switch(99===p&&110===vt(A,3)?100:p){case 100:case 108:case 109:case 115:zt(e,x,x,o&&xt(jt(e,x,x,0,0,r,l,I,r,y=[],d),C),r,C,d,l,o?y:C);break;default:zt(A,x,x,x,[""],C,0,l,C)}}s=u=g=0,b=h=1,I=A="",d=a;break;case 58:d=1+yt(A),g=f;default:if(b<1)if(123==v)--b;else if(125==v&&0==b++&&125==Ot())continue;switch(A+=gt(v),v*b){case 38:h=u>0?1:(A+="\f",-1);break;case 44:l[s++]=(yt(A)-1)*h,h=1;break;case 64:45===St()&&(A+=Pt(Xt())),p=St(),u=d=yt(I=A+=Yt(Rt())),v++;break;case 45:45===f&&2==yt(A)&&(b=0)}}return i}function jt(e,t,n,o,r,i,a,l,c,s,u){for(var d=r-1,p=0===r?i:[""],g=Ct(p),f=0,b=0,m=0;f<o;++f)for(var h=0,v=It(e,d+1,d=pt(b=a[f])),I=e;h<g;++h)(I=bt(b>0?p[h]+" "+v:mt(v,/&\f/g,p[h])))&&(c[m++]=I);return Tt(e,t,n,0===r?st:l,c,s,u)}function Ut(e,t,n){return Tt(e,t,n,ct,gt(Wt),It(e,2,-2),0)}function Qt(e,t,n,o){return Tt(e,t,n,ut,It(e,0,o),It(e,o+1,-1),o)}function _t(e,t){for(var n="",o=Ct(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function Kt(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ut:return e.return=e.return||e.value;case ct:return"";case dt:return e.return=e.value+"{"+_t(e.children,o)+"}";case st:e.value=e.props.join(",")}return yt(n=_t(e.children,o))?e.return=e.value+"{"+n+"}":""}function $t(e){var t=Ct(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 qt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var en=function(e,t,n){for(var o=0,r=0;o=r,r=St(),38===o&&12===r&&(t[n]=1),!Zt(r);)Xt();return Et(e,Nt)},tn=function(e,t){return Ht(function(e,t){var n=-1,o=44;do{switch(Zt(o)){case 0:38===o&&12===St()&&(t[n]=1),e[n]+=en(Nt-1,t,n);break;case 2:e[n]+=Pt(o);break;case 4:if(44===o){e[++n]=58===St()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=gt(o)}}while(o=Xt());return e}(kt(e),t))},nn=new WeakMap,on=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)||nn.get(n))&&!o){nn.set(e,!0);for(var r=[],i=tn(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]}}},rn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},an=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},ln=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},cn=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},sn=function(e,t,n){ln(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."),cn(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!ln(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."),cn(e)))};function un(e,t){switch(function(e,t){return 45^vt(e,0)?(((t<<2^vt(e,0))<<2^vt(e,1))<<2^vt(e,2))<<2^vt(e,3):0}(e,t)){case 5103:return lt+"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 lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return lt+e+at+e+it+e+e;case 6828:case 4268:return lt+e+it+e+e;case 6165:return lt+e+it+"flex-"+e+e;case 5187:return lt+e+mt(e,/(\w+).+(:[^]+)/,lt+"box-$1$2"+it+"flex-$1$2")+e;case 5443:return lt+e+it+"flex-item-"+mt(e,/flex-|-self/,"")+e;case 4675:return lt+e+it+"flex-line-pack"+mt(e,/align-content|flex-|-self/,"")+e;case 5548:return lt+e+it+mt(e,"shrink","negative")+e;case 5292:return lt+e+it+mt(e,"basis","preferred-size")+e;case 6060:return lt+"box-"+mt(e,"-grow","")+lt+e+it+mt(e,"grow","positive")+e;case 4554:return lt+mt(e,/([^-])(transform)/g,"$1"+lt+"$2")+e;case 6187:return mt(mt(mt(e,/(zoom-|grab)/,lt+"$1"),/(image-set)/,lt+"$1"),e,"")+e;case 5495:case 3959:return mt(e,/(image-set\([^]*)/,lt+"$1$`$1");case 4968:return mt(mt(e,/(.+:)(flex-)?(.*)/,lt+"box-pack:$3"+it+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+lt+e+e;case 4095:case 3583:case 4068:case 2532:return mt(e,/(.+)-inline(.+)/,lt+"$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(yt(e)-1-t>6)switch(vt(e,t+1)){case 109:if(45!==vt(e,t+4))break;case 102:return mt(e,/(.+:)(.+)-([^]+)/,"$1"+lt+"$2-$3$1"+at+(108==vt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ht(e,"stretch")?un(mt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==vt(e,t+1))break;case 6444:switch(vt(e,yt(e)-3-(~ht(e,"!important")&&10))){case 107:return mt(e,":",":"+lt)+e;case 101:return mt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lt+(45===vt(e,14)?"inline-":"")+"box$3$1"+lt+"$2$3$1"+it+"$2box$3")+e}break;case 5936:switch(vt(e,t+11)){case 114:return lt+e+it+mt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lt+e+it+mt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lt+e+it+mt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lt+e+it+e+e}return e}var dn,pn,gn,fn="undefined"!=typeof document,bn=fn?void 0:(dn=function(){return qt((function(){var e={};return function(t){return e[t]}}))},pn=new WeakMap,function(e){if(pn.has(e))return pn.get(e);var t=dn(e);return pn.set(e,t),t}),mn=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case ut:e.return=un(e.value,e.length);break;case dt:return _t([Vt(e,{value:mt(e.value,"@","@"+lt)})],o);case st: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 _t([Vt(e,{props:[mt(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return _t([Vt(e,{props:[mt(t,/:(plac\w+)/,":"+lt+"input-$1")]}),Vt(e,{props:[mt(t,/:(plac\w+)/,":-moz-$1")]}),Vt(e,{props:[mt(t,/:(plac\w+)/,it+"input-$1")]})],o)}return""}))}}],hn=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(fn&&"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||mn;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=[];fn&&(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=[on,rn];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(an(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}}),sn),fn){var u,d=[Kt,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==ct&&u.insert(e.value+"{}"))}:(c=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],p=$t(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)}}),_t(Jt(e?e+"{"+t.styles+"}":t.styles),p),o&&(h.inserted[t.name]=!0)}}else{var g=[Kt],f=$t(s.concat(o,g)),b=bn(o)(t),m=function(e,t){var n=t.name;return void 0===b[n]&&(b[n]=_t(Jt(e?e+"{"+t.styles+"}":t.styles),f)),b[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 rt({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},vn={exports:{}},In={};var yn,Cn,xn={};
1
+ import{ToggleControl as e,Button as t,BaseControl as n,ColorPalette as o,Icon as r,CheckboxControl as i,RadioControl as a,RangeControl as l,TabPanel as c,Notice as s,Spinner as u,Placeholder as d,SelectControl as p}from"@wordpress/components";import{useState as g,useRef as f,useEffect as b,useLayoutEffect as m}from"@wordpress/element";import{jsx as h,jsxs as v,Fragment as I}from"react/jsx-runtime";import{useSelect as y,useDispatch as C}from"@wordpress/data";import x from"@wordpress/api-fetch";import{store as A,MediaUploadCheck as w,MediaUpload as G,MediaPlaceholder as N,URLInput as W}from"@wordpress/block-editor";import{plus as B,edit as T,trash as V,page as O}from"@wordpress/icons";import*as X from"react";import{forwardRef as S,useContext as R,useLayoutEffect as E,useEffect as Z,useRef as k,useState as H,useMemo as P,useCallback as L,createContext as F,Component as D,Fragment as M,createRef as Y,createElement as J}from"react";import{createPortal as z,findDOMNode as j}from"react-dom";import{addFilter as U}from"@wordpress/hooks";const Q="Enable Preview",_="Please check this option to see how the block will actually look and behave on the frontend.",K=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{disabled:n=!1,label:o=Q,helpText:r=_}=t,[i,a]=g(!1),l=()=>a((e=>!e));return{isPreview:i,renderPreviewToggle:()=>h(e,{label:o,help:r,checked:i,onChange:l,disabled:n})}},$=e=>{let{isEnabled:t,setupSlider:n,dependencies:o=[]}=e;const r=f(null),i=f(null);return b((()=>(t&&null!=r&&r.current&&(i.current=n(r.current)),()=>{var e;i.current&&(null===(e=i.current)||void 0===e||e.destroy(),i.current=null)})),[t,...o]),{sliderElRef:r,sliderInstance:i.current}},q=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return y((o=>{const{getBlock:r,getBlockRootClientId:i,getBlockHierarchyRootClientId:a}=o("core/block-editor");if(!e)return null;const{rootBlockId:l="",includeSelf:c=!1}=n;if(l){if(a(e)!==l)return null}let s=e,u=r(s);if(c&&(null==u?void 0:u.name)===t)return u;let d=i(s),p=r(d);for(;p&&(!l||d!==l)&&d;){if(p.name===t)return p;s=d,d=i(s),p=r(d)}return null}),[e,t,n.rootBlockId,n.includeSelf])},ee=(e,t)=>(n,o)=>{const r=e.find((e=>e.color===n));t({[o]:r?{value:n,slug:r.slug}:null})},te=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return y((t=>{var n;const{getSettings:o}=t("core/block-editor"),r=null===(n=o())||void 0===n?void 0:n.colors;return e.length>0?null==r?void 0:r.filter((t=>e.includes(t.slug))):r}),[])},ne=e=>(t,n)=>{e({[t]:n})},oe={linkLabel:{type:"string",default:""},linkSource:{type:"string",default:"#"},linkIsOpenInNewTab:{type:"boolean",default:!1}},re={media:{type:"object",default:{id:null,url:"",alt:"",filename:""}}},ie={title:{type:"string",default:"Title"},description:{type:"string",default:"Description"}},ae={animationFile:{type:"object",default:{id:null,url:null,name:null,filename:null,mime:null}},isAnimationLooped:{type:"boolean",default:!0}},le={curatedPosts:{type:"array",default:[],items:{type:"object",properties:{value:{type:"number"},label:{type:"string"}}}}},ce={curatedCategories:{type:"array",default:[],items:{type:"object",properties:{value:{type:"number"},label:{type:"string"}}}}},se={numberOfPosts:{type:"number",default:5}},ue=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={type:"string"};e&&(null==e?void 0:e.length)>0&&(i.enum=e,i.default=e[0]);let a={type:"string"};return t&&(null==t?void 0:t.length)>0&&(a.enum=[...t],a.default=t[0]),{dataSource:i,queryType:a,...n?le:{},...o?ce:{},...r?se:{}}},de={isIncludeBackgroundMedia:{type:"boolean",default:!1},backgroundMediaType:{type:"string",default:"color"},backgroundColor:{type:"object",default:{value:"#ffffff",slug:"white"}},backgroundImage:{type:"object",default:{id:null,url:""}},backgroundVideo:{type:"object",default:{id:null,url:""}},isIncludeOverlay:{type:"boolean",default:!1}},pe={spacing:{type:"object",default:{margin:{top:0,bottom:0},padding:{top:0,bottom:0}}}},ge={spacing:{type:"object",default:{desktop:{margin:{top:0,bottom:0},padding:{top:0,bottom:0}},mobile:{margin:{top:0,bottom:0},padding:{top:0,bottom:0}}}}},fe={LATEST:"latest",CURATED:"curated",BY_CATEGORY:"by_category"},be={IMAGE:"image",VIDEO:"video",ANIMATION:"animation"},me={[be.IMAGE]:"Image",[be.VIDEO]:"Video",[be.ANIMATION]:"Animation"};"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function he(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ve,Ie,ye={exports:{}};Ie=function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E\'","Ը":"Y\'","Թ":"T\'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C\'","Կ":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}'),t=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function n(n,o){if("string"!=typeof n)throw new Error("slugify: string argument expected");var r=t[(o="string"==typeof o?{replacement:o}:o||{}).locale]||{},i=void 0===o.replacement?"-":o.replacement,a=void 0===o.trim||o.trim,l=n.normalize().split("").reduce((function(t,n){var a=r[n];return void 0===a&&(a=e[n]),void 0===a&&(a=n),a===i&&(a=" "),t+a.replace(o.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")}),"");return o.strict&&(l=l.replace(/[^A-Za-z0-9\s]/g,"")),a&&(l=l.trim()),l=l.replace(/\s+/g,i),o.lower&&(l=l.toLowerCase()),l}return n.extend=function(t){Object.assign(e,t)},n},(ve=ye).exports=Ie(),ve.exports.default=Ie();var Ce=he(ye.exports);const xe=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const o=await x({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||""}}))},Ae=e=>Ce(e,{replacement:"-",lower:!0,strict:!0}),we=e=>{if(e.startsWith("<?xml")){const t=e.indexOf("?>");-1!==t&&(e=e.substring(t+2))}return e=e.trim()},Ge="image/svg+xml",Ne=async e=>{const t=(null==e?void 0:e.mime)===Ge||(null==e?void 0:e.mime_type)===Ge,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(we):n.imageUrl=null==e?void 0:e.url,n},We=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},Be=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("")},Te=e=>{const{getPostType:t,queryType:n,curatedPostsIds:o=[],categoriesTaxonomy:r,curatedCategoriesIds:i=[],numberOfPosts:a=-1,extraQueryArgs:l,dependencies:c}=e;return y((e=>{const c={per_page:a,order:"desc",orderby:"date",_embed:!0,...l};n===fe.BY_CATEGORY&&r&&(null==i?void 0:i.length)>0?c[r]=i.join(","):n===fe.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)},Ve=(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 b((()=>{r?a():(()=>{var e;const t=null===(e=i.current)||void 0===e?void 0:e.querySelector(o);t&&(t.style.maxHeight=0)})()}),[r]),b((()=>{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}},Oe=(e,n,o)=>{const{insertBlock:r}=C(A),{childBlocks:i,innerBlocksCount:a,selectedBlock:l,selectedBlockClientId:c,parentBlockId:s,getBlockRootClientId:u}=y((t=>{var n;const{getBlock:o,getBlockCount:r,getSelectedBlock:i,getSelectedBlockClientId:a,getBlockRootClientId:l}=t(A);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]),[d,p]=g(null);m((()=>{i.length>0&&!d&&p(i[0].clientId)}),[i,d]);const f=q(null==l?void 0:l.clientId,n,{rootBlockId:e,includeSelf:!0});m((()=>{f?p(f.clientId):e===s&&null!=l&&l.clientId&&p(l.clientId)}),[l,f,e,s]);const b=()=>{const t=function(t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a;const i=o(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return r(i,n,e),i}(n);p(t.clientId)};return{childBlocks:i,innerBlocksCount:a,selectedBlock:l,selectedBlockClientId:c,parentBlockId:s,activeItemId:d,setActiveItemId:p,getBlockRootClientId:u,AddNewTabButton:e=>{let{label:n="Add new tab"}=e;return h(t,{className:"add-new-child-btn",icon:B,label:n,onClick:b})}}},Xe=e=>{let{label:t="Color",value:r,attributeName:i,setAttributes:a,allowedColors:l}=e;const c=te(l),s=ee(c,a);return h(n,{label:t,children:h(o,{colors:c,value:r,disableCustomColors:!0,onChange:e=>s(e,i)})})},Se=e=>{let{imageId:n,imageUrl:o,imageAlt:i,svgCode:a,onSelect:l,onRemove:c}=e;const s=n&&o,u=s&&a;return h(w,{children:h(G,{onSelect:l,allowedTypes:["image"],value:n,render:e=>{let{open:n}=e;return s?v("div",{className:"bc-image-wrapper",children:[s&&(u?h("div",{className:"svg-container",dangerouslySetInnerHTML:{__html:a}}):h("img",{src:o,alt:i||"icon"})),v("div",{className:"bc-image-wrapper__actions",children:[h(t,{className:"bc-image-wrapper__btn bc-image-wrapper__replace-btn",type:"button",onClick:n,children:h(r,{icon:T,size:20,className:"bc-image-wrapper__btn-icon"})}),h(t,{className:"bc-image-wrapper__btn bc-image-wrapper__remove-btn",type:"button",onClick:c,children:h(r,{icon:V,size:20,className:"bc-image-wrapper__btn-icon"})})]}),h("div",{className:"bc-image-wrapper__overlay"})]}):h(N,{icon:"format-image",onSelect:l,allowedTypes:["image","image/svg+xml"],labels:{title:"Icon Image"}})}})})},Re=e=>{let{imageId:n,imageUrl:o,imageAlt:r,placeholder:i=!1,onSelectImage:a,onRemoveImage:l,className:c=""}=e;const s=n&&o;return h(w,{children:h(G,{onSelect:a,allowedTypes:["image"],value:n,render:e=>{let{open:n}=e;return s?v("div",{className:"bc-image-wrapper ".concat(c),children:[h("img",{src:o,alt:r,onClick:n}),v("div",{className:"bc-image-wrapper__actions",children:[h(t,{className:"bc-image-wrapper__btn bc-image-wrapper__replace-btn",type:"button",onClick:n,children:"Replace"}),h(t,{className:"bc-image-wrapper__btn bc-image-wrapper__remove-btn",type:"button",onClick:l,children:"Remove"})]}),h("div",{className:"bc-image-wrapper__overlay"})]}):i?h(N,{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}})})},Ee=e=>{let{url:t={value:"#",attrName:"linkSource"},isOpenInNewTab:o={value:!1,attrName:"linkIsOpenInNewTab"},setAttributes:r,label:a="Source"}=e;return v(I,{children:[h(n,{label:a,children:h(W,{className:"bc-url-input",value:t.value,onChange:e=>r({[t.attrName]:e})})}),h(i,{checked:o.value,label:"Open in a new tab",onChange:e=>r({[o.attrName]:e})})]})},Ze=e=>{let{imageId:n,imageUrl:o,onImageClick:r,onRemoveClick:i,onSelectClick:a}=e;return n&&o?v(I,{children:[h("div",{className:"bc-selected-media-wrapper",children:h("img",{src:o,className:"bc-selected-media bc-selected-media--image",alt:"Selected Image",onClick:r})}),h(t,{className:"bc-remove-btn",onClick:i,isSecondary:!0,isDestructive:!0,children:"Remove Image"})]}):h(t,{variant:"secondary",onClick:a,className:"bc-select-btn",children:"Select Image"})},ke=e=>{let{videoId:n,videoUrl:o,onRemoveClick:r,onSelectClick:i}=e;return n&&o?v(I,{children:[h("div",{className:"bc-selected-media-wrapper",children:h("video",{src:o,className:"bc-selected-media bc-selected-media--video",controls:!0})}),h(t,{className:"bc-remove-btn",onClick:r,isSecondary:!0,isDestructive:!0,children:"Remove Video"})]}):h(t,{variant:"secondary",onClick:i,className:"bc-select-btn",children:"Select Video"})},He=e=>{let{animationFileId:n,animationFileUrl:o,animationFileName:i,onSelectClick:a,onRemoveClick:l}=e;return n&&o?v(I,{children:[v("div",{className:"bc-animation-block-json-file",onClick:a,children:[h(r,{icon:O,size:36}),h("span",{children:i})]}),h(t,{variant:"secondary",isDestructive:!0,className:"bc-remove-btn",onClick:l,children:"Remove File"})]}):h(t,{variant:"secondary",onClick:a,children:"Select File"})},Pe=e=>{let{mediaId:t,mediaUrl:n,mediaFileName:o="",onSelect:r,onRemove:i,type:a=be.IMAGE,...l}=e;if(a===be.IMAGE)return h(w,{children:h(G,{onSelect:r,allowedTypes:["image","image/svg+xml"],accept:"image/*",value:t,render:e=>{let{open:o}=e;return h(Ze,{imageId:t,imageUrl:n,onImageClick:o,onSelectClick:o,onRemoveClick:i})},...l})});if(a===be.VIDEO)return h(w,{children:h(G,{onSelect:r,allowedTypes:["video"],value:t,render:e=>{let{open:o}=e;return h(ke,{videoId:t,videoUrl:n,onSelectClick:o,onRemoveClick:i})},...l})});if(a===be.ANIMATION)return h(w,{children:h(G,{onSelect:r,allowedTypes:["application/json","text/plain","application/lottie"],value:t,render:e=>{let{open:r}=e;return h(He,{animationFileId:t,animationFileUrl:n,animationFileName:o,onSelectClick:r,onRemoveClick:i})},...l})});throw new Error("Unrecognized media type.")};function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Le.apply(this,arguments)}function Fe(e){return Fe="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},Fe(e)}function De(e){var t=function(e,t){if("object"!=Fe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Fe(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fe(t)?t:t+""}function Me(e,t,n){return(t=De(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(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 Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){Me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function je(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,De(o.key),o)}}function Ue(e,t,n){return t&&je(e.prototype,t),n&&je(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qe(e,t){return Qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qe(e,t)}function _e(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&&Qe(e,t)}function Ke(e){return Ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ke(e)}function $e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($e=function(){return!!e})()}function qe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function et(e,t){if(t&&("object"===Fe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qe(e)}function tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function nt(e,t){if(e){if("string"==typeof e)return tt(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)?tt(e,t):void 0}}function ot(e){return function(e){if(Array.isArray(e))return tt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||nt(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 rt=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){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),it="-ms-",at="-moz-",lt="-webkit-",ct="comm",st="rule",ut="decl",dt="@keyframes",pt=Math.abs,gt=String.fromCharCode,ft=Object.assign;function bt(e){return e.trim()}function mt(e,t,n){return e.replace(t,n)}function ht(e,t){return e.indexOf(t)}function vt(e,t){return 0|e.charCodeAt(t)}function It(e,t,n){return e.slice(t,n)}function yt(e){return e.length}function Ct(e){return e.length}function xt(e,t){return t.push(e),e}var At=1,wt=1,Gt=0,Nt=0,Wt=0,Bt="";function Tt(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:At,column:wt,length:a,return:""}}function Vt(e,t){return ft(Tt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ot(){return Wt=Nt>0?vt(Bt,--Nt):0,wt--,10===Wt&&(wt=1,At--),Wt}function Xt(){return Wt=Nt<Gt?vt(Bt,Nt++):0,wt++,10===Wt&&(wt=1,At++),Wt}function St(){return vt(Bt,Nt)}function Rt(){return Nt}function Et(e,t){return It(Bt,e,t)}function Zt(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 kt(e){return At=wt=1,Gt=yt(Bt=e),Nt=0,[]}function Ht(e){return Bt="",e}function Pt(e){return bt(Et(Nt-1,Dt(91===e?e+2:40===e?e+1:e)))}function Lt(e){for(;(Wt=St())&&Wt<33;)Xt();return Zt(e)>2||Zt(Wt)>3?"":" "}function Ft(e,t){for(;--t&&Xt()&&!(Wt<48||Wt>102||Wt>57&&Wt<65||Wt>70&&Wt<97););return Et(e,Rt()+(t<6&&32==St()&&32==Xt()))}function Dt(e){for(;Xt();)switch(Wt){case e:return Nt;case 34:case 39:34!==e&&39!==e&&Dt(Wt);break;case 40:41===e&&Dt(e);break;case 92:Xt()}return Nt}function Mt(e,t){for(;Xt()&&e+Wt!==57&&(e+Wt!==84||47!==St()););return"/*"+Et(t,Nt-1)+"*"+gt(47===e?e:Xt())}function Yt(e){for(;!Zt(St());)Xt();return Et(e,Nt)}function Jt(e){return Ht(zt("",null,null,null,[""],e=kt(e),0,[0],e))}function zt(e,t,n,o,r,i,a,l,c){for(var s=0,u=0,d=a,p=0,g=0,f=0,b=1,m=1,h=1,v=0,I="",y=r,C=i,x=o,A=I;m;)switch(f=v,v=Xt()){case 40:if(108!=f&&58==vt(A,d-1)){-1!=ht(A+=mt(Pt(v),"&","&\f"),"&\f")&&(h=-1);break}case 34:case 39:case 91:A+=Pt(v);break;case 9:case 10:case 13:case 32:A+=Lt(f);break;case 92:A+=Ft(Rt()-1,7);continue;case 47:switch(St()){case 42:case 47:xt(Ut(Mt(Xt(),Rt()),t,n),c);break;default:A+="/"}break;case 123*b:l[s++]=yt(A)*h;case 125*b:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+u:-1==h&&(A=mt(A,/\f/g,"")),g>0&&yt(A)-d&&xt(g>32?Qt(A+";",o,n,d-1):Qt(mt(A," ","")+";",o,n,d-2),c);break;case 59:A+=";";default:if(xt(x=jt(A,t,n,s,u,r,l,I,y=[],C=[],d),i),123===v)if(0===u)zt(A,t,x,x,y,i,d,l,C);else switch(99===p&&110===vt(A,3)?100:p){case 100:case 108:case 109:case 115:zt(e,x,x,o&&xt(jt(e,x,x,0,0,r,l,I,r,y=[],d),C),r,C,d,l,o?y:C);break;default:zt(A,x,x,x,[""],C,0,l,C)}}s=u=g=0,b=h=1,I=A="",d=a;break;case 58:d=1+yt(A),g=f;default:if(b<1)if(123==v)--b;else if(125==v&&0==b++&&125==Ot())continue;switch(A+=gt(v),v*b){case 38:h=u>0?1:(A+="\f",-1);break;case 44:l[s++]=(yt(A)-1)*h,h=1;break;case 64:45===St()&&(A+=Pt(Xt())),p=St(),u=d=yt(I=A+=Yt(Rt())),v++;break;case 45:45===f&&2==yt(A)&&(b=0)}}return i}function jt(e,t,n,o,r,i,a,l,c,s,u){for(var d=r-1,p=0===r?i:[""],g=Ct(p),f=0,b=0,m=0;f<o;++f)for(var h=0,v=It(e,d+1,d=pt(b=a[f])),I=e;h<g;++h)(I=bt(b>0?p[h]+" "+v:mt(v,/&\f/g,p[h])))&&(c[m++]=I);return Tt(e,t,n,0===r?st:l,c,s,u)}function Ut(e,t,n){return Tt(e,t,n,ct,gt(Wt),It(e,2,-2),0)}function Qt(e,t,n,o){return Tt(e,t,n,ut,It(e,0,o),It(e,o+1,-1),o)}function _t(e,t){for(var n="",o=Ct(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function Kt(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ut:return e.return=e.return||e.value;case ct:return"";case dt:return e.return=e.value+"{"+_t(e.children,o)+"}";case st:e.value=e.props.join(",")}return yt(n=_t(e.children,o))?e.return=e.value+"{"+n+"}":""}function $t(e){var t=Ct(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 qt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var en=function(e,t,n){for(var o=0,r=0;o=r,r=St(),38===o&&12===r&&(t[n]=1),!Zt(r);)Xt();return Et(e,Nt)},tn=function(e,t){return Ht(function(e,t){var n=-1,o=44;do{switch(Zt(o)){case 0:38===o&&12===St()&&(t[n]=1),e[n]+=en(Nt-1,t,n);break;case 2:e[n]+=Pt(o);break;case 4:if(44===o){e[++n]=58===St()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=gt(o)}}while(o=Xt());return e}(kt(e),t))},nn=new WeakMap,on=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)||nn.get(n))&&!o){nn.set(e,!0);for(var r=[],i=tn(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]}}},rn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},an=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},ln=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},cn=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},sn=function(e,t,n){ln(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."),cn(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!ln(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."),cn(e)))};function un(e,t){switch(function(e,t){return 45^vt(e,0)?(((t<<2^vt(e,0))<<2^vt(e,1))<<2^vt(e,2))<<2^vt(e,3):0}(e,t)){case 5103:return lt+"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 lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return lt+e+at+e+it+e+e;case 6828:case 4268:return lt+e+it+e+e;case 6165:return lt+e+it+"flex-"+e+e;case 5187:return lt+e+mt(e,/(\w+).+(:[^]+)/,lt+"box-$1$2"+it+"flex-$1$2")+e;case 5443:return lt+e+it+"flex-item-"+mt(e,/flex-|-self/,"")+e;case 4675:return lt+e+it+"flex-line-pack"+mt(e,/align-content|flex-|-self/,"")+e;case 5548:return lt+e+it+mt(e,"shrink","negative")+e;case 5292:return lt+e+it+mt(e,"basis","preferred-size")+e;case 6060:return lt+"box-"+mt(e,"-grow","")+lt+e+it+mt(e,"grow","positive")+e;case 4554:return lt+mt(e,/([^-])(transform)/g,"$1"+lt+"$2")+e;case 6187:return mt(mt(mt(e,/(zoom-|grab)/,lt+"$1"),/(image-set)/,lt+"$1"),e,"")+e;case 5495:case 3959:return mt(e,/(image-set\([^]*)/,lt+"$1$`$1");case 4968:return mt(mt(e,/(.+:)(flex-)?(.*)/,lt+"box-pack:$3"+it+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+lt+e+e;case 4095:case 3583:case 4068:case 2532:return mt(e,/(.+)-inline(.+)/,lt+"$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(yt(e)-1-t>6)switch(vt(e,t+1)){case 109:if(45!==vt(e,t+4))break;case 102:return mt(e,/(.+:)(.+)-([^]+)/,"$1"+lt+"$2-$3$1"+at+(108==vt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ht(e,"stretch")?un(mt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==vt(e,t+1))break;case 6444:switch(vt(e,yt(e)-3-(~ht(e,"!important")&&10))){case 107:return mt(e,":",":"+lt)+e;case 101:return mt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lt+(45===vt(e,14)?"inline-":"")+"box$3$1"+lt+"$2$3$1"+it+"$2box$3")+e}break;case 5936:switch(vt(e,t+11)){case 114:return lt+e+it+mt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lt+e+it+mt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lt+e+it+mt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lt+e+it+e+e}return e}var dn,pn,gn,fn="undefined"!=typeof document,bn=fn?void 0:(dn=function(){return qt((function(){var e={};return function(t){return e[t]}}))},pn=new WeakMap,function(e){if(pn.has(e))return pn.get(e);var t=dn(e);return pn.set(e,t),t}),mn=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case ut:e.return=un(e.value,e.length);break;case dt:return _t([Vt(e,{value:mt(e.value,"@","@"+lt)})],o);case st: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 _t([Vt(e,{props:[mt(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return _t([Vt(e,{props:[mt(t,/:(plac\w+)/,":"+lt+"input-$1")]}),Vt(e,{props:[mt(t,/:(plac\w+)/,":-moz-$1")]}),Vt(e,{props:[mt(t,/:(plac\w+)/,it+"input-$1")]})],o)}return""}))}}],hn=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(fn&&"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||mn;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=[];fn&&(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=[on,rn];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(an(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}}),sn),fn){var u,d=[Kt,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==ct&&u.insert(e.value+"{}"))}:(c=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],p=$t(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)}}),_t(Jt(e?e+"{"+t.styles+"}":t.styles),p),o&&(h.inserted[t.name]=!0)}}else{var g=[Kt],f=$t(s.concat(o,g)),b=bn(o)(t),m=function(e,t){var n=t.name;return void 0===b[n]&&(b[n]=_t(Jt(e?e+"{"+t.styles+"}":t.styles),f)),b[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 rt({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},vn={exports:{}},In={};var yn,Cn,xn={};
2
2
  /** @license React v16.13.1
3
3
  * react-is.development.js
4
4
  *