GhostManSec
Server: LiteSpeed
System: Linux premium117.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: eblama1 (1214)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //home/eblama1/mintawon.farm/wp-content/plugins/gutenkit-blocks-addon/build/gutenkit/helpers.js
(()=>{var e={7752:(e,t,o)=>{var n;!function(){function i(e,t,o){return e.call.apply(e.bind,arguments)}function r(e,t,o){if(!e)throw Error();if(2<arguments.length){var n=Array.prototype.slice.call(arguments,2);return function(){var o=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(o,n),e.apply(t,o)}}return function(){return e.apply(t,arguments)}}function s(e,t,o){return(s=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?i:r).apply(null,arguments)}var a=Date.now||function(){return+new Date};function l(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var c=!!window.FontFace;function u(e,t,o,n){if(t=e.c.createElement(t),o)for(var i in o)o.hasOwnProperty(i)&&("style"==i?t.style.cssText=o[i]:t.setAttribute(i,o[i]));return n&&t.appendChild(e.c.createTextNode(n)),t}function f(e,t,o){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(o,e.lastChild)}function d(e){e.parentNode&&e.parentNode.removeChild(e)}function g(e,t,o){t=t||[],o=o||[];for(var n=e.className.split(/\s+/),i=0;i<t.length;i+=1){for(var r=!1,s=0;s<n.length;s+=1)if(t[i]===n[s]){r=!0;break}r||n.push(t[i])}for(t=[],i=0;i<n.length;i+=1){for(r=!1,s=0;s<o.length;s+=1)if(n[i]===o[s]){r=!0;break}r||t.push(n[i])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function h(e,t){for(var o=e.className.split(/\s+/),n=0,i=o.length;n<i;n++)if(o[n]==t)return!0;return!1}function p(e,t,o){function n(){a&&i&&r&&(a(s),a=null)}t=u(e,"link",{rel:"stylesheet",href:t,media:"all"});var i=!1,r=!0,s=null,a=o||null;c?(t.onload=function(){i=!0,n()},t.onerror=function(){i=!0,s=Error("Stylesheet failed to load"),n()}):setTimeout(function(){i=!0,n()},0),f(e,"head",t)}function m(e,t,o,n){var i=e.c.getElementsByTagName("head")[0];if(i){var r=u(e,"script",{src:t}),s=!1;return r.onload=r.onreadystatechange=function(){s||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(s=!0,o&&o(null),r.onload=r.onreadystatechange=null,"HEAD"==r.parentNode.tagName&&i.removeChild(r))},i.appendChild(r),setTimeout(function(){s||(s=!0,o&&o(Error("Script load timeout")))},n||5e3),r}return null}function b(){this.a=0,this.c=null}function v(e){return e.a++,function(){e.a--,w(e)}}function k(e,t){e.c=t,w(e)}function w(e){0==e.a&&e.c&&(e.c(),e.c=null)}function y(e){this.a=e||"-"}function S(e,t){this.c=e,this.f=4,this.a="n";var o=(t||"n4").match(/^([nio])([1-9])$/i);o&&(this.a=o[1],this.f=parseInt(o[2],10))}function $(e){var t=[];e=e.split(/,\s*/);for(var o=0;o<e.length;o++){var n=e[o].replace(/['"]/g,"");-1!=n.indexOf(" ")||/^\d/.test(n)?t.push("'"+n+"'"):t.push(n)}return t.join(",")}function x(e){return e.a+e.f}function z(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function T(e){var t=4,o="n",n=null;return e&&((n=e.match(/(normal|oblique|italic)/i))&&n[1]&&(o=n[1].substr(0,1).toLowerCase()),(n=e.match(/([1-9]00|normal|bold)/i))&&n[1]&&(/bold/i.test(n[1])?t=7:/[1-9]00/.test(n[1])&&(t=parseInt(n[1].substr(0,1),10)))),o+t}function C(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new y("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function P(e){if(e.g){var t=h(e.f,e.a.c("wf","active")),o=[],n=[e.a.c("wf","loading")];t||o.push(e.a.c("wf","inactive")),g(e.f,o,n)}j(e,"inactive")}function j(e,t,o){e.j&&e.h[t]&&(o?e.h[t](o.c,x(o)):e.h[t]())}function A(){this.c={}}function N(e,t){this.c=e,this.f=t,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function E(e){f(e.c,"body",e.a)}function O(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+$(e.c)+";font-style:"+z(e)+";font-weight:"+e.f+"00;"}function _(e,t,o,n,i,r){this.g=e,this.j=t,this.a=n,this.c=o,this.f=i||3e3,this.h=r||void 0}function D(e,t,o,n,i,r,s){this.v=e,this.B=t,this.c=o,this.a=n,this.s=s||"BESbswy",this.f={},this.w=i||3e3,this.u=r||null,this.m=this.j=this.h=this.g=null,this.g=new N(this.c,this.s),this.h=new N(this.c,this.s),this.j=new N(this.c,this.s),this.m=new N(this.c,this.s),e=O(e=new S(this.a.c+",serif",x(this.a))),this.g.a.style.cssText=e,e=O(e=new S(this.a.c+",sans-serif",x(this.a))),this.h.a.style.cssText=e,e=O(e=new S("serif",x(this.a))),this.j.a.style.cssText=e,e=O(e=new S("sans-serif",x(this.a))),this.m.a.style.cssText=e,E(this.g),E(this.h),E(this.j),E(this.m)}y.prototype.c=function(e){for(var t=[],o=0;o<arguments.length;o++)t.push(arguments[o].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},_.prototype.start=function(){var e=this.c.o.document,t=this,o=a(),n=new Promise(function(n,i){!function r(){a()-o>=t.f?i():e.fonts.load(function(e){return z(e)+" "+e.f+"00 300px "+$(e.c)}(t.a),t.h).then(function(e){1<=e.length?n():setTimeout(r,25)},function(){i()})}()}),i=null,r=new Promise(function(e,o){i=setTimeout(o,t.f)});Promise.race([r,n]).then(function(){i&&(clearTimeout(i),i=null),t.g(t.a)},function(){t.j(t.a)})};var H={D:"serif",C:"sans-serif"},I=null;function F(){if(null===I){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);I=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return I}function M(e,t,o){for(var n in H)if(H.hasOwnProperty(n)&&t===e.f[H[n]]&&o===e.f[H[n]])return!0;return!1}function W(e){var t,o=e.g.a.offsetWidth,n=e.h.a.offsetWidth;(t=o===e.f.serif&&n===e.f["sans-serif"])||(t=F()&&M(e,o,n)),t?a()-e.A>=e.w?F()&&M(e,o,n)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?L(e,e.v):L(e,e.B):function(e){setTimeout(s(function(){W(this)},e),50)}(e):L(e,e.v)}function L(e,t){setTimeout(s(function(){d(this.g.a),d(this.h.a),d(this.j.a),d(this.m.a),t(this.a)},e),0)}function B(e,t,o){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=o}D.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=a(),W(this)};var R=null;function X(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&g(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),j(e,"active")):P(e.a))}function Y(e){this.j=e,this.a=new A,this.h=0,this.f=this.g=!0}function G(e,t,o,n,i){var r=0==--e.h;(e.f||e.g)&&setTimeout(function(){var e=i||null,a=n||{};if(0===o.length&&r)P(t.a);else{t.f+=o.length,r&&(t.j=r);var l,c=[];for(l=0;l<o.length;l++){var u=o[l],f=a[u.c],d=t.a,h=u;if(d.g&&g(d.f,[d.a.c("wf",h.c,x(h).toString(),"loading")]),j(d,"fontloading",h),d=null,null===R)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var p=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);R=h?42<parseInt(h[1],10):!p}else R=!1;d=R?new _(s(t.g,t),s(t.h,t),t.c,u,t.s,f):new D(s(t.g,t),s(t.h,t),t.c,u,t.s,e,f),c.push(d)}for(l=0;l<c.length;l++)c[l].start()}},0)}function V(e,t){this.c=e,this.a=t}function U(e,t){this.c=e,this.a=t}function J(e,t){this.c=e||q,this.a=[],this.f=[],this.g=t||""}B.prototype.g=function(e){var t=this.a;t.g&&g(t.f,[t.a.c("wf",e.c,x(e).toString(),"active")],[t.a.c("wf",e.c,x(e).toString(),"loading"),t.a.c("wf",e.c,x(e).toString(),"inactive")]),j(t,"fontactive",e),this.m=!0,X(this)},B.prototype.h=function(e){var t=this.a;if(t.g){var o=h(t.f,t.a.c("wf",e.c,x(e).toString(),"active")),n=[],i=[t.a.c("wf",e.c,x(e).toString(),"loading")];o||n.push(t.a.c("wf",e.c,x(e).toString(),"inactive")),g(t.f,n,i)}j(t,"fontinactive",e),X(this)},Y.prototype.load=function(e){this.c=new l(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,o){var n=[],i=o.timeout;!function(e){e.g&&g(e.f,[e.a.c("wf","loading")]),j(e,"loading")}(t),n=function(e,t,o){var n,i=[];for(n in t)if(t.hasOwnProperty(n)){var r=e.c[n];r&&i.push(r(t[n],o))}return i}(e.a,o,e.c);var r=new B(e.c,t,i);for(e.h=n.length,t=0,o=n.length;t<o;t++)n[t].load(function(t,o,n){G(e,r,t,o,n)})}(this,new C(this.c,e),e)},V.prototype.load=function(e){function t(){if(r["__mti_fntLst"+n]){var o,i=r["__mti_fntLst"+n](),s=[];if(i)for(var a=0;a<i.length;a++){var l=i[a].fontfamily;null!=i[a].fontStyle&&null!=i[a].fontWeight?(o=i[a].fontStyle+i[a].fontWeight,s.push(new S(l,o))):s.push(new S(l))}e(s)}else setTimeout(function(){t()},50)}var o=this,n=o.a.projectId,i=o.a.version;if(n){var r=o.c.o;m(this.c,(o.a.api||"https://fast.fonts.net/jsapi")+"/"+n+".js"+(i?"?v="+i:""),function(i){i?e([]):(r["__MonotypeConfiguration__"+n]=function(){return o.a},t())}).id="__MonotypeAPIScript__"+n}else e([])},U.prototype.load=function(e){var t,o,n=this.a.urls||[],i=this.a.families||[],r=this.a.testStrings||{},s=new b;for(t=0,o=n.length;t<o;t++)p(this.c,n[t],v(s));var a=[];for(t=0,o=i.length;t<o;t++)if((n=i[t].split(":"))[1])for(var l=n[1].split(","),c=0;c<l.length;c+=1)a.push(new S(n[0],l[c]));else a.push(new S(n[0]));k(s,function(){e(a,r)})};var q="https://fonts.googleapis.com/css";function K(e){this.f=e,this.a=[],this.c={}}var Q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Z={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},ee={i:"i",italic:"i",n:"n",normal:"n"},te=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function oe(e,t){this.c=e,this.a=t}var ne={Arimo:!0,Cousine:!0,Tinos:!0};function ie(e,t){this.c=e,this.a=t}function re(e,t){this.c=e,this.f=t,this.a=[]}oe.prototype.load=function(e){var t=new b,o=this.c,n=new J(this.a.api,this.a.text),i=this.a.families;!function(e,t){for(var o=t.length,n=0;n<o;n++){var i=t[n].split(":");3==i.length&&e.f.push(i.pop());var r="";2==i.length&&""!=i[1]&&(r=":"),e.a.push(i.join(r))}}(n,i);var r=new K(i);!function(e){for(var t=e.f.length,o=0;o<t;o++){var n=e.f[o].split(":"),i=n[0].replace(/\+/g," "),r=["n4"];if(2<=n.length){var s;if(s=[],a=n[1])for(var a,l=(a=a.split(",")).length,c=0;c<l;c++){var u;if((u=a[c]).match(/^[\w-]+$/))if(null==(f=te.exec(u.toLowerCase())))u="";else{if(u=null==(u=f[2])||""==u?"n":ee[u],null==(f=f[1])||""==f)f="4";else var f=Z[f]||(isNaN(f)?"4":f.substr(0,1));u=[u,f].join("")}else u="";u&&s.push(u)}0<s.length&&(r=s),3==n.length&&(s=[],0<(n=(n=n[2])?n.split(","):s).length&&(n=Q[n[0]])&&(e.c[i]=n))}for(e.c[i]||(n=Q[i])&&(e.c[i]=n),n=0;n<r.length;n+=1)e.a.push(new S(i,r[n]))}}(r),p(o,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,o=[],n=0;n<t;n++)o.push(e.a[n].replace(/ /g,"+"));return t=e.c+"?family="+o.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(n),v(t)),k(t,function(){e(r.a,r.c,ne)})},ie.prototype.load=function(e){var t=this.a.id,o=this.c.o;t?m(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)e([]);else if(o.Typekit&&o.Typekit.config&&o.Typekit.config.fn){t=o.Typekit.config.fn;for(var n=[],i=0;i<t.length;i+=2)for(var r=t[i],s=t[i+1],a=0;a<s.length;a++)n.push(new S(r,s[a]));try{o.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(n)}},2e3):e([])},re.prototype.load=function(e){var t=this.f.id,o=this.c.o,n=this;t?(o.__webfontfontdeckmodule__||(o.__webfontfontdeckmodule__={}),o.__webfontfontdeckmodule__[t]=function(t,o){for(var i=0,r=o.fonts.length;i<r;++i){var s=o.fonts[i];n.a.push(new S(s.name,T("font-weight:"+s.weight+";font-style:"+s.style)))}e(n.a)},m(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",function(t){t&&e([])})):e([])};var se=new Y(window);se.a.c.custom=function(e,t){return new U(t,e)},se.a.c.fontdeck=function(e,t){return new re(t,e)},se.a.c.monotype=function(e,t){return new V(t,e)},se.a.c.typekit=function(e,t){return new ie(t,e)},se.a.c.google=function(e,t){return new oe(t,e)};var ae={load:s(se.load,se)};void 0===(n=function(){return ae}.call(t,o,t,e))||(e.exports=n)}()}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};o.r(e),o.d(e,{GkitLocalStoreGetData:()=>j,GkitLocalStoreSetData:()=>P,backgroundGenerator:()=>v,baseBreakpoint:()=>N,boxControlUnit:()=>y,colorsGroup:()=>w,fillBackgroundGenerator:()=>k,filterStyles:()=>ae,generatePageSettingsCssText:()=>ce,generatePlaceholder:()=>me,generateStyles:()=>le,getAttrDependencies:()=>x,getAttributes:()=>Q,getBorderValue:()=>a,getBoxShadowValue:()=>s,getBoxValue:()=>l,getCSSFilters:()=>d,getColor:()=>i,getCookie:()=>ne,getGradient:()=>r,getMultipleTransform:()=>h,getMultipleTransformOrigin:()=>p,getMultipleTransition:()=>f,getSliderValue:()=>c,getTextStrokeValue:()=>m,getTypographyValue:()=>u,gkitDomFindChild:()=>q,gkitDomFindParent:()=>J,gkitDomNextSibling:()=>V,gkitDomPrevSibling:()=>U,gkitResponsiveValue:()=>z,gkitSwiper:()=>G,hasCSS:()=>fe,htmlTags:()=>$,isNull:()=>n,linkGenerator:()=>C,moveObjectToTop:()=>K,onScrollAnimate:()=>X,onScrollAnimateIframe:()=>Y,orderSortedValue:()=>g,overflowOptions:()=>S,overlayGenerator:()=>A,parseCSS:()=>O,responsiveHelper:()=>_,responsiveTypographyHelper:()=>D,setAttributes:()=>Z,setCookie:()=>oe,truncateCharacter:()=>re,truncateWords:()=>H,useBlockStyles:()=>ue,useDeviceList:()=>de,useDeviceType:()=>M,useFontFamilyinBlock:()=>R,useHasProActive:()=>ie,useModuleStyles:()=>pe});const t=(e,t,o)=>{const n=wp.data.select("core/block-editor").getSettings(),i=n&&n.__experimentalFeatures?n.__experimentalFeatures.color:{},r=i&&i[t]?i[t]:{};return Object.keys(r).map(t=>r[t].find(t=>t&&t[o]===e)).filter(e=>void 0!==e)[0]},n=e=>null==e||"object"==typeof e&&0===Object.keys(e).length||"string"==typeof e&&0===e.trim().length||!1===e,i=e=>{if(!e)return;if(e.startsWith("#")||e.startsWith("rgba")||e.startsWith("var("))return e;const[o,n]=e.split(","),i=t(o,"palette","slug");return i?.slug?`var(--wp--preset--color--${i.slug}, ${i.color})`:n||void 0},r=e=>{if(!e||e.startsWith("linear-gradient(")||e?.startsWith("radial-gradient("))return e;const o=e.split(/,(.+)/).filter(Boolean),n=t(o[0],"gradients","slug");return n?`var(--wp--preset--gradient--${n.slug}, ${n.gradient})`:o[1]},s=e=>{if(!e)return;if(e?.selectedType||(e={...e,selectedType:"text"}),e?.slug&&e?.shadow)return`var(--wp--preset--shadow--${e.slug}, ${e.shadow})`;const t=e=>"object"==typeof e&&void 0!==e?.size?`${e.size}px`:"number"==typeof e?`${e}px`:e?`${e}`:"0px",o=t(e?.horizontal),n=t(e?.vertical),r=t(e?.blur),s=t(e?.spread),a=e?.color?i(e.color):"";let l=`${o} ${n} ${r} ${s}`;a&&(l+=` ${a}`),"inset"===e?.position&&(l=`inset ${l}`),l=l.trim();let c=`${o} ${n} ${r}`;return a&&(c+=` ${a}`),c=c.trim(),"box"===e.selectedType?l:"text"===e.selectedType?c:void 0},a=e=>{if(n(e))return{border:void 0};if(e?.width&&e?.color)return{border:`${e?.width} ${e?.style||"solid"} ${i(e?.color)}`};if(e?.right||e?.bottom||e?.left||e?.top){const t={};return Object.keys(e).forEach(o=>{e[o]?.width&&e[o]?.color&&(t[`border-${o}`]=`${e[o]?.width} ${e[o]?.style||"solid"} ${i(e[o]?.color)}`)}),t}},l=(e={},t="")=>{const{top:o,right:n,bottom:i,left:r}=e,s={top:o,right:n,bottom:i,left:r},a=Object.values(s).filter(e=>void 0!==e).length;if(0===a)return{[t]:void 0};if(4===a){let e="";return e=o===i&&o===n&&o===r?o:o===i&&r===n?`${o} ${n}`:`${o} ${n} ${i} ${r}`,{[t]:e}}let l={};return"border-radius"!==t?(Object.keys(s).forEach(o=>{l[`${t}-${o}`]=e[o]||void 0}),l):"border-radius"===t?(l["border-top-left-radius"]=o||void 0,l["border-top-right-radius"]=n||void 0,l["border-bottom-right-radius"]=i||void 0,l["border-bottom-left-radius"]=r||void 0,l):void 0},c=e=>{let t="";return t=n(e?.size)||n(e?.unit)?!n(e?.size)&&n(e?.unit)?`${e?.size}`:void 0:`${e?.size}${e?.unit}`,t},u=(e,t)=>"Desktop"===t?{"font-family":e?.fontFamily?.value,"font-size":e?.fontSize?.[t]?.size+e?.fontSize?.[t]?.unit,"font-style":e?.fontStyle,"font-weight":e?.fontWeight?.value,"text-decoration":e?.textDecoration,"text-transform":e?.textTransform,"line-height":e?.lineHeight?.[t]?.size+e?.lineHeight?.[t]?.unit,"letter-spacing":e?.letterSpacing?.[t]?.size+e?.letterSpacing?.[t]?.unit,"word-spacing":e?.wordSpacing?.[t]?.size+e?.wordSpacing?.[t]?.unit}:{"font-size":e?.fontSize?.[t]?.size+e?.fontSize?.[t]?.unit,"line-height":e?.lineHeight?.[t]?.size+e?.lineHeight?.[t]?.unit,"letter-spacing":e?.letterSpacing?.[t]?.size+e?.letterSpacing?.[t]?.unit,"word-spacing":e?.wordSpacing?.[t]?.size+e?.wordSpacing?.[t]?.unit},f=(...e)=>{let t=[];return Object.keys(e).length>0&&e.forEach((e,o)=>{if(e?.duration?.size||e?.isDeclared&&e?.duration){let o=e?.isDeclared?"":"s";t.push(`${e?.name} ${e?.duration?.size||e?.duration}${o} ${e?.animation}`)}}),t.length>0?t.join(", "):void 0},d=e=>{let t="";return!n(e?.blur?.size)&&(t+=`blur(${e?.blur?.size}px) `),!n(e?.brightness?.size)&&(t+=`brightness(${e?.brightness?.size}%) `),!n(e?.contrast?.size)&&(t+=`contrast(${e?.contrast?.size}%) `),!n(e?.saturation?.size)&&(t+=`saturate(${e?.saturation?.size}%) `),!n(e?.hue?.size)&&(t+=`hue-rotate(${e?.hue?.size}deg) `),!n(e?.grayscale?.size)&&(t+=`grayscale(${e?.grayscale?.size}%) `),!n(e?.invert?.size)&&(t+=`invert(${e?.invert?.size}%) `),!n(e?.sepia?.size)&&(t+=`sepia(${e?.sepia?.size}%) `),n(t)?void 0:t},g=(e=[],t,o)=>{if(!t)return[];const n=o.startsWith(".")?o:`.${o}`,i=e?.map((e,t)=>({selector:`${n} .${e.class}`,order:t}));return i},h=(e,t)=>{if(t&&0!==Object.entries(t).length)return Object.entries(t).flatMap(([o,n])=>{const{rotate:i,rotateHover:r,scale:s,scaleHover:a}=t,l=i?.common3DRotate,u=r?.common3DRotateHover,f=s?.commonKeepProportions,d=a?.commonKeepProportionsHover,g=(t,o,i)=>{const r=[t+e].toString(),s=n&&void 0!==n[r],a=n&&void 0!==c(n[r]);return s&&o&&a?`${i}(${c(n[r])})`:!n||"horizontal"!=n[t]&&"vertical"!=n[t]?void 0:`${i}(calc(-1))`};return[g("commonRotate",!l,"rotateZ"),g("commonRotateX",l,"rotateX"),g("commonRotateY",l,"rotateY"),g("perspective",l,"perspective"),g("commonOffsetX",!0,"translateX"),g("commonOffsetY",!0,"translateY"),g("commonScale",f,"scale"),g("commonScaleX",!f,"scaleX"),g("commonScaleY",!f,"scaleY"),g("commonSkewX",!0,"skewX"),g("commonSkewY",!0,"skewY"),g("commonFlipHorizontal",!0,"scaleX"),g("commonFlipVertical",!0,"scaleY"),g("commonRotateHover",!u,"rotateZ"),g("commonRotateXHover",u,"rotateX"),g("commonRotateYHover",u,"rotateY"),g("perspectiveHover",u,"perspective"),g("commonOffsetXHover",!0,"translateX"),g("commonOffsetYHover",!0,"translateY"),g("commonScaleHover",d,"scale"),g("commonScaleXHover",!d,"scaleX"),g("commonScaleYHover",!d,"scaleY"),g("commonSkewXHover",!0,"skewX"),g("commonSkewYHover",!0,"skewY"),g("commonFlipHorizontalHover",!0,"scaleX"),g("commonFlipVerticalHover",!0,"scaleY")]}).filter(e=>void 0!==e).join(" ")},p=(...e)=>{let t=[];return e&&e.forEach(e=>{e?.value&&t.push(`${e.value}`)}),t.length>0?t.join(" "):void 0},m=(e,t)=>{const{width:o,color:n}=e||{};if(o&&"object"==typeof o){const{size:e,unit:r}=o[t]?o[t]:{};if(null!=e&&!isNaN(e))return`${e}${r||"px"} ${i(n)||""}`.trim()}},b=window.wp.hooks,v=(e,t="Desktop")=>{let o={background:"",size:""};return"image"!==e?.backgroundType||n(e?.backgroundImage?.url)&&n(e?.backgroundImage?.dynamicContentType)||(o.background+=(0,b.applyFilters)("gutenkit.backgroundImage.url",`url(${e?.backgroundImage?.imageUrl?.[t]?e?.backgroundImage?.imageUrl?.[t]:e?.backgroundImage?.url})`,e?.backgroundImage),!n(e?.backgroundRepeat)&&(o.background+=`${e?.backgroundRepeat} `),!n(e?.backgroundAttachment)&&(o.background+=`${e?.backgroundAttachment} `),!n(e?.backgroundPosition[t])&&"custom"!==e?.backgroundPosition[t]&&(o.background+=`${e?.backgroundPosition[t]}`),!n(e?.backgroundPosition[t])&&"custom"===e?.backgroundPosition[t]&&!n(e?.customPositionX[t])&&!n(e?.customPositionY[t])&&(o.background+=`${c(e?.customPositionX[t])} ${c(e?.customPositionY[t])}`),!n(e?.backgroundSize)&&"custom"!==e?.backgroundSize&&(o.size+=`${e?.backgroundSize}`),!n(e?.backgroundSize)&&"custom"===e?.backgroundSize&&(o.size+=`${c(e?.customSize[t])} auto`)),"classic"!==e?.backgroundType||n(e?.backgroundColor)||(o.background+=`${i(e?.backgroundColor)} `),"gradient"!==e?.backgroundType||n(e?.gradient)||(o.background+=`${r(e?.gradient)} `),n(o?.background)?o.background=void 0:o.background=o.background,n(o?.size)?o.size=void 0:o.size=o.size,o},k=(e,t="Desktop")=>{let o={"background-image":""};return"classic"===e?.backgroundType&&(o["background-color"]=`${i(e?.backgroundColor)}`),"gradient"===e?.backgroundType&&(o["background-image"]=`${r(e?.gradient)}`),"image"===e?.backgroundType&&((!n(e?.backgroundImage?.url)||!n(e?.backgroundImage?.dynamicContentType))&&(o["background-image"]=(0,b.applyFilters)("gutenkit.backgroundImage.url",`url(${e?.backgroundImage?.imageUrl?.[t]?e?.backgroundImage?.imageUrl?.[t]:e?.backgroundImage?.url})`,e?.backgroundImage)),!n(e?.backgroundAttachment)&&(o["background-attachment"]=e?.backgroundAttachment),!n(e?.backgroundPosition[t])&&"custom"!==e?.backgroundPosition[t]&&(o["background-position"]=e?.backgroundPosition[t]),!n(e?.backgroundPosition[t])&&"custom"===e?.backgroundPosition[t]&&!n(e?.customPositionX)&&!n(e?.customPositionY)&&(o["background-position"]=`${c(e?.customPositionX[t])} ${c(e?.customPositionY[t])}`),!n(e?.backgroundSize)&&"custom"!==e?.backgroundSize&&(o["background-size"]=e?.backgroundSize),!n(e?.backgroundSize)&&"custom"===e?.backgroundSize&&(o["background-size"]=`${c(e?.customSize[t])} auto`),!n(e?.backgroundRepeat)&&(o["background-repeat"]=e?.backgroundRepeat)),o},w=[{color:"#72aee6",name:"Blue 20"},{color:"#3582c4",name:"Blue 40"},{color:"#e65054",name:"Red 40"},{color:"#8a2424",name:"Red 70"}],y=[{value:"px",label:"px"},{value:"em",label:"em"},{value:"%",label:"%"}],S=[{label:"Default",value:""},{label:"Hidden",value:"hidden"},{label:"Auto",value:"auto"}],$=[{label:"Div",value:"div"},{label:"Header",value:"header"},{label:"Main",value:"main"},{label:"Article",value:"article"},{label:"Section",value:"section"},{label:"Aside",value:"aside"},{label:"Figure",value:"figure"},{label:"Figcaption",value:"figcaption"},{label:"Nav",value:"nav"},{label:"Footer",value:"footer"}],x=(e,t=!1)=>{if(e){let o="";o=t?Object.keys(e).map(e=>"blocksCSS"!==e?"attributes?."+e+",\n":"").join(""):Object.keys(e).filter(e=>"blocksCSS"!==e).join(", \n"),navigator.clipboard.writeText(o).then(()=>{console.info("Copied to clipboard")}).catch(()=>{console.warn("Something went wrong")})}},z=(e,t,o)=>{if(o&&e&&t){if(Array.isArray(t)){let n=e[t[0]];if(n&&n[t[1]])return n[t[1]][o]}return e[t+o]}},T=window.wp.url,C=e=>{let t=e?.url;!t||t.startsWith("http:")&&t.startsWith("https:")&&!t.startsWith("#")||(t=(0,T.prependHTTP)(t));let o={href:t,onClick:e=>e.preventDefault()};return e?.newTab&&(o.target="_blank",o.rel="noopener"),e?.noFollow&&(o.rel="_blank"==o.target?"nofollow noopener":"nofollow"),e?.customAttributes&&e?.customAttributes.length>0&&e?.customAttributes.forEach(e=>{const[t,n]=e.split("|");o[t]=n}),e?.isDynamicContent?(o["data-dynamic-content-url"]=JSON.stringify({...e,url:t}),o):o?.href?o:null},P=(e,t,o=[])=>{const n=o;n.length>0?n.includes(t)&&localStorage.setItem(e,t):localStorage.setItem(e,t)},j=e=>e&&localStorage.getItem(e),A=(e,t="Desktop")=>{let o={"background-image":""};return"gradient"===e?.backgroundType&&(o["background-image"]=r(e?.gradient)),"classic"===e?.backgroundType&&(!n(e?.backgroundColor)&&(o["background-color"]=i(e?.backgroundColor)),!n(e?.backgroundImage?.imageUrl)&&(o["background-image"]=`url(${e?.backgroundImage?.imageUrl})`),!n(e?.backgroundAttachment)&&(o["background-attachment"]=e?.backgroundAttachment),!n(e?.backgroundPosition[t])&&"custom"!==e?.backgroundPosition[t]&&(o["background-position"]=e?.backgroundPosition[t]),!n(e?.backgroundPosition[t])&&"custom"===e?.backgroundPosition[t]&&!n(e?.customPositionX)&&!n(e?.customPositionY)&&(o["background-position"]=`${c(e?.customPositionX[t])} ${c(e?.customPositionY[t])}`),!n(e?.backgroundSize)&&"custom"!==e?.backgroundSize&&(o["background-size"]=e?.backgroundSize),!n(e?.backgroundSize)&&"custom"===e?.backgroundSize&&(o["background-size"]=`${c(e?.customSize[t])} auto`),!n(e?.backgroundRepeat)&&(o["background-repeat"]=e?.backgroundRepeat)),!n(e?.opacity)&&(o.opacity=`${e?.opacity?.size}`),!n(e?.blendMode)&&(o["mix-blend-mode"]=e?.blendMode),!n(e?.cssFilters)&&(o.filter=d(e?.cssFilters)),n(o)?void 0:o},N={label:"Desktop",slug:"Desktop",value:"base",icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false"><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"></path></svg>'},E=[N,{label:"Tablet",slug:"Tablet",value:"1024",direction:"max"},{label:"Mobile",slug:"Mobile",value:"767",direction:"max"}],O=(e,t=E)=>{let o={};if(Array.isArray(e)){let[n,i,r=[]]=e;t.forEach(e=>{o[e?.slug]="base"===e?.value?[...n,...i(e?.slug)]:i(e?.slug)}),o.customStyles=r}else o=e;return{rawCSS:o,breakpoints:t}},_=(e,t,o,n)=>{n({[e+o]:t})},D=(e,t,o,n)=>{const i={...e};return{...i,[t]:{...i[t],[n]:o}}},H=function(e,t){if(!e)return"";const o=e.split(" ");if(t>=o.length)return e;const n=o.slice(0,t);return n.push("..."),n.join(" ")},I=window.wp.data,F=window.wp.editor,M=()=>{const{modules:e}=window?.gutenkit||{},t=e?.breakpoints,{deviceType:o}=(0,I.useSelect)(e=>{const o=e("gutenkit/global-store")?.getDeviceType,n=F.store?e(F.store)?.getDeviceType:void 0;return F.store?{deviceType:t?o?.():n?.()}:{deviceType:"Desktop"}},[]);return o||"Desktop"},W=window.wp.element;var L=o(7752),B=o.n(L);const R=(e=[])=>{(0,W.useEffect)(()=>{e.length=0},[]),(0,W.useEffect)(()=>{let t=[];e?.length>0&&e.forEach(e=>{let o={};!n(e?.fontFamily)&&(o.Font=e?.fontFamily?.value),!n(e?.fontWeight)&&(o.Condensed=e?.fontWeight?.value);let i="";!n(o?.Font)&&(i=o?.Font),!n(o?.Font)&&!n(o?.Condensed)&&(i+=":400,"+o?.Condensed),!n(i)&&t.push(i)}),t.length>0&&B().load({google:{families:[...t]},context:frames["editor-canvas"]})},[JSON.stringify(e)])},X=(e,t)=>{const o=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting)try{t(e)}catch(e){console.warn(e)}})});document.querySelectorAll(e).forEach(e=>o.observe(e))},Y=(e,t)=>{const o=window.frames["editor-canvas"]||window;if(o){const{IntersectionObserver:n,document:i}=o,r=new n(e=>{e.forEach(e=>{if(e.isIntersecting)try{t(e)}catch(e){console.warn(e)}})});i.querySelectorAll(e).forEach(e=>r.observe(e))}},G=function(e,t,o=!1,n="Desktop",i=[],r={}){const s=e.querySelector(".swiper-pagination"),a=e.querySelector(".swiper-button-next"),l=e.querySelector(".swiper-button-prev"),{direction:c,speed:u,delay:f,loop:d,autoplay:g,pauseOnMouseEnter:h,allowTouchMove:p,effect:m}=t,b={};if(i){const e=i.find(e=>"Desktop"===e.slug),o=i.find(e=>"WideScreen"===e.slug),n=i.map(t=>"Desktop"===t.slug?e:"WideScreen"===t.slug?o:t);n.forEach((e,n,i)=>{let r=i[n+1]?.value||"0";r&&(r="base"===r&&o?o?.value:r,b[r]={slidesPerView:t?.[`slidesPerView${e?.slug}`]?.size||1,slidesPerGroup:t?.[`slidesPerGroup${e?.slug}`]?.size||1,spaceBetween:t?.[`spaceBetween${e?.slug}`]?.size||10,slidesPerGroupSkip:Number(0)})})}let v={direction:c||"horizontal",loop:d||!1,speed:u||1e3,autoplay:g&&{pauseOnMouseEnter:h||!1,delay:f||3e3},allowTouchMove:p||!0,draggable:!0,effect:m||"slide",focusableElements:'a, button, input, textarea, select, details, [tabindex="0"]',pagination:{el:s,clickable:!0},navigation:{nextEl:a,prevEl:l},slidesPerGroupSkip:Number(0),...r};if(o){const{gkitResponsiveValue:e}=window.GkitHelpers;v={...v,slidesPerView:e(t,"slidesPerView",n)?.size||1,slidesPerGroup:e(t,"slidesPerGroup",n)?.size||1,spaceBetween:e(t,"spaceBetween",n)?.size||10},v.allowTouchMove=!1}else v.breakpoints=b;return new Swiper(e,v)},V=function(e,t){let o=e.nextElementSibling;if(t){const e=t.startsWith("."),n=t.startsWith("#");for(;null!==o;){if(e&&o.classList.contains(t.slice(1))||n&&o.id===t.slice(1)||!e&&!n&&o.tagName.toLowerCase()===t.toLowerCase())return o;o=o.nextElementSibling}return null}return o},U=function(e,t){let o=e.previousElementSibling;if(t){const e=t.startsWith("."),n=t.startsWith("#");for(;null!==o;){if(e&&o.classList.contains(t.slice(1))||n&&o.id===t.slice(1)||!e&&!n&&o.tagName.toLowerCase()===t.toLowerCase())return o;o=o.previousElementSibling}return null}return o},J=function(e,t){const o=t.startsWith("."),n=t.startsWith("#");let i=e.parentElement;for(;null!==i;){if(o&&i.classList.contains(t.slice(1))||n&&i.id===t.slice(1)||!o&&!n&&i.tagName.toLowerCase()===t.toLowerCase())return i;i=i.parentElement}return null},q=function(e,t){const o=Array.from(e.children);if(t){const e=t.startsWith("."),n=t.startsWith("#");return o.filter(o=>!!(e&&o.classList.contains(t.slice(1))||n&&o.id===t.slice(1)||!e&&!n&&o.tagName.toLowerCase()===t.toLowerCase()))}return o},K=function(e,t){const o=e.findIndex(e=>e.slug===t);if(-1!==o){const[t]=e.splice(o,1);e.unshift(t)}return e},Q=e=>{const{getBlockAttributes:t}=(0,I.select)("core/block-editor");return t(e)},Z=(e,t)=>{const{updateBlockAttributes:o}=(0,I.dispatch)("core/block-editor");o(e,t)},ee=window.wp.apiFetch;var te=o.n(ee);const oe=function(e,t,o){let n=`${e}=${t}; path=/`;if(o){const e=new Date;e.setTime(e.getTime()+60*o*60*1e3),n+=`; expires=${e.toUTCString()}`}document.cookie=n},ne=function(e){const t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length?t.pop().split(";").shift():null};function ie({windowVariable:e="gutenkit",hookName:t="gutenkit.is-pro-active",cookieName:o="isValidLicense",apiPath:n="gutenkit"}={}){const[i,r]=(0,W.useState)(()=>"true"===ne(o)),{has_pro:s}=window?.[e]||{};return(0,W.useEffect)(()=>{s&&(async()=>{const e=ne(o);e?r("true"===e):setTimeout(async()=>{try{const e=await te()({path:`/${n}/v1/license/status`});"valid"===e?.status?(r(!0),oe(o,"true",12)):(r(!1),oe(o,"false",12))}catch(e){console.error("Error fetching license status:",e)}},2e3)})()},[s]),(0,W.useMemo)(()=>(0,b.applyFilters)(t,i),[i])}const re=function(e,t){return t>=e?.length?e:e?.slice(0,t)+"..."},se=new Set(["px","em","rem","%","vh","vw"]),ae=e=>{const t=[];for(const o in e){const n=e[o];!n||se.has(n)||Number.isNaN(n)||"string"==typeof n&&n.includes("undefined")||t.push(`${o}: ${n};`)}return t.join(" ")},le=(e,t)=>{const o={};for(let n=0;n<t.length;n++){const i=t[n],r=e[i.slug]||e[i.slug.toLowerCase()];if(r){const e=[];for(let t=0;t<r.length;t++){const{selector:o,...n}=r[t],i=ae(n);i&&e.push(`${o} { ${i} }`)}e.length>0&&(o[i.slug.toLowerCase()]=e.join(" "))}}if(e.customStyles){const t=[];for(let o=0;o<e.customStyles.length;o++){const{mediaQuery:n,selector:i,...r}=e.customStyles[o];if(n&&!n.includes("undefined")){const e=ae(r);e&&t.push(`@media (${n}) { ${i} { ${e} } }`)}}t.length>0&&(o.customStyles=t.join(" "))}return o},ce=(e,t)=>{const o=le(e.rawCSS,t);let n=[];return t.forEach(e=>{let t=e?.value,i=e?.slug||"Desktop",r=e?.direction||"max",s=i?.toLowerCase();if("base"==t&&o?.[s])n.push(o?.[s]);else if(o?.[s]&&t&&r){let e=`\n                        @media (${r}-width: ${t}px) {\n                            ${o?.[s]}\n                        }\n                    `;n.push(e)}}),n.length>0?n.join(""):""},ue=(e,t,o,n)=>{const{rawCSS:i,breakpoints:r}=(0,W.useMemo)(()=>n,[n]),{__unstableMarkNextChangeAsNotPersistent:s}=(0,I.useDispatch)("core/block-editor"),a=(0,W.useRef)(null),l=(0,W.useMemo)(()=>le(i,r),[i,r]),c=(0,W.useRef)(e);return(0,W.useEffect)(()=>(l&&JSON.stringify(e)!==JSON.stringify(c.current||{})&&(a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{s(),t({[o]:l}),c.current=e},200)),()=>clearTimeout(a.current)),[l]),l},fe=e=>!!e&&!!(e?.desktop||e?.tablet||e?.mobile||e?.tabletlandscape||e?.mobilelandscape||e?.laptop||e?.widescreen||e?.customStyles),de=()=>{const{modules:e}=window?.gutenkit||{},t=(0,W.useRef)(null);let o=[N,{label:"Tablet",slug:"Tablet",value:"1024",direction:"max"},{label:"Mobile",slug:"Mobile",value:"767",direction:"max"}];return e&&(o=(0,W.useMemo)(()=>{const t=e?.breakpoints?(0,I.select)("gutenkit/global-store"):null;let o=[N,{label:"Tablet",slug:"Tablet",value:"1024",direction:"max"},{label:"Mobile",slug:"Mobile",value:"767",direction:"max"}];if(t){const{getActiveBreakpoints:e}=t,n=e()?.sort((e,t)=>parseInt(t.value)-parseInt(e.value));n?.length>0&&(o=[N,...n])}return o},[])),(0,W.useMemo)(()=>{const e=t.current;return JSON.stringify(e)!==JSON.stringify(o)?(t.current=o,o):e},[o])},ge=new Set(["px","em","rem","%","vh","vw"]),he=e=>{let t="";for(const o in e){const n=e[o];void 0===n||ge.has(n)||Number.isNaN(n)||"string"==typeof n&&n.includes("undefined")||(t+=`${o}: ${n}; `)}return t.trim()},pe=(e,t,o)=>{const{__unstableMarkNextChangeAsNotPersistent:n}=(0,I.useDispatch)("core/block-editor"),i=Q(e);if(!i)return;const{rawCSS:r,breakpoints:s}=o,a=(0,W.useCallback)(t=>{Z(e,t)},[e]),l=(0,W.useMemo)(()=>((e,t)=>{const o={};let n="";const i=[];for(let o=0;o<t.length;o++){const n=t[o];i.push({deviceKey:n.slug.toLowerCase(),styles:e[n.slug]||e[n.slug.toLowerCase()]})}if(e.customStyles)for(let t=0;t<e.customStyles.length;t++){const o=e.customStyles[t];i.push({custom:!0,mediaQuery:o.mediaQuery,selector:o.selector,properties:o})}for(let e=0;e<i.length;e++){const{deviceKey:t,styles:r,custom:s,mediaQuery:a,selector:l,properties:c}=i[e];if(r){n="";for(let e=0;e<r.length;e++){const{selector:t,...o}=r[e],i=he(o);i&&(n+=`${t} { ${i} } `)}n&&(o[t]=n.trim())}else if(s&&a&&!a.includes("undefined")){const e=he(c);e&&(n=`@media (${a}) { ${l} { ${e} } }`,o.customStyles=(o.customStyles||"")+n)}}return o})(r,s),[r,s]),c=(0,W.useRef)(i);return(0,W.useEffect)(()=>{l&&JSON.stringify(i)!==JSON.stringify(c.current||{})&&(n(),a({[t]:l}),c.current=i)},[l]),i[t]},me=(e,t,o)=>{const n=document.createElement("canvas"),i=n.getContext("2d");return n.width=t,n.height=o,i.fillStyle="#d3d3d3",i.fillRect(0,0,t,o),i.fillStyle="#000000",i.font="20px Arial",i.textAlign="center",i.textBaseline="middle",i.fillText(e,t/2,o/2),n.toDataURL()};void 0===window.GkitHelpers&&(window.GkitHelpers={}),window.GkitHelpers={...e}})()})();