(()=>{var e={195:(e,t,n)=>{var s=n(981),o=n(332),a=n(799);e.exports=function(e){var t=!1,n=function(n,o){if(e.page<1)return e.listContainer.style.display="none",void(t=!0);t&&(e.listContainer.style.display="block");var a,i=e.matchingItems.length,r=e.i,c=e.page,d=Math.ceil(i/c),u=Math.ceil(r/c),p=o.innerWindow||2,b=o.left||o.outerWindow||0,m=o.right||o.outerWindow||0;m=d-m,n.clear();for(var h=1;h<=d;h++){var g=u===h?"active":"";l.number(h,b,m,u,p)?(a=n.add({page:h,dotted:!1})[0],g&&s(a.elm).add(g),a.elm.firstChild.setAttribute("data-i",h),a.elm.firstChild.setAttribute("data-page",c)):l.dotted(n,h,b,m,u,p,n.size())&&(a=n.add({page:"...",dotted:!0})[0],s(a.elm).add("disabled"))}},l={number:function(e,t,n,s,o){return this.left(e,t)||this.right(e,n)||this.innerWindow(e,s,o)},left:function(e,t){return e<=t},right:function(e,t){return e>t},innerWindow:function(e,t,n){return e>=t-n&&e<=t+n},dotted:function(e,t,n,s,o,a,l){return this.dottedLeft(e,t,n,s,o,a)||this.dottedRight(e,t,n,s,o,a,l)},dottedLeft:function(e,t,n,s,o,a){return t==n+1&&!this.innerWindow(t,o,a)&&!this.right(t,s)},dottedRight:function(e,t,n,s,o,a,l){return!e.items[l-1].values().dotted&&t==s&&!this.innerWindow(t,o,a)&&!this.right(t,s)}};return function(t){var s=new a(e.listContainer.id,{listClass:t.paginationClass||"pagination",item:t.item||"
  • ",valueNames:["page","dotted"],searchClass:"pagination-search-that-is-not-supposed-to-exist",sortClass:"pagination-sort-that-is-not-supposed-to-exist"});o.bind(s.listContainer,"click",function(t){var n=t.target||t.srcElement,s=e.utils.getAttribute(n,"data-page"),o=e.utils.getAttribute(n,"data-i");o&&e.show((o-1)*s+1,s)}),e.on("updated",function(){n(s,t)}),n(s,t)}}},200:e=>{e.exports=function(e,t){var n=e.getAttribute&&e.getAttribute(t)||null;if(!n)for(var s=e.attributes,o=s.length,a=0;a{e.exports=function(e){if(void 0===e)return[];if(null===e)return[null];if(e===window)return[window];if("string"==typeof e)return[e];if(function(e){return"[object Array]"===Object.prototype.toString.call(e)}(e))return e;if("number"!=typeof e.length)return[e];if("function"==typeof e&&e instanceof Function)return[e];for(var t=[],n=0,s=e.length;n{e.exports=function(e){return e.handlers.filterStart=e.handlers.filterStart||[],e.handlers.filterComplete=e.handlers.filterComplete||[],function(t){if(e.trigger("filterStart"),e.i=1,e.reset.filter(),void 0===t)e.filtered=!1;else{e.filtered=!0;for(var n=e.items,s=0,o=n.length;s{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var s,o,a;if(Array.isArray(t)){if((s=t.length)!=n.length)return!1;for(o=s;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],n.get(o[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((s=t.length)!=n.length)return!1;for(o=s;0!==o--;)if(t[o]!==n[o])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((s=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=s;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=s;0!==o--;){var l=a[o];if(!e(t[l],n[l]))return!1}return!0}return t!=t&&n!=n}},332:(e,t,n)=>{var s=window.addEventListener?"addEventListener":"attachEvent",o=window.removeEventListener?"removeEventListener":"detachEvent",a="addEventListener"!==s?"on":"",l=n(212);t.bind=function(e,t,n,o){for(var i=0,r=(e=l(e)).length;i{e.exports=function(e){return(e=null===(e=void 0===e?"":e)?"":e).toString()}},343:e=>{e.exports=function(e){var t={els:void 0,clear:function(){for(var n=0,s=t.els.length;n{e.exports=function(e,t,n,s){return(s=s||{}).test&&s.getElementsByClassName||!s.test&&document.getElementsByClassName?function(e,t,n){return n?e.getElementsByClassName(t)[0]:e.getElementsByClassName(t)}(e,t,n):s.test&&s.querySelector||!s.test&&document.querySelector?function(e,t,n){return t="."+t,n?e.querySelector(t):e.querySelectorAll(t)}(e,t,n):function(e,t,n){for(var s=[],o=e.getElementsByTagName("*"),a=o.length,l=new RegExp("(^|\\s)"+t+"(\\s|$)"),i=0,r=0;i{e.exports=function(e){for(var t,n=Array.prototype.slice.call(arguments,1),s=0;t=n[s];s++)if(t)for(var o in t)e[o]=t[o];return e}},481:e=>{e.exports=function(e,t,n){var s=n.location||0,o=n.distance||100,a=n.threshold||.4;if(t===e)return!0;if(t.length>32)return!1;var l=s,i=function(){var e,n={};for(e=0;e=f;k--){var x=i[e.charAt(k-1)];if(y[k]=0===g?(y[k+1]<<1|1)&x:(y[k+1]<<1|1)&x|(m[k+1]|m[k])<<1|1|m[k+1],y[k]&b){var _=r(g,k-1);if(_<=c){if(c=_,!((d=k-1)>l))break;f=Math.max(1,2*l-d)}}}if(r(g+1,l)>c)break;m=y}return!(d<0)}},608:e=>{e.exports=function(e){return function(t,n,s){var o=this;this._values={},this.found=!1,this.filtered=!1,this.values=function(t,n){if(void 0===t)return o._values;for(var s in t)o._values[s]=t[s];!0!==n&&e.templater.set(o,o.values())},this.show=function(){e.templater.show(o)},this.hide=function(){e.templater.hide(o)},this.matching=function(){return e.filtered&&e.searched&&o.found&&o.filtered||e.filtered&&!e.searched&&o.filtered||!e.filtered&&e.searched&&o.found||!e.filtered&&!e.searched},this.visible=function(){return!(!o.elm||o.elm.parentNode!=e.list)},function(t,n,s){if(void 0===n)s?o.values(t,s):o.values(t);else{o.elm=n;var a=e.templater.get(o,t);o.values(a)}}(t,n,s)}}},647:e=>{e.exports=function(e){var t,n,s,o={resetList:function(){e.i=1,e.templater.clear(),s=void 0},setOptions:function(e){2==e.length&&e[1]instanceof Array?t=e[1]:2==e.length&&"function"==typeof e[1]?(t=void 0,s=e[1]):3==e.length?(t=e[1],s=e[2]):t=void 0},setColumns:function(){0!==e.items.length&&void 0===t&&(t=void 0===e.searchColumns?o.toArray(e.items[0].values()):e.searchColumns)},setSearchString:function(t){t=(t=e.utils.toString(t).toLowerCase()).replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),n=t},toArray:function(e){var t=[];for(var n in e)t.push(n);return t}},a=function(a){return e.trigger("searchStart"),o.resetList(),o.setSearchString(a),o.setOptions(arguments),o.setColumns(),""===n?(e.reset.search(),e.searched=!1):(e.searched=!0,s?s(n,t):function(){for(var s,o=[],a=n;null!==(s=a.match(/"([^"]+)"/));)o.push(s[1]),a=a.substring(0,s.index)+a.substring(s.index+s[0].length);(a=a.trim()).length&&(o=o.concat(a.split(/\s+/)));for(var l=0,i=e.items.length;l{e.exports=function(e){var t=n(608)(e),s=function(n,s){for(var o=0,a=n.length;o0?setTimeout(function(){o(t,n)},1):(e.update(),e.trigger("parseComplete"))};return e.handlers.parseComplete=e.handlers.parseComplete||[],function(){var t=function(e){for(var t=e.childNodes,n=[],s=0,o=t.length;s{e.exports=function(e){var t=function(n,s,o){var a=n.splice(0,50);o=(o=o||[]).concat(e.add(a)),n.length>0?setTimeout(function(){t(n,s,o)},1):(e.update(),s(o))};return t}},774:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var s,o,a;if(Array.isArray(t)){if((s=t.length)!=n.length)return!1;for(o=s;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((s=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=s;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=s;0!==o--;){var l=a[o];if(!("_owner"===l&&t.$$typeof||e(t[l],n[l])))return!1}return!0}return t!=t&&n!=n}},799:(e,t,n)=>{var s=n(813),o=n(378),a=n(433),l=n(859),i=n(332),r=n(340),c=n(981),d=n(200),u=n(212);e.exports=function(e,t,p){var b,m=this,h=n(608)(m),g=n(717)(m),f=n(195)(m);b={start:function(){m.listClass="list",m.searchClass="search",m.sortClass="sort",m.page=1e4,m.i=1,m.items=[],m.visibleItems=[],m.matchingItems=[],m.searched=!1,m.filtered=!1,m.searchColumns=void 0,m.searchDelay=0,m.handlers={updated:[]},m.valueNames=[],m.utils={getByClass:o,extend:a,indexOf:l,events:i,toString:r,naturalSort:s,classes:c,getAttribute:d,toArray:u},m.utils.extend(m,t),m.listContainer="string"==typeof e?document.getElementById(e):e,m.listContainer&&(m.list=o(m.listContainer,m.listClass,!0),m.parse=n(672)(m),m.templater=n(939)(m),m.search=n(647)(m),m.filter=n(249)(m),m.sort=n(343)(m),m.fuzzySearch=n(844)(m,t.fuzzySearch),this.handlers(),this.items(),this.pagination(),m.update())},handlers:function(){for(var e in m.handlers)m[e]&&m.handlers.hasOwnProperty(e)&&m.on(e,m[e])},items:function(){m.parse(m.list),void 0!==p&&m.add(p)},pagination:function(){if(void 0!==t.pagination){!0===t.pagination&&(t.pagination=[{}]),void 0===t.pagination[0]&&(t.pagination=[t.pagination]);for(var e=0,n=t.pagination.length;em.page,l=new h(e[o],void 0,s),m.items.push(l),n.push(l)}return m.update(),n}g(e.slice(0),t)}},this.show=function(e,t){return this.i=e,this.page=t,m.update(),m},this.remove=function(e,t,n){for(var s=0,o=0,a=m.items.length;o-1&&n.splice(s,1),m},this.trigger=function(e){for(var t=m.handlers[e].length;t--;)m.handlers[e][t](m);return m},this.reset={filter:function(){for(var e=m.items,t=e.length;t--;)e[t].filtered=!1;return m},search:function(){for(var e=m.items,t=e.length;t--;)e[t].found=!1;return m}},this.update=function(){var e=m.items,t=e.length;m.visibleItems=[],m.matchingItems=[],m.templater.clear();for(var n=0;n=m.i&&m.visibleItems.length{"use strict";var t,n,s=0;function o(e){return e>=48&&e<=57}function a(e,t){for(var a=(e+="").length,l=(t+="").length,i=0,r=0;i=a&&r=l?-1:r>=l&&i=a?1:a-l}a.caseInsensitive=a.i=function(e,t){return a((""+e).toLowerCase(),(""+t).toLowerCase())},Object.defineProperties(a,{alphabet:{get:function(){return t},set:function(e){n=[];var o=0;if(t=e)for(;o{n(981);var s=n(332),o=n(433),a=n(340),l=n(378),i=n(481);e.exports=function(e,t){t=o({location:0,distance:100,threshold:.4,multiSearch:!0,searchClass:"fuzzy-search"},t=t||{});var n={search:function(s,o){for(var a=t.multiSearch?s.replace(/ +$/,"").split(/ +/):[s],l=0,i=e.items.length;l{var t=[].indexOf;e.exports=function(e,n){if(t)return e.indexOf(n);for(var s=0,o=e.length;s{var t=function(e){var t,n=this,s=function(e){if("string"==typeof e){if(/]/g.exec(e)){var t=document.createElement("tbody");return t.innerHTML=e,t.firstElementChild}if(-1!==e.indexOf("<")){var n=document.createElement("div");return n.innerHTML=e,n.firstElementChild}}},o=function(t,n,s){var o=void 0,a=function(t){for(var n=0,s=e.valueNames.length;n=1;)e.list.removeChild(e.list.firstChild)},function(){var n;if("function"!=typeof e.item){if(!(n="string"==typeof e.item?-1===e.item.indexOf("<")?document.getElementById(e.item):s(e.item):function(){for(var t=e.list.childNodes,n=0,s=t.length;n{var s=n(859),o=/\s+/;function a(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}Object.prototype.toString,e.exports=function(e){return new a(e)},a.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~s(t,e)||t.push(e),this.el.className=t.join(" "),this},a.prototype.remove=function(e){if(this.list)return this.list.remove(e),this;var t=this.array(),n=s(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},a.prototype.toggle=function(e,t){return this.list?(void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):(void 0!==t?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},a.prototype.array=function(){var e=(this.el.getAttribute("class")||"").replace(/^\s+|\s+$/g,"").split(o);return""===e[0]&&e.shift(),e},a.prototype.has=a.prototype.contains=function(e){return this.list?this.list.contains(e):!!~s(this.array(),e)}}},t={};function n(s){var o=t[s];if(void 0!==o)return o.exports;var a=t[s]={exports:{}};return e[s](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.data,t=window.wp.dataControls,s={},o={getPreviewMode(e,t){var n;return null!==(n=e.previewModes[t])&&void 0!==n?n:""}},a=window.wp.apiFetch;var l=n.n(a);const i={fonts:{body:{fontFamily:"Nunito",genericFamily:"sans-serif",fontVariants:[]},headings:{fontFamily:"Roboto",genericFamily:"sans-serif",fontVariants:[]},additionalFonts:[]},fontsPresets:[{body:{fontFamily:"Nunito",genericFamily:"sans-serif"},headings:{fontFamily:"Roboto",genericFamily:"sans-serif"}},{body:{fontFamily:"Montserrat",genericFamily:"sans-serif"},headings:{fontFamily:"Oswald",genericFamily:"sans-serif"}},{body:{fontFamily:"Merriweather",genericFamily:"serif"},headings:{fontFamily:"Oswald",genericFamily:"sans-serif"}},{body:{fontFamily:"Montserrat",genericFamily:"sans-serif"},headings:{fontFamily:"Source Sans Pro",genericFamily:"sans-serif"}},{body:{fontFamily:"Source Sans Pro",genericFamily:"sans-serif"},headings:{fontFamily:"Libre Baskerville",genericFamily:"serif"}},{body:{fontFamily:"Fauna One",genericFamily:"serif"},headings:{fontFamily:"Playfair Display",genericFamily:"serif"}},{body:{fontFamily:"Josefin Slab",genericFamily:"serif"},headings:{fontFamily:"Six Caps",genericFamily:"sans-serif"}},{body:{fontFamily:"Source Sans Pro",genericFamily:"sans-serif"},headings:{fontFamily:"Playfair Display",genericFamily:"serif"}},{body:{fontFamily:"Quattrocento",genericFamily:"serif"},headings:{fontFamily:"Oswald",genericFamily:"sans-serif"}},{body:{fontFamily:"Alice",genericFamily:"serif"},headings:{fontFamily:"Sacramento",genericFamily:"cursive"}},{body:{fontFamily:"Lato",genericFamily:"sans-serif"},headings:{fontFamily:"Arvo",genericFamily:"serif"}},{body:{fontFamily:"Poppins",genericFamily:"sans-serif"},headings:{fontFamily:"Abril Fatface",genericFamily:"cursive"}},{body:{fontFamily:"Inconsolata",genericFamily:"monospace"},headings:{fontFamily:"Karla",genericFamily:"sans-serif"}},{body:{fontFamily:"Andika",genericFamily:"sans-serif"},headings:{fontFamily:"Amatic SC",genericFamily:"sans-serif"}},{body:{fontFamily:"Lato",genericFamily:"sans-serif"},headings:{fontFamily:"Lustria",genericFamily:"serif"}},{body:{fontFamily:"Proza Libre",genericFamily:"sans-serif"},headings:{fontFamily:"Cormorant Garamond",genericFamily:"serif"}},{body:{fontFamily:"EB Garamond",genericFamily:"serif"},headings:{fontFamily:"Oswald",genericFamily:"sans-serif"}},{body:{fontFamily:"Josefin Sans",genericFamily:"sans-serif"},headings:{fontFamily:"Yeseva One",genericFamily:"cursive"}},{body:{fontFamily:"Inter",genericFamily:"sans-serif"},headings:{fontFamily:"EB Garamond",genericFamily:"serif"}}],googleFonts:[]},r={fonts:null},c={getGoogleFonts:()=>async({dispatch:e})=>{const t=await l()({path:"boldblocks/v1/getGoogleFonts"});return t&&t.success&&e({type:"SET_GOOGLE_FONTS",payload:t.data}),t},getTypography:()=>async({dispatch:e})=>{const{CBBTypography:t}=await l()({path:"wp/v2/settings"});if(t)return d(t,e);{const{CBBTypography:t}=await l()({path:"wp/v2/settings",method:"POST",data:{CBBTypography:{fonts:JSON.stringify(i.fonts)}}});return d(t,e)}},getPostTypography:e=>async({dispatch:t})=>{if(!e)return;const{meta:{CBBTypography:n}={}}=await l()({path:e});return u(n,t)}},d=(e,t)=>{if(e&&e?.fonts){const n=JSON.parse(e.fonts);return t({type:"UPDATE_FONTS",payload:n}),n}return e},u=(e,t)=>{let n;return e&&e?.fonts&&(n=JSON.parse(e.fonts)),t({type:"UPDATE_POST_FONTS",payload:n}),n},p={updateFonts:e=>({type:"UPDATE_FONTS",payload:e}),updatePostFonts:e=>({type:"UPDATE_POST_FONTS",payload:e}),updateAndPersistFonts:e=>async({dispatch:t})=>{const{CBBTypography:n}=await l()({path:"wp/v2/settings",method:"POST",data:{CBBTypography:{fonts:e}}});return d(n,t)},updateAndPersistPostFonts:(e,t)=>async({dispatch:n})=>{const{meta:{CBBTypography:s}={}}=await l()({path:t,method:"POST",data:{meta:{CBBTypography:{fonts:e}}}});return u(s,n)}},b={blocks:{},statuses:{}},m={getMissingBlock(e,t){var n;return null!==(n=e.missingBlocks.blocks[t])&&void 0!==n&&n},getMissingBlockStatus(e,t){var n;return null!==(n=e.missingBlocks.statuses[t])&&void 0!==n&&n}},h={setMissingBlockStatus:e=>({type:"SET_MISSING_BLOCK_STATUS",payload:e}),loadMissingBlock:e=>async({select:t,dispatch:n})=>{let s=t.getMissingBlock(e);var o;!1===s&&(s=null!==(o=(await l()({path:`wp/v2/block-directory/search?term=${e}`}))[0])&&void 0!==o?o:{},n({type:"SET_MISSING_BLOCK",payload:{[e]:s}}));return s}},g={},f={getNavRef(e,t){var n;return null!==(n=e.navRefs[t])&&void 0!==n?n:""}},v=window.lodash,y=window.wp.blockEditor,k=window.wp.element;var x=n(252),_=n.n(x);const w=e=>{const t=(0,k.useRef)(e);return _()(t.current,e)||(t.current=e),t},S=()=>{const e=(0,k.useRef)(!0);return(0,k.useEffect)(()=>{e.current=!1},[]),e.current},C=(e={},t,n)=>s=>(t(s,n)&&(s.attributes.boldblocks||(s.attributes.boldblocks={type:"object",default:{}}),s.attributes.boldblocks?.default||(s.attributes.boldblocks.default={}),Object.assign(s.attributes.boldblocks.default,e)),s),j=(e,t,n)=>s=>{if(!t(s,n))return s;const o=s.getEditWrapperProps;return s.getEditWrapperProps=t=>{let n={};return o&&(n=o(t)),e(n,s,{...t,isBlockEdit:!0})},s},T=(t,n=!1)=>{const{getBlocksByClientId:s}=(0,e.useSelect)(e=>e(y.store),[]),{updateBlockAttributes:o}=(0,e.useDispatch)(y.store),a=n?function(){const{isSelected:t,clientId:n,name:s}=(0,y.useBlockEditContext)();return(0,e.useSelect)(e=>{if(t)return!0;const{getBlockName:o,isFirstMultiSelectedBlock:a,getMultiSelectedBlockClientIds:l}=e(y.store);if(a(n)){const e=l();if(e.every(e=>o(e)===s))return e}return!1},[n,t,s])}():t?.isSelected;return(0,k.useMemo)(()=>{const e=!!(0,v.isArray)(a)&&s(a);return{shouldDisplayBlockControls:a,blocks:e,updateBlockAttributes:o}},[a])},E=({value:e,getStyle:t})=>{const n=w(e);return(0,k.useMemo)(t(n.current),[n.current])},B=e=>e.every((e,t,n)=>(0,v.isEqual)(e,n[0]));function N(e){return!((0,v.isNil)(e)||(0,v.isObject)(e)&&(0,v.isEmpty)(e))}function I(e){return(0,v.isNil)(e)||""===e}const A=window.wp.i18n;function P(){const{colors:e}=(0,y.__experimentalUseMultipleOriginColorsAndGradients)();return{colors:e,allColors:e.reduce((e,t)=>e.concat(t.colors),[])}}const O=(e,t)=>(0,v.isString)(e)?{value:e,slug:(0,y.getColorObjectByColorValue)(t,e)?.slug}:(0,v.isObject)(e)&&null!=e?e:{};function F(e,t){const n=(0,y.__experimentalUseMultipleOriginColorsAndGradients)(),s=n.colors.reduce((e,t)=>e.concat(t.colors),[]),o=n.gradients.reduce((e,t)=>e.concat(t.gradients),[]),a=(0,k.useRef)(e);return(0,k.useEffect)(()=>{a.current=e},[e]),[e=>{const n={...a.current,value:e,slug:(0,y.getColorObjectByColorValue)(s,e)?.slug};t(n),a.current=n},e=>{const n={...a.current,gradientValue:e,gradientSlug:(0,y.getGradientSlugByValue)(o,e)};t(n),a.current=n}]}function L(e){if(!e||!(0,v.isString)(e))return!1;if(!Number.isNaN(Number(e[0])))return!1;if(-1!==e.indexOf("#")||-1!==e.indexOf("rgb"))return!0;const t=(new Option).style;return t.color=e,""!==t.color}function $(e){return e?((0,v.isString)(e)&&(e={value:e}),N(e)?e?.gradientSlug||e?.gradientValue?e?.gradientSlug?`var(--wp--preset--gradient--${e.gradientSlug}, ${e?.gradientValue})`:e?.gradientValue:e?.slug?`var(--wp--preset--color--${e.slug}, ${e?.value})`:e?.value:void 0):""}const M=(e,t,n,s=!1,o=e=>e+"")=>{let a={};if(N(e)){let l,i,r,c;if(e?.top||e?.right||e?.bottom||e?.left?(l=e?.top,i=e?.right,r=e?.bottom,c=e?.left):l=i=r=c=e,!(0,v.isNil)(l)){const e=o(l);e&&(a={...a,[`${t}-top--${n}`]:s?`var(${t}-top--${s})`:e})}if(!(0,v.isNil)(i)){const e=o(i);e&&(a={...a,[`${t}-right--${n}`]:s?`var(${t}-right--${s})`:e})}if(!(0,v.isNil)(r)){const e=o(r);e&&(a={...a,[`${t}-bottom--${n}`]:s?`var(${t}-bottom--${s})`:e})}if(!(0,v.isNil)(c)){const e=o(c);e&&(a={...a,[`${t}-left--${n}`]:s?`var(${t}-left--${s})`:e})}}return a};function D(e,t,n="--bb"){let s={};return N(e)&&Object.keys(e).forEach(o=>{const{value:{value:a}={},inherit:l}=e[o];if((0,v.isUndefined)(a)){if(l&&(0,v.isString)(l)){var i;const{value:{value:a}={}}=null!==(i=e[l])&&void 0!==i?i:{};I(a)||(s={...s,[`${n}--${t}--${o}`]:`var(${n}--${t}--${l})`})}}else I(a)||(s={...s,[`${n}--${t}--${o}`]:a+""})}),s}function z(e){return I(e)?"":(t=e,t?.includes&&("0"===t||t.includes("var:preset|spacing|"))?function(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}(e):(0,v.isObject)(e)||(0,v.isArray)(e)?"":e+"");var t}const V=(e,t=$)=>{let n=[];if((0,v.isObject)(e)){const{width:s,style:o,color:a}=e;!I(s)&&(0,v.isString)(s)&&n.push(s),!I(o)&&(0,v.isString)(o)&&n.push(o),(!I(a)&&(0,v.isString)(a)||(0,v.isObject)(a))&&n.push(t(a))}return n.join(" ").trim()};const{entries:R,setPrototypeOf:H,isFrozen:G,getPrototypeOf:q,getOwnPropertyDescriptor:U}=Object;let{freeze:W,seal:Y,create:X}=Object,{apply:Z,construct:J}="undefined"!=typeof Reflect&&Reflect;W||(W=function(e){return e}),Y||(Y=function(e){return e}),Z||(Z=function(e,t){for(var n=arguments.length,s=new Array(n>2?n-2:0),o=2;o1?t-1:0),s=1;s1?n-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:se;H&&H(e,null);let s=t.length;for(;s--;){let o=t[s];if("string"==typeof o){const e=n(o);e!==o&&(G(t)||(t[s]=e),o=e)}e[o]=!0}return e}function he(e){for(let t=0;t/gm),Ie=Y(/\$\{[\w\W]*/gm),Ae=Y(/^data-[\-\w.\u00B7-\uFFFF]+$/),Pe=Y(/^aria-[\-\w]+$/),Oe=Y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fe=Y(/^(?:\w+script|data):/i),Le=Y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$e=Y(/^html$/i),Me=Y(/^[a-z][.\w]*(-[.\w]+)+$/i);var De=Object.freeze({__proto__:null,ARIA_ATTR:Pe,ATTR_WHITESPACE:Le,CUSTOM_ELEMENT:Me,DATA_ATTR:Ae,DOCTYPE_NAME:$e,ERB_EXPR:Ne,IS_ALLOWED_URI:Oe,IS_SCRIPT_OR_DATA:Fe,MUSTACHE_EXPR:Be,TMPLIT_EXPR:Ie});const ze=function(){return"undefined"==typeof window?null:window};var Ve=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ze();const n=t=>e(t);if(n.version="3.3.0",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:s}=t;const o=s,a=o.currentScript,{DocumentFragment:l,HTMLTemplateElement:i,Node:r,Element:c,NodeFilter:d,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:b,trustedTypes:m}=t,h=c.prototype,g=fe(h,"cloneNode"),f=fe(h,"remove"),v=fe(h,"nextSibling"),y=fe(h,"childNodes"),k=fe(h,"parentNode");if("function"==typeof i){const e=s.createElement("template");e.content&&e.content.ownerDocument&&(s=e.content.ownerDocument)}let x,_="";const{implementation:w,createNodeIterator:S,createDocumentFragment:C,getElementsByTagName:j}=s,{importNode:T}=o;let E={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof R&&"function"==typeof k&&w&&void 0!==w.createHTMLDocument;const{MUSTACHE_EXPR:B,ERB_EXPR:N,TMPLIT_EXPR:I,DATA_ATTR:A,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:F,CUSTOM_ELEMENT:L}=De;let{IS_ALLOWED_URI:$}=De,M=null;const D=me({},[...ve,...ye,...ke,..._e,...Se]);let z=null;const V=me({},[...Ce,...je,...Te,...Ee]);let H=Object.seal(X(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,q=null;const U=Object.seal(X(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Y=!0,Z=!0,J=!1,pe=!0,be=!1,he=!0,Be=!1,Ne=!1,Ie=!1,Ae=!1,Pe=!1,Fe=!1,Le=!0,Me=!1,Ve=!0,Re=!1,He={},Ge=null;const qe=me({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ue=null;const We=me({},["audio","video","img","source","image","track"]);let Ye=null;const Xe=me({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let Ke=Qe,et=!1,tt=null;const nt=me({},[Ze,Je,Qe],oe);let st=me({},["mi","mo","mn","ms","mtext"]),ot=me({},["annotation-xml"]);const at=me({},["title","style","font","a","script"]);let lt=null;const it=["application/xhtml+xml","text/html"];let rt=null,ct=null;const dt=s.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},pt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ct||ct!==e){if(e&&"object"==typeof e||(e={}),e=ge(e),lt=-1===it.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,rt="application/xhtml+xml"===lt?oe:se,M=ce(e,"ALLOWED_TAGS")?me({},e.ALLOWED_TAGS,rt):D,z=ce(e,"ALLOWED_ATTR")?me({},e.ALLOWED_ATTR,rt):V,tt=ce(e,"ALLOWED_NAMESPACES")?me({},e.ALLOWED_NAMESPACES,oe):nt,Ye=ce(e,"ADD_URI_SAFE_ATTR")?me(ge(Xe),e.ADD_URI_SAFE_ATTR,rt):Xe,Ue=ce(e,"ADD_DATA_URI_TAGS")?me(ge(We),e.ADD_DATA_URI_TAGS,rt):We,Ge=ce(e,"FORBID_CONTENTS")?me({},e.FORBID_CONTENTS,rt):qe,G=ce(e,"FORBID_TAGS")?me({},e.FORBID_TAGS,rt):ge({}),q=ce(e,"FORBID_ATTR")?me({},e.FORBID_ATTR,rt):ge({}),He=!!ce(e,"USE_PROFILES")&&e.USE_PROFILES,Y=!1!==e.ALLOW_ARIA_ATTR,Z=!1!==e.ALLOW_DATA_ATTR,J=e.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,be=e.SAFE_FOR_TEMPLATES||!1,he=!1!==e.SAFE_FOR_XML,Be=e.WHOLE_DOCUMENT||!1,Ae=e.RETURN_DOM||!1,Pe=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,Ie=e.FORCE_BODY||!1,Le=!1!==e.SANITIZE_DOM,Me=e.SANITIZE_NAMED_PROPS||!1,Ve=!1!==e.KEEP_CONTENT,Re=e.IN_PLACE||!1,$=e.ALLOWED_URI_REGEXP||Oe,Ke=e.NAMESPACE||Qe,st=e.MATHML_TEXT_INTEGRATION_POINTS||st,ot=e.HTML_INTEGRATION_POINTS||ot,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),be&&(Z=!1),Pe&&(Ae=!0),He&&(M=me({},Se),z=[],!0===He.html&&(me(M,ve),me(z,Ce)),!0===He.svg&&(me(M,ye),me(z,je),me(z,Ee)),!0===He.svgFilters&&(me(M,ke),me(z,je),me(z,Ee)),!0===He.mathMl&&(me(M,_e),me(z,Te),me(z,Ee))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?U.tagCheck=e.ADD_TAGS:(M===D&&(M=ge(M)),me(M,e.ADD_TAGS,rt))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?U.attributeCheck=e.ADD_ATTR:(z===V&&(z=ge(z)),me(z,e.ADD_ATTR,rt))),e.ADD_URI_SAFE_ATTR&&me(Ye,e.ADD_URI_SAFE_ATTR,rt),e.FORBID_CONTENTS&&(Ge===qe&&(Ge=ge(Ge)),me(Ge,e.FORBID_CONTENTS,rt)),Ve&&(M["#text"]=!0),Be&&me(M,["html","head","body"]),M.table&&(me(M,["tbody"]),delete G.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw ue('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw ue('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=e.TRUSTED_TYPES_POLICY,_=x.createHTML("")}else void 0===x&&(x=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const s="data-tt-policy-suffix";t&&t.hasAttribute(s)&&(n=t.getAttribute(s));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(m,a)),null!==x&&"string"==typeof _&&(_=x.createHTML(""));W&&W(e),ct=e}},bt=me({},[...ye,...ke,...xe]),mt=me({},[..._e,...we]),ht=function(e){te(n.removed,{element:e});try{k(e).removeChild(e)}catch(t){f(e)}},gt=function(e,t){try{te(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){te(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Ae||Pe)try{ht(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ft=function(e){let t=null,n=null;if(Ie)e=""+e;else{const t=ae(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===lt&&Ke===Qe&&(e=''+e+"");const o=x?x.createHTML(e):e;if(Ke===Qe)try{t=(new b).parseFromString(o,lt)}catch(e){}if(!t||!t.documentElement){t=w.createDocument(Ke,"template",null);try{t.documentElement.innerHTML=et?_:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(s.createTextNode(n),a.childNodes[0]||null),Ke===Qe?j.call(t,Be?"html":"body")[0]:Be?t.documentElement:a},vt=function(e){return S.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},yt=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof u)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},kt=function(e){return"function"==typeof r&&e instanceof r};function xt(e,t,s){Q(e,e=>{e.call(n,t,s,ct)})}const _t=function(e){let t=null;if(xt(E.beforeSanitizeElements,e,null),yt(e))return ht(e),!0;const s=rt(e.nodeName);if(xt(E.uponSanitizeElement,e,{tagName:s,allowedTags:M}),he&&e.hasChildNodes()&&!kt(e.firstElementChild)&&de(/<[/\w!]/g,e.innerHTML)&&de(/<[/\w!]/g,e.textContent))return ht(e),!0;if(7===e.nodeType)return ht(e),!0;if(he&&8===e.nodeType&&de(/<[/\w]/g,e.data))return ht(e),!0;if(!(U.tagCheck instanceof Function&&U.tagCheck(s))&&(!M[s]||G[s])){if(!G[s]&&St(s)){if(H.tagNameCheck instanceof RegExp&&de(H.tagNameCheck,s))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(s))return!1}if(Ve&&!Ge[s]){const t=k(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t)for(let s=n.length-1;s>=0;--s){const o=g(n[s],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,v(e))}}return ht(e),!0}return e instanceof c&&!function(e){let t=k(e);t&&t.tagName||(t={namespaceURI:Ke,tagName:"template"});const n=se(e.tagName),s=se(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Je?t.namespaceURI===Qe?"svg"===n:t.namespaceURI===Ze?"svg"===n&&("annotation-xml"===s||st[s]):Boolean(bt[n]):e.namespaceURI===Ze?t.namespaceURI===Qe?"math"===n:t.namespaceURI===Je?"math"===n&&ot[s]:Boolean(mt[n]):e.namespaceURI===Qe?!(t.namespaceURI===Je&&!ot[s])&&!(t.namespaceURI===Ze&&!st[s])&&!mt[n]&&(at[n]||!bt[n]):!("application/xhtml+xml"!==lt||!tt[e.namespaceURI]))}(e)?(ht(e),!0):"noscript"!==s&&"noembed"!==s&&"noframes"!==s||!de(/<\/no(script|embed|frames)/i,e.innerHTML)?(be&&3===e.nodeType&&(t=e.textContent,Q([B,N,I],e=>{t=le(t,e," ")}),e.textContent!==t&&(te(n.removed,{element:e.cloneNode()}),e.textContent=t)),xt(E.afterSanitizeElements,e,null),!1):(ht(e),!0)},wt=function(e,t,n){if(Le&&("id"===t||"name"===t)&&(n in s||n in dt))return!1;if(Z&&!q[t]&&de(A,t));else if(Y&&de(P,t));else if(U.attributeCheck instanceof Function&&U.attributeCheck(t,e));else if(!z[t]||q[t]){if(!(St(e)&&(H.tagNameCheck instanceof RegExp&&de(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&de(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t,e))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&de(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(Ye[t]);else if(de($,le(n,F,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==ie(n,"data:")||!Ue[e])if(J&&!de(O,le(n,F,"")));else if(n)return!1;return!0},St=function(e){return"annotation-xml"!==e&&ae(e,L)},Ct=function(e){xt(E.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||yt(e))return;const s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],{name:l,namespaceURI:i,value:r}=a,c=rt(l),d=r;let u="value"===l?d:re(d);if(s.attrName=c,s.attrValue=u,s.keepAttr=!0,s.forceKeepAttr=void 0,xt(E.uponSanitizeAttribute,e,s),u=s.attrValue,!Me||"id"!==c&&"name"!==c||(gt(l,e),u="user-content-"+u),he&&de(/((--!?|])>)|<\/(style|title|textarea)/i,u)){gt(l,e);continue}if("attributename"===c&&ae(u,"href")){gt(l,e);continue}if(s.forceKeepAttr)continue;if(!s.keepAttr){gt(l,e);continue}if(!pe&&de(/\/>/i,u)){gt(l,e);continue}be&&Q([B,N,I],e=>{u=le(u,e," ")});const p=rt(e.nodeName);if(wt(p,c,u)){if(x&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(i);else switch(m.getAttributeType(p,c)){case"TrustedHTML":u=x.createHTML(u);break;case"TrustedScriptURL":u=x.createScriptURL(u)}if(u!==d)try{i?e.setAttributeNS(i,l,u):e.setAttribute(l,u),yt(e)?ht(e):ee(n.removed)}catch(t){gt(l,e)}}else gt(l,e)}xt(E.afterSanitizeAttributes,e,null)},jt=function e(t){let n=null;const s=vt(t);for(xt(E.beforeSanitizeShadowDOM,t,null);n=s.nextNode();)xt(E.uponSanitizeShadowNode,n,null),_t(n),Ct(n),n.content instanceof l&&e(n.content);xt(E.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=null,a=null,i=null,c=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!kt(e)){if("function"!=typeof e.toString)throw ue("toString is not a function");if("string"!=typeof(e=e.toString()))throw ue("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Ne||pt(t),n.removed=[],"string"==typeof e&&(Re=!1),Re){if(e.nodeName){const t=rt(e.nodeName);if(!M[t]||G[t])throw ue("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof r)s=ft("\x3c!----\x3e"),a=s.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?s=a:s.appendChild(a);else{if(!Ae&&!be&&!Be&&-1===e.indexOf("<"))return x&&Fe?x.createHTML(e):e;if(s=ft(e),!s)return Ae?null:Fe?_:""}s&&Ie&&ht(s.firstChild);const d=vt(Re?e:s);for(;i=d.nextNode();)_t(i),Ct(i),i.content instanceof l&&jt(i.content);if(Re)return e;if(Ae){if(Pe)for(c=C.call(s.ownerDocument);s.firstChild;)c.appendChild(s.firstChild);else c=s;return(z.shadowroot||z.shadowrootmode)&&(c=T.call(o,c,!0)),c}let u=Be?s.outerHTML:s.innerHTML;return Be&&M["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&de($e,s.ownerDocument.doctype.name)&&(u="\n"+u),be&&Q([B,N,I],e=>{u=le(u,e," ")}),x&&Fe?x.createHTML(u):u},n.setConfig=function(){pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ne=!0},n.clearConfig=function(){ct=null,Ne=!1},n.isValidAttribute=function(e,t,n){ct||pt({});const s=rt(e),o=rt(t);return wt(s,o,n)},n.addHook=function(e,t){"function"==typeof t&&te(E[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=K(E[e],t);return-1===n?void 0:ne(E[e],n,1)[0]}return ee(E[e])},n.removeHooks=function(e){E[e]=[]},n.removeAllHooks=function(){E={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const Re=window.wp.url,He=e=>{const t=Ve.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0}});return t?Ve.sanitize(t,{USE_PROFILES:{svg:!0,svgFilters:!0}}):t};function Ge(e){const t=document.createElement("template");return t.setAttribute("style",e),Object.entries(t.style).filter(([e])=>!/^[0-9]+$/.test(e)).filter(([,e])=>Boolean(e)).reduce((e,[t,n])=>({...e,[t]:n}),{})}const qe=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase();let Ue=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};const We={},Ye=(e,t)=>{We[e]=t},Xe=(e,t,n,s=!0,o=!1)=>{const a=!!s&&((e,t,n)=>{var s;if(null!==(s=We[e])&&void 0!==s&&s)return!1;if(!t||!n&&Object.values(We).includes(t)){const t=Ue(10);return Ye(e,t),t}return Ye(e,t),!1})(t,e,o);return(0,k.useEffect)(()=>(a&&n&&n(a),()=>Ye(t,null)),[a,n]),a||e},Ze=[{name:"Shadow 1",slug:"bb-shadow-1",shadow:"rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px"},{name:"Shadow 2",slug:"bb-shadow-2",shadow:"rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px"},{name:"Shadow 3",slug:"bb-shadow-3",shadow:"rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px"},{name:"Shadow 4",slug:"bb-shadow-4",shadow:"rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px"},{name:"Shadow 5",slug:"bb-shadow-5",shadow:"rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px"},{name:"Shadow 6",slug:"bb-shadow-6",shadow:"rgba(33, 35, 38, 0.1) 0px 10px 10px -10px"},{name:"Shadow 7",slug:"bb-shadow-7",shadow:"rgba(0, 0, 0, 0.45) 0px 25px 20px -20px"},{name:"Shadow 8",slug:"bb-shadow-8",shadow:"rgba(0, 0, 0, 0.15) 0px 3px 3px 0px"},{name:"Shadow 9",slug:"bb-shadow-9",shadow:"rgb(0, 0, 0) 2px 2px 5px -1px inset, rgba(255, 255, 255, 0.5) -2px -2px 5px 1px inset"},{name:"Shadow 10",slug:"bb-shadow-10",shadow:"rgba(6, 24, 44, 0.4) 0px 0px 0px 1px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset"}],Je=window.ReactJSXRuntime,Qe=window.wp.primitives;var Ke=(0,Je.jsx)(Qe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Qe.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"})}),et=(0,Je.jsx)(Qe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Qe.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})}),tt=(0,Je.jsx)(Qe.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Je.jsx)(Qe.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})});const nt=window.wp.hooks,st="Mobile",ot="Tablet",at="Desktop",lt={},it=getComputedStyle(document.documentElement);lt[st]=it.getPropertyValue("--wp--custom--breakpoint--sm")||"576px",lt[ot]=it.getPropertyValue("--wp--custom--breakpoint--md")||"768px",lt[at]=it.getPropertyValue("--wp--custom--breakpoint--lg")||"1024px";const rt={};Object.keys(lt).map(e=>{rt[e]=e===st?"":`@media (min-width: ${lt[e]})`});const ct=[{icon:Ke,title:(0,A.__)("Mobile","content-blocks-builder"),device:st,breakpoint:"sm",mediaQuery:rt[st]},{icon:et,title:(0,A.__)("Tablet","content-blocks-builder"),device:ot,breakpoint:"md",mediaQuery:rt[ot]},{icon:tt,title:(0,A.__)("Desktop","content-blocks-builder"),device:at,breakpoint:"lg",mediaQuery:rt[at]}];function dt(){return ct}function ut(){return(0,e.useSelect)(e=>e("core/editor").getDeviceType(),[])}function pt(){return(0,e.useDispatch)("core/editor").setDeviceType}function bt(){let e="";switch(ut()){case st:e="sm";break;case ot:e="md";break;case at:e="lg";break;default:e="sm"}return e}function mt(){return(0,nt.applyFilters)("boldblocks.breakpoints",["sm","md","lg"])}function ht({fieldValue:e,breakpoint:t,defaultValue:n}){if(!e||!(0,v.isObject)(e))return n;const{[t]:{value:s,inherit:o}={}}=e;return(0,v.isUndefined)(s)?o&&e[o]&&!(0,v.isUndefined)(e[o].value)?e[o].value:n:s}function gt({breakpoint:e,allBreakpoints:t,fieldValue:n={},newValue:s}){return t.forEach(t=>{t===e?n={...n,[e]:{value:s,inherit:null}}:n[t]&&(0,v.isObject)(n[t])||(n={...n,[t]:{inherit:e}})}),n}function ft({newValue:e,groupName:t,fieldName:n,attributes:s,breakpoint:o,allBreakpoints:a}){const{boldblocks:l={}}=s,{[t]:i={}}=l;let{[n]:r={}}=i;return r=gt({newValue:e,fieldValue:r,breakpoint:o,allBreakpoints:a}),{boldblocks:{...l,[t]:{...i,[n]:r}}}}function vt({groupName:e,fieldName:t,setAttributes:n,attributes:s,blocks:o,updateBlockAttributes:a,breakpoint:l,allBreakpoints:i}){return r=>{o?o.forEach(({clientId:n,attributes:s})=>{a(n,ft({newValue:r,groupName:e,fieldName:t,attributes:s,breakpoint:l,allBreakpoints:i}))}):n(ft({newValue:r,groupName:e,fieldName:t,attributes:s,breakpoint:l,allBreakpoints:i}))}}function yt({fieldName:e,groupName:t,attributes:n,breakpoint:s,defaultValue:o}){const{boldblocks:{[t]:{[e]:a}={}}={}}=n;return ht({fieldValue:a,breakpoint:s,defaultValue:o})}function kt({newValue:e,fieldName:t,attributes:n,breakpoint:s,allBreakpoints:o}){const{boldblocks:a={}}=n;let{[t]:l={}}=a;return l=gt({newValue:e,fieldValue:l,breakpoint:s,allBreakpoints:o}),{boldblocks:{...a,[t]:l}}}function xt({fieldName:e,setAttributes:t,attributes:n,blocks:s,updateBlockAttributes:o,breakpoint:a,allBreakpoints:l}){return i=>{s?s.forEach(({clientId:t,attributes:n})=>{o(t,kt({newValue:i,fieldName:e,attributes:n,breakpoint:a,allBreakpoints:l}))}):t(kt({newValue:i,fieldName:e,attributes:n,breakpoint:a,allBreakpoints:l}))}}function _t({fieldName:e,attributes:t,breakpoint:n,defaultValue:s}){const{boldblocks:{[e]:o}={}}=t;return ht({fieldValue:o,breakpoint:n,defaultValue:s})}function wt({newValue:e,groupName:t,fieldName:n,attributes:s}){const{boldblocks:o={}}=s,{[t]:a={}}=o;return{boldblocks:{...o,[t]:{...a,[n]:e}}}}function St({groupName:e,fieldName:t,setAttributes:n,attributes:s,blocks:o,updateBlockAttributes:a}){return l=>{o?o.forEach(({clientId:n,attributes:s})=>{a(n,wt({newValue:l,groupName:e,fieldName:t,attributes:s}))}):n(wt({newValue:l,groupName:e,fieldName:t,attributes:s}))}}function Ct({fieldName:e,groupName:t,attributes:n,defaultValue:s}){const{boldblocks:{[t]:{[e]:o}={}}={}}=n;return(0,v.isUndefined)(o)?s:o}function jt({fieldName:e,setAttributes:t,attributes:n,blocks:s,updateBlockAttributes:o}){return a=>{var l;s?s.forEach(({clientId:t,attributes:n})=>{var s;o(t,{boldblocks:{...null!==(s=n?.boldblocks)&&void 0!==s?s:{},[e]:a}})}):t({boldblocks:{...null!==(l=n?.boldblocks)&&void 0!==l?l:{},[e]:a}})}}function Tt({setAttributes:e,attributes:t,blocks:n,updateBlockAttributes:s}){return o=>{var a;n?n.forEach(({clientId:e,attributes:t})=>{var n;s(e,{boldblocks:{...null!==(n=t?.boldblocks)&&void 0!==n?n:{},...o}})}):e({boldblocks:{...null!==(a=t?.boldblocks)&&void 0!==a?a:{},...o}})}}function Et({fieldName:e,attributes:t,defaultValue:n}){const{boldblocks:{[e]:s}={}}=t;return(0,v.isUndefined)(s)?n:s}const Bt=(e,t="log")=>{e&&"development"===window?.BBLOG?.environmentType&&(["log","info","warn","error","debug","dir","table"].includes(t)?console[t](e):console.log(e))};function Nt(e){return e?.gradientSlug||e?.gradientValue?e?.gradientSlug?`var(--wp--preset--gradient--${e.gradientSlug})`:e?.gradientValue:e?.slug?`var(--wp--preset--color--${e.slug})`:e?.value}function It(e,t,n="--bb"){let s={};return N(e)&&Object.keys(e).forEach(o=>{const{value:{value:a}={},inherit:l}=e[o];if((0,v.isUndefined)(a)){if(l&&(0,v.isString)(l)){var i;const{value:a}=null!==(i=e[l])&&void 0!==i?i:{};a&&(s={...s,[`${n}--${t}--${o}`]:`var(${n}--${t}--${l})`})}}else a&&(s={...s,[`${n}--${t}--${o}`]:a+""})}),s}const At=(e,t,n,s=!1,o=e=>e+"")=>{let a={};if(o=Pt,N(e)){const{top:l,right:i,bottom:r,left:c}=e;(0,v.isNil)(l)||(a={...a,[`${t}-top--${n}`]:s?`var(${t}-top--${s})`:o(l)}),(0,v.isNil)(i)||(a={...a,[`${t}-right--${n}`]:s?`var(${t}-right--${s})`:o(i)}),(0,v.isNil)(r)||(a={...a,[`${t}-bottom--${n}`]:s?`var(${t}-bottom--${s})`:o(r)}),(0,v.isNil)(c)||(a={...a,[`${t}-left--${n}`]:s?`var(${t}-left--${s})`:o(c)})}return a},Pt=(e,t=$)=>{let n=[];if((0,v.isObject)(e)){const{width:s,style:o,color:a}=e;(0,v.isString)(s)&&n.push(s),(0,v.isString)(o)&&n.push(o),((0,v.isString)(a)||(0,v.isObject)(a))&&n.push(t(a))}return n.join(" ")},Ot="boldblocks/cbb-icon-library";(t=>{const n=(0,e.createReduxStore)(t,{selectors:{getIconLibrary(e){var t;return null!==(t=e?.icons)&&void 0!==t?t:[]}},actions:{loadIconLibrary:e=>async({select:t,dispatch:n})=>{var s;if(!e)return;let o=t.getIconLibrary();if(o&&o.length)return o;const a=await l()({path:e});var i;return a?.success&&n({type:"UPDATE_ICONS",payload:null!==(i=a?.data)&&void 0!==i?i:[]}),null!==(s=a?.data)&&void 0!==s?s:[]}},reducer:(e={icons:[]},t)=>"UPDATE_ICONS"===t.type?{...e,icons:t.payload}:e});(0,e.select)(t)||(0,e.register)(n)})(Ot);const Ft=(0,e.createReduxStore)("boldblocks/data",{selectors:{getGoogleFonts:e=>e.typography.googleFonts,getTypography:e=>({fonts:e.typography.fonts,fontsPresets:e.typography.fontsPresets}),getPostTypography:(e,t)=>({fonts:e.postTypography.fonts,fontsPresets:e.typography.fontsPresets}),...o,...m,...f},actions:{...p,setPreviewMode:e=>({type:"SET_PREVIEW_MODE",payload:e}),...h,setNavRef:e=>({type:"SET_NAV_REF",payload:e})},controls:t.controls,reducer:(0,e.combineReducers)({previewModes:(e=s,t)=>"SET_PREVIEW_MODE"===t.type?{...e,[t.payload.clientId]:t.payload.previewMode}:e,typography:(e=i,t)=>{switch(t.type){case"SET_GOOGLE_FONTS":return{...e,googleFonts:t.payload};case"UPDATE_FONTS":return{...e,fonts:t.payload}}return e},postTypography:(e=r,t)=>"UPDATE_POST_FONTS"===t.type?{...e,fonts:t.payload}:e,missingBlocks:(e=b,t)=>{switch(t.type){case"SET_MISSING_BLOCK":return{...e,blocks:{...e.missingBlocks,...t.payload}};case"SET_MISSING_BLOCK_STATUS":return{...e,statuses:{...e.statuses,[t.payload]:!0}}}return e},navRefs:(e=g,t)=>"SET_NAV_REF"===t.type?{...e,[t.payload.ref]:t.payload.clientId}:e}),resolvers:{...c}});(0,e.register)(Ft);const Lt=window.wp.compose,$t=window.wp.components,Mt=window.wp.blocks,Dt=(0,Lt.createHigherOrderComponent)(e=>t=>{if(!(0,Mt.hasBlockSupport)(t.name,"cbb"))return(0,Je.jsx)(e,{...t});const{hasDimentions:n=!1,hasBorder:s=!1,hasBackground:o=!1,hasOthers:a=!1}=(0,k.useMemo)(()=>{const e=(0,Mt.getBlockSupport)(t.name,"boldblocks");return{hasDimentions:e?.width||e?.height||e?.spacing,hasBorder:e?.border,hasBackground:e?.background||e?.overlay,hasOthers:e?.boxShadow||e?.transform||e?.visibility}},[t.name]),{shouldDisplayBlockControls:l}=T(t),{setAttributes:i,attributes:{boldblocks:r={}}={}}=t;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(e,{...t}),l&&(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)(y.InspectorControls,{group:"styles",children:[n&&(0,Je.jsx)($t.__experimentalToolsPanel,{label:(0,A.__)("Dimensions - Responsive","content-blocks-builder"),panelId:"cbb-panel-dimensions",resetAll:()=>{i({boldblocks:{...r,width:{},height:{},aspectRatio:{},spacing:{}}})},children:(0,Je.jsx)($t.Slot,{name:"cbb-panel-dimensions"})}),s&&(0,Je.jsx)($t.__experimentalToolsPanel,{label:(0,A.__)("Border - Responsive","content-blocks-builder"),panelId:"cbb-panel-border",resetAll:()=>{i({boldblocks:{...r,border:{},borderRadius:{},enableEllipticalRadius:!1}})},children:(0,Je.jsx)($t.Slot,{name:"cbb-panel-border"})}),o&&(0,Je.jsx)($t.__experimentalToolsPanel,{label:(0,A.__)("Background Media & Overlay","content-blocks-builder"),panelId:"cbb-panel-background",resetAll:()=>{i({boldblocks:{...r,background:{},overlay:{}}})},children:(0,Je.jsx)($t.Slot,{name:"cbb-panel-background"})}),a&&(0,Je.jsx)($t.__experimentalToolsPanel,{label:(0,A.__)("Shadow, Transform, Visibility","content-blocks-builder"),panelId:"cbb-panel-others",resetAll:()=>{i({boldblocks:{...r,shadows:[],shadowSlug:"",transform:{},transformOrigin:{},visibility:{}}})},children:(0,Je.jsx)($t.Slot,{name:"cbb-panel-others"})})]})})]})},"withInspectorControls");function zt(e){var t,n,s="";if("string"==typeof e||"number"==typeof e)s+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t{const[o,a]=(0,k.useState)(e);let l;return(0,k.useEffect)(()=>{if(o!==e){if(s>0)return l&&clearTimeout(l),l=setTimeout(()=>{n(t(o))},s),()=>clearTimeout(l);n(t(o))}},[o,s]),[o,a]},Gt={sanitizeCSS(e){if("string"!=typeof e)return"";let{css:t,placeholders:n}=this.extractSafeSVG(e);e=t;const s=/<([a-zA-Z0-9]+)\b[^>]*>[\s\S]*?<\/\1>/gi;for(;s.test(e);)e=e.replace(s,"");return e=(e=(e=(e=(e=e.replace(/<[^>]+>/g,"")).replace(/expression\s*\(/gi,"")).replace(/behavior\s*:/gi,"")).replace(/@import\s+(url\()?['"]?([^"')]+)['"]?\)?/gi,(e,t,n)=>{const s=n.trim();return this.isSafeURL(s)?`@import url("${s}")`:""})).replace(/url\s*\(\s*['"]?([^"')]+)['"]?\s*\)/gi,(e,t)=>this.sanitizeURL(t.trim())),this.restoreSafeSVG(e.trim(),n)},sanitizeURL(e){return e.startsWith("data:image/svg+xml")?this.sanitizeInlineSVG(e):this.isSafeURL(e)?`url("${e}")`:"url()"},sanitizeInlineSVG(e){let t=e.replace(/^data:image\/svg\+xml(;utf8)?,/i,"");t=decodeURIComponent(t);const n=[/