PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / 2.1.8
bBlocks – Essential Gutenberg Blocks & Patterns Collection v2.1.8
2.1.8 2.1.7 2.1.6 2.1.5 2.1.4 2.1.3 2.1.2 2.1.1 2.1.0 2.0.43 2.0.42 2.0.41 2.0.40 2.0.39 2.0.38 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.5.1 1.5.2 1.5.3 All 108 releases
← All changes | build/advanced.js +3 -1 2.0.40 → 2.1.8 View file →
@@ -1 +1,3 @@
1 -(()=>{"use strict";const t=t=>!(null==t||""===t||Array.isArray(t)&&0===t.length||"object"==typeof t&&0===Object.keys(t).length||"string"==typeof t&&""===t.trim()||"number"==typeof t&&0===t),e="@media only screen and (max-width: 1024px)",n="@media only screen and (max-width: 640px)";window.React;const i=(e,n,i=!1)=>t(n)?`${e}: ${n}${i?" !important":""};`:"",o=t=>{if(!t)return"";if("string"==typeof t)return t;if("object"==typeof t&&!Array.isArray(t)){const e=["top","right","bottom","left"];return e.map((e=>t[e]||"")).every((t=>!t))?"":e.map((e=>t[e]||"0")).join(" ")}return""},s=e=>{const{position:n="center center",xPosition:i=0,yPosition:o=0,attachment:s="",repeat:M="no-repeat",size:a="cover",customSize:r="0px"}=e||{},c=e=>"initial"!==e||t(e);return`\n\t\t${c(n)?`background-position: ${"custom"===n?`${i} ${o}`:n};`:""}\n\t\t${s&&c(s)?`background-attachment: ${s};`:""}\n\t\t${c(M)?`background-repeat: ${M};`:""}\n\t\t${c(a)?`background-size: ${"custom"===a?`${r} auto`:a};`:""}\n\t`},M=(e={})=>e?{desktop:t(e.url)?`background-image: url(${e.url}); ${s(e?.desktop)}`:"",tablet:t(e.url)?s(e?.tablet):"",mobile:t(e.url)?s(e?.mobile):""}:"",a=(o,s,a=!1)=>{const{type:r="color",color:c,gradient:d,img:u,video:l}=o||{},y="color"===r?i("background",c):"gradient"===r?(e=>{const{type:n="linear",radialType:o="ellipse",colors:s=[],centerPositions:M={x:0,y:0},angel:a=0}=e||{};if(t(e)){const t=s?.map((({color:t,position:e})=>`${t} ${e}%`)),e=`linear-gradient(${a}deg, ${t})`;return i("background","radial"===n?`radial-gradient(${o} at ${M?.x}% ${M?.y}%,${t})`:e)}return""})(d):"image"===r?M(u).desktop:"",N="image"===r?M(u).tablet:"",j="image"===r?M(u).mobile:"",L=a?`${s}:hover`:s;return`\n\t\t${"video"===r?((t,e)=>{const{url:n,loop:i}=t||{},o=document.querySelector(e),s=o?.querySelector(".bPlVideo"),M=document.createElement("video");return M.muted=!0,M.autoplay=!0,M.classList.add("bPlVideo"),s||o&&n&&(M.innerHTML=`<source src=${n}></source>`,o.appendChild(M)),M.loop=i,M.play(),`${e} .bPlVideo{\n\t\tleft: 0;\n\t\tmin-height: 100%;\n\t\tmin-width: 100%;\n\t\tposition: absolute;\n\t\twidth: -webkit-fill-available;\n\t\ttop: 0;\n\t\tz-index: 0;\n\t}`})(l,s):""}\n\n\t\t${y?`${L}{\n\t\t\t${y}\n\t\t}`:""}\n\n\t\t${N?`${e} {\n\t\t\t${L}{\n\t\t\t\t${N}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${j?`${n} {\n\t\t\t${L}{\n\t\t\t\t${j}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},r=(e,n,o=!1)=>{const{isEnabled:s,colors:M,opacity:r=1,blend:c,filter:d="",blur:u=0,brightness:l=100,contrast:y=100,saturation:N=100,hue:j=0,position:L={top:0,right:0,bottom:0,left:0},zIndex:D=-1}=e||{},$=`${100!==l?`brightness(${l}%)`:""} ${100!==y?`contrast(${y}%)`:""} ${100!==N?`saturate(${N}%)`:""} ${0!==u?`blur(${u}px)`:""} ${0!==j?`hue-rotate(${j}deg)`:""}`,p=`${d}: ${d?$:""}; -webkit-${d}: ${d?$:""};`,w=o?`${n}:hover::after`:`${n}::after`;return s?`\n\t\t${n}{\n\t\t\tposition:relative;\n\t\t\tz-index:1;\n\t\t}\n\t\t${n}::after{\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\ttop:${t(L.top)?L.top:0};\n\t\t\tright:${t(L.right)?L.right:0};\n\t\t\tbottom:${t(L.bottom)?L.bottom:0};\n\t\t\tleft:${t(L.left)?L.left:0};\n\t\t\tz-index:${D};\n\t\t}\n\t\t${a(M,w,!1)}\n\t\t${w}{\n\t\t\t${i("opacity",r)}\n\t\t\t${i("mix-blend-mode",c)}\n\t\t\t${p}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},c=(o,s,M=!1)=>{const a=(e,n="desktop")=>{if(!t(e))return"";const{skew:o,scale:s,rotate:M,offset:a,flipX:r,flipY:c}=e,{threeDRotate:d}=M||{},{isProportion:u}=s||{},l=[];return t(o)&&(t(o?.[n]?.x)&&l.push(`skewX(${o[n].x}deg)`),t(o?.[n]?.y)&&l.push(`skewY(${o[n].y}deg)`)),u?t(s?.[n]?.scale)&&l.push(`scale(${s[n].scale})`):(t(s?.[n]?.x)&&l.push(`scaleX(${s[n].x})`),t(s?.[n]?.y)&&l.push(`scaleY(${s[n].y})`)),t(M)&&(t(M?.[n]?.z)&&l.push(`rotateZ(${M[n].z}deg)`),d&&(t(M?.[n]?.x)&&l.push(`rotateX(${M[n].x}deg)`),t(M?.[n]?.y)&&l.push(`rotateY(${M[n].y}deg)`))),t(a)&&(t(a?.[n]?.x)&&l.push(`translateX(${a[n].x})`),t(a?.[n]?.y)&&l.push(`translateY(${a[n].y})`)),t(r)&&l.push(r?"scaleX(-1)":""),t(c)&&l.push(c?"scaleY(-1)":""),0===l.length?"":i("transform",l.join(" "))},r=M?`${s}:hover`:s;return`\n\t\t${r} {\n\t\t\t${a(o,"desktop")}\n\t\t}\n\t\t${e}{\n\t\t\t${r} {\n\t\t\t\t${a(o,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${n}{\n\t\t\t${r} {\n\t\t\t\t${a(o,"mobile")}\n\t\t\t}\n\t\t}\n\t`},d=t=>{const{padding:e,margin:n,height:s,width:M}=t||{},a=(t,e)=>i(t,e),r=(t,e,n)=>a(t,e?.[t]?.[n])+a(`min-${t}`,e?.min?.[n])+a(`max-${t}`,e?.max?.[n]),c=t=>i("padding",o(t)),d=t=>i("margin",o(t));return{desktop:c(e?.desktop)+d(n?.desktop)+r("height",s,"desktop")+r("width",M,"desktop"),tablet:c(e?.tablet)+d(n?.tablet)+r("height",s,"tablet")+r("width",M,"tablet"),mobile:c(e?.mobile)+d(n?.mobile)+r("height",s,"mobile")+r("width",M,"mobile")}},u=t=>{const{normal:e,hover:n}=t||{},s=t=>{const{border:e,radius:n,shadow:s}=t||{},M=i("border-radius",o(n)),a=i("box-shadow",((t,e="box")=>{let n="";return t?.map(((i,o)=>{const{hOffset:s="0px",vOffset:M="0px",blur:a="0px",spreed:r="0px",color:c="#e7f0fe",isInset:d=!1}=i||{},u=d?"inset":"",l=`${s} ${M} ${a}`,y=o+1>=t.length?"":", ";n+="text"===e?`${l} ${c}${y}`:`${l} ${r} ${c} ${u}${y}`})),n||""})(s,"box"));return(t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:n="solid",width:i="0px"}=t;return`${i} ${n} ${e}`};return"object"!=typeof t||Array.isArray(t)?"":t.hasOwnProperty("top")||t.hasOwnProperty("right")||t.hasOwnProperty("bottom")||t.hasOwnProperty("left")?["top","right","bottom","left"].map((n=>t[n]?`border-${n}: ${e(t[n])};`:"")).join(" ").trim():i("border",e(t))})(e)+M+a};return{normal:s(e),hover:s(n)}},l=e=>{const{zIndex:n,overflow:o}=e||{},s=o?`overflow: ${o};`:"",M=e=>`${i("z-index",n?.[e])} ${i("position",t(n?.[e])?"relative":"")}`;return{desktop:M("desktop")+s,tablet:M("tablet"),mobile:M("mobile")}},y=(t,e)=>{const{desktop:n=!1,tablet:i=!1,mobile:o=!1}=t||{},s=e?"opacity: 0.5;":"display: none;",M=t=>t?s:"";return{desktop:M(n),tablet:M(i),mobile:M(o)}};document.addEventListener("DOMContentLoaded",(()=>{const o=document.querySelectorAll("[data-bblocks-advanced]"),s=document.createElement("style");let M="";o.length&&o.forEach((o=>{(o=>{const s=o.getAttribute("data-bblocks-advanced");if(s)try{const N=JSON.parse(s),{animation:j}=N;j&&j?.type&&setTimeout((()=>{window.AOS.init()}),[]);const L=((o,s,M=!1,N=!0)=>{const{dimension:j,transform:L,background:D,borderShadow:$,mask:p,animation:w,visibility:g,responsive:m,css:b=""}=s||{},z=M?`#${o}>div>div${N?":first-child":""}`:`#${o}>div`;((t,e,n)=>{const i=n?`#${e} > div`:`#${e}`,o=document.querySelector(i);o&&t&&t.type&&(o.setAttribute("data-aos",t.type),o.setAttribute("data-aos-duration",1e3*t.duration||.4),o.setAttribute("data-aos-delay",1e3*t.delay||0),o.classList.contains("aos-init")||(o.classList.add("aos-init"),window?.AOS?.init()),n)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?o.classList.add("aos-animate"):o.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(o)})(w,o,M);const x=d(j).desktop+l(g).desktop+((t,e,n)=>{const{transition:i=.4}=t||{},{transition:o=.4}=e||{},{transition:s=200}=n||{};return`transition: background ${i}s, border ${o}s, border-radius ${o}s, box-shadow ${o}s, transform ${s}ms ease-in-out;`})(D,$,L)+(t=>{const{isMask:e=!1,shape:n={type:"circle"},size:o={type:"contain",scale:"100%"},position:s={type:"center center",x:50,y:50},repeat:M="no-repeat"}=t||{};return e?`-webkit-mask-image: url(${"custom"===n.type?n.url:(a=n.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVp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48L3N2Zz4=",type:"triangle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===a))).svg});\n\t\t-webkit-mask-size: ${"custom"===o.type?o.scale:o.type};\n\t\t${"custom"===s.type?`${i("-webkit-mask-position-x",s.x)}\n\t\t\t${i("-webkit-mask-position-y",s.y)}`:`${i("-webkit-mask-position",s.type)}`}\n\t\t${"cover"!==o.type?`-webkit-mask-repeat: ${M};`:""}`:"";var a})(p),I=d(j).tablet+l(g).tablet+y(m,M).tablet,T=d(j).mobile+l(g).mobile+y(m,M).mobile,k=u($).normal,h=u($).hover,v=y(m,M).desktop;return`\n\t\t${x||k?`${z} {\n\t\t\t${x}\n\t\t\t${k}\n\t\t}`:""}\n\t\t${h?`${z}:hover {\n\t\t\t${h}\n\t\t}`:""}\n\n\t\t${v?`@media only screen and (min-width: 1025px) {\n\t\t\t${z}{\n\t\t\t\t${v}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${e} {\n\t\t\t${z}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${T?`${n} {\n\t\t\t${z}{\n\t\t\t\t${T}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${a(D?.normal,z)}\n\t\t${a(D?.hover,z,!0)}\n\t\t${r(D?.overlay,z)}\n\t\t${r(D?.hoverOverlay,z,!0)}\n\t\t${t(L?.normal)?c(L?.normal,z):""}\n\t\t${t(L?.hover)?c(L?.hover,z,!0):""}\n\n\t\t${b}\n\t`.replace(/\s+/g," ")})(o.id,N);M+=L,o.removeAttribute("data-bblocks-advanced")}catch(t){console.error("Invalid JSON in data-bblocks-advanced attribute:",t)}})(o)})),M&&(s.innerHTML=M,document.head.appendChild(s))}))})();
1 +(()=>{"use strict";const t=t=>!(null==t||""===t||Array.isArray(t)&&0===t.length||"object"==typeof t&&0===Object.keys(t).length||"string"==typeof t&&""===t.trim()||"number"==typeof t&&0===t),e=t=>{try{const e=new URL(t);return["http:","https:"].includes(e.protocol)?e.toString():null}catch(e){return"string"==typeof t&&t.startsWith("/")&&!t.startsWith("//")?t:null}};new class{constructor(t={}){this.defaultOptions={allowedTags:["svg","g","path","rect","circle","ellipse","line","polyline","polygon","text","tspan","defs","clipPath","mask","linearGradient","radialGradient","stop","style","title","desc"],allowedAttributes:["id","class","style","transform","xmlns","xmlns:xlink","version","baseProfile","xml:space","d","x","y","width","height","cx","cy","r","rx","ry","points","x1","y1","x2","y2","viewBox","preserveAspectRatio","overflow","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","opacity","color","paint-order","vector-effect","shape-rendering","display","visibility","clip-path","clip-rule","clipPathUnits","mask","maskUnits","maskContentUnits","offset","stop-color","stop-opacity","gradientUnits","gradientTransform","spreadMethod","fx","fy","fr","dx","dy","text-anchor","dominant-baseline","alignment-baseline","font-family","font-size","font-style","font-weight","letter-spacing","word-spacing","textLength","lengthAdjust","role","focusable","aria-hidden","aria-label","aria-labelledby","aria-describedby"],allowedProtocols:["http","https","data"],removeScripts:!0,removeEvents:!0,removeExternalResources:!0,sanitizeStyle:!0},this.options={...this.defaultOptions,...t},this.allowedTagSet=new Set(this.options.allowedTags.map((t=>t.toLowerCase()))),this.allowedAttributeSet=new Set(this.options.allowedAttributes.map((t=>t.toLowerCase())))}sanitize(t){if("string"!=typeof t||""===t.trim())return"";const e=(new DOMParser).parseFromString(t,"image/svg+xml"),i=e.documentElement;return!i||"svg"!==i.localName.toLowerCase()||e.getElementsByTagName("parsererror").length?"":(this.removeScripts(e),this.sanitizeElements(e),(new XMLSerializer).serializeToString(e.documentElement))}async sanitizeFile(t){const e=await fetch(t),i=await e.text();return this.sanitize(`${i}`)}removeScripts(t){this.options.removeScripts&&Array.from(t.querySelectorAll("*")).forEach((t=>{t.localName.toLowerCase().includes("script")&&t.remove()}))}sanitizeElements(t){Array.from(t.querySelectorAll("*")).forEach((t=>{const e=t.localName.toLowerCase();this.allowedTagSet.has(e)?("style"===e&&this.options.sanitizeStyle&&(t.textContent=this.sanitizeCss(t.textContent)),this.sanitizeAttributes(t)):t.remove()}))}sanitizeAttributes(t){Array.from(t.attributes).forEach((e=>{const i=e.name,n=i.toLowerCase(),o=e.value;if(this.options.removeEvents&&n.startsWith("on"))return void t.removeAttribute(i);if(this.options.removeExternalResources&&("href"===n||n.endsWith(":href"))&&!this.isAllowedUrl(o))return void t.removeAttribute(i);const r=n.replace("xlink:","");this.allowedAttributeSet.has(n)||this.allowedAttributeSet.has(r)?this.options.removeExternalResources&&this.hasExternalUrl(o)?t.removeAttribute(i):"style"===n&&this.options.sanitizeStyle&&t.setAttribute(i,this.sanitizeCss(o)):t.removeAttribute(i)}))}hasExternalUrl(t){return!("string"!=typeof t||!/url\s*\(/i.test(t))&&Array.from(t.matchAll(/url\s*\(\s*['"]?([^'")]*)/gi)).some((([,t])=>!t.trim().startsWith("#")))}isAllowedUrl(t){const e=String(t||"").trim();if(e.startsWith("#"))return!0;if(/^data:/i.test(e))return this.options.allowedProtocols.includes("data")&&/^data:image\/(png|jpe?g|gif|webp);base64,/i.test(e);try{return this.options.allowedProtocols.includes(new URL(e).protocol.replace(":",""))}catch{return!1}}sanitizeCss(t){return String(t||"").replace(/expression\s*\(/gi,"").replace(/javascript:/gi,"").replace(/behavior\s*:/gi,"").replace(/binding\s*:/gi,"").replace(/@import[^;]*;?/gi,"").replace(/url\s*\(\s*(['"]?)(?!#)[^)]*\)/gi,"none")}};const i="@media only screen and (min-width: 1025px)",n="@media only screen and (max-width: 1024px)",o="@media only screen and (max-width: 640px)";window.React;const r=t=>{const i=e(t);return i?`url('${i.replace(/['"()]/g,"")}')`:"none"},a=(e,i)=>t(i)?`${e}: ${i};`:"",s=t=>{if(!t)return"";if("string"==typeof t)return t;if("object"==typeof t&&!Array.isArray(t)){const e=["top","right","bottom","left"];return e.map((e=>t[e]||"")).every((t=>!t))?"":e.map((e=>t[e]||"0")).join(" ")}return""},l=e=>{const{position:i="center center",xPosition:n=0,yPosition:o=0,attachment:r="",repeat:a="no-repeat",size:s="cover",customSize:l="0px"}=e||{},c=e=>"initial"!==e||t(e);return`\n\t\t${c(i)?`background-position: ${"custom"===i?`${n} ${o}`:i};`:""}\n\t\t${r&&c(r)?`background-attachment: ${r};`:""}\n\t\t${c(a)?`background-repeat: ${a};`:""}\n\t\t${c(s)?`background-size: ${"custom"===s?`${l} auto`:s};`:""}\n\t`},c=(e={})=>e?{desktop:t(e.url)?`background-image: ${r(e.url)}; ${l(e?.desktop)}`:"",tablet:t(e.url)?l(e?.tablet):"",mobile:t(e.url)?l(e?.mobile):""}:"",d=(i,r,s=!1)=>{const{type:l="color",color:d,gradient:p,img:u,video:M}=i||{},m="color"===l?a("background",d):"gradient"===l?(e=>{const{type:i="linear",radialType:n="ellipse",colors:o=[],centerPositions:r={x:0,y:0},angel:s=0}=e||{};if(t(e)){const t=o?.map((({color:t,position:e})=>`${t} ${e}%`)),e=`linear-gradient(${s}deg, ${t})`;return a("background","radial"===i?`radial-gradient(${n} at ${r?.x}% ${r?.y}%,${t})`:e)}return""})(p):"image"===l?c(u).desktop:"",y="image"===l?c(u).tablet:"",$="image"===l?c(u).mobile:"",b=s?`${r}:hover`:r;return`\n\t\t${"video"===l?((t,i)=>{const{url:n,loop:o}=t||{},r=document.querySelector(i),a=r?.querySelector(".bPlVideo"),s=document.createElement("video");if(s.muted=!0,s.autoplay=!0,s.classList.add("bPlVideo"),!a&&r&&n){const t=e(n);if(t){const e=document.createElement("source");e.src=t,s.appendChild(e),r.appendChild(s)}}return s.loop=o,s.play(),`${i} .bPlVideo{\n\t\tleft: 0;\n\t\tmin-height: 100%;\n\t\tmin-width: 100%;\n\t\tposition: absolute;\n\t\twidth: -webkit-fill-available;\n\t\ttop: 0;\n\t\tz-index: 0;\n\t}`})(M,r):""}\n\n\t\t${m?`${b}{\n\t\t\t${m}\n\t\t}`:""}\n\n\t\t${y?`${n} {\n\t\t\t${b}{\n\t\t\t\t${y}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${$?`${o} {\n\t\t\t${b}{\n\t\t\t\t${$}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},p=(e,i,n=!1)=>{const{isEnabled:o,colors:r,opacity:s=1,blend:l,filter:c="",blur:p=0,brightness:u=100,contrast:M=100,saturation:m=100,hue:y=0,position:$={top:0,right:0,bottom:0,left:0},zIndex:b=-1}=e||{},g=`${100!==u?`brightness(${u}%)`:""} ${100!==M?`contrast(${M}%)`:""} ${100!==m?`saturate(${m}%)`:""} ${0!==p?`blur(${p}px)`:""} ${0!==y?`hue-rotate(${y}deg)`:""}`,h=`${c}: ${c?g:""}; -webkit-${c}: ${c?g:""};`,w=n?`${i}:hover::after`:`${i}::after`;return o?`\n\t\t${i}{\n\t\t\tposition:relative;\n\t\t\tz-index:1;\n\t\t}\n\t\t${i}::after{\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\ttop:${t($.top)?$.top:0};\n\t\t\tright:${t($.right)?$.right:0};\n\t\t\tbottom:${t($.bottom)?$.bottom:0};\n\t\t\tleft:${t($.left)?$.left:0};\n\t\t\tz-index:${b};\n\t\t}\n\t\t${d(r,w,!1)}\n\t\t${w}{\n\t\t\t${a("opacity",s)}\n\t\t\t${a("mix-blend-mode",l)}\n\t\t\t${h}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},u=(e,i,r=!1)=>{const s=(e,i="desktop")=>{if(!t(e))return"";const{skew:n,scale:o,rotate:r,offset:s,flipX:l,flipY:c}=e,{threeDRotate:d}=r||{},{isProportion:p}=o||{},u=[];return t(n)&&(t(n?.[i]?.x)&&u.push(`skewX(${n[i].x}deg)`),t(n?.[i]?.y)&&u.push(`skewY(${n[i].y}deg)`)),p?t(o?.[i]?.scale)&&u.push(`scale(${o[i].scale})`):(t(o?.[i]?.x)&&u.push(`scaleX(${o[i].x})`),t(o?.[i]?.y)&&u.push(`scaleY(${o[i].y})`)),t(r)&&(t(r?.[i]?.z)&&u.push(`rotateZ(${r[i].z}deg)`),d&&(t(r?.[i]?.x)&&u.push(`rotateX(${r[i].x}deg)`),t(r?.[i]?.y)&&u.push(`rotateY(${r[i].y}deg)`))),t(s)&&(t(s?.[i]?.x)&&u.push(`translateX(${s[i].x})`),t(s?.[i]?.y)&&u.push(`translateY(${s[i].y})`)),t(l)&&u.push(l?"scaleX(-1)":""),t(c)&&u.push(c?"scaleY(-1)":""),
2 +0===u.length?"":a("transform",u.join(" "))},l=r?`${i}:hover`:i;return`\n\t\t${l} {\n\t\t\t${s(e,"desktop")}\n\t\t}\n\t\t${n}{\n\t\t\t${l} {\n\t\t\t\t${s(e,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${o}{\n\t\t\t${l} {\n\t\t\t\t${s(e,"mobile")}\n\t\t\t}\n\t\t}\n\t`},M=t=>{const{padding:e,margin:i,height:n,width:o}=t||{},r=(t,e)=>a(t,e),l=(t,e,i)=>r(t,e?.[t]?.[i])+r(`min-${t}`,e?.min?.[i])+r(`max-${t}`,e?.max?.[i]),c=t=>a("padding",s(t)),d=t=>a("margin",s(t));return{desktop:c(e?.desktop)+d(i?.desktop)+l("height",n,"desktop")+l("width",o,"desktop"),tablet:c(e?.tablet)+d(i?.tablet)+l("height",n,"tablet")+l("width",o,"tablet"),mobile:c(e?.mobile)+d(i?.mobile)+l("height",n,"mobile")+l("width",o,"mobile")}},m=t=>{const{normal:e,hover:i}=t||{},n=t=>{const{border:e,radius:i,shadow:n}=t||{},o=a("border-radius",s(i)),r=a("box-shadow",((t,e="box")=>{let i="";return t?.map(((n,o)=>{const{hOffset:r="0px",vOffset:a="0px",blur:s="0px",spreed:l="0px",color:c="#e7f0fe",isInset:d=!1}=n||{},p=d?"inset":"",u=`${r} ${a} ${s}`,M=o+1>=t.length?"":", ";i+="text"===e?`${u} ${c}${M}`:`${u} ${l} ${c} ${p}${M}`})),i||""})(n,"box"));return(t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:i="solid",width:n="0px"}=t;return`${n} ${i} ${e}`};return"object"!=typeof t||Array.isArray(t)?"":t.hasOwnProperty("top")||t.hasOwnProperty("right")||t.hasOwnProperty("bottom")||t.hasOwnProperty("left")?["top","right","bottom","left"].map((i=>t[i]?`border-${i}: ${e(t[i])};`:"")).join(" ").trim():a("border",e(t))})(e)+o+r};return{normal:n(e),hover:n(i)}},y=e=>{const{zIndex:i,overflow:n}=e||{},o=n?`overflow: ${n};`:"",r=e=>`${a("z-index",i?.[e])} ${a("position",t(i?.[e])?"relative":"")}`;return{desktop:r("desktop")+o,tablet:r("tablet"),mobile:r("mobile")}},$=(t,e)=>{const{desktop:i=!1,tablet:n=!1,mobile:o=!1}=t||{},r=e?"opacity: 0.5;":"display: none;",a=t=>t?r:"";return{desktop:a(i),tablet:a(n),mobile:a(o)}},b=(e,s,l=!1,c=!0)=>{const{dimension:b,transform:g,background:h,borderShadow:w,mask:x,animation:j,visibility:N,responsive:L,position:f={},floating:D={},motion:v={},css:z=""}=s||{},k=l?`#${e}>div>div${c?":first-child":""}`:`#${e}>div`;((t,e,i)=>{const n=i?`#${e} > div`:`#${e}`,o=document.querySelector(n);o&&t&&t.type&&(o.setAttribute("data-aos",t.type),o.setAttribute("data-aos-duration",1e3*t.duration||.4),o.setAttribute("data-aos-delay",1e3*t.delay||0),o.classList.contains("aos-init")||(o.classList.add("aos-init"),window?.AOS?.init()),i)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?o.classList.add("aos-animate"):o.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(o)})(j,e,l);const T=M(b).desktop+y(N).desktop+((t,e,i)=>{const{transition:n=.4}=t||{},{transition:o=.4}=e||{},{transition:r=200}=i||{};return`transition: background ${n}s, border ${o}s, border-radius ${o}s, box-shadow ${o}s, transform ${r}ms ease-in-out;`})(h,w,g)+(t=>{const{isMask:e=!1,shape:i={type:"circle"},size:n={type:"contain",scale:"100%"},position:o={type:"center center",x:50,y:50},repeat:s="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===i.type?r(i.url):`url(${(l=i.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI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MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===l))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===n.type?n.scale:n.type};\n\t\t${"custom"===o.type?`${a("-webkit-mask-position-x",o.x)}\n\t\t\t${a("-webkit-mask-position-y",o.y)}`:`${a("-webkit-mask-position",o.type)}`}\n\t\t${"cover"!==n.type?`-webkit-mask-repeat: ${s};`:""}`:"";var l})(x),I=M(b).tablet+y(N).tablet+$(L,l).tablet,S=M(b).mobile+y(N).mobile+$(L,l).mobile,A=m(w).normal,E=m(w).hover,O=$(L,l).desktop;return`\n\t\t${T||A?`${k} {\n\t\t\t${T}\n\t\t\t${A}\n\t\t}`:""}\n\t\t${E?`${k}:hover {\n\t\t\t${E}\n\t\t}`:""}\n\n\t\t${O?`${i} {\n\t\t\t${k}{\n\t\t\t\t${O}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${I?`${n} {\n\t\t\t${k}{\n\t\t\t\t${I}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${S?`${o} {\n\t\t\t${k}{\n\t\t\t\t${S}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${d(h?.normal,k)}\n\t\t${d(h?.hover,k,!0)}\n\t\t${p(h?.overlay,k)}\n\t\t${p(h?.hoverOverlay,k,!0)}\n\t\t${t(g?.normal)?u(g?.normal,k):""}\n\t\t${t(g?.hover)?u(g?.hover,k,!0):""}\n\t\t${((t,e)=>{const{desktop:i={},tablet:r={},mobile:s={}}=t,l=(t={})=>`\n\t\t${e}{\n\t\t\t${a("position",t?.type)}\n\t\t\t${a("left",t?.horizontal?.left)}\n\t\t\t${a("right",t?.horizontal?.right)}\n\t\t\t${a("top",t?.vertical?.top)}\n\t\t\t${a("bottom",t?.vertical?.bottom)}\n\t\t}\n\t`;return`\n\t\t\n\t\t${i?.type?l(i):""}\n\t\t\n\t\t${n}{\n\t\t\t${r?.type?l(r):""}\n\t\t}\n\n\t\t${o}{\n\t\t\t${s?.type?l(s):""}\n\t\t}\n\t`})(f,k)}\n\t\t${((e,i,n="")=>{
3 +const{translate:o={},rotate:r={},scale:a={},isEnabled:s=!1}=e||{};if(!s)return"";const l=[],c=[];return[{name:"Translate",property:"translate",values:o,value:e=>["x","y"].some((i=>t(o?.[i]?.[e])))?`${o?.x?.[e]||0}px ${o?.y?.[e]||0}px`:""},{name:"Rotate",property:"transform",values:r,value:e=>["x","y","z"].filter((i=>t(r?.[i]?.[e]))).map((t=>`rotate${t.toUpperCase()}(${r[t][e]}deg)`)).join(" ")},{name:"Scale",property:"scale",values:a,value:e=>{const i=a?.y?.[e],n=a?.z?.[e];return t(i)||t(n)?t(n)?`1 ${t(i)?i:1} ${n}`:`1 ${i}`:""}}].forEach((({name:t,property:e,values:i,value:o})=>{const r=o("from"),a=o("to");if(!r||!a)return;const s=Number(i?.duration)>0?Number(i.duration):1e3,d=Number(i?.delay)>0?Number(i.delay):0,p=`advFloat${t}${n?`-${n}`:""}`;l.push(`@keyframes ${p}{ from{ ${e}: ${r}; } to{ ${e}: ${a}; } }`),c.push(`${p} ${s}ms ease-in-out ${d}ms infinite alternate`)})),c.length?`\n\t\t${l.join(" ")}\n\t\t${i}{\n\t\t\tanimation: ${c.join(", ")};\n\t\t}\n\t`:""})(D,k,e)}\n\t\t${((e,r,a)=>{const{isEnable:s=!1,vertical:l={},horizontal:c={},transparency:d={},blur:p={},rotate:u={},scale:M={},effectsRelativeTo:m="viewport",effectOn:y=["desktop","tablet-portrait","mobile-portrait"],isMouseEffect:$=!1,mouseTrack:b={},tilt:g={},sticky:h={}}=e||{},w=(e,i)=>t(e)&&!isNaN(e)?Number(e):i,x="viewport"===m,j=x?"view()":"scroll(nearest block)",N=[],L=[],f=[],D=[],v=String(a??"").replace(/[^a-zA-Z0-9]/g,""),z=(t,e,i)=>{N.push(`@keyframes advMe${t}${v}{ ${e} }`),L.push(`advMe${t}${v}`),f.push(j),D.push((t=>{const e=w(t?.top,0),i=w(t?.bottom,100),n=Math.min(e,i),o=Math.max(e,i);return x?`cover ${n}% ${o>=90?"contain 100%":`cover ${o}%`}`:`min(${3*n}vh, ${n}%) min(${3*o}vh, ${o}%)`})(i))};if(s){const t=l?.direction,e=c?.direction,i=t?100*w(l?.speed,4):0,n=e?100*w(c?.speed,4):0;if(i||n){const o="up"===t?-i:i,r="to-left"===e?-n:n,a=[i&&l,n&&c].filter(Boolean);z("Translate",`from{ translate: 0px 0px; } to{ translate: ${r}px ${o}px; }`,{top:Math.min(...a.map((t=>w(t?.top,0)))),bottom:Math.max(...a.map((t=>w(t?.bottom,100))))})}const o=d?.direction;if(o){const t=Math.max(0,1-w(d?.level,5)/10),e={"fade-in":`from{ opacity: ${t}; } to{ opacity: 1; }`,"fade-out":`from{ opacity: 1; } to{ opacity: ${t}; }`,"fade-out-in":`0%{ opacity: 1; } 50%{ opacity: ${t}; } 100%{ opacity: 1; }`,"fade-in-out":`0%{ opacity: ${t}; } 50%{ opacity: 1; } 100%{ opacity: ${t}; }`}[o];e&&z("Opacity",e,d)}const r=p?.direction;if(r){const t=3*w(p?.level,4),e={"fade-in":`from{ filter: blur(${t}px); } to{ filter: blur(0px); }`,"fade-out":`from{ filter: blur(0px); } to{ filter: blur(${t}px); }`,"fade-out-in":`0%{ filter: blur(0px); } 50%{ filter: blur(${t}px); } 100%{ filter: blur(0px); }`,"fade-in-out":`0%{ filter: blur(${t}px); } 50%{ filter: blur(0px); } 100%{ filter: blur(${t}px); }`}[r];e&&z("Blur",e,p)}const a=u?.direction;if(a){const t=20*w(u?.level,4);z("Rotate",`from{ rotate: 0deg; } to{ rotate: ${"to-left"===a?-t:t}deg; }`,u)}if(M?.direction){const t=.15*w(M?.level,4),e=Math.max(0,1-t),i=1+t,n={"scale-up":`from{ scale: 1; } to{ scale: ${i}; }`,"scale-down":`from{ scale: 1; } to{ scale: ${e}; }`,"scale-down-up":`0%{ scale: 1; } 50%{ scale: ${e}; } 100%{ scale: 1; }`,"scale-up-down":`0%{ scale: 1; } 50%{ scale: ${i}; } 100%{ scale: 1; }`}[M.direction];n&&z("Scale",n,M)}}const k=[];if($){if(b?.direction){const t="direct"===b?.direction?100:-100;k.push(((e,i)=>`translate(${(e*t).toFixed(2)}px, ${(i*t).toFixed(2)}px)`))}if(g?.direction){const t=12*("direct"===g?.direction?1:-1);k.push(((e,i)=>`perspective(1000px) rotateX(${(i*-t).toFixed(2)}deg) rotateY(${(e*t).toFixed(2)}deg)`))}}const T=(t,e,i)=>{if(!t||!t.defaultView)return;const n=t.defaultView,o=t.bPlMouse||(t.bPlMouse={x:0,y:0,items:new Map,frame:0,last:0}),a=o.items.get(r)||{x:0,y:0};if(a.rate=e,a.build=i,o.items.set(r,a),o.bound)return;o.bound=!0;const s=e=>{const i=o.last?Math.min(e-o.last,100):16.7;o.last=e;let r=!1;o.items.forEach(((e,n)=>{const a=e.el&&e.el.isConnected?e.el:t.querySelector(n);if(!a)return;e.el=a;const s=e.rate*i/1e3,l=o.x-e.x,c=o.y-e.y,d=Math.sqrt(l*l+c*c);d<=s?(e.x=o.x,e.y=o.y):(e.x+=l/d*s,e.y+=c/d*s,r=!0),a.style.transform=e.build(e.x,e.y)})),o.frame=r?n.requestAnimationFrame(s):0,o.last=r?e:0};t.addEventListener("pointermove",(t=>{o.x=2*(t.clientX/n.innerWidth-.5),o.y=2*(t.clientY/n.innerHeight-.5),o.frame||(o.frame=n.requestAnimationFrame(s))}))};if(k.length&&"undefined"!=typeof document){const t=Math.max(.25,1.5*w(b?.speed,w(g?.speed,4))),e=(t,e)=>k.map((i=>i(t,e))).join(" ");T(document,t,e),T(document.querySelector('iframe[name="editor-canvas"]')?.contentDocument,t,e)}const I=t=>h?.[t]||("desktop"===t?h?.undefined:""),S=r.split(">")[0],A=t=>{const e=I(t);return e?`position: sticky; ${e}: 0; z-index: 9;`:(t=>"tablet"===t?I("desktop"):"mobile"===t?I("tablet")||I("desktop"):"")(t)?"position: static;":""},E=Array.isArray(y)?y:t(y)?[y]:[],O=t=>!E.length||E.includes(t)?"":`${r}{ animation-name: none; }`;return`\n\t\t${L.length?`\n\t\t${N.join(" ")}\n\t\t@supports (animation-timeline: scroll()){\n\t\t\t${r}{\n\t\t\t\tanimation-name: ${L.join(", ")};\n\t\t\t\tanimation-duration: ${L.map((()=>"auto")).join(", ")};\n\t\t\t\tanimation-timing-function: ${L.map((()=>"linear")).join(", ")};\n\t\t\t\tanimation-fill-mode: ${L.map((()=>"both")).join(", ")};\n\t\t\t\tanimation-direction: ${L.map((()=>x?"normal":"reverse")).join(", ")};\n\t\t\t\tanimation-timeline: ${f.join(", ")};\n\t\t\t\tanimation-range: ${D.join(", ")};\n\t\t\t}\n\t\t\t${O("desktop")?`${i}{ ${O("desktop")} }`:""}\n\t\t\t${O("tablet-portrait")?`@media only screen and (min-width: 641px) and (max-width: 1024px){ ${O("tablet-portrait")} }`:""}\n\t\t\t${O("mobile-portrait")?`${o}{ ${O("mobile-portrait")} }`:""}\n\t\t}\n\t`:""}\n\t\t${k.length?`${r}{ transition-property: background, border, border-radius, box-shadow; }`:""}\n\t\t${A("desktop")?`${S}{ ${A("desktop")} }`:""}\n\t\t${A("tablet")?`${n}{ ${S}{ ${A("tablet")} } }`:""}\n\t\t${A("mobile")?`${o}{ ${S}{ ${A("mobile")} } }`:""}\n\t`})(v,k,e)}\n\t\t${z}\n\t`.replace(/\s+/g," ")};document.addEventListener("DOMContentLoaded",(()=>{const t=document.querySelectorAll("[data-bblocks-advanced]"),e=document.createElement("style");let i="";t.length&&t.forEach((t=>{(t=>{const e=t.getAttribute("data-bblocks-advanced");if(e)try{const n=JSON.parse(e),{animation:o}=n;o&&o?.type&&setTimeout((()=>{window.AOS.init()}),[]);const r=b(t.id,n);i+=r,t.removeAttribute("data-bblocks-advanced")}catch(t){console.error("Invalid JSON in data-bblocks-advanced attribute:",t)}})(t)})),i&&(e.innerHTML=i,document.head.appendChild(e))}))})();