var PlaybookSDK=function(e){"use strict";var t=function(){return t=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};function n(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{s(i.next(e))}catch(e){r(e)}}function l(e){try{s(i.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((i=i.apply(e,t||[])).next())})}function i(e,t){var n,i,o,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(o=2&l[0]?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(!((o=(o=r.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){r=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(6===l[0]&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(e){l=[6,e],i=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}function o(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}function r(e,t){return n(this,void 0,void 0,function(){var n,o;return i(this,function(i){switch(i.label){case 0:n="".concat(e.apiEndpoint,"/api/test-config/").concat(t),i.label=1;case 1:return i.trys.push([1,4,,5]),[4,fetch(n,{method:"GET",headers:{"Content-Type":"application/json"},mode:"cors"})];case 2:if(!(o=i.sent()).ok){if(404===o.status)return[2,null];throw new Error("Failed to fetch test config: ".concat(o.status))}return[4,o.json()];case 3:return[2,i.sent()];case 4:return i.sent(),[2,null];case 5:return[2]}})})}function a(e,t,o,r){return n(this,void 0,void 0,function(){var n,a,l;return i(this,function(i){switch(i.label){case 0:return n=e.apiEndpoint+"/api/content",a=new URLSearchParams({page_type:t.type,page_handle:t.handle||"",campaign:o||"bundle_promo",variant:r,shop:e.shopDomain}),[4,fetch(n+"?"+a,{method:"GET",headers:{"Content-Type":"application/json"},mode:"cors"})];case 1:if(!(l=i.sent()).ok)throw new Error("Failed to fetch content: "+l.status);return[4,l.json()];case 2:return[2,i.sent()]}})})}function l(e,o,r,a){return n(this,arguments,void 0,function(e,n,o,r,a){var l,s,d,c,u,p;return void 0===a&&(a=!1),i(this,function(i){switch(i.label){case 0:l=e.apiEndpoint+"/api/hero",s=new URLSearchParams(t({testId:n,variant:o,impressionId:r},a&&{preview:"true"})),i.label=1;case 1:return i.trys.push([1,4,,5]),[4,fetch(l+"?"+s,{method:"GET",headers:{"Content-Type":"application/json"},mode:"cors"})];case 2:if(!(d=i.sent()).ok)throw new Error("Failed to fetch experience: "+d.status);return[4,d.json()];case 3:return(c=i.sent()).hero?[2,{hero:c.hero,brandDesign:c.brandDesign||null,poweredByEnabled:null!==(u=c.poweredByEnabled)&&void 0!==u&&u,domModifications:(null===(p=c.hero)||void 0===p?void 0:p.domModifications)||void 0}]:[2,null];case 4:return i.sent(),[2,null];case 5:return[2]}})})}"function"==typeof SuppressedError&&SuppressedError;var s=[],d=null,c=null;function u(e,n){if(c){var i={event:e,properties:t(t({},n),{sdk_version:"1.0.0",url:window.location.href,userAgent:navigator.userAgent,timestamp:performance.now()}),timestamp:(new Date).toISOString()};fetch(c.apiEndpoint+"/api/collect",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t(t({},i),{shopDomain:c.shopDomain})),mode:"cors"}).catch(function(){})}}function p(){if(d&&(clearTimeout(d),d=null),0!==s.length&&c){var e=o([],s,!0);s=[],fetch(c.apiEndpoint+"/api/collect",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({events:e,shopDomain:c.shopDomain}),mode:"cors"}).catch(function(){})}}function h(e,t){try{"undefined"!=typeof window&&window.dataLayer&&window.dataLayer.push({event:"playbook_experiment",experiment_id:e,experiment_variant:t}),"undefined"==typeof window||"function"!=typeof window.gtag||window.google_tag_manager||window.gtag("event","playbook_experiment",{experiment_id:e,experiment_variant:t}),"undefined"!=typeof window&&"function"==typeof window.fbq&&window.fbq("trackCustom","PlaybookExperiment",{experiment_id:e,experiment_variant:t})}catch(e){}}"undefined"!=typeof window&&(window.addEventListener("beforeunload",function(){p()}),document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&p()}));var m,f,g,b,v,y,x,w,k,C,_,I,S={},M=[],A=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,T=Array.isArray;function E(e,t){for(var n in t)e[n]=t[n];return e}function P(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function L(e,t,n){var i,o,r,a={};for(r in t)"key"==r?i=t[r]:"ref"==r?o=t[r]:a[r]=t[r];if(arguments.length>2&&(a.children=arguments.length>3?m.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(r in e.defaultProps)void 0===a[r]&&(a[r]=e.defaultProps[r]);return N(e,a,i,o,null)}function N(e,t,n,i,o){var r={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++g:o,__i:-1,__u:0};return null==o&&null!=f.vnode&&f.vnode(r),r}function j(e){return e.children}function z(e,t){this.props=e,this.context=t}function O(e,t){if(null==t)return e.__?O(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?O(e):null}function R(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return R(e)}}function $(e){(!e.__d&&(e.__d=!0)&&b.push(e)&&!B.__r++||v!=f.debounceRendering)&&((v=f.debounceRendering)||y)(B)}function B(){for(var e,t,n,i,o,r,a,l=1;b.length;)b.length>l&&b.sort(x),e=b.shift(),l=b.length,e.__d&&(n=void 0,i=void 0,o=(i=(t=e).__v).__e,r=[],a=[],t.__P&&((n=E({},i)).__v=i.__v+1,f.vnode&&f.vnode(n),V(t.__P,n,i,t.__n,t.__P.namespaceURI,32&i.__u?[o]:null,r,null==o?O(i):o,!!(32&i.__u),a),n.__v=i.__v,n.__.__k[n.__i]=n,G(r,n,a),i.__e=i.__=null,n.__e!=o&&R(n)));B.__r=0}function F(e,t,n,i,o,r,a,l,s,d,c){var u,p,h,m,f,g,b,v=i&&i.__k||M,y=t.length;for(s=function(e,t,n,i,o){var r,a,l,s,d,c=n.length,u=c,p=0;for(e.__k=new Array(o),r=0;r<o;r++)null!=(a=t[r])&&"boolean"!=typeof a&&"function"!=typeof a?(s=r+p,(a=e.__k[r]="string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?N(null,a,null,null,null):T(a)?N(j,{children:a},null,null,null):null==a.constructor&&a.__b>0?N(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,l=null,-1!=(d=a.__i=W(a,n,s,u))&&(u--,(l=n[d])&&(l.__u|=2)),null==l||null==l.__v?(-1==d&&(o>c?p--:o<c&&p++),"function"!=typeof a.type&&(a.__u|=4)):d!=s&&(d==s-1?p--:d==s+1?p++:(d>s?p--:p++,a.__u|=4))):e.__k[r]=null;if(u)for(r=0;r<c;r++)null!=(l=n[r])&&!(2&l.__u)&&(l.__e==i&&(i=O(l)),Q(l,l));return i}(n,t,v,s,y),u=0;u<y;u++)null!=(h=n.__k[u])&&(p=-1==h.__i?S:v[h.__i]||S,h.__i=u,g=V(e,h,p,o,r,a,l,s,d,c),m=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&K(p.ref,null,h),c.push(h.ref,h.__c||m,h)),null==f&&null!=m&&(f=m),(b=!!(4&h.__u))||p.__k===h.__k?s=D(h,s,e,b):"function"==typeof h.type&&void 0!==g?s=g:m&&(s=m.nextSibling),h.__u&=-7);return n.__e=f,s}function D(e,t,n,i){var o,r;if("function"==typeof e.type){for(o=e.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=e,t=D(o[r],t,n,i));return t}e.__e!=t&&(i&&(t&&e.type&&!t.parentNode&&(t=O(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function H(e,t){return t=t||[],null==e||"boolean"==typeof e||(T(e)?e.some(function(e){H(e,t)}):t.push(e)),t}function W(e,t,n,i){var o,r,a,l=e.key,s=e.type,d=t[n],c=null!=d&&!(2&d.__u);if(null===d&&null==e.key||c&&l==d.key&&s==d.type)return n;if(i>(c?1:0))for(o=n-1,r=n+1;o>=0||r<t.length;)if(null!=(d=t[a=o>=0?o--:r++])&&!(2&d.__u)&&l==d.key&&s==d.type)return a;return-1}function U(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||A.test(t)?n:n+"px"}function Z(e,t,n,i,o){var r,a;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||U(e.style,t,"");if(n)for(t in n)i&&n[t]==i[t]||U(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])r=t!=(t=t.replace(w,"$1")),a=t.toLowerCase(),t=a in e||"onFocusOut"==t||"onFocusIn"==t?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?i?n.u=i.u:(n.u=k,e.addEventListener(t,r?_:C,r)):e.removeEventListener(t,r?_:C,r);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function q(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=k++;else if(t.t<n.u)return;return n(f.event?f.event(t):t)}}}function V(e,t,n,i,o,r,a,l,s,d){var c,u,p,h,m,g,b,v,y,x,w,k,C,_,I,S,M,A=t.type;if(null!=t.constructor)return null;128&n.__u&&(s=!!(32&n.__u),r=[l=t.__e=n.__e]),(c=f.__b)&&c(t);e:if("function"==typeof A)try{if(v=t.props,y="prototype"in A&&A.prototype.render,x=(c=A.contextType)&&i[c.__c],w=c?x?x.props.value:c.__:i,n.__c?b=(u=t.__c=n.__c).__=u.__E:(y?t.__c=u=new A(v,w):(t.__c=u=new z(v,w),u.constructor=A,u.render=ee),x&&x.sub(u),u.props=v,u.state||(u.state={}),u.context=w,u.__n=i,p=u.__d=!0,u.__h=[],u._sb=[]),y&&null==u.__s&&(u.__s=u.state),y&&null!=A.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=E({},u.__s)),E(u.__s,A.getDerivedStateFromProps(v,u.__s))),h=u.props,m=u.state,u.__v=t,p)y&&null==A.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),y&&null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(y&&null==A.getDerivedStateFromProps&&v!==h&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(v,w),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(v,u.__s,w)||t.__v==n.__v){for(t.__v!=n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),k=0;k<u._sb.length;k++)u.__h.push(u._sb[k]);u._sb=[],u.__h.length&&a.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(v,u.__s,w),y&&null!=u.componentDidUpdate&&u.__h.push(function(){u.componentDidUpdate(h,m,g)})}if(u.context=w,u.props=v,u.__P=e,u.__e=!1,C=f.__r,_=0,y){for(u.state=u.__s,u.__d=!1,C&&C(t),c=u.render(u.props,u.state,u.context),I=0;I<u._sb.length;I++)u.__h.push(u._sb[I]);u._sb=[]}else do{u.__d=!1,C&&C(t),c=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++_<25);u.state=u.__s,null!=u.getChildContext&&(i=E(E({},i),u.getChildContext())),y&&!p&&null!=u.getSnapshotBeforeUpdate&&(g=u.getSnapshotBeforeUpdate(h,m)),S=c,null!=c&&c.type===j&&null==c.key&&(S=J(c.props.children)),l=F(e,T(S)?S:[S],t,n,i,o,r,a,l,s,d),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),b&&(u.__E=u.__=null)}catch(e){if(t.__v=null,s||null!=r)if(e.then){for(t.__u|=s?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;r[r.indexOf(l)]=null,t.__e=l}else{for(M=r.length;M--;)P(r[M]);Y(t)}else t.__e=n.__e,t.__k=n.__k,e.then||Y(t);f.__e(e,t,n)}else null==r&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):l=t.__e=X(n.__e,t,n,i,o,r,a,s,d);return(c=f.diffed)&&c(t),128&t.__u?void 0:l}function Y(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(Y)}function G(e,t,n){for(var i=0;i<n.length;i++)K(n[i],n[++i],n[++i]);f.__c&&f.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){f.__e(e,t.__v)}})}function J(e){return"object"!=typeof e||null==e||e.__b&&e.__b>0?e:T(e)?e.map(J):E({},e)}function X(e,t,n,i,o,r,a,l,s){var d,c,u,p,h,g,b,v=n.props,y=t.props,x=t.type;if("svg"==x?o="http://www.w3.org/2000/svg":"math"==x?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=r)for(d=0;d<r.length;d++)if((h=r[d])&&"setAttribute"in h==!!x&&(x?h.localName==x:3==h.nodeType)){e=h,r[d]=null;break}if(null==e){if(null==x)return document.createTextNode(y);e=document.createElementNS(o,x,y.is&&y),l&&(f.__m&&f.__m(t,r),l=!1),r=null}if(null==x)v===y||l&&e.data==y||(e.data=y);else{if(r=r&&m.call(e.childNodes),v=n.props||S,!l&&null!=r)for(v={},d=0;d<e.attributes.length;d++)v[(h=e.attributes[d]).name]=h.value;for(d in v)if(h=v[d],"children"==d);else if("dangerouslySetInnerHTML"==d)u=h;else if(!(d in y)){if("value"==d&&"defaultValue"in y||"checked"==d&&"defaultChecked"in y)continue;Z(e,d,null,h,o)}for(d in y)h=y[d],"children"==d?p=h:"dangerouslySetInnerHTML"==d?c=h:"value"==d?g=h:"checked"==d?b=h:l&&"function"!=typeof h||v[d]===h||Z(e,d,h,v[d],o);if(c)l||u&&(c.__html==u.__html||c.__html==e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(u&&(e.innerHTML=""),F("template"==t.type?e.content:e,T(p)?p:[p],t,n,i,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,r,a,r?r[0]:n.__k&&O(n,0),l,s),null!=r)for(d=r.length;d--;)P(r[d]);l||(d="value","progress"==x&&null==g?e.removeAttribute("value"):null!=g&&(g!==e[d]||"progress"==x&&!g||"option"==x&&g!=v[d])&&Z(e,d,g,v[d],o),d="checked",null!=b&&b!=e[d]&&Z(e,d,b,v[d],o))}return e}function K(e,t,n){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==t||(e.__u=e(t))}else e.current=t}catch(e){f.__e(e,n)}}function Q(e,t,n){var i,o;if(f.unmount&&f.unmount(e),(i=e.ref)&&(i.current&&i.current!=e.__e||K(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){f.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&Q(i[o],t,n||"function"!=typeof e.type);n||P(e.__e),e.__c=e.__=e.__e=void 0}function ee(e,t,n){return this.constructor(e,n)}function te(e,t,n){var i,o,r,a;t==document&&(t=document.documentElement),f.__&&f.__(e,t),o=(i="function"==typeof n)?null:n&&n.__k||t.__k,r=[],a=[],V(t,e=(!i&&n||t).__k=L(j,null,[e]),o||S,S,t.namespaceURI,!i&&n?[n]:o?null:t.firstChild?m.call(t.childNodes):null,r,!i&&n?n:o?o.__e:t.firstChild,i,a),G(r,e,a)}m=M.slice,f={__e:function(e,t,n,i){for(var o,r,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,i||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},g=0,z.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=E({},this.state),"function"==typeof e&&(e=e(E({},n),this.props)),e&&E(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),$(this))},z.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),$(this))},z.prototype.render=j,b=[],y="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,x=function(e,t){return e.__v.__b-t.__v.__b},B.__r=0,w=/(PointerCapture)$|Capture$/i,k=0,C=q(!1),_=q(!0),I=0;var ne=0;function ie(e,t,n,i,o,r){t||(t={});var a,l,s=t;if("ref"in s)for(l in s={},t)"ref"==l?a=t[l]:s[l]=t[l];var d={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--ne,__i:-1,__u:0,__source:o,__self:r};if("function"==typeof e&&(a=e.defaultProps))for(l in a)void 0===s[l]&&(s[l]=a[l]);return f.vnode&&f.vnode(d),d}var oe,re,ae,le,se=0,de=[],ce=f,ue=ce.__b,pe=ce.__r,he=ce.diffed,me=ce.__c,fe=ce.unmount,ge=ce.__;function be(e,t){ce.__h&&ce.__h(re,e,se||t),se=0;var n=re.__H||(re.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ve(e){return se=1,function(e,t){var n=be(oe++,2);if(n.t=e,!n.__c&&(n.__=[Te(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],i=n.t(t,e);t!==i&&(n.__N=[i,n.__[1]],n.__c.setState({}))}],n.__c=re,!re.__f)){var i=function(e,t,i){if(!n.__c.__H)return!0;var r=n.__c.__H.__.filter(function(e){return!!e.__c});if(r.every(function(e){return!e.__N}))return!o||o.call(this,e,t,i);var a=n.__c.props!==e;return r.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),o&&o.call(this,e,t,i)||a};re.__f=!0;var o=re.shouldComponentUpdate,r=re.componentWillUpdate;re.componentWillUpdate=function(e,t,n){if(this.__e){var a=o;o=void 0,i(e,t,n),o=a}r&&r.call(this,e,t,n)},re.shouldComponentUpdate=i}return n.__N||n.__}(Te,e)}function ye(e,t){var n=be(oe++,3);!ce.__s&&Ae(n.__H,t)&&(n.__=e,n.u=t,re.__H.__h.push(n))}function xe(e){return se=5,we(function(){return{current:e}},[])}function we(e,t){var n=be(oe++,7);return Ae(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ke(e,t){return se=8,we(function(){return e},t)}function Ce(){for(var e;e=de.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Se),e.__H.__h.forEach(Me),e.__H.__h=[]}catch(t){e.__H.__h=[],ce.__e(t,e.__v)}}ce.__b=function(e){re=null,ue&&ue(e)},ce.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ge&&ge(e,t)},ce.__r=function(e){pe&&pe(e),oe=0;var t=(re=e.__c).__H;t&&(ae===re?(t.__h=[],re.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(Se),t.__h.forEach(Me),t.__h=[],oe=0)),ae=re},ce.diffed=function(e){he&&he(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==de.push(t)&&le===ce.requestAnimationFrame||((le=ce.requestAnimationFrame)||Ie)(Ce)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),ae=re=null},ce.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Se),e.__h=e.__h.filter(function(e){return!e.__||Me(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],ce.__e(n,e.__v)}}),me&&me(e,t)},ce.unmount=function(e){fe&&fe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Se(e)}catch(e){t=e}}),n.__H=void 0,t&&ce.__e(t,n.__v))};var _e="function"==typeof requestAnimationFrame;function Ie(e){var t,n=function(){clearTimeout(i),_e&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,35);_e&&(t=requestAnimationFrame(n))}function Se(e){var t=re,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),re=t}function Me(e){var t=re;e.__c=e.__(),re=t}function Ae(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Te(e,t){return"function"==typeof t?t(e):t}function Ee(e,t,n,i,o){if(!o?.copy)return i;const r=`${e}.${t}.${n}`;return o.copy[r]??i}const Pe={x:50,y:50};function Le(e,t,n,i,o){const r=`${e}.${t}.${n}`,a=o?.responsiveAssets?.[r],l=o?.assets?.[r],s=a?.src??l??i.src,d=a?.srcMobile??i.srcMobile??s,c=a?.focalPoint??i.focalPoint??Pe,u=a?.focalPointMobile??i.focalPointMobile??c,p=a?.type??i.type??"image",h=a?.poster??i.poster,m=a?.posterMobile??i.posterMobile,f=i.showAudioToggle;return{src:s,srcMobile:d,focalPoint:c,focalPointMobile:u,type:p,poster:h,posterMobile:m,showAudioToggle:!0===f||"true"===f||void 0}}const Ne=function(){function e(t){var n,i;return this.getChildContext||(n=new Set,(i={})[e.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__e=!0,$(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),t.children}return e.__c="__cC"+I++,e.__={isPreviewMode:!1},e.Provider=e.__l=(e.Consumer=function(e,t){return e.children(t)}).contextType=e,e}();function je(){return function(e){var t=re.context[e.__c],n=be(oe++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(re)),t.props.value):e.__}(Ne)}const ze=Ne.Provider;function Oe({sectionId:e,field:t,value:n,as:i="span",class:o,style:r}){const{isPreviewMode:a,readOnly:l,notifyTextChanged:s}=je(),[d,c]=ve(!1),[u,p]=ve(n),h=xe(null),m=xe(null);if(ye(()=>{d||(m.current===n&&(m.current=null),m.current||(p(n),h.current&&(h.current.textContent=n)))},[n,d]),!a||l)return ie(i,{class:o,style:r,children:n});const f={...r,cursor:d?"text":"pointer",outline:d?"2px solid #3b82f6":"none",outlineOffset:"2px",borderRadius:"3px",transition:"all 0.15s cubic-bezier(0.4, 0, 0.2, 1)",position:"relative",...d?{}:{boxShadow:"inset 0 0 0 1px rgba(59, 130, 246, 0)"}};return ie(i,{ref:h,class:`${o||""} ${d?"":"pb-editable-hover"}`.trim(),style:f,contentEditable:d,onClick:e=>{d?e.stopPropagation():(e.stopPropagation(),c(!0),setTimeout(()=>{if(h.current){h.current.focus();const e=document.createRange();e.selectNodeContents(h.current);const t=window.getSelection();t?.removeAllRanges(),t?.addRange(e)}},0))},onBlur:()=>{const i=h.current?.textContent||"",o=""===i.trim()?n:i;""===i.trim()&&h.current&&(h.current.textContent=n),p(o),o!==n&&s&&(m.current=o,s(e,t,n,o)),c(!1)},onKeyDown:e=>{"Escape"===e.key?(e.preventDefault(),e.stopPropagation(),h.current&&(h.current.textContent=n),p(n),m.current=null,h.current?.blur()):"Enter"!==e.key||e.shiftKey||(e.preventDefault(),h.current?.blur())},"data-editable-text":"true",title:d?"Press Enter to save, Esc to cancel":"Click to edit",children:u})}function Re(e){if(!e)return!1;if(e.includes("cdn.shopify.com/videos/"))return!0;const t=e.toLowerCase();return t.endsWith(".mp4")||t.endsWith(".webm")||t.endsWith(".mov")}function $e(e,t){if(!e||!e.includes("cdn.shopify.com"))return e;const n=e.includes("?")?"&":"?";return`${e}${n}width=${t}`}const Be=[640,960,1280,1920];function Fe(e,t){if(!e||!e.includes("cdn.shopify.com"))return;const n=Be.filter(e=>e<=t);return n.includes(t)||n.push(t),n.map(t=>`${$e(e,t)} ${t}w`).join(", ")}const De='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z"/><line x1="22" y1="9" x2="16" y2="15"/><line x1="16" y1="9" x2="22" y2="15"/></svg>',He='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z"/><path d="M16 9a5 5 0 0 1 0 6"/><path d="M19.364 18.364a9 9 0 0 0 0-12.728"/></svg>',We={backgroundColor:"rgba(0, 0, 0, 0.6)",borderRadius:"9999px",padding:"8px",backdropFilter:"blur(10px)",cursor:"pointer",transition:"all 0.15s ease",display:"flex",alignItems:"center",gap:"4px",position:"relative",pointerEvents:"auto"};function Ue({sectionId:e,field:t,src:n,alt:i,class:o,style:r,srcMobile:a,focalPoint:l,focalPointMobile:s,maxWidth:d,maxWidthMobile:c,sizes:u,mediaType:p,poster:h,posterMobile:m,allowAudioToggle:f,showAudioToggle:g,objectFit:b,allowObjectFitToggle:v,hideFocalPoint:y,autoPlay:x=!0}){const{isPreviewMode:w,readOnly:k,requestImageEdit:C,selectedSectionId:_,onSectionClick:I,uploadingField:S,viewport:M,generatingFields:A,requestImageRegenerate:T,requestImagePrompt:E,requestCancelGeneration:P,notifyColorChanged:L}=je(),N=S?.sectionId===e&&S?.field===t,z=t.replace(/^(\w+)\.(\d+)\.(src|image)$/,"$1[$2]"),O=`${e}:${z}`,R=A?.has(O)??!1,$=d?$e(n,d):n,B=c??d,F=a&&B?$e(a,B):a,D=d?Fe(n,d):void 0,H=a&&B?Fe(a,B):void 0,W="mobile"===M,U=W&&F?F:$,Z=W?s??l??{x:50,y:50}:l??{x:50,y:50},q=`${Z.x}% ${Z.y}%`,V=b||"cover",Y={...r,objectPosition:q},G="video"===p||void 0===p&&Re(n),J=xe(null);ye(()=>{if(!G||x)return;const e=J.current;e&&!e.paused&&e.pause()},[G,x]),ye(()=>{if(!G||!x)return;const e=J.current;if(!e)return;const t=new IntersectionObserver(([t])=>{t.isIntersecting?e.play().catch(()=>{}):e.pause()},{threshold:.25});return t.observe(e),()=>t.disconnect()},[G,x,n]);const[X,K]=ve(!0);if(!w||k){if(G){const e=h||"",t=l??{x:50,y:50};return!0===g?ie("div",{style:{position:"relative",width:"100%",height:"100%"},children:[ie("video",{ref:J,autoplay:x,muted:X,loop:!0,playsinline:!0,poster:e,class:o||"",style:{...r,width:"100%",height:"100%",objectFit:"cover",objectPosition:`${t.x}% ${t.y}%`},children:ie("source",{src:n})}),ie("button",{type:"button",onClick:()=>{const e=J.current;e&&(e.muted=!e.muted,K(e.muted))},style:{position:"absolute",bottom:"12px",left:"12px",width:"36px",height:"36px",borderRadius:"9999px",backgroundColor:"rgba(0, 0, 0, 0.5)",backdropFilter:"blur(8px)",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:"white",zIndex:15,transition:"background-color 0.15s ease",padding:0},"aria-label":X?"Unmute video":"Mute video",children:ie("span",{dangerouslySetInnerHTML:{__html:X?De:He},style:{display:"flex"}})})]}):ie("video",{ref:J,autoplay:x,muted:!0,loop:!0,playsinline:!0,poster:e,class:o||"",style:{...r,width:"100%",height:"100%",objectFit:V,objectPosition:`${t.x}% ${t.y}%`},children:ie("source",{src:n})})}if(!a&&!s)return ie("img",{src:$,srcset:D,sizes:u,alt:i,class:o||"",style:{...r,objectPosition:`${l?.x??50}% ${l?.y??50}%`,objectFit:V}});const e=F??$;return ie(j,{children:[ie("img",{src:$,srcset:D,sizes:u,alt:i,class:`${o||""} pb-img-desktop`,style:{...r,objectPosition:`${l?.x??50}% ${l?.y??50}%`,objectFit:V}}),ie("img",a&&a!==n?{src:e,srcset:H,sizes:u,alt:i,class:`${o||""} pb-img-mobile`,style:{...r,objectPosition:`${s?.x??l?.x??50}% ${s?.y??l?.y??50}%`,objectFit:V}}:{src:c?$e(n,c):$,srcset:B?Fe(n,B):D,sizes:u,alt:i,class:`${o||""} pb-img-mobile`,style:{...r,objectPosition:`${s?.x??l?.x??50}% ${s?.y??l?.y??50}%`,objectFit:V}})]})}const Q=_===e,ee="auto"===r?.width||"auto"===r?.height;return ie("div",{class:"pb-editable-image-wrapper",style:{..."absolute"===r?.position?{position:"absolute",top:0,left:0,right:0,bottom:0}:{position:"relative",display:ee?"inline-block":"block",width:ee?"auto":"100%",height:ee?"auto":"100%"},cursor:N||R?void 0:"pointer"},onClick:N||R?void 0:i=>{i.preventDefault(),Q?(i.stopPropagation(),C?.(e,t,n,{mode:"picker"})):I?.(e)},children:[G?ie("video",{ref:J,autoplay:x,muted:!0,loop:!0,playsinline:!0,poster:W?m||h||"":h||"",class:o,style:{...r,width:"100%",height:"100%",objectFit:V,objectPosition:q},children:ie("source",{src:U})},U):ie("img",{src:U||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",alt:i,class:o,style:{...Y,backgroundColor:!U||U.includes("placehold.co")?"#e5e7eb":void 0,...R&&U?.startsWith("data:image/")&&U.length>100?{filter:"blur(6px)",transition:"filter 0.3s ease"}:{transition:"filter 0.3s ease"},objectFit:V}}),ie("div",{class:"pb-image-overlay "+(N||R?"pb-show":""),style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"flex-end",justifyContent:"flex-end",padding:"8px",gap:"4px",pointerEvents:"none",transition:"opacity 0.2s ease",zIndex:15},children:N?ie("div",{style:{backgroundColor:"rgba(0, 0, 0, 0.6)",borderRadius:"9999px",padding:"12px",backdropFilter:"blur(10px)"},class:"pb-spinner-container",children:ie("span",{dangerouslySetInnerHTML:{__html:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12a9 9 0 1 1-6.219-8.56"/></svg>'},style:{display:"flex",color:"white"},class:"pb-spinner"})}):R?ie("div",{style:{backgroundColor:"rgba(0, 0, 0, 0.6)",borderRadius:"9999px",padding:"10px 14px 10px 10px",backdropFilter:"blur(10px)",display:"flex",alignItems:"center",gap:"6px",cursor:"pointer",pointerEvents:"auto"},class:"pb-generating-btn",onClick:n=>{n.stopPropagation();const i=n.currentTarget.closest(".pb-image-overlay");if(i){i.classList.remove("pb-show");const e=i.parentElement?.querySelector("img");e&&(e.style.filter="")}P?.(e,t)},children:[ie("span",{dangerouslySetInnerHTML:{__html:'<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12a9 9 0 1 1-6.219-8.56"/></svg>'},style:{display:"flex",color:"white"},class:"pb-spinner pb-gen-spinner"}),ie("span",{dangerouslySetInnerHTML:{__html:'<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>'},style:{display:"none",color:"rgba(255,255,255,0.9)"},class:"pb-gen-cancel"}),ie("span",{style:{color:"white",fontSize:"12px",fontWeight:"500",whiteSpace:"nowrap"},children:"Generating"})]}):ie(j,{children:[G&&f&&ie("div",{style:{...We,backgroundColor:g?"rgba(59, 130, 246, 0.8)":"rgba(0, 0, 0, 0.6)"},class:"pb-edit-btn pb-imggen-btn pb-tooltip-trigger","data-tooltip":g?"Audio enabled":"Enable audio",onClick:n=>{n.preventDefault(),n.stopPropagation(),Q||I?.(e);const i=g?"false":"true";L?.(e,`${t}.showAudioToggle`,i)},children:ie("span",{dangerouslySetInnerHTML:{__html:g?He:De},style:{display:"flex",color:"white"}})}),v&&ie("div",{style:We,class:"pb-edit-btn pb-imggen-btn pb-tooltip-trigger","data-tooltip":"contain"===b?"Crop to fill":"Fit to frame",onClick:n=>{n.preventDefault(),n.stopPropagation(),Q||I?.(e);const i="contain"===b?"cover":"contain";L?.(e,`${t}.objectFit`,i)},children:ie("span",{dangerouslySetInnerHTML:{__html:"contain"===b?'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" y1="3" x2="14" y2="10"/><line x1="3" y1="21" x2="10" y2="14"/></svg>':'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 14 10 14 10 20"/><polyline points="20 10 14 10 14 4"/><line x1="14" y1="10" x2="21" y2="3"/><line x1="3" y1="21" x2="10" y2="14"/></svg>'},style:{display:"flex",color:"white"}})}),!y&&ie("div",{style:We,class:"pb-edit-btn pb-imggen-btn pb-tooltip-trigger","data-tooltip":"Focal point",onClick:i=>{i.preventDefault(),i.stopPropagation(),Q||I?.(e),C?.(e,t,n,{mode:"focal"})},children:ie("span",{dangerouslySetInnerHTML:{__html:'<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="6"/><circle cx="12" cy="12" r="2"/></svg>'},style:{display:"flex",color:"white"}})}),ie("div",{style:We,class:"pb-edit-btn pb-imggen-btn pb-tooltip-trigger","data-tooltip":"Media",onClick:i=>{i.preventDefault(),i.stopPropagation(),Q||I?.(e),C?.(e,t,n,{mode:"picker"})},children:ie("span",{dangerouslySetInnerHTML:{__html:G?'<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.934a.5.5 0 0 0-.777-.416L16 11"/><rect x="2" y="6" width="14" height="12" rx="2"/></svg>':'<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/></svg>'},style:{display:"flex",color:"white"}})})]})})]})}function Ze(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ze(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function qe(){const e=document.getElementById("playbook-hero")||document.getElementById("playbook-template");if(!e)return;const t=function(){let e=0;return["header","nav",'[role="banner"]','[role="navigation"]',".header","#header",".site-header",".main-header",".sticky-header",".fixed-header",".shopify-section-header",".announcement-bar",".announcement",".promo-bar",".top-bar","#shopify-section-announcement-bar","#shopify-section-header",".header-wrapper","[data-header]","[data-sticky-header]"].forEach(t=>{try{document.querySelectorAll(t).forEach(t=>{const n=window.getComputedStyle(t).position;if("fixed"===n||"sticky"===n){const n=t.getBoundingClientRect();n.top>=-5&&n.top<=50&&n.height>0&&n.width>0&&(e=Math.max(e,n.bottom))}})}catch{}}),e}(),n=e.shadowRoot;if(n){const e=n.querySelector("div");if(e){const n=e.firstElementChild;if(n){const e=n.getBoundingClientRect().bottom+window.scrollY;return void window.scrollTo({top:e-t,behavior:"smooth"})}}}const i=e.getBoundingClientRect().bottom+window.scrollY;window.scrollTo({top:i-t,behavior:"smooth"})}const Ve={primary:"var(--brand-primary, #00a47c)",secondary:"var(--brand-secondary, #f1f5f9)",accent1:"var(--brand-accent1, #0f172a)",accent2:"var(--brand-accent2, #64748b)",black:"#000000",white:"#FFFFFF",yellow:"#FFD700"};function Ye(e){if(e)return Ve[e]?Ve[e]:e}function Ge(e){try{const t=e.replace("#","");if(6!==t.length)return"#000000";const n=parseInt(t.substr(0,2),16),i=parseInt(t.substr(2,2),16);return(.299*n+.587*i+.114*parseInt(t.substr(4,2),16))/255>.5?"#000000":"#FFFFFF"}catch(e){return"#000000"}}function Je(e,t){if(!e)return"#FFFFFF";if("black"===e)return"#000000";if("white"===e)return"#FFFFFF";if("yellow"===e)return"#FFD700";if(t){if("primary"===e&&t.primary)return t.primary;if("secondary"===e&&t.secondary)return t.secondary;if("accent1"===e&&t.accent1)return t.accent1;if("accent2"===e&&t.accent2)return t.accent2;if(("accent1"===e||"accent2"===e)&&t.primary)return t.primary}return e}function Xe(e,t){return e?{backgroundColor:Ye(e)||"transparent",color:Ke(e,t)}:{backgroundColor:"transparent",color:"#000000"}}function Ke(e,t){if(!e)return"#FFFFFF";if("black"===e)return"#FFFFFF";if("white"===e)return"#000000";if("yellow"===e)return"#000000";if(t){let n;if("primary"===e?n=t.primary:"secondary"===e?n=t.secondary:"accent1"===e?n=t.accent1:"accent2"===e&&(n=t.accent2),n)return Ge(n)}return"string"==typeof e&&e.startsWith("#")?Ge(e):"#FFFFFF"}const Qe={black:"#000000",white:"#FFFFFF",yellow:"#FFD700"};function et({size:e="default",variant:t="default",backgroundColor:n,brandColors:i,class:o,className:r,children:a,asChild:l,onClick:s}){const[d,c]=ve(!1),u={primary:i?.primary,secondary:i?.secondary,accent1:i?.accent1,accent2:i?.accent2},p=n&&u.hasOwnProperty(n),h=n&&Qe[n]?Qe[n]:null,m=n&&"string"==typeof n&&n.startsWith("#"),f=h||(m?n:null),g=!!f,b=p&&!f,v={default:"bg-[var(--brand-primary,#00a47c)]",primary:"bg-[var(--brand-primary,#00a47c)]",secondary:"bg-[var(--brand-secondary,#f1f5f9)]",accent1:"bg-[var(--brand-accent1,#0f172a)]",accent2:"bg-[var(--brand-accent2,#64748b)]",outline:"border-2 border-[var(--brand-primary,#00a47c)] bg-transparent",destructive:"bg-destructive"},y={default:"#00a47c",primary:"#00a47c",secondary:"#f1f5f9",accent1:"#0f172a",accent2:"#64748b",outline:"#00a47c",destructive:"#dc2626"},x=(()=>{if(f)return f;if(p&&n){const e=u[n];if(e)return e}const e=u[t];return e||(y[b?n:t]||y[t]||"#00a47c")})(),w=b?n:t,k=g||(o||r)?.includes("bg-["),C=function(...e){return function(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ze(e))&&(i&&(i+=" "),i+=t);return i}(e)}("inline-flex items-center justify-center leading-5 transition-all duration-200 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{default:"",sm:"",lg:""}[e],k?"":v[w]||v[t],o||r),_={borderRadius:"var(--brand-button-radius, 2px)",textTransform:"var(--brand-button-text-transform, none)",padding:{default:void 0,sm:"8px 16px",lg:"18px 36px"}[e]||"var(--brand-button-padding, 15px 30px)",boxShadow:"var(--brand-button-shadow, none)",borderWidth:"var(--brand-button-border-width, 0px)",borderColor:"var(--brand-button-border-color, transparent)",borderStyle:"var(--brand-button-border-style, solid)",transform:d?"scale(var(--brand-button-hover-scale, 1.02))":"scale(1)",fontSize:{default:void 0,sm:"13px",lg:"17px"}[e]||"var(--brand-button-font-size, 15px)",fontWeight:"var(--brand-button-font-weight, 700)",letterSpacing:"var(--brand-button-letter-spacing, 1.2px)"},I=(()=>{const e={..._},n="outline"===(w||t);if(d){const t=function(e,t=.15){try{const n=e.replace("#","");if(6!==n.length)return e;const i=parseInt(n.substr(0,2),16),o=parseInt(n.substr(2,2),16),r=parseInt(n.substr(4,2),16),a=function(e){try{const t=e.replace("#","");if(6!==t.length)return!0;return(.299*parseInt(t.substr(0,2),16)+.587*parseInt(t.substr(2,2),16)+.114*parseInt(t.substr(4,2),16))/255<.5}catch{return!0}}(e);let l,s,d;return a?(l=Math.round(i+(255-i)*t),s=Math.round(o+(255-o)*t),d=Math.round(r+(255-r)*t)):(l=Math.round(i*(1-t)),s=Math.round(o*(1-t)),d=Math.round(r*(1-t))),`#${l.toString(16).padStart(2,"0")}${s.toString(16).padStart(2,"0")}${d.toString(16).padStart(2,"0")}`}catch{return e}}(x);e.backgroundColor=`var(--brand-button-hover-bg, ${t})`;const n=Ge(t);e.color=`var(--brand-button-hover-text, ${n})`}else f?(e.backgroundColor=f,e.color=Ge(f)):k||(e.color=n?`var(--brand-primary, ${x})`:Ge(x));return e})();return l&&"object"==typeof a&&a&&"type"in a?a:ie("button",{class:C,style:I,onClick:s,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:a})}function tt({brandColors:e,currentColor:t,onSelect:n,excludeColor:i,inline:o=!1,includeYellow:r=!1,backgroundColors:a}){const l=[],s=[],d=new Set,c=t=>{if(t)return"black"===t.toLowerCase()?"#000000":"white"===t.toLowerCase()?"#FFFFFF":"yellow"===t.toLowerCase()?"#FFD700":"primary"===t&&e.primary?e.primary:"secondary"===t&&e.secondary?e.secondary:"accent1"===t&&e.accent1?e.accent1:"accent2"===t&&e.accent2?e.accent2:t},u=c(i)?.toUpperCase(),p=(e,t,n,i)=>{const o=n.toUpperCase();d.has(o)||o===u||(e.push({key:t,hex:n,label:i}),d.add(o))};if(a&&a.length>0)for(const e of a){const t=e.toUpperCase();"#FFFFFF"!==t&&"#000000"!==t&&p(l,e,e,e)}p(l,"white","#FFFFFF","White"),p(l,"black","#000000","Black"),e.primary&&p(s,"primary",e.primary,"Primary"),e.secondary&&p(s,"secondary",e.secondary,"Secondary"),e.accent1&&p(s,"accent1",e.accent1,"Accent 1"),e.accent2&&p(s,"accent2",e.accent2,"Accent 2"),r&&p(s,"yellow","#FFD700","Yellow");const h=a&&a.length>0&&s.length>0,m=({key:e,hex:i,label:o})=>{const r=c(t)?.toUpperCase(),a=t===e||t===i||!!r&&r===i.toUpperCase();return ie("button",{onClick:t=>{t.stopPropagation(),n(e)},style:{width:"28px",height:"28px",backgroundColor:i,border:a?"2px solid #3b82f6":"1px solid rgba(0,0,0,0.15)",borderRadius:"6px",cursor:"pointer",transition:"all 0.15s ease",boxShadow:a?"0 0 0 2px rgba(59, 130, 246, 0.2)":"none"},onMouseEnter:e=>{a||(e.currentTarget.style.transform="scale(1.1)")},onMouseLeave:e=>{e.currentTarget.style.transform="scale(1)"},title:o},e)};return ie("div",{style:{...o?{}:{position:"absolute",bottom:"-40px",left:"10px",zIndex:10002,animation:"fadeSlideUp 0.2s ease-out"},display:"flex",alignItems:"center",gap:"4px"},onClick:e=>e.stopPropagation(),children:[l.map(m),h&&ie("div",{style:{width:"1px",height:"20px",backgroundColor:"rgba(0,0,0,0.15)",marginLeft:"2px",marginRight:"2px",flexShrink:0}}),s.map(m)]})}function nt({sectionId:e,elementId:t,elementType:n,label:i,children:o,currentColor:r,sectionBackgroundColor:a,onColorChange:l,onRemove:s,brandColors:d,backgroundColors:c,supportsColorPicker:u=!1,includeYellow:p=!1,currentUrl:h,onUrlClick:m,addZoneAbove:f,addZoneBelow:g}){const{isPreviewMode:b,readOnly:v,selectedSectionId:y,selectedElementId:x,onElementClick:w}=je(),k=xe(null);if(!b||v)return ie(j,{children:o});const C=y===e&&x===t;return ie("div",{ref:k,className:"pb-el-wrap",style:{position:"relative",display:"inline-flex",width:"fit-content",cursor:C?"default":"pointer"},onClick:n=>{C||(n.preventDefault(),n.stopPropagation(),w?.(e,t))},children:[ie("div",{className:"pb-el-border",style:{position:"absolute",inset:"0",borderRadius:"6px",pointerEvents:"none",zIndex:9998,boxSizing:"border-box",border:C?"4px solid transparent":"2px solid transparent",background:"linear-gradient(180deg, #fbcfe8, #818cf8) border-box",WebkitMask:"linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0)",WebkitMaskComposite:"xor",maskComposite:"exclude",...C?{opacity:1}:{}}}),C&&ie("div",{style:{position:"absolute",top:"-36px",left:"0",zIndex:9999,display:"flex",alignItems:"center",gap:"4px",fontFamily:"Inter, system-ui, -apple-system, sans-serif",animation:"fadeSlideDown 0.2s ease-out"},children:[ie("button",{type:"button",style:{position:"relative",display:"flex",alignItems:"center",gap:"6px",backgroundColor:"#f2f4f7",borderRadius:"6px",padding:"4px 6px",fontSize:"14px",fontWeight:500,color:"#141c25",cursor:"pointer",transition:"background-color 0.15s ease",border:"none"},onClick:t=>{t.preventDefault(),t.stopPropagation(),w?.(e,"")},children:i}),m&&ie("button",{type:"button",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"28px",height:"28px",backgroundColor:h&&""!==h&&"#"!==h?"#818cf8":"#f2f4f7",borderRadius:"6px",border:"none",cursor:"pointer",transition:"background-color 0.15s ease"},onClick:e=>{e.preventDefault(),e.stopPropagation(),m()},title:"Edit link",children:ie("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ie("path",{d:"M10 13C10.4295 13.5741 10.9774 14.0491 11.6066 14.3929C12.2357 14.7367 12.9315 14.9411 13.6467 14.9923C14.3618 15.0435 15.0796 14.9403 15.7513 14.6897C16.4231 14.4392 17.0331 14.047 17.54 13.54L20.54 10.54C21.4508 9.59695 21.9548 8.33394 21.9434 7.02296C21.932 5.71198 21.4061 4.45791 20.4791 3.53087C19.5521 2.60383 18.298 2.07799 16.987 2.0666C15.676 2.0552 14.413 2.55918 13.47 3.47L11.75 5.18",stroke:h&&""!==h&&"#"!==h?"white":"#141c25","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),ie("path",{d:"M14 11C13.5705 10.4259 13.0226 9.95083 12.3934 9.60707C11.7642 9.26331 11.0685 9.05889 10.3533 9.00768C9.63816 8.95646 8.92037 9.05965 8.24861 9.31022C7.57685 9.5608 6.96684 9.95303 6.46 10.46L3.46 13.46C2.5492 14.403 2.04522 15.6661 2.0566 16.977C2.06798 18.288 2.59382 19.5421 3.52086 20.4691C4.4479 21.3962 5.70197 21.922 7.01295 21.9334C8.32393 21.9448 9.58694 21.4408 10.53 20.53L12.24 18.82",stroke:h&&""!==h&&"#"!==h?"white":"#141c25","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})})]}),s&&ie("button",{type:"button",className:"pb-el-remove",style:{position:"absolute",top:"-12px",right:"-12px",zIndex:1e4,display:"flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",backgroundColor:"#f2f4f7",borderRadius:"50%",border:"none",cursor:"pointer",transition:"background-color 0.15s ease"},onClick:e=>{e.preventDefault(),e.stopPropagation(),s?.()},children:ie("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ie("path",{d:"M9 3L3 9M3 3L9 9",stroke:"#141c25","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})})}),C&&u&&d&&l&&ie("div",{style:{position:"absolute",top:"100%",marginTop:"8px",left:"0",zIndex:10002,animation:"fadeSlideUp 0.2s ease-out"},children:ie(tt,{brandColors:d,backgroundColors:c,currentColor:r,excludeColor:a,onSelect:l,inline:!0,includeYellow:p})}),f&&ie("div",{className:"pb-el-edge",style:{position:"absolute",top:"-12px",left:"-8px",right:"-8px",height:"20px",zIndex:9998,pointerEvents:"auto"},children:ie("div",{className:"pb-el-edge-btn",style:{position:"absolute",top:"-8px",left:"50%",transform:"translateX(-50%)",display:"flex",alignItems:"center",justifyContent:"center"},children:ie("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),f.onAdd()},style:{display:"flex",alignItems:"center",gap:"4px",backgroundColor:"#818cf8",color:"white",border:"none",borderRadius:"12px",padding:"4px 12px",fontSize:"12px",fontWeight:500,cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease"},children:[ie("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ie("path",{d:"M5 2V8M2 5H8",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})}),"Add ",f.elementLabel]})})}),g&&ie("div",{className:"pb-el-edge",style:{position:"absolute",bottom:"-12px",left:"-8px",right:"-8px",height:"20px",zIndex:9998,pointerEvents:"auto"},children:ie("div",{className:"pb-el-edge-btn",style:{position:"absolute",bottom:"-8px",left:"50%",transform:"translateX(-50%)",display:"flex",alignItems:"center",justifyContent:"center"},children:ie("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),g.onAdd()},style:{display:"flex",alignItems:"center",gap:"4px",backgroundColor:"#818cf8",color:"white",border:"none",borderRadius:"12px",padding:"4px 12px",fontSize:"12px",fontWeight:500,cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease"},children:[ie("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ie("path",{d:"M5 2V8M2 5H8",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})}),"Add ",g.elementLabel]})})}),ie("div",{style:{position:"relative",zIndex:0},children:o})]})}function it({elementId:e,elementLabel:t,children:n,onAdd:i}){return ie("div",{className:"pb-ghost",onClick:e=>{e.preventDefault(),e.stopPropagation(),i()},children:[ie("div",{className:"pb-ghost-overlay",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1e4,display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",backgroundColor:"#818cf8",color:"white",borderRadius:"20px",padding:"8px 16px",fontSize:"14px",fontWeight:500,fontFamily:"Inter, system-ui, -apple-system, sans-serif",pointerEvents:"none",whiteSpace:"nowrap"},children:[ie("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ie("path",{d:"M8 3.5V12.5M3.5 8H12.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})}),"Add ",t]}),ie("div",{style:{pointerEvents:"none"},children:n})]})}function ot({section:e,variantId:t,edits:n,brandColors:i}){const{preheader:o,headline:r,subheadline:a,backgroundImage:l,secondaryMedia:s,alignment:d,primaryCta:c,visibility:u,layout:p="full",backgroundColor:h}=e.content,m="string"==typeof s?{src:s,alt:""}:s,{isPreviewMode:f,readOnly:g,notifyColorChanged:b}=je(),[v,y]=ve(!1),x=Ee(t,e.id,"preheader",o||"Preheader",n),w=Ee(t,e.id,"headline",r||"Add Heading",n),k=Ee(t,e.id,"subheadline",a||"Add subheading here.",n),C=("string"==typeof c?c:c?.text)||"Call to Action",_=Ee(t,e.id,"primaryCta.text",C,n),I=l?.src?Le(t,e.id,"backgroundImage",{src:l.src,srcMobile:l.srcMobile,focalPoint:l.focalPoint,focalPointMobile:l.focalPointMobile,type:l.type,poster:l.poster,posterMobile:l.posterMobile,showAudioToggle:l.showAudioToggle},n):null,S=m?.src||"split-image"===p?Le(t,e.id,"secondaryMedia",{src:m?.src||"",srcMobile:m?.srcMobile,focalPoint:m?.focalPoint,focalPointMobile:m?.focalPointMobile,type:m?.type,poster:m?.poster,posterMobile:m?.posterMobile},n):null,M="true"===u?.preheader||"false"!==u?.preheader&&!!o,A="false"!==u?.headline,T="false"!==u?.subheadline,E="false"!==u?.primaryCta,P=!A&&!T&&!E,L=e=>{f&&!g||(e.preventDefault(),qe())},N=t=>{b?.(e.id,"primaryCta.backgroundColor",t)},z=t=>{b?.(e.id,`visibility.${t}`,"false")},O=t=>{b?.(e.id,`visibility.${t}`,"true")};if("split"===p||"split-image"===p){const t="left"===d,n=Xe(h||"secondary",i),o=Je(h||"secondary",i);return ie(rt,{section:e,textOnLeft:t,splitBgStyles:n,effectiveBackgroundColor:o,backgroundImageData:I,backgroundImage:l,secondaryMediaData:S,secondaryMedia:m,isSplitImage:"split-image"===p,displayPreheader:x,displayHeadline:w,displaySubheadline:k,displayCtaText:_,primaryCta:c,brandColors:i,isPreheaderVisible:M,isHeadlineVisible:A,isSubheadlineVisible:T,isCtaVisible:E,allElementsHidden:P,isPreviewMode:f,isContainerHovered:v,setIsContainerHovered:y,handleCtaClick:L,handleButtonColorChange:N,handleRemoveElement:z,handleAddElement:O})}if("vertical-video"===p)return ie(at,{section:e,backgroundImageData:I,backgroundImage:l,displayPreheader:x,displayHeadline:w,displaySubheadline:k,displayCtaText:_,primaryCta:c,brandColors:i,isPreheaderVisible:M,isHeadlineVisible:A,isSubheadlineVisible:T,isCtaVisible:E,allElementsHidden:P,isPreviewMode:f,isContainerHovered:v,setIsContainerHovered:y,handleCtaClick:L,handleButtonColorChange:N,handleRemoveElement:z,handleAddElement:O});const R="center"===d?"items-center left-4 right-4 md:left-1/2 md:right-auto md:-translate-x-1/2":"right"===d?"items-end left-4 right-4 md:right-20 md:left-auto":"items-start left-4 right-4 md:left-20 md:right-auto",$="center"===d?"items-center text-center":"right"===d?"items-end text-right":"items-start text-left",B=ie("div",{class:"relative w-full h-[620px] md:h-[680px] bg-black overflow-hidden",children:[I&&ie("div",{class:"absolute inset-0",children:[ie(Ue,{sectionId:e.id,field:"backgroundImage",src:I.src,alt:l?.alt||"",class:"w-full h-full object-cover",srcMobile:I.srcMobile,focalPoint:I.focalPoint,focalPointMobile:I.focalPointMobile,maxWidth:1920,maxWidthMobile:1080,sizes:"100vw",mediaType:I.type,poster:I.poster,posterMobile:I.posterMobile}),ie("div",{class:"absolute inset-0 bg-gradient-to-b from-transparent to-black/20 md:bg-black/20 pointer-events-none"})]}),ie("div",{class:`absolute top-1/2 -translate-y-1/2 flex flex-col gap-5 md:gap-6 ${R} md:max-w-[712px]`,style:{zIndex:100},onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:P&&f&&!v?ie("div",{style:{minWidth:"300px",minHeight:"200px"}}):P&&f&&v?ie("div",{class:`flex flex-col gap-5 md:gap-6 ${$} text-white`,children:[ie(it,{elementId:"preheader",elementLabel:"Preheader",onAdd:()=>O("preheader"),children:ie("p",{class:"pb-text-h5",children:x||"Preheader"})}),ie(it,{elementId:"headline",elementLabel:"Heading",onAdd:()=>O("headline"),children:ie("h1",{class:"pb-text-h1 tracking-[-0.72px] md:tracking-[-1.12px]",children:w})}),ie(it,{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>O("subheadline"),children:ie("p",{class:"pb-text-body",children:k})}),ie(it,{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>O("primaryCta"),children:ie("button",{type:"button",class:"inline-flex items-center justify-center uppercase tracking-[1.2px] px-5 py-[15px] rounded-[2px] text-[15px] font-bold leading-5 bg-[var(--brand-primary,#00a47c)] text-white w-fit",style:{pointerEvents:"none"},children:_})})]}):ie(j,{children:[ie("div",{class:`flex flex-col gap-3 ${$} text-white`,children:[M&&ie(nt,{sectionId:e.id,elementId:"preheader",elementType:"text",label:"Preheader",onRemove:()=>z("preheader"),children:ie(Oe,{sectionId:e.id,field:"preheader",value:x,as:"p",class:"pb-text-h5"})}),A&&ie(nt,{sectionId:e.id,elementId:"headline",elementType:"heading",label:"Heading",onRemove:()=>z("headline"),addZoneAbove:M?void 0:{elementId:"preheader",elementLabel:"Preheader",onAdd:()=>O("preheader")},addZoneBelow:T?void 0:{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>O("subheadline")},children:ie(Oe,{sectionId:e.id,field:"headline",value:w,as:"h1",class:"pb-text-h1 tracking-[-0.72px] md:tracking-[-1.12px]"})}),T&&ie(nt,{sectionId:e.id,elementId:"subheadline",elementType:"text",label:"Subheading",onRemove:()=>z("subheadline"),addZoneAbove:A?void 0:{elementId:"headline",elementLabel:"Heading",onAdd:()=>O("headline")},addZoneBelow:E?void 0:{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>O("primaryCta")},children:ie(Oe,{sectionId:e.id,field:"subheadline",value:k,as:"p",class:"pb-text-body"})})]}),E&&ie(nt,{sectionId:e.id,elementId:"primaryCta",elementType:"button",label:"Button",currentColor:c?.backgroundColor,sectionBackgroundColor:void 0,onColorChange:N,onRemove:()=>z("primaryCta"),brandColors:i,supportsColorPicker:!0,addZoneAbove:T?void 0:{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>O("subheadline")},children:ie(et,{variant:c?.variant||"primary",backgroundColor:c?.backgroundColor,brandColors:i,class:"w-fit",onClick:L,children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:_,as:"span"})})})]})})]});if("full"===p)return B;const F=h?Xe(h,i):{backgroundColor:"#ffffff"};if("contained"===p){const t="center"===d?"items-center left-4 right-4 md:left-1/2 md:right-auto md:-translate-x-1/2":"right"===d?"items-end left-4 right-4 md:right-[48px] md:left-auto":"items-start left-4 right-4 md:left-[48px] md:right-auto",n="center"===d?"items-center text-center":"right"===d?"items-end text-right":"items-start text-left";return ie("div",{class:"w-full px-4 pb-[32px] md:px-20 md:pb-[64px]",style:{backgroundColor:F.backgroundColor},children:ie("div",{class:"relative w-full h-[620px] md:h-[540px] bg-black overflow-hidden",children:[I&&ie("div",{class:"absolute inset-0",children:[ie(Ue,{sectionId:e.id,field:"backgroundImage",src:I.src,alt:l?.alt||"",class:"w-full h-full object-cover",srcMobile:I.srcMobile,focalPoint:I.focalPoint,focalPointMobile:I.focalPointMobile,maxWidth:1920,maxWidthMobile:1080,sizes:"100vw",mediaType:I.type,poster:I.poster,posterMobile:I.posterMobile}),ie("div",{class:"absolute inset-0 bg-gradient-to-b from-transparent to-black/50 md:bg-black/20 pointer-events-none"})]}),ie("div",{class:`absolute top-1/2 -translate-y-1/2 flex flex-col gap-5 md:gap-6 ${t} md:max-w-[712px]`,style:{zIndex:100},onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:P&&f&&!v?ie("div",{style:{minWidth:"300px",minHeight:"200px"}}):P&&f&&v?ie("div",{class:`flex flex-col gap-5 md:gap-6 ${n} text-white`,children:[ie(it,{elementId:"preheader",elementLabel:"Preheader",onAdd:()=>O("preheader"),children:ie("p",{class:"pb-text-h5",children:x||"Preheader"})}),ie(it,{elementId:"headline",elementLabel:"Heading",onAdd:()=>O("headline"),children:ie("h1",{class:"pb-text-h1 tracking-[-0.72px] md:tracking-[-1.12px]",children:w})}),ie(it,{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>O("subheadline"),children:ie("p",{class:"pb-text-body",children:k})}),ie(it,{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>O("primaryCta"),children:ie("button",{type:"button",class:"inline-flex items-center justify-center uppercase tracking-[1.2px] px-5 py-[15px] rounded-[2px] text-[15px] font-bold leading-5 bg-[var(--brand-primary,#00a47c)] text-white w-fit",style:{pointerEvents:"none"},children:_})})]}):ie(j,{children:[ie("div",{class:`flex flex-col gap-3 ${n} text-white`,children:[M&&ie(nt,{sectionId:e.id,elementId:"preheader",elementType:"text",label:"Preheader",onRemove:()=>z("preheader"),children:ie(Oe,{sectionId:e.id,field:"preheader",value:x,as:"p",class:"pb-text-h5"})}),A&&ie(nt,{sectionId:e.id,elementId:"headline",elementType:"heading",label:"Heading",onRemove:()=>z("headline"),addZoneAbove:M?void 0:{elementId:"preheader",elementLabel:"Preheader",onAdd:()=>O("preheader")},addZoneBelow:T?void 0:{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>O("subheadline")},children:ie(Oe,{sectionId:e.id,field:"headline",value:w,as:"h1",class:"pb-text-h1 tracking-[-0.72px] md:tracking-[-1.12px]"})}),T&&ie(nt,{sectionId:e.id,elementId:"subheadline",elementType:"text",label:"Subheading",onRemove:()=>z("subheadline"),addZoneAbove:A?void 0:{elementId:"headline",elementLabel:"Heading",onAdd:()=>O("headline")},addZoneBelow:E?void 0:{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>O("primaryCta")},children:ie(Oe,{sectionId:e.id,field:"subheadline",value:k,as:"p",class:"pb-text-body"})})]}),E&&ie(nt,{sectionId:e.id,elementId:"primaryCta",elementType:"button",label:"Button",currentColor:c?.backgroundColor,sectionBackgroundColor:void 0,onColorChange:N,onRemove:()=>z("primaryCta"),brandColors:i,supportsColorPicker:!0,addZoneAbove:T?void 0:{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>O("subheadline")},children:ie(et,{variant:c?.variant||"primary",backgroundColor:c?.backgroundColor,brandColors:i,class:"w-fit",onClick:L,children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:_,as:"span"})})})]})})]})})}return ie("div",{class:"w-full p-5 md:p-[50px]",style:{backgroundColor:F.backgroundColor},children:ie("div",{class:"rounded-2xl md:rounded-[32px] overflow-hidden",children:B})})}function rt({section:e,textOnLeft:t,splitBgStyles:n,effectiveBackgroundColor:i,backgroundImageData:o,backgroundImage:r,secondaryMediaData:a,secondaryMedia:l,isSplitImage:s=!1,displayPreheader:d,displayHeadline:c,displaySubheadline:u,displayCtaText:p,primaryCta:h,brandColors:m,isPreheaderVisible:f,isHeadlineVisible:g,isSubheadlineVisible:b,isCtaVisible:v,allElementsHidden:y,isPreviewMode:x,isContainerHovered:w,setIsContainerHovered:k,handleCtaClick:C,handleButtonColorChange:_,handleRemoveElement:I,handleAddElement:S}){const M=s,A=!s&&"contain"===r?.objectFit,T="items-start text-left",E=ie("div",{class:"relative flex items-center justify-center w-full md:w-1/2 px-6 py-10 md:px-12 lg:px-16 overflow-hidden "+(M?"text-white":""),style:M?{minHeight:"340px"}:{backgroundColor:n.backgroundColor,color:n.color,minHeight:"340px"},onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:[M&&ie(j,{children:[ie("div",{class:"absolute inset-0",children:ie(Ue,a?{sectionId:e.id,field:"secondaryMedia",src:a.src,alt:l?.alt||"",class:"w-full h-full object-cover",srcMobile:a.srcMobile,focalPoint:a.focalPoint,focalPointMobile:a.focalPointMobile,maxWidth:1440,maxWidthMobile:1080,sizes:"50vw",mediaType:a.type,poster:a.poster,posterMobile:a.posterMobile}:{sectionId:e.id,field:"secondaryMedia",src:"",alt:"",class:"w-full h-full object-cover bg-gray-800"})}),ie("div",{class:"absolute inset-0 bg-black/40 pointer-events-none"})]}),ie("div",{class:`relative flex flex-col gap-5 md:gap-6 max-w-[470px] w-full ${T}`,style:{zIndex:1},children:y&&x&&!w?ie("div",{style:{minWidth:"200px",minHeight:"150px"}}):y&&x&&w?ie("div",{class:`flex flex-col gap-5 md:gap-6 ${T}`,children:[ie(it,{elementId:"preheader",elementLabel:"Preheader",onAdd:()=>S("preheader"),children:ie("p",{class:"pb-text-h5",children:d||"Preheader"})}),ie(it,{elementId:"headline",elementLabel:"Heading",onAdd:()=>S("headline"),children:ie("h1",{class:"pb-text-h1 tracking-[-0.72px] md:tracking-[-1.12px]",children:c})}),ie(it,{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>S("subheadline"),children:ie("p",{class:"pb-text-body",children:u})}),ie(it,{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>S("primaryCta"),children:ie("button",{type:"button",class:"inline-flex items-center justify-center uppercase tracking-[1.2px] px-5 py-[15px] rounded-[2px] text-[15px] font-bold leading-5 bg-[var(--brand-primary,#00a47c)] text-white w-fit",style:{pointerEvents:"none"},children:p})})]}):ie(j,{children:[ie("div",{class:`flex flex-col gap-3 ${T}`,children:[f&&ie(nt,{sectionId:e.id,elementId:"preheader",elementType:"text",label:"Preheader",onRemove:()=>I("preheader"),children:ie(Oe,{sectionId:e.id,field:"preheader",value:d,as:"p",class:"pb-text-h5"})}),g&&ie(nt,{sectionId:e.id,elementId:"headline",elementType:"heading",label:"Heading",onRemove:()=>I("headline"),addZoneAbove:f?void 0:{elementId:"preheader",elementLabel:"Preheader",onAdd:()=>S("preheader")},addZoneBelow:b?void 0:{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>S("subheadline")},children:ie(Oe,{sectionId:e.id,field:"headline",value:c,as:"h1",class:"pb-text-h1 tracking-[-0.72px] md:tracking-[-1.12px]"})}),b&&ie(nt,{sectionId:e.id,elementId:"subheadline",elementType:"text",label:"Subheading",onRemove:()=>I("subheadline"),addZoneAbove:g?void 0:{elementId:"headline",elementLabel:"Heading",onAdd:()=>S("headline")},addZoneBelow:v?void 0:{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>S("primaryCta")},children:ie(Oe,{sectionId:e.id,field:"subheadline",value:u,as:"p",class:"pb-text-body"})})]}),v&&ie(nt,{sectionId:e.id,elementId:"primaryCta",elementType:"button",label:"Button",currentColor:h?.backgroundColor,sectionBackgroundColor:i,onColorChange:_,onRemove:()=>I("primaryCta"),brandColors:m,supportsColorPicker:!0,addZoneAbove:b?void 0:{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>S("subheadline")},children:ie(et,{variant:h?.variant||"primary",backgroundColor:h?.backgroundColor,brandColors:m,class:"w-fit",onClick:C,children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:p,as:"span"})})})]})})]}),P=ie("div",{class:`w-full ${A?"":M?"h-[269px]":"h-[280px]"} relative overflow-hidden`,style:{backgroundColor:n.backgroundColor},children:o?ie(Ue,{sectionId:e.id,field:"backgroundImage",src:o.src,alt:r?.alt||"",class:"w-full "+(A?"":"h-full object-cover"),srcMobile:o.srcMobile,focalPoint:o.focalPoint,focalPointMobile:o.focalPointMobile,maxWidth:1440,maxWidthMobile:1080,sizes:"100vw",mediaType:o.type,poster:o.poster,posterMobile:o.posterMobile,objectFit:A?r?.objectFit:void 0,allowObjectFitToggle:!s}):ie("div",{class:"w-full h-full"})}),L=ie("div",{class:"w-1/2 h-auto relative overflow-hidden",style:{backgroundColor:n.backgroundColor},children:o?ie(Ue,{sectionId:e.id,field:"backgroundImage",src:o.src,alt:r?.alt||"",class:"w-full h-full "+(A?"object-contain":"object-cover"),srcMobile:o.srcMobile,focalPoint:o.focalPoint,focalPointMobile:o.focalPointMobile,maxWidth:1440,maxWidthMobile:1080,sizes:"50vw",mediaType:o.type,poster:o.poster,posterMobile:o.posterMobile,objectFit:s?void 0:r?.objectFit,allowObjectFitToggle:!s}):ie("div",{class:"w-full h-full"})}),N=M?ie("div",{class:"relative w-full h-[269px] overflow-hidden",children:[ie("div",{class:"absolute inset-0",children:ie(Ue,a?{sectionId:e.id,field:"secondaryMedia",src:a.src,alt:l?.alt||"",class:"w-full h-full object-cover",srcMobile:a.srcMobile,focalPoint:a.focalPoint,focalPointMobile:a.focalPointMobile,maxWidth:1080,maxWidthMobile:1080,sizes:"100vw",mediaType:a.type,poster:a.poster,posterMobile:a.posterMobile}:{sectionId:e.id,field:"secondaryMedia",src:"",alt:"",class:"w-full h-full object-cover bg-gray-800"})}),ie("div",{class:"absolute inset-0 bg-black/40 pointer-events-none"}),ie("div",{class:"relative flex flex-col justify-center h-full px-4 py-6 text-white",style:{zIndex:1},onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:[ie("div",{class:"flex flex-col gap-3 items-start text-left",children:[g&&ie(Oe,{sectionId:e.id,field:"headline",value:c,as:"h1",class:"pb-text-h1 tracking-[-0.72px] md:tracking-[-1.12px]"}),b&&ie(Oe,{sectionId:e.id,field:"subheadline",value:u,as:"p",class:"pb-text-body"})]}),v&&ie("div",{class:"mt-5",children:ie(et,{variant:h?.variant||"primary",backgroundColor:h?.backgroundColor,brandColors:m,class:"w-fit",onClick:C,children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:p,as:"span"})})})]})]}):null;return ie("div",{class:"w-full",children:[ie("div",{class:"flex flex-col md:hidden",children:ie(j,M?{children:[P,N]}:{children:[P,E]})}),ie("div",{class:"hidden md:flex h-[680px] "+(t?"":"flex-row-reverse"),children:[E,L]})]})}function at({section:e,backgroundImageData:t,backgroundImage:n,displayPreheader:i,displayHeadline:o,displaySubheadline:r,displayCtaText:a,primaryCta:l,brandColors:s,isPreheaderVisible:d,isHeadlineVisible:c,isSubheadlineVisible:u,isCtaVisible:p,allElementsHidden:h,isPreviewMode:m,isContainerHovered:f,setIsContainerHovered:g,handleCtaClick:b,handleButtonColorChange:v,handleRemoveElement:y,handleAddElement:x}){const w="video"===n?.type,k="items-start text-left",C=t?.src,_=t?.srcMobile,I=n?.alt||"",S=t?.poster||(w?void 0:C);return ie("div",{class:"w-full",children:[ie("div",{class:"relative md:hidden w-full h-[620px] overflow-hidden bg-black",children:[t&&ie("div",{class:"absolute inset-0",children:[ie(Ue,{sectionId:e.id,field:"backgroundImage",src:C,alt:I,class:"w-full h-full object-cover",srcMobile:_,focalPoint:t.focalPoint,focalPointMobile:t.focalPointMobile,maxWidth:1080,maxWidthMobile:1080,sizes:"100vw",mediaType:t.type,poster:t.poster,posterMobile:t.posterMobile,allowAudioToggle:!0,showAudioToggle:t.showAudioToggle}),ie("div",{class:"absolute inset-0 bg-gradient-to-b from-black/30 via-transparent to-black/40 pointer-events-none"})]}),ie("div",{class:"relative flex flex-col justify-center h-full px-4 text-white",style:{zIndex:1},onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),children:h&&m&&!f?ie("div",{style:{minWidth:"200px",minHeight:"150px"}}):h&&m&&f?ie("div",{class:`flex flex-col gap-5 md:gap-6 ${k}`,children:[ie(it,{elementId:"preheader",elementLabel:"Preheader",onAdd:()=>x("preheader"),children:ie("p",{class:"pb-text-h5",children:i||"Preheader"})}),ie(it,{elementId:"headline",elementLabel:"Heading",onAdd:()=>x("headline"),children:ie("h1",{class:"pb-text-h1 tracking-[-0.72px] md:tracking-[-1.12px]",children:o})}),ie(it,{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>x("subheadline"),children:ie("p",{class:"pb-text-body",children:r})}),ie(it,{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>x("primaryCta"),children:ie("button",{type:"button",class:"inline-flex items-center justify-center uppercase tracking-[1.2px] px-5 py-[15px] rounded-[2px] text-[15px] font-bold leading-5 bg-[var(--brand-primary,#00a47c)] text-white w-fit",style:{pointerEvents:"none"},children:a})})]}):ie(j,{children:[ie("div",{class:`flex flex-col gap-3 ${k}`,children:[d&&ie(nt,{sectionId:e.id,elementId:"preheader",elementType:"text",label:"Preheader",onRemove:()=>y("preheader"),children:ie(Oe,{sectionId:e.id,field:"preheader",value:i,as:"p",class:"pb-text-h5"})}),c&&ie(nt,{sectionId:e.id,elementId:"headline",elementType:"heading",label:"Heading",onRemove:()=>y("headline"),addZoneAbove:d?void 0:{elementId:"preheader",elementLabel:"Preheader",onAdd:()=>x("preheader")},addZoneBelow:u?void 0:{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>x("subheadline")},children:ie(Oe,{sectionId:e.id,field:"headline",value:o,as:"h1",class:"pb-text-h1 tracking-[-0.72px] md:tracking-[-1.12px]"})}),u&&ie(nt,{sectionId:e.id,elementId:"subheadline",elementType:"text",label:"Subheading",onRemove:()=>y("subheadline"),addZoneAbove:c?void 0:{elementId:"headline",elementLabel:"Heading",onAdd:()=>x("headline")},addZoneBelow:p?void 0:{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>x("primaryCta")},children:ie(Oe,{sectionId:e.id,field:"subheadline",value:r,as:"p",class:"pb-text-body"})})]}),p&&ie("div",{class:"mt-5",children:ie(nt,{sectionId:e.id,elementId:"primaryCta",elementType:"button",label:"Button",currentColor:l?.backgroundColor,sectionBackgroundColor:void 0,onColorChange:v,onRemove:()=>y("primaryCta"),brandColors:s,supportsColorPicker:!0,addZoneAbove:u?void 0:{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>x("subheadline")},children:ie(et,{variant:l?.variant||"primary",backgroundColor:l?.backgroundColor,brandColors:s,class:"w-fit",onClick:b,children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:a,as:"span"})})})})]})})]}),ie("div",{class:"hidden md:block relative w-full h-[680px] overflow-hidden bg-black",children:[t&&ie("div",{class:"absolute inset-0",style:{transform:"scale(1.1)"},children:w?ie("video",{autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:C,poster:S,class:"w-full h-full object-cover",style:{filter:"blur(25px) brightness(0.3)"}}):ie("img",{src:C,alt:"",class:"w-full h-full object-cover",style:{filter:"blur(25px) brightness(0.3)"}})}),ie("div",{class:"absolute inset-0 bg-black/30 pointer-events-none"}),ie("div",{style:{position:"absolute",top:"0",bottom:"0",left:"40px",right:"40px",maxWidth:"1120px",margin:"0 auto",zIndex:1},children:[t&&ie("div",{style:{position:"absolute",top:"0",right:"0",width:"383px",height:"100%",overflow:"hidden",zIndex:10},children:ie(Ue,{sectionId:e.id,field:"backgroundImage",src:C,alt:I,class:"w-full h-full object-cover",srcMobile:_,focalPoint:t.focalPoint,focalPointMobile:t.focalPointMobile,maxWidth:768,sizes:"383px",mediaType:t.type,poster:t.poster,posterMobile:t.posterMobile,allowAudioToggle:!0,showAudioToggle:t.showAudioToggle})}),ie("div",{class:"absolute top-1/2 -translate-y-1/2 flex flex-col gap-5 text-white",style:{zIndex:2,left:"0",right:"415px",maxWidth:"576px"},onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),children:h&&m&&!f?ie("div",{style:{minWidth:"300px",minHeight:"200px"}}):h&&m&&f?ie("div",{class:`flex flex-col gap-5 ${k}`,children:[ie(it,{elementId:"preheader",elementLabel:"Preheader",onAdd:()=>x("preheader"),children:ie("p",{class:"pb-text-h5",children:i||"Preheader"})}),ie(it,{elementId:"headline",elementLabel:"Heading",onAdd:()=>x("headline"),children:ie("h1",{class:"pb-text-h1 tracking-[-0.72px] md:tracking-[-1.12px]",children:o})}),ie(it,{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>x("subheadline"),children:ie("p",{class:"pb-text-body",children:r})}),ie(it,{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>x("primaryCta"),children:ie("button",{type:"button",class:"inline-flex items-center justify-center uppercase tracking-[1.2px] px-5 py-[15px] rounded-[2px] text-[15px] font-bold leading-5 bg-[var(--brand-primary,#00a47c)] text-white w-fit",style:{pointerEvents:"none"},children:a})})]}):ie(j,{children:[ie("div",{class:`flex flex-col gap-3 ${k}`,children:[d&&ie(nt,{sectionId:e.id,elementId:"preheader",elementType:"text",label:"Preheader",onRemove:()=>y("preheader"),children:ie(Oe,{sectionId:e.id,field:"preheader",value:i,as:"p",class:"pb-text-h5"})}),c&&ie(nt,{sectionId:e.id,elementId:"headline",elementType:"heading",label:"Heading",onRemove:()=>y("headline"),addZoneAbove:d?void 0:{elementId:"preheader",elementLabel:"Preheader",onAdd:()=>x("preheader")},addZoneBelow:u?void 0:{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>x("subheadline")},children:ie(Oe,{sectionId:e.id,field:"headline",value:o,as:"h1",class:"pb-text-h1 tracking-[-0.72px] md:tracking-[-1.12px]"})}),u&&ie(nt,{sectionId:e.id,elementId:"subheadline",elementType:"text",label:"Subheading",onRemove:()=>y("subheadline"),addZoneAbove:c?void 0:{elementId:"headline",elementLabel:"Heading",onAdd:()=>x("headline")},addZoneBelow:p?void 0:{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>x("primaryCta")},children:ie(Oe,{sectionId:e.id,field:"subheadline",value:r,as:"p",class:"pb-text-body"})})]}),p&&ie(nt,{sectionId:e.id,elementId:"primaryCta",elementType:"button",label:"Button",currentColor:l?.backgroundColor,sectionBackgroundColor:void 0,onColorChange:v,onRemove:()=>y("primaryCta"),brandColors:s,supportsColorPicker:!0,addZoneAbove:u?void 0:{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>x("subheadline")},children:ie(et,{variant:l?.variant||"primary",backgroundColor:l?.backgroundColor,brandColors:s,class:"w-fit",onClick:b,children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:a,as:"span"})})})]})})]})]})]})}function lt({sectionId:e,elementId:t,index:n,totalCount:i,minCount:o,maxCount:r,label:a,children:l,onAdd:s,onRemove:d,onMoveLeft:c,onMoveRight:u,currentColor:p,sectionBackgroundColor:h,onColorChange:m,brandColors:f,supportsColorPicker:g=!1,includeYellow:b=!1,currentIcon:v,onIconClick:y,currentUrl:x,onUrlClick:w,fillWidth:k=!1,edgeDirection:C="horizontal"}){const{isPreviewMode:_,readOnly:I,selectedSectionId:S,selectedElementId:M,onElementClick:A}=je();if(!_||I)return ie(j,{children:l});const T=S===e&&M===t,E=i>o&&d,P=i<r&&s,L=i<r&&s,N=n>0&&c,z=n<i-1&&u;return ie("div",{className:"pb-el-wrap",style:{position:"relative",display:k?"flex":"inline-flex",width:k?"100%":"fit-content"},children:[ie("div",{style:{position:"absolute",inset:0,zIndex:T?1:2,cursor:"pointer",pointerEvents:T?"none":"auto"},onClick:n=>{const i=n.target;"BUTTON"===i.tagName||"INPUT"===i.tagName||"A"===i.tagName||"TEXTAREA"===i.tagName||"svg"===i.tagName||"SVG"===i.tagName||i.closest("button")||i.closest("svg")||i.closest("[data-editable-text]")||i.closest(".pb-editable-image-wrapper")||i.closest(".pb-image-overlay")||(n.preventDefault(),n.stopPropagation(),A?.(e,t))}}),ie("div",{className:"pb-el-border",style:{position:"absolute",inset:"0",borderRadius:"6px",pointerEvents:"none",zIndex:9998,boxSizing:"border-box",border:T?"4px solid transparent":"2px solid transparent",background:"linear-gradient(180deg, #fbcfe8, #818cf8) border-box",WebkitMask:"linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0)",WebkitMaskComposite:"xor",maskComposite:"exclude",...T?{opacity:1}:{}}}),T&&ie("div",{style:{position:"absolute",top:"-36px",left:"0",zIndex:9999,display:"flex",alignItems:"center",gap:"4px",fontFamily:"Inter, system-ui, -apple-system, sans-serif",animation:"fadeSlideDown 0.2s ease-out"},children:[ie("button",{type:"button",style:{position:"relative",display:"flex",alignItems:"center",gap:"6px",backgroundColor:"#f2f4f7",borderRadius:"6px",padding:"4px 6px",fontSize:"14px",fontWeight:500,color:"#141c25",cursor:"pointer",transition:"background-color 0.15s ease",border:"none",whiteSpace:"nowrap"},onClick:t=>{t.preventDefault(),t.stopPropagation(),A?.(e,"")},children:a}),(N||z)&&ie(j,{children:[N&&ie("button",{type:"button",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"28px",height:"28px",backgroundColor:"#f2f4f7",borderRadius:"6px",border:"none",cursor:"pointer",transition:"background-color 0.15s ease"},onClick:e=>{e.preventDefault(),e.stopPropagation(),c?.()},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#e4e7ec"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#f2f4f7"},title:"Move left",children:ie("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ie("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:"#141c25","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})})}),z&&ie("button",{type:"button",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"28px",height:"28px",backgroundColor:"#f2f4f7",borderRadius:"6px",border:"none",cursor:"pointer",transition:"background-color 0.15s ease"},onClick:e=>{e.preventDefault(),e.stopPropagation(),u?.()},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#e4e7ec"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#f2f4f7"},title:"Move right",children:ie("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ie("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:"#141c25","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})})})]}),w&&ie("button",{type:"button",style:{display:"flex",alignItems:"center",justifyContent:"center",width:"28px",height:"28px",backgroundColor:"#f2f4f7",borderRadius:"6px",border:"none",cursor:"pointer",transition:"background-color 0.15s ease"},onClick:e=>{e.preventDefault(),e.stopPropagation(),w()},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#e4e7ec"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#f2f4f7"},title:"Edit link",children:ie("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ie("path",{d:"M10 13C10.4295 13.5741 10.9774 14.0491 11.6066 14.3929C12.2357 14.7367 12.9315 14.9411 13.6467 14.9923C14.3618 15.0435 15.0796 14.9403 15.7513 14.6897C16.4231 14.4392 17.0331 14.047 17.54 13.54L20.54 10.54C21.4508 9.59695 21.9548 8.33394 21.9434 7.02296C21.932 5.71198 21.4061 4.45791 20.4791 3.53087C19.5521 2.60383 18.298 2.07799 16.987 2.0666C15.676 2.0552 14.413 2.55918 13.47 3.47L11.75 5.18",stroke:"#141c25","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),ie("path",{d:"M14 11C13.5705 10.4259 13.0226 9.95083 12.3934 9.60707C11.7642 9.26331 11.0685 9.05889 10.3533 9.00768C9.63816 8.95646 8.92037 9.05965 8.24861 9.31022C7.57685 9.5608 6.96684 9.95303 6.46 10.46L3.46 13.46C2.5492 14.403 2.04522 15.6661 2.0566 16.977C2.06798 18.288 2.59382 19.5421 3.52086 20.4691C4.4479 21.3962 5.70197 21.922 7.01295 21.9334C8.32393 21.9448 9.58694 21.4408 10.53 20.53L12.24 18.82",stroke:"#141c25","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})})]}),E&&ie("button",{type:"button",className:"pb-el-remove",style:{position:"absolute",top:"-12px",right:"-12px",zIndex:1e4,display:"flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",backgroundColor:"#f2f4f7",borderRadius:"50%",border:"none",cursor:"pointer",transition:"background-color 0.15s ease",...T?{opacity:1,pointerEvents:"auto"}:{}},onClick:e=>{e.preventDefault(),e.stopPropagation(),d?.()},children:ie("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ie("path",{d:"M9 3L3 9M3 3L9 9",stroke:"#141c25","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})})}),T&&g&&f&&m&&ie("div",{style:{position:"absolute",top:"100%",marginTop:"8px",left:"0",zIndex:10002,animation:"fadeSlideUp 0.2s ease-out"},children:ie(tt,{brandColors:f,currentColor:p,excludeColor:h,onSelect:m,inline:!0,includeYellow:b})}),P&&ie("div",{className:"pb-el-edge",style:"vertical"===C?{position:"absolute",top:"-12px",left:"-8px",right:"-8px",height:"20px",zIndex:9998,pointerEvents:"auto"}:{position:"absolute",left:"-12px",top:"-8px",bottom:"-8px",width:"20px",zIndex:9998,pointerEvents:"auto"},children:ie("div",{className:"pb-el-edge-btn",style:"vertical"===C?{position:"absolute",top:"-8px",left:"50%",transform:"translateX(-50%)"}:{position:"absolute",left:"-8px",top:"50%",transform:"translateY(-50%)"},children:ie("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),s?.("before")},style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",backgroundColor:"#818cf8",color:"white",border:"none",borderRadius:"50%",cursor:"pointer",transition:"background-color 0.15s ease"},title:`Add ${a}`,children:ie("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ie("path",{d:"M7 3V11M3 7H11",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})})})})}),L&&ie("div",{className:"pb-el-edge",style:"vertical"===C?{position:"absolute",bottom:"-12px",left:"-8px",right:"-8px",height:"20px",zIndex:9998,pointerEvents:"auto"}:{position:"absolute",right:"-12px",top:"-8px",bottom:"-8px",width:"20px",zIndex:9998,pointerEvents:"auto"},children:ie("div",{className:"pb-el-edge-btn",style:"vertical"===C?{position:"absolute",bottom:"-8px",left:"50%",transform:"translateX(-50%)"}:{position:"absolute",right:"-8px",top:"50%",transform:"translateY(-50%)"},children:ie("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),s?.("after")},style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",backgroundColor:"#818cf8",color:"white",border:"none",borderRadius:"50%",cursor:"pointer",transition:"background-color 0.15s ease"},title:`Add ${a}`,children:ie("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ie("path",{d:"M7 3V11M3 7H11",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})})})})}),ie("div",{style:{position:"relative",zIndex:T?3:0,width:k?"100%":void 0,height:k?"100%":void 0},children:l})]})}function st({elementId:e,elementLabel:t,onAdd:n}){return ie("div",{className:"pb-add-zone",style:{position:"relative",height:"24px",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",margin:"8px 0"},children:[ie("div",{className:"pb-add-zone-line",style:{position:"absolute",top:"50%",left:0,right:0,height:"2px",background:"linear-gradient(90deg, transparent, #818cf8 50%, transparent)",transform:"translateY(-50%)",pointerEvents:"none"}}),ie("button",{type:"button",className:"pb-add-zone-btn",onClick:e=>{e.preventDefault(),e.stopPropagation(),n()},style:{position:"relative",display:"flex",alignItems:"center",gap:"6px",backgroundColor:"#818cf8",color:"white",borderRadius:"12px",padding:"6px 14px",fontSize:"13px",fontWeight:500,border:"none",cursor:"pointer",zIndex:1e4,transition:"background-color 0.15s ease",fontFamily:"Inter, system-ui, -apple-system, sans-serif",whiteSpace:"nowrap"},children:[ie("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ie("path",{d:"M6 2.5V9.5M2.5 6H9.5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),"Add ",t]})]})}const dt=[{id:"default-1",rating:5,title:"Amazing Product",quote:"This product exceeded all my expectations.",author:"Happy Customer"},{id:"default-2",rating:5,title:"Highly Recommend",quote:"I would recommend this to everyone I know.",author:"Satisfied Buyer"},{id:"default-3",rating:5,title:"Love It",quote:"Best purchase I have made in a long time.",author:"Loyal Fan"}];function ct({rating:e,textColor:t,starColor:n,onRatingChange:i,isPreviewMode:o}){const r=Ye(n)||"#FFD700";return ie("div",{class:"flex gap-2",children:[...Array(5)].map((t,n)=>{const a=n<e;return ie("svg",{viewBox:"0 0 20 20",fill:a?r:"none",stroke:a?r:"#9CA3AF","stroke-width":"1",style:{width:"20px",height:"20px",cursor:o&&i?"pointer":"default",transition:"transform 0.15s ease"},onClick:e=>{o&&i&&(e.stopPropagation(),i(n+1))},onMouseEnter:e=>{o&&i&&(e.currentTarget.style.transform="scale(1.15)")},onMouseLeave:e=>{o&&i&&(e.currentTarget.style.transform="scale(1)")},children:ie("path",{d:"M10 2l2.4 6.2h6.6l-5.4 4 2 6.2-5.6-4-5.6 4 2-6.2-5.4-4h6.6z"})},n)})})}function ut({section:e,variantId:t,edits:n,brandColors:i}){const{headline:o,primaryCta:r,backgroundColor:a,starColor:l,visibility:s}=e.content,d=e.content.reviews||dt,[c,u]=ve(0),{isPreviewMode:p,readOnly:h,notifyColorChanged:m,onElementClick:f}=je(),g=xe(null),b=Xe(a,i),v=Je(a,i),y=Ee(t,e.id,"headline",o||"Customer Reviews",n),x=("string"==typeof r?r:r?.text)||"Shop Now",w=Ee(t,e.id,"primaryCta.text",x,n),k="false"!==s?.primaryCta,C=()=>{u(e=>(e+1)%d.length)},_=t=>{m?.(e.id,"starColor",t)},I=(t,n)=>{m?.(e.id,`reviews.${t}.rating`,n.toString())},S=(t,n)=>{m?.(e.id,"moveItem",JSON.stringify({from:t,to:n})),c===t?u(n):t<c&&n>=c?u(c-1):t>c&&n<=c&&u(c+1),setTimeout(()=>{f?.(e.id,`review-${n}`)},0)};return ye(()=>{const e=setInterval(C,5e3);return()=>clearInterval(e)},[d.length,c]),ie("div",{class:"relative w-full",style:b,children:ie("div",{class:"flex flex-col items-center justify-center",children:ie("div",{class:"box-border w-full flex flex-col gap-10 md:gap-10 items-center justify-center px-7 md:px-16 py-12 md:py-20",children:[ie(Oe,{sectionId:e.id,field:"headline",value:y,as:"h2",class:"pb-text-h2 tracking-[-0.6px] md:tracking-[-0.8px] text-center"}),ie("div",{class:"relative w-full max-w-[1150px] flex flex-col items-center",children:[ie("div",{class:"hidden md:flex gap-3 lg:gap-4 xl:gap-[20px] items-stretch justify-center md:px-4 xl:px-0",children:d.slice(0,3).map((o,r)=>{const a=Ee(t,e.id,`reviews.${r}.title`,o.title||"",n),s=Ee(t,e.id,`reviews.${r}.quote`,o.quote,n),c=Ee(t,e.id,`reviews.${r}.author`,o.author,n);return ie("div",{class:"flex-1 min-w-0 md:max-w-[280px] lg:max-w-[320px] xl:max-w-[347px] xl:flex-none xl:w-[347px] flex justify-center",children:ie(lt,{sectionId:e.id,elementId:`review-${r}`,index:r,totalCount:d.length,minCount:3,maxCount:3,label:`Review ${r+1}`,onMoveLeft:r>0?()=>S(r,r-1):void 0,onMoveRight:r<d.length-1?()=>S(r,r+1):void 0,currentColor:l,sectionBackgroundColor:v,onColorChange:_,brandColors:i,supportsColorPicker:!0,includeYellow:!0,children:ie("div",{class:"flex flex-col gap-4 items-center w-full",children:[ie(ct,{rating:o.rating||5,textColor:b.color,starColor:l,onRatingChange:e=>I(r,e),isPreviewMode:p}),ie(Oe,{sectionId:e.id,field:`reviews.${r}.title`,value:a,as:"h3",class:"pb-text-h3 tracking-[-0.48px] text-center w-full"}),ie(Oe,{sectionId:e.id,field:`reviews.${r}.quote`,value:s,as:"p",class:"pb-text-body text-center w-full max-w-[225px]"}),ie(Oe,{sectionId:e.id,field:`reviews.${r}.author`,value:c,as:"p",class:"pb-text-body text-center w-full max-w-[225px]"})]})})},o.id)})}),ie("div",{class:"md:hidden relative",onTouchStart:e=>{g.current={x:e.touches[0].clientX,y:e.touches[0].clientY}},onTouchEnd:e=>{if(!g.current)return;const t=e.changedTouches[0].clientX-g.current.x,n=e.changedTouches[0].clientY-g.current.y;g.current=null,Math.abs(t)>Math.abs(n)&&Math.abs(t)>50&&(t<0?C():u(e=>(e-1+d.length)%d.length))},children:ie("div",{style:{display:"grid"},children:d.slice(0,3).map((o,r)=>{const a=r===c,s=Ee(t,e.id,`reviews.${r}.title`,o.title||"",n),u=Ee(t,e.id,`reviews.${r}.quote`,o.quote,n),h=Ee(t,e.id,`reviews.${r}.author`,o.author,n),m=ie("div",{class:"flex flex-col gap-4 items-center",children:[ie(ct,{rating:o.rating||5,textColor:b.color,starColor:l,onRatingChange:a?e=>I(r,e):void 0,isPreviewMode:!!a&&p}),ie(Oe,{sectionId:e.id,field:`reviews.${r}.title`,value:s,as:"h3",class:"pb-text-h4 tracking-[-0.4px] text-center w-[245px]"}),ie(Oe,{sectionId:e.id,field:`reviews.${r}.quote`,value:u,as:"p",class:"pb-text-body-sm text-center w-[317px]"}),ie(Oe,{sectionId:e.id,field:`reviews.${r}.author`,value:h,as:"p",class:"pb-text-body-sm text-center"})]});return ie("div",{style:{gridColumn:"1",gridRow:"1",opacity:a?1:0,pointerEvents:a?"auto":"none",transition:"opacity 0.3s ease"},children:a?ie(lt,{sectionId:e.id,elementId:`review-${r}`,index:r,totalCount:d.length,minCount:3,maxCount:3,label:`Review ${r+1}`,onMoveLeft:r>0?()=>S(r,r-1):void 0,onMoveRight:r<d.length-1?()=>S(r,r+1):void 0,currentColor:l,sectionBackgroundColor:v,onColorChange:_,brandColors:i,supportsColorPicker:!0,includeYellow:!0,children:m}):m},o.id)})})})]}),ie("div",{class:"flex md:hidden gap-2 h-2",children:d.map((e,t)=>ie("button",{onClick:()=>u(t),class:"w-2 h-2 rounded-full transition-all "+(t===c?"opacity-100":"opacity-30"),style:{backgroundColor:b.color},"aria-label":`Go to review ${t+1}`},t))}),ie("div",{class:"w-full flex justify-center",style:{position:"relative"},children:[!k&&p&&ie("div",{style:{position:"absolute",top:"-32px",left:0,right:0,zIndex:10},children:ie(st,{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>void m?.(e.id,"visibility.primaryCta","true")})}),k&&ie(nt,{sectionId:e.id,elementId:"primaryCta",elementType:"button",label:"Button",currentColor:r?.backgroundColor,sectionBackgroundColor:v,onColorChange:t=>{m?.(e.id,"primaryCta.backgroundColor",t)},onRemove:()=>void m?.(e.id,"visibility.primaryCta","false"),brandColors:i,supportsColorPicker:!0,children:ie(et,{variant:r?.variant||"primary",backgroundColor:r?.backgroundColor,brandColors:i,onClick:e=>{p&&!h?e.preventDefault():(e.preventDefault(),qe())},children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:w,as:"span"})})})]})]})})})}function pt({section:e,brandColors:t}){const{backgroundColor:n,alignment:i}=e.content,o=e.content.reviews||[{id:"1",quote:"",author:"",location:"",avatar:""}],r=e.content.mediaCards||[],a="right"!==i,{isPreviewMode:l,notifyColorChanged:s,onElementClick:d}=je(),c=Xe(n,t),[u,p]=ve(0),h=xe(null),m=xe(null),f=xe(o.length),g=xe(o.map(e=>e.id).join(",")),b=xe(null);if(!o.length)return null;const v=(t,n)=>{m.current=n,s?.(e.id,"moveItem",JSON.stringify({from:t,to:n,focusElementId:`review-${n}`}))};ye(()=>{if(null!==h.current&&o.length>f.current&&h.current<o.length&&(p(h.current),d?.(e.id,`review-${h.current}`),h.current=null),o.length<f.current&&u>=o.length){const t=Math.max(0,o.length-1);p(t),d?.(e.id,`review-${t}`)}f.current=o.length},[o.length]),ye(()=>{const t=o.map(e=>e.id).join(",");if(t!==g.current){if(null!==m.current){const t=m.current;t>=0&&t<o.length&&(p(t),setTimeout(()=>{d?.(e.id,`review-${t}`)},50),m.current=null)}g.current=t}},[o]);const y=Math.min(u,o.length-1),x=o[y];if(!x)return null;const w=x.quote,k=x.author,C=x.location||"",_=x.avatar||"",I=r[y]?.image??null,S={src:I?.src??"",alt:I?.alt??"",type:I?.type??"image",poster:I?.poster,focalPoint:I?.focalPoint,srcMobile:I?.srcMobile,focalPointMobile:I?.focalPointMobile},M=S.src,A=()=>{const t=(u+1)%o.length;p(t),d?.(e.id,`review-${t}`)};ye(()=>{if(o.length>1&&!l){const e=setInterval(A,6e3);return()=>clearInterval(e)}},[o.length,u,l]);const T=({justify:t="justify-start"})=>o.length>1?ie("div",{class:`flex gap-[18px] ${t}`,children:o.map((t,n)=>ie("button",{onClick:()=>{p(n),d?.(e.id,`review-${n}`)},class:"size-2 rounded-full transition-all",style:{backgroundColor:n===y?c.color:`color-mix(in srgb, ${c.color} 30%, transparent)`},"aria-label":`Go to review ${n+1}`},n))}):null,E={sectionId:e.id,elementId:`review-${y}`,index:y,totalCount:o.length,minCount:1,maxCount:5,label:`Review ${y+1}`,onAdd:t=>((t,n)=>{const i=o.length+1,r="before"===n?t:t+1,a={id:`review-${Date.now()}`,quote:`This is review quote ${i}. Edit this text to add your customer's feedback.`,author:`Customer ${i}`,location:`Location ${i}`,avatar:"https://placehold.co/100x100/png",image:{type:"image",src:"https://placehold.co/600x400/png",alt:""}};h.current=r,s?.(e.id,"addItem",JSON.stringify({index:r,item:a}))})(y,t),onRemove:o.length>1?()=>{return t=y,void s?.(e.id,"removeItem",String(t));var t}:void 0,onMoveLeft:y>0?()=>v(y,y-1):void 0,onMoveRight:y<o.length-1?()=>v(y,y+1):void 0};return ie("div",{class:"relative w-full overflow-hidden",style:c,children:[ie("div",{class:"hidden lg:flex h-[740px] "+(a?"":"flex-row-reverse"),children:[ie("div",{class:"w-1/2 relative flex items-center justify-center",children:ie("div",{class:"w-full max-w-[480px] px-6",children:ie(lt,{...E,children:ie("div",{class:"flex flex-col gap-12 p-4",children:[ie(Oe,{sectionId:e.id,field:`reviews.${y}.quote`,value:w,as:"blockquote",class:"pb-text-h3 tracking-[-0.6px]"}),ie("div",{class:"flex gap-3 items-center",children:[ie("div",{class:"w-[64px] h-[64px] flex-shrink-0",children:ie(Ue,{sectionId:e.id,field:`reviews.${y}.avatar`,src:_,alt:x.author,class:"w-full h-full rounded-full object-cover",maxWidth:256})}),ie("div",{class:"flex flex-col gap-1",children:[ie(Oe,{sectionId:e.id,field:`reviews.${y}.author`,value:k,as:"p",class:"pb-text-h4 tracking-[-0.48px]"}),ie(Oe,{sectionId:e.id,field:`reviews.${y}.location`,value:C||"Location",as:"p",class:"pb-text-h5"})]})]}),ie(T,{})]})})})}),ie("div",{class:"w-1/2 relative overflow-hidden",children:ie(Ue,{sectionId:e.id,field:`mediaCards.${y}.image`,src:M,srcMobile:S.srcMobile,alt:S.alt||x.author,mediaType:S.type,poster:S.poster,focalPoint:S.focalPoint,focalPointMobile:S.focalPointMobile,class:"w-full h-full object-cover",maxWidth:960,sizes:"50vw"})})]}),ie("div",{class:"flex lg:hidden flex-col",onTouchStart:e=>{b.current={x:e.touches[0].clientX,y:e.touches[0].clientY}},onTouchEnd:t=>{if(!b.current)return;const n=t.changedTouches[0].clientX-b.current.x,i=t.changedTouches[0].clientY-b.current.y;b.current=null,Math.abs(n)>Math.abs(i)&&Math.abs(n)>50&&(n<0?A():(()=>{const t=(u-1+o.length)%o.length;p(t),d?.(e.id,`review-${t}`)})())},children:[ie("div",{class:"relative w-full h-[343px] overflow-hidden",children:ie(Ue,{sectionId:e.id,field:`mediaCards.${y}.image`,src:M,srcMobile:S.srcMobile,alt:S.alt||x.author,mediaType:S.type,poster:S.poster,focalPoint:S.focalPoint,focalPointMobile:S.focalPointMobile,class:"w-full h-full object-cover",maxWidth:960,sizes:"100vw"})}),ie(lt,{...E,fillWidth:!0,children:ie("div",{class:"flex flex-col gap-8 px-4 pt-4 pb-8",children:[ie("div",{class:"flex flex-col gap-6",children:[ie("div",{class:"flex gap-3 items-center",children:[ie("div",{class:"w-[40px] h-[40px] flex-shrink-0",children:ie(Ue,{sectionId:e.id,field:`reviews.${y}.avatar`,src:_,alt:x.author,class:"w-full h-full rounded-full object-cover",maxWidth:160})}),ie("div",{class:"flex flex-col gap-1",children:[ie(Oe,{sectionId:e.id,field:`reviews.${y}.author`,value:k,as:"p",class:"pb-text-h4 tracking-[-0.4px]"}),ie(Oe,{sectionId:e.id,field:`reviews.${y}.location`,value:C||"Location",as:"p",class:"pb-text-h5"})]})]}),ie(Oe,{sectionId:e.id,field:`reviews.${y}.quote`,value:w,as:"blockquote",class:"pb-text-h2 tracking-[-0.6px]"})]}),ie(T,{})]})})]})]})}const ht=[{id:"1",quote:"This product changed my life.",author:"Happy Customer",location:"Location",avatar:""}];function mt({section:e,variantId:t,edits:n,brandColors:i}){const{isPreviewMode:o,notifyColorChanged:r,onElementClick:a,selectedSectionId:l,selectedElementId:s}=je(),d=e.content.reviews||ht,c=e.content.alignment||"center",u=Xe(e.content.backgroundColor,i),[p,h]=ve(0),m=xe(null),f=xe(null),g=xe(d.length),b=xe(d.map(e=>e.id).join(",")),v="left"===c?"items-start":"right"===c?"items-end":"items-center",y="left"===c?"text-left":"right"===c?"text-right":"text-center",x=(t,n)=>{f.current=n,r?.(e.id,"moveItem",JSON.stringify({from:t,to:n,focusElementId:`review-${n}`}))};ye(()=>{if(null!==m.current&&d.length>g.current&&m.current<d.length&&(h(m.current),a?.(e.id,`review-${m.current}`),m.current=null),d.length<g.current&&p>=d.length){const t=Math.max(0,d.length-1);h(t),a?.(e.id,`review-${t}`)}g.current=d.length},[d.length]),ye(()=>{const t=d.map(e=>e.id).join(",");if(t!==b.current){if(null!==f.current){const t=f.current;t>=0&&t<d.length&&(h(t),setTimeout(()=>{a?.(e.id,`review-${t}`)},50),f.current=null)}b.current=t}},[d]);const w=Math.min(p,d.length-1),k=d[w];if(!k)return null;const C=()=>{const t=(p+1)%d.length;h(t),a?.(e.id,`review-${t}`)};ye(()=>{if(d.length>1&&!o){const e=setInterval(C,6e3);return()=>clearInterval(e)}},[d.length,p,o]);const _={sectionId:e.id,elementId:`review-${w}`,index:w,totalCount:d.length,minCount:1,maxCount:5,label:`Review ${w+1}`,onAdd:t=>((t,n)=>{const i=d.length+1,o="before"===n?t:t+1,a={id:`review-${Date.now()}`,quote:`This is review quote ${i}. Edit this text to add your customer's feedback.`,author:`Customer ${i}`,location:"Location",avatar:""};m.current=o,r?.(e.id,"addItem",JSON.stringify({index:o,item:a}))})(w,t),onRemove:d.length>1?()=>{return t=w,void r?.(e.id,"removeItem",String(t));var t}:void 0,onMoveLeft:w>0?()=>x(w,w-1):void 0,onMoveRight:w<d.length-1?()=>x(w,w+1):void 0,fillWidth:!0},I=d.length>1&&ie("div",{class:"flex gap-[18px]",children:d.map((t,n)=>ie("button",{onClick:()=>{h(n),a?.(e.id,`review-${n}`)},class:"w-2 h-2 rounded-full transition-all",style:{backgroundColor:n===w?u.color:`color-mix(in srgb, ${u.color} 30%, transparent)`},"aria-label":`Go to review ${n+1}`},n))});return ie("div",{class:"relative w-full",style:u,children:[ie("div",{class:"hidden lg:flex flex-col items-center justify-center",children:ie("div",{class:`w-full flex flex-col gap-12 ${v} px-20 py-20 max-w-[1280px] mx-auto`,children:[ie(lt,{..._,children:ie("div",{class:`flex flex-col gap-12 ${v} ${y}`,children:[ie(Oe,{sectionId:e.id,field:`reviews.${w}.quote`,value:k.quote,as:"blockquote",class:"pb-text-h3 tracking-[-0.8px]"}),ie("div",{class:"flex flex-col gap-3 items-center",children:[ie("div",{style:{width:64,height:64,flexShrink:0},children:ie(Ue,{sectionId:e.id,field:`reviews.${w}.avatar`,src:k.avatar||"",alt:k.author,class:"w-full h-full rounded-full object-cover",maxWidth:128})}),ie("div",{class:"flex flex-col gap-1 items-center",children:[ie(Oe,{sectionId:e.id,field:`reviews.${w}.author`,value:k.author,as:"p",class:"pb-text-h4"}),ie(Oe,{sectionId:e.id,field:`reviews.${w}.location`,value:k.location||"Location",as:"p",class:"pb-text-h5"})]})]})]})}),I]})}),ie("div",{class:"flex lg:hidden flex-col items-center justify-center",children:ie("div",{class:`w-full flex flex-col gap-8 ${v} px-4 py-8`,children:[ie(lt,{..._,children:ie("div",{class:`flex flex-col gap-6 ${v} ${y}`,children:[ie(Oe,{sectionId:e.id,field:`reviews.${w}.quote`,value:k.quote,as:"blockquote",class:"pb-text-h2 tracking-[-0.6px]"}),ie("div",{class:"flex gap-3 items-center",children:[ie("div",{class:"w-[40px] h-[40px] flex-shrink-0",children:ie(Ue,{sectionId:e.id,field:`reviews.${w}.avatar`,src:k.avatar||"",alt:k.author,class:"w-full h-full rounded-full object-cover",maxWidth:80})}),ie("div",{class:"flex flex-col gap-1 items-start",children:[ie(Oe,{sectionId:e.id,field:`reviews.${w}.author`,value:k.author,as:"p",class:"pb-text-h4"}),ie(Oe,{sectionId:e.id,field:`reviews.${w}.location`,value:k.location||"Location",as:"p",class:"pb-text-h5"})]})]})]})}),I]})})]})}function ft({section:e,variantId:t,brandColors:n}){const i=e.content.logos||[{id:"1",name:"",image:""},{id:"2",name:"",image:""}],o=e.content.reviews||[],r=e.content.alignment||"left",{backgroundColor:a}=e.content,{notifyColorChanged:l,onElementClick:s,selectedSectionId:d,selectedElementId:c}=je(),u=Xe(a,n),p=Ge(Je(a,n)),h=i.slice(0,6),m=-1!==h.findIndex(e=>e.featured)?h.findIndex(e=>e.featured):0,[f,g]=ve(h[m]?.id),b=h.findIndex(e=>e.id===f),v=-1!==b?b:0;h[v],ye(()=>{if(d===e.id&&c?.startsWith("logo-")){const e=c.match(/logo-(\d+)/);if(e){const t=parseInt(e[1],10),n=h[t];n&&n.id!==f&&g(n.id)}}},[d,c,e.id,h,f]);const y=o[v]?.quote||"Add your press quote here",x="right"===r?"text-right":"center"===r?"text-center":"text-left",w="right"===r?"justify-end":"center"===r?"justify-center":"justify-start",k=(t,n)=>{l?.(e.id,"moveItem",JSON.stringify({from:t,to:n,arrayName:"logos"})),s?.(e.id,`logo-${n}`)};return ie("div",{class:"relative w-full",style:u,children:ie("div",{class:"flex flex-col items-center justify-center",children:ie("div",{class:`w-full flex flex-col gap-12 ${"right"===r?"items-end":"center"===r?"items-center":"items-start"} px-4 lg:px-20 py-8 lg:py-20`,children:[ie(Oe,{sectionId:e.id,field:`reviews.${v}.quote`,value:y,as:"blockquote",class:`pb-text-h2 tracking-[-0.6px] lg:tracking-[-0.8px] ${x} animate-in fade-in duration-300`},f),ie("div",{class:`flex flex-wrap items-start ${w} gap-8 lg:gap-[72px] w-full`,children:h.map((t,n)=>ie(lt,{sectionId:e.id,elementId:`logo-${n}`,index:n,totalCount:h.length,minCount:2,maxCount:6,label:`Logo ${n+1}`,onAdd:t=>((t,n)=>{const i="before"===n?t:t+1,o={id:`logo-${Date.now()}`,name:`Logo ${i+1}`,image:""};l?.(e.id,"addItem",JSON.stringify({index:i,item:o,arrayName:"logos"}))})(n,t),onRemove:()=>(t=>{const n=h[t]?.id;if(l?.(e.id,"removeItem",JSON.stringify({index:t,arrayName:"logos"})),n===f&&h.length>1){const e=h[0===t?1:t-1];g(e?.id)}})(n),onMoveLeft:n>0?()=>k(n,n-1):void 0,onMoveRight:n<h.length-1?()=>k(n,n+1):void 0,children:ie("button",{onClick:()=>(t=>{const n=h[t];n&&(g(n.id),s?.(e.id,`logo-${t}`))})(n),class:"flex flex-col items-center justify-start cursor-pointer group relative",children:ie("div",{class:"flex flex-col items-center pb-5 relative",children:[t.image?ie(Ue,{sectionId:e.id,field:`logos.${n}.image`,src:t.image,alt:t.name||`Logo ${n+1}`,class:"max-w-[128px] max-h-[34px] object-contain transition-opacity duration-200 "+(v===n?"opacity-100":"opacity-30"),style:{width:"auto",height:"auto"},maxWidth:256,hideFocalPoint:!0}):ie("div",{class:"relative w-[128px] h-[34px] rounded transition-opacity duration-200 "+(v===n?"opacity-100":"opacity-30"),style:{backgroundColor:`color-mix(in srgb, ${p} 12%, transparent)`},children:ie(Ue,{sectionId:e.id,field:`logos.${n}.image`,src:"",alt:t.name||`Logo ${n+1}`,class:"opacity-0",style:{position:"absolute"},maxWidth:256,hideFocalPoint:!0})}),ie("div",{class:"absolute bottom-0 left-0 right-0 h-px transition-all duration-300 "+(v===n?"opacity-100 scale-x-100":"opacity-0 scale-x-0 group-hover:opacity-100 group-hover:scale-x-100"),style:{transformOrigin:"center",backgroundColor:p}})]})})},t.id))})]})})})}function gt({section:e,variantId:t,brandColors:n}){const i=e.content.logos||[{id:"1",name:"",image:"",backgroundImage:{type:"image",src:"",alt:""}},{id:"2",name:"",image:"",backgroundImage:{type:"image",src:"",alt:""}}],o=e.content.reviews||[],r=e.content.alignment||"left",{backgroundColor:a}=e.content,{notifyColorChanged:l,onElementClick:s,selectedSectionId:d,selectedElementId:c}=je(),u=Xe(a,n);Ge(Je(a,n));const p=i.slice(0,6),h=-1!==p.findIndex(e=>e.featured)?p.findIndex(e=>e.featured):0,[m,f]=ve(p[h]?.id),g=p.findIndex(e=>e.id===m),b=-1!==g?g:0,v=p[b],y=!!v?.backgroundImage?.src;ye(()=>{if(d===e.id&&c?.startsWith("logo-")){const e=c.match(/logo-(\d+)/);if(e){const t=parseInt(e[1],10),n=p[t];n&&n.id!==m&&f(n.id)}}},[d,c,e.id,p,m]);const x=o[b]?.quote||"Add your press quote here",w="right"===r?"items-end":"center"===r?"items-center":"items-start",k="right"===r?"text-right":"center"===r?"text-center":"text-left",C="right"===r?"justify-end":"center"===r?"justify-center":"justify-start",_=(t,n)=>{l?.(e.id,"moveItem",JSON.stringify({from:t,to:n,arrayName:"logos"})),s?.(e.id,`logo-${n}`)},I=v?.backgroundImage,S=I?.src||"";return ie("div",{class:"relative w-full overflow-hidden",style:u,children:[ie("div",{class:"absolute inset-0",children:ie(Ue,{sectionId:e.id,field:`logos.${b}.backgroundImage`,src:S,srcMobile:I?.srcMobile,alt:"",focalPoint:I?.focalPoint,focalPointMobile:I?.focalPointMobile,mediaType:I?.type,poster:I?.poster,class:"w-full h-full object-cover",maxWidth:1440},m)}),y&&ie("div",{class:"absolute inset-0 bg-black/50 pointer-events-none"}),ie("div",{class:"relative flex flex-col items-center justify-center pointer-events-none",children:ie("div",{class:`w-full flex flex-col gap-12 ${w} px-4 lg:px-20 py-8 lg:py-20 pointer-events-auto`,children:[ie(Oe,{sectionId:e.id,field:`reviews.${b}.quote`,value:x,as:"blockquote",class:`pb-text-h2 tracking-[-0.6px] lg:tracking-[-0.8px] ${k} animate-in fade-in duration-300`,style:{color:"#ffffff"}},m),ie("div",{class:`flex flex-wrap items-start ${C} gap-8 lg:gap-[72px] w-full`,children:p.map((t,n)=>ie(lt,{sectionId:e.id,elementId:`logo-${n}`,index:n,totalCount:p.length,minCount:2,maxCount:6,label:`Logo ${n+1}`,onAdd:t=>((t,n)=>{const i="before"===n?t:t+1,o={id:`logo-${Date.now()}`,name:`Logo ${i+1}`,image:"",backgroundImage:{type:"image",src:"",alt:""}};l?.(e.id,"addItem",JSON.stringify({index:i,item:o,arrayName:"logos"}))})(n,t),onRemove:()=>(t=>{const n=p[t]?.id;if(l?.(e.id,"removeItem",JSON.stringify({index:t,arrayName:"logos"})),n===m&&p.length>1){const e=p[0===t?1:t-1];f(e?.id)}})(n),onMoveLeft:n>0?()=>_(n,n-1):void 0,onMoveRight:n<p.length-1?()=>_(n,n+1):void 0,children:ie("button",{onClick:()=>(t=>{const n=p[t];n&&(f(n.id),s?.(e.id,`logo-${t}`))})(n),class:"flex flex-col items-center justify-start cursor-pointer group relative",children:ie("div",{class:"flex flex-col items-center pb-5 relative",children:[t.image?ie(Ue,{sectionId:e.id,field:`logos.${n}.image`,src:t.image,alt:t.name||`Logo ${n+1}`,class:"max-w-[128px] max-h-[34px] object-contain transition-opacity duration-200 "+(b===n?"opacity-100":"opacity-30"),style:{width:"auto",height:"auto"},maxWidth:256,hideFocalPoint:!0}):ie("div",{class:"relative w-[128px] h-[34px] rounded transition-opacity duration-200 "+(b===n?"opacity-100":"opacity-30"),style:{backgroundColor:"rgba(255,255,255,0.15)"},children:ie(Ue,{sectionId:e.id,field:`logos.${n}.image`,src:"",alt:t.name||`Logo ${n+1}`,class:"opacity-0",style:{position:"absolute"},maxWidth:256,hideFocalPoint:!0})}),ie("div",{class:"absolute bottom-0 left-0 right-0 h-px transition-all duration-300 "+(b===n?"opacity-100 scale-x-100":"opacity-0 scale-x-0 group-hover:opacity-100 group-hover:scale-x-100"),style:{transformOrigin:"center",backgroundColor:"#ffffff"}})]})})},t.id))})]})})]})}function bt(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function vt(e,t){this.props=e,this.context=t}(vt.prototype=new z).isPureReactComponent=!0,vt.prototype.shouldComponentUpdate=function(e,t){return bt(this.props,e)||bt(this.state,t)};var yt=f.__b;f.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),yt&&yt(e)};var xt=f.__e;f.__e=function(e,t,n,i){if(e.then)for(var o,r=t;r=r.__;)if((o=r.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);xt(e,t,n,i)};var wt=f.unmount;function kt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=function(e,t){for(var n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return kt(e,t,n)})),e}function Ct(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return Ct(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function _t(){this.__u=0,this.o=null,this.__b=null}function It(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function St(){this.i=null,this.l=null}f.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),wt&&wt(e)},(_t.prototype=new z).__c=function(e,t){var n=t.__c,i=this;null==i.o&&(i.o=[]),i.o.push(n);var o=It(i.__v),r=!1,a=function(){r||(r=!0,n.__R=null,o?o(l):l())};n.__R=a;var l=function(){if(! --i.__u){if(i.state.__a){var e=i.state.__a;i.__v.__k[0]=Ct(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__a:i.__b=null});t=i.o.pop();)t.forceUpdate()}};i.__u++||32&t.__u||i.setState({__a:i.__b=i.__v.__k[0]}),e.then(a,a)},_t.prototype.componentWillUnmount=function(){this.o=[]},_t.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=kt(this.__b,n,i.__O=i.__P)}this.__b=null}var o=t.__a&&L(j,null,e.fallback);return o&&(o.__u&=-33),[L(j,null,t.__a?null:e.children),o]};var Mt=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function At(e){return this.getChildContext=function(){return e.context},e.children}function Tt(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){te(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var i=t.__v;null!==i&&!i.__m&&null!==i.__;)i=i.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:i.__m},contains:function(){return!0},insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}te(L(At,{context:t.context},e.__v),t.v)}function Et(e,t){var n=L(Tt,{__v:e,h:t});return n.containerInfo=t,n}(St.prototype=new z).__a=function(e){var t=this,n=It(t.__v),i=t.l.get(e);return i[0]++,function(o){var r=function(){t.props.revealOrder?(i.push(o),Mt(t,e,i)):o()};n?n(r):r()}},St.prototype.render=function(e){this.i=null,this.l=new Map;var t=H(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},St.prototype.componentDidUpdate=St.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Mt(e,n,t)})};var Pt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Lt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Nt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,jt=/[A-Z0-9]/g,zt="undefined"!=typeof document,Ot=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};z.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(z.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Rt=f.event;function $t(){}function Bt(){return this.cancelBubble}function Ft(){return this.defaultPrevented}f.event=function(e){return Rt&&(e=Rt(e)),e.persist=$t,e.isPropagationStopped=Bt,e.isDefaultPrevented=Ft,e.nativeEvent=e};var Dt={enumerable:!1,configurable:!0,get:function(){return this.class}},Ht=f.vnode;f.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={},o=-1===n.indexOf("-");for(var r in t){var a=t[r];if(!("value"===r&&"defaultValue"in t&&null==a||zt&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var l=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===a?a="":"translate"===l&&"no"===a?a=!1:"o"===l[0]&&"n"===l[1]?"ondoubleclick"===l?r="ondblclick":"onchange"!==l||"input"!==n&&"textarea"!==n||Ot(t.type)?"onfocus"===l?r="onfocusin":"onblur"===l?r="onfocusout":Nt.test(r)&&(r=l):l=r="oninput":o&&Lt.test(r)?r=r.replace(jt,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===l&&i[r=l]&&(r="oninputCapture"),i[r]=a}}"select"==n&&i.multiple&&Array.isArray(i.value)&&(i.value=H(t.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),"select"==n&&null!=i.defaultValue&&(i.value=H(t.children).forEach(function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value})),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",Dt)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=Pt,Ht&&Ht(e)};var Wt=f.__r;f.__r=function(e){Wt&&Wt(e),e.__c};var Ut=f.diffed;f.diffed=function(e){Ut&&Ut(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};const Zt=340,qt=Array.from({length:5},(e,t)=>({id:String(t+1),image:{type:"image",src:"",alt:""}}));function Vt(e){const t="string"==typeof e.image?{src:e.image,type:"image",alt:""}:e.image||{src:"",type:"image",alt:""};return{src:t.src,alt:t.alt,type:t.type,srcMobile:e.image?.srcMobile,focalPoint:e.image?.focalPoint,focalPointMobile:e.image?.focalPointMobile,poster:e.image?.poster,showAudioToggle:e.image?.showAudioToggle}}function Yt({section:e,brandColors:t}){const{isPreviewMode:n,notifyColorChanged:i,onElementClick:o,viewport:r}=je(),{backgroundColor:a,headline:l,alignment:s}=e.content,d=n&&"mobile"===r,c=n&&"desktop"===r,u=e.content.mediaCards||[],p=Math.max(u.length,5),h=Array.from({length:p},(e,t)=>{const n=u[t],i=qt[t]??{id:`card-${t}`,image:{type:"image",src:"",alt:""}};return n?{...i,...n}:i}),m=h.length,f=Xe(a,t),g=Je(a,t),b="left"===s?"text-left":"right"===s?"text-right":"text-center",[v,y]=ve(0),[x,w]=ve(0),[k,C]=ve(!1),[_,I]=ve(null),S=xe(v),M=xe(h),A=xe(!1),T=xe(0),E=xe(null),P=xe(!1),L=xe(Zt);ye(()=>{S.current=v},[v]),ye(()=>{M.current=h},[h]);const N=xe([]),j=xe(null),z=xe(null),O=xe(m),R=xe(h.map(e=>e.id).join(",")),$=ke(e=>{const t=S.current,n=M.current.length,i="next"===e?M.current[(t-2+n)%n]?.id:M.current[(t+2)%n]?.id;i&&I(i),E.current&&clearTimeout(E.current),E.current=setTimeout(()=>I(null),440)},[]),B=ke(()=>{$("next"),y(e=>(e+1)%M.current.length)},[$]),F=ke(()=>{$("prev"),y(e=>(e-1+M.current.length)%M.current.length)},[$]),D=ke(e=>{e.target.closest("button, a")||(T.current=e.clientX,A.current=!0,P.current=!1,C(!0),w(0),e.preventDefault())},[]);ye(()=>{const e=e=>{if(!A.current)return;const t=e.clientX-T.current;Math.abs(t)>8&&(P.current=!0),w(t)},t=e=>{if(!A.current)return;A.current=!1;const t=e.clientX-T.current;(()=>{if(C(!1),w(0),Math.abs(t)>=50){const e=M.current.length,n=Math.min(Math.max(1,Math.round(Math.abs(t)/L.current)),Math.floor(e/2));t<0?(1===n&&$("next"),y(t=>(t+n)%e)):(1===n&&$("prev"),y(t=>(t-n+e)%e))}})()};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",t),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}},[B,F]);const H=xe(0),W=xe(0),U=xe(null),Z=ke(e=>{H.current=e.touches[0].clientX,W.current=e.touches[0].clientY,U.current=null,C(!0),w(0)},[]),q=ke(e=>{const t=e.touches[0].clientX-H.current,n=e.touches[0].clientY-W.current;null===U.current&&(U.current=Math.abs(t)>Math.abs(n)),U.current&&(e.preventDefault(),w(t))},[]),V=ke(e=>{C(!1);const t=e.changedTouches[0].clientX-H.current;w(0),U.current&&(t<-50?B():t>50&&F())},[B,F]);ye(()=>{N.current.forEach((e,t)=>{const n=e?.querySelector("video");n&&(t===v?n.play().catch(()=>{}):n.pause())})},[v]),ye(()=>{if(null!==j.current&&m>O.current&&j.current<m&&(y(j.current),o?.(e.id,`ugcCard-${j.current}`),j.current=null),m<O.current&&v>=m){const t=Math.max(0,m-1);y(t),o?.(e.id,`ugcCard-${t}`)}O.current=m},[m]),ye(()=>{const t=h.map(e=>e.id).join(",");if(t!==R.current){if(null!==z.current){const t=z.current;t>=0&&t<m&&(y(t),setTimeout(()=>o?.(e.id,`ugcCard-${t}`),50),z.current=null)}R.current=t}},[h]);const Y=(t,n)=>{const o="before"===n?t:t+1,r={id:`ugc-${Date.now()}`,image:{type:"image",src:"",alt:""}};j.current=o,i?.(e.id,"addItem",JSON.stringify({index:o,item:r,arrayName:"mediaCards"}))},G=t=>{i?.(e.id,"removeItem",JSON.stringify({index:t,arrayName:"mediaCards"}))},J=(t,n)=>{z.current=n,i?.(e.id,"moveItem",JSON.stringify({from:t,to:n,arrayName:"mediaCards",focusElementId:`ugcCard-${n}`}))},X=t=>{i?.(e.id,"__productPicker__",JSON.stringify({cardIndex:t}))},K=e=>{let t=(e-v+m)%m;return t>m/2&&(t-=m),t};return L.current=d?288:Zt,ie("div",{class:"relative w-full overflow-hidden",style:f,children:ie("div",{class:"py-10 lg:py-16",children:[l&&ie("div",{class:`px-7 lg:px-16 mb-10 ${b}`,children:ie(Oe,{sectionId:e.id,field:"headline",value:l,as:"h2",class:"pb-text-h2 tracking-[-0.8px]"})}),ie("div",{class:d?"hidden":c?"block relative select-none":"hidden md:block relative select-none",style:{height:660,cursor:k?"grabbing":"grab"},onMouseDown:D,onClickCapture:e=>{P.current&&e.stopPropagation()},children:[ie("div",{class:"relative w-full h-full",style:{clipPath:"inset(-50px 0 0 0)"},children:h.map((t,i)=>{const{x:r,height:a,opacity:l,transition:s,zIndex:d}=(e=>{const t=K(e);let n=t+x/Zt;n>m/2?n-=m:n<-m/2&&(n+=m);const i=Math.abs(n),o=Math.round(540+60*Math.max(0,1-i)),r=n*Zt,a=h[e]?.id===_;return{x:r,height:o,opacity:1,transition:k||a?"height 0.15s ease":"transform 380ms cubic-bezier(0.4,0,0.2,1), height 380ms cubic-bezier(0.4,0,0.2,1)",zIndex:0===t?3:1===Math.abs(t)?2:1}})(i),c=i===v,u=Vt(t);return ie("div",{ref:e=>{N.current[i]=e},class:"absolute top-1/2 left-1/2",style:{width:320,height:a,transform:`translate(calc(-50% + ${r}px), -50%)`,opacity:l,transition:s,zIndex:d,willChange:"transform, height"},onClick:()=>{P.current||c||(K(i)<0?F():B())},children:[ie(lt,{sectionId:e.id,elementId:`ugcCard-${i}`,index:i,totalCount:m,minCount:5,maxCount:10,label:`Card ${i+1}`,onAdd:e=>Y(i,e),onRemove:m>5?()=>G(i):void 0,onMoveLeft:i>0?()=>J(i,i-1):void 0,onMoveRight:i<m-1?()=>J(i,i+1):void 0,fillWidth:!0,children:ie(Gt,{card:t,index:i,sectionId:e.id,imgData:u,isCenter:c,isPreviewMode:!!c&&n,onOpenProductPicker:X,height:a,transition:s})}),n&&!c&&ie("div",{style:{position:"absolute",inset:0,zIndex:3,cursor:"pointer"},onClick:t=>{P.current||(t.stopPropagation(),K(i)<0?F():B(),o?.(e.id,`ugcCard-${i}`))}})]},t.id)})}),ie("div",{class:"absolute inset-0 mx-auto pointer-events-none",style:{maxWidth:m*Zt-20,zIndex:10},children:[ie("div",{class:"absolute inset-y-0 left-0 pointer-events-none",style:{width:320,background:`linear-gradient(to right, ${g}, transparent)`}}),ie("div",{class:"absolute inset-y-0 right-0 pointer-events-none",style:{width:320,background:`linear-gradient(to left, ${g}, transparent)`}})]})]}),ie("div",{class:c?"hidden":d?"relative w-full select-none":"relative md:hidden w-full select-none",onTouchStart:Z,onTouchMove:q,onTouchEnd:V,onMouseDown:D,onClickCapture:e=>{P.current&&e.stopPropagation()},style:{height:566,overflow:"hidden",cursor:k?"grabbing":"grab",touchAction:"pan-y"},children:[ie("div",{class:"relative w-full h-full",children:h.map((t,i)=>{const{x:r,transition:a,zIndex:l}=(e=>{const t=K(e);let n=t+x/288;n>m/2?n-=m:n<-m/2&&(n+=m);const i=288*n,o=h[e]?.id===_;return{x:i,transition:k||o?"none":"transform 380ms cubic-bezier(0.4,0,0.2,1)",zIndex:0===t?3:1===Math.abs(t)?2:1}})(i),s=i===v,d=Vt(t);return ie("div",{ref:e=>{N.current[i]=e},class:"absolute top-1/2 left-1/2",style:{width:280,height:506,transform:`translate(calc(-50% + ${r}px), -50%)`,transition:a,zIndex:l,willChange:"transform"},onClick:()=>{P.current||s||(K(i)<0?F():B())},children:[ie(lt,{sectionId:e.id,elementId:`ugcCard-${i}`,index:i,totalCount:m,minCount:5,maxCount:10,label:`Card ${i+1}`,onAdd:e=>Y(i,e),onRemove:m>5?()=>G(i):void 0,onMoveLeft:i>0?()=>J(i,i-1):void 0,onMoveRight:i<m-1?()=>J(i,i+1):void 0,fillWidth:!0,children:ie(Gt,{card:t,index:i,sectionId:e.id,imgData:d,isCenter:s,isPreviewMode:!!s&&n,onOpenProductPicker:X,height:506,transition:"none"})}),n&&!s&&ie("div",{style:{position:"absolute",inset:0,zIndex:3,cursor:"pointer"},onClick:t=>{P.current||(t.stopPropagation(),K(i)<0?F():B(),o?.(e.id,`ugcCard-${i}`))}})]},t.id)})}),ie("div",{class:"absolute inset-y-0 left-0 w-10 pointer-events-none",style:{zIndex:10,background:`linear-gradient(to right, ${g}, transparent)`}}),ie("div",{class:"absolute inset-y-0 right-0 w-10 pointer-events-none",style:{zIndex:10,background:`linear-gradient(to left, ${g}, transparent)`}})]})]})})}function Gt({card:e,index:t,sectionId:n,imgData:i,isCenter:o,isPreviewMode:r,onOpenProductPicker:a,height:l,transition:s}){return ie("div",{class:"relative w-full overflow-hidden",style:{height:l,transition:s},children:[ie(Jt,{card:e,index:t,sectionId:n,imgData:i,isCenter:o}),ie(Xt,{card:e,cardIndex:t,isPreviewMode:r,onOpenProductPicker:a})]})}function Jt({card:e,index:t,sectionId:n,imgData:i,isCenter:o}){return ie(j,{children:[ie(Ue,{sectionId:n,field:`mediaCards.${t}.image`,src:i.src,srcMobile:i.srcMobile,alt:i.alt||`UGC card ${t+1}`,mediaType:i.type,focalPoint:i.focalPoint,focalPointMobile:i.focalPointMobile,poster:i.poster,allowAudioToggle:!0,showAudioToggle:!0===i.showAudioToggle||"true"===i.showAudioToggle||void 0,autoPlay:o,class:"w-full h-full object-cover",maxWidth:640}),!i.src&&ie("div",{class:"absolute inset-0 flex items-center justify-center bg-gray-100 pointer-events-none",children:ie("svg",{width:"56",height:"56",viewBox:"0 0 56 56",fill:"none",children:[ie("rect",{width:"56",height:"56",rx:"10",fill:"#E5E7EB"}),ie("path",{d:"M20 36l5-6 3.5 4 5-6.5 7.5 8.5H15z",fill:"#9CA3AF"}),ie("circle",{cx:"21",cy:"21",r:"4",fill:"#9CA3AF"})]})})]})}function Xt({card:e,cardIndex:t,isPreviewMode:n,onOpenProductPicker:i}){const o=e.product;return o?.title?ie("div",{class:"absolute bottom-[8px] left-[8px] right-[8px]",style:{pointerEvents:"none"},children:ie("a",{href:`/products/${o.handle}`,class:"flex items-center gap-[16px] bg-white border border-[#e8e8e8] rounded-[12px] p-[8px] opacity-90",style:{textDecoration:"none",color:"inherit",position:"relative",zIndex:8,pointerEvents:"auto"},onClick:n?e=>{e.preventDefault(),e.stopPropagation(),i(t)}:void 0,children:[ie("div",{class:"w-[60px] h-[64px] flex-shrink-0 rounded-lg overflow-hidden bg-[#f7f6f9]",children:o.image&&ie("img",{src:o.image,alt:o.title,class:"w-full h-full object-cover"})}),ie("div",{class:"flex-1 min-w-0",children:[ie("p",{class:"font-bold text-[12px] leading-[18px] text-[#05181b] truncate",children:o.title}),o.price&&ie("p",{class:"text-[12px] leading-[18px] text-gray-500",children:o.price})]}),ie("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"flex-shrink-0 text-gray-400",children:ie("path",{d:"M6 3l5 5-5 5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})})]})}):n?ie("div",{class:"absolute bottom-[8px] left-[8px] right-[8px]",style:{pointerEvents:"none"},children:ie("button",{class:"w-full flex items-center gap-[16px] bg-white border border-[#e8e8e8] rounded-[12px] p-[8px] opacity-90 hover:bg-gray-50 cursor-pointer",style:{position:"relative",zIndex:8,pointerEvents:"auto"},onClick:e=>{e.stopPropagation(),i(t)},children:[ie("div",{class:"w-[60px] h-[64px] flex-shrink-0 rounded-lg bg-[#f7f6f9] flex items-center justify-center",children:ie("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:ie("path",{d:"M8 3v10M3 8h10",stroke:"#9CA3AF","stroke-width":"1.5","stroke-linecap":"round"})})}),ie("div",{class:"flex-1 min-w-0 text-left",children:[ie("p",{class:"font-bold text-[12px] leading-[18px] text-[#05181b]",children:"Add product"}),ie("p",{class:"text-[12px] leading-[18px] text-gray-400",children:"Click to select"})]}),ie("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"flex-shrink-0 text-gray-400",children:ie("path",{d:"M6 3l5 5-5 5",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})})]})}):null}function Kt({section:e,variantId:t,edits:n,brandColors:i}){switch(e.content.layout||"text-triple"){case"text-image":return ie(pt,{section:e,variantId:t,edits:n,brandColors:i});case"text-single":return ie(mt,{section:e,variantId:t,edits:n,brandColors:i});case"text-press":return ie(ft,{section:e,variantId:t,edits:n,brandColors:i});case"text-press-image":return ie(gt,{section:e,variantId:t,edits:n,brandColors:i});case"ugc-slider":return ie(Yt,{section:e,variantId:t,edits:n,brandColors:i});default:return ie(ut,{section:e,variantId:t,edits:n,brandColors:i})}}function Qt({section:e,variantId:t,brandColors:n}){const{images:i,backgroundColor:o}=e.content,{notifyColorChanged:r,isPreviewMode:a,requestUrlEdit:l}=je(),s=Xe(o,n),d=(t,n)=>{r?.(e.id,"moveItem",JSON.stringify({from:t,to:n,focusElementId:`item-${n}`}))},c=({extraClass:e})=>ie("div",{class:`absolute left-3 top-3 w-[24px] h-[24px] pointer-events-none ${e||""}`,children:ie("svg",{viewBox:"0 0 24 24",fill:"white",class:"w-full h-full drop-shadow-lg",children:ie("path",{d:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"})})}),u="(min-width: 768px) 25vw, 50vw",p=(t,n)=>a?ie("div",{class:"relative w-full aspect-square overflow-hidden",children:[ie(Ue,{sectionId:e.id,field:`images.${n}.src`,src:t.src,alt:t.alt,mediaType:t.mediaType,poster:t.poster,focalPoint:t.focalPoint,class:"w-full h-full object-cover",maxWidth:720,maxWidthMobile:375,sizes:u}),ie(c,{extraClass:"z-10"})]}):t.url&&"#"!==t.url?ie("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",class:"relative aspect-square overflow-hidden group block w-full",children:[ie(Ue,{sectionId:e.id,field:`images.${n}.src`,src:t.src,alt:t.alt,mediaType:t.mediaType,poster:t.poster,focalPoint:t.focalPoint,class:"w-full h-full object-cover transition-transform group-hover:scale-105",maxWidth:720,maxWidthMobile:375,sizes:u}),ie(c,{})]}):ie("div",{class:"relative aspect-square overflow-hidden group block w-full",children:[ie(Ue,{sectionId:e.id,field:`images.${n}.src`,src:t.src,alt:t.alt,mediaType:t.mediaType,poster:t.poster,focalPoint:t.focalPoint,class:"w-full h-full object-cover transition-transform group-hover:scale-105",maxWidth:720,maxWidthMobile:375,sizes:u}),ie(c,{})]}),h=(t,n,o)=>ie("div",{class:o,style:{minWidth:0},children:ie(lt,{sectionId:e.id,elementId:`item-${n}`,index:n,totalCount:i.length,minCount:4,maxCount:4,label:`Image ${n+1}`,onAdd:t=>((t,n)=>{const i={id:`image-${Date.now()}`,src:"https://placehold.co/400x400",alt:"Instagram post",url:"#"};r?.(e.id,"addItem",JSON.stringify({index:"before"===n?t:t+1,item:i}))})(n,t),onMoveLeft:n>0?()=>d(n,n-1):void 0,onMoveRight:n<i.length-1?()=>d(n,n+1):void 0,fillWidth:!0,supportsColorPicker:!1,currentUrl:t.url,onUrlClick:()=>(t=>{const n=i[t]?.url||"";l?.(e.id,`images.${t}.url`,n)})(n),children:p(t,n)},t.id)},`wrapper-${t.id}`);return ie("div",{class:"relative w-full",style:s,children:ie("div",{class:"flex flex-col items-center justify-center",children:ie("div",{class:"w-full flex flex-col gap-2.5 items-start px-0 py-8 md:py-16",children:[ie("div",{class:"hidden md:flex gap-2.5 items-start w-full",children:i.map((e,t)=>h(e,t,"flex-1"))}),ie("div",{class:"flex md:hidden flex-wrap gap-2.5 w-full",children:i.map((e,t)=>h(e,t,"flex-[0_0_calc(50%-5px)]"))})]})})})}function en({section:e,variantId:t,edits:n,brandColors:i}){const{images:o,backgroundColor:r,layout:a="horizontal-carousel",alignment:l="center",headline:s,description:d,primaryCta:c,visibility:u}=e.content,{notifyColorChanged:p,isPreviewMode:h,readOnly:m,requestUrlEdit:f,viewport:g}=je(),b=h&&"mobile"===g,v=h&&"desktop"===g,y="two-row"===a,x=y?6:"5050-carousel"===a?8:4,w=Xe(r,i),k=Je(r,i),C=Ee(t,e.id,"headline",s||"Follow Us",n),_=Ee(t,e.id,"description",d||"Check out our latest posts.",n),I=("string"==typeof c?c:c?.text)||"Follow Us",S=Ee(t,e.id,"primaryCta.text",I,n),M="true"===u?.headline||!0===u?.headline,A="true"===u?.description||!0===u?.description,T="true"===u?.primaryCta||!0===u?.primaryCta,E=M||A,P=t=>{p?.(e.id,`visibility.${t}`,"false")},L=t=>{p?.(e.id,`visibility.${t}`,"true")},N=()=>{const t=("string"==typeof c?"":c?.url)||"";f?.(e.id,"primaryCta.url",t)},j=e=>{h&&!m||(e.preventDefault(),qe())},z=t=>{p?.(e.id,"primaryCta.backgroundColor",t)},O=(t,n)=>{const i={id:`image-${Date.now()}`,src:"https://placehold.co/400x400",alt:"Social media post",url:"#"};p?.(e.id,"addItem",JSON.stringify({index:"before"===n?t:t+1,item:i}))},R=(t,n)=>{p?.(e.id,"moveItem",JSON.stringify({from:t,to:n,focusElementId:`item-${n}`}))},$=t=>{const n=o[t]?.url||"";f?.(e.id,`images.${t}.url`,n)},B="right"===l?"text-right items-end":"left"===l?"text-left items-start":"text-center items-center",F="right"===l?"justify-end":"left"===l?"justify-start":"justify-center",D=({extraClass:e})=>ie("div",{class:`absolute left-3 top-3 w-[24px] h-[24px] pointer-events-none ${e||""}`,children:ie("svg",{viewBox:"0 0 24 24",fill:"white",class:"w-full h-full drop-shadow-lg",children:ie("path",{d:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"})})}),H=y?"(min-width: 768px) 33vw, 50vw":"(min-width: 768px) 25vw, 50vw",W=(t,n)=>h?ie("div",{class:"relative w-full aspect-square overflow-hidden",children:[ie(Ue,{sectionId:e.id,field:`images.${n}.src`,src:t.src,alt:t.alt,mediaType:t.mediaType,poster:t.poster,focalPoint:t.focalPoint,class:"w-full h-full object-cover",maxWidth:720,maxWidthMobile:375,sizes:H}),ie(D,{extraClass:"z-10"})]}):t.url&&"#"!==t.url?ie("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",class:"relative aspect-square overflow-hidden group block w-full",children:[ie(Ue,{sectionId:e.id,field:`images.${n}.src`,src:t.src,alt:t.alt,mediaType:t.mediaType,poster:t.poster,focalPoint:t.focalPoint,class:"w-full h-full object-cover transition-transform group-hover:scale-105",maxWidth:720,maxWidthMobile:375,sizes:H}),ie(D,{})]}):ie("div",{class:"relative aspect-square overflow-hidden group block w-full",children:[ie(Ue,{sectionId:e.id,field:`images.${n}.src`,src:t.src,alt:t.alt,mediaType:t.mediaType,poster:t.poster,focalPoint:t.focalPoint,class:"w-full h-full object-cover transition-transform group-hover:scale-105",maxWidth:720,maxWidthMobile:375,sizes:H}),ie(D,{})]}),U=(t,n,i)=>ie("div",{class:i,style:{minWidth:0},children:ie(lt,{sectionId:e.id,elementId:`item-${n}`,index:n,totalCount:o.length,minCount:4,maxCount:x,label:`Image ${n+1}`,onAdd:e=>O(n,e),onMoveLeft:n>0?()=>R(n,n-1):void 0,onMoveRight:n<o.length-1?()=>R(n,n+1):void 0,fillWidth:!0,supportsColorPicker:!1,currentUrl:t.url,onUrlClick:()=>$(n),children:W(t,n)},t.id)},`wrapper-${t.id}`),Z="5050-grid"===a||"5050-carousel"===a,q=()=>ie("div",{class:`flex flex-col gap-3 w-full ${B}`,children:[M&&ie("div",{class:`flex flex-wrap gap-2 items-baseline ${F} w-full`,children:ie(nt,{sectionId:e.id,elementId:"headline",elementType:"heading",label:"Heading",onRemove:Z?void 0:()=>P("headline"),addZoneAbove:void 0,addZoneBelow:A?void 0:{elementId:"description",elementLabel:"Text",onAdd:()=>L("description")},children:ie(Oe,{sectionId:e.id,field:"headline",value:C,as:"span",class:"pb-text-h3 md:text-[40px] md:leading-[54px] tracking-[-0.48px] md:tracking-[-0.8px]"})})}),A&&ie("div",{class:`flex ${F} w-full`,children:ie(nt,{sectionId:e.id,elementId:"description",elementType:"text",label:"Text",onRemove:()=>P("description"),addZoneAbove:M?void 0:{elementId:"headline",elementLabel:"Heading",onAdd:()=>L("headline")},addZoneBelow:T?void 0:{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>L("primaryCta")},children:ie(Oe,{sectionId:e.id,field:"description",value:_,as:"p",class:"pb-text-body "+("center"===l?"text-center":"right"===l?"text-right":"text-left")})})}),T&&ie("div",{class:`flex ${F} w-full`,children:ie(nt,{sectionId:e.id,elementId:"primaryCta",elementType:"button",label:"Button",currentColor:c?.backgroundColor,sectionBackgroundColor:k,onColorChange:z,onRemove:()=>P("primaryCta"),currentUrl:("string"==typeof c?"":c?.url)||"",onUrlClick:N,brandColors:i,supportsColorPicker:!0,addZoneAbove:A?void 0:{elementId:"description",elementLabel:"Text",onAdd:()=>L("description")},children:ie(et,{variant:c?.variant||"primary",backgroundColor:c?.backgroundColor,brandColors:i,onClick:j,children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:S,as:"span"})})})})]}),V=()=>E||T||!h||m?null:ie("div",{class:"pb-el-wrap",style:{position:"absolute",top:0,left:0,right:0,height:"64px",zIndex:10,display:"flex",alignItems:"center",justifyContent:"center"},children:ie("div",{class:"pb-add-overlay",style:{display:"flex",gap:"8px"},children:ie("button",{type:"button",class:"pb-add-pill",onClick:e=>{e.preventDefault(),e.stopPropagation(),L("headline")},style:{display:"flex",alignItems:"center",gap:"4px",backgroundColor:"#818cf8",color:"white",border:"none",borderRadius:"12px",padding:"4px 12px",fontSize:"12px",fontWeight:500,cursor:"pointer",whiteSpace:"nowrap",fontFamily:"Inter, system-ui, -apple-system, sans-serif",transition:"box-shadow 0.15s ease"},children:[ie("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:ie("path",{d:"M5 2V8M2 5H8",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})}),"Heading"]})})});if(y){const e=E||T;return ie("div",{class:"relative w-full",style:w,children:[V(),ie("div",{class:`w-full flex flex-col ${e?"gap-4 md:gap-6":""} py-8 md:py-16 xl:max-w-[1360px] mx-auto`,children:[e&&ie("div",{class:"px-4 md:px-8 lg:px-12 xl:px-0",children:q()}),ie("div",{class:(b?"hidden":v?"grid":"hidden md:grid")+" gap-2.5 w-full",style:{gridTemplateColumns:"repeat(3, 1fr)"},children:o.map((e,t)=>U(e,t,"w-full"))}),ie("div",{class:(v?"hidden":b?"grid":"grid md:hidden")+" gap-2.5 w-full",style:{gridTemplateColumns:"repeat(2, 1fr)"},children:o.map((e,t)=>U(e,t,"w-full"))})]})]})}if("5050-grid"===a)return ie("div",{class:"relative w-full",style:w,children:[ie("div",{class:`${b?"hidden":v?"flex":"hidden md:flex"} w-full max-w-[1440px] mx-auto p-6 lg:p-10 xl:p-20 gap-6 lg:gap-10 xl:gap-20 ${"right"===l?"flex-row-reverse":""}`,children:[ie("div",{class:"w-1/2 flex flex-col justify-center items-center",children:ie("div",{class:"max-w-[440px] w-full",children:q()})}),ie("div",{class:"w-1/2 flex items-center justify-center",children:ie("div",{class:"grid grid-cols-2 gap-2.5 w-full",children:o.map((e,t)=>U(e,t,"w-full"))})})]}),ie("div",{class:(v?"hidden":b?"flex":"flex md:hidden")+" flex-col gap-4 py-8",children:[ie("div",{class:"px-4",children:q()}),ie("div",{class:"grid grid-cols-2 gap-2.5 w-full",children:o.map((e,t)=>U(e,t,"w-full"))})]})]});if("5050-carousel"===a){const t="right"===l,n=!h||m,i=o.map((e,t)=>({image:e,idx:t})).filter((e,t)=>t%2==0),r=o.map((e,t)=>({image:e,idx:t})).filter((e,t)=>t%2!=0),a=[...i,...i,...i,...i],s=[...r,...r,...r,...r];return ie("div",{class:"relative w-full overflow-hidden",style:w,children:[ie("div",{class:`${b?"hidden":v?"flex":"hidden md:flex"} w-full max-w-[1440px] mx-auto ${t?"flex-row-reverse":""}`,style:{height:"720px"},children:[ie("div",{class:"w-1/2 flex flex-col justify-center items-center p-6 lg:p-10 xl:p-20",children:ie("div",{class:"max-w-[440px] w-full",children:q()})}),ie("div",{class:"w-1/2 flex gap-3 h-full overflow-hidden pb-scroll-pause",children:[ie("div",{class:"flex-1",style:{overflowY:"hidden",overflowX:"hidden"},children:ie("div",{class:"flex flex-col pb-scroll-track",style:{animation:"scroll-down 150s linear infinite"},children:a.map((t,r)=>r<i.length&&!n?ie("div",{class:"w-full mb-3",style:{minWidth:0},children:ie(lt,{sectionId:e.id,elementId:`item-${t.idx}`,index:t.idx,totalCount:o.length,minCount:4,maxCount:x,label:`Image ${t.idx+1}`,onAdd:e=>O(t.idx,e),onMoveLeft:t.idx>0?()=>R(t.idx,t.idx-1):void 0,onMoveRight:t.idx<o.length-1?()=>R(t.idx,t.idx+1):void 0,fillWidth:!0,supportsColorPicker:!1,currentUrl:t.image.url,onUrlClick:()=>$(t.idx),edgeDirection:"vertical",children:W(t.image,t.idx)})},`c1p-${t.idx}`):ie("div",{class:"w-full aspect-square overflow-hidden relative mb-3",children:W(t.image,t.idx)},`c1-${r}`))})}),ie("div",{class:"flex-1",style:{overflowY:"hidden",overflowX:"hidden"},children:ie("div",{class:"flex flex-col pb-scroll-track",style:{animation:"scroll-up 150s linear infinite",animationDelay:"-4s"},children:s.map((t,i)=>i<r.length&&!n?ie("div",{class:"w-full mb-3",style:{minWidth:0},children:ie(lt,{sectionId:e.id,elementId:`item-${t.idx}`,index:t.idx,totalCount:o.length,minCount:4,maxCount:x,label:`Image ${t.idx+1}`,onAdd:e=>O(t.idx,e),onMoveLeft:t.idx>0?()=>R(t.idx,t.idx-1):void 0,onMoveRight:t.idx<o.length-1?()=>R(t.idx,t.idx+1):void 0,fillWidth:!0,supportsColorPicker:!1,currentUrl:t.image.url,onUrlClick:()=>$(t.idx),edgeDirection:"vertical",children:W(t.image,t.idx)})},`c2p-${t.idx}`):ie("div",{class:"w-full aspect-square overflow-hidden relative mb-3",children:W(t.image,t.idx)},`c2-${i}`))})})]})]}),ie("div",{class:(v?"hidden":b?"flex":"flex md:hidden")+" flex-col gap-4 py-8",children:[ie("div",{class:"px-4",children:q()}),ie("div",{class:"flex flex-col gap-2.5 overflow-hidden pb-scroll-pause",children:[ie("div",{style:{overflowX:"hidden",overflowY:"hidden"},children:ie("div",{class:"flex pb-scroll-track",style:{width:"max-content",animation:"scroll-right 150s linear infinite"},children:a.map((t,r)=>ie("div",r<i.length&&!n?{class:"mr-[10px]",style:{width:"182px",height:"182px",flexShrink:0,minWidth:0},children:ie(lt,{sectionId:e.id,elementId:`item-${t.idx}`,index:t.idx,totalCount:o.length,minCount:4,maxCount:x,label:`Image ${t.idx+1}`,onAdd:e=>O(t.idx,e),onMoveLeft:t.idx>0?()=>R(t.idx,t.idx-1):void 0,onMoveRight:t.idx<o.length-1?()=>R(t.idx,t.idx+1):void 0,fillWidth:!0,supportsColorPicker:!1,currentUrl:t.image.url,onUrlClick:()=>$(t.idx),children:W(t.image,t.idx)})}:{class:"overflow-hidden relative mr-[10px]",style:{width:"182px",height:"182px",flexShrink:0},children:W(t.image,t.idx)},`r1-${r}`))})}),ie("div",{style:{overflowX:"hidden",overflowY:"hidden"},children:ie("div",{class:"flex pb-scroll-track",style:{width:"max-content",animation:"scroll-banner 150s linear infinite",animationDelay:"-4s"},children:s.map((t,i)=>ie("div",i<r.length&&!n?{class:"mr-[10px]",style:{width:"182px",height:"182px",flexShrink:0,minWidth:0},children:ie(lt,{sectionId:e.id,elementId:`item-${t.idx}`,index:t.idx,totalCount:o.length,minCount:4,maxCount:x,label:`Image ${t.idx+1}`,onAdd:e=>O(t.idx,e),onMoveLeft:t.idx>0?()=>R(t.idx,t.idx-1):void 0,onMoveRight:t.idx<o.length-1?()=>R(t.idx,t.idx+1):void 0,fillWidth:!0,supportsColorPicker:!1,currentUrl:t.image.url,onUrlClick:()=>$(t.idx),children:W(t.image,t.idx)})}:{class:"overflow-hidden relative mr-[10px]",style:{width:"182px",height:"182px",flexShrink:0},children:W(t.image,t.idx)},`r2-${i}`))})})]})]})]})}const Y=E||T;return ie("div",{class:"relative w-full",style:w,children:[V(),ie("div",{class:"flex flex-col items-center justify-center",children:ie("div",{class:`w-full flex flex-col ${Y?"gap-4 md:gap-6":""} items-start px-0 py-8 md:py-16`,children:[Y&&ie("div",{class:"w-full xl:max-w-[1360px] mx-auto px-4 md:px-8 lg:px-12 xl:px-16",children:q()}),ie("div",{class:(b?"hidden":v?"flex":"hidden md:flex")+" gap-2.5 items-start w-full",children:o.map((e,t)=>U(e,t,"flex-1"))}),ie("div",{class:(v?"hidden":b?"flex":"flex md:hidden")+" flex-wrap gap-2.5 w-full",children:o.map((e,t)=>U(e,t,"flex-[0_0_calc(50%-5px)]"))})]})})]})}function tn({section:e,variantId:t,edits:n,brandColors:i}){switch(e.content.layout||"video-contained"){case"video-full-bleed":return ie(rn,{section:e,variantId:t,edits:n,brandColors:i});case"video-tall":return ie(an,{section:e,variantId:t,edits:n,brandColors:i});default:return ie(on,{section:e,variantId:t,edits:n,brandColors:i})}}function nn(e,t,n){const{headline:i,body:o,primaryCta:r,image:a}=e.content,l=Ee(t,e.id,"headline",i||"Add Heading",n),s=Ee(t,e.id,"body",o||"Add your content here.",n),d=("string"==typeof r?r:r?.text)||"Call to Action";return{displayHeadline:l,displayBody:s,displayCtaText:Ee(t,e.id,"primaryCta.text",d,n),imageData:Le(t,e.id,"image",{src:a.src,srcMobile:a.srcMobile,focalPoint:a.focalPoint,focalPointMobile:a.focalPointMobile,type:a.type,poster:a.poster,posterMobile:a.posterMobile,showAudioToggle:a.showAudioToggle},n)}}function on({section:e,variantId:t,edits:n,brandColors:i}){const{backgroundColor:o,primaryCta:r,image:a,alignment:l="left",visibility:s}=e.content,{isPreviewMode:d,readOnly:c,notifyColorChanged:u}=je(),{displayHeadline:p,displayBody:h,displayCtaText:m,imageData:f}=nn(e,t,n),g=Xe(o,i),b=Je(o,i),v=function(e){switch(e){case"center":return{text:"text-center items-center",button:"mx-auto"};case"right":return{text:"text-right items-end",button:"ml-auto"};default:return{text:"text-left items-start",button:""}}}(l),y="false"!==s?.headline,x="false"!==s?.body,w="false"!==s?.primaryCta,k=e=>{d&&!c||(e.preventDefault(),qe())},C=t=>{u?.(e.id,`visibility.${t}`,"false")},_=t=>{u?.(e.id,`visibility.${t}`,"true")};return ie("div",{class:"w-full",style:g,children:[ie("div",{class:"flex flex-col md:hidden",children:[ie("div",{class:`flex flex-col gap-3 px-4 py-8 ${v.text}`,children:[ie("div",{class:"flex flex-col gap-3",children:[y&&ie(Oe,{sectionId:e.id,field:"headline",value:p,as:"h2",class:"pb-text-h2 tracking-[-0.8px]"}),x&&ie(Oe,{sectionId:e.id,field:"body",value:h,as:"p",class:"pb-text-body"})]}),w&&r&&ie(et,{variant:r.variant||"primary",backgroundColor:r.backgroundColor,brandColors:i,class:`w-fit ${v.button}`,onClick:k,children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:m,as:"span"})})]}),ie(Ue,{sectionId:e.id,field:"image",src:f.src,alt:a.alt,class:"w-[343px] h-[193px] mx-auto object-cover",srcMobile:f.srcMobile,focalPoint:f.focalPoint,focalPointMobile:f.focalPointMobile,maxWidth:1280,maxWidthMobile:768,sizes:"(min-width: 768px) 1280px, 343px",mediaType:f.type,poster:f.poster,posterMobile:f.posterMobile,allowAudioToggle:!0,showAudioToggle:f.showAudioToggle})]}),ie("div",{class:"hidden md:flex flex-col items-center py-16 gap-10 max-w-[1440px] mx-auto",children:[ie("div",{class:`flex flex-col gap-6 w-full max-w-[1280px] px-4 xl:px-0 ${v.text}`,children:[ie("div",{class:"flex flex-col gap-3 max-w-[712px] "+("center"===l?"items-center":"right"===l?"items-end":""),style:"right"===l?{marginLeft:"auto"}:"center"===l?{margin:"0 auto"}:void 0,children:[ie(nt,{sectionId:e.id,elementId:"headline",elementType:"text",label:"Heading",addZoneBelow:x?void 0:{elementId:"body",elementLabel:"Subheading",onAdd:()=>_("body")},children:ie(Oe,{sectionId:e.id,field:"headline",value:p,as:"h2",class:"pb-text-h2 tracking-[-0.8px]"})}),x&&ie(nt,{sectionId:e.id,elementId:"body",elementType:"text",label:"Subheading",onRemove:()=>C("body"),addZoneBelow:w?void 0:{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>_("primaryCta")},children:ie(Oe,{sectionId:e.id,field:"body",value:h,as:"p",class:"pb-text-body"})})]}),w&&r&&ie("div",{class:"right"===l?"flex justify-end":"center"===l?"flex justify-center":"",children:ie(nt,{sectionId:e.id,elementId:"primaryCta",elementType:"button",label:"Button",currentColor:r.backgroundColor,sectionBackgroundColor:b,onColorChange:t=>{u?.(e.id,"primaryCta.backgroundColor",t)},brandColors:i,supportsColorPicker:!0,onRemove:()=>C("primaryCta"),addZoneAbove:x?void 0:{elementId:"body",elementLabel:"Subheading",onAdd:()=>_("body")},children:ie(et,{variant:r.variant||"primary",backgroundColor:r.backgroundColor,brandColors:i,class:"w-fit",onClick:k,children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:m,as:"span"})})})})]}),ie("div",{class:"relative w-full max-w-[1280px] px-4 xl:px-0",children:ie(Ue,{sectionId:e.id,field:"image",src:f.src,alt:a.alt,class:"w-full h-auto aspect-video object-cover",srcMobile:f.srcMobile,focalPoint:f.focalPoint,focalPointMobile:f.focalPointMobile,maxWidth:1280,maxWidthMobile:768,sizes:"(min-width: 768px) 1280px, 100vw",mediaType:f.type,poster:f.poster,posterMobile:f.posterMobile,allowAudioToggle:!0,showAudioToggle:f.showAudioToggle})})]})]})}function rn({section:e,variantId:t,edits:n,brandColors:i}){const{backgroundColor:o,primaryCta:r,image:a,alignment:l="left",visibility:s}=e.content,{isPreviewMode:d,readOnly:c,notifyColorChanged:u}=je(),{displayHeadline:p,displayBody:h,displayCtaText:m,imageData:f}=nn(e,t,n),g=Xe(o,i),b="false"!==s?.headline,v="false"!==s?.body,y="false"!==s?.primaryCta,x=e=>{d&&!c||(e.preventDefault(),qe())},w=t=>{u?.(e.id,`visibility.${t}`,"false")},k=t=>{u?.(e.id,`visibility.${t}`,"true")},C=Je(o,i),_="center"===l?"left-1/2 -translate-x-1/2":"right"===l?"right-16":"left-16",I="center"===l?"text-center items-center":"right"===l?"text-right items-end":"";return ie("div",{class:"w-full",style:g,children:[ie("div",{class:"flex flex-col md:hidden",children:[ie("div",{style:{height:"195px"},children:ie(Ue,{sectionId:e.id,field:"image",src:f.src,alt:a.alt,class:"w-full h-full object-cover",srcMobile:f.srcMobile,focalPoint:f.focalPoint,focalPointMobile:f.focalPointMobile,maxWidth:1440,maxWidthMobile:768,sizes:"(min-width: 768px) 1440px, 100vw",mediaType:f.type,poster:f.poster,posterMobile:f.posterMobile,allowAudioToggle:!0,showAudioToggle:f.showAudioToggle})}),ie("div",{class:"flex flex-col gap-3 px-4 py-8",children:[ie("div",{class:"flex flex-col gap-3",children:[b&&ie(Oe,{sectionId:e.id,field:"headline",value:p,as:"h3",class:"pb-text-h3 tracking-[-0.6px]"}),v&&ie(Oe,{sectionId:e.id,field:"body",value:h,as:"p",class:"pb-text-body"})]}),y&&r&&ie(et,{variant:r.variant||"primary",backgroundColor:r.backgroundColor,brandColors:i,class:"w-fit",onClick:x,children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:m,as:"span"})})]})]}),ie("div",{class:"hidden md:block relative w-full",style:{height:"720px"},children:[ie(Ue,{sectionId:e.id,field:"image",src:f.src,alt:a.alt,class:"w-full h-[720px] object-cover",srcMobile:f.srcMobile,focalPoint:f.focalPoint,focalPointMobile:f.focalPointMobile,maxWidth:1920,maxWidthMobile:768,sizes:"100vw",mediaType:f.type,poster:f.poster,posterMobile:f.posterMobile,allowAudioToggle:!0,showAudioToggle:f.showAudioToggle}),ie("div",{class:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 40%, transparent 70%)"}}),ie("div",{class:`absolute bottom-12 ${_} w-[460px] flex flex-col gap-6 ${I}`,style:{color:"white",zIndex:10},children:[ie("div",{class:"flex flex-col gap-3 "+("center"===l?"items-center":"right"===l?"items-end":""),children:[ie(nt,{sectionId:e.id,elementId:"headline",elementType:"text",label:"Heading",addZoneBelow:v?void 0:{elementId:"body",elementLabel:"Subheading",onAdd:()=>k("body")},children:ie(Oe,{sectionId:e.id,field:"headline",value:p,as:"h3",class:"pb-text-h3 tracking-[-0.6px]"})}),v&&ie(nt,{sectionId:e.id,elementId:"body",elementType:"text",label:"Subheading",onRemove:()=>w("body"),addZoneBelow:y?void 0:{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>k("primaryCta")},children:ie(Oe,{sectionId:e.id,field:"body",value:h,as:"p",class:"pb-text-body"})})]}),y&&r&&ie(nt,{sectionId:e.id,elementId:"primaryCta",elementType:"button",label:"Button",currentColor:r.backgroundColor,sectionBackgroundColor:C,onColorChange:t=>{u?.(e.id,"primaryCta.backgroundColor",t)},brandColors:i,supportsColorPicker:!0,onRemove:()=>w("primaryCta"),addZoneAbove:v?void 0:{elementId:"body",elementLabel:"Subheading",onAdd:()=>k("body")},children:ie(et,{variant:r.variant||"primary",backgroundColor:r.backgroundColor,brandColors:i,class:"w-fit",onClick:x,children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:m,as:"span"})})})]})]})]})}function an({section:e,variantId:t,edits:n,brandColors:i}){const{backgroundColor:o,primaryCta:r,image:a,alignment:l="left",visibility:s}=e.content,{isPreviewMode:d,readOnly:c,notifyColorChanged:u}=je(),{displayHeadline:p,displayBody:h,displayCtaText:m,imageData:f}=nn(e,t,n),g=Xe(o,i),b=Je(o,i),v="false"!==s?.headline,y="false"!==s?.body,x="false"!==s?.primaryCta,w=e=>{d&&!c||(e.preventDefault(),qe())},k=t=>{u?.(e.id,`visibility.${t}`,"false")},C=t=>{u?.(e.id,`visibility.${t}`,"true")},_="right"===l;return ie("div",{class:"w-full",style:g,children:[ie("div",{class:"flex flex-col md:hidden",children:[ie("div",{class:"flex flex-col gap-3 px-4 py-8",children:[ie("div",{class:"flex flex-col gap-3",children:[v&&ie(Oe,{sectionId:e.id,field:"headline",value:p,as:"h2",class:"pb-text-h2 tracking-[-0.8px]"}),y&&ie(Oe,{sectionId:e.id,field:"body",value:h,as:"p",class:"pb-text-body"})]}),x&&r&&ie(et,{variant:r.variant||"primary",backgroundColor:r.backgroundColor,brandColors:i,class:"w-fit",onClick:w,children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:m,as:"span"})})]}),ie("div",{class:"px-4 pb-8",children:ie("div",{class:"contain"===a.objectFit?"w-full":"mx-auto overflow-hidden",style:"contain"===a.objectFit?void 0:{width:"343px",height:"588px"},children:ie(Ue,{sectionId:e.id,field:"image",src:f.src,alt:a.alt,class:"w-full "+("contain"===a.objectFit?"":"h-full object-cover"),srcMobile:f.srcMobile,focalPoint:f.focalPoint,focalPointMobile:f.focalPointMobile,maxWidth:940,maxWidthMobile:700,sizes:"(min-width: 768px) 469px, 343px",mediaType:f.type,poster:f.poster,posterMobile:f.posterMobile,objectFit:a.objectFit,allowObjectFitToggle:!0,allowAudioToggle:!0,showAudioToggle:f.showAudioToggle})})})]}),ie("div",{class:"hidden md:flex items-center justify-center py-16 max-w-[1440px] mx-auto",children:ie("div",{class:"flex items-center gap-12 lg:gap-24 xl:gap-[180px] px-4 lg:px-16 xl:px-[80px] w-full "+(_?"flex-row-reverse":""),children:[ie("div",{class:"flex flex-col gap-6 w-full max-w-[385px] shrink-0",children:[ie("div",{class:"flex flex-col gap-3",children:[ie(nt,{sectionId:e.id,elementId:"headline",elementType:"text",label:"Heading",addZoneBelow:y?void 0:{elementId:"body",elementLabel:"Subheading",onAdd:()=>C("body")},children:ie(Oe,{sectionId:e.id,field:"headline",value:p,as:"h2",class:"pb-text-h2 tracking-[-0.8px]"})}),y&&ie(nt,{sectionId:e.id,elementId:"body",elementType:"text",label:"Subheading",onRemove:()=>k("body"),addZoneBelow:x?void 0:{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>C("primaryCta")},children:ie(Oe,{sectionId:e.id,field:"body",value:h,as:"p",class:"pb-text-body"})})]}),x&&r&&ie(nt,{sectionId:e.id,elementId:"primaryCta",elementType:"button",label:"Button",currentColor:r.backgroundColor,sectionBackgroundColor:b,onColorChange:t=>{u?.(e.id,"primaryCta.backgroundColor",t)},brandColors:i,supportsColorPicker:!0,onRemove:()=>k("primaryCta"),addZoneAbove:y?void 0:{elementId:"body",elementLabel:"Subheading",onAdd:()=>C("body")},children:ie(et,{variant:r.variant||"primary",backgroundColor:r.backgroundColor,brandColors:i,class:"w-fit",onClick:w,children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:m,as:"span"})})})]}),ie("div",{class:"flex-1 flex justify-center overflow-hidden",style:{maxWidth:"469px",height:"720px"},children:ie(Ue,{sectionId:e.id,field:"image",src:f.src,alt:a.alt,class:"w-full h-[720px] "+("contain"===a.objectFit?"object-contain":"object-cover"),srcMobile:f.srcMobile,focalPoint:f.focalPoint,focalPointMobile:f.focalPointMobile,maxWidth:940,maxWidthMobile:700,sizes:"(min-width: 768px) 469px, 343px",mediaType:f.type,poster:f.poster,posterMobile:f.posterMobile,objectFit:a.objectFit,allowObjectFitToggle:!0,allowAudioToggle:!0,showAudioToggle:f.showAudioToggle})})]})})]})}function ln({section:e,variantId:t,edits:n,brandColors:i}){switch(e.content.layout||"3-column"){case"2-column-contained":return ie(hn,{section:e,variantId:t,edits:n,brandColors:i});case"2-column-full-bleed":return ie(mn,{section:e,variantId:t,edits:n,brandColors:i});case"3-column-full-bleed":return ie(fn,{section:e,variantId:t,edits:n,brandColors:i});default:return ie(un,{section:e,variantId:t,edits:n,brandColors:i})}}function sn(e,t,n){const i=0===t&&n?n:{type:"image",src:"",alt:""};if(!e||"object"!=typeof e)return{id:String(t+1),image:i,headline:"",body:""};if(0===t&&n&&n.src)return{...e,id:e.id||String(t+1),image:n,headline:e.headline||"",body:e.body||""};const o=e.image,r=o?"string"==typeof o?{type:Re(o)?"video":"image",src:o,alt:""}:o:i;return{...e,id:e.id||String(t+1),image:r,headline:e.headline||"",body:e.body||""}}function dn(e,t=3,n){const i=e&&e.length>0?e.slice(0,t):[],o=[];for(let e=0;e<t;e++)o.push(sn(i[e],e,n));return o}function cn(e){const{visibility:t}=e.content,{isPreviewMode:n,notifyColorChanged:i}=je();return{isTitlesVisible:"false"!==t?.body,isBodyVisible:"false"!==t?.primaryCta,handleRemove:t=>{i?.(e.id,`visibility.${t}`,"false")},handleAdd:t=>{i?.(e.id,`visibility.${t}`,"true")},isPreviewMode:n}}function un({section:e,variantId:t,edits:n,brandColors:i}){const{backgroundColor:o,headline:r,alignment:a="left"}=e.content,l=Xe(o,i),s=dn(e.content.items,3,e.content.image),{isTitlesVisible:d,isBodyVisible:c,handleRemove:u,handleAdd:p,isPreviewMode:h}=cn(e),m=Ee(t,e.id,"headline",r||"Add Heading",n),f="center"===a?"text-center":"right"===a?"text-right":"text-left",{scrollRef:g,handlers:b}=function(e={}){const t=e.threshold??40,n=xe(null),i=xe({phase:"idle",startX:0,suppressClick:!1}),o=ke(()=>{const e=n.current;if(!e)return[];const t=getComputedStyle(e).scrollPaddingLeft,i=t&&"auto"!==t?parseFloat(t):0,o=[];for(let t=0;t<e.children.length;t++){const n=e.children[t],r=getComputedStyle(n).scrollSnapAlign;r&&"none"!==r&&o.push(n.offsetLeft-i)}return o},[]),r=ke((e,t)=>{let n=0,i=1/0;for(let o=0;o<e.length;o++){const r=Math.abs(e[o]-t);r<i&&(i=r,n=o)}return n},[]),a=ke(e=>{if("snapping"===i.current.phase)return;i.current={phase:"detecting",startX:e.pageX,suppressClick:!1};const t=n.current;t&&(t.style.cursor="grab")},[]);return ye(()=>{const e=e=>{const o=i.current;if("detecting"!==o.phase&&"dragging"!==o.phase)return;const r=e.pageX-o.startX;if("detecting"===o.phase&&Math.abs(r)>t){o.phase="dragging";const e=n.current;e&&(e.style.cursor="grabbing")}"dragging"===o.phase&&e.preventDefault()},a=e=>{const t=i.current,a=n.current;if("detecting"===t.phase)return t.phase="idle",void(a&&(a.style.cursor="grab"));if("dragging"!==t.phase)return;const l=e.pageX-t.startX,s=o();if(!a||0===s.length)return void(t.phase="idle");const d=r(s,a.scrollLeft),c=l<0?Math.min(d+1,s.length-1):Math.max(d-1,0);t.suppressClick=!0,t.phase="snapping";const u=a.style.scrollSnapType;a.style.scrollSnapType="none",a.style.cursor="grab",a.scrollTo({left:s[c],behavior:"smooth"});const p=()=>{a.style.scrollSnapType=u,i.current.phase="idle"};"onscrollend"in a?(a.addEventListener("scrollend",p,{once:!0}),setTimeout(()=>{"snapping"===i.current.phase&&p()},600)):setTimeout(p,500)};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",a),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",a)}},[t,o,r]),ye(()=>{const e=n.current;e&&(e.style.cursor="grab")},[]),ye(()=>{const e=n.current;if(!e)return;const t=e=>{i.current.suppressClick&&(e.stopPropagation(),e.preventDefault(),i.current.suppressClick=!1)};return e.addEventListener("click",t,!0),()=>e.removeEventListener("click",t,!0)},[]),{scrollRef:n,handlers:{onMouseDown:a}}}();return ie("div",{class:"w-full",style:l,children:[ie("div",{class:"flex flex-col md:hidden py-8 gap-6",children:[ie("div",{class:"px-4",children:ie(Oe,{sectionId:e.id,field:"headline",value:m,as:"h2",class:`pb-text-h2 tracking-[-0.8px] ${f}`})}),ie("div",{ref:g,...b,class:"flex gap-4 overflow-x-auto pl-4",style:{scrollSnapType:"x mandatory",scrollPaddingLeft:"16px",WebkitOverflowScrolling:"touch",scrollbarWidth:"none",msOverflowStyle:"none"},children:[s.map((i,o)=>{const r=0===o?"image":`items.${o}.image`,a=Le(t,e.id,r,{src:i.image.src,srcMobile:i.image.srcMobile,focalPoint:i.image.focalPoint,focalPointMobile:i.image.focalPointMobile,type:i.image.type,poster:i.image.poster,posterMobile:i.image.posterMobile},n),l=Ee(t,e.id,`items.${o}.headline`,i.headline||"Card Title",n),s=Ee(t,e.id,`items.${o}.body`,i.body||"Add description",n);return ie("div",{class:"flex flex-col gap-4 shrink-0",style:{width:"80%",scrollSnapAlign:"start"},children:[ie("div",{class:"relative",children:[ie(Ue,{sectionId:e.id,field:r,src:a.src,alt:i.image.alt,class:"w-full aspect-[412/525] object-cover",maxWidth:840,maxWidthMobile:700,sizes:"80vw",mediaType:a.type,poster:a.poster,posterMobile:a.posterMobile}),ie("div",{class:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%)"}})]}),ie("div",{class:"flex flex-col gap-3",children:[d&&ie(Oe,{sectionId:e.id,field:`items.${o}.headline`,value:l,as:"h3",class:"pb-text-h4 tracking-[-0.48px]"}),c&&ie(Oe,{sectionId:e.id,field:`items.${o}.body`,value:s,as:"p",class:"pb-text-body"})]})]},i.id)}),ie("div",{class:"shrink-0",style:{width:"16px"}})]})]}),ie("div",{class:"hidden md:flex flex-col items-center justify-center py-16 gap-10 max-w-[1440px] mx-auto",children:[ie("div",{class:`w-full max-w-[1280px] px-4 xl:px-0 ${f}`,children:ie(Oe,{sectionId:e.id,field:"headline",value:m,as:"h2",class:"pb-text-h2 tracking-[-0.8px]"})}),ie("div",{class:"flex justify-between w-full max-w-[1279px] px-4 xl:px-0 gap-5",children:s.map((i,o)=>{const r=0===o?"image":`items.${o}.image`,a=Le(t,e.id,r,{src:i.image.src,srcMobile:i.image.srcMobile,focalPoint:i.image.focalPoint,focalPointMobile:i.image.focalPointMobile,type:i.image.type,poster:i.image.poster,posterMobile:i.image.posterMobile},n),l=Ee(t,e.id,`items.${o}.headline`,i.headline||"Card Title",n),s=Ee(t,e.id,`items.${o}.body`,i.body||"Add description",n);return ie("div",{class:"flex flex-col gap-4 flex-1",children:[ie("div",{class:"relative",children:[ie(Ue,{sectionId:e.id,field:r,src:a.src,alt:i.image.alt,class:"w-full aspect-[412/525] object-cover",maxWidth:840,maxWidthMobile:600,sizes:"(min-width: 768px) 412px, 260px",mediaType:a.type,poster:a.poster,posterMobile:a.posterMobile}),ie("div",{class:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%)"}})]}),ie("div",{class:"flex flex-col gap-3",children:[d&&ie(nt,{sectionId:e.id,elementId:0===o?"body":`body-${o}`,elementType:"text",label:"Card Titles",onRemove:0===o?()=>u("body"):void 0,addZoneBelow:0!==o||c?void 0:{elementId:"primaryCta",elementLabel:"Card Text",onAdd:()=>p("primaryCta")},children:ie(Oe,{sectionId:e.id,field:`items.${o}.headline`,value:l,as:"h3",class:"pb-text-h4 tracking-[-0.48px]"})}),c&&ie(nt,{sectionId:e.id,elementId:0===o?"primaryCta":`primaryCta-${o}`,elementType:"text",label:"Card Text",onRemove:0===o?()=>u("primaryCta"):void 0,addZoneAbove:0!==o||d?void 0:{elementId:"body",elementLabel:"Card Titles",onAdd:()=>p("body")},children:ie(Oe,{sectionId:e.id,field:`items.${o}.body`,value:s,as:"p",class:"pb-text-body"})}),!d&&!c&&0===o&&h&&ie(nt,{sectionId:e.id,elementId:"body",elementType:"text",label:"Card Titles",addZoneBelow:{elementId:"primaryCta",elementLabel:"Card Text",onAdd:()=>p("primaryCta")},children:ie("div",{style:{height:"1px"}})})]})]},i.id)})})]})]})}function pn({sectionId:e,variantId:t,item:n,idx:i,edits:o,padding:r,height:a,imageMaxWidth:l=720,imageSizes:s="(min-width: 768px) 50vw, 100vw",isTitlesVisible:d,isBodyVisible:c,handleRemove:u,handleAdd:p,isPreviewMode:h}){const m=0===i?"image":`items.${i}.image`,f=Le(t,e,m,{src:n.image.src,srcMobile:n.image.srcMobile,focalPoint:n.image.focalPoint,focalPointMobile:n.image.focalPointMobile,type:n.image.type,poster:n.image.poster,posterMobile:n.image.posterMobile},o),g=Ee(t,e,`items.${i}.headline`,n.headline||"Card Title",o),b=Ee(t,e,`items.${i}.body`,n.body||"Add description",o);return ie("div",{class:`relative flex-1 overflow-hidden flex flex-col justify-end ${r}`,style:{minHeight:a},children:[ie("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0},children:ie(Ue,{sectionId:e,field:m,src:f.src,alt:n.image.alt,class:"w-full h-full object-cover",maxWidth:l,maxWidthMobile:750,sizes:s,mediaType:f.type,poster:f.poster,posterMobile:f.posterMobile})}),ie("div",{class:"absolute inset-0 pointer-events-none",style:{background:"linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, transparent 80%)"}}),ie("div",{class:"relative flex flex-col gap-2",style:{color:"white",zIndex:2},children:[d&&ie(nt,{sectionId:e,elementId:0===i?"body":`body-${i}`,elementType:"text",label:"Card Titles",onRemove:0===i?()=>u("body"):void 0,addZoneBelow:0!==i||c?void 0:{elementId:"primaryCta",elementLabel:"Card Text",onAdd:()=>p("primaryCta")},children:ie(Oe,{sectionId:e,field:`items.${i}.headline`,value:g,as:"h3",class:"pb-text-h3 tracking-[-0.6px]"})}),c&&ie(nt,{sectionId:e,elementId:0===i?"primaryCta":`primaryCta-${i}`,elementType:"text",label:"Card Text",onRemove:0===i?()=>u("primaryCta"):void 0,addZoneAbove:0!==i||d?void 0:{elementId:"body",elementLabel:"Card Titles",onAdd:()=>p("body")},children:ie(Oe,{sectionId:e,field:`items.${i}.body`,value:b,as:"p",class:"pb-text-body"})}),!d&&!c&&0===i&&h&&ie(nt,{sectionId:e,elementId:"body",elementType:"text",label:"Card Titles",addZoneBelow:{elementId:"primaryCta",elementLabel:"Card Text",onAdd:()=>p("primaryCta")},children:ie("div",{style:{height:"1px"}})})]})]})}function hn({section:e,variantId:t,edits:n,brandColors:i}){const{backgroundColor:o}=e.content,r=Xe(o||"secondary",i),a=dn(e.content.items,2,e.content.image),l=cn(e);return ie("div",{class:"w-full",style:r,children:[ie("div",{class:"flex flex-col md:hidden gap-3 p-4",children:a.map((i,o)=>ie(pn,{sectionId:e.id,variantId:t,item:i,idx:o,edits:n,padding:"p-8",height:"290px",mobileHeight:"290px",imageMaxWidth:1280,imageSizes:"(min-width: 768px) 644px, 343px",isTitlesVisible:l.isTitlesVisible,isBodyVisible:l.isBodyVisible,handleRemove:l.handleRemove,handleAdd:l.handleAdd,isPreviewMode:l.isPreviewMode},i.id))}),ie("div",{class:"hidden md:flex gap-6 p-8 lg:p-12 xl:p-16 max-w-[1440px] mx-auto",style:{minHeight:"628px"},children:a.map((i,o)=>ie(pn,{sectionId:e.id,variantId:t,item:i,idx:o,edits:n,padding:"p-8 lg:p-12 xl:p-16",height:"500px",mobileHeight:"290px",imageMaxWidth:1280,imageSizes:"(min-width: 768px) 644px, 343px",isTitlesVisible:l.isTitlesVisible,isBodyVisible:l.isBodyVisible,handleRemove:l.handleRemove,handleAdd:l.handleAdd,isPreviewMode:l.isPreviewMode},i.id))})]})}function mn({section:e,variantId:t,edits:n,brandColors:i}){const{backgroundColor:o}=e.content,r=Xe(o||"secondary",i),a=dn(e.content.items,2,e.content.image),l=cn(e);return ie("div",{class:"w-full",style:r,children:[ie("div",{class:"flex flex-col md:hidden",children:a.map((i,o)=>ie(pn,{sectionId:e.id,variantId:t,item:i,idx:o,edits:n,padding:"p-8",height:"290px",mobileHeight:"290px",imageMaxWidth:1440,imageSizes:"(min-width: 768px) 50vw, 100vw",isTitlesVisible:l.isTitlesVisible,isBodyVisible:l.isBodyVisible,handleRemove:l.handleRemove,handleAdd:l.handleAdd,isPreviewMode:l.isPreviewMode},i.id))}),ie("div",{class:"hidden md:flex w-full",style:{minHeight:"628px"},children:a.map((i,o)=>ie(pn,{sectionId:e.id,variantId:t,item:i,idx:o,edits:n,padding:"p-8 lg:p-12 xl:p-16",height:"628px",mobileHeight:"290px",imageMaxWidth:1440,imageSizes:"(min-width: 768px) 50vw, 100vw",isTitlesVisible:l.isTitlesVisible,isBodyVisible:l.isBodyVisible,handleRemove:l.handleRemove,handleAdd:l.handleAdd,isPreviewMode:l.isPreviewMode},i.id))})]})}function fn({section:e,variantId:t,edits:n,brandColors:i}){const{backgroundColor:o}=e.content,r=Xe(o||"secondary",i),a=dn(e.content.items,3,e.content.image),l=cn(e);return ie("div",{class:"w-full",style:r,children:[ie("div",{class:"flex flex-col md:hidden",children:a.map((i,o)=>ie(pn,{sectionId:e.id,variantId:t,item:i,idx:o,edits:n,padding:"p-6",height:"380px",mobileHeight:"380px",imageMaxWidth:960,imageSizes:"(min-width: 768px) 33vw, 100vw",isTitlesVisible:l.isTitlesVisible,isBodyVisible:l.isBodyVisible,handleRemove:l.handleRemove,handleAdd:l.handleAdd,isPreviewMode:l.isPreviewMode},i.id))}),ie("div",{class:"hidden md:flex w-full",style:{minHeight:"628px"},children:a.map((i,o)=>ie(pn,{sectionId:e.id,variantId:t,item:i,idx:o,edits:n,padding:"p-6 lg:p-8",height:"628px",mobileHeight:"380px",imageMaxWidth:960,imageSizes:"(min-width: 768px) 33vw, 100vw",isTitlesVisible:l.isTitlesVisible,isBodyVisible:l.isBodyVisible,handleRemove:l.handleRemove,handleAdd:l.handleAdd,isPreviewMode:l.isPreviewMode},i.id))})]})}function gn({section:e,variantId:t,edits:n,brandColors:i}){const{backgroundColor:o,headline:r,body:a,primaryCta:l,alignment:s="left",visibility:d}=e.content,{isPreviewMode:c,readOnly:u,notifyColorChanged:p,onElementClick:h}=je(),[m,f]=ve(0),g=xe(null),b=xe(0),v=Xe(o,i),y=Je(o,i),x=Ee(t,e.id,"headline",r||"Add Heading",n),w=Ee(t,e.id,"body",a||"Add your content here.",n),k=("string"==typeof l?l:l?.text)||"Call to Action",C=Ee(t,e.id,"primaryCta.text",k,n),_="false"!==d?.headline,I="false"!==d?.body,S="false"!==d?.primaryCta,M=e=>{c&&!u||(e.preventDefault(),qe())},A=t=>{p?.(e.id,`visibility.${t}`,"false")},T=t=>{p?.(e.id,`visibility.${t}`,"true")},E=e.content.image,P=e.content.items&&e.content.items.length>0?e.content.items.map((e,t)=>{if(!e||"object"!=typeof e)return{id:String(t+1),image:E,headline:"",body:""};if(0===t&&E&&E.src)return{...e,id:e.id||String(t+1),image:E,headline:e.headline||"",body:e.body||""};const n=e.image,i=n?"string"==typeof n?{type:Re(n)?"video":"image",src:n,alt:""}:n:E;return{...e,id:e.id||String(t+1),image:i,headline:e.headline||"",body:e.body||""}}):[{id:"1",image:E,headline:"",body:""}];ye(()=>{m>=P.length&&f(Math.max(0,P.length-1))},[P.length]),ye(()=>{if(null!==g.current&&P.length>b.current){const t=g.current;t<P.length&&(f(t),h?.(e.id,`item-${t}`),g.current=null)}b.current=P.length},[P.length]);const L=(t,n)=>{p?.(e.id,"moveItem",JSON.stringify({from:t,to:n,focusElementId:`item-${n}`})),m===t&&f(n)},N="center"===s?"text-center items-center":"right"===s?"text-right items-end":"text-left items-start",j="right"===s?{marginLeft:"auto"}:"center"===s?{margin:"0 auto"}:void 0,z=({className:e,style:t})=>P.length>1?ie("div",{class:`flex gap-[18px] ${e||""}`,style:{...t,zIndex:10},children:P.map((e,t)=>ie("button",{type:"button",onClick:()=>f(t),style:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:t===m?"white":"rgba(255,255,255,0.5)",border:"none",padding:0,cursor:"pointer",transition:"background-color 0.2s ease"},"aria-label":`Slide ${t+1}`},e.id))}):null;return ie("div",{class:"w-full",style:v,children:[ie("div",{class:"flex flex-col md:hidden",children:[ie("div",{class:`flex flex-col gap-3 px-4 py-8 ${N}`,children:[ie("div",{class:"flex flex-col gap-3",children:[_&&ie(Oe,{sectionId:e.id,field:"headline",value:x,as:"h2",class:"pb-text-h2 tracking-[-0.8px]"}),I&&ie(Oe,{sectionId:e.id,field:"body",value:w,as:"p",class:"pb-text-body"})]}),S&&l&&ie(et,{variant:l.variant||"primary",backgroundColor:l.backgroundColor,brandColors:i,class:"w-fit",onClick:M,children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:C,as:"span"})})]}),ie("div",{class:"relative w-full h-[244px]",children:[P.map((i,o)=>{const r=0===o?"image":`items.${o}.image`,a=Le(t,e.id,r,{src:i.image.src,srcMobile:i.image.srcMobile,focalPoint:i.image.focalPoint,focalPointMobile:i.image.focalPointMobile,type:i.image.type,poster:i.image.poster,posterMobile:i.image.posterMobile},n);return ie("div",{class:"absolute inset-0 transition-opacity duration-500",style:{opacity:o===m?1:0,pointerEvents:o===m?"auto":"none"},children:ie(Ue,{sectionId:e.id,field:r,src:a.src,alt:i.image.alt,class:"w-full h-full object-cover",maxWidth:750,maxWidthMobile:750,sizes:"375px",mediaType:a.type,poster:a.poster,posterMobile:a.posterMobile})},i.id)}),ie(z,{className:"absolute bottom-4 left-1/2 -translate-x-1/2"})]})]}),ie("div",{class:"hidden md:flex flex-col items-center pt-16 gap-10 max-w-[1440px] mx-auto",children:[ie("div",{class:`flex flex-col gap-6 w-full max-w-[1280px] px-4 xl:px-0 ${N}`,children:[ie("div",{class:"flex flex-col gap-3 max-w-[712px] "+("center"===s?"items-center":"right"===s?"items-end":""),style:j,children:[ie(nt,{sectionId:e.id,elementId:"headline",elementType:"text",label:"Heading",addZoneBelow:I?void 0:{elementId:"body",elementLabel:"Subheading",onAdd:()=>T("body")},children:ie(Oe,{sectionId:e.id,field:"headline",value:x,as:"h2",class:"pb-text-h2 tracking-[-0.8px]"})}),I&&ie(nt,{sectionId:e.id,elementId:"body",elementType:"text",label:"Subheading",onRemove:()=>A("body"),addZoneBelow:S?void 0:{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>T("primaryCta")},children:ie(Oe,{sectionId:e.id,field:"body",value:w,as:"p",class:"pb-text-body"})})]}),S&&l&&ie("div",{class:"right"===s?"flex justify-end":"center"===s?"flex justify-center":"",children:ie(nt,{sectionId:e.id,elementId:"primaryCta",elementType:"button",label:"Button",currentColor:l.backgroundColor,sectionBackgroundColor:y,onColorChange:t=>{p?.(e.id,"primaryCta.backgroundColor",t)},brandColors:i,supportsColorPicker:!0,onRemove:()=>A("primaryCta"),addZoneAbove:I?void 0:{elementId:"body",elementLabel:"Subheading",onAdd:()=>T("body")},children:ie(et,{variant:l.variant||"primary",backgroundColor:l.backgroundColor,brandColors:i,class:"w-fit",onClick:M,children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:C,as:"span"})})})})]}),ie("div",{class:"relative w-full h-[680px]",children:[P.map((i,o)=>{const r=0===o?"image":`items.${o}.image`,a=Le(t,e.id,r,{src:i.image.src,srcMobile:i.image.srcMobile,focalPoint:i.image.focalPoint,focalPointMobile:i.image.focalPointMobile,type:i.image.type,poster:i.image.poster,posterMobile:i.image.posterMobile},n);return ie("div",{class:"absolute inset-0 transition-opacity duration-500",style:{opacity:o===m?1:0,pointerEvents:o===m?"auto":"none",display:"flex"},children:ie(lt,{sectionId:e.id,elementId:`item-${o}`,index:o,totalCount:P.length,minCount:1,maxCount:8,label:`Slide ${o+1}`,onAdd:P.length<8?t=>((t,n)=>{const i={id:`slide-${Date.now()}`,image:{type:"image",src:"",alt:""},headline:"",body:""},o="before"===n?t:t+1;g.current=o,p?.(e.id,"addItem",JSON.stringify({index:o,item:i}))})(o,t):void 0,onRemove:P.length>1?()=>{return t=o,p?.(e.id,"removeItem",String(t)),void f(Math.max(0,t-1));var t}:void 0,onMoveLeft:o>0?()=>L(o,o-1):void 0,onMoveRight:o<P.length-1?()=>L(o,o+1):void 0,fillWidth:!0,children:ie(Ue,{sectionId:e.id,field:r,src:a.src,alt:i.image.alt,class:"w-full h-full object-cover",maxWidth:1440,maxWidthMobile:768,sizes:"(min-width: 768px) 1440px, 100vw",mediaType:a.type,poster:a.poster,posterMobile:a.posterMobile})})},i.id)}),ie(z,{className:"absolute",style:{bottom:"48px",left:"96px"}})]})]})]})}const bn=["video-contained","video-full-bleed","video-tall"],vn=["3-column","2-column-contained","2-column-full-bleed","3-column-full-bleed"],yn=["image-slider-full"];function xn({section:e,variantId:t,edits:n,brandColors:i}){const o=e.content.layout||"full";return bn.includes(o)?ie(tn,{section:e,variantId:t,edits:n,brandColors:i}):vn.includes(o)?ie(ln,{section:e,variantId:t,edits:n,brandColors:i}):yn.includes(o)?ie(gn,{section:e,variantId:t,edits:n,brandColors:i}):ie(wn,{section:e,variantId:t,edits:n,brandColors:i})}function wn({section:e,variantId:t,edits:n,brandColors:i}){const{headline:o,body:r,primaryCta:a,image:l,layout:s="full",alignment:d,visibility:c,backgroundColor:u}=e.content,{isPreviewMode:p,readOnly:h,notifyColorChanged:m}=je(),f=d||e.content.imagePosition||"right",g=Xe(u,i),b=Je(u,i),v=Ee(t,e.id,"headline",o||"Add Heading",n),y=Ee(t,e.id,"body",r||"Add your content here.",n),x=("string"==typeof a?a:a?.text)||"Call to Action",w=Ee(t,e.id,"primaryCta.text",x,n),k=Le(t,e.id,"image",{src:l.src,srcMobile:l.srcMobile,focalPoint:l.focalPoint,focalPointMobile:l.focalPointMobile,type:l.type,poster:l.poster,posterMobile:l.posterMobile,showAudioToggle:l.showAudioToggle},n),C="false"!==c?.headline,_="false"!==c?.body,I="false"!==c?.primaryCta,S="false"!==c?.image,M=e=>{p&&!h||(e.preventDefault(),qe())},A=t=>{m?.(e.id,"primaryCta.backgroundColor",t)},T=t=>{m?.(e.id,`visibility.${t}`,"false")},E=t=>{m?.(e.id,`visibility.${t}`,"true")},P="full"===s;return ie("div",{class:"w-full",style:g,children:[ie("div",{class:"flex flex-col md:hidden",children:[S&&ie(Ue,{sectionId:e.id,field:"image",src:k.src,alt:l.alt,class:"w-full "+("contain"===l.objectFit?"":"max-h-[220px] object-cover"),srcMobile:k.srcMobile,focalPoint:k.focalPoint,focalPointMobile:k.focalPointMobile,maxWidth:1440,maxWidthMobile:768,sizes:"100vw",mediaType:k.type,poster:k.poster,posterMobile:k.posterMobile,objectFit:l.objectFit,allowObjectFitToggle:!0,allowAudioToggle:!0,showAudioToggle:k.showAudioToggle}),ie("div",{class:"flex flex-col gap-5 py-8 px-4",children:[ie("div",{class:"flex flex-col gap-2",children:[C&&ie(Oe,{sectionId:e.id,field:"headline",value:v,as:"h2",class:"pb-text-h2 tracking-[-0.6px]"}),_&&ie(nt,{sectionId:e.id,elementId:"body",elementType:"text",label:"Subheading",onRemove:()=>T("body"),addZoneBelow:I?void 0:{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>E("primaryCta")},children:ie(Oe,{sectionId:e.id,field:"body",value:y,as:"p",class:"pb-text-body"})})]}),I&&ie(nt,{sectionId:e.id,elementId:"primaryCta",elementType:"button",label:"Button",currentColor:a?.backgroundColor,sectionBackgroundColor:b,onColorChange:A,brandColors:i,supportsColorPicker:!0,onRemove:()=>T("primaryCta"),addZoneAbove:_?void 0:{elementId:"body",elementLabel:"Subheading",onAdd:()=>E("body")},children:ie(et,{variant:a?.variant||"primary",backgroundColor:a?.backgroundColor,brandColors:i,class:"w-fit",onClick:M,children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:w,as:"span"})})}),!I&&!_&&p&&ie("div",{class:"relative",children:ie(nt,{sectionId:e.id,elementId:"body",elementType:"text",label:"Subheading",addZoneBelow:{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>E("primaryCta")},children:ie("div",{})})})]})]}),ie("div",{class:"hidden md:flex items-center justify-center w-full h-[720px] overflow-hidden",children:ie("div",P?{class:"flex w-full h-full "+("right"===f?"flex-row-reverse":""),children:[ie("div",{class:"w-1/2 flex items-center justify-center px-4 lg:px-8 xl:px-12",children:ie("div",{class:"flex flex-col gap-6 w-full max-w-[440px]",children:[ie("div",{class:"flex flex-col gap-3",children:[C&&ie(nt,{sectionId:e.id,elementId:"headline",elementType:"heading",label:"Heading",addZoneBelow:_?void 0:{elementId:"body",elementLabel:"Subheading",onAdd:()=>E("body")},children:ie(Oe,{sectionId:e.id,field:"headline",value:v,as:"h2",class:"pb-text-h2 tracking-[-0.8px]"})}),_&&ie(nt,{sectionId:e.id,elementId:"body",elementType:"text",label:"Subheading",onRemove:()=>T("body"),addZoneBelow:I?void 0:{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>E("primaryCta")},children:ie(Oe,{sectionId:e.id,field:"body",value:y,as:"p",class:"pb-text-body"})})]}),I&&ie(nt,{sectionId:e.id,elementId:"primaryCta",elementType:"button",label:"Button",currentColor:a?.backgroundColor,sectionBackgroundColor:b,onColorChange:A,brandColors:i,supportsColorPicker:!0,onRemove:()=>T("primaryCta"),addZoneAbove:_?void 0:{elementId:"body",elementLabel:"Subheading",onAdd:()=>E("body")},children:ie(et,{variant:a?.variant||"primary",backgroundColor:a?.backgroundColor,brandColors:i,class:"w-fit",onClick:M,children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:w,as:"span"})})})]})}),S&&ie("div",{class:"w-1/2 h-full",children:ie(Ue,{sectionId:e.id,field:"image",src:k.src,alt:l.alt,class:"w-full h-full "+("contain"===l.objectFit?"object-contain":"object-cover"),srcMobile:k.srcMobile,focalPoint:k.focalPoint,focalPointMobile:k.focalPointMobile,maxWidth:1440,maxWidthMobile:768,sizes:"(min-width: 768px) 50vw, 100vw",mediaType:k.type,poster:k.poster,posterMobile:k.posterMobile,objectFit:l.objectFit,allowObjectFitToggle:!0,allowAudioToggle:!0,showAudioToggle:k.showAudioToggle})})]}:{class:"flex items-center gap-8 lg:gap-16 xl:gap-[128px] px-4 lg:px-12 xl:px-[108px] max-w-[1440px] w-full mx-auto "+("right"===f?"flex-row-reverse":""),children:[ie("div",{class:"flex flex-col gap-6 w-full max-w-[450px] justify-center",children:[ie("div",{class:"flex flex-col gap-3",children:[C&&ie(nt,{sectionId:e.id,elementId:"headline",elementType:"heading",label:"Heading",addZoneBelow:_?void 0:{elementId:"body",elementLabel:"Subheading",onAdd:()=>E("body")},children:ie(Oe,{sectionId:e.id,field:"headline",value:v,as:"h2",class:"pb-text-h2 tracking-[-0.8px]"})}),_&&ie(nt,{sectionId:e.id,elementId:"body",elementType:"text",label:"Subheading",onRemove:()=>T("body"),addZoneBelow:I?void 0:{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>E("primaryCta")},children:ie(Oe,{sectionId:e.id,field:"body",value:y,as:"p",class:"pb-text-body"})})]}),I&&ie(nt,{sectionId:e.id,elementId:"primaryCta",elementType:"button",label:"Button",currentColor:a?.backgroundColor,sectionBackgroundColor:b,onColorChange:A,brandColors:i,supportsColorPicker:!0,onRemove:()=>T("primaryCta"),addZoneAbove:_?void 0:{elementId:"body",elementLabel:"Subheading",onAdd:()=>E("body")},children:ie(et,{variant:a?.variant||"primary",backgroundColor:a?.backgroundColor,brandColors:i,class:"w-fit",onClick:M,children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:w,as:"span"})})})]}),S&&ie("div",{class:"w-full max-w-[645px] h-[540px] overflow-hidden",children:ie(Ue,{sectionId:e.id,field:"image",src:k.src,alt:l.alt,class:"w-full h-[540px] "+("contain"===l.objectFit?"object-contain":"object-cover"),srcMobile:k.srcMobile,focalPoint:k.focalPoint,focalPointMobile:k.focalPointMobile,maxWidth:1440,maxWidthMobile:768,sizes:"(min-width: 768px) 50vw, 100vw",mediaType:k.type,poster:k.poster,posterMobile:k.posterMobile,objectFit:l.objectFit,allowObjectFitToggle:!0,allowAudioToggle:!0,showAudioToggle:k.showAudioToggle})})]})})]})}function kn({section:e,variantId:t,edits:n,brandColors:i}){const{headline:o,productName:r,competitorName:a,features:l,backgroundColor:s}=e.content,d=Xe(s,i),c=Ee(t,e.id,"headline",o,n),u=Ee(t,e.id,"productName",r,n),p=Ee(t,e.id,"competitorName",a,n);return ie("div",{class:"w-full py-16 px-4 md:p-16",style:d,children:ie("div",{class:"max-w-screen-xl mx-auto",children:[ie(Oe,{sectionId:e.id,field:"headline",value:c,as:"h2",class:"pb-text-h2 tracking-[-0.6px] md:tracking-[-0.8px] text-center mb-10 md:mb-12"}),ie("div",{class:"w-full overflow-x-auto",children:ie("table",{class:"w-full border-collapse",children:[ie("thead",{children:ie("tr",{children:[ie("th",{class:"border-b border-[#e8e8e8] p-4 text-left w-1/3"}),ie("th",{class:"border-b border-[#e8e8e8] bg-[var(--brand-primary,#33b696)] p-4 rounded-t-lg",children:ie(Oe,{sectionId:e.id,field:"productName",value:u,as:"div",class:"pb-text-body text-white"})}),ie("th",{class:"border-b border-[#e8e8e8] p-4",children:ie(Oe,{sectionId:e.id,field:"competitorName",value:p,as:"div",class:"pb-text-body"})})]})}),ie("tbody",{children:l.map((i,o)=>{const r=Ee(t,e.id,`features.${o}.name`,i.name,n);return ie("tr",{children:[ie("td",{class:"border-b border-[#e8e8e8] p-4 text-black pb-text-body",children:ie(Oe,{sectionId:e.id,field:`features.${o}.name`,value:r,as:"span"})}),ie("td",{class:"border-b border-[#e8e8e8] bg-[var(--brand-primary,#33b696)] p-4 text-center",children:i.hasProduct&&ie("svg",{class:"w-8 h-8 mx-auto text-white",viewBox:"0 0 24 24",fill:"currentColor",children:ie("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"})})}),ie("td",{class:"border-b border-[#e8e8e8] p-4 text-center",children:i.hasCompetitor&&ie("svg",{class:"w-8 h-8 mx-auto text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:ie("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"})})})]},i.id)})})]})})]})})}function Cn({section:e,variantId:t,edits:n,brandColors:i}){const{headline:o,body:r,primaryCta:a,backgroundColor:l,visibility:s,layout:d="text-1",alignment:c="center",backgroundImage:u}=e.content,{isPreviewMode:p,readOnly:h,notifyColorChanged:m}=je(),f=Xe(l,i),g=Je(l,i),b=Ee(t,e.id,"headline",o||"Add Heading",n),v=Ee(t,e.id,"body",r||"Add your content here.",n),y=("string"==typeof a?a:a?.text)||"Call to Action",x=Ee(t,e.id,"primaryCta.text",y,n),w="false"!==s?.body,k="false"!==s?.primaryCta,C=t=>{m?.(e.id,`visibility.${t}`,"false")},_=t=>{m?.(e.id,`visibility.${t}`,"true")},I="right"===c?"text-right items-end":"left"===c?"text-left items-start":"text-center items-center",S="right"===c?"justify-end":"left"===c?"justify-start":"justify-center";if("text-large"===d)return ie("div",{class:"w-full py-8 md:py-16 px-4",style:f,children:ie("div",{class:`flex flex-col gap-6 ${I} max-w-screen-xl mx-auto`,children:ie("div",{class:`flex ${S} w-full`,children:ie(Oe,{sectionId:e.id,field:"body",value:v,as:"p",class:"pb-text-h2 tracking-[-0.6px] md:tracking-[-0.8px] "+("center"===c?"text-center":"right"===c?"text-right":"text-left")})})})});if("text-large-image"===d){const i=Le(t,e.id,"backgroundImage",{src:u?.src||"",srcMobile:u?.srcMobile,focalPoint:u?.focalPoint,focalPointMobile:u?.focalPointMobile,type:u?.type},n);return ie("div",{class:"relative w-full min-h-[400px] md:min-h-[500px] overflow-hidden flex items-center bg-black",children:[ie("div",{class:"absolute inset-0",children:[ie(Ue,{sectionId:e.id,field:"backgroundImage",src:i.src,alt:u?.alt||"",class:"w-full h-full object-cover",srcMobile:i.srcMobile,focalPoint:i.focalPoint,focalPointMobile:i.focalPointMobile,maxWidth:1920,maxWidthMobile:1080,sizes:"100vw",mediaType:i.type}),ie("div",{class:"absolute inset-0 bg-black/20 pointer-events-none"})]}),ie("div",{class:"relative w-full py-8 md:py-16 px-4",style:{zIndex:10},children:ie("div",{class:`flex flex-col gap-6 ${I} max-w-screen-xl mx-auto`,children:ie("div",{class:`flex ${S} w-full`,children:ie(Oe,{sectionId:e.id,field:"body",value:v,as:"p",class:"pb-text-h2 tracking-[-0.6px] md:tracking-[-0.8px] "+("center"===c?"text-center":"right"===c?"text-right":"text-left"),style:{color:"#ffffff"}})})})})]})}return ie("div",{class:"w-full py-8 md:py-16 px-4",style:f,children:ie("div",{class:`flex flex-col gap-6 ${I} max-w-screen-md mx-auto`,children:[ie("div",{class:`flex flex-col gap-3 ${I}`,children:[ie("div",{class:`flex ${S} w-full`,children:ie(nt,{sectionId:e.id,elementId:"headline",elementType:"heading",label:"Heading",addZoneBelow:w?void 0:{elementId:"body",elementLabel:"Text",onAdd:()=>_("body")},children:ie(Oe,{sectionId:e.id,field:"headline",value:b,as:"h2",class:"pb-text-h2 tracking-[-0.6px] md:tracking-[-0.8px] "+("center"===c?"text-center":"right"===c?"text-right":"text-left")})})}),w&&ie("div",{class:`flex ${S} w-full`,children:ie(nt,{sectionId:e.id,elementId:"body",elementType:"text",label:"Text",onRemove:()=>C("body"),addZoneBelow:k?void 0:{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>_("primaryCta")},children:ie(Oe,{sectionId:e.id,field:"body",value:v,as:"p",class:"pb-text-body "+("center"===c?"text-center":"right"===c?"text-right":"text-left")})})})]}),k&&ie(nt,{sectionId:e.id,elementId:"primaryCta",elementType:"button",label:"Button",currentColor:a?.backgroundColor,sectionBackgroundColor:g,onColorChange:t=>{m?.(e.id,"primaryCta.backgroundColor",t)},onRemove:()=>C("primaryCta"),brandColors:i,supportsColorPicker:!0,addZoneAbove:w?void 0:{elementId:"body",elementLabel:"Text",onAdd:()=>_("body")},children:ie(et,{variant:a?.variant||"primary",backgroundColor:a?.backgroundColor,brandColors:i,onClick:e=>{p&&!h||(e.preventDefault(),qe())},children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:x,as:"span"})})})]})})}const{entries:_n,setPrototypeOf:In,isFrozen:Sn,getPrototypeOf:Mn,getOwnPropertyDescriptor:An}=Object;let{freeze:Tn,seal:En,create:Pn}=Object,{apply:Ln,construct:Nn}="undefined"!=typeof Reflect&&Reflect;Tn||(Tn=function(e){return e}),En||(En=function(e){return e}),Ln||(Ln=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return e.apply(t,i)}),Nn||(Nn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new e(...n)});const jn=Gn(Array.prototype.forEach),zn=Gn(Array.prototype.lastIndexOf),On=Gn(Array.prototype.pop),Rn=Gn(Array.prototype.push),$n=Gn(Array.prototype.splice),Bn=Gn(String.prototype.toLowerCase),Fn=Gn(String.prototype.toString),Dn=Gn(String.prototype.match),Hn=Gn(String.prototype.replace),Wn=Gn(String.prototype.indexOf),Un=Gn(String.prototype.trim),Zn=Gn(Object.prototype.hasOwnProperty),qn=Gn(RegExp.prototype.test),Vn=(Yn=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Nn(Yn,t)});var Yn;function Gn(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return Ln(e,t,i)}}function Jn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Bn;In&&In(e,null);let i=t.length;for(;i--;){let o=t[i];if("string"==typeof o){const e=n(o);e!==o&&(Sn(t)||(t[i]=e),o=e)}e[o]=!0}return e}function Xn(e){for(let t=0;t<e.length;t++)Zn(e,t)||(e[t]=null);return e}function Kn(e){const t=Pn(null);for(const[n,i]of _n(e))Zn(e,n)&&(Array.isArray(i)?t[n]=Xn(i):i&&"object"==typeof i&&i.constructor===Object?t[n]=Kn(i):t[n]=i);return t}function Qn(e,t){for(;null!==e;){const n=An(e,t);if(n){if(n.get)return Gn(n.get);if("function"==typeof n.value)return Gn(n.value)}e=Mn(e)}return function(){return null}}const ei=Tn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ti=Tn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ni=Tn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ii=Tn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),oi=Tn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ri=Tn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ai=Tn(["#text"]),li=Tn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),si=Tn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),di=Tn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ci=Tn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ui=En(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pi=En(/<%[\w\W]*|[\w\W]*%>/gm),hi=En(/\$\{[\w\W]*/gm),mi=En(/^data-[\-\w.\u00B7-\uFFFF]+$/),fi=En(/^aria-[\-\w]+$/),gi=En(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),bi=En(/^(?:\w+script|data):/i),vi=En(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),yi=En(/^html$/i),xi=En(/^[a-z][.\w]*(-[.\w]+)+$/i);var wi=Object.freeze({__proto__:null,ARIA_ATTR:fi,ATTR_WHITESPACE:vi,CUSTOM_ELEMENT:xi,DATA_ATTR:mi,DOCTYPE_NAME:yi,ERB_EXPR:pi,IS_ALLOWED_URI:gi,IS_SCRIPT_OR_DATA:bi,MUSTACHE_EXPR:ui,TMPLIT_EXPR:hi});const ki=function(){return"undefined"==typeof window?null:window};var Ci=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ki();const n=t=>e(t);if(n.version="3.3.1",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:i}=t;const o=i,r=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:s,Element:d,NodeFilter:c,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:h,trustedTypes:m}=t,f=d.prototype,g=Qn(f,"cloneNode"),b=Qn(f,"remove"),v=Qn(f,"nextSibling"),y=Qn(f,"childNodes"),x=Qn(f,"parentNode");if("function"==typeof l){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let w,k="";const{implementation:C,createNodeIterator:_,createDocumentFragment:I,getElementsByTagName:S}=i,{importNode:M}=o;let A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof _n&&"function"==typeof x&&C&&void 0!==C.createHTMLDocument;const{MUSTACHE_EXPR:T,ERB_EXPR:E,TMPLIT_EXPR:P,DATA_ATTR:L,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:z,CUSTOM_ELEMENT:O}=wi;let{IS_ALLOWED_URI:R}=wi,$=null;const B=Jn({},[...ei,...ti,...ni,...oi,...ai]);let F=null;const D=Jn({},[...li,...si,...di,...ci]);let H=Object.seal(Pn(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}})),W=null,U=null;const Z=Object.seal(Pn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let q=!0,V=!0,Y=!1,G=!0,J=!1,X=!0,K=!1,Q=!1,ee=!1,te=!1,ne=!1,ie=!1,oe=!0,re=!1,ae=!0,le=!1,se={},de=null;const ce=Jn({},["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 pe=Jn({},["audio","video","img","source","image","track"]);let he=null;const me=Jn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml";let ve=be,ye=!1,xe=null;const we=Jn({},[fe,ge,be],Fn);let ke=Jn({},["mi","mo","mn","ms","mtext"]),Ce=Jn({},["annotation-xml"]);const _e=Jn({},["title","style","font","a","script"]);let Ie=null;const Se=["application/xhtml+xml","text/html"];let Me=null,Ae=null;const Te=i.createElement("form"),Ee=function(e){return e instanceof RegExp||e instanceof Function},Pe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ae||Ae!==e){if(e&&"object"==typeof e||(e={}),e=Kn(e),Ie=-1===Se.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Me="application/xhtml+xml"===Ie?Fn:Bn,$=Zn(e,"ALLOWED_TAGS")?Jn({},e.ALLOWED_TAGS,Me):B,F=Zn(e,"ALLOWED_ATTR")?Jn({},e.ALLOWED_ATTR,Me):D,xe=Zn(e,"ALLOWED_NAMESPACES")?Jn({},e.ALLOWED_NAMESPACES,Fn):we,he=Zn(e,"ADD_URI_SAFE_ATTR")?Jn(Kn(me),e.ADD_URI_SAFE_ATTR,Me):me,ue=Zn(e,"ADD_DATA_URI_TAGS")?Jn(Kn(pe),e.ADD_DATA_URI_TAGS,Me):pe,de=Zn(e,"FORBID_CONTENTS")?Jn({},e.FORBID_CONTENTS,Me):ce,W=Zn(e,"FORBID_TAGS")?Jn({},e.FORBID_TAGS,Me):Kn({}),U=Zn(e,"FORBID_ATTR")?Jn({},e.FORBID_ATTR,Me):Kn({}),se=!!Zn(e,"USE_PROFILES")&&e.USE_PROFILES,q=!1!==e.ALLOW_ARIA_ATTR,V=!1!==e.ALLOW_DATA_ATTR,Y=e.ALLOW_UNKNOWN_PROTOCOLS||!1,G=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,J=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,K=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,oe=!1!==e.SANITIZE_DOM,re=e.SANITIZE_NAMED_PROPS||!1,ae=!1!==e.KEEP_CONTENT,le=e.IN_PLACE||!1,R=e.ALLOWED_URI_REGEXP||gi,ve=e.NAMESPACE||be,ke=e.MATHML_TEXT_INTEGRATION_POINTS||ke,Ce=e.HTML_INTEGRATION_POINTS||Ce,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ee(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ee(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),J&&(V=!1),ne&&(te=!0),se&&($=Jn({},ai),F=[],!0===se.html&&(Jn($,ei),Jn(F,li)),!0===se.svg&&(Jn($,ti),Jn(F,si),Jn(F,ci)),!0===se.svgFilters&&(Jn($,ni),Jn(F,si),Jn(F,ci)),!0===se.mathMl&&(Jn($,oi),Jn(F,di),Jn(F,ci))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?Z.tagCheck=e.ADD_TAGS:($===B&&($=Kn($)),Jn($,e.ADD_TAGS,Me))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?Z.attributeCheck=e.ADD_ATTR:(F===D&&(F=Kn(F)),Jn(F,e.ADD_ATTR,Me))),e.ADD_URI_SAFE_ATTR&&Jn(he,e.ADD_URI_SAFE_ATTR,Me),e.FORBID_CONTENTS&&(de===ce&&(de=Kn(de)),Jn(de,e.FORBID_CONTENTS,Me)),e.ADD_FORBID_CONTENTS&&(de===ce&&(de=Kn(de)),Jn(de,e.ADD_FORBID_CONTENTS,Me)),ae&&($["#text"]=!0),K&&Jn($,["html","head","body"]),$.table&&(Jn($,["tbody"]),delete W.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Vn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Vn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,k=w.createHTML("")}else void 0===w&&(w=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return null}}(m,r)),null!==w&&"string"==typeof k&&(k=w.createHTML(""));Tn&&Tn(e),Ae=e}},Le=Jn({},[...ti,...ni,...ii]),Ne=Jn({},[...oi,...ri]),je=function(e){Rn(n.removed,{element:e});try{x(e).removeChild(e)}catch(t){b(e)}},ze=function(e,t){try{Rn(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Rn(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{je(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Oe=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=Dn(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ie&&ve===be&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=w?w.createHTML(e):e;if(ve===be)try{t=(new h).parseFromString(o,Ie)}catch(e){}if(!t||!t.documentElement){t=C.createDocument(ve,"template",null);try{t.documentElement.innerHTML=ye?k:o}catch(e){}}const r=t.body||t.documentElement;return e&&n&&r.insertBefore(i.createTextNode(n),r.childNodes[0]||null),ve===be?S.call(t,K?"html":"body")[0]:K?t.documentElement:r},Re=function(e){return _.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},$e=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)},Be=function(e){return"function"==typeof s&&e instanceof s};function Fe(e,t,i){jn(e,e=>{e.call(n,t,i,Ae)})}const De=function(e){let t=null;if(Fe(A.beforeSanitizeElements,e,null),$e(e))return je(e),!0;const i=Me(e.nodeName);if(Fe(A.uponSanitizeElement,e,{tagName:i,allowedTags:$}),X&&e.hasChildNodes()&&!Be(e.firstElementChild)&&qn(/<[/\w!]/g,e.innerHTML)&&qn(/<[/\w!]/g,e.textContent))return je(e),!0;if(7===e.nodeType)return je(e),!0;if(X&&8===e.nodeType&&qn(/<[/\w]/g,e.data))return je(e),!0;if(!(Z.tagCheck instanceof Function&&Z.tagCheck(i))&&(!$[i]||W[i])){if(!W[i]&&We(i)){if(H.tagNameCheck instanceof RegExp&&qn(H.tagNameCheck,i))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(i))return!1}if(ae&&!de[i]){const t=x(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t)for(let i=n.length-1;i>=0;--i){const o=g(n[i],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,v(e))}}return je(e),!0}return e instanceof d&&!function(e){let t=x(e);t&&t.tagName||(t={namespaceURI:ve,tagName:"template"});const n=Bn(e.tagName),i=Bn(t.tagName);return!!xe[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===be?"svg"===n:t.namespaceURI===fe?"svg"===n&&("annotation-xml"===i||ke[i]):Boolean(Le[n]):e.namespaceURI===fe?t.namespaceURI===be?"math"===n:t.namespaceURI===ge?"math"===n&&Ce[i]:Boolean(Ne[n]):e.namespaceURI===be?!(t.namespaceURI===ge&&!Ce[i])&&!(t.namespaceURI===fe&&!ke[i])&&!Ne[n]&&(_e[n]||!Le[n]):!("application/xhtml+xml"!==Ie||!xe[e.namespaceURI]))}(e)?(je(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!qn(/<\/no(script|embed|frames)/i,e.innerHTML)?(J&&3===e.nodeType&&(t=e.textContent,jn([T,E,P],e=>{t=Hn(t,e," ")}),e.textContent!==t&&(Rn(n.removed,{element:e.cloneNode()}),e.textContent=t)),Fe(A.afterSanitizeElements,e,null),!1):(je(e),!0)},He=function(e,t,n){if(oe&&("id"===t||"name"===t)&&(n in i||n in Te))return!1;if(V&&!U[t]&&qn(L,t));else if(q&&qn(N,t));else if(Z.attributeCheck instanceof Function&&Z.attributeCheck(t,e));else if(!F[t]||U[t]){if(!(We(e)&&(H.tagNameCheck instanceof RegExp&&qn(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&qn(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t,e))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&qn(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(he[t]);else if(qn(R,Hn(n,z,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Wn(n,"data:")||!ue[e])if(Y&&!qn(j,Hn(n,z,"")));else if(n)return!1;return!0},We=function(e){return"annotation-xml"!==e&&Dn(e,O)},Ue=function(e){Fe(A.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||$e(e))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let o=t.length;for(;o--;){const r=t[o],{name:a,namespaceURI:l,value:s}=r,d=Me(a),c=s;let u="value"===a?c:Un(c);if(i.attrName=d,i.attrValue=u,i.keepAttr=!0,i.forceKeepAttr=void 0,Fe(A.uponSanitizeAttribute,e,i),u=i.attrValue,!re||"id"!==d&&"name"!==d||(ze(a,e),u="user-content-"+u),X&&qn(/((--!?|])>)|<\/(style|title|textarea)/i,u)){ze(a,e);continue}if("attributename"===d&&Dn(u,"href")){ze(a,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){ze(a,e);continue}if(!G&&qn(/\/>/i,u)){ze(a,e);continue}J&&jn([T,E,P],e=>{u=Hn(u,e," ")});const p=Me(e.nodeName);if(He(p,d,u)){if(w&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(l);else switch(m.getAttributeType(p,d)){case"TrustedHTML":u=w.createHTML(u);break;case"TrustedScriptURL":u=w.createScriptURL(u)}if(u!==c)try{l?e.setAttributeNS(l,a,u):e.setAttribute(a,u),$e(e)?je(e):On(n.removed)}catch(t){ze(a,e)}}else ze(a,e)}Fe(A.afterSanitizeAttributes,e,null)},Ze=function e(t){let n=null;const i=Re(t);for(Fe(A.beforeSanitizeShadowDOM,t,null);n=i.nextNode();)Fe(A.uponSanitizeShadowNode,n,null),De(n),Ue(n),n.content instanceof a&&e(n.content);Fe(A.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,r=null,l=null,d=null;if(ye=!e,ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Be(e)){if("function"!=typeof e.toString)throw Vn("toString is not a function");if("string"!=typeof(e=e.toString()))throw Vn("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Q||Pe(t),n.removed=[],"string"==typeof e&&(le=!1),le){if(e.nodeName){const t=Me(e.nodeName);if(!$[t]||W[t])throw Vn("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)i=Oe("\x3c!----\x3e"),r=i.ownerDocument.importNode(e,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?i=r:i.appendChild(r);else{if(!te&&!J&&!K&&-1===e.indexOf("<"))return w&&ie?w.createHTML(e):e;if(i=Oe(e),!i)return te?null:ie?k:""}i&&ee&&je(i.firstChild);const c=Re(le?e:i);for(;l=c.nextNode();)De(l),Ue(l),l.content instanceof a&&Ze(l.content);if(le)return e;if(te){if(ne)for(d=I.call(i.ownerDocument);i.firstChild;)d.appendChild(i.firstChild);else d=i;return(F.shadowroot||F.shadowrootmode)&&(d=M.call(o,d,!0)),d}let u=K?i.outerHTML:i.innerHTML;return K&&$["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&qn(yi,i.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+u),J&&jn([T,E,P],e=>{u=Hn(u,e," ")}),w&&ie?w.createHTML(u):u},n.setConfig=function(){Pe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},n.clearConfig=function(){Ae=null,Q=!1},n.isValidAttribute=function(e,t,n){Ae||Pe({});const i=Me(e),o=Me(t);return He(i,o,n)},n.addHook=function(e,t){"function"==typeof t&&Rn(A[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=zn(A[e],t);return-1===n?void 0:$n(A[e],n,1)[0]}return On(A[e])},n.removeHooks=function(e){A[e]=[]},n.removeAllHooks=function(){A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function _i(e){return e.startsWith("http://")||e.startsWith("https://")}const Ii=[".png",".jpg",".jpeg",".gif",".webp",".avif",".bmp",".ico"],Si={check:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:ie("polyline",{points:"20 6 9 17 4 12"})}),star:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:ie("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})}),shield:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:ie("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})}),"shield-check":({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"}),ie("path",{d:"m9 12 2 2 4-4"})]}),award:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("circle",{cx:"12",cy:"8",r:"7"}),ie("polyline",{points:"8.21 13.89 7 23 12 20 17 23 15.79 13.88"})]}),"thumbs-up":({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M7 10v12"}),ie("path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2h0a3.13 3.13 0 0 1 3 3.88Z"})]}),lock:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),ie("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]}),"badge-check":({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z"}),ie("path",{d:"m9 12 2 2 4-4"})]}),medal:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15"}),ie("path",{d:"M11 12 5.12 2.2"}),ie("path",{d:"m13 12 5.88-9.8"}),ie("path",{d:"M8 7h8"}),ie("circle",{cx:"12",cy:"17",r:"5"}),ie("path",{d:"M12 18v-2h-.5"})]}),trophy:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6"}),ie("path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18"}),ie("path",{d:"M4 22h16"}),ie("path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22"}),ie("path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22"}),ie("path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z"})]}),heart:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:ie("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})}),users:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),ie("circle",{cx:"9",cy:"7",r:"4"}),ie("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),ie("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}),user:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}),ie("circle",{cx:"12",cy:"7",r:"4"})]}),"message-circle":({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:ie("path",{d:"m3 21 1.9-5.7a8.5 8.5 0 1 1 3.8 3.8z"})}),phone:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:ie("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})}),mail:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("rect",{width:"20",height:"16",x:"2",y:"4",rx:"2"}),ie("path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"})]}),share:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("circle",{cx:"18",cy:"5",r:"3"}),ie("circle",{cx:"6",cy:"12",r:"3"}),ie("circle",{cx:"18",cy:"19",r:"3"}),ie("line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49"}),ie("line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49"})]}),"at-sign":({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("circle",{cx:"12",cy:"12",r:"4"}),ie("path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8"})]}),cart:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("circle",{cx:"8",cy:"21",r:"1"}),ie("circle",{cx:"19",cy:"21",r:"1"}),ie("path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12"})]}),"shopping-bag":({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z"}),ie("path",{d:"M3 6h18"}),ie("path",{d:"M16 10a4 4 0 0 1-8 0"})]}),gift:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("rect",{x:"3",y:"8",width:"18",height:"4",rx:"1"}),ie("path",{d:"M12 8v13"}),ie("path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7"}),ie("path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5"})]}),tag:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"}),ie("circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor"})]}),percent:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("line",{x1:"19",x2:"5",y1:"5",y2:"19"}),ie("circle",{cx:"6.5",cy:"6.5",r:"2.5"}),ie("circle",{cx:"17.5",cy:"17.5",r:"2.5"})]}),wallet:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1"}),ie("path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4"})]}),"credit-card":({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("rect",{width:"20",height:"14",x:"2",y:"5",rx:"2"}),ie("line",{x1:"2",x2:"22",y1:"10",y2:"10"})]}),receipt:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z"}),ie("path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8"}),ie("path",{d:"M12 17.5v-11"})]}),store:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7"}),ie("path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"}),ie("path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4"}),ie("path",{d:"M2 7h20"}),ie("path",{d:"M22 7v3a2 2 0 0 1-2 2v0a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12v0a2 2 0 0 1-2-2V7"})]}),barcode:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M3 5v14"}),ie("path",{d:"M8 5v14"}),ie("path",{d:"M12 5v14"}),ie("path",{d:"M17 5v14"}),ie("path",{d:"M21 5v14"})]}),leaf:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z"}),ie("path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12"})]}),sprout:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M7 20h10"}),ie("path",{d:"M10 20c5.5-2.5.8-6.4 3-10"}),ie("path",{d:"M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z"}),ie("path",{d:"M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z"})]}),"tree-pine":({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z"}),ie("path",{d:"M12 22v-3"})]}),flower:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M12 7.5a4.5 4.5 0 1 1 4.5 4.5M12 7.5A4.5 4.5 0 1 0 7.5 12M12 7.5V9m-4.5 3a4.5 4.5 0 1 0 4.5 4.5M7.5 12H9m7.5 0a4.5 4.5 0 1 1-4.5 4.5m4.5-4.5H15m-3 4.5V15"}),ie("circle",{cx:"12",cy:"12",r:"3"}),ie("path",{d:"m8 16 1.5-1.5"}),ie("path",{d:"M14.5 9.5 16 8"}),ie("path",{d:"m8 8 1.5 1.5"}),ie("path",{d:"M14.5 14.5 16 16"})]}),recycle:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5"}),ie("path",{d:"M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12"}),ie("path",{d:"m14 16-3 3 3 3"}),ie("path",{d:"M8.293 13.596 7.196 9.5 3.1 10.598"}),ie("path",{d:"m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843"}),ie("path",{d:"m13.378 9.633 4.096 1.098 1.097-4.096"})]}),droplet:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:ie("path",{d:"M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"})}),sun:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("circle",{cx:"12",cy:"12",r:"4"}),ie("path",{d:"M12 2v2"}),ie("path",{d:"M12 20v2"}),ie("path",{d:"m4.93 4.93 1.41 1.41"}),ie("path",{d:"m17.66 17.66 1.41 1.41"}),ie("path",{d:"M2 12h2"}),ie("path",{d:"M20 12h2"}),ie("path",{d:"m6.34 17.66-1.41 1.41"}),ie("path",{d:"m19.07 4.93-1.41 1.41"})]}),moon:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:ie("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})}),cloud:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:ie("path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"})}),mountain:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:ie("path",{d:"m8 3 4 8 5-5 5 15H2L8 3z"})}),truck:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("rect",{x:"1",y:"3",width:"15",height:"13"}),ie("polygon",{points:"16 8 20 8 23 11 23 16 16 16 16 8"}),ie("circle",{cx:"5.5",cy:"18.5",r:"2.5"}),ie("circle",{cx:"18.5",cy:"18.5",r:"2.5"})]}),package:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("line",{x1:"16.5",y1:"9.4",x2:"7.5",y2:"4.21"}),ie("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),ie("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),ie("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]}),box:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"}),ie("path",{d:"m3.3 7 8.7 5 8.7-5"}),ie("path",{d:"M12 22V12"})]}),"map-pin":({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z"}),ie("circle",{cx:"12",cy:"10",r:"3"})]}),home:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),ie("polyline",{points:"9 22 9 12 15 12 15 22"})]}),clock:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("circle",{cx:"12",cy:"12",r:"10"}),ie("polyline",{points:"12 6 12 12 16 14"})]}),timer:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("line",{x1:"10",x2:"14",y1:"2",y2:"2"}),ie("line",{x1:"12",x2:"15",y1:"14",y2:"11"}),ie("circle",{cx:"12",cy:"14",r:"8"})]}),zap:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:ie("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})}),sparkles:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"}),ie("path",{d:"M5 3v4"}),ie("path",{d:"M19 17v4"}),ie("path",{d:"M3 5h4"}),ie("path",{d:"M17 19h4"})]}),flame:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:ie("path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"})}),globe:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("circle",{cx:"12",cy:"12",r:"10"}),ie("line",{x1:"2",y1:"12",x2:"22",y2:"12"}),ie("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})]}),"arrow-right":({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M5 12h14"}),ie("path",{d:"m12 5 7 7-7 7"})]}),download:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),ie("polyline",{points:"7 10 12 15 17 10"}),ie("line",{x1:"12",x2:"12",y1:"15",y2:"3"})]}),"refresh-cw":({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}),ie("path",{d:"M21 3v5h-5"}),ie("path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}),ie("path",{d:"M8 16H3v5"})]}),info:({className:e="",size:t=24})=>ie("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",class:e,children:[ie("circle",{cx:"12",cy:"12",r:"10"}),ie("path",{d:"M12 16v-4"}),ie("path",{d:"M12 8h.01"})]})},Mi={check:Si.check,"check-circle":Si.check,star:Si.star,shield:Si.shield,"shield-check":Si["shield-check"],award:Si.award,"thumbs-up":Si["thumbs-up"],lock:Si.lock,secure:Si.lock,"badge-check":Si["badge-check"],verified:Si["badge-check"],medal:Si.medal,trophy:Si.trophy,heart:Si.heart,users:Si.users,user:Si.user,"message-circle":Si["message-circle"],message:Si["message-circle"],chat:Si["message-circle"],phone:Si.phone,mail:Si.mail,email:Si.mail,share:Si.share,"at-sign":Si["at-sign"],cart:Si.cart,"shopping-cart":Si.cart,"shopping-bag":Si["shopping-bag"],bag:Si["shopping-bag"],gift:Si.gift,tag:Si.tag,percent:Si.percent,discount:Si.percent,wallet:Si.wallet,"credit-card":Si["credit-card"],payment:Si["credit-card"],receipt:Si.receipt,store:Si.store,shop:Si.store,barcode:Si.barcode,leaf:Si.leaf,nature:Si.leaf,eco:Si.leaf,sprout:Si.sprout,"tree-pine":Si["tree-pine"],tree:Si["tree-pine"],flower:Si.flower,recycle:Si.recycle,sustainable:Si.recycle,droplet:Si.droplet,water:Si.droplet,sun:Si.sun,moon:Si.moon,cloud:Si.cloud,mountain:Si.mountain,truck:Si.truck,delivery:Si.truck,shipping:Si.truck,package:Si.package,box:Si.box,"map-pin":Si["map-pin"],location:Si["map-pin"],home:Si.home,house:Si.home,clock:Si.clock,time:Si.clock,timer:Si.timer,stopwatch:Si.timer,zap:Si.zap,lightning:Si.zap,energy:Si.zap,sparkles:Si.sparkles,flame:Si.flame,fire:Si.flame,globe:Si.globe,world:Si.globe,"arrow-right":Si["arrow-right"],arrow:Si["arrow-right"],download:Si.download,"refresh-cw":Si["refresh-cw"],refresh:Si["refresh-cw"],sync:Si["refresh-cw"],info:Si.info,information:Si.info};function Ai({url:e,className:t,size:n}){const[i,o]=ve(null),[r,a]=ve(!1);return ye(()=>{let t=!1;return async function(e,t=2){let n;for(let i=0;i<t;i++){try{const t=await fetch(e);if(t.ok)return await t.text();n=new Error(`HTTP ${t.status}`)}catch(e){n=e}i<t-1&&await new Promise(e=>setTimeout(e,400))}throw n??new Error("fetch failed")}(e).then(e=>{if(t)return;let i=(r=e,Ci.sanitize(r,{USE_PROFILES:{svg:!0,svgFilters:!0}}));var r;const l=(new DOMParser).parseFromString(i,"image/svg+xml").querySelector("svg");l?(l.setAttribute("width",String(n)),l.setAttribute("height",String(n)),l.querySelectorAll("style").forEach(e=>{const t=e.textContent||"",n=/\.([a-zA-Z_][\w-]*)\s*\{[^}]*display\s*:\s*none[^}]*\}/g;let i;for(;null!==(i=n.exec(t));){const e=i[1];l.querySelectorAll(`.${e}`).forEach(e=>e.remove())}e.remove()}),l.querySelectorAll("*").forEach(e=>{const t=e.getAttribute("fill"),n=e.getAttribute("stroke");t&&"none"!==t?e.setAttribute("fill","currentColor"):t||"svg"===e.tagName||e.setAttribute("fill","currentColor"),n&&"none"!==n&&e.setAttribute("stroke","currentColor")}),o(l.outerHTML)):a(!0)}).catch(()=>{t||a(!0)}),()=>{t=!0}},[e,n]),r?ie("img",{src:e,alt:"Custom icon",width:n,height:n,class:t,style:{objectFit:"contain"},onError:e=>{e.target.style.display="none"}}):i?ie("span",{class:t,style:{display:"inline-flex",width:n,height:n},dangerouslySetInnerHTML:{__html:i}}):ie("div",{style:{width:n,height:n},class:t})}function Ti({name:e,className:t,size:n=24}){return _i(e)?function(e){let t=e;try{t=new URL(e).pathname}catch{}const n=t.toLowerCase();return Ii.some(e=>n.endsWith(e))}(e)?ie("img",{src:e,alt:"Custom icon",width:n,height:n,class:t,style:{objectFit:"contain"},onError:e=>{e.target.style.display="none"}}):ie(Ai,{url:e,className:t,size:n}):ie(Mi[e.toLowerCase()]||Si.check,{className:t,size:n})}function Ei({section:e,variantId:t,brandColors:n}){const{headline:i,subheadline:o,items:r,backgroundColor:a}=e.content,{notifyColorChanged:l,requestIconEdit:s,isPreviewMode:d,onElementClick:c}=je(),u=Xe(a,n),p=Je(a,n),h=(t,n)=>{l?.(e.id,"moveItem",JSON.stringify({from:t,to:n,focusElementId:`item-${n}`}))},m=t=>{const n=r[t].icon;s&&s(e.id,`items.${t}.icon`,n)},f=e.content.visibility||{},g="false"!==f.subheadline,b="false"!==f.headline,v=t=>{l?.(e.id,`visibility.${t}`,"false")},y=t=>{l?.(e.id,`visibility.${t}`,"true")},x=i||"Add Heading",w=o||"Add subheading here.",k=b||g;return ie("div",{class:"w-full py-8 md:py-16 px-4",style:u,children:ie("div",{class:"max-w-screen-lg mx-auto flex flex-col items-center "+(k?"gap-10":"gap-0"),children:[k&&ie("div",{class:"flex flex-col gap-3 text-center items-center",children:[b&&ie(nt,{sectionId:e.id,elementId:"headline",elementType:"text",label:"Heading",onRemove:()=>v("headline"),addZoneBelow:g?void 0:{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>y("subheadline")},children:ie(Oe,{sectionId:e.id,field:"headline",value:x,as:"h2",class:"pb-text-h2 tracking-[-0.6px] md:tracking-[-0.8px]"})}),g&&ie(nt,{sectionId:e.id,elementId:"subheadline",elementType:"text",label:"Subheadline",onRemove:()=>v("subheadline"),addZoneAbove:b?void 0:{elementId:"headline",elementLabel:"Heading",onAdd:()=>y("headline")},children:ie(Oe,{sectionId:e.id,field:"subheadline",value:w,as:"p",class:"pb-text-body max-w-3xl"})})]}),ie("div",{class:"w-full",style:{position:"relative"},children:[!b&&!g&&d&&ie("div",{style:{position:"absolute",top:"-32px",left:0,right:0,zIndex:10},children:ie(st,{elementId:"headline",elementLabel:"Heading",onAdd:()=>y("headline")})}),ie("div",{class:"flex flex-wrap justify-center gap-10 md:gap-16 w-full",children:[ie("style",{dangerouslySetInnerHTML:{__html:"\n            @media (min-width: 768px) {\n              .icon-stacked-item {\n                width: calc(25% - 48px);\n                max-width: 200px;\n                min-width: 150px;\n              }\n            }\n            @media (max-width: 767px) {\n              .icon-stacked-item {\n                width: calc(50% - 20px);\n              }\n            }\n          "}}),r.map((t,i)=>ie("div",{class:"icon-stacked-item flex justify-center",children:ie(lt,{sectionId:e.id,elementId:`item-${i}`,index:i,totalCount:r.length,minCount:2,maxCount:6,label:`Icon ${i+1}`,onAdd:t=>((t,n)=>{const i=r[0]?.iconColor,o={id:`icon-${Date.now()}`,icon:"check",label:"New Feature",...i&&{iconColor:i}};l?.(e.id,"addItem",JSON.stringify({index:"before"===n?t:t+1,item:o}))})(i,t),onRemove:()=>(t=>{l?.(e.id,"removeItem",String(t))})(i),onMoveLeft:i>0?()=>h(i,i-1):void 0,onMoveRight:i<r.length-1?()=>h(i,i+1):void 0,currentColor:t.iconColor,sectionBackgroundColor:p,onColorChange:t=>((t,n)=>{r.forEach((t,i)=>{l?.(e.id,`items.${i}.iconColor`,n)})})(0,t),brandColors:n,supportsColorPicker:!0,currentIcon:t.icon,onIconClick:()=>m(i),children:ie("div",{class:"flex flex-col gap-5 md:gap-6 items-center",children:[ie("button",{type:"button",class:"w-[56px] h-[56px] bg-[var(--brand-primary,#00a47c)] rounded-full flex items-center justify-center cursor-pointer hover:scale-110 transition-transform relative overflow-hidden",style:t.iconColor?{backgroundColor:Ye(t.iconColor),color:Ke(t.iconColor,n),zIndex:10}:{zIndex:10},onClick:e=>{e.preventDefault(),e.stopPropagation(),m(i)},title:"Click to change icon",children:ie(Ti,{name:t.icon,className:t.iconColor?"":"text-white",size:_i(t.icon)?32:28})}),ie(Oe,{sectionId:e.id,field:`items.${i}.label`,value:t.label,as:"p",class:"pb-text-h5 text-center font-bold"})]})},t.id)}))]})]})]})})}function Pi({section:e,variantId:t,brandColors:n}){const{items:i,backgroundColor:o}=e.content,{notifyColorChanged:r,requestIconEdit:a,onElementClick:l}=je(),s=Xe(o,n),d=Je(o,n),c=(t,n)=>{i.forEach((t,i)=>{r?.(e.id,`items.${i}.iconColor`,n)})},u=(t,n)=>{const o=i[0]?.iconColor,a={id:`icon-${Date.now()}`,icon:"check",label:"New Feature",...o&&{iconColor:o}};r?.(e.id,"addItem",JSON.stringify({index:"before"===n?t:t+1,item:a}))},p=t=>{r?.(e.id,"removeItem",String(t))},h=(t,n)=>{r?.(e.id,"moveItem",JSON.stringify({from:t,to:n,focusElementId:`item-${n}`}))},m=t=>{const n=i[t].icon;a&&a(e.id,`items.${t}.icon`,n)};return ie("div",{class:"w-full py-8 md:py-12 px-4",style:s,children:ie("div",{class:"max-w-screen-xl mx-auto",children:[ie("div",{class:"hidden md:flex items-center justify-evenly",children:i.map((t,o)=>ie(lt,{sectionId:e.id,elementId:`item-${o}`,index:o,totalCount:i.length,minCount:2,maxCount:6,label:`Icon ${o+1}`,onAdd:e=>u(o,e),onRemove:()=>p(o),onMoveLeft:o>0?()=>h(o,o-1):void 0,onMoveRight:o<i.length-1?()=>h(o,o+1):void 0,currentColor:t.iconColor,sectionBackgroundColor:d,onColorChange:e=>c(0,e),brandColors:n,supportsColorPicker:!0,currentIcon:t.icon,onIconClick:()=>m(o),children:ie("div",{class:"flex items-center gap-4",children:[ie("button",{type:"button",class:"w-[45px] h-[44px] flex-shrink-0 flex items-center justify-center cursor-pointer hover:scale-110 transition-transform relative",style:t.iconColor?{color:Ye(t.iconColor),zIndex:10}:{zIndex:10},onClick:e=>{e.preventDefault(),e.stopPropagation(),m(o)},title:"Click to change icon",children:ie(Ti,{name:t.icon,className:t.iconColor?"":"text-[var(--brand-primary,#00a47c)]",size:32})}),ie(Oe,{sectionId:e.id,field:`items.${o}.label`,value:t.label,as:"p",class:"pb-text-h5 font-bold"})]})},t.id))}),ie("div",{class:"grid grid-cols-2 gap-x-4 gap-y-6 md:hidden",children:i.map((t,o)=>ie("div",{class:i.length%2==1&&o===i.length-1?"col-span-2 flex justify-center":"",children:ie(lt,{sectionId:e.id,elementId:`item-${o}`,index:o,totalCount:i.length,minCount:2,maxCount:6,label:`Icon ${o+1}`,onAdd:e=>u(o,e),onRemove:()=>p(o),onMoveLeft:o>0?()=>h(o,o-1):void 0,onMoveRight:o<i.length-1?()=>h(o,o+1):void 0,currentColor:t.iconColor,sectionBackgroundColor:d,onColorChange:e=>c(0,e),brandColors:n,supportsColorPicker:!0,currentIcon:t.icon,onIconClick:()=>m(o),children:ie("div",{class:"flex items-center gap-4",children:[ie("button",{type:"button",class:"w-[45px] h-[44px] flex-shrink-0 flex items-center justify-center cursor-pointer hover:scale-110 transition-transform relative overflow-hidden",style:t.iconColor?{color:Ye(t.iconColor),zIndex:10}:{zIndex:10},onClick:e=>{e.preventDefault(),e.stopPropagation(),m(o)},title:"Click to change icon",children:ie(Ti,{name:t.icon,className:t.iconColor?"":"text-[var(--brand-primary,#00a47c)]",size:32})}),ie(Oe,{sectionId:e.id,field:`items.${o}.label`,value:t.label,as:"p",class:"pb-text-h5 font-bold"})]})})},t.id))})]})})}function Li(e){return"icon-detail-5050"===e||"icon-detail-rows"===e?6:4}function Ni({section:e,variantId:t,brandColors:n}){switch(e.content.layout||"icon-grid"){case"icon-grid":default:return ie(Bi,{section:e,variantId:t,brandColors:n});case"icon-detail":return ie(Fi,{section:e,variantId:t,brandColors:n});case"icon-detail-5050":return ie(Di,{section:e,variantId:t,brandColors:n});case"icon-detail-rows":return ie(Hi,{section:e,variantId:t,brandColors:n});case"icon-badges":return ie(Wi,{section:e,variantId:t,brandColors:n})}}function ji(e){const{notifyColorChanged:t,requestIconEdit:n}=je(),{items:i}=e.content;return{handleIconColorChange:(n,o)=>{i.forEach((n,i)=>{t?.(e.id,`items.${i}.iconColor`,o)})},handleAddItem:(n,o)=>{const r=i[0]?.iconColor,a={id:`icon-${Date.now()}`,icon:"check",title:"New Feature",...r&&{iconColor:r}};t?.(e.id,"addItem",JSON.stringify({index:"before"===o?n:n+1,item:a}))},handleRemoveItem:n=>{t?.(e.id,"removeItem",String(n))},handleMoveItem:(n,i)=>{t?.(e.id,"moveItem",JSON.stringify({from:n,to:i,focusElementId:`item-${i}`}))},handleIconClick:t=>{const o=i[t].icon;n?.(e.id,`items.${t}.icon`,o)}}}function zi(e){const{notifyColorChanged:t}=je(),{visibility:n}=e.content;return{isSubheadlineVisible:"false"!==n?.subheadline,handleRemoveElement:n=>{t?.(e.id,`visibility.${n}`,"false")},handleAddElement:n=>{t?.(e.id,`visibility.${n}`,"true")}}}function Oi({item:e,brandColors:t,onClick:n}){const i=e.iconColor||"primary";return ie("button",{type:"button",class:"w-[56px] h-[56px] rounded-full flex items-center justify-center cursor-pointer hover:scale-110 transition-transform relative overflow-hidden flex-shrink-0",style:{backgroundColor:Ye(i),color:Ke(i,t),zIndex:10},onClick:e=>{e.preventDefault(),e.stopPropagation(),n()},title:"Click to change icon",children:ie(Ti,{name:e.icon,size:_i(e.icon)?32:24})})}function Ri({section:e,item:t,index:n,visibleCount:i,brandColors:o,effectiveBackgroundColor:r,handlers:a,maxCount:l,children:s}){return ie(lt,{sectionId:e.id,elementId:`item-${n}`,index:n,totalCount:i,minCount:3,maxCount:l,label:`Icon ${n+1}`,onAdd:e=>a.handleAddItem(n,e),onRemove:()=>a.handleRemoveItem(n),onMoveLeft:n>0?()=>a.handleMoveItem(n,n-1):void 0,onMoveRight:n<i-1?()=>a.handleMoveItem(n,n+1):void 0,currentColor:t.iconColor,sectionBackgroundColor:r,onColorChange:e=>a.handleIconColorChange(n,e),brandColors:o,supportsColorPicker:!0,currentIcon:t.icon,onIconClick:()=>a.handleIconClick(n),fillWidth:!0,children:s},t.id)}function $i({section:e,alignment:t,brandColors:n}){const{headline:i,subheadline:o}=e.content,r=i||"Add Heading",a=o||"Add subheading here.",l="center"===t?"text-center items-center":"text-left items-start",{isSubheadlineVisible:s,handleRemoveElement:d,handleAddElement:c}=zi(e);return Je(e.content.backgroundColor,n),ie("div",{class:`flex flex-col gap-3 ${l}`,style:{overflowWrap:"break-word",wordBreak:"break-word"},children:[ie(nt,{sectionId:e.id,elementId:"headline",elementType:"heading",label:"Heading",addZoneBelow:s?void 0:{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>c("subheadline")},children:ie(Oe,{sectionId:e.id,field:"headline",value:r,as:"h2",class:"pb-text-h2 tracking-[-0.6px] md:tracking-[-0.8px]"})}),s&&ie(nt,{sectionId:e.id,elementId:"subheadline",elementType:"text",label:"Subheading",onRemove:()=>d("subheadline"),children:ie(Oe,{sectionId:e.id,field:"subheadline",value:a,as:"p",class:"pb-text-body max-w-3xl"})})]})}function Bi({section:e,variantId:t,brandColors:n}){const{items:i,backgroundColor:o,alignment:r="left"}=e.content,a=e.content.layout||"icon-grid",l=Xe(o,n),s=Je(o,n),d=ji(e),c="center"===r,u=Li(a),p=i.slice(0,u);return ie("div",{class:"w-full py-8 md:py-16 px-5 md:px-20 overflow-hidden",style:l,children:ie("div",{class:"max-w-[1140px] mx-auto flex flex-col gap-8 md:gap-10",children:[ie($i,{section:e,alignment:c?"center":"left",brandColors:n}),ie("style",{dangerouslySetInnerHTML:{__html:`\n          .icon-grid-${e.id} { gap: clamp(2rem, 7.6vw, 110px); grid-template-columns: repeat(${p.length}, 1fr); }\n          .icon-grid-${e.id} [class*="pb-text"] { overflow-wrap: break-word; word-break: break-word; }\n        `}}),ie("div",{class:`hidden md:grid icon-grid-${e.id} ${c?"justify-items-center":"justify-items-start"}`,children:p.map((t,i)=>ie(Ri,{section:e,item:t,index:i,visibleCount:p.length,brandColors:n,effectiveBackgroundColor:s,handlers:d,maxCount:u,children:ie("div",{class:"flex flex-col gap-6 items-center max-w-full",children:[ie(Oi,{item:t,brandColors:n,onClick:()=>d.handleIconClick(i)}),ie(Oe,{sectionId:e.id,field:`items.${i}.title`,value:t.title,as:"p",class:"pb-text-h5 text-center"})]})},t.id))}),ie("div",{class:"grid grid-cols-2 gap-x-8 gap-y-10 md:hidden",children:p.map((t,i)=>ie("div",{class:"flex justify-center overflow-hidden "+(i===p.length-1&&p.length%2!=0?"col-span-2":""),children:ie(Ri,{section:e,item:t,index:i,visibleCount:p.length,brandColors:n,effectiveBackgroundColor:s,handlers:d,maxCount:u,children:ie("div",{class:"flex flex-col gap-6 items-center max-w-full",style:{overflowWrap:"break-word",wordBreak:"break-word"},children:[ie(Oi,{item:t,brandColors:n,onClick:()=>d.handleIconClick(i)}),ie(Oe,{sectionId:e.id,field:`items.${i}.title`,value:t.title,as:"p",class:"pb-text-h5 text-center"})]})})},t.id))})]})})}function Fi({section:e,variantId:t,brandColors:n}){const{items:i,backgroundColor:o,alignment:r="left"}=e.content,a=e.content.layout||"icon-detail",l=Xe(o,n),s=Je(o,n),d=ji(e),c="center"===r,u=Li(a),p=i.slice(0,u);return ie("div",{class:"w-full py-8 md:py-16 px-5 md:px-20 overflow-hidden",style:l,children:ie("div",{class:"max-w-[1140px] mx-auto flex flex-col gap-8 md:gap-10",children:[ie("div",{class:"max-w-[772px] "+(c?"mx-auto":""),children:ie($i,{section:e,alignment:c?"center":"left",brandColors:n})}),ie("style",{dangerouslySetInnerHTML:{__html:`\n          .icon-detail-${e.id} { grid-template-columns: repeat(${Math.min(p.length,4)}, 1fr); }\n          .icon-detail-${e.id} [class*="pb-text"] { overflow-wrap: break-word; word-break: break-word; }\n        `}}),ie("div",{class:`hidden md:grid icon-detail-${e.id} gap-x-6 gap-y-10 ${c?"justify-items-center text-center":"justify-items-start"}`,children:p.map((t,i)=>ie(Ri,{section:e,item:t,index:i,visibleCount:p.length,brandColors:n,effectiveBackgroundColor:s,handlers:d,maxCount:u,children:ie("div",{class:"flex flex-col gap-6 max-w-full "+(c?"items-center":"items-start"),children:[ie(Oi,{item:t,brandColors:n,onClick:()=>d.handleIconClick(i)}),ie("div",{class:"flex flex-col gap-3 max-w-full",style:{overflowWrap:"break-word",wordBreak:"break-word"},children:[ie(Oe,{sectionId:e.id,field:`items.${i}.title`,value:t.title,as:"h3",class:"pb-text-h4 tracking-[-0.48px]"}),ie(Oe,{sectionId:e.id,field:`items.${i}.description`,value:t.description||"Add description here.",as:"p",class:"pb-text-body"})]})]})},t.id))}),ie("div",{class:"grid grid-cols-2 gap-x-6 gap-y-10 md:hidden",children:p.map((t,i)=>ie("div",{class:"overflow-hidden "+(i===p.length-1&&p.length%2!=0?"col-span-2 flex justify-center":""),children:ie(Ri,{section:e,item:t,index:i,visibleCount:p.length,brandColors:n,effectiveBackgroundColor:s,handlers:d,maxCount:u,children:ie("div",{class:"flex flex-col gap-6 max-w-full items-center text-center",style:{overflowWrap:"break-word",wordBreak:"break-word"},children:[ie(Oi,{item:t,brandColors:n,onClick:()=>d.handleIconClick(i)}),ie("div",{class:"flex flex-col gap-3 max-w-full",children:[ie(Oe,{sectionId:e.id,field:`items.${i}.title`,value:t.title,as:"h3",class:"pb-text-h5"}),ie(Oe,{sectionId:e.id,field:`items.${i}.description`,value:t.description||"Add description here.",as:"p",class:"pb-text-body"})]})]})})},t.id))})]})})}function Di({section:e,variantId:t,brandColors:n}){const{items:i,backgroundColor:o,alignment:r="left",headline:a,subheadline:l}=e.content,s=e.content.layout||"icon-detail-5050",d=Xe(o,n),c=Je(o,n),u=ji(e),{isSubheadlineVisible:p,handleRemoveElement:h,handleAddElement:m}=zi(e),f="right"===r,g=Li(s),b=i.slice(0,g),v=a||"Add Heading",y=l||"Add subheading here.",x=b.length>3,w=x?b.slice(0,Math.ceil(b.length/2)):b,k=x?b.slice(Math.ceil(b.length/2)):[],C=(t,i)=>ie(Ri,{section:e,item:t,index:i,visibleCount:b.length,brandColors:n,effectiveBackgroundColor:c,handlers:u,maxCount:g,children:ie("div",{class:"flex gap-6 items-start w-full lg:w-[316px]",children:[ie(Oi,{item:t,brandColors:n,onClick:()=>u.handleIconClick(i)}),ie("div",{class:"flex flex-col gap-3 flex-1 lg:flex-none lg:w-[236px]",style:{overflowWrap:"break-word",wordBreak:"break-word"},children:[ie(Oe,{sectionId:e.id,field:`items.${i}.title`,value:t.title,as:"p",class:"pb-text-h5"}),ie(Oe,{sectionId:e.id,field:`items.${i}.description`,value:t.description||"Add description here.",as:"p",class:"pb-text-body"})]})]})},t.id),_=ie("div",{class:"flex flex-col gap-3 justify-center md:w-[40%] md:px-8 lg:px-16 max-w-[440px]",style:{overflowWrap:"break-word",wordBreak:"break-word"},children:[ie(nt,{sectionId:e.id,elementId:"headline",elementType:"heading",label:"Heading",addZoneBelow:p?void 0:{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>m("subheadline")},children:ie(Oe,{sectionId:e.id,field:"headline",value:v,as:"h2",class:"pb-text-h2 tracking-[-0.6px] md:tracking-[-0.8px]"})}),p&&ie(nt,{sectionId:e.id,elementId:"subheadline",elementType:"text",label:"Subheading",onRemove:()=>h("subheadline"),children:ie(Oe,{sectionId:e.id,field:"subheadline",value:y,as:"p",class:"pb-text-body"})})]}),I=ie("div",{class:"md:w-[60%] flex items-center justify-center py-8 md:py-12 px-6 md:px-10 lg:px-16",children:ie("div",{class:"hidden md:flex gap-x-6 gap-y-10 items-center justify-center",children:[ie("div",{class:"flex flex-col gap-y-10",children:w.map(e=>C(e,b.indexOf(e)))}),x&&ie("div",{class:"flex flex-col gap-y-10",children:k.map(e=>C(e,b.indexOf(e)))})]})});return ie("div",{class:"w-full py-8 md:py-16 px-5 md:px-20 overflow-hidden",style:d,children:[ie("div",{class:"hidden lg:flex items-stretch gap-8 max-w-[1140px] mx-auto min-h-[400px]",children:ie(j,f?{children:[I,_]}:{children:[_,I]})}),ie("div",{class:"flex flex-col lg:hidden gap-8 md:max-w-[480px] md:mx-auto",children:[ie("div",{class:"flex flex-col gap-3",style:{overflowWrap:"break-word",wordBreak:"break-word"},children:[ie(nt,{sectionId:e.id,elementId:"headline",elementType:"heading",label:"Heading",addZoneBelow:p?void 0:{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>m("subheadline")},children:ie(Oe,{sectionId:e.id,field:"headline",value:v,as:"h2",class:"pb-text-h2 tracking-[-0.6px]"})}),p&&ie(nt,{sectionId:e.id,elementId:"subheadline",elementType:"text",label:"Subheading",onRemove:()=>h("subheadline"),children:ie(Oe,{sectionId:e.id,field:"subheadline",value:y,as:"p",class:"pb-text-body"})})]}),ie("div",{class:"flex flex-col gap-8",children:b.map((e,t)=>C(e,t))})]})]})}function Hi({section:e,variantId:t,brandColors:n}){const{items:i,backgroundColor:o,alignment:r="left"}=e.content,a=e.content.layout||"icon-detail-rows",l=Xe(o,n),s=Je(o,n),d=ji(e),{isSubheadlineVisible:c,handleRemoveElement:u,handleAddElement:p}=zi(e),h="center"===r,m=Li(a),f=i.slice(0,m),g=e.content.headline||"Add Heading",b=e.content.subheadline||"Add subheading here.";return ie("div",{class:"w-full py-8 md:py-16 px-5 md:px-20 overflow-hidden",style:l,children:ie("div",{class:"max-w-[1140px] mx-auto flex flex-col gap-8 md:gap-10",children:[ie("div",{class:"flex flex-col gap-3 max-w-[440px] "+(h?"mx-auto text-center items-center":""),style:{overflowWrap:"break-word",wordBreak:"break-word"},children:[ie(nt,{sectionId:e.id,elementId:"headline",elementType:"heading",label:"Heading",addZoneBelow:c?void 0:{elementId:"subheadline",elementLabel:"Subheading",onAdd:()=>p("subheadline")},children:ie(Oe,{sectionId:e.id,field:"headline",value:g,as:"h2",class:"pb-text-h2 tracking-[-0.6px] md:tracking-[-0.8px]"})}),c&&ie(nt,{sectionId:e.id,elementId:"subheadline",elementType:"text",label:"Subheading",onRemove:()=>u("subheadline"),children:ie(Oe,{sectionId:e.id,field:"subheadline",value:b,as:"p",class:"pb-text-body"})})]}),ie("div",{class:"hidden md:flex flex-wrap gap-x-14 gap-y-10 justify-center",children:[ie("style",{dangerouslySetInnerHTML:{__html:`\n            .icon-rows-${e.id} { width: calc(33.333% - 38px); min-width: 280px; }\n            .icon-rows-${e.id} [class*="pb-text"] { overflow-wrap: break-word; word-break: break-word; }\n          `}}),f.map((t,i)=>ie("div",{class:`icon-rows-${e.id}`,children:ie(Ri,{section:e,item:t,index:i,visibleCount:f.length,brandColors:n,effectiveBackgroundColor:s,handlers:d,maxCount:m,children:ie("div",{class:"flex gap-6 items-start",children:[ie(Oi,{item:t,brandColors:n,onClick:()=>d.handleIconClick(i)}),ie("div",{class:"flex flex-col gap-3 flex-1 min-w-0",style:{overflowWrap:"break-word",wordBreak:"break-word"},children:[ie(Oe,{sectionId:e.id,field:`items.${i}.title`,value:t.title,as:"p",class:"pb-text-h5"}),ie(Oe,{sectionId:e.id,field:`items.${i}.description`,value:t.description||"Add description here.",as:"p",class:"pb-text-body"})]})]})})},t.id))]}),ie("div",{class:"grid grid-cols-2 gap-x-6 gap-y-10 md:hidden",children:f.map((t,i)=>ie("div",{class:"overflow-hidden "+(i===f.length-1&&f.length%2!=0?"col-span-2 flex justify-center":""),children:ie(Ri,{section:e,item:t,index:i,visibleCount:f.length,brandColors:n,effectiveBackgroundColor:s,handlers:d,maxCount:m,children:ie("div",{class:"flex flex-col gap-6 max-w-full items-center text-center",style:{overflowWrap:"break-word",wordBreak:"break-word"},children:[ie(Oi,{item:t,brandColors:n,onClick:()=>d.handleIconClick(i)}),ie("div",{class:"flex flex-col gap-3 max-w-full",children:[ie(Oe,{sectionId:e.id,field:`items.${i}.title`,value:t.title,as:"p",class:"pb-text-h5"}),ie(Oe,{sectionId:e.id,field:`items.${i}.description`,value:t.description||"Add description here.",as:"p",class:"pb-text-body"})]})]})})},t.id))})]})})}function Wi({section:e,variantId:t,brandColors:n}){const{items:i,backgroundColor:o}=e.content,r=e.content.layout||"icon-badges",a=Xe(o,n),l=Je(o,n),s=ji(e),d=Li(r),c=i.slice(0,d);return ie("div",{class:"w-full py-6 md:py-8 px-5 md:px-20 overflow-hidden",style:a,children:ie("div",{class:"max-w-[1280px] mx-auto",children:[ie("div",{class:"hidden md:grid items-center justify-items-center",style:{gridTemplateColumns:`repeat(${c.length}, 1fr)`},children:c.map((t,i)=>ie(Ri,{section:e,item:t,index:i,visibleCount:c.length,brandColors:n,effectiveBackgroundColor:l,handlers:s,maxCount:d,children:ie("div",{class:"flex items-center gap-6 max-w-full",children:[ie(Oi,{item:t,brandColors:n,onClick:()=>s.handleIconClick(i)}),ie(Oe,{sectionId:e.id,field:`items.${i}.title`,value:t.title,as:"p",class:"pb-text-h5 line-clamp-2",style:{overflowWrap:"break-word",wordBreak:"break-word"}})]})},t.id))}),ie("div",{class:"flex flex-col gap-4 md:hidden items-start pl-3",children:c.map((t,i)=>ie(Ri,{section:e,item:t,index:i,visibleCount:c.length,brandColors:n,effectiveBackgroundColor:l,handlers:s,maxCount:d,children:ie("div",{class:"flex items-center gap-6",children:[ie(Oi,{item:t,brandColors:n,onClick:()=>s.handleIconClick(i)}),ie(Oe,{sectionId:e.id,field:`items.${i}.title`,value:t.title,as:"p",class:"pb-text-h5"})]})},t.id))})]})})}const Ui={small:24,medium:36,large:48};function Zi({section:e,variantId:t,edits:n,brandColors:i}){const{text:o,backgroundColor:r,size:a="small",gradient:l}=e.content,s=!1!==l&&"false"!==l,{isPreviewMode:d}=je(),c={small:{padding:"py-2 md:py-4",textClass:"pb-text-h4",gap:"ml-[24px]"},medium:{padding:"py-4 md:py-8",textClass:"pb-text-h2",gap:"ml-[36px]"},large:{padding:"py-8 md:py-16",textClass:"pb-text-h1",gap:"ml-[48px]"}}[a],[u,p]=ve(!1),[h,m]=ve(12),[f,g]=ve(150),b=xe(null),v=xe(null),y=xe(null);ye(()=>{const e=()=>{const e=v.current,t=y.current;if(!e||!t)return;const n=e.offsetWidth,i=t.offsetWidth+(Ui[a]||24);if(i<=0)return;const o=Math.ceil(n/i)+1;m(o),g(o*i/20)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[o,a]);const{baseColor:x,darkColor:w}=(()=>{let e="var(--brand-primary, #00a47c)",t="var(--brand-primary-darker, #006b52)";return r&&("primary"===r?(e="var(--brand-primary, #00a47c)",t="var(--brand-primary-darker, #006b52)"):"secondary"===r?(e="var(--brand-secondary, #333333)",t="var(--brand-secondary-darker, #0d0d0d)"):"accent1"===r?(e="var(--brand-accent1, #ff6b6b)",t="var(--brand-accent1-darker, #cc3f3f)"):"accent2"===r?(e="var(--brand-accent2, #4ecdc4)",t="var(--brand-accent2-darker, #2a9d96)"):"black"===r?(e="#000000",t="#1a1a1a"):"white"===r?(e="#FFFFFF",t="#f0f0f0"):"yellow"===r?(e="#FFD700",t="#e6c200"):"string"==typeof r&&r.startsWith("#")?(e=r,t=r):i&&(r===i.primary?(e="var(--brand-primary, #00a47c)",t="var(--brand-primary-darker, #006b52)"):r===i.secondary?(e="var(--brand-secondary, #333333)",t="var(--brand-secondary-darker, #0d0d0d)"):r===i.accent1?(e="var(--brand-accent1, #ff6b6b)",t="var(--brand-accent1-darker, #cc3f3f)"):r===i.accent2&&(e="var(--brand-accent2, #4ecdc4)",t="var(--brand-accent2-darker, #2a9d96)"))),{baseColor:e,darkColor:t}})(),k=Ge(r?"primary"===r?i?.primary||"#00a47c":"secondary"===r?i?.secondary||"#333333":"accent1"===r?i?.accent1||"#ff6b6b":"accent2"===r?i?.accent2||"#4ecdc4":"black"===r?"#000000":"white"===r?"#FFFFFF":"yellow"===r?"#FFD700":"string"==typeof r&&r.startsWith("#")?r:i?.primary||"#00a47c":i?.primary||"#00a47c"),C=Ee(t,e.id,"text",o,n);return ye(()=>{const e="rotating-text-banner-animation";if(!document.getElementById(e)){const t=document.createElement("style");t.id=e,t.textContent="\n        @keyframes scroll-banner {\n          0% {\n            transform: translateX(0);\n          }\n          100% {\n            transform: translateX(-50%);\n          }\n        }\n      ",document.head.appendChild(t)}},[]),ye(()=>{if(!d)return;const e=e=>{const t=e.target;"true"===t.getAttribute("contenteditable")&&b.current?.contains(t)&&p(!0)},t=e=>{const t=e.target;"true"===t.getAttribute("contenteditable")&&b.current?.contains(t)&&p(!1)};return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}},[d]),ie("div",{ref:v,class:`relative w-full ${c.padding} overflow-hidden`,style:{color:k},children:[ie("div",{class:"absolute inset-0",style:{background:s?`linear-gradient(to right, ${x}, ${w})`:x}}),ie("div",{class:"relative flex items-center",children:ie("div",{ref:b,class:"flex whitespace-nowrap",style:{animation:u?"none":`scroll-banner ${f}s linear infinite`},children:Array(2*h).fill(null).map((t,n)=>ie("span",{ref:0===n?y:void 0,children:ie(Oe,{sectionId:e.id,field:"text",value:C,as:"h2",class:`${c.textClass} tracking-[-0.36px] md:tracking-[-1.12px] ${n>0?c.gap:""}`})},n))})})]})}function qi(e){if(!e)return{days:0,hours:0,minutes:0,seconds:0,expired:!0};const t=new Date(e).getTime()-Date.now();return t<=0?{days:0,hours:0,minutes:0,seconds:0,expired:!0}:{days:Math.floor(t/864e5),hours:Math.floor(t/36e5%24),minutes:Math.floor(t/6e4%60),seconds:Math.floor(t/1e3%60),expired:!1}}function Vi(e){return e<10?`0${e}`:String(e)}function Yi({targetDate:e,sectionId:t,size:n,addZoneAbove:i,addZoneBelow:o}){const[r,a]=ve(()=>qi(e)),{isPreviewMode:l,notifyColorChanged:s,selectedSectionId:d,selectedElementId:c,onElementClick:u}=je(),[p,h]=ve(!1),m=xe(null),f=xe(null),[g,b]=ve(null);ye(()=>{a(qi(e));const t=setInterval(()=>{const n=qi(e);a(n),n.expired&&clearInterval(t)},1e3);return()=>clearInterval(t)},[e]);const v=l&&d===t&&"countdownDate"===c;ye(()=>{v||(h(!1),b(null))},[v]),ye(()=>{if(!v||!p)return;const e=e=>{const n=e.target;f.current?.contains(n)||m.current?.contains(n)||(h(!1),u?.(t,""))};return document.addEventListener("mousedown",e,!0),()=>document.removeEventListener("mousedown",e,!0)},[v,p,t]);const y=e?new Date(e):null,x=(()=>{if(!y||isNaN(y.getTime()))return"";const e=e=>e<10?`0${e}`:String(e);return`${y.getFullYear()}-${e(y.getMonth()+1)}-${e(y.getDate())}T${e(y.getHours())}:${e(y.getMinutes())}`})();ye(()=>{if(v&&p&&m.current){const e=m.current.getBoundingClientRect();b({top:e.top-90-8,left:e.left})}},[v,p]);const w="large"===n,k=w?"pb-text-h1 !leading-none tabular-nums":"pb-text-h2 !leading-none tabular-nums",C="pb-text-body-sm opacity-80 mt-1",_=w?"pb-text-h1 !leading-none opacity-60 mx-1 md:mx-2":"pb-text-h2 !leading-none opacity-60 mx-0.5 md:mx-1";if(r.expired&&!l)return null;const I=ie("div",{class:"flex items-start",ref:m,children:[ie("div",{class:"flex flex-col items-center",children:[ie("span",{class:k,children:Vi(r.days)}),ie("span",{class:C,children:"Days"})]}),ie("span",{class:_,children:":"}),ie("div",{class:"flex flex-col items-center",children:[ie("span",{class:k,children:Vi(r.hours)}),ie("span",{class:C,children:"Hours"})]}),ie("span",{class:_,children:":"}),ie("div",{class:"flex flex-col items-center",children:[ie("span",{class:k,children:Vi(r.minutes)}),ie("span",{class:C,children:"Mins"})]}),ie("span",{class:_,children:":"}),ie("div",{class:"flex flex-col items-center",children:[ie("span",{class:k,children:Vi(r.seconds)}),ie("span",{class:C,children:"Sec"})]})]});return l?ie("div",{style:{position:"relative",display:"inline-flex"},children:[ie(nt,{sectionId:t,elementId:"countdownDate",elementType:"countdown",label:"Countdown",addZoneAbove:i,addZoneBelow:o,children:ie("div",{onClick:e=>{l&&(e.preventDefault(),e.stopPropagation(),u?.(t,"countdownDate"),h(!0))},style:{cursor:"pointer"},children:I})}),v&&p&&g&&Et(ie("div",{ref:f,style:{position:"fixed",top:`${g.top}px`,left:`${g.left}px`,zIndex:2147483647,animation:"fadeSlideUp 0.2s ease-out"},onClick:e=>e.stopPropagation(),children:ie("div",{style:{background:"#1a1a2e",border:"1px solid rgba(255,255,255,0.15)",borderRadius:"8px",padding:"12px 16px",boxShadow:"0 4px 20px rgba(0,0,0,0.5)",display:"flex",flexDirection:"column",gap:"8px",minWidth:"220px",fontFamily:"Inter, system-ui, -apple-system, sans-serif"},children:[ie("span",{style:{color:"rgba(255,255,255,0.7)",fontSize:"11px",fontWeight:"500",textTransform:"uppercase",letterSpacing:"0.5px"},children:"Countdown ends"}),ie("input",{type:"datetime-local",value:x,onInput:e=>{const n=e.target;if(n.value){const e=new Date(n.value).toISOString();s?.(t,"countdownDate",e)}},style:{background:"rgba(255,255,255,0.1)",border:"1px solid rgba(255,255,255,0.2)",borderRadius:"6px",color:"white",padding:"8px 10px",fontSize:"14px",outline:"none",width:"100%",colorScheme:"dark",fontFamily:"Inter, system-ui, -apple-system, sans-serif"}})]})}),document.body)]}):I}function Gi({section:e,variantId:t,edits:n,brandColors:i}){const{headline:o,body:r,countdownDate:a,backgroundImage:l,primaryCta:s,alignment:d,visibility:c}=e.content,{isPreviewMode:u,readOnly:p,notifyColorChanged:h}=je(),m=Ee(t,e.id,"headline",o||"Limited Time Offer",n),f=Ee(t,e.id,"body",r||"Don't miss this exclusive offer.",n),g=("string"==typeof s?s:s?.text)||"Shop Now",b=Ee(t,e.id,"primaryCta.text",g,n),v="false"!==c?.body,y="false"!==c?.primaryCta,x=l?.src?Le(t,e.id,"backgroundImage",l,n):null,w=Xe(e.content.backgroundColor,i),k=Je(e.content.backgroundColor,i),C=t=>{h?.(e.id,`visibility.${t}`,"false")},_=t=>{h?.(e.id,`visibility.${t}`,"true")},I="left"===d?"items-start text-left":"right"===d?"items-end text-right":"items-center text-center";return ie("div",{class:"relative w-full overflow-hidden",style:{...w,minHeight:"280px"},children:[x&&ie("div",{class:"absolute inset-0",children:ie(Ue,{sectionId:e.id,field:"backgroundImage",src:x.src,alt:l?.alt||"",class:"w-full h-full object-cover",srcMobile:x.srcMobile,focalPoint:x.focalPoint,focalPointMobile:x.focalPointMobile,maxWidth:1920,maxWidthMobile:1080,sizes:"100vw",mediaType:x.type,poster:x.poster,posterMobile:x.posterMobile})}),ie("div",{class:"absolute inset-0 bg-black/40 pointer-events-none"}),ie("div",{class:"relative z-10 w-full h-full min-h-[280px] px-4 md:px-20 py-10 md:py-16 flex items-center pointer-events-none",children:ie("div",{class:`flex flex-col gap-4 md:gap-5 max-w-[1140px] mx-auto w-full ${I} pointer-events-auto`,children:[ie(nt,{sectionId:e.id,elementId:"headline",elementType:"heading",label:"Heading",addZoneBelow:v?void 0:{elementId:"body",elementLabel:"Text",onAdd:()=>_("body")},children:ie(Oe,{sectionId:e.id,field:"headline",value:m,as:"h2",class:"pb-text-h2 tracking-[-0.6px] md:tracking-[-0.8px]"})}),v&&ie(nt,{sectionId:e.id,elementId:"body",elementType:"text",label:"Text",onRemove:()=>C("body"),children:ie(Oe,{sectionId:e.id,field:"body",value:f,as:"p",class:"pb-text-body max-w-[600px]"})}),ie(Yi,{targetDate:a,sectionId:e.id,size:"large",addZoneAbove:v?void 0:{elementId:"body",elementLabel:"Text",onAdd:()=>_("body")},addZoneBelow:y?void 0:{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>_("primaryCta")}}),y&&s&&ie(nt,{sectionId:e.id,elementId:"primaryCta",elementType:"button",label:"Button",currentColor:s?.backgroundColor,sectionBackgroundColor:k,onColorChange:t=>{h?.(e.id,"primaryCta.backgroundColor",t)},onRemove:()=>C("primaryCta"),brandColors:i,supportsColorPicker:!0,children:ie(et,{variant:s?.variant||"primary",backgroundColor:s?.backgroundColor,brandColors:i,onClick:e=>{u&&!p||(e.preventDefault(),qe())},children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:b,as:"span"})})})]})})]})}function Ji({section:e,variantId:t,edits:n,brandColors:i}){const{countdownDate:o,backgroundImage:r,alignment:a}=e.content,l=r?.src?Le(t,e.id,"backgroundImage",r,n):null,s="left"===a?"justify-start":"right"===a?"justify-end":"justify-center";return ie("div",{class:"relative w-full overflow-hidden",style:{...Xe(e.content.backgroundColor,i),minHeight:"130px"},children:[l&&ie("div",{class:"absolute inset-0",children:ie(Ue,{sectionId:e.id,field:"backgroundImage",src:l.src,alt:r?.alt||"",class:"w-full h-full object-cover",srcMobile:l.srcMobile,focalPoint:l.focalPoint,focalPointMobile:l.focalPointMobile,maxWidth:1920,maxWidthMobile:1080,sizes:"100vw",mediaType:l.type,poster:l.poster,posterMobile:l.posterMobile})}),ie("div",{class:"absolute inset-0 bg-black/40 pointer-events-none"}),ie("div",{class:"absolute inset-0 z-10 flex items-center px-4 md:px-20 pointer-events-none",children:ie("div",{class:`flex ${s} max-w-[1140px] mx-auto w-full pointer-events-auto`,children:ie(Yi,{targetDate:o,sectionId:e.id,size:"compact"})})})]})}function Xi({section:e,variantId:t,edits:n,brandColors:i}){const{headline:o,body:r,discountText:a,backgroundImage:l,primaryCta:s,alignment:d,visibility:c}=e.content,{isPreviewMode:u,readOnly:p,notifyColorChanged:h}=je(),m=Ee(t,e.id,"headline",o||"Go Where You Go",n),f=Ee(t,e.id,"body",r||"Everyday layers built for comfort, durability, and repeat wear.",n),g=Ee(t,e.id,"discountText",a||"30% Off",n),b=("string"==typeof s?s:s?.text)||"Shop Now",v=Ee(t,e.id,"primaryCta.text",b,n),y="false"!==c?.body,x="false"!==c?.primaryCta,w=l?.src?Le(t,e.id,"backgroundImage",l,n):null,k=t=>{h?.(e.id,`visibility.${t}`,"false")},C=t=>{h?.(e.id,`visibility.${t}`,"true")},_="right"===d,I=ie("div",{class:"w-full min-w-0",children:ie(nt,{sectionId:e.id,elementId:"discountText",elementType:"discount",label:"Discount",children:ie(Oe,{sectionId:e.id,field:"discountText",value:g,as:"span",class:"pb-text-h1 !text-[36px] md:!text-[80px] !leading-none tracking-[-2px] break-words"})})}),S=ie("div",{class:"flex flex-col gap-3",children:[ie(nt,{sectionId:e.id,elementId:"headline",elementType:"heading",label:"Heading",addZoneBelow:y?void 0:{elementId:"body",elementLabel:"Text",onAdd:()=>C("body")},children:ie(Oe,{sectionId:e.id,field:"headline",value:m,as:"h2",class:"pb-text-h3 tracking-[-0.4px]"})}),y&&ie(nt,{sectionId:e.id,elementId:"body",elementType:"text",label:"Text",onRemove:()=>k("body"),addZoneBelow:x?void 0:{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>C("primaryCta")},children:ie(Oe,{sectionId:e.id,field:"body",value:f,as:"p",class:"pb-text-body-sm max-w-[440px]"})}),x&&s&&ie("div",{class:"mt-2",children:ie(nt,{sectionId:e.id,elementId:"primaryCta",elementType:"button",label:"Button",currentColor:s?.backgroundColor,sectionBackgroundColor:void 0,onColorChange:t=>{h?.(e.id,"primaryCta.backgroundColor",t)},onRemove:()=>k("primaryCta"),brandColors:i,supportsColorPicker:!0,children:ie(et,{variant:s?.variant||"primary",backgroundColor:s?.backgroundColor,brandColors:i,onClick:e=>{u&&!p||(e.preventDefault(),qe())},children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:v,as:"span"})})})})]});return ie("div",{class:"relative w-full overflow-hidden",style:{minHeight:"312px",color:"#ffffff"},children:[w&&ie("div",{class:"absolute inset-0",children:ie(Ue,{sectionId:e.id,field:"backgroundImage",src:w.src,alt:l?.alt||"",class:"w-full h-full object-cover",srcMobile:w.srcMobile,focalPoint:w.focalPoint,focalPointMobile:w.focalPointMobile,maxWidth:1920,maxWidthMobile:1080,sizes:"100vw",mediaType:w.type,poster:w.poster,posterMobile:w.posterMobile})}),ie("div",{class:"absolute inset-0 bg-black/40 pointer-events-none"}),ie("div",{class:"absolute inset-0 z-10 md:hidden flex items-center px-4 sm:px-8 pointer-events-none",children:ie("div",{class:"flex flex-col gap-3 w-full sm:w-auto sm:mx-auto items-start text-left pointer-events-auto max-h-full",children:[ie("div",{children:I}),S]})}),ie("div",{class:"absolute inset-0 z-10 hidden md:flex items-center justify-center px-8 pointer-events-none",children:ie("div",{class:"flex items-center w-full max-w-[1014px] mx-auto pointer-events-auto max-h-full",style:{gap:"100px"},children:ie(j,_?{children:[ie("div",{class:"flex-1 min-w-0 max-h-full flex items-center justify-center",children:I}),ie("div",{class:"flex-1 min-w-0 max-h-full flex items-center",children:S})]}:{children:[ie("div",{class:"flex-1 min-w-0 max-h-full flex items-center",children:S}),ie("div",{class:"flex-1 min-w-0 max-h-full flex items-center justify-center",children:I})]})})})]})}function Ki({section:e,variantId:t,edits:n,brandColors:i}){const{headline:o,body:r,countdownDate:a,primaryCta:l,alignment:s,visibility:d}=e.content,{isPreviewMode:c,readOnly:u,notifyColorChanged:p}=je(),h=Ee(t,e.id,"headline",o||"Limited Time Offer",n),m=Ee(t,e.id,"body",r||"Don't miss this exclusive offer.",n),f=("string"==typeof l?l:l?.text)||"Shop Now",g=Ee(t,e.id,"primaryCta.text",f,n),b="false"!==d?.body,v="false"!==d?.primaryCta,y=Xe(e.content.backgroundColor,i),x=Je(e.content.backgroundColor,i),w=t=>{p?.(e.id,`visibility.${t}`,"false")},k=t=>{p?.(e.id,`visibility.${t}`,"true")};return ie("div",{class:"relative w-full overflow-hidden",style:{...y,minHeight:"280px"},children:ie("div",{class:"w-full h-full min-h-[280px] px-4 md:px-20 py-10 md:py-16 flex items-center",children:ie("div",{class:"flex flex-col gap-4 md:gap-5 max-w-[1140px] mx-auto w-full "+("left"===s?"items-start text-left":"right"===s?"items-end text-right":"items-center text-center"),children:[ie(nt,{sectionId:e.id,elementId:"headline",elementType:"heading",label:"Heading",addZoneBelow:b?void 0:{elementId:"body",elementLabel:"Text",onAdd:()=>k("body")},children:ie(Oe,{sectionId:e.id,field:"headline",value:h,as:"h2",class:"pb-text-h2 tracking-[-0.6px] md:tracking-[-0.8px]"})}),b&&ie(nt,{sectionId:e.id,elementId:"body",elementType:"text",label:"Text",onRemove:()=>w("body"),children:ie(Oe,{sectionId:e.id,field:"body",value:m,as:"p",class:"pb-text-body max-w-[600px]"})}),ie(Yi,{targetDate:a,sectionId:e.id,size:"large",addZoneAbove:b?void 0:{elementId:"body",elementLabel:"Text",onAdd:()=>k("body")},addZoneBelow:v?void 0:{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>k("primaryCta")}}),v&&l&&ie(nt,{sectionId:e.id,elementId:"primaryCta",elementType:"button",label:"Button",currentColor:l?.backgroundColor,sectionBackgroundColor:x,onColorChange:t=>{p?.(e.id,"primaryCta.backgroundColor",t)},onRemove:()=>w("primaryCta"),brandColors:i,supportsColorPicker:!0,children:ie(et,{variant:l?.variant||"primary",backgroundColor:l?.backgroundColor,brandColors:i,onClick:e=>{c&&!u||(e.preventDefault(),qe())},children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:g,as:"span"})})})]})})})}function Qi({section:e,brandColors:t}){const{countdownDate:n,alignment:i}=e.content;return ie("div",{class:"relative w-full overflow-hidden",style:{...Xe(e.content.backgroundColor,t),minHeight:"130px"},children:ie("div",{class:"w-full h-full min-h-[130px] flex items-center px-4 md:px-20",children:ie("div",{class:`flex ${"left"===i?"justify-start":"right"===i?"justify-end":"justify-center"} max-w-[1140px] mx-auto w-full`,children:ie(Yi,{targetDate:n,sectionId:e.id,size:"compact"})})})})}function eo({section:e,variantId:t,edits:n,brandColors:i}){const{headline:o,body:r,discountText:a,primaryCta:l,alignment:s,visibility:d}=e.content,{isPreviewMode:c,readOnly:u,notifyColorChanged:p}=je(),h=Ee(t,e.id,"headline",o||"Go Where You Go",n),m=Ee(t,e.id,"body",r||"Everyday layers built for comfort, durability, and repeat wear.",n),f=Ee(t,e.id,"discountText",a||"30% Off",n),g=("string"==typeof l?l:l?.text)||"Shop Now",b=Ee(t,e.id,"primaryCta.text",g,n),v="false"!==d?.body,y="false"!==d?.primaryCta,x=Xe(e.content.backgroundColor,i),w=Je(e.content.backgroundColor,i),k=t=>{p?.(e.id,`visibility.${t}`,"false")},C=t=>{p?.(e.id,`visibility.${t}`,"true")},_="right"===s,I=ie("div",{class:"w-full min-w-0",children:ie(nt,{sectionId:e.id,elementId:"discountText",elementType:"discount",label:"Discount",children:ie(Oe,{sectionId:e.id,field:"discountText",value:f,as:"span",class:"pb-text-h1 !text-[36px] md:!text-[80px] !leading-none tracking-[-2px] break-words"})})}),S=ie("div",{class:"flex flex-col gap-3",children:[ie(nt,{sectionId:e.id,elementId:"headline",elementType:"heading",label:"Heading",addZoneBelow:v?void 0:{elementId:"body",elementLabel:"Text",onAdd:()=>C("body")},children:ie(Oe,{sectionId:e.id,field:"headline",value:h,as:"h2",class:"pb-text-h3 tracking-[-0.4px]"})}),v&&ie(nt,{sectionId:e.id,elementId:"body",elementType:"text",label:"Text",onRemove:()=>k("body"),addZoneBelow:y?void 0:{elementId:"primaryCta",elementLabel:"Button",onAdd:()=>C("primaryCta")},children:ie(Oe,{sectionId:e.id,field:"body",value:m,as:"p",class:"pb-text-body-sm max-w-[440px]"})}),y&&l&&ie("div",{class:"mt-2",children:ie(nt,{sectionId:e.id,elementId:"primaryCta",elementType:"button",label:"Button",currentColor:l?.backgroundColor,sectionBackgroundColor:w,onColorChange:t=>{p?.(e.id,"primaryCta.backgroundColor",t)},onRemove:()=>k("primaryCta"),brandColors:i,supportsColorPicker:!0,children:ie(et,{variant:l?.variant||"primary",backgroundColor:l?.backgroundColor,brandColors:i,onClick:e=>{c&&!u||(e.preventDefault(),qe())},children:ie(Oe,{sectionId:e.id,field:"primaryCta.text",value:b,as:"span"})})})})]});return ie("div",{class:"relative w-full overflow-hidden",style:{...x,minHeight:"312px"},children:[ie("div",{class:"md:hidden flex items-center min-h-[312px] px-4 sm:px-8",children:ie("div",{class:"flex flex-col gap-3 w-full sm:w-auto sm:mx-auto items-start text-left max-h-full",children:[ie("div",{children:I}),S]})}),ie("div",{class:"hidden md:flex items-center justify-center min-h-[312px] px-8",children:ie("div",{class:"flex items-center w-full max-w-[1014px] mx-auto max-h-full",style:{gap:"100px"},children:ie(j,_?{children:[ie("div",{class:"flex-1 min-w-0 max-h-full flex items-center justify-center",children:I}),ie("div",{class:"flex-1 min-w-0 max-h-full flex items-center",children:S})]}:{children:[ie("div",{class:"flex-1 min-w-0 max-h-full flex items-center",children:S}),ie("div",{class:"flex-1 min-w-0 max-h-full flex items-center justify-center",children:I})]})})})]})}function to({section:e,variantId:t,edits:n,brandColors:i}){switch(e.content.layout||"countdown"){case"countdown-simple":return ie(Ji,{section:e,variantId:t,edits:n,brandColors:i});case"countdown-simple-color":return ie(Qi,{section:e,variantId:t,edits:n,brandColors:i});case"5050-discount":return ie(Xi,{section:e,variantId:t,edits:n,brandColors:i});case"5050-discount-color":return ie(eo,{section:e,variantId:t,edits:n,brandColors:i});case"countdown-color":return ie(Ki,{section:e,variantId:t,edits:n,brandColors:i});default:return ie(Gi,{section:e,variantId:t,edits:n,brandColors:i})}}function no({section:e,brandColors:t}){const{backgroundColor:n,heightPx:i=64}=e.content,o=Xe(n,t),{isPreviewMode:r,notifyColorChanged:a,readOnly:l,selectedSectionId:s}=je(),d=r&&!l,c=s===e.id,[u,p]=ve(!1),[h,m]=ve(null),f=h??(Number(i)||64),g=ke(t=>{t.preventDefault(),t.stopPropagation();const n=t.clientY,o=Number(i)||64;p(!0);const r=e=>{const t=e.clientY-n,i=Math.min(250,Math.max(16,o+t));m(i)},l=t=>{const i=t.clientY-n,s=Math.min(250,Math.max(16,o+i));p(!1),s===o?m(null):(m(s),a?.(e.id,"heightPx",String(s))),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",l)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",l)},[i,e.id,a]);ye(()=>{u||null===h||m(null)},[i]);const b=d&&(c||u);return ie("div",{onMouseDown:b?g:void 0,style:{...o,height:`${f}px`,position:"relative",cursor:b?"ns-resize":void 0},children:b&&ie("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",background:u?"#3b82f6":"rgba(59,130,246,0.85)",color:"white",padding:"2px 8px",borderRadius:"4px",fontSize:"12px",fontWeight:600,fontFamily:"Inter, system-ui, sans-serif",pointerEvents:"none",userSelect:"none",whiteSpace:"nowrap",zIndex:2},children:Math.round(f)})})}function io({direction:e,circleColor:t,size:n=56}){const i=`arrow-mask-${e}`;return ie("svg",{width:n,height:n,viewBox:"0 0 56 56",fill:"none",style:{overflow:"visible"},children:[ie("defs",{children:[ie("mask",{id:i,children:[ie("circle",{cx:"28",cy:"28",r:"28",fill:"white"}),ie("g","left"===e?{stroke:"black","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",children:[ie("line",{x1:"35",y1:"28",x2:"21",y2:"28"}),ie("polyline",{points:"27 34 21 28 27 22"})]}:{stroke:"black","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",children:[ie("line",{x1:"21",y1:"28",x2:"35",y2:"28"}),ie("polyline",{points:"29 22 35 28 29 34"})]})]}),ie("filter",{id:`shadow-${e}`,x:"-20%",y:"-20%",width:"140%",height:"140%",children:ie("feDropShadow",{dx:"1",dy:"2",stdDeviation:"8","flood-color":"rgba(0,0,0,0.1)"})})]}),ie("circle",{cx:"28",cy:"28",r:"28",fill:t,mask:`url(#${i})`,filter:`url(#shadow-${e})`})]})}function oo({section:e,brandColors:t}){const{testimonials:n,primaryCta:i,backgroundColor:o}=e.content,{isPreviewMode:r,notifyColorChanged:a,onElementClick:l,selectedSectionId:s,selectedElementId:d}=je(),c=Xe(o,t),u=Je(o,t),p="#ffffff"===u.toLowerCase()||"#fff"===u.toLowerCase(),[h,m]=ve(0),f=xe(null),g=xe(null),b=xe(n.length),v=xe(n.map(e=>e.id).join(","));if(!n.length)return null;const y=(t,i)=>{const o=n.length+1,r="before"===i?t:t+1,l={id:`testimonial-${Date.now()}`,quote:`This is testimonial quote ${o}. Edit this text to add your customer's feedback.`,author:`Customer ${o}`,location:`Location ${o}`,avatar:"https://placehold.co/100x100/png",image:{type:"image",src:"https://placehold.co/600x400/png",alt:""}};f.current=r,a?.(e.id,"addTestimonial",JSON.stringify({index:r,testimonial:l}))},x=t=>{a?.(e.id,"removeTestimonial",String(t))},w=(t,n)=>{g.current=n,a?.(e.id,"moveTestimonial",JSON.stringify({from:t,to:n,focusElementId:`testimonial-${n}`}))};ye(()=>{if(null!==f.current&&n.length>b.current&&f.current<n.length&&(m(f.current),l?.(e.id,`testimonial-${f.current}`),f.current=null),n.length<b.current&&h>=n.length){const t=Math.max(0,n.length-1);m(t),l?.(e.id,`testimonial-${t}`)}b.current=n.length},[n.length]),ye(()=>{const t=n.map(e=>e.id).join(",");if(t!==v.current){if(null!==g.current){const t=g.current;t>=0&&t<n.length&&(m(t),setTimeout(()=>{l?.(e.id,`testimonial-${t}`)},50),g.current=null)}v.current=t}},[n]);const k=Math.min(h,n.length-1),C=n[k];if(!C)return null;const _=C.quote,I=C.author,S=C.location,M=C.image,A="string"==typeof M?{src:M,type:"image",alt:"",poster:void 0,focalPoint:void 0}:M,T=A.src,E=C.avatar,P=()=>{const t=(h+1)%n.length;m(t),l?.(e.id,`testimonial-${t}`)};return ye(()=>{if(n.length>1&&!r){const e=setInterval(P,6e3);return()=>clearInterval(e)}},[n.length,h,r]),ie("div",{class:"relative w-full overflow-hidden",style:c,children:[n.length>1&&ie("div",{class:"hidden lg:flex absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 w-[90%] max-w-[1296px] h-14 pointer-events-none",style:{zIndex:10003},children:[ie("button",{onClick:()=>{const t=(h-1+n.length)%n.length;m(t),l?.(e.id,`testimonial-${t}`)},class:"absolute left-0 top-0 size-14 transition-all pointer-events-auto","aria-label":"Previous testimonial",children:ie(io,{direction:"left",circleColor:p?"#c0c0c0":"#ffffff"})}),ie("button",{onClick:P,class:"absolute right-0 top-0 size-14 transition-all pointer-events-auto","aria-label":"Next testimonial",children:ie(io,{direction:"right",circleColor:p?"#c0c0c0":"#ffffff"})})]}),ie("div",{class:"flex flex-col items-center justify-center",children:ie("div",{class:"box-border w-full flex flex-col gap-2.5 items-center justify-center px-7 lg:px-[calc(5%+80px)] py-12 lg:py-16",children:[ie("div",{class:"hidden lg:flex items-center justify-center",children:ie(lt,{sectionId:e.id,elementId:`testimonial-${k}`,index:k,totalCount:n.length,minCount:1,maxCount:5,label:`Testimonial ${k+1}`,onAdd:e=>y(k,e),onRemove:n.length>1?()=>x(k):void 0,onMoveLeft:k>0?()=>w(k,k-1):void 0,onMoveRight:k<n.length-1?()=>w(k,k+1):void 0,children:ie("div",{class:"flex gap-8 xl:gap-20 items-center max-w-[1040px] w-full",children:[ie("div",{class:"relative flex-1 max-w-[480px] aspect-square overflow-hidden",children:ie(Ue,{sectionId:e.id,field:`testimonials.${k}.image`,src:T,alt:A.alt||C.author,mediaType:A.type,poster:A.poster,focalPoint:A.focalPoint,class:"w-full h-full object-cover",maxWidth:960,maxWidthMobile:700,sizes:"(min-width: 768px) 480px, 343px"})}),ie("div",{class:"flex flex-col gap-12 flex-1 max-w-[480px] min-w-0",children:[ie("div",{class:"flex gap-3 items-center",children:[ie("div",{class:"w-[64px] h-[64px] flex-shrink-0",children:ie(Ue,{sectionId:e.id,field:`testimonials.${k}.avatar`,src:E,alt:C.author,class:"w-full h-full rounded-full object-cover",maxWidth:256})}),ie("div",{class:"flex flex-col gap-1",children:[ie(Oe,{sectionId:e.id,field:`testimonials.${k}.author`,value:I,as:"p",class:"pb-text-h4 tracking-[-0.48px]"}),ie(Oe,{sectionId:e.id,field:`testimonials.${k}.location`,value:S,as:"p",class:"pb-text-body"})]})]}),ie(Oe,{sectionId:e.id,field:`testimonials.${k}.quote`,value:`"${_}"`,as:"blockquote",class:"pb-text-h2 tracking-[-0.8px]"})]})]})})}),ie("div",{class:"flex lg:hidden flex-col gap-8 items-center justify-center",children:[ie(lt,{sectionId:e.id,elementId:`testimonial-${k}`,index:k,totalCount:n.length,minCount:1,maxCount:5,label:`Testimonial ${k+1}`,onAdd:e=>y(k,e),onRemove:n.length>1?()=>x(k):void 0,onMoveLeft:k>0?()=>w(k,k-1):void 0,onMoveRight:k<n.length-1?()=>w(k,k+1):void 0,children:ie("div",{class:"flex flex-col gap-8 items-center w-full max-w-[480px]",children:[ie("div",{class:"relative w-full aspect-square overflow-hidden",children:ie(Ue,{sectionId:e.id,field:`testimonials.${k}.image`,src:T,alt:C.author,class:"w-full h-full object-cover",maxWidth:960,sizes:"(min-width: 768px) 480px, 100vw"})}),ie("div",{class:"flex flex-col gap-6 w-full",children:[ie("div",{class:"flex gap-3 items-center",children:[ie("div",{class:"w-[40px] h-[40px] flex-shrink-0",children:ie(Ue,{sectionId:e.id,field:`testimonials.${k}.avatar`,src:E,alt:C.author,class:"w-full h-full rounded-full object-cover",maxWidth:160})}),ie("div",{class:"flex flex-col gap-1",children:[ie(Oe,{sectionId:e.id,field:`testimonials.${k}.author`,value:I,as:"p",class:"pb-text-h5 tracking-[-0.4px]"}),ie(Oe,{sectionId:e.id,field:`testimonials.${k}.location`,value:S,as:"p",class:"pb-text-body"})]})]}),ie(Oe,{sectionId:e.id,field:`testimonials.${k}.quote`,value:`"${_}"`,as:"blockquote",class:"pb-text-h3 tracking-[-0.6px]"})]})]})}),n.length>1&&ie("div",{class:"flex gap-2 h-2",children:n.map((t,n)=>ie("button",{onClick:()=>{m(n),l?.(e.id,`testimonial-${n}`)},class:"size-2 rounded-full transition-all",style:{backgroundColor:n===h?c.color:`color-mix(in srgb, ${c.color} 30%, transparent)`},"aria-label":`Go to testimonial ${n+1}`},n))})]})]})})]})}function ro({section:e,variantId:t,brandColors:n}){const{quote:i,logos:o,backgroundColor:r}=e.content,{notifyColorChanged:a,onElementClick:l,selectedSectionId:s,selectedElementId:d}=je(),c=Xe(r,n),u=Ge(Je(r,n)),p=o.slice(0,6),h=-1!==p.findIndex(e=>e.featured)?p.findIndex(e=>e.featured):0,[m,f]=ve(p[h]?.id),g=p.findIndex(e=>e.id===m),b=-1!==g?g:0,v=p[b];ye(()=>{if(s===e.id&&d?.startsWith("logo-")){const e=d.match(/logo-(\d+)/);if(e){const t=parseInt(e[1],10),n=p[t];n&&n.id!==m&&f(n.id)}}},[s,d,e.id,p,m]);const y=v?.quote||i,x=(t,n)=>{a?.(e.id,"moveItem",JSON.stringify({from:t,to:n})),l?.(e.id,`logo-${n}`)};return ie("div",{class:"relative w-full",style:c,children:ie("div",{class:"flex flex-col items-center justify-center",children:ie("div",{class:"w-full flex flex-col gap-8 md:gap-8 items-center px-0 py-10 md:py-16",children:[ie("div",{class:"w-full flex justify-center",children:ie(Oe,{sectionId:e.id,field:`logos.${b}.quote`,value:y,as:"blockquote",class:"pb-text-h2 tracking-[-0.6px] md:tracking-[-0.8px] text-center max-w-[343px] md:max-w-[700px] px-4 animate-in fade-in duration-300"},m)}),ie("div",{class:"flex flex-wrap items-start justify-center gap-8 max-w-[343px] md:max-w-[1344px] px-4",children:p.map((t,n)=>ie(lt,{sectionId:e.id,elementId:`logo-${n}`,index:n,totalCount:p.length,minCount:2,maxCount:6,label:`Logo ${n+1}`,onAdd:t=>((t,n)=>{const i="before"===n?t:t+1,o={id:`logo-${Date.now()}`,name:`Logo ${i+1}`,image:"https://placehold.co/150x50/png",quote:"Add your press quote here"};a?.(e.id,"addItem",JSON.stringify({index:i,item:o}))})(n,t),onRemove:()=>(t=>{const n=p[t]?.id;if(a?.(e.id,"removeItem",String(t)),n===m&&p.length>1){const e=p[0===t?1:t-1];f(e?.id)}})(n),onMoveLeft:n>0?()=>x(n,n-1):void 0,onMoveRight:n<p.length-1?()=>x(n,n+1):void 0,children:ie("button",{onClick:()=>(t=>{const n=p[t];n&&(f(n.id),l?.(e.id,`logo-${t}`))})(n),class:"flex flex-col items-center justify-start cursor-pointer group relative",children:ie("div",{class:"flex flex-col items-center pb-5 relative",children:[ie(Ue,{sectionId:e.id,field:`logos.${n}.image`,src:t.image,alt:t.name,class:"max-w-[128px] max-h-[34px] object-contain transition-opacity duration-200 "+(b===n?"opacity-100":"opacity-40"),style:{width:"auto",height:"auto"},maxWidth:256}),ie("div",{class:"absolute bottom-0 left-0 right-0 h-px transition-all duration-300 "+(b===n?"opacity-100 scale-x-100":"opacity-0 scale-x-0 group-hover:opacity-100 group-hover:scale-x-100"),style:{transformOrigin:"center",backgroundColor:u}})]})})},t.id))})]})})})}function ao({label:e,children:t,position:n="below",disabled:i=!1}){const[o,r]=ve(!1),a=xe(null);return ie("div",{style:{position:"relative",display:"inline-flex"},onMouseOver:()=>{i||(a.current&&clearTimeout(a.current),a.current=setTimeout(()=>r(!0),300))},onMouseOut:()=>(a.current&&clearTimeout(a.current),a.current=null,void r(!1)),children:[t,o&&!i&&ie("div",{style:{position:"absolute",left:"50%",transform:"translateX(-50%)",..."above"===n?{bottom:"100%",marginBottom:"6px"}:{top:"100%",marginTop:"6px"},padding:"4px 8px",backgroundColor:"#18181b",color:"#fafafa",fontSize:"12px",fontWeight:500,borderRadius:"4px",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10006,lineHeight:"16px"},children:e})]})}function lo({currentLayout:e,options:t,onSelect:n}){const[i,o]=ve(!1),r=xe(null);return ye(()=>{const e=e=>{r.current&&!r.current.contains(e.target)&&o(!1)};if(i)return setTimeout(()=>{document.addEventListener("click",e)},0),()=>document.removeEventListener("click",e)},[i]),ye(()=>{const e=e=>{"layout"!==e.detail&&o(!1)};return document.addEventListener("pb-dropdown-open",e),()=>document.removeEventListener("pb-dropdown-open",e)},[]),t.find(t=>t.value===e),ie(ao,{label:"Layout",position:"above",disabled:i,children:ie("div",{ref:r,style:{position:"relative",pointerEvents:"auto"},children:[ie("button",{type:"button",style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",backgroundColor:"#f2f4f7",borderRadius:"6px",padding:"6px 8px",fontSize:"14px",fontWeight:500,color:"#141c25",cursor:"pointer",transition:"background-color 0.15s ease",border:"none",height:"28px",zIndex:10004,position:"relative",pointerEvents:"auto"},onMouseEnter:e=>e.currentTarget.style.backgroundColor="#e4e7ec",onMouseLeave:e=>e.currentTarget.style.backgroundColor="#f2f4f7",onClick:e=>{e.preventDefault(),e.stopPropagation();const t=!i;o(t),t&&document.dispatchEvent(new CustomEvent("pb-dropdown-open",{detail:"layout"}))},children:[ie("span",{style:{display:"grid",textAlign:"left"},children:t.map(t=>ie("span",{style:{gridArea:"1 / 1",whiteSpace:"nowrap",visibility:t.value===e?"visible":"hidden"},children:t.label},t.value))}),ie("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",style:{flexShrink:0,transform:i?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s ease"},children:ie("path",{d:"M6 9L12 15L18 9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),i&&ie("div",{style:{position:"absolute",top:"100%",left:0,marginTop:"4px",backgroundColor:"#ffffff",borderRadius:"6px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",zIndex:10005,minWidth:"120px",overflow:"hidden",pointerEvents:"auto"},onClick:e=>e.stopPropagation(),children:t.map(t=>ie("button",{type:"button",style:{width:"100%",padding:"8px 12px",backgroundColor:t.value===e?"#f2f4f7":"transparent",border:"none",textAlign:"left",fontSize:"14px",color:"#141c25",cursor:"pointer",transition:"background-color 0.1s ease"},onMouseEnter:n=>{t.value!==e&&(n.currentTarget.style.backgroundColor="#f9fafb")},onMouseLeave:n=>{t.value!==e&&(n.currentTarget.style.backgroundColor="transparent")},onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},onClick:e=>{e.preventDefault(),e.stopPropagation(),n(t.value),o(!1)},children:t.label},t.value))})]})})}function so({currentAlignment:e,options:t,onSelect:n}){const[i,o]=ve(!1),r=xe(null);ye(()=>{const e=e=>{r.current&&!r.current.contains(e.target)&&o(!1)};if(i)return setTimeout(()=>{document.addEventListener("click",e)},0),()=>document.removeEventListener("click",e)},[i]),ye(()=>{const e=e=>{"alignment"!==e.detail&&o(!1)};return document.addEventListener("pb-dropdown-open",e),()=>document.removeEventListener("pb-dropdown-open",e)},[]);const a=t.find(t=>t.value===e);return ie("div",{ref:r,style:{position:"relative"},children:[ie("button",{type:"button",style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#f2f4f7",borderRadius:"6px",padding:"6px",cursor:"pointer",transition:"background-color 0.15s ease",border:"none",zIndex:10004,position:"relative"},onMouseEnter:e=>e.currentTarget.style.backgroundColor="#e4e7ec",onMouseLeave:e=>e.currentTarget.style.backgroundColor="#f2f4f7",onClick:e=>{e.preventDefault(),e.stopPropagation();const t=!i;o(t),t&&document.dispatchEvent(new CustomEvent("pb-dropdown-open",{detail:"alignment"}))},children:a?.icon}),i&&ie("div",{style:{position:"absolute",top:"100%",left:0,marginTop:"4px",backgroundColor:"#ffffff",borderRadius:"6px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",zIndex:10003,overflow:"hidden",animation:"fadeSlideDown 0.15s ease-out"},onClick:e=>e.stopPropagation(),children:t.map(t=>ie("button",{type:"button",style:{display:"flex",alignItems:"center",gap:"8px",width:"100%",padding:"8px 12px",backgroundColor:t.value===e?"#f2f4f7":"transparent",border:"none",cursor:"pointer",transition:"background-color 0.1s ease"},onMouseEnter:n=>{t.value!==e&&(n.currentTarget.style.backgroundColor="#f9fafb")},onMouseLeave:n=>{t.value!==e&&(n.currentTarget.style.backgroundColor="transparent")},onClick:e=>{e.preventDefault(),e.stopPropagation(),n(t.value),o(!1)},children:[t.icon,ie("span",{style:{fontSize:"14px",color:"#141c25"},children:t.label})]},t.value))})]})}function co({layoutOptions:e,currentLayout:t,currentAlignment:n,alignmentOptionsForLayout:i,onRandomize:o}){return ie(ao,{label:"Randomize",children:ie("button",{type:"button",style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#f2f4f7",borderRadius:"6px",padding:"6px",cursor:"pointer",transition:"background-color 0.15s ease",border:"none",zIndex:10004,position:"relative"},onMouseEnter:e=>e.currentTarget.style.backgroundColor="#e4e7ec",onMouseLeave:e=>e.currentTarget.style.backgroundColor="#f2f4f7",onClick:r=>{r.preventDefault(),r.stopPropagation(),document.dispatchEvent(new CustomEvent("pb-dropdown-open",{detail:"randomize"}));const a=[];for(const o of e)for(const e of i(o))o===t&&e===n||a.push({layout:o,alignment:e});if(0===a.length)return;const l=a[Math.floor(Math.random()*a.length)];o(l.layout,l.alignment)},children:ie("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:[ie("path",{d:"M15 4V2M15 16V14M8 9H10M20 9H22M17.8 11.8L19 13M17.8 6.2L19 5M12.2 11.8L11 13M12.2 6.2L11 5",stroke:"#141c25",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),ie("path",{d:"M2 22L13 11",stroke:"#141c25",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})})}const uo=()=>ie("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:ie("path",{d:"M3 3V21M7 12H21M7 6H21M7 18H21",stroke:"#141c25",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),po=()=>ie("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:ie("path",{d:"M21 3V21M3 12H17M3 6H17M3 18H17",stroke:"#141c25",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),ho=()=>ie("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:ie("path",{d:"M12 3V21M7 12H17M5 6H19M5 18H19",stroke:"#141c25",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),mo={"hero-banner-full":"Hero","reviews-slider":"Reviews","instagram-feed":"Instagram Feed","social-media":"Social Media","fifty-fifty":"Product Highlight","competitor-table":"Comparison Table","text-block":"Text Block","icon-block":"Icon Blocks","press-block":"Press","testimonial-carousel":"Testimonials","icon-row-stacked":"Icon Grid","icon-row":"Icon Row","rotating-text-banner":"Banner",offer:"Offer",spacer:"Spacer"},fo={"hero-banner-full":{layouts:[{value:"full",label:"Full Bleed"},{value:"contained",label:"Contained"},{value:"contained-round",label:"Rounded"},{value:"split",label:"Split"},{value:"split-image",label:"Split Image"},{value:"vertical-video",label:"Vertical Video"}],alignments:[{value:"left",label:"Left"},{value:"center",label:"Center"}],alignmentsForLayout:e=>"split"===e||"split-image"===e?[{value:"left",label:"Left"},{value:"right",label:"Right"}]:"vertical-video"===e?[{value:"left",label:"Left"}]:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}]},"fifty-fifty":{layouts:[{value:"full",label:"50/50 Full"},{value:"contained",label:"50/50 Contained"},{value:"video-contained",label:"Video Contained"},{value:"video-full-bleed",label:"Video Full Bleed"},{value:"video-tall",label:"Video Tall"},{value:"3-column",label:"3 Column"},{value:"2-column-contained",label:"2 Col Contained"},{value:"2-column-full-bleed",label:"2 Col Full Bleed"},{value:"3-column-full-bleed",label:"3 Col Full Bleed"},{value:"image-slider-full",label:"Image Slider"}],alignments:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}],alignmentsForLayout:e=>"full"===e||"contained"===e||"video-tall"===e?[{value:"left",label:"Left"},{value:"right",label:"Right"}]:"3-column"===e||"2-column-contained"===e||"2-column-full-bleed"===e||"3-column-full-bleed"===e?[]:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}]},"reviews-slider":{layouts:[{value:"text-triple",label:"Triple Review"},{value:"text-image",label:"Image + Quote"},{value:"text-single",label:"Single Quote"},{value:"text-press",label:"Press Logos"},{value:"text-press-image",label:"Press + Image"},{value:"ugc-slider",label:"UGC Slider"}],alignments:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}],alignmentsForLayout:e=>"text-triple"===e?[{value:"center",label:"Center"}]:"text-image"===e?[{value:"left",label:"Left"},{value:"right",label:"Right"}]:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}]},"instagram-feed":{layouts:[{value:"default",label:"Default"}],alignments:[{value:"center",label:"Center"}]},"social-media":{layouts:[{value:"horizontal-carousel",label:"Carousel"},{value:"two-row",label:"Two Row"},{value:"5050-grid",label:"50/50 Grid"},{value:"5050-carousel",label:"50/50 Carousel"}],alignments:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}],alignmentsForLayout:e=>"5050-grid"===e||"5050-carousel"===e?[{value:"left",label:"Left"},{value:"right",label:"Right"}]:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}]},"competitor-table":{layouts:[{value:"default",label:"Default"}],alignments:[{value:"center",label:"Center"}]},"text-block":{layouts:[{value:"text-1",label:"Text"},{value:"text-large",label:"Large Text"},{value:"text-large-image",label:"Image + Text"}],alignments:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}]},"icon-block":{layouts:[{value:"icon-grid",label:"Grid"},{value:"icon-detail",label:"Detail Grid"},{value:"icon-detail-5050",label:"Detail 50/50"},{value:"icon-detail-rows",label:"Detail Rows"},{value:"icon-badges",label:"Badges"}],alignments:[{value:"left",label:"Left"},{value:"center",label:"Center"}],alignmentsForLayout:e=>"icon-detail-5050"===e?[{value:"left",label:"Left"},{value:"right",label:"Right"}]:"icon-badges"===e?[{value:"center",label:"Center"}]:[{value:"left",label:"Left"},{value:"center",label:"Center"}]},"icon-row-stacked":{layouts:[{value:"default",label:"Default"}],alignments:[{value:"center",label:"Center"}]},"icon-row":{layouts:[{value:"default",label:"Default"}],alignments:[{value:"center",label:"Center"}]},"rotating-text-banner":{layouts:[{value:"default",label:"Default"}],alignments:[{value:"center",label:"Center"}]},spacer:{layouts:[{value:"default",label:"Default"}],alignments:[{value:"center",label:"Center"}]},offer:{layouts:[{value:"countdown",label:"Countdown (Media)"},{value:"countdown-simple",label:"Timer Strip (Media)"},{value:"5050-discount",label:"Split Discount (Media)"},{value:"countdown-color",label:"Countdown"},{value:"countdown-simple-color",label:"Timer Strip"},{value:"5050-discount-color",label:"Split Discount"}],alignments:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}],alignmentsForLayout:e=>"5050-discount"===e||"5050-discount-color"===e?[{value:"left",label:"Left"},{value:"right",label:"Right"}]:[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}]}};function go(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bo={exports:{}};function vo(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}const yo=function(e,t,n){var i=n&&n.stringify||vo;if("object"==typeof e&&null!==e){var o=t.length+1;if(1===o)return e;var r=new Array(o);r[0]=i(e);for(var a=1;a<o;a++)r[a]=i(t[a]);return r.join(" ")}if("string"!=typeof e)return e;var l=t.length;if(0===l)return e;for(var s="",d=0,c=-1,u=e&&e.length||0,p=0;p<u;){if(37===e.charCodeAt(p)&&p+1<u){switch(c=c>-1?c:0,e.charCodeAt(p+1)){case 100:case 102:if(d>=l)break;if(null==t[d])break;c<p&&(s+=e.slice(c,p)),s+=Number(t[d]),c=p+2,p++;break;case 105:if(d>=l)break;if(null==t[d])break;c<p&&(s+=e.slice(c,p)),s+=Math.floor(Number(t[d])),c=p+2,p++;break;case 79:case 111:case 106:if(d>=l)break;if(void 0===t[d])break;c<p&&(s+=e.slice(c,p));var h=typeof t[d];if("string"===h){s+="'"+t[d]+"'",c=p+2,p++;break}if("function"===h){s+=t[d].name||"<anonymous>",c=p+2,p++;break}s+=i(t[d]),c=p+2,p++;break;case 115:if(d>=l)break;c<p&&(s+=e.slice(c,p)),s+=String(t[d]),c=p+2,p++;break;case 37:c<p&&(s+=e.slice(c,p)),s+="%",c=p+2,p++,d--}++d}++p}return-1===c?e:(c<u&&(s+=e.slice(c)),s)};bo.exports=Mo;const xo=function(){function e(e){return void 0!==e&&e}try{return"undefined"!=typeof globalThis||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}().console||{},wo={mapHttpRequest:No,mapHttpResponse:No,wrapRequestSerializer:jo,wrapResponseSerializer:jo,wrapErrorSerializer:jo,req:No,res:No,err:Po,errWithCause:Po};function ko(e,t){return"silent"===e?1/0:t.levels.values[e]}const Co=Symbol("pino.logFuncs"),_o=Symbol("pino.hierarchy"),Io={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function So(e,t){const n={logger:t,parent:e[_o]};t[_o]=n}function Mo(e){(e=e||{}).browser=e.browser||{};const t=e.browser.transmit;if(t&&"function"!=typeof t.send)throw Error("pino: transmit option must have a send function");const n=e.browser.write||xo;e.browser.write&&(e.browser.asObject=!0);const i=e.serializers||{},o=function(e,t){if(Array.isArray(e)){const t=e.filter(function(e){return"!stdSerializers.err"!==e});return t}return!0===e&&Object.keys(t)}(e.browser.serialize,i);let r=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(r=!1);const a=Object.keys(e.customLevels||{}),l=["error","fatal","warn","info","debug","trace"].concat(a);"function"==typeof n&&l.forEach(function(e){n[e]=n}),(!1===e.enabled||e.browser.disabled)&&(e.level="silent");const s=e.level||"info",d=Object.create(n);d.log||(d.log=zo),function(e,t,n){const i={};t.forEach(e=>{i[e]=n[e]?n[e]:xo[e]||xo[Io[e]||"log"]||zo}),e[Co]=i}(d,l,n),So({},d),Object.defineProperty(d,"levelVal",{get:function(){return ko(this.level,this)}}),Object.defineProperty(d,"level",{get:function(){return this._level},set:function(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,Ao(this,c,d,"error"),Ao(this,c,d,"fatal"),Ao(this,c,d,"warn"),Ao(this,c,d,"info"),Ao(this,c,d,"debug"),Ao(this,c,d,"trace"),a.forEach(e=>{Ao(this,c,d,e)})}});const c={transmit:t,serialize:o,asObject:e.browser.asObject,asObjectBindingsOnly:e.browser.asObjectBindingsOnly,formatters:e.browser.formatters,levels:l,timestamp:Lo(e),messageKey:e.messageKey||"msg",onChild:e.onChild||zo};function u(n,r,a){if(!r)throw new Error("missing bindings for child Pino");a=a||{},o&&r.serializers&&(a.serializers=r.serializers);const l=a.serializers;if(o&&l){var s=Object.assign({},i,l),d=!0===e.browser.serialize?Object.keys(s):o;delete r.serializers,To([r],d,s,this._stdErrSerialize)}function c(e){this._childLevel=1+(0|e._childLevel),this.bindings=r,s&&(this.serializers=s,this._serialize=d),t&&(this._logEvent=Eo([].concat(e._logEvent.bindings,r)))}c.prototype=this;const p=new c(this);return So(this,p),p.child=function(...e){return u.call(this,n,...e)},p.level=a.level||this.level,n.onChild(p),p}return d.levels=function(e){const t=e.customLevels||{};return{values:Object.assign({},Mo.levels.values,t),labels:Object.assign({},Mo.levels.labels,function(e){const t={};return Object.keys(e).forEach(function(n){t[e[n]]=n}),t}(t))}}(e),d.level=s,d.isLevelEnabled=function(e){return!!this.levels.values[e]&&this.levels.values[e]>=this.levels.values[this.level]},d.setMaxListeners=d.getMaxListeners=d.emit=d.addListener=d.on=d.prependListener=d.once=d.prependOnceListener=d.removeListener=d.removeAllListeners=d.listeners=d.listenerCount=d.eventNames=d.write=d.flush=zo,d.serializers=i,d._serialize=o,d._stdErrSerialize=r,d.child=function(...e){return u.call(this,c,...e)},t&&(d._logEvent=Eo()),d}function Ao(e,t,n,i){if(Object.defineProperty(e,i,{value:ko(e.level,n)>ko(i,n)?zo:n[Co][i],writable:!0,enumerable:!0,configurable:!0}),e[i]===zo){if(!t.transmit)return;const o=ko(t.transmit.level||e.level,n);if(ko(i,n)<o)return}e[i]=function(e,t,n,i){return o=e[Co][i],function(){const r=t.timestamp(),a=new Array(arguments.length),l=Object.getPrototypeOf&&Object.getPrototypeOf(this)===xo?xo:this;for(var s=0;s<a.length;s++)a[s]=arguments[s];var d=!1;if(t.serialize&&(To(a,this._serialize,this.serializers,this._stdErrSerialize),d=!0),t.asObject||t.formatters?o.call(l,...function(e,t,n,i,o){const{level:r,log:a=e=>e}=o.formatters||{},l=n.slice();let s=l[0];const d={};let c=1+(0|e._childLevel);if(c<1&&(c=1),i&&(d.time=i),r){const n=r(t,e.levels.values[t]);Object.assign(d,n)}else d.level=e.levels.values[t];if(o.asObjectBindingsOnly){if(null!==s&&"object"==typeof s)for(;c--&&"object"==typeof l[0];)Object.assign(d,l.shift());return[a(d),...l]}if(null!==s&&"object"==typeof s){for(;c--&&"object"==typeof l[0];)Object.assign(d,l.shift());s=l.length?yo(l.shift(),l):void 0}else"string"==typeof s&&(s=yo(l.shift(),l));return void 0!==s&&(d[o.messageKey]=s),[a(d)]}(this,i,a,r,t)):o.apply(l,a),t.transmit){const o=t.transmit.level||e._level,l=ko(o,n),s=ko(i,n);if(s<l)return;!function(e,t,n,i=!1){const o=t.send,r=t.ts,a=t.methodLevel,l=t.methodValue,s=t.val,d=e._logEvent.bindings;i||To(n,e._serialize||Object.keys(e.serializers),e.serializers,void 0===e._stdErrSerialize||e._stdErrSerialize),e._logEvent.ts=r,e._logEvent.messages=n.filter(function(e){return-1===d.indexOf(e)}),e._logEvent.level.label=a,e._logEvent.level.value=l,o(a,e._logEvent,s),e._logEvent=Eo(d)}(this,{ts:r,methodLevel:i,methodValue:s,transmitLevel:o,transmitValue:n.levels.values[t.transmit.level||e._level],send:t.transmit.send,val:ko(e._level,n)},a,d)}};var o}(e,t,n,i);const o=function(e){const t=[];e.bindings&&t.push(e.bindings);let n=e[_o];for(;n.parent;)n=n.parent,n.logger.bindings&&t.push(n.logger.bindings);return t.reverse()}(e);0!==o.length&&(e[i]=function(e,t){return function(){return t.apply(this,[...e,...arguments])}}(o,e[i]))}function To(e,t,n,i){for(const o in e)if(i&&e[o]instanceof Error)e[o]=Mo.stdSerializers.err(e[o]);else if("object"==typeof e[o]&&!Array.isArray(e[o])&&t)for(const i in e[o])t.indexOf(i)>-1&&i in n&&(e[o][i]=n[i](e[o][i]))}function Eo(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function Po(e){const t={type:e.constructor.name,msg:e.message,stack:e.stack};for(const n in e)void 0===t[n]&&(t[n]=e[n]);return t}function Lo(e){return"function"==typeof e.timestamp?e.timestamp:!1===e.timestamp?Oo:Ro}function No(){return{}}function jo(e){return e}function zo(){}function Oo(){return!1}function Ro(){return Date.now()}Mo.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},Mo.stdSerializers=wo,Mo.stdTimeFunctions=Object.assign({},{nullTime:Oo,epochTime:Ro,unixTime:function(){return Math.round(Date.now()/1e3)},isoTime:function(){return new Date(Date.now()).toISOString()}}),bo.exports.default=Mo,bo.exports.pino=Mo;const $o=go(bo.exports)({level:"info",redact:{paths:["password","token","apiKey","secret","authorization"],remove:!0},base:{env:"production"}});function Bo(e){return $o.child({module:e})}const Fo="undefined"!=typeof window?{debug:(...e)=>!1,info:(...e)=>{},warn:(...e)=>{},error:(...e)=>{}}:$o;function Do({sectionId:e,isSelected:t,hasSelection:n,isLast:i,isFirst:o,selectedElementId:r,onSectionClick:a,onColorChanged:l,onSectionReorder:s,onSectionDelete:d,onSectionScrolledOutOfView:c,label:u,section:p,brandColors:h,backgroundColors:m,renderSection:f}){const g=xe(null),[b,v]=ve(!1),[y,x]=ve(!1),w=p.content.backgroundColor;ye(()=>{if(t&&g.current){const e=setTimeout(()=>{if(!g.current)return;const e=g.current.getBoundingClientRect().top+window.scrollY;x(e<40)},50);return()=>clearTimeout(e)}x(!1)},[t,p.order]),ye(()=>{t&&g.current&&setTimeout(()=>{const e=g.current?.getBoundingClientRect();if(!e)return;const t=y?60:96,n=window.innerHeight;e.top<t?window.scrollBy({top:e.top-t,behavior:"smooth"}):e.bottom>n&&window.scrollBy({top:e.bottom-n+20,behavior:"smooth"})},50)},[t,p.order]),ye(()=>{if(!t||!g.current||!c)return;let n=!1;const i=setTimeout(()=>{n=!0},200),o=new IntersectionObserver(t=>{!t[0].isIntersecting&&n&&c(e)},{threshold:.1});return o.observe(g.current),()=>{clearTimeout(i),o.disconnect()}},[t,e,c]);const k=t||b;return ie("div",{ref:g,class:"relative",style:{zIndex:t?10001:1e4,position:"relative"},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:[t&&ie("div",{style:{position:"absolute",...y?{top:"8px"}:{bottom:"100%",marginBottom:"4px"},left:"10px",right:"10px",zIndex:10002,display:"flex",alignItems:"flex-end",gap:"4px",fontFamily:"Inter, system-ui, -apple-system, sans-serif",animation:"fadeSlideDown 0.2s ease-out",pointerEvents:"auto"},children:[ie(ao,{label:"Move up",children:ie("button",{type:"button",disabled:o,style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:o?"#e4e7ec":"#f2f4f7",borderRadius:"6px",padding:"6px",cursor:o?"not-allowed":"pointer",transition:"background-color 0.15s ease",border:"none",opacity:o?.5:1},onMouseEnter:e=>{o||(e.currentTarget.style.backgroundColor="#e4e7ec")},onMouseLeave:e=>{o||(e.currentTarget.style.backgroundColor="#f2f4f7")},onClick:t=>{o||(t.preventDefault(),t.stopPropagation(),t.currentTarget.style.backgroundColor="#f2f4f7",t.currentTarget.blur(),s?.(e,"up"))},children:ie("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:ie("path",{d:"M12 19V5M12 5L5 12M12 5L19 12",stroke:"#141c25",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}),ie(ao,{label:"Move down",children:ie("button",{type:"button",disabled:i,style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:i?"#e4e7ec":"#f2f4f7",borderRadius:"6px",padding:"6px",cursor:i?"not-allowed":"pointer",transition:"background-color 0.15s ease",border:"none",opacity:i?.5:1},onMouseEnter:e=>{i||(e.currentTarget.style.backgroundColor="#e4e7ec")},onMouseLeave:e=>{i||(e.currentTarget.style.backgroundColor="#f2f4f7")},onClick:t=>{i||(t.preventDefault(),t.stopPropagation(),t.currentTarget.style.backgroundColor="#f2f4f7",t.currentTarget.blur(),s?.(e,"down"))},children:ie("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:ie("path",{d:"M12 5V19M12 19L19 12M12 19L5 12",stroke:"#141c25",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}),ie("div",{style:{width:"12px",flexShrink:0}}),ie("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap-reverse",flex:1,minWidth:0},children:[ie(ao,{label:"Deselect",children:ie("button",{type:"button",style:{position:"relative",display:"flex",alignItems:"center",gap:"6px",backgroundColor:"#f2f4f7",borderRadius:"6px",padding:"4px 6px",fontSize:"14px",fontWeight:500,color:"#141c25",cursor:"pointer",transition:"background-color 0.15s ease",overflow:"hidden",border:"none",whiteSpace:"nowrap",maxWidth:"120px",minWidth:0,flexShrink:1},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#e4e7ec";const t=e.currentTarget.querySelector(".x-overlay");t&&(t.style.opacity="1")},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#f2f4f7";const t=e.currentTarget.querySelector(".x-overlay");t&&(t.style.opacity="0")},onClick:e=>{e.preventDefault(),e.stopPropagation(),a?.("")},children:[ie("svg",{width:"16",height:"16",viewBox:"0 0 18 18",fill:"none",style:{flexShrink:0},children:ie("path",{d:"M1.5 5.25H2.25M1.5 12.75H2.25M15.75 5.25H16.5M15.75 12.75H16.5M12.75 2.25V1.5M5.25 2.25V1.5M12.75 16.5V15.75M5.25 16.5V15.75M4.5 4.95V13.05C4.5 13.2985 4.70147 13.5 4.95 13.5H13.05C13.2985 13.5 13.5 13.2985 13.5 13.05V4.95C13.5 4.70147 13.2985 4.5 13.05 4.5H4.95C4.70147 4.5 4.5 4.70147 4.5 4.95Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),ie("span",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:u}),ie("div",{className:"x-overlay",style:{position:"absolute",right:0,top:0,bottom:0,display:"flex",alignItems:"center",paddingRight:"6px",paddingLeft:"16px",opacity:0,transition:"opacity 0.15s ease"},children:[ie("div",{style:{position:"absolute",inset:0,background:"linear-gradient(to right, transparent 0%, #e4e7ec 30%, #e4e7ec)"}}),ie("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",style:{position:"relative",zIndex:10},children:ie("path",{d:"M18 6L6 18M6 6L18 18",stroke:"#637083",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})}),"rotating-text-banner"===p.type&&ie(j,{children:[ie(lo,{currentLayout:p.content.size||"small",options:[{value:"small",label:"Small"},{value:"medium",label:"Medium"},{value:"large",label:"Large"}],onSelect:t=>l?.(e,"size",t)}),ie("button",{type:"button",style:{display:"flex",alignItems:"center",gap:"6px",backgroundColor:"#f2f4f7",borderRadius:"6px",padding:"4px 8px",cursor:"pointer",transition:"background-color 0.15s ease",border:"none",fontSize:"13px",fontWeight:500,color:"#141c25",whiteSpace:"nowrap"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#e4e7ec"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#f2f4f7"},onClick:t=>{t.preventDefault(),t.stopPropagation();const n=p.content.gradient,i=!1!==n&&"false"!==n;l?.(e,"gradient",String(!i))},children:[(C=p.content.gradient,ie("svg",!1!==C&&"false"!==C?{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[ie("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"3",fill:"#141c25",stroke:"#141c25","stroke-width":"1"}),ie("path",{d:"M12 5L6.5 10.5L4 8",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]}:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:ie("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"3",fill:"white",stroke:"#d0d5dd","stroke-width":"1"})})),"Gradient"]})]}),"spacer"===p.type&&ie("div",{style:{display:"flex",alignItems:"center",gap:"6px",backgroundColor:"#f2f4f7",borderRadius:"6px",padding:"4px 8px",fontSize:"13px",fontWeight:500,color:"#141c25",whiteSpace:"nowrap"},children:[ie("span",{children:"Height"}),ie("input",{type:"number",min:16,max:250,value:p.content.heightPx??64,onBlur:t=>{const n=parseInt(t.target.value)||64,i=Math.min(250,Math.max(16,n));l?.(e,"heightPx",String(i))},onKeyDown:e=>{"Enter"===e.key&&e.target.blur()},style:{width:"52px",padding:"2px 4px",border:"1px solid #d0d5dd",borderRadius:"4px",fontSize:"13px",textAlign:"center",backgroundColor:"white",color:"#141c25"}}),ie("span",{style:{color:"#667085",fontSize:"12px"},children:"px"})]}),(()=>{const t=p.content,n=(i=p.type,fo[i]||{layouts:[{value:"default",label:"Default"}],alignments:[{value:"center",label:"Center"}]});var i;const o=n.layouts.length>1,r=n.alignments.length>1||!!n.alignmentsForLayout;if(!o&&!r)return null;const a=t.layout||n.layouts[0]?.value||"default",s="split"===a||"split-image"===a,d=e=>{const t=e||a;return n.alignmentsForLayout?n.alignmentsForLayout(t):n.alignments},c=d(),u=c.length>1,h=t.alignment||t.imagePosition||c[0]?.value||"center",m=s?"left"===h?"left":"right":"hero-banner-full"===p.type&&"right"===h?"left":h,f={left:ie(uo,{}),right:ie(po,{}),center:ie(ho,{})};return ie("div",{style:{display:"contents"},children:[ie(co,{layoutOptions:o?n.layouts.map(e=>e.value):[a],currentLayout:a,currentAlignment:m,alignmentOptionsForLayout:e=>d(e).map(e=>e.value),onRandomize:(t,n)=>{o&&l?.(e,"layout",t),setTimeout(()=>{u&&l?.(e,"alignment",n)},50)}}),o&&ie(lo,{currentLayout:a,options:n.layouts,onSelect:n=>{l?.(e,"layout",n);const i=d(n),o=t.alignment||t.imagePosition||"left";i.length>0&&!i.some(e=>e.value===o)?setTimeout(()=>l?.(e,"alignment",i[0].value),50):0===i.length&&o&&setTimeout(()=>l?.(e,"alignment","left"),50)}}),u&&ie(ao,{label:"Alignment",children:ie(so,{currentAlignment:m,options:c.map(e=>({value:e.value,icon:f[e.value]||ie(uo,{}),label:e.label})),onSelect:t=>l?.(e,"alignment",t)})})]})})()]}),ie(ao,{label:"Delete",children:ie("button",{type:"button",class:"delete-section-btn",style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#f2f4f7",borderRadius:"6px",padding:"6px",cursor:"pointer",transition:"background-color 0.15s ease",border:"none"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#fee";const t=e.currentTarget.querySelector(".trash-icon");t&&t.querySelectorAll("path").forEach(e=>{e.setAttribute("stroke","#dc2626")})},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#f2f4f7";const t=e.currentTarget.querySelector(".trash-icon");t&&t.querySelectorAll("path").forEach(e=>{e.setAttribute("stroke","#141c25")})},onClick:t=>{t.preventDefault(),t.stopPropagation(),d?.(e)},children:ie("svg",{class:"trash-icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:[ie("path",{d:"M3 6H5H21",stroke:"#141c25",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),ie("path",{d:"M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z",stroke:"#141c25",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})})]}),t&&!r&&!("hero-banner-full"===p.type&&!["split","contained","contained-round"].includes(p.content.layout))&&!("offer"===p.type&&!(p.content.layout||"").endsWith("-color"))&&h&&ie(tt,{brandColors:h,backgroundColors:m,currentColor:w,onSelect:t=>{l?.(e,"backgroundColor",t)}}),ie("div",{style:{cursor:"pointer",position:"relative"},onClick:t=>{const n=t.target;n.closest("button")||n.closest('[contenteditable="true"]')||a?.(e)},children:[ie("div",{style:{opacity:n&&!t?b?"0.8":"0.25":"1",transition:"opacity 0.25s ease-in-out"},children:f()}),k&&ie("div",{style:{position:"absolute",inset:"0",borderRadius:"6px",pointerEvents:"none",zIndex:9998,boxSizing:"border-box",border:t?"4px solid transparent":"2px solid transparent",background:"linear-gradient(180deg, #fbcfe8, #818cf8) border-box",WebkitMask:"linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0)",WebkitMaskComposite:"xor",maskComposite:"exclude",transition:"border-width 0.15s ease"}})]})]});var C}function Ho({index:e,onInsertAt:t,sectionCount:n}){if(n>=8)return null;const[i,o]=ve(!1);return ie("div",{style:{position:"relative",height:0,zIndex:10002},children:ie("div",{style:{position:"absolute",left:0,right:0,top:"-6px",height:"12px",cursor:"pointer",display:"flex",alignItems:"center"},onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),onClick:n=>{n.stopPropagation(),t(e)},children:i&&ie("div",{style:{position:"absolute",left:"10px",right:"10px",top:"50%",transform:"translateY(-50%)",display:"flex",alignItems:"center",pointerEvents:"none"},children:[ie("div",{style:{flex:1,height:"1px",background:"rgba(59,130,246,0.5)"}}),ie("div",{style:{width:"20px",height:"20px",borderRadius:"50%",background:"#3b82f6",color:"white",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"15px",fontWeight:400,lineHeight:1,margin:"0 4px",paddingBottom:"1px",fontFamily:"Inter, system-ui, sans-serif"},children:"+"}),ie("div",{style:{flex:1,height:"1px",background:"rgba(59,130,246,0.5)"}})]})})})}function Wo({variant:e,className:t,brandDesign:n,previewMode:i}){const o=[...e.sections].filter(e=>e.enabled).sort((e,t)=>e.order-t.order),r=e.metadata?.edits,a=e.id,l={isPreviewMode:!!i,viewport:i?.viewport,notifyTextChanged:i?.onTextChanged,notifyColorChanged:i?.onColorChanged,requestImageEdit:i?.onImageEditRequest,requestIconEdit:i?.onIconEditRequest,requestUrlEdit:i?.onUrlEditRequest,requestTextEdit:i?.onTextEditRequest,selectedSectionId:i?.selectedSectionId,selectedElementId:i?.selectedElementId,onSectionClick:i?.onSectionClick,onElementClick:i?.onElementClick,uploadingField:i?.uploadingField,generatingFields:i?.generatingFields,requestImageRegenerate:i?.requestImageRegenerate,requestImagePrompt:i?.requestImagePrompt,requestCancelGeneration:i?.requestCancelGeneration,readOnly:i?.readOnly};$o.debug({isPreviewMode:l.isPreviewMode,hasTextChangedCallback:!!l.notifyTextChanged,hasImageCallback:!!l.requestImageEdit,variantId:e.id},"[HeroRenderer] Preview mode");const s=n?.colors?{primary:n.colors.primary?.base,secondary:n.colors.secondary?.base,accent1:n.colors.accent1?.base,accent2:n.colors.accent2?.base}:e.metadata.brandColors,d=n?.colors?.backgroundColors,c=e=>{try{switch(e.type){case"hero-banner-full":return ie(ot,{section:e,variantId:a,edits:r,brandColors:s},e.id);case"reviews-slider":return ie(Kt,{section:e,variantId:a,edits:r,brandColors:s},e.id);case"instagram-feed":return ie(Qt,{section:e,variantId:a,brandColors:s},e.id);case"social-media":return ie(en,{section:e,variantId:a,edits:r,brandColors:s},e.id);case"fifty-fifty":return ie(xn,{section:e,variantId:a,edits:r,brandColors:s},e.id);case"competitor-table":return ie(kn,{section:e,variantId:a,edits:r,brandColors:s},e.id);case"text-block":return ie(Cn,{section:e,variantId:a,edits:r,brandColors:s},e.id);case"icon-block":return ie(Ni,{section:e,variantId:a,brandColors:s},e.id);case"testimonial-carousel":return ie(oo,{section:e,variantId:a,brandColors:s},e.id);case"press-block":return ie(ro,{section:e,variantId:a,brandColors:s},e.id);case"icon-row-stacked":return ie(Ei,{section:e,variantId:a,brandColors:s},e.id);case"icon-row":return ie(Pi,{section:e,variantId:a,brandColors:s},e.id);case"rotating-text-banner":return ie(Zi,{section:e,variantId:a,edits:r,brandColors:s},e.id);case"offer":return ie(to,{section:e,variantId:a,edits:r,brandColors:s},e.id);case"spacer":return ie(no,{section:e,variantId:a,brandColors:s},e.id);default:return $o.warn(`Unknown section type: ${e.type}`),null}}catch(t){return $o.error({error:t,sectionId:e.id,sectionType:e.type},"[HeroRenderer] Error rendering section"),null}},u=(e,t)=>{const n=parseInt(e.replace("#",""),16),i=n>>8&255,o=255&n,r=e=>{const n=t>0?e+(255-e)*t:e+e*t;return Math.round(Math.max(0,Math.min(255,n)))};return`#${((1<<24)+(r(n>>16&255)<<16)+(r(i)<<8)+r(o)).toString(16).slice(1)}`},p=n?.colors,h=n?.typography;$o.debug({hasBrandDesign:!!n,hasColors:!!p,hasTypography:!!h},"[HeroRenderer] Brand design");const m={},f=p?.primary?.base,g=p?.secondary?.base,b=p?.accent1?.base,v=p?.accent2?.base;f||g||b||v?($o.debug("[HeroRenderer] ✅ Building CSS variables from brand colors"),f&&(m["--brand-primary"]=f,m["--brand-primary-dark"]=u(f,-.15),m["--brand-primary-darker"]=u(f,-.3),m["--brand-primary-light"]=u(f,.6),m["--brand-primary-lighter"]=u(f,.85)),g&&(m["--brand-secondary"]=g,m["--brand-secondary-dark"]=u(g,-.15),m["--brand-secondary-darker"]=u(g,-.3),m["--brand-secondary-light"]=u(g,.6)),b&&(m["--brand-accent1"]=b,m["--brand-accent1-dark"]=u(b,-.15),m["--brand-accent1-darker"]=u(b,-.3)),v&&(m["--brand-accent2"]=v,m["--brand-accent2-dark"]=u(v,-.15),m["--brand-accent2-darker"]=u(v,-.3)),$o.debug({variables:Object.keys(m).filter(e=>e.includes("primary")||e.includes("secondary")||e.includes("accent"))},"[HeroRenderer] CSS color variables created")):$o.debug("[HeroRenderer] ⚠️  No brand colors available");const y=p?.buttonStyles;if(y&&(y.borderRadius&&(m["--brand-button-radius"]=y.borderRadius),y.hoverBackgroundColor&&(m["--brand-button-hover-bg"]=y.hoverBackgroundColor,m["--brand-button-hover-text"]=Ge(y.hoverBackgroundColor)),y.textTransform&&(m["--brand-button-text-transform"]=y.textTransform),y.padding&&(m["--brand-button-padding"]=y.padding),y.boxShadow&&(m["--brand-button-shadow"]=y.boxShadow),y.borderWidth&&(m["--brand-button-border-width"]=y.borderWidth),y.borderColor&&(m["--brand-button-border-color"]=y.borderColor),y.borderStyle&&(m["--brand-button-border-style"]=y.borderStyle),m["--brand-button-hover-scale"]=!1===y.hoverScale?"1":"1.02",y.fontSize&&(m["--brand-button-font-size"]=y.fontSize),y.fontWeight&&(m["--brand-button-font-weight"]=y.fontWeight),y.letterSpacing&&(m["--brand-button-letter-spacing"]=y.letterSpacing),$o.debug({buttonStyles:y},"[HeroRenderer] CSS button style variables created")),h){if($o.debug("[HeroRenderer] ✅ Building CSS variables from brand typography"),h.fontFamilies?.heading&&(m["--brand-font-heading"]=h.fontFamilies.heading),h.fontFamilies?.body&&(m["--brand-font-body"]=h.fontFamilies.body),h.scale){const e=h.scale,t=(e,t)=>!e||"0"===e||"0px"===e||parseFloat(e)<=0?t:e;e.h1&&(m["--brand-h1-size"]=e.h1.fontSize||"56px",m["--brand-h1-weight"]=String(e.h1.fontWeight||700),m["--brand-h1-line-height"]=t(e.h1.lineHeight,"1.23")),e.h2&&(m["--brand-h2-size"]=e.h2.fontSize||"40px",m["--brand-h2-weight"]=String(e.h2.fontWeight||700),m["--brand-h2-line-height"]=t(e.h2.lineHeight,"1.35")),e.h3&&(m["--brand-h3-size"]=e.h3.fontSize||"30px",m["--brand-h3-weight"]=String(e.h3.fontWeight||700),m["--brand-h3-line-height"]=t(e.h3.lineHeight,"1.27")),e.h4&&(m["--brand-h4-size"]=e.h4.fontSize||"24px",m["--brand-h4-weight"]=String(e.h4.fontWeight||700),m["--brand-h4-line-height"]=t(e.h4.lineHeight,"1.33")),e.h5&&(m["--brand-h5-size"]=e.h5.fontSize||"17px",m["--brand-h5-weight"]=String(e.h5.fontWeight||700),m["--brand-h5-line-height"]=t(e.h5.lineHeight,"1.29")),e.h6&&(m["--brand-h6-size"]=e.h6.fontSize||"12px",m["--brand-h6-weight"]=String(e.h6.fontWeight||700),m["--brand-h6-line-height"]=t(e.h6.lineHeight,"1.5")),e.body&&(m["--brand-body-size"]=e.body.fontSize||"16px",m["--brand-body-weight"]=String(e.body.fontWeight||400),m["--brand-body-line-height"]=t(e.body.lineHeight,"1.375")),e.bodyLarge&&(m["--brand-body-lg-size"]=e.bodyLarge.fontSize||"18px",m["--brand-body-lg-weight"]=String(e.bodyLarge.fontWeight||400),m["--brand-body-lg-line-height"]=t(e.bodyLarge.lineHeight,"1.33")),e.bodySmall&&(m["--brand-body-sm-size"]=e.bodySmall.fontSize||"12px",m["--brand-body-sm-weight"]=String(e.bodySmall.fontWeight||400),m["--brand-body-sm-line-height"]=t(e.bodySmall.lineHeight,"1.5")),$o.debug({scale:Object.keys(e)},"[HeroRenderer] CSS typography scale variables created")}$o.debug({heading:h.fontFamilies?.heading,body:h.fontFamilies?.body},"[HeroRenderer] CSS typography variables created")}else $o.debug("[HeroRenderer] ⚠️  No brand typography in variant metadata");const x=!!i?.selectedSectionId;if(h?.scale){const e=h.scale,t={h1:.64,h2:.75,h3:.8,h4:.83,h5:.94,h6:1,bodyLarge:1};if(e.h1?.fontSize){const n=parseFloat(e.h1.fontSize);isNaN(n)||(m["--brand-h1-size-mobile"]=`${Math.round(n*t.h1)}px`)}if(e.h2?.fontSize){const n=parseFloat(e.h2.fontSize);isNaN(n)||(m["--brand-h2-size-mobile"]=`${Math.round(n*t.h2)}px`)}if(e.h3?.fontSize){const n=parseFloat(e.h3.fontSize);isNaN(n)||(m["--brand-h3-size-mobile"]=`${Math.round(n*t.h3)}px`)}if(e.h4?.fontSize){const n=parseFloat(e.h4.fontSize);isNaN(n)||(m["--brand-h4-size-mobile"]=`${Math.round(n*t.h4)}px`)}if(e.h5?.fontSize){const n=parseFloat(e.h5.fontSize);isNaN(n)||(m["--brand-h5-size-mobile"]=`${Math.round(n*t.h5)}px`)}if(e.h6?.fontSize){const n=parseFloat(e.h6.fontSize);isNaN(n)||(m["--brand-h6-size-mobile"]=`${Math.round(n*t.h6)}px`)}if(e.bodyLarge?.fontSize){const n=parseFloat(e.bodyLarge.fontSize);isNaN(n)||(m["--brand-body-lg-size-mobile"]=`${Math.round(n*t.bodyLarge)}px`)}}return ie(ze,{value:l,children:ie("div",{class:t,style:{...m,position:"relative",isolation:"isolate"},children:[x&&!i?.readOnly&&ie(j,{children:[ie("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"white",opacity:.7,zIndex:9e3,pointerEvents:"none",transition:"opacity 0.25s ease-in-out"}}),ie("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:9999,pointerEvents:"auto"},onClick:e=>{e.preventDefault(),e.stopPropagation(),i?.onSectionClick?.("")}})]}),o.map((e,t)=>{const n=(r=e.id,i?.selectedSectionId===r);var r;const a=(l=e.type,mo[l]||l);var l;return i&&!i.readOnly?ie("div",{children:[i.onSectionInsertAt&&ie(Ho,{index:t,onInsertAt:i.onSectionInsertAt,sectionCount:o.length}),ie(Do,{sectionId:e.id,isSelected:n,hasSelection:x,isLast:t===o.length-1,isFirst:0===t,selectedElementId:i.selectedElementId,onSectionClick:i.onSectionClick,onColorChanged:i.onColorChanged,onSectionReorder:i.onSectionReorder,onSectionDelete:i.onSectionDelete,onSectionScrolledOutOfView:i.onSectionScrolledOutOfView,label:a,section:e,brandColors:s,backgroundColors:d,renderSection:()=>c(e),children:null}),t===o.length-1&&i.onSectionInsertAt&&ie(Ho,{index:t+1,onInsertAt:i.onSectionInsertAt,sectionCount:o.length})]},e.id):ie("div",{children:c(e)},e.id)})]})})}var Uo,Zo;!function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),i={};for(const e of n)i[e]=t[e];return e.objectValues(i)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(Uo||(Uo={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(Zo||(Zo={}));const qo=Uo.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Vo=e=>{switch(typeof e){case"undefined":return qo.undefined;case"string":return qo.string;case"number":return Number.isNaN(e)?qo.nan:qo.number;case"boolean":return qo.boolean;case"function":return qo.function;case"bigint":return qo.bigint;case"symbol":return qo.symbol;case"object":return Array.isArray(e)?qo.array:null===e?qo.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?qo.promise:"undefined"!=typeof Map&&e instanceof Map?qo.map:"undefined"!=typeof Set&&e instanceof Set?qo.set:"undefined"!=typeof Date&&e instanceof Date?qo.date:qo.object;default:return qo.unknown}},Yo=Uo.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Go extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},n={_errors:[]},i=e=>{for(const o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(i);else if("invalid_return_type"===o.code)i(o.returnTypeError);else if("invalid_arguments"===o.code)i(o.argumentsError);else if(0===o.path.length)n._errors.push(t(o));else{let e=n,i=0;for(;i<o.path.length;){const n=o.path[i];i===o.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(o))):e[n]=e[n]||{_errors:[]},e=e[n],i++}}};return i(this),n}static assert(e){if(!(e instanceof Go))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Uo.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const i of this.issues)if(i.path.length>0){const n=i.path[0];t[n]=t[n]||[],t[n].push(e(i))}else n.push(e(i));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}Go.create=e=>new Go(e);var Jo=(e,t)=>{let n;switch(e.code){case Yo.invalid_type:n=e.received===qo.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case Yo.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Uo.jsonStringifyReplacer)}`;break;case Yo.unrecognized_keys:n=`Unrecognized key(s) in object: ${Uo.joinValues(e.keys,", ")}`;break;case Yo.invalid_union:n="Invalid input";break;case Yo.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Uo.joinValues(e.options)}`;break;case Yo.invalid_enum_value:n=`Invalid enum value. Expected ${Uo.joinValues(e.options)}, received '${e.received}'`;break;case Yo.invalid_arguments:n="Invalid function arguments";break;case Yo.invalid_return_type:n="Invalid function return type";break;case Yo.invalid_date:n="Invalid date";break;case Yo.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Uo.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case Yo.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case Yo.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case Yo.custom:n="Invalid input";break;case Yo.invalid_intersection_types:n="Intersection results could not be merged";break;case Yo.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Yo.not_finite:n="Number must be finite";break;default:n=t.defaultError,Uo.assertNever(e)}return{message:n}};let Xo=Jo;function Ko(e,t){const n=Xo,i=(e=>{const{data:t,path:n,errorMaps:i,issueData:o}=e,r=[...n,...o.path||[]],a={...o,path:r};if(void 0!==o.message)return{...o,path:r,message:o.message};let l="";const s=i.filter(e=>!!e).slice().reverse();for(const e of s)l=e(a,{data:t,defaultError:l}).message;return{...o,path:r,message:l}})({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Jo?void 0:Jo].filter(e=>!!e)});e.common.issues.push(i)}class Qo{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const i of t){if("aborted"===i.status)return er;"dirty"===i.status&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const e of t){const t=await e.key,i=await e.value;n.push({key:t,value:i})}return Qo.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const i of t){const{key:t,value:o}=i;if("aborted"===t.status)return er;if("aborted"===o.status)return er;"dirty"===t.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"===t.value||void 0===o.value&&!i.alwaysSet||(n[t.value]=o.value)}return{status:e.value,value:n}}}const er=Object.freeze({status:"aborted"}),tr=e=>({status:"dirty",value:e}),nr=e=>({status:"valid",value:e}),ir=e=>"aborted"===e.status,or=e=>"dirty"===e.status,rr=e=>"valid"===e.status,ar=e=>"undefined"!=typeof Promise&&e instanceof Promise;var lr;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(lr||(lr={}));class sr{constructor(e,t,n,i){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const dr=(e,t)=>{if(rr(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new Go(e.common.issues);return this._error=t,this._error}}};function cr(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:o}=e;if(t&&(n||i))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:o}:{errorMap:(t,o)=>{const{message:r}=e;return"invalid_enum_value"===t.code?{message:r??o.defaultError}:void 0===o.data?{message:r??i??o.defaultError}:"invalid_type"!==t.code?{message:o.defaultError}:{message:r??n??o.defaultError}},description:o}}class ur{get description(){return this._def.description}_getType(e){return Vo(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Vo(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Qo,ctx:{common:e.parent.common,data:e.data,parsedType:Vo(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(ar(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){const n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Vo(e)},i=this._parseSync({data:e,path:n.path,parent:n});return dr(n,i)}"~validate"(e){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Vo(e)};if(!this["~standard"].async)try{const n=this._parseSync({data:e,path:[],parent:t});return rr(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>rr(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Vo(e)},i=this._parse({data:e,path:n.path,parent:n}),o=await(ar(i)?i:Promise.resolve(i));return dr(n,o)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,i)=>{const o=e(t),r=()=>i.addIssue({code:Yo.custom,...n(t)});return"undefined"!=typeof Promise&&o instanceof Promise?o.then(e=>!!e||(r(),!1)):!!o||(r(),!1)})}refinement(e,t){return this._refinement((n,i)=>!!e(n)||(i.addIssue("function"==typeof t?t(n,i):t),!1))}_refinement(e){return new pa({schema:this,typeName:wa.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ha.create(this,this._def)}nullable(){return ma.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Yr.create(this)}promise(){return ua.create(this,this._def)}or(e){return Xr.create([this,e],this._def)}and(e){return ta.create(this,e,this._def)}transform(e){return new pa({...cr(this._def),schema:this,typeName:wa.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new fa({...cr(this._def),innerType:this,defaultValue:t,typeName:wa.ZodDefault})}brand(){return new va({typeName:wa.ZodBranded,type:this,...cr(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new ga({...cr(this._def),innerType:this,catchValue:t,typeName:wa.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return ya.create(this,e)}readonly(){return xa.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const pr=/^c[^\s-]{8,}$/i,hr=/^[0-9a-z]+$/,mr=/^[0-9A-HJKMNP-TV-Z]{26}$/i,fr=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,gr=/^[a-z0-9_-]{21}$/i,br=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,vr=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,yr=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let xr;const wr=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,kr=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Cr=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,_r=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ir=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Sr=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Mr="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Ar=new RegExp(`^${Mr}$`);function Tr(e){let t="[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),`([01]\\d|2[0-3]):[0-5]\\d(:${t})${e.precision?"+":"?"}`}function Er(e){return new RegExp(`^${Tr(e)}$`)}function Pr(e){let t=`${Mr}T${Tr(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Lr(e,t){return!("v4"!==t&&t||!wr.test(e))||!("v6"!==t&&t||!Cr.test(e))}function Nr(e,t){if(!br.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(i));return!("object"!=typeof o||null===o||"typ"in o&&"JWT"!==o?.typ||!o.alg||t&&o.alg!==t)}catch{return!1}}function jr(e,t){return!("v4"!==t&&t||!kr.test(e))||!("v6"!==t&&t||!_r.test(e))}class zr extends ur{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==qo.string){const t=this._getOrReturnCtx(e);return Ko(t,{code:Yo.invalid_type,expected:qo.string,received:t.parsedType}),er}const t=new Qo;let n;for(const i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(n=this._getOrReturnCtx(e,n),Ko(n,{code:Yo.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("max"===i.kind)e.data.length>i.value&&(n=this._getOrReturnCtx(e,n),Ko(n,{code:Yo.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("length"===i.kind){const o=e.data.length>i.value,r=e.data.length<i.value;(o||r)&&(n=this._getOrReturnCtx(e,n),o?Ko(n,{code:Yo.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):r&&Ko(n,{code:Yo.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),t.dirty())}else if("email"===i.kind)yr.test(e.data)||(n=this._getOrReturnCtx(e,n),Ko(n,{validation:"email",code:Yo.invalid_string,message:i.message}),t.dirty());else if("emoji"===i.kind)xr||(xr=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),xr.test(e.data)||(n=this._getOrReturnCtx(e,n),Ko(n,{validation:"emoji",code:Yo.invalid_string,message:i.message}),t.dirty());else if("uuid"===i.kind)fr.test(e.data)||(n=this._getOrReturnCtx(e,n),Ko(n,{validation:"uuid",code:Yo.invalid_string,message:i.message}),t.dirty());else if("nanoid"===i.kind)gr.test(e.data)||(n=this._getOrReturnCtx(e,n),Ko(n,{validation:"nanoid",code:Yo.invalid_string,message:i.message}),t.dirty());else if("cuid"===i.kind)pr.test(e.data)||(n=this._getOrReturnCtx(e,n),Ko(n,{validation:"cuid",code:Yo.invalid_string,message:i.message}),t.dirty());else if("cuid2"===i.kind)hr.test(e.data)||(n=this._getOrReturnCtx(e,n),Ko(n,{validation:"cuid2",code:Yo.invalid_string,message:i.message}),t.dirty());else if("ulid"===i.kind)mr.test(e.data)||(n=this._getOrReturnCtx(e,n),Ko(n,{validation:"ulid",code:Yo.invalid_string,message:i.message}),t.dirty());else if("url"===i.kind)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),Ko(n,{validation:"url",code:Yo.invalid_string,message:i.message}),t.dirty()}else"regex"===i.kind?(i.regex.lastIndex=0,i.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),Ko(n,{validation:"regex",code:Yo.invalid_string,message:i.message}),t.dirty())):"trim"===i.kind?e.data=e.data.trim():"includes"===i.kind?e.data.includes(i.value,i.position)||(n=this._getOrReturnCtx(e,n),Ko(n,{code:Yo.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),t.dirty()):"toLowerCase"===i.kind?e.data=e.data.toLowerCase():"toUpperCase"===i.kind?e.data=e.data.toUpperCase():"startsWith"===i.kind?e.data.startsWith(i.value)||(n=this._getOrReturnCtx(e,n),Ko(n,{code:Yo.invalid_string,validation:{startsWith:i.value},message:i.message}),t.dirty()):"endsWith"===i.kind?e.data.endsWith(i.value)||(n=this._getOrReturnCtx(e,n),Ko(n,{code:Yo.invalid_string,validation:{endsWith:i.value},message:i.message}),t.dirty()):"datetime"===i.kind?Pr(i).test(e.data)||(n=this._getOrReturnCtx(e,n),Ko(n,{code:Yo.invalid_string,validation:"datetime",message:i.message}),t.dirty()):"date"===i.kind?Ar.test(e.data)||(n=this._getOrReturnCtx(e,n),Ko(n,{code:Yo.invalid_string,validation:"date",message:i.message}),t.dirty()):"time"===i.kind?Er(i).test(e.data)||(n=this._getOrReturnCtx(e,n),Ko(n,{code:Yo.invalid_string,validation:"time",message:i.message}),t.dirty()):"duration"===i.kind?vr.test(e.data)||(n=this._getOrReturnCtx(e,n),Ko(n,{validation:"duration",code:Yo.invalid_string,message:i.message}),t.dirty()):"ip"===i.kind?Lr(e.data,i.version)||(n=this._getOrReturnCtx(e,n),Ko(n,{validation:"ip",code:Yo.invalid_string,message:i.message}),t.dirty()):"jwt"===i.kind?Nr(e.data,i.alg)||(n=this._getOrReturnCtx(e,n),Ko(n,{validation:"jwt",code:Yo.invalid_string,message:i.message}),t.dirty()):"cidr"===i.kind?jr(e.data,i.version)||(n=this._getOrReturnCtx(e,n),Ko(n,{validation:"cidr",code:Yo.invalid_string,message:i.message}),t.dirty()):"base64"===i.kind?Ir.test(e.data)||(n=this._getOrReturnCtx(e,n),Ko(n,{validation:"base64",code:Yo.invalid_string,message:i.message}),t.dirty()):"base64url"===i.kind?Sr.test(e.data)||(n=this._getOrReturnCtx(e,n),Ko(n,{validation:"base64url",code:Yo.invalid_string,message:i.message}),t.dirty()):Uo.assertNever(i);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:Yo.invalid_string,...lr.errToObj(n)})}_addCheck(e){return new zr({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...lr.errToObj(e)})}url(e){return this._addCheck({kind:"url",...lr.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...lr.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...lr.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...lr.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...lr.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...lr.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...lr.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...lr.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...lr.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...lr.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...lr.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...lr.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...lr.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...lr.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...lr.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...lr.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...lr.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...lr.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...lr.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...lr.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...lr.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...lr.errToObj(t)})}nonempty(e){return this.min(1,lr.errToObj(e))}trim(){return new zr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new zr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new zr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function Or(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,o=n>i?n:i;return Number.parseInt(e.toFixed(o).replace(".",""))%Number.parseInt(t.toFixed(o).replace(".",""))/10**o}zr.create=e=>new zr({checks:[],typeName:wa.ZodString,coerce:e?.coerce??!1,...cr(e)});class Rr extends ur{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==qo.number){const t=this._getOrReturnCtx(e);return Ko(t,{code:Yo.invalid_type,expected:qo.number,received:t.parsedType}),er}let t;const n=new Qo;for(const i of this._def.checks)"int"===i.kind?Uo.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),Ko(t,{code:Yo.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty()):"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),Ko(t,{code:Yo.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),Ko(t,{code:Yo.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"multipleOf"===i.kind?0!==Or(e.data,i.value)&&(t=this._getOrReturnCtx(e,t),Ko(t,{code:Yo.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),Ko(t,{code:Yo.not_finite,message:i.message}),n.dirty()):Uo.assertNever(i);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,lr.toString(t))}gt(e,t){return this.setLimit("min",e,!1,lr.toString(t))}lte(e,t){return this.setLimit("max",e,!0,lr.toString(t))}lt(e,t){return this.setLimit("max",e,!1,lr.toString(t))}setLimit(e,t,n,i){return new Rr({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:lr.toString(i)}]})}_addCheck(e){return new Rr({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:lr.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:lr.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:lr.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:lr.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:lr.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:lr.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:lr.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:lr.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:lr.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&Uo.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}Rr.create=e=>new Rr({checks:[],typeName:wa.ZodNumber,coerce:e?.coerce||!1,...cr(e)});class $r extends ur{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==qo.bigint)return this._getInvalidInput(e);let t;const n=new Qo;for(const i of this._def.checks)"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),Ko(t,{code:Yo.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),Ko(t,{code:Yo.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),Ko(t,{code:Yo.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):Uo.assertNever(i);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return Ko(t,{code:Yo.invalid_type,expected:qo.bigint,received:t.parsedType}),er}gte(e,t){return this.setLimit("min",e,!0,lr.toString(t))}gt(e,t){return this.setLimit("min",e,!1,lr.toString(t))}lte(e,t){return this.setLimit("max",e,!0,lr.toString(t))}lt(e,t){return this.setLimit("max",e,!1,lr.toString(t))}setLimit(e,t,n,i){return new $r({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:lr.toString(i)}]})}_addCheck(e){return new $r({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:lr.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:lr.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:lr.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:lr.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:lr.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}$r.create=e=>new $r({checks:[],typeName:wa.ZodBigInt,coerce:e?.coerce??!1,...cr(e)});class Br extends ur{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==qo.boolean){const t=this._getOrReturnCtx(e);return Ko(t,{code:Yo.invalid_type,expected:qo.boolean,received:t.parsedType}),er}return nr(e.data)}}Br.create=e=>new Br({typeName:wa.ZodBoolean,coerce:e?.coerce||!1,...cr(e)});class Fr extends ur{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==qo.date){const t=this._getOrReturnCtx(e);return Ko(t,{code:Yo.invalid_type,expected:qo.date,received:t.parsedType}),er}if(Number.isNaN(e.data.getTime()))return Ko(this._getOrReturnCtx(e),{code:Yo.invalid_date}),er;const t=new Qo;let n;for(const i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(n=this._getOrReturnCtx(e,n),Ko(n,{code:Yo.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),t.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(n=this._getOrReturnCtx(e,n),Ko(n,{code:Yo.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),t.dirty()):Uo.assertNever(i);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Fr({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:lr.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:lr.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Fr.create=e=>new Fr({checks:[],coerce:e?.coerce||!1,typeName:wa.ZodDate,...cr(e)});class Dr extends ur{_parse(e){if(this._getType(e)!==qo.symbol){const t=this._getOrReturnCtx(e);return Ko(t,{code:Yo.invalid_type,expected:qo.symbol,received:t.parsedType}),er}return nr(e.data)}}Dr.create=e=>new Dr({typeName:wa.ZodSymbol,...cr(e)});class Hr extends ur{_parse(e){if(this._getType(e)!==qo.undefined){const t=this._getOrReturnCtx(e);return Ko(t,{code:Yo.invalid_type,expected:qo.undefined,received:t.parsedType}),er}return nr(e.data)}}Hr.create=e=>new Hr({typeName:wa.ZodUndefined,...cr(e)});class Wr extends ur{_parse(e){if(this._getType(e)!==qo.null){const t=this._getOrReturnCtx(e);return Ko(t,{code:Yo.invalid_type,expected:qo.null,received:t.parsedType}),er}return nr(e.data)}}Wr.create=e=>new Wr({typeName:wa.ZodNull,...cr(e)});class Ur extends ur{constructor(){super(...arguments),this._any=!0}_parse(e){return nr(e.data)}}Ur.create=e=>new Ur({typeName:wa.ZodAny,...cr(e)});class Zr extends ur{constructor(){super(...arguments),this._unknown=!0}_parse(e){return nr(e.data)}}Zr.create=e=>new Zr({typeName:wa.ZodUnknown,...cr(e)});class qr extends ur{_parse(e){const t=this._getOrReturnCtx(e);return Ko(t,{code:Yo.invalid_type,expected:qo.never,received:t.parsedType}),er}}qr.create=e=>new qr({typeName:wa.ZodNever,...cr(e)});class Vr extends ur{_parse(e){if(this._getType(e)!==qo.undefined){const t=this._getOrReturnCtx(e);return Ko(t,{code:Yo.invalid_type,expected:qo.void,received:t.parsedType}),er}return nr(e.data)}}Vr.create=e=>new Vr({typeName:wa.ZodVoid,...cr(e)});class Yr extends ur{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),i=this._def;if(t.parsedType!==qo.array)return Ko(t,{code:Yo.invalid_type,expected:qo.array,received:t.parsedType}),er;if(null!==i.exactLength){const e=t.data.length>i.exactLength.value,o=t.data.length<i.exactLength.value;(e||o)&&(Ko(t,{code:e?Yo.too_big:Yo.too_small,minimum:o?i.exactLength.value:void 0,maximum:e?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&(Ko(t,{code:Yo.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&(Ko(t,{code:Yo.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>i.type._parseAsync(new sr(t,e,t.path,n)))).then(e=>Qo.mergeArray(n,e));const o=[...t.data].map((e,n)=>i.type._parseSync(new sr(t,e,t.path,n)));return Qo.mergeArray(n,o)}get element(){return this._def.type}min(e,t){return new Yr({...this._def,minLength:{value:e,message:lr.toString(t)}})}max(e,t){return new Yr({...this._def,maxLength:{value:e,message:lr.toString(t)}})}length(e,t){return new Yr({...this._def,exactLength:{value:e,message:lr.toString(t)}})}nonempty(e){return this.min(1,e)}}function Gr(e){if(e instanceof Jr){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=ha.create(Gr(i))}return new Jr({...e._def,shape:()=>t})}return e instanceof Yr?new Yr({...e._def,type:Gr(e.element)}):e instanceof ha?ha.create(Gr(e.unwrap())):e instanceof ma?ma.create(Gr(e.unwrap())):e instanceof na?na.create(e.items.map(e=>Gr(e))):e}Yr.create=(e,t)=>new Yr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:wa.ZodArray,...cr(t)});class Jr extends ur{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=Uo.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==qo.object){const t=this._getOrReturnCtx(e);return Ko(t,{code:Yo.invalid_type,expected:qo.object,received:t.parsedType}),er}const{status:t,ctx:n}=this._processInputParams(e),{shape:i,keys:o}=this._getCached(),r=[];if(!(this._def.catchall instanceof qr&&"strip"===this._def.unknownKeys))for(const e in n.data)o.includes(e)||r.push(e);const a=[];for(const e of o){const t=i[e],o=n.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new sr(n,o,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof qr){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of r)a.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)r.length>0&&(Ko(n,{code:Yo.unrecognized_keys,keys:r}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of r){const i=n.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new sr(n,i,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{const e=[];for(const t of a){const n=await t.key,i=await t.value;e.push({key:n,value:i,alwaysSet:t.alwaysSet})}return e}).then(e=>Qo.mergeObjectSync(t,e)):Qo.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return lr.errToObj,new Jr({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{const i=this._def.errorMap?.(t,n).message??n.defaultError;return"unrecognized_keys"===t.code?{message:lr.errToObj(e).message??i}:{message:i}}}:{}})}strip(){return new Jr({...this._def,unknownKeys:"strip"})}passthrough(){return new Jr({...this._def,unknownKeys:"passthrough"})}extend(e){return new Jr({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Jr({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:wa.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Jr({...this._def,catchall:e})}pick(e){const t={};for(const n of Uo.objectKeys(e))e[n]&&this.shape[n]&&(t[n]=this.shape[n]);return new Jr({...this._def,shape:()=>t})}omit(e){const t={};for(const n of Uo.objectKeys(this.shape))e[n]||(t[n]=this.shape[n]);return new Jr({...this._def,shape:()=>t})}deepPartial(){return Gr(this)}partial(e){const t={};for(const n of Uo.objectKeys(this.shape)){const i=this.shape[n];e&&!e[n]?t[n]=i:t[n]=i.optional()}return new Jr({...this._def,shape:()=>t})}required(e){const t={};for(const n of Uo.objectKeys(this.shape))if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof ha;)e=e._def.innerType;t[n]=e}return new Jr({...this._def,shape:()=>t})}keyof(){return sa(Uo.objectKeys(this.shape))}}Jr.create=(e,t)=>new Jr({shape:()=>e,unknownKeys:"strip",catchall:qr.create(),typeName:wa.ZodObject,...cr(t)}),Jr.strictCreate=(e,t)=>new Jr({shape:()=>e,unknownKeys:"strict",catchall:qr.create(),typeName:wa.ZodObject,...cr(t)}),Jr.lazycreate=(e,t)=>new Jr({shape:e,unknownKeys:"strip",catchall:qr.create(),typeName:wa.ZodObject,...cr(t)});class Xr extends ur{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const n=e.map(e=>new Go(e.ctx.common.issues));return Ko(t,{code:Yo.invalid_union,unionErrors:n}),er});{let e;const i=[];for(const o of n){const n={...t,common:{...t.common,issues:[]},parent:null},r=o._parseSync({data:t.data,path:t.path,parent:n});if("valid"===r.status)return r;"dirty"!==r.status||e||(e={result:r,ctx:n}),n.common.issues.length&&i.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const o=i.map(e=>new Go(e));return Ko(t,{code:Yo.invalid_union,unionErrors:o}),er}}get options(){return this._def.options}}Xr.create=(e,t)=>new Xr({options:e,typeName:wa.ZodUnion,...cr(t)});const Kr=e=>e instanceof aa?Kr(e.schema):e instanceof pa?Kr(e.innerType()):e instanceof la?[e.value]:e instanceof da?e.options:e instanceof ca?Uo.objectValues(e.enum):e instanceof fa?Kr(e._def.innerType):e instanceof Hr?[void 0]:e instanceof Wr?[null]:e instanceof ha?[void 0,...Kr(e.unwrap())]:e instanceof ma?[null,...Kr(e.unwrap())]:e instanceof va||e instanceof xa?Kr(e.unwrap()):e instanceof ga?Kr(e._def.innerType):[];class Qr extends ur{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==qo.object)return Ko(t,{code:Yo.invalid_type,expected:qo.object,received:t.parsedType}),er;const n=this.discriminator,i=t.data[n],o=this.optionsMap.get(i);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):(Ko(t,{code:Yo.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),er)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const i=new Map;for(const n of t){const t=Kr(n.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const o of t){if(i.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);i.set(o,n)}}return new Qr({typeName:wa.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...cr(n)})}}function ea(e,t){const n=Vo(e),i=Vo(t);if(e===t)return{valid:!0,data:e};if(n===qo.object&&i===qo.object){const n=Uo.objectKeys(t),i=Uo.objectKeys(e).filter(e=>-1!==n.indexOf(e)),o={...e,...t};for(const n of i){const i=ea(e[n],t[n]);if(!i.valid)return{valid:!1};o[n]=i.data}return{valid:!0,data:o}}if(n===qo.array&&i===qo.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let i=0;i<e.length;i++){const o=ea(e[i],t[i]);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}return n===qo.date&&i===qo.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class ta extends ur{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=(e,i)=>{if(ir(e)||ir(i))return er;const o=ea(e.value,i.value);return o.valid?((or(e)||or(i))&&t.dirty(),{status:t.value,value:o.data}):(Ko(n,{code:Yo.invalid_intersection_types}),er)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>i(e,t)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ta.create=(e,t,n)=>new ta({left:e,right:t,typeName:wa.ZodIntersection,...cr(n)});class na extends ur{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qo.array)return Ko(n,{code:Yo.invalid_type,expected:qo.array,received:n.parsedType}),er;if(n.data.length<this._def.items.length)return Ko(n,{code:Yo.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),er;!this._def.rest&&n.data.length>this._def.items.length&&(Ko(n,{code:Yo.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const i=[...n.data].map((e,t)=>{const i=this._def.items[t]||this._def.rest;return i?i._parse(new sr(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(i).then(e=>Qo.mergeArray(t,e)):Qo.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new na({...this._def,rest:e})}}na.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new na({items:e,typeName:wa.ZodTuple,rest:null,...cr(t)})};class ia extends ur{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qo.object)return Ko(n,{code:Yo.invalid_type,expected:qo.object,received:n.parsedType}),er;const i=[],o=this._def.keyType,r=this._def.valueType;for(const e in n.data)i.push({key:o._parse(new sr(n,e,n.path,e)),value:r._parse(new sr(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?Qo.mergeObjectAsync(t,i):Qo.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,n){return new ia(t instanceof ur?{keyType:e,valueType:t,typeName:wa.ZodRecord,...cr(n)}:{keyType:zr.create(),valueType:e,typeName:wa.ZodRecord,...cr(t)})}}class oa extends ur{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qo.map)return Ko(n,{code:Yo.invalid_type,expected:qo.map,received:n.parsedType}),er;const i=this._def.keyType,o=this._def.valueType,r=[...n.data.entries()].map(([e,t],r)=>({key:i._parse(new sr(n,e,n.path,[r,"key"])),value:o._parse(new sr(n,t,n.path,[r,"value"]))}));if(n.common.async){const e=new Map;return Promise.resolve().then(async()=>{for(const n of r){const i=await n.key,o=await n.value;if("aborted"===i.status||"aborted"===o.status)return er;"dirty"!==i.status&&"dirty"!==o.status||t.dirty(),e.set(i.value,o.value)}return{status:t.value,value:e}})}{const e=new Map;for(const n of r){const i=n.key,o=n.value;if("aborted"===i.status||"aborted"===o.status)return er;"dirty"!==i.status&&"dirty"!==o.status||t.dirty(),e.set(i.value,o.value)}return{status:t.value,value:e}}}}oa.create=(e,t,n)=>new oa({valueType:t,keyType:e,typeName:wa.ZodMap,...cr(n)});class ra extends ur{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qo.set)return Ko(n,{code:Yo.invalid_type,expected:qo.set,received:n.parsedType}),er;const i=this._def;null!==i.minSize&&n.data.size<i.minSize.value&&(Ko(n,{code:Yo.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&n.data.size>i.maxSize.value&&(Ko(n,{code:Yo.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());const o=this._def.valueType;function r(e){const n=new Set;for(const i of e){if("aborted"===i.status)return er;"dirty"===i.status&&t.dirty(),n.add(i.value)}return{status:t.value,value:n}}const a=[...n.data.values()].map((e,t)=>o._parse(new sr(n,e,n.path,t)));return n.common.async?Promise.all(a).then(e=>r(e)):r(a)}min(e,t){return new ra({...this._def,minSize:{value:e,message:lr.toString(t)}})}max(e,t){return new ra({...this._def,maxSize:{value:e,message:lr.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ra.create=(e,t)=>new ra({valueType:e,minSize:null,maxSize:null,typeName:wa.ZodSet,...cr(t)});class aa extends ur{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}aa.create=(e,t)=>new aa({getter:e,typeName:wa.ZodLazy,...cr(t)});class la extends ur{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return Ko(t,{received:t.data,code:Yo.invalid_literal,expected:this._def.value}),er}return{status:"valid",value:e.data}}get value(){return this._def.value}}function sa(e,t){return new da({values:e,typeName:wa.ZodEnum,...cr(t)})}la.create=(e,t)=>new la({value:e,typeName:wa.ZodLiteral,...cr(t)});class da extends ur{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return Ko(t,{expected:Uo.joinValues(n),received:t.parsedType,code:Yo.invalid_type}),er}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return Ko(t,{received:t.data,code:Yo.invalid_enum_value,options:n}),er}return nr(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return da.create(e,{...this._def,...t})}exclude(e,t=this._def){return da.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}da.create=sa;class ca extends ur{_parse(e){const t=Uo.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==qo.string&&n.parsedType!==qo.number){const e=Uo.objectValues(t);return Ko(n,{expected:Uo.joinValues(e),received:n.parsedType,code:Yo.invalid_type}),er}if(this._cache||(this._cache=new Set(Uo.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const e=Uo.objectValues(t);return Ko(n,{received:n.data,code:Yo.invalid_enum_value,options:e}),er}return nr(e.data)}get enum(){return this._def.values}}ca.create=(e,t)=>new ca({values:e,typeName:wa.ZodNativeEnum,...cr(t)});class ua extends ur{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==qo.promise&&!1===t.common.async)return Ko(t,{code:Yo.invalid_type,expected:qo.promise,received:t.parsedType}),er;const n=t.parsedType===qo.promise?t.data:Promise.resolve(t.data);return nr(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ua.create=(e,t)=>new ua({type:e,typeName:wa.ZodPromise,...cr(t)});class pa extends ur{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===wa.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=this._def.effect||null,o={addIssue:e=>{Ko(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===i.type){const e=i.transform(n.data,o);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return er;const i=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===i.status?er:"dirty"===i.status||"dirty"===t.value?tr(i.value):i});{if("aborted"===t.value)return er;const i=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===i.status?er:"dirty"===i.status||"dirty"===t.value?tr(i.value):i}}if("refinement"===i.type){const e=e=>{const t=i.refinement(e,o);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===i.status?er:("dirty"===i.status&&t.dirty(),e(i.value),{status:t.value,value:i.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?er:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if("transform"===i.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!rr(e))return er;const r=i.transform(e.value,o);if(r instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:r}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>rr(e)?Promise.resolve(i.transform(e.value,o)).then(e=>({status:t.value,value:e})):er)}Uo.assertNever(i)}}pa.create=(e,t,n)=>new pa({schema:e,typeName:wa.ZodEffects,effect:t,...cr(n)}),pa.createWithPreprocess=(e,t,n)=>new pa({schema:t,effect:{type:"preprocess",transform:e},typeName:wa.ZodEffects,...cr(n)});class ha extends ur{_parse(e){return this._getType(e)===qo.undefined?nr(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ha.create=(e,t)=>new ha({innerType:e,typeName:wa.ZodOptional,...cr(t)});class ma extends ur{_parse(e){return this._getType(e)===qo.null?nr(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ma.create=(e,t)=>new ma({innerType:e,typeName:wa.ZodNullable,...cr(t)});class fa extends ur{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===qo.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}fa.create=(e,t)=>new fa({innerType:e,typeName:wa.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...cr(t)});class ga extends ur{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return ar(i)?i.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new Go(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new Go(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}ga.create=(e,t)=>new ga({innerType:e,typeName:wa.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...cr(t)});class ba extends ur{_parse(e){if(this._getType(e)!==qo.nan){const t=this._getOrReturnCtx(e);return Ko(t,{code:Yo.invalid_type,expected:qo.nan,received:t.parsedType}),er}return{status:"valid",value:e.data}}}ba.create=e=>new ba({typeName:wa.ZodNaN,...cr(e)});class va extends ur{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class ya extends ur{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?er:"dirty"===e.status?(t.dirty(),tr(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?er:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new ya({in:e,out:t,typeName:wa.ZodPipeline})}}class xa extends ur{_parse(e){const t=this._def.innerType._parse(e),n=e=>(rr(e)&&(e.value=Object.freeze(e.value)),e);return ar(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}var wa;xa.create=(e,t)=>new xa({innerType:e,typeName:wa.ZodReadonly,...cr(t)}),Jr.lazycreate,function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(wa||(wa={}));const ka=zr.create,Ca=Rr.create;ba.create,$r.create;const _a=Br.create;Fr.create,Dr.create,Hr.create,Wr.create,Ur.create;const Ia=Zr.create;qr.create,Vr.create;const Sa=Yr.create,Ma=Jr.create;Jr.strictCreate;const Aa=Xr.create,Ta=Qr.create;ta.create,na.create;const Ea=ia.create;oa.create,ra.create;const Pa=aa.create,La=la.create,Na=da.create;ca.create,ua.create,pa.create,ha.create,ma.create,pa.createWithPreprocess;const ja=Ma({x:Ca().min(0).max(100).default(50),y:Ca().min(0).max(100).default(50)}),za=Ma({src:ka(),alt:ka(),srcMobile:ka().optional(),focalPoint:ja.optional(),focalPointMobile:ja.optional()}),Oa=Ma({src:ka(),alt:ka()});Aa([za,Oa]).catch({src:"",alt:""});const Ra=Ma({type:Na(["image","video"]).default("image").catch("image"),src:ka(),alt:ka().catch(""),srcMobile:ka().optional(),focalPoint:ja.optional(),focalPointMobile:ja.optional(),poster:ka().optional(),posterMobile:ka().optional(),showAudioToggle:Aa([_a(),Na(["true","false"]).transform(e=>"true"===e)]).optional().catch(void 0),objectFit:Na(["cover","contain"]).optional()}).catch({type:"image",src:"",alt:""}),$a=Ma({id:ka(),type:Na(["hero-banner-full","reviews-slider","instagram-feed","social-media","fifty-fifty","competitor-table","text-block","icon-block","press-block","testimonial-carousel","icon-row-stacked","icon-row","rotating-text-banner","offer","spacer"]),order:Ca().catch(0),enabled:_a().default(!0).catch(!0),schemaVersion:Ca().optional()}),Ba=(e="Shop Now",t=!0)=>{const n=t?["primary","secondary","accent1","accent2","outline"]:["primary","secondary","accent1","accent2"];return Ma({text:ka().catch(e),url:ka().optional(),variant:Na(n).catch("primary"),backgroundColor:ka().catch("primary").describe('REQUIRED. Brand color token for button background: "primary", "secondary", "accent1", "accent2", or "white". Must contrast with the section backgroundColor.')})},Fa=$a.extend({type:La("hero-banner-full"),schemaVersion:Ca().default(3),content:Ma({preheader:ka().catch(""),headline:ka().catch("Welcome"),subheadline:ka().catch(""),primaryCta:Ba().catch({text:"Shop Now",variant:"primary",backgroundColor:"primary"}),backgroundImage:Ra.optional().describe('Background image or video. Always include with placeholder: { src: "https://placehold.co/1440x680", alt: "Hero background" }'),secondaryMedia:Ra.optional().describe("Optional secondary image/video for split layout image background or vertical-video source."),alignment:Na(["left","center","right"]).catch("center"),layout:Na(["full","contained","contained-round","split","split-image","vertical-video"]).catch("full"),backgroundColor:ka().catch("white").describe('Background color token: "white", "black", "primary", "secondary", "accent1", or "accent2". Visible when layout is "contained", "contained-round", or "split".')})}),Da=Ma({id:ka(),quote:ka().catch(""),author:ka().catch("Customer"),location:ka().catch(""),rating:Ca().min(1).max(5).optional(),title:ka().optional(),avatar:ka().catch(""),image:Ra.optional()}),Ha=Ma({id:ka(),name:ka().catch(""),image:ka().catch(""),url:ka().optional(),quote:ka().optional(),featured:_a().optional(),backgroundImage:Ra.optional()}),Wa=Ma({id:ka(),image:Ra.catch({type:"image",src:"",alt:""}),product:Ma({handle:ka().catch(""),title:ka().catch(""),variant:ka().optional(),variantId:ka().optional(),price:ka().optional(),image:ka().optional()}).optional()}),Ua=$a.extend({type:La("reviews-slider"),schemaVersion:Ca().default(3),content:Ma({headline:ka().catch("What Our Customers Say"),backgroundColor:ka().catch("white").describe('Background color token: "white", "black", "primary", "secondary", "accent1", or "accent2". Prefer "white" unless you have a reason to use another.'),starColor:ka().catch("yellow").describe('Star rating color token. Always use "yellow" for gold stars — universally recognized and converts better than brand-colored stars.'),layout:Na(["text-triple","text-image","text-single","text-press","text-press-image","ugc-slider"]).catch("text-triple"),alignment:Na(["left","center","right"]).catch("center"),reviews:Sa(Da).optional(),quote:ka().optional(),logos:Sa(Ha).optional(),mediaCards:Sa(Wa).optional(),primaryCta:Ba().optional(),visibility:Ma({primaryCta:Aa([ka(),_a()]).optional()}).optional()})}),Za=Ma({id:ka(),src:ka().catch(""),alt:ka().catch(""),url:ka().optional(),mediaType:Na(["image","video"]).optional(),poster:ka().optional(),focalPoint:ja.optional()}),qa=$a.extend({type:La("instagram-feed"),schemaVersion:Ca().default(1),content:Ma({backgroundColor:ka().catch("white").describe('Background color token: "white", "black", "primary", "secondary", "accent1", or "accent2". Prefer "white" unless you have a reason to use another.'),images:Sa(Za).min(4).max(4).catch([{id:"1",src:"",alt:""},{id:"2",src:"",alt:""},{id:"3",src:"",alt:""},{id:"4",src:"",alt:""}]),layout:Na(["default"]).catch("default"),alignment:Na(["left","center","right"]).catch("center")})}),Va=$a.extend({type:La("social-media"),schemaVersion:Ca().default(1),content:Ma({backgroundColor:ka().catch("white").describe('Background color token: "white", "black", "primary", "secondary", "accent1", or "accent2". Prefer "white" unless you have a reason to use another.'),headline:ka().optional(),description:ka().optional(),primaryCta:Ba("Follow Us",!1).optional(),images:Sa(Za).min(4).max(8).catch([{id:"1",src:"",alt:""},{id:"2",src:"",alt:""},{id:"3",src:"",alt:""},{id:"4",src:"",alt:""}]),layout:Na(["horizontal-carousel","two-row","5050-grid","5050-carousel"]).catch("horizontal-carousel"),alignment:Na(["left","center","right"]).catch("left"),visibility:Ma({headline:Aa([ka(),_a()]).optional(),description:Aa([ka(),_a()]).optional(),primaryCta:Aa([ka(),_a()]).optional()}).optional()})}),Ya=$a.extend({type:La("press-block"),schemaVersion:Ca().default(1),content:Ma({backgroundColor:ka().catch("white"),quote:ka().catch(""),logos:Sa(Ha).min(2).max(6).catch([{id:"1",name:"",image:""},{id:"2",name:"",image:""}]),layout:Na(["default"]).catch("default"),alignment:Na(["left","center","right"]).catch("center")})}),Ga=Ma({id:ka(),quote:ka().catch(""),author:ka().catch(""),location:ka().catch(""),avatar:ka().catch(""),image:Ra}),Ja=$a.extend({type:La("testimonial-carousel"),schemaVersion:Ca().default(2),content:Ma({backgroundColor:ka().catch("white"),testimonials:Sa(Ga).min(1).max(5).catch([{id:"1",quote:"",author:"",location:"",avatar:"",image:{type:"image",src:"",alt:""}}]),primaryCta:Ba().optional(),layout:Na(["default"]).catch("default"),alignment:Na(["left","center","right"]).catch("center")})}),Xa=Ma({id:ka(),image:Ra,headline:ka().catch(""),body:ka().catch("")}),Ka=$a.extend({type:La("fifty-fifty"),schemaVersion:Ca().default(4),content:Ma({headline:ka().catch(""),body:ka().catch(""),backgroundColor:ka().catch("white").describe('Background color token: "white", "black", "primary", "secondary", "accent1", or "accent2". Prefer "white" unless you have a reason to use another.'),primaryCta:Ba().optional(),image:Ra,layout:Na(["full","contained","video-contained","video-full-bleed","video-tall","3-column","2-column-contained","2-column-full-bleed","3-column-full-bleed","image-slider-full"]).catch("full"),alignment:Na(["left","center","right"]).catch("right"),visibility:Ma({headline:_a().optional(),body:_a().optional(),primaryCta:_a().optional(),image:_a().optional()}).optional(),imagePosition:Na(["left","right"]).optional(),items:Sa(Xa).optional()})}),Qa=Ma({id:ka(),name:ka().catch(""),hasProduct:_a().catch(!0),hasCompetitor:_a().catch(!1)}),el=$a.extend({type:La("competitor-table"),schemaVersion:Ca().default(1),content:Ma({backgroundColor:ka().catch("white").describe('Background color token: "white", "black", "primary", "secondary", "accent1", or "accent2". Prefer "white" unless you have a reason to use another.'),headline:ka().catch("Why Choose Us"),productName:ka().catch("Us"),competitorName:ka().catch("Them"),features:Sa(Qa).min(3).max(10).catch([{id:"1",name:"Feature 1",hasProduct:!0,hasCompetitor:!1},{id:"2",name:"Feature 2",hasProduct:!0,hasCompetitor:!1},{id:"3",name:"Feature 3",hasProduct:!0,hasCompetitor:!1}]),layout:Na(["default"]).catch("default"),alignment:Na(["left","center","right"]).catch("center")})}),tl=$a.extend({type:La("text-block"),schemaVersion:Ca().default(2),content:Ma({backgroundColor:ka().catch("white").describe('Background color token: "white", "black", "primary", "secondary", "accent1", or "accent2". Prefer "white" unless you have a reason to use another.'),headline:ka().catch(""),body:ka().catch(""),primaryCta:Ba().optional(),backgroundImage:Ra.optional().describe('Background image for text-large-image layout. Always include when layout is "text-large-image": { src: "https://placehold.co/1440x600", alt: "Background" }'),layout:Na(["text-1","text-large","text-large-image"]).catch("text-1"),alignment:Na(["left","center","right"]).catch("center")})}),nl=Ma({id:ka(),icon:ka().catch("check"),title:ka().catch("Feature"),description:ka().optional(),iconColor:ka().optional()}),il=$a.extend({type:La("icon-block"),schemaVersion:Ca().default(2),content:Ma({backgroundColor:ka().catch("white").describe('Background color token: "white", "black", "primary", "secondary", "accent1", or "accent2".'),headline:ka().optional(),subheadline:ka().optional(),items:Sa(nl).min(3).max(6).catch([{id:"1",icon:"check",title:"Feature"},{id:"2",icon:"star",title:"Quality"},{id:"3",icon:"shield",title:"Trusted"}]),layout:Na(["icon-grid","icon-detail","icon-detail-5050","icon-detail-rows","icon-badges"]).catch("icon-grid").describe("Layout: icon-grid (icon row with titles), icon-detail (grid with descriptions), icon-detail-5050 (50/50 split), icon-detail-rows (wide wrapping grid), icon-badges (compact inline badges)."),alignment:Na(["left","center","right"]).catch("left")})}),ol=Ma({id:ka(),icon:ka().catch(""),label:ka().catch(""),iconColor:ka().optional()}),rl=$a.extend({type:La("icon-row-stacked"),schemaVersion:Ca().default(2),content:Ma({backgroundColor:ka().catch("white").describe('Background color token: "white", "black", "primary", "secondary", "accent1", or "accent2". Prefer "white" unless you have a reason to use another.'),headline:ka().catch(""),subheadline:ka().optional(),items:Sa(ol).min(2).max(6).catch([{id:"1",icon:"",label:""},{id:"2",icon:"",label:""}]),layout:Na(["default"]).catch("default"),alignment:Na(["left","center","right"]).catch("center")})}),al=$a.extend({type:La("icon-row"),schemaVersion:Ca().default(2),content:Ma({backgroundColor:ka().catch("white").describe('Background color token: "white", "black", "primary", "secondary", "accent1", or "accent2". Prefer "white" unless you have a reason to use another.'),items:Sa(ol).min(2).max(6).catch([{id:"1",icon:"",label:""},{id:"2",icon:"",label:""}]),layout:Na(["default"]).catch("default"),alignment:Na(["left","center","right"]).catch("center")})}),ll=$a.extend({type:La("rotating-text-banner"),schemaVersion:Ca().default(2),content:Ma({backgroundColor:ka().catch("primary").describe("REQUIRED. Brand color token for section background. Rotating banners look best with a bold brand color."),gradient:_a().catch(!0),text:ka().catch(""),repeatCount:Ca().min(1).max(5).catch(3),size:Na(["small","medium","large"]).catch("small").describe("Banner size: small (compact), medium (standard), or large (prominent)."),layout:Na(["default"]).catch("default"),alignment:Na(["left","center","right"]).catch("center")})}),sl=$a.extend({type:La("offer"),schemaVersion:Ca().default(1),content:Ma({backgroundColor:ka().catch("black").describe('Background color token. Countdown layouts default to "black" for dark overlay on images.'),headline:ka().catch("Limited Time Offer"),body:ka().catch(""),countdownDate:ka().catch("").describe("ISO 8601 date string for countdown target. Empty string means no active countdown."),discountText:ka().catch("30% Off").describe('Large display text for discount amount. Freeform: "30% Off", "BOGO", "Free Shipping", etc.'),backgroundImage:Ra.optional().describe('Full-bleed background image for countdown layouts. Always include: { src: "https://placehold.co/1440x400", alt: "Offer background" }'),image:Ra.catch({type:"image",src:"",alt:""}).describe("Split image for 5050-discount layout."),primaryCta:Ba().optional(),layout:Na(["countdown","countdown-simple","5050-discount","countdown-color","countdown-simple-color","5050-discount-color"]).catch("countdown"),alignment:Na(["left","center","right"]).catch("center"),visibility:Ma({body:Aa([ka(),_a()]).optional(),primaryCta:Aa([ka(),_a()]).optional()}).optional()})}),dl=$a.extend({type:La("spacer"),schemaVersion:Ca().default(1),content:Ma({backgroundColor:ka().catch("white").describe('Background color token: "white", "black", "primary", "secondary", "accent1", or "accent2".'),heightPx:Rr.create({...pl,coerce:!0}).min(16).max(250).catch(64).describe("Spacer height in pixels. Default 64px.")})}),cl=Ma({hiddenSections:Sa(ka()).optional()}),ul=Ta("type",[Fa,Ua,qa,Va,Ka,el,tl,il,Ya,Ja,rl,al,ll,sl,dl]);var pl;Ma({id:ka(),name:ka().catch("Untitled Variant"),description:ka().optional(),sections:Sa(ul).min(1).max(8),domModifications:cl.optional(),metadata:Ma({generatedAt:ka().catch((new Date).toISOString()),experienceId:ka(),targetAudience:ka().optional(),tone:ka().optional(),brandColors:Ma({primary:ka().optional(),secondary:ka().optional(),accent1:ka().optional(),accent2:ka().optional()}).optional(),brandTypography:Ma({fontFamilies:Ma({heading:ka().optional(),body:ka().optional()}),scale:Ma({h1:Ma({fontSize:ka(),fontWeight:Aa([ka(),Ca()]),lineHeight:ka()}).optional(),h2:Ma({fontSize:ka(),fontWeight:Aa([ka(),Ca()]),lineHeight:ka()}).optional(),h3:Ma({fontSize:ka(),fontWeight:Aa([ka(),Ca()]),lineHeight:ka()}).optional(),h4:Ma({fontSize:ka(),fontWeight:Aa([ka(),Ca()]),lineHeight:ka()}).optional(),h5:Ma({fontSize:ka(),fontWeight:Aa([ka(),Ca()]),lineHeight:ka()}).optional(),h6:Ma({fontSize:ka(),fontWeight:Aa([ka(),Ca()]),lineHeight:ka()}).optional(),body:Ma({fontSize:ka(),fontWeight:Aa([ka(),Ca()]),lineHeight:ka()}).optional(),bodyLarge:Ma({fontSize:ka(),fontWeight:Aa([ka(),Ca()]),lineHeight:ka()}).optional(),bodySmall:Ma({fontSize:ka(),fontWeight:Aa([ka(),Ca()]),lineHeight:ka()}).optional()}).optional()}).optional(),edits:Ma({assets:Ea(ka()).optional(),copy:Ea(ka()).optional()}).optional()})});var hl={},ml=Object.defineProperty,fl=Object.getOwnPropertyDescriptor,gl=Object.getOwnPropertyNames,bl=Object.prototype.hasOwnProperty,vl=(e,t)=>{for(var n in t)ml(e,n,{get:t[n],enumerable:!0})},yl=(e,t,n)=>t.has(e)?(()=>{throw TypeError("Cannot add the same private member more than once")})():t instanceof WeakSet?t.add(e):t.set(e,n),xl={};vl(xl,{Decimal:()=>Md,Public:()=>kl,getRuntime:()=>Zl,makeStrictEnum:()=>Rl,objectEnumValues:()=>jl});var wl=(e=>((e,t,n,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of gl(t))!bl.call(e,n)&&undefined!==n&&ml(e,n,{get:()=>t[n],enumerable:!(i=fl(t,n))||i.enumerable});return e})(ml({},"__esModule",{value:!0}),e))(xl),kl={};function Cl(...e){return e=>e}vl(kl,{validator:()=>Cl});var _l,Il=Symbol(),Sl=new WeakMap,Ml=class{constructor(e){e===Il?Sl.set(this,"Prisma.".concat(this._getName())):Sl.set(this,"new Prisma.".concat(this._getNamespace(),".").concat(this._getName(),"()"))}_getName(){return this.constructor.name}toString(){return Sl.get(this)}},Al=class extends Ml{_getNamespace(){return"NullTypes"}},Tl=class extends Al{constructor(){super(...arguments),yl(this,_l)}};_l=new WeakMap,zl(Tl,"DbNull");var El,Pl=class extends Al{constructor(){super(...arguments),yl(this,El)}};El=new WeakMap,zl(Pl,"JsonNull");var Ll,Nl=class extends Al{constructor(){super(...arguments),yl(this,Ll)}};Ll=new WeakMap,zl(Nl,"AnyNull");var jl={classes:{DbNull:Tl,JsonNull:Pl,AnyNull:Nl},instances:{DbNull:new Tl(Il),JsonNull:new Pl(Il),AnyNull:new Nl(Il)}};function zl(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}var Ol=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function Rl(e){return new Proxy(e,{get(e,t){if(t in e)return e[t];if(!Ol.has(t))throw new TypeError("Invalid enum value: ".concat(String(t)))}})}var $l=()=>{var e,t;return"node"===(null==(t=null==(e=globalThis.process)?void 0:e.release)?void 0:t.name)},Bl=()=>{var e,t;return!!globalThis.Bun||!(null==(t=null==(e=globalThis.process)?void 0:e.versions)||!t.bun)},Fl=()=>!!globalThis.Deno,Dl=()=>"object"==typeof globalThis.Netlify,Hl=()=>"object"==typeof globalThis.EdgeRuntime,Wl=()=>{var e;return"Cloudflare-Workers"===(null==(e=globalThis.navigator)?void 0:e.userAgent)},Ul={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function Zl(){let e=function(){var e;return null!=(e=[[Dl,"netlify"],[Hl,"edge-light"],[Wl,"workerd"],[Fl,"deno"],[Bl,"bun"],[$l,"node"]].flatMap(e=>e[0]()?[e[1]]:[]).at(0))?e:""}();return{id:e,prettyName:Ul[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}var ql,Vl,Yl=9e15,Gl=1e9,Jl="0123456789abcdef",Xl="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Kl="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Ql={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Yl,maxE:Yl,crypto:!1},es=!0,ts="[DecimalError] ",ns=ts+"Invalid argument: ",is=ts+"Precision limit exceeded",os=ts+"crypto unavailable",rs="[object Decimal]",as=Math.floor,ls=Math.pow,ss=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,ds=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,cs=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,us=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ps=1e7,hs=Xl.length-1,ms=Kl.length-1,fs={toStringTag:rs};function gs(e){var t,n,i,o=e.length-1,r="",a=e[0];if(o>0){for(r+=a,t=1;t<o;t++)(n=7-(i=e[t]+"").length)&&(r+=Ms(n)),r+=i;(n=7-(i=(a=e[t])+"").length)&&(r+=Ms(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return r+a}function bs(e,t,n){if(e!==~~e||e<t||e>n)throw Error(ns+e)}function vs(e,t,n,i){var o,r,a,l;for(r=e[0];r>=10;r/=10)--t;return--t<0?(t+=7,o=0):(o=Math.ceil((t+1)/7),t%=7),r=ls(10,7-t),l=e[o]%r|0,null==i?t<3?(0==t?l=l/100|0:1==t&&(l=l/10|0),a=n<4&&99999==l||n>3&&49999==l||5e4==l||0==l):a=(n<4&&l+1==r||n>3&&l+1==r/2)&&(e[o+1]/r/100|0)==ls(10,t-2)-1||(l==r/2||0==l)&&!(e[o+1]/r/100|0):t<4?(0==t?l=l/1e3|0:1==t?l=l/100|0:2==t&&(l=l/10|0),a=(i||n<4)&&9999==l||!i&&n>3&&4999==l):a=((i||n<4)&&l+1==r||!i&&n>3&&l+1==r/2)&&(e[o+1]/r/1e3|0)==ls(10,t-3)-1,a}function ys(e,t,n){for(var i,o,r=[0],a=0,l=e.length;a<l;){for(o=r.length;o--;)r[o]*=t;for(r[0]+=Jl.indexOf(e.charAt(a++)),i=0;i<r.length;i++)r[i]>n-1&&(void 0===r[i+1]&&(r[i+1]=0),r[i+1]+=r[i]/n|0,r[i]%=n)}return r.reverse()}fs.absoluteValue=fs.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),ws(e)},fs.ceil=function(){return ws(new this.constructor(this),this.e+1,2)},fs.clampedTo=fs.clamp=function(e,t){var n=this,i=n.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(ns+t);return n.cmp(e)<0?e:n.cmp(t)>0?t:new i(n)},fs.comparedTo=fs.cmp=function(e){var t,n,i,o,r=this,a=r.d,l=(e=new r.constructor(e)).d,s=r.s,d=e.s;if(!a||!l)return s&&d?s!==d?s:a===l?0:!a^s<0?1:-1:NaN;if(!a[0]||!l[0])return a[0]?s:l[0]?-d:0;if(s!==d)return s;if(r.e!==e.e)return r.e>e.e^s<0?1:-1;for(t=0,n=(i=a.length)<(o=l.length)?i:o;t<n;++t)if(a[t]!==l[t])return a[t]>l[t]^s<0?1:-1;return i===o?0:i>o^s<0?1:-1},fs.cosine=fs.cos=function(){var e,t,n=this,i=n.constructor;return n.d?n.d[0]?(e=i.precision,t=i.rounding,i.precision=e+Math.max(n.e,n.sd())+7,i.rounding=1,n=function(e,t){var n,i,o;if(t.isZero())return t;(i=t.d.length)<32?o=(1/Os(4,n=Math.ceil(i/3))).toString():(n=16,o="2.3283064365386962890625e-10"),e.precision+=n,t=zs(e,1,t.times(o),new e(1));for(var r=n;r--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=n,t}(i,Rs(i,n)),i.precision=e,i.rounding=t,ws(2==Vl||3==Vl?n.neg():n,e,t,!0)):new i(1):new i(NaN)},fs.cubeRoot=fs.cbrt=function(){var e,t,n,i,o,r,a,l,s,d,c=this,u=c.constructor;if(!c.isFinite()||c.isZero())return new u(c);for(es=!1,(r=c.s*ls(c.s*c,1/3))&&Math.abs(r)!=1/0?i=new u(r.toString()):(n=gs(c.d),(r=((e=c.e)-n.length+1)%3)&&(n+=1==r||-2==r?"0":"00"),r=ls(n,1/3),e=as((e+1)/3)-(e%3==(e<0?-1:2)),(i=new u(n=r==1/0?"5e"+e:(n=r.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=c.s),a=(e=u.precision)+3;;)if(d=(s=(l=i).times(l).times(l)).plus(c),i=xs(d.plus(c).times(l),d.plus(s),a+2,1),gs(l.d).slice(0,a)===(n=gs(i.d)).slice(0,a)){if("9999"!=(n=n.slice(a-3,a+1))&&(o||"4999"!=n)){(!+n||!+n.slice(1)&&"5"==n.charAt(0))&&(ws(i,e+1,1),t=!i.times(i).times(i).eq(c));break}if(!o&&(ws(l,e+1,0),l.times(l).times(l).eq(c))){i=l;break}a+=4,o=1}return es=!0,ws(i,e,u.rounding,t)},fs.decimalPlaces=fs.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=7*((e=t.length-1)-as(this.e/7)),e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},fs.dividedBy=fs.div=function(e){return xs(this,new this.constructor(e))},fs.dividedToIntegerBy=fs.divToInt=function(e){var t=this.constructor;return ws(xs(this,new t(e),0,1,1),t.precision,t.rounding)},fs.equals=fs.eq=function(e){return 0===this.cmp(e)},fs.floor=function(){return ws(new this.constructor(this),this.e+1,3)},fs.greaterThan=fs.gt=function(e){return this.cmp(e)>0},fs.greaterThanOrEqualTo=fs.gte=function(e){var t=this.cmp(e);return 1==t||0===t},fs.hyperbolicCosine=fs.cosh=function(){var e,t,n,i,o,r=this,a=r.constructor,l=new a(1);if(!r.isFinite())return new a(r.s?1/0:NaN);if(r.isZero())return l;n=a.precision,i=a.rounding,a.precision=n+Math.max(r.e,r.sd())+4,a.rounding=1,(o=r.d.length)<32?t=(1/Os(4,e=Math.ceil(o/3))).toString():(e=16,t="2.3283064365386962890625e-10"),r=zs(a,1,r.times(t),new a(1),!0);for(var s,d=e,c=new a(8);d--;)s=r.times(r),r=l.minus(s.times(c.minus(s.times(c))));return ws(r,a.precision=n,a.rounding=i,!0)},fs.hyperbolicSine=fs.sinh=function(){var e,t,n,i,o=this,r=o.constructor;if(!o.isFinite()||o.isZero())return new r(o);if(t=r.precision,n=r.rounding,r.precision=t+Math.max(o.e,o.sd())+4,r.rounding=1,(i=o.d.length)<3)o=zs(r,2,o,o,!0);else{e=(e=1.4*Math.sqrt(i))>16?16:0|e,o=zs(r,2,o=o.times(1/Os(5,e)),o,!0);for(var a,l=new r(5),s=new r(16),d=new r(20);e--;)a=o.times(o),o=o.times(l.plus(a.times(s.times(a).plus(d))))}return r.precision=t,r.rounding=n,ws(o,t,n,!0)},fs.hyperbolicTangent=fs.tanh=function(){var e,t,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+7,i.rounding=1,xs(n.sinh(),n.cosh(),i.precision=e,i.rounding=t)):new i(n.s)},fs.inverseCosine=fs.acos=function(){var e=this,t=e.constructor,n=e.abs().cmp(1),i=t.precision,o=t.rounding;return-1!==n?0===n?e.isNeg()?Is(t,i,o):new t(0):new t(NaN):e.isZero()?Is(t,i+4,o).times(.5):(t.precision=i+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=i,t.rounding=o,e.times(2))},fs.inverseHyperbolicCosine=fs.acosh=function(){var e,t,n=this,i=n.constructor;return n.lte(1)?new i(n.eq(1)?0:NaN):n.isFinite()?(e=i.precision,t=i.rounding,i.precision=e+Math.max(Math.abs(n.e),n.sd())+4,i.rounding=1,es=!1,n=n.times(n).minus(1).sqrt().plus(n),es=!0,i.precision=e,i.rounding=t,n.ln()):new i(n)},fs.inverseHyperbolicSine=fs.asinh=function(){var e,t,n=this,i=n.constructor;return!n.isFinite()||n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,i.rounding=1,es=!1,n=n.times(n).plus(1).sqrt().plus(n),es=!0,i.precision=e,i.rounding=t,n.ln())},fs.inverseHyperbolicTangent=fs.atanh=function(){var e,t,n,i,o=this,r=o.constructor;return o.isFinite()?o.e>=0?new r(o.abs().eq(1)?o.s/0:o.isZero()?o:NaN):(e=r.precision,t=r.rounding,i=o.sd(),Math.max(i,e)<2*-o.e-1?ws(new r(o),e,t,!0):(r.precision=n=i-o.e,o=xs(o.plus(1),new r(1).minus(o),n+e,1),r.precision=e+4,r.rounding=1,o=o.ln(),r.precision=e,r.rounding=t,o.times(.5))):new r(NaN)},fs.inverseSine=fs.asin=function(){var e,t,n,i,o=this,r=o.constructor;return o.isZero()?new r(o):(t=o.abs().cmp(1),n=r.precision,i=r.rounding,-1!==t?0===t?((e=Is(r,n+4,i).times(.5)).s=o.s,e):new r(NaN):(r.precision=n+6,r.rounding=1,o=o.div(new r(1).minus(o.times(o)).sqrt().plus(1)).atan(),r.precision=n,r.rounding=i,o.times(2)))},fs.inverseTangent=fs.atan=function(){var e,t,n,i,o,r,a,l,s,d=this,c=d.constructor,u=c.precision,p=c.rounding;if(d.isFinite()){if(d.isZero())return new c(d);if(d.abs().eq(1)&&u+4<=ms)return(a=Is(c,u+4,p).times(.25)).s=d.s,a}else{if(!d.s)return new c(NaN);if(u+4<=ms)return(a=Is(c,u+4,p).times(.5)).s=d.s,a}for(c.precision=l=u+10,c.rounding=1,e=n=Math.min(28,l/7+2|0);e;--e)d=d.div(d.times(d).plus(1).sqrt().plus(1));for(es=!1,t=Math.ceil(l/7),i=1,s=d.times(d),a=new c(d),o=d;-1!==e;)if(o=o.times(s),r=a.minus(o.div(i+=2)),o=o.times(s),void 0!==(a=r.plus(o.div(i+=2))).d[t])for(e=t;a.d[e]===r.d[e]&&e--;);return n&&(a=a.times(2<<n-1)),es=!0,ws(a,c.precision=u,c.rounding=p,!0)},fs.isFinite=function(){return!!this.d},fs.isInteger=fs.isInt=function(){return!!this.d&&as(this.e/7)>this.d.length-2},fs.isNaN=function(){return!this.s},fs.isNegative=fs.isNeg=function(){return this.s<0},fs.isPositive=fs.isPos=function(){return this.s>0},fs.isZero=function(){return!!this.d&&0===this.d[0]},fs.lessThan=fs.lt=function(e){return this.cmp(e)<0},fs.lessThanOrEqualTo=fs.lte=function(e){return this.cmp(e)<1},fs.logarithm=fs.log=function(e){var t,n,i,o,r,a,l,s,d=this,c=d.constructor,u=c.precision,p=c.rounding;if(null==e)e=new c(10),t=!0;else{if(n=(e=new c(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new c(NaN);t=e.eq(10)}if(n=d.d,d.s<0||!n||!n[0]||d.eq(1))return new c(n&&!n[0]?-1/0:1!=d.s?NaN:n?0:1/0);if(t)if(n.length>1)r=!0;else{for(o=n[0];o%10==0;)o/=10;r=1!==o}if(es=!1,a=Ls(d,l=u+5),i=t?_s(c,l+10):Ls(e,l),vs((s=xs(a,i,l,1)).d,o=u,p))do{if(a=Ls(d,l+=10),i=t?_s(c,l+10):Ls(e,l),s=xs(a,i,l,1),!r){+gs(s.d).slice(o+1,o+15)+1==1e14&&(s=ws(s,u+1,0));break}}while(vs(s.d,o+=10,p));return es=!0,ws(s,u,p)},fs.minus=fs.sub=function(e){var t,n,i,o,r,a,l,s,d,c,u,p,h=this,m=h.constructor;if(e=new m(e),!h.d||!e.d)return h.s&&e.s?h.d?e.s=-e.s:e=new m(e.d||h.s!==e.s?h:NaN):e=new m(NaN),e;if(h.s!=e.s)return e.s=-e.s,h.plus(e);if(d=h.d,p=e.d,l=m.precision,s=m.rounding,!d[0]||!p[0]){if(p[0])e.s=-e.s;else{if(!d[0])return new m(3===s?-0:0);e=new m(h)}return es?ws(e,l,s):e}if(n=as(e.e/7),c=as(h.e/7),d=d.slice(),r=c-n){for((u=r<0)?(t=d,r=-r,a=p.length):(t=p,n=c,a=d.length),r>(i=Math.max(Math.ceil(l/7),a)+2)&&(r=i,t.length=1),t.reverse(),i=r;i--;)t.push(0);t.reverse()}else{for((u=(i=d.length)<(a=p.length))&&(a=i),i=0;i<a;i++)if(d[i]!=p[i]){u=d[i]<p[i];break}r=0}for(u&&(t=d,d=p,p=t,e.s=-e.s),a=d.length,i=p.length-a;i>0;--i)d[a++]=0;for(i=p.length;i>r;){if(d[--i]<p[i]){for(o=i;o&&0===d[--o];)d[o]=ps-1;--d[o],d[i]+=ps}d[i]-=p[i]}for(;0===d[--a];)d.pop();for(;0===d[0];d.shift())--n;return d[0]?(e.d=d,e.e=Cs(d,n),es?ws(e,l,s):e):new m(3===s?-0:0)},fs.modulo=fs.mod=function(e){var t,n=this,i=n.constructor;return e=new i(e),!n.d||!e.s||e.d&&!e.d[0]?new i(NaN):!e.d||n.d&&!n.d[0]?ws(new i(n),i.precision,i.rounding):(es=!1,9==i.modulo?(t=xs(n,e.abs(),0,3,1)).s*=e.s:t=xs(n,e,0,i.modulo,1),t=t.times(e),es=!0,n.minus(t))},fs.naturalExponential=fs.exp=function(){return Ps(this)},fs.naturalLogarithm=fs.ln=function(){return Ls(this)},fs.negated=fs.neg=function(){var e=new this.constructor(this);return e.s=-e.s,ws(e)},fs.plus=fs.add=function(e){var t,n,i,o,r,a,l,s,d,c,u=this,p=u.constructor;if(e=new p(e),!u.d||!e.d)return u.s&&e.s?u.d||(e=new p(e.d||u.s===e.s?u:NaN)):e=new p(NaN),e;if(u.s!=e.s)return e.s=-e.s,u.minus(e);if(d=u.d,c=e.d,l=p.precision,s=p.rounding,!d[0]||!c[0])return c[0]||(e=new p(u)),es?ws(e,l,s):e;if(r=as(u.e/7),i=as(e.e/7),d=d.slice(),o=r-i){for(o<0?(n=d,o=-o,a=c.length):(n=c,i=r,a=d.length),o>(a=(r=Math.ceil(l/7))>a?r+1:a+1)&&(o=a,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((a=d.length)-(o=c.length)<0&&(o=a,n=c,c=d,d=n),t=0;o;)t=(d[--o]=d[o]+c[o]+t)/ps|0,d[o]%=ps;for(t&&(d.unshift(t),++i),a=d.length;0==d[--a];)d.pop();return e.d=d,e.e=Cs(d,i),es?ws(e,l,s):e},fs.precision=fs.sd=function(e){var t,n=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(ns+e);return n.d?(t=Ss(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},fs.round=function(){var e=this,t=e.constructor;return ws(new t(e),e.e+1,t.rounding)},fs.sine=fs.sin=function(){var e,t,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+Math.max(n.e,n.sd())+7,i.rounding=1,n=function(e,t){var n,i=t.d.length;if(i<3)return t.isZero()?t:zs(e,2,t,t);n=(n=1.4*Math.sqrt(i))>16?16:0|n,t=zs(e,2,t=t.times(1/Os(5,n)),t);for(var o,r=new e(5),a=new e(16),l=new e(20);n--;)o=t.times(t),t=t.times(r.plus(o.times(a.times(o).minus(l))));return t}(i,Rs(i,n)),i.precision=e,i.rounding=t,ws(Vl>2?n.neg():n,e,t,!0)):new i(NaN)},fs.squareRoot=fs.sqrt=function(){var e,t,n,i,o,r,a=this,l=a.d,s=a.e,d=a.s,c=a.constructor;if(1!==d||!l||!l[0])return new c(!d||d<0&&(!l||l[0])?NaN:l?a:1/0);for(es=!1,0==(d=Math.sqrt(+a))||d==1/0?(((t=gs(l)).length+s)%2==0&&(t+="0"),d=Math.sqrt(t),s=as((s+1)/2)-(s<0||s%2),i=new c(t=d==1/0?"5e"+s:(t=d.toExponential()).slice(0,t.indexOf("e")+1)+s)):i=new c(d.toString()),n=(s=c.precision)+3;;)if(i=(r=i).plus(xs(a,r,n+2,1)).times(.5),gs(r.d).slice(0,n)===(t=gs(i.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(o||"4999"!=t)){(!+t||!+t.slice(1)&&"5"==t.charAt(0))&&(ws(i,s+1,1),e=!i.times(i).eq(a));break}if(!o&&(ws(r,s+1,0),r.times(r).eq(a))){i=r;break}n+=4,o=1}return es=!0,ws(i,s,c.rounding,e)},fs.tangent=fs.tan=function(){var e,t,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+10,i.rounding=1,(n=n.sin()).s=1,n=xs(n,new i(1).minus(n.times(n)).sqrt(),e+10,0),i.precision=e,i.rounding=t,ws(2==Vl||4==Vl?n.neg():n,e,t,!0)):new i(NaN)},fs.times=fs.mul=function(e){var t,n,i,o,r,a,l,s,d,c=this,u=c.constructor,p=c.d,h=(e=new u(e)).d;if(e.s*=c.s,!(p&&p[0]&&h&&h[0]))return new u(!e.s||p&&!p[0]&&!h||h&&!h[0]&&!p?NaN:p&&h?0*e.s:e.s/0);for(n=as(c.e/7)+as(e.e/7),(s=p.length)<(d=h.length)&&(r=p,p=h,h=r,a=s,s=d,d=a),r=[],i=a=s+d;i--;)r.push(0);for(i=d;--i>=0;){for(t=0,o=s+i;o>i;)l=r[o]+h[i]*p[o-i-1]+t,r[o--]=l%ps|0,t=l/ps|0;r[o]=(r[o]+t)%ps|0}for(;!r[--a];)r.pop();return t?++n:r.shift(),e.d=r,e.e=Cs(r,n),es?ws(e,u.precision,u.rounding):e},fs.toBinary=function(e,t){return $s(this,2,e,t)},fs.toDecimalPlaces=fs.toDP=function(e,t){var n=this,i=n.constructor;return n=new i(n),void 0===e?n:(bs(e,0,Gl),void 0===t?t=i.rounding:bs(t,0,8),ws(n,e+n.e+1,t))},fs.toExponential=function(e,t){var n,i=this,o=i.constructor;return void 0===e?n=ks(i,!0):(bs(e,0,Gl),void 0===t?t=o.rounding:bs(t,0,8),n=ks(i=ws(new o(i),e+1,t),!0,e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},fs.toFixed=function(e,t){var n,i,o=this,r=o.constructor;return void 0===e?n=ks(o):(bs(e,0,Gl),void 0===t?t=r.rounding:bs(t,0,8),n=ks(i=ws(new r(o),e+o.e+1,t),!1,e+i.e+1)),o.isNeg()&&!o.isZero()?"-"+n:n},fs.toFraction=function(e){var t,n,i,o,r,a,l,s,d,c,u,p,h=this,m=h.d,f=h.constructor;if(!m)return new f(h);if(d=n=new f(1),i=s=new f(0),a=(r=(t=new f(i)).e=Ss(m)-h.e-1)%7,t.d[0]=ls(10,a<0?7+a:a),null==e)e=r>0?t:d;else{if(!(l=new f(e)).isInt()||l.lt(d))throw Error(ns+l);e=l.gt(t)?r>0?t:d:l}for(es=!1,l=new f(gs(m)),c=f.precision,f.precision=r=7*m.length*2;u=xs(l,t,0,1,1),1!=(o=n.plus(u.times(i))).cmp(e);)n=i,i=o,o=d,d=s.plus(u.times(o)),s=o,o=t,t=l.minus(u.times(o)),l=o;return o=xs(e.minus(n),i,0,1,1),s=s.plus(o.times(d)),n=n.plus(o.times(i)),s.s=d.s=h.s,p=xs(d,i,r,1).minus(h).abs().cmp(xs(s,n,r,1).minus(h).abs())<1?[d,i]:[s,n],f.precision=c,es=!0,p},fs.toHexadecimal=fs.toHex=function(e,t){return $s(this,16,e,t)},fs.toNearest=function(e,t){var n=this,i=n.constructor;if(n=new i(n),null==e){if(!n.d)return n;e=new i(1),t=i.rounding}else{if(e=new i(e),void 0===t?t=i.rounding:bs(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(es=!1,n=xs(n,e,0,t,1).times(e),es=!0,ws(n)):(e.s=n.s,n=e),n},fs.toNumber=function(){return+this},fs.toOctal=function(e,t){return $s(this,8,e,t)},fs.toPower=fs.pow=function(e){var t,n,i,o,r,a,l=this,s=l.constructor,d=+(e=new s(e));if(!(l.d&&e.d&&l.d[0]&&e.d[0]))return new s(ls(+l,d));if((l=new s(l)).eq(1))return l;if(i=s.precision,r=s.rounding,e.eq(1))return ws(l,i,r);if((t=as(e.e/7))>=e.d.length-1&&(n=d<0?-d:d)<=9007199254740991)return o=As(s,l,n,i),e.s<0?new s(1).div(o):ws(o,i,r);if((a=l.s)<0){if(t<e.d.length-1)return new s(NaN);if(!(1&e.d[t])&&(a=1),0==l.e&&1==l.d[0]&&1==l.d.length)return l.s=a,l}return(t=0!=(n=ls(+l,d))&&isFinite(n)?new s(n+"").e:as(d*(Math.log("0."+gs(l.d))/Math.LN10+l.e+1)))>s.maxE+1||t<s.minE-1?new s(t>0?a/0:0):(es=!1,s.rounding=l.s=1,n=Math.min(12,(t+"").length),(o=Ps(e.times(Ls(l,i+n)),i)).d&&vs((o=ws(o,i+5,1)).d,i,r)&&(t=i+10,+gs((o=ws(Ps(e.times(Ls(l,t+n)),t),t+5,1)).d).slice(i+1,i+15)+1==1e14&&(o=ws(o,i+1,0))),o.s=a,es=!0,s.rounding=r,ws(o,i,r))},fs.toPrecision=function(e,t){var n,i=this,o=i.constructor;return void 0===e?n=ks(i,i.e<=o.toExpNeg||i.e>=o.toExpPos):(bs(e,1,Gl),void 0===t?t=o.rounding:bs(t,0,8),n=ks(i=ws(new o(i),e,t),e<=i.e||i.e<=o.toExpNeg,e)),i.isNeg()&&!i.isZero()?"-"+n:n},fs.toSignificantDigits=fs.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(bs(e,1,Gl),void 0===t?t=n.rounding:bs(t,0,8)),ws(new n(this),e,t)},fs.toString=function(){var e=this,t=e.constructor,n=ks(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n},fs.truncated=fs.trunc=function(){return ws(new this.constructor(this),this.e+1,1)},fs.valueOf=fs.toJSON=function(){var e=this,t=e.constructor,n=ks(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};var xs=function(){function e(e,t,n){var i,o=0,r=e.length;for(e=e.slice();r--;)i=e[r]*t+o,e[r]=i%n|0,o=i/n|0;return o&&e.unshift(o),e}function t(e,t,n,i){var o,r;if(n!=i)r=n>i?1:-1;else for(o=r=0;o<n;o++)if(e[o]!=t[o]){r=e[o]>t[o]?1:-1;break}return r}function n(e,t,n,i){for(var o=0;n--;)e[n]-=o,o=e[n]<t[n]?1:0,e[n]=o*i+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(i,o,r,a,l,s){var d,c,u,p,h,m,f,g,b,v,y,x,w,k,C,_,I,S,M,A,T=i.constructor,E=i.s==o.s?1:-1,P=i.d,L=o.d;if(!(P&&P[0]&&L&&L[0]))return new T(i.s&&o.s&&(P?!L||P[0]!=L[0]:L)?P&&0==P[0]||!L?0*E:E/0:NaN);for(s?(h=1,c=i.e-o.e):(s=ps,h=7,c=as(i.e/h)-as(o.e/h)),M=L.length,I=P.length,v=(b=new T(E)).d=[],u=0;L[u]==(P[u]||0);u++);if(L[u]>(P[u]||0)&&c--,null==r?(k=r=T.precision,a=T.rounding):k=l?r+(i.e-o.e)+1:r,k<0)v.push(1),m=!0;else{if(k=k/h+2|0,u=0,1==M){for(p=0,L=L[0],k++;(u<I||p)&&k--;u++)C=p*s+(P[u]||0),v[u]=C/L|0,p=C%L|0;m=p||u<I}else{for((p=s/(L[0]+1)|0)>1&&(L=e(L,p,s),P=e(P,p,s),M=L.length,I=P.length),_=M,x=(y=P.slice(0,M)).length;x<M;)y[x++]=0;(A=L.slice()).unshift(0),S=L[0],L[1]>=s/2&&++S;do{p=0,(d=t(L,y,M,x))<0?(w=y[0],M!=x&&(w=w*s+(y[1]||0)),(p=w/S|0)>1?(p>=s&&(p=s-1),1==(d=t(f=e(L,p,s),y,g=f.length,x=y.length))&&(p--,n(f,M<g?A:L,g,s))):(0==p&&(d=p=1),f=L.slice()),(g=f.length)<x&&f.unshift(0),n(y,f,x,s),-1==d&&(d=t(L,y,M,x=y.length))<1&&(p++,n(y,M<x?A:L,x,s)),x=y.length):0===d&&(p++,y=[0]),v[u++]=p,d&&y[0]?y[x++]=P[_]||0:(y=[P[_]],x=1)}while((_++<I||void 0!==y[0])&&k--);m=void 0!==y[0]}v[0]||v.shift()}if(1==h)b.e=c,ql=m;else{for(u=1,p=v[0];p>=10;p/=10)u++;b.e=u+c*h-1,ws(b,l?r+b.e+1:r,a,m)}return b}}();function ws(e,t,n,i){var o,r,a,l,s,d,c,u,p,h=e.constructor;e:if(null!=t){if(!(u=e.d))return e;for(o=1,l=u[0];l>=10;l/=10)o++;if((r=t-o)<0)r+=7,a=t,s=(c=u[p=0])/ls(10,o-a-1)%10|0;else if((p=Math.ceil((r+1)/7))>=(l=u.length)){if(!i)break e;for(;l++<=p;)u.push(0);c=s=0,o=1,a=(r%=7)-7+1}else{for(c=l=u[p],o=1;l>=10;l/=10)o++;s=(a=(r%=7)-7+o)<0?0:c/ls(10,o-a-1)%10|0}if(i=i||t<0||void 0!==u[p+1]||(a<0?c:c%ls(10,o-a-1)),d=n<4?(s||i)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||i||6==n&&(r>0?a>0?c/ls(10,o-a):0:u[p-1])%10&1||n==(e.s<0?8:7)),t<1||!u[0])return u.length=0,d?(t-=e.e+1,u[0]=ls(10,(7-t%7)%7),e.e=-t||0):u[0]=e.e=0,e;if(0==r?(u.length=p,l=1,p--):(u.length=p+1,l=ls(10,7-r),u[p]=a>0?(c/ls(10,o-a)%ls(10,a)|0)*l:0),d)for(;;){if(0==p){for(r=1,a=u[0];a>=10;a/=10)r++;for(a=u[0]+=l,l=1;a>=10;a/=10)l++;r!=l&&(e.e++,u[0]==ps&&(u[0]=1));break}if(u[p]+=l,u[p]!=ps)break;u[p--]=0,l=1}for(r=u.length;0===u[--r];)u.pop()}return es&&(e.e>h.maxE?(e.d=null,e.e=NaN):e.e<h.minE&&(e.e=0,e.d=[0])),e}function ks(e,t,n){if(!e.isFinite())return Ns(e);var i,o=e.e,r=gs(e.d),a=r.length;return t?(n&&(i=n-a)>0?r=r.charAt(0)+"."+r.slice(1)+Ms(i):a>1&&(r=r.charAt(0)+"."+r.slice(1)),r=r+(e.e<0?"e":"e+")+e.e):o<0?(r="0."+Ms(-o-1)+r,n&&(i=n-a)>0&&(r+=Ms(i))):o>=a?(r+=Ms(o+1-a),n&&(i=n-o-1)>0&&(r=r+"."+Ms(i))):((i=o+1)<a&&(r=r.slice(0,i)+"."+r.slice(i)),n&&(i=n-a)>0&&(o+1===a&&(r+="."),r+=Ms(i))),r}function Cs(e,t){var n=e[0];for(t*=7;n>=10;n/=10)t++;return t}function _s(e,t,n){if(t>hs)throw es=!0,n&&(e.precision=n),Error(is);return ws(new e(Xl),t,1,!0)}function Is(e,t,n){if(t>ms)throw Error(is);return ws(new e(Kl),t,n,!0)}function Ss(e){var t=e.length-1,n=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function Ms(e){for(var t="";e--;)t+="0";return t}function As(e,t,n,i){var o,r=new e(1),a=Math.ceil(i/7+4);for(es=!1;;){if(n%2&&Bs((r=r.times(t)).d,a)&&(o=!0),0===(n=as(n/2))){n=r.d.length-1,o&&0===r.d[n]&&++r.d[n];break}Bs((t=t.times(t)).d,a)}return es=!0,r}function Ts(e){return 1&e.d[e.d.length-1]}function Es(e,t,n){for(var i,o,r=new e(t[0]),a=0;++a<t.length;){if(!(o=new e(t[a])).s){r=o;break}((i=r.cmp(o))===n||0===i&&r.s===n)&&(r=o)}return r}function Ps(e,t){var n,i,o,r,a,l,s,d=0,c=0,u=0,p=e.constructor,h=p.rounding,m=p.precision;if(!e.d||!e.d[0]||e.e>17)return new p(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(es=!1,s=m):s=t,l=new p(.03125);e.e>-2;)e=e.times(l),u+=5;for(s+=i=Math.log(ls(2,u))/Math.LN10*2+5|0,n=r=a=new p(1),p.precision=s;;){if(r=ws(r.times(e),s,1),n=n.times(++c),gs((l=a.plus(xs(r,n,s,1))).d).slice(0,s)===gs(a.d).slice(0,s)){for(o=u;o--;)a=ws(a.times(a),s,1);if(null!=t)return p.precision=m,a;if(!(d<3&&vs(a.d,s-i,h,d)))return ws(a,p.precision=m,h,es=!0);p.precision=s+=10,n=r=l=new p(1),c=0,d++}a=l}}function Ls(e,t){var n,i,o,r,a,l,s,d,c,u,p,h=1,m=e,f=m.d,g=m.constructor,b=g.rounding,v=g.precision;if(m.s<0||!f||!f[0]||!m.e&&1==f[0]&&1==f.length)return new g(f&&!f[0]?-1/0:1!=m.s?NaN:f?0:m);if(null==t?(es=!1,c=v):c=t,g.precision=c+=10,i=(n=gs(f)).charAt(0),!(Math.abs(r=m.e)<15e14))return d=_s(g,c+2,v).times(r+""),m=Ls(new g(i+"."+n.slice(1)),c-10).plus(d),g.precision=v,null==t?ws(m,v,b,es=!0):m;for(;i<7&&1!=i||1==i&&n.charAt(1)>3;)i=(n=gs((m=m.times(e)).d)).charAt(0),h++;for(r=m.e,i>1?(m=new g("0."+n),r++):m=new g(i+"."+n.slice(1)),u=m,s=a=m=xs(m.minus(1),m.plus(1),c,1),p=ws(m.times(m),c,1),o=3;;){if(a=ws(a.times(p),c,1),gs((d=s.plus(xs(a,new g(o),c,1))).d).slice(0,c)===gs(s.d).slice(0,c)){if(s=s.times(2),0!==r&&(s=s.plus(_s(g,c+2,v).times(r+""))),s=xs(s,new g(h),c,1),null!=t)return g.precision=v,s;if(!vs(s.d,c-10,b,l))return ws(s,g.precision=v,b,es=!0);g.precision=c+=10,d=a=m=xs(u.minus(1),u.plus(1),c,1),p=ws(m.times(m),c,1),o=l=1}s=d,o+=2}}function Ns(e){return String(e.s*e.s/0)}function js(e,t){var n,i,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(i=t.search(/e/i))>0?(n<0&&(n=i),n+=+t.slice(i+1),t=t.substring(0,i)):n<0&&(n=t.length),i=0;48===t.charCodeAt(i);i++);for(o=t.length;48===t.charCodeAt(o-1);--o);if(t=t.slice(i,o)){if(o-=i,e.e=n=n-i-1,e.d=[],i=(n+1)%7,n<0&&(i+=7),i<o){for(i&&e.d.push(+t.slice(0,i)),o-=7;i<o;)e.d.push(+t.slice(i,i+=7));i=7-(t=t.slice(i)).length}else i-=o;for(;i--;)t+="0";e.d.push(+t),es&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function zs(e,t,n,i,o){var r,a,l,s,d=e.precision,c=Math.ceil(d/7);for(es=!1,s=n.times(n),l=new e(i);;){if(a=xs(l.times(s),new e(t++*t++),d,1),l=o?i.plus(a):i.minus(a),i=xs(a.times(s),new e(t++*t++),d,1),void 0!==(a=l.plus(i)).d[c]){for(r=c;a.d[r]===l.d[r]&&r--;);if(-1==r)break}r=l,l=i,i=a,a=r}return es=!0,a.d.length=c+1,a}function Os(e,t){for(var n=e;--t;)n*=e;return n}function Rs(e,t){var n,i=t.s<0,o=Is(e,e.precision,1),r=o.times(.5);if((t=t.abs()).lte(r))return Vl=i?4:1,t;if((n=t.divToInt(o)).isZero())Vl=i?3:2;else{if((t=t.minus(n.times(o))).lte(r))return Vl=Ts(n)?i?2:3:i?4:1,t;Vl=Ts(n)?i?1:4:i?3:2}return t.minus(o).abs()}function $s(e,t,n,i){var o,r,a,l,s,d,c,u,p,h=e.constructor,m=void 0!==n;if(m?(bs(n,1,Gl),void 0===i?i=h.rounding:bs(i,0,8)):(n=h.precision,i=h.rounding),e.isFinite()){for(m?(o=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):o=t,(a=(c=ks(e)).indexOf("."))>=0&&(c=c.replace(".",""),(p=new h(1)).e=c.length-a,p.d=ys(ks(p),10,o),p.e=p.d.length),r=s=(u=ys(c,10,o)).length;0==u[--s];)u.pop();if(u[0]){if(a<0?r--:((e=new h(e)).d=u,e.e=r,u=(e=xs(e,p,n,i,0,o)).d,r=e.e,d=ql),a=u[n],l=o/2,d=d||void 0!==u[n+1],d=i<4?(void 0!==a||d)&&(0===i||i===(e.s<0?3:2)):a>l||a===l&&(4===i||d||6===i&&1&u[n-1]||i===(e.s<0?8:7)),u.length=n,d)for(;++u[--n]>o-1;)u[n]=0,n||(++r,u.unshift(1));for(s=u.length;!u[s-1];--s);for(a=0,c="";a<s;a++)c+=Jl.charAt(u[a]);if(m){if(s>1)if(16==t||8==t){for(a=16==t?4:3,--s;s%a;s++)c+="0";for(s=(u=ys(c,o,t)).length;!u[s-1];--s);for(a=1,c="1.";a<s;a++)c+=Jl.charAt(u[a])}else c=c.charAt(0)+"."+c.slice(1);c=c+(r<0?"p":"p+")+r}else if(r<0){for(;++r;)c="0"+c;c="0."+c}else if(++r>s)for(r-=s;r--;)c+="0";else r<s&&(c=c.slice(0,r)+"."+c.slice(r))}else c=m?"0p+0":"0";c=(16==t?"0x":2==t?"0b":8==t?"0o":"")+c}else c=Ns(e);return e.s<0?"-"+c:c}function Bs(e,t){if(e.length>t)return e.length=t,!0}function Fs(e){return new this(e).abs()}function Ds(e){return new this(e).acos()}function Hs(e){return new this(e).acosh()}function Ws(e,t){return new this(e).plus(t)}function Us(e){return new this(e).asin()}function Zs(e){return new this(e).asinh()}function qs(e){return new this(e).atan()}function Vs(e){return new this(e).atanh()}function Ys(e,t){e=new this(e),t=new this(t);var n,i=this.precision,o=this.rounding,r=i+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?Is(this,i,o):new this(0)).s=e.s:!e.d||t.isZero()?(n=Is(this,r,1).times(.5)).s=e.s:t.s<0?(this.precision=r,this.rounding=1,n=this.atan(xs(e,t,r,1)),t=Is(this,r,1),this.precision=i,this.rounding=o,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(xs(e,t,r,1)):(n=Is(this,r,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function Gs(e){return new this(e).cbrt()}function Js(e){return ws(e=new this(e),e.e+1,2)}function Xs(e,t,n){return new this(e).clamp(t,n)}function Ks(e){if(!e||"object"!=typeof e)throw Error(ts+"Object expected");var t,n,i,o=!0===e.defaults,r=["precision",1,Gl,"rounding",0,8,"toExpNeg",-Yl,0,"toExpPos",0,Yl,"maxE",0,Yl,"minE",-Yl,0,"modulo",0,9];for(t=0;t<r.length;t+=3)if(n=r[t],o&&(this[n]=Ql[n]),void 0!==(i=e[n])){if(!(as(i)===i&&i>=r[t+1]&&i<=r[t+2]))throw Error(ns+n+": "+i);this[n]=i}if(n="crypto",o&&(this[n]=Ql[n]),void 0!==(i=e[n])){if(!0!==i&&!1!==i&&0!==i&&1!==i)throw Error(ns+n+": "+i);if(i){if(!(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes)))throw Error(os);this[n]=!0}else this[n]=!1}return this}function Qs(e){return new this(e).cos()}function ed(e){return new this(e).cosh()}function td(e,t){return new this(e).div(t)}function nd(e){return new this(e).exp()}function id(e){return ws(e=new this(e),e.e+1,3)}function od(){var e,t,n=new this(0);for(es=!1,e=0;e<arguments.length;)if((t=new this(arguments[e++])).d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return es=!0,new this(1/0);n=t}return es=!0,n.sqrt()}function rd(e){return e instanceof Sd||e&&e.toStringTag===rs||!1}function ad(e){return new this(e).ln()}function ld(e,t){return new this(e).log(t)}function sd(e){return new this(e).log(2)}function dd(e){return new this(e).log(10)}function cd(){return Es(this,arguments,-1)}function ud(){return Es(this,arguments,1)}function pd(e,t){return new this(e).mod(t)}function hd(e,t){return new this(e).mul(t)}function md(e,t){return new this(e).pow(t)}function fd(e){var t,n,i,o,r=0,a=new this(1),l=[];if(void 0===e?e=this.precision:bs(e,1,Gl),i=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(i));r<i;)(o=t[r])>=429e7?t[r]=crypto.getRandomValues(new Uint32Array(1))[0]:l[r++]=o%1e7;else{if(!crypto.randomBytes)throw Error(os);for(t=crypto.randomBytes(i*=4);r<i;)(o=t[r]+(t[r+1]<<8)+(t[r+2]<<16)+((127&t[r+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,r):(l.push(o%1e7),r+=4);r=i/4}else for(;r<i;)l[r++]=1e7*Math.random()|0;for(e%=7,(i=l[--r])&&e&&(o=ls(10,7-e),l[r]=(i/o|0)*o);0===l[r];r--)l.pop();if(r<0)n=0,l=[0];else{for(n=-1;0===l[0];n-=7)l.shift();for(i=1,o=l[0];o>=10;o/=10)i++;i<7&&(n-=7-i)}return a.e=n,a.d=l,a}function gd(e){return ws(e=new this(e),e.e+1,this.rounding)}function bd(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function vd(e){return new this(e).sin()}function yd(e){return new this(e).sinh()}function xd(e){return new this(e).sqrt()}function wd(e,t){return new this(e).sub(t)}function kd(){var e=0,t=arguments,n=new this(t[e]);for(es=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return es=!0,ws(n,this.precision,this.rounding)}function Cd(e){return new this(e).tan()}function _d(e){return new this(e).tanh()}function Id(e){return ws(e=new this(e),e.e+1,1)}fs[Symbol.for("nodejs.util.inspect.custom")]=fs.toString,fs[Symbol.toStringTag]="Decimal";var Sd=fs.constructor=function e(t){var n,i,o;function r(e){var t,n,i,o=this;if(!(o instanceof r))return new r(e);if(o.constructor=r,rd(e))return o.s=e.s,void(es?!e.d||e.e>r.maxE?(o.e=NaN,o.d=null):e.e<r.minE?(o.e=0,o.d=[0]):(o.e=e.e,o.d=e.d.slice()):(o.e=e.e,o.d=e.d?e.d.slice():e.d));if("number"==(i=typeof e)){if(0===e)return o.s=1/e<0?-1:1,o.e=0,void(o.d=[0]);if(e<0?(e=-e,o.s=-1):o.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;return void(es?t>r.maxE?(o.e=NaN,o.d=null):t<r.minE?(o.e=0,o.d=[0]):(o.e=t,o.d=[e]):(o.e=t,o.d=[e]))}return 0*e!=0?(e||(o.s=NaN),o.e=NaN,void(o.d=null)):js(o,e.toString())}if("string"===i)return 45===(n=e.charCodeAt(0))?(e=e.slice(1),o.s=-1):(43===n&&(e=e.slice(1)),o.s=1),us.test(e)?js(o,e):function(e,t){var n,i,o,r,a,l,s,d,c;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),us.test(t))return js(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(ds.test(t))n=16,t=t.toLowerCase();else if(ss.test(t))n=2;else{if(!cs.test(t))throw Error(ns+t);n=8}for((r=t.search(/p/i))>0?(s=+t.slice(r+1),t=t.substring(2,r)):t=t.slice(2),a=(r=t.indexOf("."))>=0,i=e.constructor,a&&(r=(l=(t=t.replace(".","")).length)-r,o=As(i,new i(n),r,2*r)),r=c=(d=ys(t,n,ps)).length-1;0===d[r];--r)d.pop();return r<0?new i(0*e.s):(e.e=Cs(d,c),e.d=d,es=!1,a&&(e=xs(e,o,4*l)),s&&(e=e.times(Math.abs(s)<54?ls(2,s):Sd.pow(2,s))),es=!0,e)}(o,e);if("bigint"===i)return e<0?(e=-e,o.s=-1):o.s=1,js(o,e.toString());throw Error(ns+e)}if(r.prototype=fs,r.ROUND_UP=0,r.ROUND_DOWN=1,r.ROUND_CEIL=2,r.ROUND_FLOOR=3,r.ROUND_HALF_UP=4,r.ROUND_HALF_DOWN=5,r.ROUND_HALF_EVEN=6,r.ROUND_HALF_CEIL=7,r.ROUND_HALF_FLOOR=8,r.EUCLID=9,r.config=r.set=Ks,r.clone=e,r.isDecimal=rd,r.abs=Fs,r.acos=Ds,r.acosh=Hs,r.add=Ws,r.asin=Us,r.asinh=Zs,r.atan=qs,r.atanh=Vs,r.atan2=Ys,r.cbrt=Gs,r.ceil=Js,r.clamp=Xs,r.cos=Qs,r.cosh=ed,r.div=td,r.exp=nd,r.floor=id,r.hypot=od,r.ln=ad,r.log=ld,r.log10=dd,r.log2=sd,r.max=cd,r.min=ud,r.mod=pd,r.mul=hd,r.pow=md,r.random=fd,r.round=gd,r.sign=bd,r.sin=vd,r.sinh=yd,r.sqrt=xd,r.sub=wd,r.sum=kd,r.tan=Cd,r.tanh=_d,r.trunc=Id,void 0===t&&(t={}),t&&!0!==t.defaults)for(o=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<o.length;)t.hasOwnProperty(i=o[n++])||(t[i]=this[i]);return r.config(t),r}(Ql);Xl=new Sd(Xl),Kl=new Sd(Kl);var Md=Sd;!function(e){Object.defineProperty(e,"__esModule",{value:!0});const{Decimal:t,objectEnumValues:n,makeStrictEnum:i,Public:o,getRuntime:r,skip:a}=wl,l={};e.Prisma=l,e.$Enums={},l.prismaVersion={client:"6.19.3",engine:"c2990dca591cba766e3b7ef5d9e8a84796e47ab7"},l.PrismaClientKnownRequestError=()=>{const e=r().prettyName;throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).\nIn case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},l.PrismaClientUnknownRequestError=()=>{const e=r().prettyName;throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).\nIn case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},l.PrismaClientRustPanicError=()=>{const e=r().prettyName;throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).\nIn case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},l.PrismaClientInitializationError=()=>{const e=r().prettyName;throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).\nIn case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},l.PrismaClientValidationError=()=>{const e=r().prettyName;throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).\nIn case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},l.Decimal=t,l.sql=()=>{const e=r().prettyName;throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).\nIn case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},l.empty=()=>{const e=r().prettyName;throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).\nIn case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},l.join=()=>{const e=r().prettyName;throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).\nIn case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},l.raw=()=>{const e=r().prettyName;throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).\nIn case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},l.validator=o.validator,l.getExtensionContext=()=>{const e=r().prettyName;throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).\nIn case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},l.defineExtension=()=>{const e=r().prettyName;throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${e}).\nIn case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`)},l.DbNull=n.instances.DbNull,l.JsonNull=n.instances.JsonNull,l.AnyNull=n.instances.AnyNull,l.NullTypes={DbNull:n.classes.DbNull,JsonNull:n.classes.JsonNull,AnyNull:n.classes.AnyNull},e.Prisma.TransactionIsolationLevel=i({ReadUncommitted:"ReadUncommitted",ReadCommitted:"ReadCommitted",RepeatableRead:"RepeatableRead",Serializable:"Serializable"}),e.Prisma.ShopScalarFieldEnum={id:"id",shopifyDomain:"shopifyDomain",shopifyShopId:"shopifyShopId",name:"name",publicDomain:"publicDomain",logoUrl:"logoUrl",onboardingComplete:"onboardingComplete",isNewModel:"isNewModel",isProspect:"isProspect",prospectClaimedAt:"prospectClaimedAt",userRole:"userRole",companySize:"companySize",primaryAdPlatforms:"primaryAdPlatforms",sdkConnected:"sdkConnected",sdkLastHeartbeat:"sdkLastHeartbeat",sdkVersion:"sdkVersion",storeType:"storeType",buyBoxSelector:"buyBoxSelector",firstExperienceCreated:"firstExperienceCreated",firstExperienceCreatedAt:"firstExperienceCreatedAt",teamBannerDismissed:"teamBannerDismissed",teamBannerDismissedAt:"teamBannerDismissedAt",customRedirectDomain:"customRedirectDomain",customRedirectVerified:"customRedirectVerified",customRedirectVerifiedAt:"customRedirectVerifiedAt",vercelCnameTarget:"vercelCnameTarget",trialStartedAt:"trialStartedAt",trialEndsAt:"trialEndsAt",defaultRevealConfig:"defaultRevealConfig",defaultParallaxConfig:"defaultParallaxConfig",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.UserScalarFieldEnum={id:"id",email:"email",name:"name",emailVerified:"emailVerified",image:"image",profileImageUrl:"profileImageUrl",createdAt:"createdAt",updatedAt:"updatedAt",lastLoginAt:"lastLoginAt"},e.Prisma.ShopUserScalarFieldEnum={id:"id",shopId:"shopId",userId:"userId",role:"role",createdAt:"createdAt"},e.Prisma.SessionScalarFieldEnum={id:"id",shopId:"shopId",shop:"shop",accessToken:"accessToken",scope:"scope",isOnline:"isOnline",expires:"expires",refreshToken:"refreshToken",tokenExpiresAt:"tokenExpiresAt",refreshTokenExpiresAt:"refreshTokenExpiresAt",shopifyAppClientId:"shopifyAppClientId",userId:"userId",firstName:"firstName",lastName:"lastName",email:"email",accountOwner:"accountOwner",locale:"locale",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.TestScalarFieldEnum={id:"id",shopId:"shopId",pageType:"pageType",pageHandle:"pageHandle",campaignName:"campaignName",status:"status",controlConfig:"controlConfig",variants:"variants",trafficSplit:"trafficSplit",brandDesign:"brandDesign",thumbnailUrl:"thumbnailUrl",createdAt:"createdAt",startedAt:"startedAt",endedAt:"endedAt",addedToAdsAt:"addedToAdsAt",archivedAt:"archivedAt",campaignId:"campaignId",createdByUserId:"createdByUserId",updatedByUserId:"updatedByUserId"},e.Prisma.ExperienceScalarFieldEnum={id:"id",shopId:"shopId",name:"name",pageType:"pageType",pageHandle:"pageHandle",status:"status",thumbnailUrl:"thumbnailUrl",loaderPhrase:"loaderPhrase",aiContext:"aiContext",campaignId:"campaignId",playgroundExperienceId:"playgroundExperienceId",aiLog:"aiLog",domModifications:"domModifications",revealConfig:"revealConfig",parallaxConfig:"parallaxConfig",controlPercent:"controlPercent",endedAt:"endedAt",archivedAt:"archivedAt",createdAt:"createdAt",updatedAt:"updatedAt",createdByUserId:"createdByUserId",updatedByUserId:"updatedByUserId"},e.Prisma.ExperimentScalarFieldEnum={id:"id",shopId:"shopId",name:"name",pageType:"pageType",pageHandle:"pageHandle",status:"status",startedAt:"startedAt",endedAt:"endedAt",winnerArmId:"winnerArmId",createdAt:"createdAt",updatedAt:"updatedAt",createdByUserId:"createdByUserId",updatedByUserId:"updatedByUserId"},e.Prisma.ExperimentArmScalarFieldEnum={id:"id",experimentId:"experimentId",experienceId:"experienceId",label:"label",isControl:"isControl",trafficPercent:"trafficPercent",createdAt:"createdAt"},e.Prisma.CampaignScalarFieldEnum={id:"id",shopId:"shopId",name:"name",color:"color",context:"context",imageUrl:"imageUrl",sortOrder:"sortOrder",archivedAt:"archivedAt",playgroundArchetypeId:"playgroundArchetypeId",createdAt:"createdAt",updatedAt:"updatedAt",createdByUserId:"createdByUserId",updatedByUserId:"updatedByUserId"},e.Prisma.SectionInstanceScalarFieldEnum={id:"id",experienceId:"experienceId",order:"order",sectionType:"sectionType",schemaVersion:"schemaVersion",content:"content",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.SavedSectionScalarFieldEnum={id:"id",shopId:"shopId",label:"label",folder:"folder",sectionType:"sectionType",schemaVersion:"schemaVersion",content:"content",thumbnailUrl:"thumbnailUrl",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.SavedTemplateScalarFieldEnum={id:"id",shopId:"shopId",name:"name",folder:"folder",thumbnailUrl:"thumbnailUrl",context:"context",content:"content",sectionTypes:"sectionTypes",schemaVersion:"schemaVersion",createdAt:"createdAt",updatedAt:"updatedAt",createdByUserId:"createdByUserId",updatedByUserId:"updatedByUserId"},e.Prisma.ImpressionScalarFieldEnum={id:"id",shopId:"shopId",impressionId:"impressionId",testId:"testId",experienceId:"experienceId",experimentId:"experimentId",armId:"armId",variant:"variant",pageType:"pageType",pageHandle:"pageHandle",landingUrl:"landingUrl",referrer:"referrer",userAgent:"userAgent",ipAddress:"ipAddress",utmSource:"utmSource",utmMedium:"utmMedium",utmCampaign:"utmCampaign",utmContent:"utmContent",utmTerm:"utmTerm",gclid:"gclid",fbclid:"fbclid",msclkid:"msclkid",ttclid:"ttclid",liFatId:"liFatId",twclid:"twclid",createdAt:"createdAt"},e.Prisma.EventScalarFieldEnum={id:"id",impressionId:"impressionId",eventType:"eventType",url:"url",properties:"properties",createdAt:"createdAt",testId:"testId"},e.Prisma.ConversionScalarFieldEnum={id:"id",impressionId:"impressionId",testId:"testId",experienceId:"experienceId",experimentId:"experimentId",armId:"armId",orderId:"orderId",revenue:"revenue",currency:"currency",daysToConversion:"daysToConversion",createdAt:"createdAt"},e.Prisma.BrandDesignSystemScalarFieldEnum={id:"id",shopId:"shopId",domain:"domain",colors:"colors",typography:"typography",buttons:"buttons",buttonsEditedAt:"buttonsEditedAt",layout:"layout",layoutEditedAt:"layoutEditedAt",spacing:"spacing",grid:"grid",previewImages:"previewImages",extractedAt:"extractedAt",source:"source"},e.Prisma.BrandVoiceScalarFieldEnum={id:"id",shopId:"shopId",approvedAt:"approvedAt",offeringSummary:"offeringSummary",brandArchetype:"brandArchetype",toneVoice:"toneVoice",wordsToUse:"wordsToUse",wordsToAvoid:"wordsToAvoid",defaultAudience:"defaultAudience",customerMindset:"customerMindset",primaryObjection:"primaryObjection",category:"category",priceTier:"priceTier",coreDifferentiator:"coreDifferentiator",topBenefits:"topBenefits",emotionalOutcome:"emotionalOutcome",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.CustomIconScalarFieldEnum={id:"id",shopId:"shopId",url:"url",key:"key",name:"name",context:"context",format:"format",colorable:"colorable",slug:"slug",createdByUserId:"createdByUserId",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.VerificationTokenScalarFieldEnum={identifier:"identifier",token:"token",expires:"expires"},e.Prisma.McpOAuthClientScalarFieldEnum={id:"id",clientId:"clientId",clientName:"clientName",redirectUris:"redirectUris",grantTypes:"grantTypes",tokenEndpointAuthMethod:"tokenEndpointAuthMethod",createdAt:"createdAt"},e.Prisma.McpAuthCodeScalarFieldEnum={id:"id",codeHash:"codeHash",clientId:"clientId",userId:"userId",shopId:"shopId",redirectUri:"redirectUri",scope:"scope",codeChallenge:"codeChallenge",codeChallengeMethod:"codeChallengeMethod",expiresAt:"expiresAt",consumedAt:"consumedAt",createdAt:"createdAt"},e.Prisma.McpAccessTokenScalarFieldEnum={id:"id",accessTokenHash:"accessTokenHash",refreshTokenHash:"refreshTokenHash",clientId:"clientId",userId:"userId",shopId:"shopId",scope:"scope",expiresAt:"expiresAt",refreshTokenExpiresAt:"refreshTokenExpiresAt",revokedAt:"revokedAt",lastUsedAt:"lastUsedAt",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.AssistantConversationScalarFieldEnum={id:"id",shopId:"shopId",userId:"userId",title:"title",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.AssistantMessageScalarFieldEnum={id:"id",conversationId:"conversationId",role:"role",parts:"parts",createdAt:"createdAt"},e.Prisma.MetaConnectionScalarFieldEnum={id:"id",shopId:"shopId",userMetaId:"userMetaId",businessId:"businessId",adAccountId:"adAccountId",accessToken:"accessToken",tokenType:"tokenType",tokenExpiresAt:"tokenExpiresAt",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.CatalogThumbnailScalarFieldEnum={id:"id",kind:"kind",type:"type",brandStyle:"brandStyle",url:"url",width:"width",height:"height",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.CatalogBrandImageScalarFieldEnum={id:"id",brandStyle:"brandStyle",role:"role",idx:"idx",url:"url",prompt:"prompt",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.ShopCatalogThumbnailScalarFieldEnum={id:"id",shopId:"shopId",kind:"kind",type:"type",url:"url",width:"width",height:"height",brandHash:"brandHash",catalogHash:"catalogHash",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.CatalogCategoryScalarFieldEnum={id:"id",kind:"kind",slug:"slug",label:"label",order:"order",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.CatalogListingScalarFieldEnum={id:"id",kind:"kind",slug:"slug",label:"label",description:"description",aiDescription:"aiDescription",aiWhenToUse:"aiWhenToUse",category:"category",source:"source",content:"content",brandStyle:"brandStyle",published:"published",order:"order",createdById:"createdById",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.ShopMonthlyUsageScalarFieldEnum={id:"id",shopId:"shopId",periodStart:"periodStart",periodEnd:"periodEnd",impressionCount:"impressionCount",pausedAt:"pausedAt",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.SubscriptionScalarFieldEnum={id:"id",shopId:"shopId",shopifySubscriptionId:"shopifySubscriptionId",plan:"plan",status:"status",currentPeriodEnd:"currentPeriodEnd",trialDays:"trialDays",isTest:"isTest",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.PlaygroundImageScalarFieldEnum={id:"id",domain:"domain",experienceId:"experienceId",url:"url",createdAt:"createdAt"},e.Prisma.PlaygroundBrandScalarFieldEnum={id:"id",domain:"domain",status:"status",colors:"colors",typography:"typography",buttons:"buttons",layout:"layout",voice:"voice",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.PlaygroundDomainScalarFieldEnum={id:"id",domain:"domain",lastOutcome:"lastOutcome",attempts:"attempts",faviconUrl:"faviconUrl",plan:"plan",heroPick:"heroPick",pinnedProductHandle:"pinnedProductHandle",productHandle:"productHandle",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.PlaygroundExperienceScalarFieldEnum={id:"id",domain:"domain",experienceId:"experienceId",version:"version",tree:"tree",name:"name",angleBrief:"angleBrief",campaignName:"campaignName",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.PlaygroundSettingsScalarFieldEnum={id:"id",generationEnabled:"generationEnabled",demoDomain:"demoDomain",updatedAt:"updatedAt"},e.Prisma.SlackConnectionScalarFieldEnum={id:"id",shopId:"shopId",slackTeamId:"slackTeamId",slackTeamName:"slackTeamName",botTokenEncrypted:"botTokenEncrypted",botUserId:"botUserId",channelId:"channelId",channelName:"channelName",nudgeSlackUserId:"nudgeSlackUserId",activationEnabled:"activationEnabled",proofEnabled:"proofEnabled",healthEnabled:"healthEnabled",digestEnabled:"digestEnabled",lastDigestAt:"lastDigestAt",lastNudgedAt:"lastNudgedAt",connectedByUserId:"connectedByUserId",createdAt:"createdAt",updatedAt:"updatedAt"},e.Prisma.NotificationDeliveryScalarFieldEnum={id:"id",shopId:"shopId",channel:"channel",kind:"kind",dedupeKey:"dedupeKey",sentAt:"sentAt"},e.Prisma.SortOrder={asc:"asc",desc:"desc"},e.Prisma.NullableJsonNullValueInput={DbNull:l.DbNull,JsonNull:l.JsonNull},e.Prisma.JsonNullValueInput={JsonNull:l.JsonNull},e.Prisma.QueryMode={default:"default",insensitive:"insensitive"},e.Prisma.JsonNullValueFilter={DbNull:l.DbNull,JsonNull:l.JsonNull,AnyNull:l.AnyNull},e.Prisma.NullsOrder={first:"first",last:"last"},e.PageType=e.$Enums.PageType={product:"product",collection:"collection",page:"page",home:"home"},e.Prisma.ModelName={Shop:"Shop",User:"User",ShopUser:"ShopUser",Session:"Session",Test:"Test",Experience:"Experience",Experiment:"Experiment",ExperimentArm:"ExperimentArm",Campaign:"Campaign",SectionInstance:"SectionInstance",SavedSection:"SavedSection",SavedTemplate:"SavedTemplate",Impression:"Impression",Event:"Event",Conversion:"Conversion",BrandDesignSystem:"BrandDesignSystem",BrandVoice:"BrandVoice",CustomIcon:"CustomIcon",VerificationToken:"VerificationToken",McpOAuthClient:"McpOAuthClient",McpAuthCode:"McpAuthCode",McpAccessToken:"McpAccessToken",AssistantConversation:"AssistantConversation",AssistantMessage:"AssistantMessage",MetaConnection:"MetaConnection",CatalogThumbnail:"CatalogThumbnail",CatalogBrandImage:"CatalogBrandImage",ShopCatalogThumbnail:"ShopCatalogThumbnail",CatalogCategory:"CatalogCategory",CatalogListing:"CatalogListing",ShopMonthlyUsage:"ShopMonthlyUsage",Subscription:"Subscription",PlaygroundImage:"PlaygroundImage",PlaygroundBrand:"PlaygroundBrand",PlaygroundDomain:"PlaygroundDomain",PlaygroundExperience:"PlaygroundExperience",PlaygroundSettings:"PlaygroundSettings",SlackConnection:"SlackConnection",NotificationDelivery:"NotificationDelivery"},e.PrismaClient=class{constructor(){return new Proxy(this,{get(e,t){let n;const i=r();throw n=i.isEdge?`PrismaClient is not configured to run in ${i.prettyName}. In order to run Prisma Client on edge runtime, either:\n- Use Prisma Accelerate: https://pris.ly/d/accelerate\n- Use Driver Adapters: https://pris.ly/d/driver-adapters\n`:"PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `"+i.prettyName+"`).",n+="\nIf this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report",new Error(n)}})}},Object.assign(e,l)}(hl);var Ad=hl;globalThis.prisma||new Ad.PrismaClient({log:["error"]});const Td=["flex-start","center","flex-end","stretch","baseline"],Ed=Ma({fontSize:ka().optional().catch(void 0),fontWeight:Aa([ka(),Ca()]).optional().catch(void 0),lineHeight:ka().optional().catch(void 0),fontFamily:ka().optional().catch(void 0),color:ka().optional().catch(void 0),letterSpacing:ka().optional().catch(void 0),textAlign:Na(["left","center","right","justify"]).optional().catch(void 0)}),Pd=Ma({marginTop:ka().optional().catch(void 0),marginBottom:ka().optional().catch(void 0),paddingTop:ka().optional().catch(void 0),paddingRight:ka().optional().catch(void 0),paddingBottom:ka().optional().catch(void 0),paddingLeft:ka().optional().catch(void 0)}),Ld=Ma({alignSelf:Na(Td).optional().catch(void 0),alignItems:Na(Td).optional().catch(void 0),justifyContent:Na(["flex-start","center","flex-end","space-between","space-around","space-evenly"]).optional().catch(void 0),flexDirection:Na(["row","column"]).optional().catch(void 0),gap:ka().optional().catch(void 0),width:ka().optional().catch(void 0),maxWidth:ka().optional().catch(void 0),height:ka().optional().catch(void 0),borderRadius:ka().optional().catch(void 0)}),Nd=Ma({backgroundColor:ka().optional().catch(void 0),backgroundColorAlpha:Ca().min(0).max(1).optional().catch(void 0),borderColor:ka().optional().catch(void 0),borderWidth:ka().optional().catch(void 0),borderStyle:Na(["solid","dashed","dotted","none"]).optional().catch(void 0),boxShadow:ka().optional().catch(void 0),opacity:Ca().min(0).max(1).optional().catch(void 0)}),jd=Ed.merge(Pd).merge(Ld).merge(Nd),zd=jd.extend({mobile:jd.optional().catch(void 0)}),Od=Ma({objectFit:Na(["cover","contain","fill","none"]).optional().catch(void 0)}),Rd=ka().nullable().default(null).catch(null),$d={id:ka(),linkedStyle:Rd,overrides:zd.optional().catch(void 0)},Bd=Ma({json:Ia().optional().catch(void 0),html:ka().catch(""),text:ka().optional().catch(void 0)}),Fd=Ma({text:ka().catch(""),url:ka().optional().catch(void 0),openInNewTab:_a().optional().catch(void 0)}),Dd=Ma({type:Na(["image","video"]).catch("image"),src:ka().catch(""),alt:ka().catch(""),srcMobile:ka().optional().catch(void 0),poster:ka().optional().catch(void 0),posterMobile:ka().optional().catch(void 0),focalPoint:Ma({x:Ca().min(0).max(100).catch(50),y:Ca().min(0).max(100).catch(50)}).optional().catch(void 0),focalPointMobile:Ma({x:Ca().min(0).max(100).catch(50),y:Ca().min(0).max(100).catch(50)}).optional().catch(void 0),aspectRatio:ka().optional().catch(void 0)}),Hd=Ma({name:ka().catch("check"),size:Ca().optional().catch(void 0)}),Wd=Ma({height:ka().catch("32px")}),Ud=Ma({label:ka().optional().catch(void 0)}),Zd=Ma({...$d,type:La("heading"),level:Aa([La(1),La(2),La(3),La(4),La(5),La(6)]).catch(2),content:Bd}),qd=Ma({...$d,type:La("text"),content:Bd}),Vd=Ma({...$d,type:La("button"),content:Fd}),Yd=Ma({...$d,type:La("media"),content:Dd,mediaOverrides:Od.optional().catch(void 0)}),Gd=Ma({...$d,type:La("icon"),content:Hd}),Jd=Ma({...$d,type:La("spacer"),content:Wd}),Xd=Ma({id:ka(),content:Ea(Ia()).catch({})}),Kd=Pa(()=>Ma({...$d,type:La("container"),content:Ud,children:Sa(Qd).catch([]),repeat:_a().optional().catch(void 0),repeatItems:Sa(Xd).optional().catch(void 0)})),Qd=Pa(()=>Aa([Zd,qd,Vd,Yd,Gd,Jd,Kd])),ec=Ma({backgroundColor:ka().optional().catch(void 0),backgroundImage:ka().optional().catch(void 0),paddingTop:ka().optional().catch(void 0),paddingRight:ka().optional().catch(void 0),paddingBottom:ka().optional().catch(void 0),paddingLeft:ka().optional().catch(void 0),maxWidth:ka().optional().catch(void 0),mobile:Ma({backgroundColor:ka().optional().catch(void 0),backgroundImage:ka().optional().catch(void 0),paddingTop:ka().optional().catch(void 0),paddingRight:ka().optional().catch(void 0),paddingBottom:ka().optional().catch(void 0),paddingLeft:ka().optional().catch(void 0),maxWidth:ka().optional().catch(void 0)}).optional().catch(void 0)});function tc(e,t){var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(!n)return"rgba(129, 140, 248, ".concat(t,")");var i=parseInt(n[1],16),o=parseInt(n[2],16),r=parseInt(n[3],16);return"rgba(".concat(i,", ").concat(o,", ").concat(r,", ").concat(t,")")}function nc(e){var t=e.primaryColor,n=e.secondaryColor,i=e.platformUrl,o=void 0===i?"https://www.heyplaybook.com":i,r=ve(!0),a=r[0],l=r[1],s=ve(!1),d=s[0],c=s[1],u=ve(!1),p=u[0],h=u[1],m=xe(null),f=t||"#818cf8",g=n||"#f472b6";ye(function(){if(m.current&&!p){var e=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&!p&&(h(!0),setTimeout(function(){d||l(!1)},1500))})},{threshold:.5});return e.observe(m.current),function(){return e.disconnect()}}},[p,d]);var b="linear-gradient(90deg, ".concat(f," 0%, ").concat(g," 50%, ").concat(f," 100%)"),v="\n    radial-gradient(circle at 30% 30%, ".concat(tc(f,.85)," 0%, transparent 50%),\n    radial-gradient(circle at 70% 70%, ").concat(tc(g,.85)," 0%, transparent 50%),\n    radial-gradient(circle at 50% 50%, ").concat(tc(f,.7)," 0%, transparent 40%)\n  "),y="\n    radial-gradient(circle at 60% 20%, ".concat(tc(g,.75)," 0%, transparent 45%),\n    radial-gradient(circle at 20% 80%, ").concat(tc(f,.75)," 0%, transparent 45%)\n  ");return ie("div",{ref:m,onClick:function(){l(!a)},onMouseEnter:function(){c(!0),l(!0)},onMouseLeave:function(){c(!1),l(!1)},style:{position:"relative",width:"100%",cursor:"pointer"},children:[ie("div",{style:{position:"absolute",top:"-20px",left:0,right:0,height:"20px"}}),ie("div",{style:{position:"relative",width:"100%",height:"".concat(a?36:4,"px"),overflow:"hidden",transition:"height 0.5s cubic-bezier(0.4, 0, 0.2, 1)",isolation:"isolate"},children:[ie("div",{style:{position:"absolute",top:0,left:0,right:0,height:"20px",background:"linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.25) 40%, transparent 100%)",pointerEvents:"none",zIndex:10}}),ie("div",{style:{position:"absolute",inset:0,background:b}}),ie("div",{style:{position:"absolute",inset:0,background:v,backgroundSize:"200% 200%",animation:"pb-liquid-flow 12s ease-in-out infinite"}}),ie("div",{style:{position:"absolute",inset:0,background:y,backgroundSize:"250% 250%",animation:"pb-liquid-flow-2 15s ease-in-out infinite"}}),ie("div",{style:{position:"absolute",bottom:0,left:0,right:0,height:"".concat(36,"px"),display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:ie("div",{onClick:function(e){e.stopPropagation();var t=new URL(o);t.searchParams.set("utm_source","powered_by"),t.searchParams.set("utm_medium","widget"),window.open(t.toString(),"_blank","noopener,noreferrer")},className:"pb-powered-by-link",style:{display:"flex",alignItems:"center",gap:"8px",padding:"4px 12px",cursor:"pointer",pointerEvents:a?"auto":"none"},children:[ie("svg",{width:"14",height:"14",viewBox:"0 0 115 116",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{flexShrink:0,display:"block"},children:ie("path",{d:"M34.5898 2.53662C49.6797 -0.84556 65.3203 -0.845531 80.4102 2.53662C96.4224 6.12514 108.928 18.7387 112.485 34.8901C115.838 50.1114 115.838 65.8886 112.485 81.1099C108.928 97.2613 96.4224 109.875 80.4102 113.463C65.3203 116.846 49.6797 116.846 34.5898 113.463C18.5776 109.875 6.07226 97.2614 2.51465 81.1099C-0.838462 65.8886 -0.838462 50.1114 2.51465 34.8901C6.07436 18.7387 18.5776 6.12725 34.5898 2.53662ZM48.124 25.0005L43.6924 41.5405H26.5684L22.1357 58.0806H39.2598L43.6924 41.5405H78.96L74.5273 58.0806H39.2598L30.3965 91.1616H47.5195L51.9521 74.6216H61.3701C75.5558 74.6215 90.0324 63.5133 93.7041 49.811C97.3757 36.1086 88.8518 25.0005 74.666 25.0005H48.124Z",fill:"white"})}),ie("span",{style:{fontSize:"12px",fontWeight:500,color:"white",letterSpacing:"0.01em",fontFamily:"system-ui, -apple-system, sans-serif",textShadow:"0 1px 2px rgba(0,0,0,0.15)",whiteSpace:"nowrap"},children:"Brought to you by Playbook"}),ie("svg",{className:"pb-external-icon",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0,color:"rgba(255,255,255,0.7)",opacity:0,transition:"opacity 0.15s ease-out"},children:[ie("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),ie("polyline",{points:"15 3 21 3 21 9"}),ie("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]})]})})]})]})}Ma({primitives:Sa(Qd).catch([]),sectionStyle:ec.optional().catch(void 0)}),Bo("section-registry"),Bo("encryption");var ic=null,oc=null;function rc(e){var t,n,i,o,r,a,l,s,d,c,u,p,h,m,f,g,b,v,y,x,w,k,C,_,I=e.colors||{};return"\n    :host {\n      /* Primary brand color */\n      --brand-primary: ".concat((null===(t=I.primary)||void 0===t?void 0:t.base)||"#000000",";\n      --brand-primary-dark: ").concat((null===(n=I.primary)||void 0===n?void 0:n.dark)||"#000000",";\n      --brand-primary-light: ").concat((null===(i=I.primary)||void 0===i?void 0:i.light)||"#333333",";\n      --brand-primary-lighter: ").concat((null===(o=I.primary)||void 0===o?void 0:o.lighter)||"#666666",";\n\n      /* Secondary brand color */\n      --brand-secondary: ").concat((null===(r=I.secondary)||void 0===r?void 0:r.base)||"#666666",";\n      --brand-secondary-dark: ").concat((null===(a=I.secondary)||void 0===a?void 0:a.dark)||"#555555",";\n      --brand-secondary-light: ").concat((null===(l=I.secondary)||void 0===l?void 0:l.light)||"#888888",";\n      --brand-secondary-lighter: ").concat((null===(s=I.secondary)||void 0===s?void 0:s.lighter)||"#aaaaaa",";\n\n      /* Accent colors */\n      --brand-accent1: ").concat((null===(d=I.accent1)||void 0===d?void 0:d.base)||(null===(c=I.primary)||void 0===c?void 0:c.base)||"#000000",";\n      --brand-accent1-dark: ").concat((null===(u=I.accent1)||void 0===u?void 0:u.dark)||(null===(p=I.primary)||void 0===p?void 0:p.dark)||"#000000",";\n\n      --brand-accent2: ").concat((null===(h=I.accent2)||void 0===h?void 0:h.base)||(null===(m=I.secondary)||void 0===m?void 0:m.base)||"#666666",";\n      --brand-accent2-dark: ").concat((null===(f=I.accent2)||void 0===f?void 0:f.dark)||(null===(g=I.secondary)||void 0===g?void 0:g.dark)||"#555555",";\n\n      /* Grayscale */\n      --brand-gray: ").concat((null===(b=I.grayscale)||void 0===b?void 0:b.base)||"#999999",";\n      --brand-gray-dark: ").concat((null===(v=I.grayscale)||void 0===v?void 0:v.dark)||"#666666",";\n      --brand-gray-light: ").concat((null===(y=I.grayscale)||void 0===y?void 0:y.light)||"#cccccc",";\n      --brand-gray-lighter: ").concat((null===(x=I.grayscale)||void 0===x?void 0:x.lighter)||"#f5f5f5",";\n\n      /* Text colors (high contrast for accessibility) */\n      --brand-text-light: #ffffff;\n      --brand-text-dark: ").concat((null===(w=I.grayscale)||void 0===w?void 0:w.dark)||"#000000",";\n\n      /* Utility colors */\n      --brand-sale: ").concat((null===(k=I.utility)||void 0===k?void 0:k.sale)||"#dc2626",";\n      --brand-success: ").concat((null===(C=I.utility)||void 0===C?void 0:C.success)||"#16a34a",";\n      --brand-error: ").concat((null===(_=I.utility)||void 0===_?void 0:_.error)||"#dc2626",";\n    }\n  ")}var ac=null;function lc(e,t,n,i,o,r){return void 0===t&&(t="top"),void 0===o&&(o=!1),new Promise(function(a){!function(){if(!document.querySelector('link[href*="fonts.googleapis.com/css2"][data-playbook-fonts]')){var e=document.createElement("link");e.rel="stylesheet",e.href="https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;600&family=Cormorant:wght@400;600;700&family=Open+Sans:wght@400;600;700&family=Roboto+Condensed:wght@400;600;700&family=Inter:wght@400;600;700&family=Roboto+Mono:wght@300;400&family=Playfair+Display:wght@400;600;700&display=swap",e.setAttribute("data-playbook-fonts","true"),document.head.appendChild(e),Fo.debug("[Playbook] Google Fonts injected")}}();var l=function(){return document.querySelector("[data-playbook-container]")||document.querySelector("#playbook-hero-container")||function(){for(var e=Array.from(document.querySelectorAll("main")),t=0;t<e.length;t++){var n=e[t],i=window.getComputedStyle(n),o=n.offsetWidth>0||n.offsetHeight>0,r="none"!==i.display&&"hidden"!==i.visibility;if(o&&r)return n}return null}()||document.querySelector('[role="main"]')||document.querySelector("#MainContent")||document.querySelector("#main-content")||document.querySelector(".main-sections-container")||document.querySelector(".product")||document.querySelector('[data-section-type="product"]')||document.querySelector("#shopify-section-product-template")||document.querySelector(".shopify-section-product")||function(){for(var e=Array.from(document.querySelectorAll(".shopify-section")),t=0;t<e.length;t++){var n=e[t],i=n.tagName.toLowerCase();if("header"!==i&&"footer"!==i){var o=(n.id||"").toLowerCase();if(!(o.includes("header")||o.includes("footer")||o.includes("announcement"))){var r=window.getComputedStyle(n),a=n.offsetWidth>0||n.offsetHeight>0,l="none"!==r.display&&"hidden"!==r.visibility;if(a&&l)return n}}}return null}()},s=l();if(s)u(s);else{Fo.debug("[Playbook] Content area not found immediately, waiting for dynamic render...");var d=0,c=function(){if(d++,s=l())Fo.debug("[Playbook] Content area found after",100*d,"ms"),u(s);else if(d<30)setTimeout(c,100);else{Fo.warn("[Playbook] Could not find content area after waiting, using body as fallback");var e=document.body;e?u(e):(Fo.error("[Playbook] No body element found, cannot render hero"),a())}};c()}function u(l){var s,d,c,u,p,h,m,f,g,b;if(Fo.debug("[Playbook] Found content area:",l.id||l.tagName),Fo.debug("[Playbook] Hero sections count:",null===(s=null==e?void 0:e.sections)||void 0===s?void 0:s.length),oc&&ic&&ac)return Fo.debug("[Playbook] Reusing existing container for re-render"),n&&n.colors&&((y=ic.querySelector("style[data-playbook-brand]"))||((y=document.createElement("style")).setAttribute("data-playbook-brand","true"),ic.insertBefore(y,ac)),y.textContent=rc(n),Fo.debug("[Playbook] Brand design CSS variables updated on re-render")),te(ie(j,{children:[ie(Wo,{variant:e,brandDesign:n,previewMode:i}),o&&ie(nc,{primaryColor:null===(c=null===(d=null==n?void 0:n.colors)||void 0===d?void 0:d.primary)||void 0===c?void 0:c.base,secondaryColor:null===(p=null===(u=null==n?void 0:n.colors)||void 0===u?void 0:u.secondary)||void 0===p?void 0:p.base,platformUrl:r})]}),ac),void requestAnimationFrame(function(){Fo.debug("[Playbook] Hero re-rendered with updated props"),a()});oc&&(oc.remove(),oc=null,ic=null,ac=null),(oc=document.createElement("div")).id="playbook-hero",oc.setAttribute("data-position",t),oc.style.position="relative",function(e,t){e.style.setProperty("display","block","important"),e.style.setProperty("box-sizing","border-box","important"),e.style.setProperty("max-width","100%","important");const n=t??e.parentElement,i=n?getComputedStyle(n):null,o=i?.display??"";if(o.includes("grid"))e.style.setProperty("grid-column","1 / -1","important");else if(o.includes("flex")){e.style.setProperty("width","100%","important"),e.style.setProperty("align-self","stretch","important");const t=i?.flexDirection??"";"row"!==t&&"row-reverse"!==t||e.style.setProperty("flex","0 0 100%","important")}}(oc,l),i||(oc.style.opacity="0",oc.style.transform="translateY(-8px)",oc.style.transition="opacity 0.25s ease-out, transform 0.25s ease-out"),ic=oc.attachShadow({mode:"open"});var v=document.createElement("style");v.textContent='*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{border-color:#e2e8f0}.\\!container{width:100%!important}.container{width:100%}@media (min-width:640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.pb-text-h1{font-family:var(--brand-font-heading,Inter),Inter,sans-serif;font-size:var(--brand-h1-size-mobile,36px);font-weight:var(--brand-h1-weight,700);line-height:var(--brand-h1-line-height-mobile,1.33)}@media (min-width:768px){.pb-text-h1{font-size:var(--brand-h1-size,56px);line-height:var(--brand-h1-line-height,1.23)}}.pb-text-h2{font-family:var(--brand-font-heading,Inter),Inter,sans-serif;font-size:var(--brand-h2-size-mobile,30px);font-weight:var(--brand-h2-weight,700);line-height:var(--brand-h2-line-height-mobile,1.47)}@media (min-width:768px){.pb-text-h2{font-size:var(--brand-h2-size,40px);line-height:var(--brand-h2-line-height,1.35)}}.pb-text-h3{font-family:var(--brand-font-heading,Inter),Inter,sans-serif;font-size:var(--brand-h3-size-mobile,24px);font-weight:var(--brand-h3-weight,700);line-height:var(--brand-h3-line-height-mobile,1.33)}@media (min-width:768px){.pb-text-h3{font-size:var(--brand-h3-size,30px);line-height:var(--brand-h3-line-height,1.27)}}.pb-text-h4{font-family:var(--brand-font-heading,Inter),Inter,sans-serif;font-size:var(--brand-h4-size-mobile,20px);font-weight:var(--brand-h4-weight,700);line-height:var(--brand-h4-line-height-mobile,1.2)}@media (min-width:768px){.pb-text-h4{font-size:var(--brand-h4-size,24px);line-height:var(--brand-h4-line-height,1.33)}}.pb-text-h5{font-family:var(--brand-font-heading,Inter),Inter,sans-serif;font-size:var(--brand-h5-size-mobile,16px);font-weight:var(--brand-h5-weight,700);line-height:var(--brand-h5-line-height,1.29)}@media (min-width:768px){.pb-text-h5{font-size:var(--brand-h5-size,17px)}}.pb-text-body{font-family:var(--brand-font-body,Inter),Inter,sans-serif;font-size:var(--brand-body-size-mobile,15px);font-weight:var(--brand-body-weight,400);line-height:var(--brand-body-line-height-mobile,1.33);white-space:pre-line}@media (min-width:768px){.pb-text-body{font-size:var(--brand-body-size,16px);line-height:var(--brand-body-line-height,1.375)}}.pb-text-body-sm{font-family:var(--brand-font-body,Inter),Inter,sans-serif;font-size:var(--brand-body-sm-size-mobile,11px);font-weight:var(--brand-body-sm-weight,400);line-height:var(--brand-body-sm-line-height-mobile,1.64)}@media (min-width:768px){.pb-text-body-sm{font-size:var(--brand-body-sm-size,12px);line-height:var(--brand-body-sm-line-height,1.5)}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.bottom-12{bottom:3rem}.bottom-3{bottom:.75rem}.bottom-4{bottom:1rem}.bottom-\\[8px\\]{bottom:8px}.left-0{left:0}.left-1\\/2{left:50%}.left-16{left:4rem}.left-3{left:.75rem}.left-4{left:1rem}.left-\\[8px\\]{left:8px}.right-0{right:0}.right-16{right:4rem}.right-4{right:1rem}.right-\\[8px\\]{right:8px}.top-0{top:0}.top-1\\/2{top:50%}.top-3{top:.75rem}.isolate{isolation:isolate}.z-10{z-index:10}.col-span-2{grid-column:span 2/span 2}.mx-0\\.5{margin-left:.125rem;margin-right:.125rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-10{margin-bottom:2.5rem}.mb-3{margin-bottom:.75rem}.ml-\\[24px\\]{margin-left:24px}.ml-\\[36px\\]{margin-left:36px}.ml-\\[48px\\]{margin-left:48px}.ml-auto{margin-left:auto}.mr-\\[10px\\]{margin-right:10px}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-5{margin-top:1.25rem}.box-border{box-sizing:border-box}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-\\[412\\/525\\]{aspect-ratio:412/525}.aspect-square{aspect-ratio:1/1}.aspect-video{aspect-ratio:16/9}.size-14{width:3.5rem;height:3.5rem}.size-2{width:.5rem;height:.5rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-8{height:2rem}.h-\\[193px\\]{height:193px}.h-\\[244px\\]{height:244px}.h-\\[24px\\]{height:24px}.h-\\[269px\\]{height:269px}.h-\\[280px\\]{height:280px}.h-\\[343px\\]{height:343px}.h-\\[34px\\]{height:34px}.h-\\[40px\\]{height:40px}.h-\\[44px\\]{height:44px}.h-\\[540px\\]{height:540px}.h-\\[56px\\]{height:56px}.h-\\[620px\\]{height:620px}.h-\\[64px\\]{height:64px}.h-\\[680px\\]{height:680px}.h-\\[720px\\]{height:720px}.h-\\[740px\\]{height:740px}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.max-h-\\[220px\\]{max-height:220px}.max-h-\\[34px\\]{max-height:34px}.max-h-full{max-height:100%}.min-h-\\[130px\\]{min-height:130px}.min-h-\\[280px\\]{min-height:280px}.min-h-\\[312px\\]{min-height:312px}.min-h-\\[400px\\]{min-height:400px}.w-1\\/2{width:50%}.w-1\\/3{width:33.333333%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-32{width:8rem}.w-8{width:2rem}.w-\\[128px\\]{width:128px}.w-\\[245px\\]{width:245px}.w-\\[24px\\]{width:24px}.w-\\[317px\\]{width:317px}.w-\\[343px\\]{width:343px}.w-\\[40px\\]{width:40px}.w-\\[45px\\]{width:45px}.w-\\[460px\\]{width:460px}.w-\\[56px\\]{width:56px}.w-\\[60px\\]{width:60px}.w-\\[64px\\]{width:64px}.w-\\[90\\%\\]{width:90%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0}.max-w-3xl{max-width:48rem}.max-w-\\[1014px\\]{max-width:1014px}.max-w-\\[1040px\\]{max-width:1040px}.max-w-\\[1140px\\]{max-width:1140px}.max-w-\\[1150px\\]{max-width:1150px}.max-w-\\[1279px\\]{max-width:1279px}.max-w-\\[1280px\\]{max-width:1280px}.max-w-\\[128px\\]{max-width:128px}.max-w-\\[1296px\\]{max-width:1296px}.max-w-\\[1440px\\]{max-width:1440px}.max-w-\\[225px\\]{max-width:225px}.max-w-\\[343px\\]{max-width:343px}.max-w-\\[385px\\]{max-width:385px}.max-w-\\[440px\\]{max-width:440px}.max-w-\\[450px\\]{max-width:450px}.max-w-\\[470px\\]{max-width:470px}.max-w-\\[480px\\]{max-width:480px}.max-w-\\[600px\\]{max-width:600px}.max-w-\\[645px\\]{max-width:645px}.max-w-\\[712px\\]{max-width:712px}.max-w-\\[772px\\]{max-width:772px}.max-w-full{max-width:100%}.max-w-screen-lg{max-width:1024px}.max-w-screen-md{max-width:768px}.max-w-screen-xl{max-width:1280px}.flex-1{flex:1 1 0%}.flex-\\[0_0_calc\\(50\\%-5px\\)\\]{flex:0 0 calc(50% - 5px)}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.scale-x-0{--tw-scale-x:0}.scale-x-0,.scale-x-100{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-x-100{--tw-scale-x:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.justify-items-start{justify-items:start}.justify-items-center{justify-items:center}.gap-0{gap:0}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-40{gap:10rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\\[16px\\]{gap:16px}.gap-\\[18px\\]{gap:18px}.gap-x-14{-moz-column-gap:3.5rem;column-gap:3.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.gap-y-10{row-gap:2.5rem}.gap-y-6{row-gap:1.5rem}.overflow-hidden{overflow:hidden}.overflow-clip{overflow:clip}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[12px\\]{border-radius:12px}.rounded-\\[2px\\]{border-radius:2px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-\\[\\#e8e8e8\\]{--tw-border-opacity:1;border-color:rgb(232 232 232/var(--tw-border-opacity,1))}.border-\\[var\\(--brand-primary\\2c \\#00a47c\\)\\]{border-color:var(--brand-primary,#00a47c)}.border-destructive\\/50{border-color:rgba(239,68,68,.5)}.bg-\\[\\#f7f6f9\\]{--tw-bg-opacity:1;background-color:rgb(247 246 249/var(--tw-bg-opacity,1))}.bg-\\[var\\(--brand-accent1\\2c \\#0f172a\\)\\]{background-color:var(--brand-accent1,#0f172a)}.bg-\\[var\\(--brand-accent2\\2c \\#64748b\\)\\]{background-color:var(--brand-accent2,#64748b)}.bg-\\[var\\(--brand-primary\\2c \\#00a47c\\)\\]{background-color:var(--brand-primary,#00a47c)}.bg-\\[var\\(--brand-primary\\2c \\#33b696\\)\\]{background-color:var(--brand-primary,#33b696)}.bg-\\[var\\(--brand-secondary\\2c \\#f1f5f9\\)\\]{background-color:var(--brand-secondary,#f1f5f9)}.bg-background{--tw-bg-opacity:1;background-color:hsl(0 0% 100%/var(--tw-bg-opacity,1))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-black\\/20{background-color:rgba(0,0,0,.2)}.bg-black\\/30{background-color:rgba(0,0,0,.3)}.bg-black\\/40{background-color:rgba(0,0,0,.4)}.bg-black\\/50{background-color:rgba(0,0,0,.5)}.bg-card{--tw-bg-opacity:1;background-color:hsl(0 0% 100%/var(--tw-bg-opacity,1))}.bg-destructive{--tw-bg-opacity:1;background-color:hsl(0 84.2% 60.2%/var(--tw-bg-opacity,1))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.bg-primary{--tw-bg-opacity:1;background-color:hsl(222.2 47.4% 11.2%/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-black\\/30{--tw-gradient-from:rgba(0,0,0,.3) var(--tw-gradient-from-position);--tw-gradient-to:transparent var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-transparent{--tw-gradient-from:transparent var(--tw-gradient-from-position);--tw-gradient-to:transparent var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-transparent{--tw-gradient-to:transparent var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),transparent var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-black\\/20{--tw-gradient-to:rgba(0,0,0,.2) var(--tw-gradient-to-position)}.to-black\\/40{--tw-gradient-to:rgba(0,0,0,.4) var(--tw-gradient-to-position)}.to-black\\/50{--tw-gradient-to:rgba(0,0,0,.5) var(--tw-gradient-to-position)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\\[8px\\]{padding:8px}.px-0{padding-left:0;padding-right:0}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-20{padding-left:5rem;padding-right:5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\\[15px\\]{padding-top:15px;padding-bottom:15px}.pb-1{padding-bottom:.25rem}.pb-5{padding-bottom:1.25rem}.pb-8{padding-bottom:2rem}.pb-\\[32px\\]{padding-bottom:32px}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pt-16{padding-top:4rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.\\!text-\\[36px\\]{font-size:36px!important}.text-\\[12px\\]{font-size:12px}.text-\\[15px\\]{font-size:15px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.\\!leading-none{line-height:1!important}.leading-5{line-height:1.25rem}.leading-\\[18px\\]{line-height:18px}.tracking-\\[-0\\.36px\\]{letter-spacing:-.36px}.tracking-\\[-0\\.48px\\]{letter-spacing:-.48px}.tracking-\\[-0\\.4px\\]{letter-spacing:-.4px}.tracking-\\[-0\\.6px\\]{letter-spacing:-.6px}.tracking-\\[-0\\.72px\\]{letter-spacing:-.72px}.tracking-\\[-0\\.8px\\]{letter-spacing:-.8px}.tracking-\\[-2px\\]{letter-spacing:-2px}.tracking-\\[1\\.2px\\]{letter-spacing:1.2px}.text-\\[\\#05181b\\]{--tw-text-opacity:1;color:rgb(5 24 27/var(--tw-text-opacity,1))}.text-\\[var\\(--brand-primary\\2c \\#00a47c\\)\\]{color:var(--brand-primary,#00a47c)}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.text-card-foreground{--tw-text-opacity:1;color:hsl(222.2 47.4% 11.2%/var(--tw-text-opacity,1))}.text-destructive{--tw-text-opacity:1;color:hsl(0 84.2% 60.2%/var(--tw-text-opacity,1))}.text-destructive-foreground{--tw-text-opacity:1;color:hsl(210 40% 98%/var(--tw-text-opacity,1))}.text-foreground{--tw-text-opacity:1;color:hsl(222.2 47.4% 11.2%/var(--tw-text-opacity,1))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-primary-foreground{--tw-text-opacity:1;color:hsl(210 40% 98%/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.outline{outline-style:solid}.blur{--tw-blur:blur(8px)}.blur,.drop-shadow-lg{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg{--tw-drop-shadow:drop-shadow(0 10px 8px rgba(0,0,0,.04)) drop-shadow(0 4px 3px rgba(0,0,0,.1))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes scroll-banner{0%{transform:translateX(0)}to{transform:translateX(-50%)}}@keyframes fadeSlideDown{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeSlideUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes scroll-up{0%{transform:translateY(0)}to{transform:translateY(-50%)}}@keyframes scroll-down{0%{transform:translateY(-50%)}to{transform:translateY(0)}}@keyframes scroll-right{0%{transform:translateX(-50%)}to{transform:translateX(0)}}.pb-edit-btn:hover{padding:10px 16px;border-radius:8px}.pb-edit-btn:hover .pb-edit-btn-icon{display:none!important}.pb-edit-btn:hover .pb-edit-btn-text{display:flex!important}.pb-focal-btn:hover{background-color:rgba(0,0,0,.8)!important}.pb-add-zone .pb-add-zone-btn,.pb-add-zone .pb-add-zone-line{opacity:0;pointer-events:none;transition:opacity .15s ease}.pb-add-zone:hover .pb-add-zone-btn,.pb-add-zone:hover .pb-add-zone-line{opacity:1;pointer-events:auto}.pb-add-zone-btn:hover{background-color:#6366f1!important}.pb-ghost{position:relative;opacity:.3;transition:opacity .2s ease;cursor:pointer}.pb-ghost:hover{opacity:.5}.pb-ghost .pb-ghost-overlay{opacity:0;transition:opacity .2s ease}.pb-ghost:hover .pb-ghost-overlay{opacity:1}.pb-el-wrap .pb-el-border{opacity:0;transition:opacity .15s ease,border-width .15s ease}.pb-el-wrap:hover .pb-el-border{opacity:1}.pb-el-wrap .pb-el-remove{opacity:0;pointer-events:none;transition:opacity .15s ease}.pb-el-wrap:hover .pb-el-remove{opacity:1;pointer-events:auto}.pb-el-remove:hover{background-color:#e5e7eb!important}.pb-el-wrap .pb-add-overlay{opacity:0;pointer-events:none;transition:opacity .15s ease}.pb-el-wrap:hover .pb-add-overlay{opacity:1;pointer-events:auto}.pb-add-pill:hover{box-shadow:0 2px 8px rgba(129,140,248,.5)!important;background-color:#6366f1!important}.pb-el-edge .pb-el-edge-btn{opacity:0;pointer-events:none;transition:opacity .15s ease}.pb-el-edge:hover .pb-el-edge-btn{opacity:1;pointer-events:auto}.pb-el-edge-btn button:hover{background-color:#6366f1!important}.pb-scroll-pause:hover .pb-scroll-track{animation-play-state:paused!important}.hover\\:scale-110:hover{--tw-scale-x:1.1;--tw-scale-y:1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:bg-destructive\\/80:hover{background-color:rgba(239,68,68,.8)}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.hover\\:bg-primary\\/80:hover{background-color:rgba(15,23,42,.8)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-ring:focus{--tw-ring-opacity:1;--tw-ring-color:hsl(222.2 47.4% 11.2%/var(--tw-ring-opacity,1))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:scale-105{--tw-scale-x:1.05;--tw-scale-y:1.05}.group:hover .group-hover\\:scale-105,.group:hover .group-hover\\:scale-x-100{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\\:scale-x-100{--tw-scale-x:1}.group:hover .group-hover\\:opacity-100{opacity:1}@media (min-width:640px){.sm\\:mx-auto{margin-left:auto;margin-right:auto}.sm\\:w-auto{width:auto}.sm\\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width:768px){.md\\:left-1\\/2{left:50%}.md\\:left-20{left:5rem}.md\\:left-\\[48px\\]{left:48px}.md\\:left-auto{left:auto}.md\\:right-20{right:5rem}.md\\:right-\\[48px\\]{right:48px}.md\\:right-auto{right:auto}.md\\:mx-1{margin-left:.25rem;margin-right:.25rem}.md\\:mx-2{margin-left:.5rem;margin-right:.5rem}.md\\:mx-auto{margin-left:auto;margin-right:auto}.md\\:mb-12{margin-bottom:3rem}.md\\:block{display:block}.md\\:flex{display:flex}.md\\:grid{display:grid}.md\\:hidden{display:none}.md\\:h-\\[540px\\]{height:540px}.md\\:h-\\[680px\\]{height:680px}.md\\:min-h-\\[500px\\]{min-height:500px}.md\\:w-1\\/2{width:50%}.md\\:w-\\[40\\%\\]{width:40%}.md\\:w-\\[60\\%\\]{width:60%}.md\\:max-w-\\[1344px\\]{max-width:1344px}.md\\:max-w-\\[280px\\]{max-width:280px}.md\\:max-w-\\[480px\\]{max-width:480px}.md\\:max-w-\\[700px\\]{max-width:700px}.md\\:max-w-\\[712px\\]{max-width:712px}.md\\:-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:gap-10{gap:2.5rem}.md\\:gap-16{gap:4rem}.md\\:gap-5{gap:1.25rem}.md\\:gap-6{gap:1.5rem}.md\\:gap-8{gap:2rem}.md\\:rounded-\\[32px\\]{border-radius:32px}.md\\:bg-black\\/20{background-color:rgba(0,0,0,.2)}.md\\:p-16{padding:4rem}.md\\:p-\\[50px\\]{padding:50px}.md\\:px-10{padding-left:2.5rem;padding-right:2.5rem}.md\\:px-12{padding-left:3rem;padding-right:3rem}.md\\:px-16{padding-left:4rem;padding-right:4rem}.md\\:px-20{padding-left:5rem;padding-right:5rem}.md\\:px-4{padding-left:1rem;padding-right:1rem}.md\\:px-8{padding-left:2rem;padding-right:2rem}.md\\:py-12{padding-top:3rem;padding-bottom:3rem}.md\\:py-16{padding-top:4rem;padding-bottom:4rem}.md\\:py-20{padding-top:5rem;padding-bottom:5rem}.md\\:py-4{padding-top:1rem;padding-bottom:1rem}.md\\:py-8{padding-top:2rem;padding-bottom:2rem}.md\\:pb-\\[64px\\]{padding-bottom:64px}.md\\:\\!text-\\[80px\\]{font-size:80px!important}.md\\:text-\\[40px\\]{font-size:40px}.md\\:leading-\\[54px\\]{line-height:54px}.md\\:tracking-\\[-0\\.8px\\]{letter-spacing:-.8px}.md\\:tracking-\\[-1\\.12px\\]{letter-spacing:-1.12px}}@media (min-width:1024px){.lg\\:flex{display:flex}.lg\\:hidden{display:none}.lg\\:w-\\[236px\\]{width:236px}.lg\\:w-\\[316px\\]{width:316px}.lg\\:max-w-\\[320px\\]{max-width:320px}.lg\\:flex-none{flex:none}.lg\\:gap-10{gap:2.5rem}.lg\\:gap-16{gap:4rem}.lg\\:gap-24{gap:6rem}.lg\\:gap-4{gap:1rem}.lg\\:gap-\\[72px\\]{gap:72px}.lg\\:p-10{padding:2.5rem}.lg\\:p-12{padding:3rem}.lg\\:p-8{padding:2rem}.lg\\:px-12{padding-left:3rem;padding-right:3rem}.lg\\:px-16{padding-left:4rem;padding-right:4rem}.lg\\:px-20{padding-left:5rem;padding-right:5rem}.lg\\:px-8{padding-left:2rem;padding-right:2rem}.lg\\:px-\\[calc\\(5\\%\\+80px\\)\\]{padding-left:calc(5% + 80px);padding-right:calc(5% + 80px)}.lg\\:py-16{padding-top:4rem;padding-bottom:4rem}.lg\\:py-20{padding-top:5rem;padding-bottom:5rem}.lg\\:tracking-\\[-0\\.8px\\]{letter-spacing:-.8px}}@media (min-width:1280px){.xl\\:w-\\[347px\\]{width:347px}.xl\\:max-w-\\[1360px\\]{max-width:1360px}.xl\\:max-w-\\[347px\\]{max-width:347px}.xl\\:flex-none{flex:none}.xl\\:gap-20{gap:5rem}.xl\\:gap-\\[128px\\]{gap:128px}.xl\\:gap-\\[180px\\]{gap:180px}.xl\\:gap-\\[20px\\]{gap:20px}.xl\\:p-16{padding:4rem}.xl\\:p-20{padding:5rem}.xl\\:px-0{padding-left:0;padding-right:0}.xl\\:px-12{padding-left:3rem;padding-right:3rem}.xl\\:px-16{padding-left:4rem;padding-right:4rem}.xl\\:px-\\[108px\\]{padding-left:108px;padding-right:108px}.xl\\:px-\\[80px\\]{padding-left:80px;padding-right:80px}}@media (prefers-color-scheme:dark){.dark\\:border-destructive{--tw-border-opacity:1;border-color:hsl(0 84.2% 60.2%/var(--tw-border-opacity,1))}}.\\[\\&\\>svg\\]\\:text-destructive>svg{--tw-text-opacity:1;color:hsl(0 84.2% 60.2%/var(--tw-text-opacity,1))}.\\[\\&_p\\]\\:leading-relaxed p{line-height:1.625}',ic.appendChild(v);var y,x=document.createElement("style");if(x.textContent="\n      /* Editable text hover state */\n      .pb-editable-hover:hover {\n        box-shadow: inset 0 0 0 1.5px rgba(59, 130, 246, 0.5) !important;\n      }\n\n      /* Editable image overlay - hidden by default */\n      .pb-image-overlay {\n        opacity: 0;\n      }\n\n      /* Show overlay on hover - matches platform UX */\n      .pb-editable-image-wrapper:hover .pb-image-overlay {\n        opacity: 1 !important;\n      }\n\n      .pb-image-overlay.pb-show {\n        opacity: 1 !important;\n      }\n\n      /* Image icon hover effect */\n      .pb-image-icon:hover {\n        background-color: rgba(0, 0, 0, 0.8) !important;\n      }\n\n      /* Action button hover effects */\n      .pb-action-btn:hover {\n        background-color: rgba(0, 0, 0, 0.9) !important;\n      }\n\n      .pb-action-btn-secondary:hover {\n        background-color: rgba(0, 0, 0, 0.8) !important;\n      }\n\n      /* Spinner animation for upload loading */\n      @keyframes pb-spin {\n        from {\n          transform: rotate(0deg);\n        }\n        to {\n          transform: rotate(360deg);\n        }\n      }\n\n      .pb-spinner {\n        animation: pb-spin 1s linear infinite;\n      }\n\n      /* Responsive image classes - show/hide based on viewport */\n      /* Desktop: show desktop image, hide mobile image */\n      @media (min-width: 768px) {\n        .pb-img-desktop { display: block !important; }\n        .pb-img-mobile { display: none !important; }\n      }\n      /* Mobile: hide desktop image, show mobile image */\n      @media (max-width: 767px) {\n        .pb-img-desktop { display: none !important; }\n        .pb-img-mobile { display: block !important; }\n      }\n\n      /* Image gen / media button hover */\n      .pb-imggen-btn:hover {\n        background-color: rgba(0, 0, 0, 0.85) !important;\n        transform: scale(1.05);\n      }\n\n      /* Generating pill: swap spinner for X on hover */\n      .pb-generating-btn:hover .pb-gen-spinner {\n        display: none !important;\n      }\n      .pb-generating-btn:hover .pb-gen-cancel {\n        display: flex !important;\n      }\n\n      /* Tooltip styles for image action buttons */\n      .pb-tooltip-trigger {\n        position: relative;\n      }\n\n      .pb-tooltip-trigger::after {\n        content: attr(data-tooltip);\n        position: absolute;\n        bottom: calc(100% + 8px);\n        left: 50%;\n        transform: translateX(-50%) translateY(4px);\n        background: rgba(0, 0, 0, 0.85);\n        color: white;\n        font-size: 11px;\n        font-weight: 500;\n        padding: 4px 8px;\n        border-radius: 4px;\n        white-space: nowrap;\n        pointer-events: none;\n        opacity: 0;\n        transition: opacity 0.15s ease, transform 0.15s ease;\n        z-index: 10;\n      }\n\n      /* Right-align tooltip on last button to prevent overflow */\n      .pb-tooltip-trigger:last-child::after {\n        left: auto;\n        right: 0;\n        transform: translateX(0) translateY(4px);\n      }\n\n      .pb-tooltip-trigger:last-child:hover::after {\n        transform: translateX(0) translateY(0);\n      }\n\n      .pb-tooltip-trigger:hover::after {\n        opacity: 1;\n        transform: translateX(-50%) translateY(0);\n      }\n\n      /* Powered by Playbook hover state */\n      .pb-powered-by-link:hover .pb-external-icon {\n        opacity: 1 !important;\n      }\n\n      /* Powered by Playbook gradient animations */\n      @keyframes pb-liquid-flow {\n        0%, 100% {\n          background-position: 100% 100%;\n        }\n        33% {\n          background-position: 0% 50%;\n        }\n        66% {\n          background-position: 50% 0%;\n        }\n      }\n\n      @keyframes pb-liquid-flow-2 {\n        0%, 100% {\n          background-position: 0% 0%;\n        }\n        50% {\n          background-position: 100% 100%;\n        }\n      }\n    ",ic.appendChild(x),n&&n.colors&&((y=document.createElement("style")).setAttribute("data-playbook-brand","true"),y.textContent=rc(n),ic.appendChild(y),Fo.debug("[Playbook] Brand design CSS variables injected")),ac=document.createElement("div"),ic.appendChild(ac),"top"===t){var w=l.firstElementChild;w?l.insertBefore(oc,w):l.appendChild(oc)}else l.appendChild(oc);if(i)for(var k=oc.parentElement;k&&k!==document.documentElement;){var C=window.getComputedStyle(k),_="static"!==C.position,I=k.parentElement?window.getComputedStyle(k.parentElement).display:"",S=/flex|grid/.test(I);if("auto"!==C.zIndex&&(_||S)){var M=0,A=null===(h=k.parentElement)||void 0===h?void 0:h.children;if(A)for(var T=0;T<A.length;T++){var E=A[T];if(E!==k){var P=window.getComputedStyle(E);if("sticky"===P.position||"fixed"===P.position){var L=parseInt(P.zIndex,10);!isNaN(L)&&L>M&&(M=L)}}}var N=parseInt(C.zIndex,10);!isNaN(N)&&N<M&&(k.style.zIndex=String(M+1))}k=k.parentElement}te(ie(j,{children:[ie(Wo,{variant:e,brandDesign:n,previewMode:i}),o&&ie(nc,{primaryColor:null===(f=null===(m=null==n?void 0:n.colors)||void 0===m?void 0:m.primary)||void 0===f?void 0:f.base,secondaryColor:null===(b=null===(g=null==n?void 0:n.colors)||void 0===g?void 0:g.secondary)||void 0===b?void 0:b.base,platformUrl:r})]}),ac),requestAnimationFrame(function(){requestAnimationFrame(function(){if(!i&&oc){oc.style.opacity="1",oc.style.transform="translateY(0)";var e=function(){oc&&(oc.style.transform="",oc.style.opacity="",oc.style.transition="")};oc.addEventListener("transitionend",e,{once:!0}),setTimeout(e,350)}Fo.debug("[Playbook] Hero rendered with Preact in shadow DOM"),a()})})}})}function sc(){oc&&(oc.remove(),oc=null,ic=null,ac=null)}function dc(e){for(var t={},n=0,i=e;n<i.length;n++){var o=i[n],r=o.key,a=o.value;t[r]=a}return t}var cc=function(){function e(){this.initialized=!1,this.cartObserver=null,this.isHydrogenStore=!1,this.hasInjectedAttributes=!1,this.injectionAttempted=!1,this.lastAttemptedKey=null}return e.prototype.init=function(){var e;if(!this.initialized){var t=null===(e=window.Shopify)||void 0===e?void 0:e.shop;this.isHydrogenStore=!t,this.initialized=!0,this.injectAttributesProactively(),this.isHydrogenStore?(this.observeCartChangesHydrogen(),this.interceptCheckoutNavigationHydrogen()):(this.addHiddenInputsToForms(),this.addHiddenInputsToCheckoutForms(),this.interceptCheckoutNavigation(),this.observeCartChanges())}},e.prototype.getAttributionEntries=function(){var e=this.getCookie("_pb_variant"),t=this.getCookie("_pb_impression_id");if(!e||!t)return null;var n=[{key:"pb_variant__",value:e},{key:"pb_impression_id__",value:t}],i=this.getCookie("_pb_test_id");if(i)return n.push({key:"pb_test_id__",value:i}),n;var o=this.getCookie("_pb_experiment_id"),r=this.getCookie("_pb_arm_id");return o&&r?(n.push({key:"pb_experiment_id__",value:o},{key:"pb_arm_id__",value:r}),n):null},e.prototype.shouldSkipHydrogenInjection=function(e){var t=e.map(function(e){return"".concat(e.key,"=").concat(e.value)}).join("&");if(this.hasInjectedAttributes||this.injectionAttempted){if(t===this.lastAttemptedKey)return!0;this.hasInjectedAttributes=!1,this.injectionAttempted=!1}return this.lastAttemptedKey=t,!1},e.prototype.injectAttributesProactively=function(){return n(this,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:if(!(e=this.getAttributionEntries()))return[2];t.label=1;case 1:return t.trys.push([1,6,,7]),this.isHydrogenStore?[4,this.injectAttributesHydrogen(e)]:[3,3];case 2:return t.sent(),[3,5];case 3:return[4,this.injectAttributesLiquid(e)];case 4:t.sent(),t.label=5;case 5:return[3,7];case 6:return t.sent(),[3,7];case 7:return[2]}})})},e.prototype.injectAttributesHydrogen=function(e){return n(this,void 0,void 0,function(){var t,n;return i(this,function(i){switch(i.label){case 0:return this.shouldSkipHydrogenInjection(e)?[2]:(t=!!this.getStorefrontToken(),n=!!this.getHydrogenCartId(),t&&n?[4,this.injectViaGraphQL(e)]:[3,2]);case 1:return i.sent(),[3,5];case 2:return!t||n?[3,3]:[2];case 3:return[4,this.injectViaApiCart(e)];case 4:i.sent(),i.label=5;case 5:return[2]}})})},e.prototype.injectViaGraphQL=function(e){return n(this,void 0,void 0,function(){var t,n,r,a,l,s,d,c,u,p,h,m,f,g,b,v,y,x;return i(this,function(i){switch(i.label){case 0:if(!(t=this.getHydrogenCartId()))return[2];if(!(n=this.getStorefrontToken()))return[2];if(!(r=this.getStoreDomain()))return[2];this.injectionAttempted=!0,a="https://".concat(r,"/api/").concat("2025-01","/graphql.json"),l={"Content-Type":"application/json","X-Shopify-Storefront-Access-Token":n},s=[],i.label=1;case 1:return i.trys.push([1,5,,6]),[4,fetch(a,{method:"POST",headers:l,body:JSON.stringify({query:"\n  query cartAttributes($cartId: ID!) {\n    cart(id: $cartId) {\n      attributes { key value }\n    }\n  }\n",variables:{cartId:t}})})];case 2:return(d=i.sent()).ok?[4,d.json()]:[3,4];case 3:c=i.sent(),s=(null===(g=null===(f=c.data)||void 0===f?void 0:f.cart)||void 0===g?void 0:g.attributes)||[],i.label=4;case 4:return[3,6];case 5:return i.sent(),[3,6];case 6:return u=new Set(e.map(function(e){return e.key})),p=o(o([],s.filter(function(e){return!u.has(e.key)}),!0),e,!0),[4,fetch(a,{method:"POST",headers:l,body:JSON.stringify({query:"\n  mutation cartAttributesUpdate($cartId: ID!, $attributes: [AttributeInput!]!) {\n    cartAttributesUpdate(cartId: $cartId, attributes: $attributes) {\n      cart { id }\n      userErrors { field message }\n    }\n  }\n",variables:{cartId:t,attributes:p}})})];case 7:if(!(h=i.sent()).ok)throw new Error("GraphQL cart update failed: ".concat(h.status));return[4,h.json()];case 8:if(m=i.sent(),(null===(b=m.errors)||void 0===b?void 0:b.length)>0)throw new Error("GraphQL errors: ".concat(JSON.stringify(m.errors)));if((null===(x=null===(y=null===(v=m.data)||void 0===v?void 0:v.cartAttributesUpdate)||void 0===y?void 0:y.userErrors)||void 0===x?void 0:x.length)>0)throw new Error("Cart errors: ".concat(JSON.stringify(m.data.cartAttributesUpdate.userErrors)));return this.hasInjectedAttributes=!0,[2]}})})},e.prototype.injectViaApiCart=function(e){return n(this,void 0,void 0,function(){var t,n;return i(this,function(i){switch(i.label){case 0:return this.injectionAttempted=!0,(t=new FormData).append("action","AttributesUpdateInput"),t.append("attributes",JSON.stringify(e)),[4,fetch("/api/cart",{method:"POST",body:t})];case 1:if(!(n=i.sent()).ok)throw new Error("Hydrogen cart update failed: ".concat(n.status," ").concat(n.statusText));return this.hasInjectedAttributes=!0,[2]}})})},e.prototype.getHydrogenCartId=function(){try{var e=localStorage.getItem("shopifyCartId");if(e)return e}catch(e){}try{var t=document.cookie.match(/(?:^|;\s*)cart=([^\s;]+)/);if(t){var n=decodeURIComponent(t[1]);if(n)return"gid://shopify/Cart/".concat(n)}}catch(e){}return null},e.prototype.getStorefrontToken=function(){var e,t=null===(e=window.ENV)||void 0===e?void 0:e.PUBLIC_STOREFRONT_API_TOKEN;if(t)return t;var n=document.querySelector("script[data-storefront-token]");return(null==n?void 0:n.getAttribute("data-storefront-token"))||null},e.prototype.getStoreDomain=function(){var e,t=null===(e=window.ENV)||void 0===e?void 0:e.PUBLIC_STORE_DOMAIN;if(t)return t;var n=document.querySelector("script[data-store-domain]");return(null==n?void 0:n.getAttribute("data-store-domain"))||null},e.prototype.injectAttributesLiquid=function(e){return n(this,void 0,void 0,function(){var t,n,o,r,a,l,s;return i(this,function(i){switch(i.label){case 0:return[4,fetch("/cart.js")];case 1:return[4,i.sent().json()];case 2:return t=i.sent(),n=dc(e),o=null===(l=t.attributes)||void 0===l?void 0:l.pb_variant__,r=null===(s=t.attributes)||void 0===s?void 0:s.pb_impression_id__,o===n.pb_variant__&&r===n.pb_impression_id__?[2]:[4,fetch("/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({attributes:n})})];case 3:if(!(a=i.sent()).ok)throw new Error("Cart update failed: ".concat(a.status," ").concat(a.statusText));return[2]}})})},e.prototype.addHiddenInputsToForms=function(){var e=this,t=function(){var t=document.querySelectorAll('form[action*="/cart/add"]');0!==t.length&&t.forEach(function(t){if(!t.hasAttribute("data-pack-injected")){var n=e.getAttributionEntries();if(n){for(var i=0,o=n;i<o.length;i++){var r=o[i],a=r.key,l=r.value;e.addHiddenInput(t,"attributes[".concat(a,"]"),l)}t.setAttribute("data-pack-injected","true")}}})},n=function(){document.body&&new MutationObserver(function(){t()}).observe(document.body,{childList:!0,subtree:!0})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){t(),n()}):(t(),n())},e.prototype.addHiddenInputsToCheckoutForms=function(){var e=this,t=function(){var t=document.querySelectorAll('form[action*="/checkout"], form[action*="/cart/"], form[action$="/cart"]');0!==t.length&&t.forEach(function(t){if(!t.hasAttribute("data-pack-checkout-injected")){var n=e.getAttributionEntries();if(n){for(var i=0,o=n;i<o.length;i++){var r=o[i],a=r.key,l=r.value;e.addHiddenInput(t,"attributes[".concat(a,"]"),l)}t.setAttribute("data-pack-checkout-injected","true")}}})},n=function(){document.body&&new MutationObserver(function(){t()}).observe(document.body,{childList:!0,subtree:!0})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){t(),n()}):(t(),n())},e.prototype.interceptCheckoutNavigation=function(){var e=this;document.addEventListener("click",function(t){var n=t.target.closest("a");if(n){var i=n.getAttribute("href");if(i&&/\/(checkout|cart\/\d+:\d+|cart\?)/.test(i)){var o=e.getAttributionEntries();if(!o)return;var r=new URLSearchParams(o.map(function(e){var t=e.key,n=e.value;return["attributes[".concat(t,"]"),n]})).toString();t.preventDefault();var a=i.includes("?")?"&":"?",l="".concat(i).concat(a).concat(r);window.location.href=l}}},!0),this.interceptDynamicCheckoutButtons()},e.prototype.interceptDynamicCheckoutButtons=function(){var e=this,t=function(){return n(e,void 0,void 0,function(){var e,t,n;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,5,,6]),(e=this.getAttributionEntries())?[4,fetch("/cart.js")]:[2];case 1:return[4,i.sent().json()];case 2:return t=i.sent(),(null===(n=t.attributes)||void 0===n?void 0:n.pb_variant__)?[3,4]:[4,fetch("/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({attributes:dc(e)})})];case 3:i.sent(),i.label=4;case 4:return[3,6];case 5:return i.sent(),[3,6];case 6:return[2]}})})};document.addEventListener("click",function(e){e.target.closest('.shopify-payment-button, [data-shopify-pay], .shopify-payment-button__button, .dynamic-checkout__content, [name="checkout"], button[data-testid="Checkout-button"]')&&t()},!0),document.addEventListener("submit",function(e){var n,i=e.target;((null===(n=i.action)||void 0===n?void 0:n.includes("/checkout"))||i.querySelector('[name="checkout"]'))&&t()},!0)},e.prototype.observeCartChangesHydrogen=function(){var e=this;if("undefined"!=typeof PerformanceObserver)try{this.cartObserver=new PerformanceObserver(function(t){t.getEntries().forEach(function(t){var n=t,i=["xmlhttprequest","fetch"].includes(n.initiatorType),o=/\/api\/\d{4}-\d{2}\/graphql\.json/.test(n.name),r=/\/api\/cart/.test(n.name),a=/\/cart\.data/.test(n.name);if(i&&(o||r||a)){var l=o||a?"graphql":"api";setTimeout(function(){e.injectAttributesHydrogenAfterCart(l)},"graphql"===l?500:200)}})}),this.cartObserver.observe({entryTypes:["resource"]})}catch(e){}},e.prototype.injectAttributesHydrogenAfterCart=function(e){return n(this,void 0,void 0,function(){var t;return i(this,function(n){switch(n.label){case 0:if(!(t=this.getAttributionEntries()))return[2];if(this.shouldSkipHydrogenInjection(t))return[2];n.label=1;case 1:return n.trys.push([1,6,,7]),"graphql"!==e?[3,3]:[4,this.injectViaGraphQL(t)];case 2:return n.sent(),[3,5];case 3:return[4,this.injectViaApiCart(t)];case 4:n.sent(),n.label=5;case 5:return[3,7];case 6:return n.sent(),[3,7];case 7:return[2]}})})},e.prototype.interceptCheckoutNavigationHydrogen=function(){var e=this,t=!1;document.addEventListener("click",function(o){return n(e,void 0,void 0,function(){var e,n,r,a;return i(this,function(i){switch(i.label){case 0:if(e=o.target,!(n=e.closest("a")))return[2];if(!(r=n.getAttribute("href")))return[2];if(!(/\/(checkout|cart\/\d+:\d+)/.test(r)||r.includes("checkout.shopify.com")||r.includes("/checkouts/"))||t)return[3,5];if(!(a=this.getAttributionEntries()))return[2];o.preventDefault(),o.stopPropagation(),t=!0,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.injectAttributesHydrogen(a)];case 2:case 3:return i.sent(),[3,4];case 4:t=!1,window.location.href=r,i.label=5;case 5:return[2]}})})},!0),window.addEventListener("beforeunload",function(){if(!e.getStorefrontToken()){var t=e.getAttributionEntries();if(t){var n=new FormData;n.append("action","AttributesUpdateInput"),n.append("attributes",JSON.stringify(t)),navigator.sendBeacon("/api/cart",n)}}})},e.prototype.observeCartChanges=function(){var e=this;if("undefined"!=typeof PerformanceObserver)try{this.cartObserver=new PerformanceObserver(function(t){t.getEntries().forEach(function(t){var n=t,i=["xmlhttprequest","fetch"].includes(n.initiatorType),o=/\/cart\/add\.js/.test(n.name);i&&o&&setTimeout(function(){e.injectAttributesViaAPI()},100)})}),this.cartObserver.observe({entryTypes:["resource"]})}catch(e){}},e.prototype.injectAttributesViaAPI=function(){return n(this,void 0,void 0,function(){var e,t;return i(this,function(n){switch(n.label){case 0:if(!(e=this.getAttributionEntries()))return[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,fetch("/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({attributes:dc(e)})})];case 2:if(!(t=n.sent()).ok)throw new Error("Cart update failed: ".concat(t.status," ").concat(t.statusText));return[3,4];case 3:return n.sent(),[3,4];case 4:return[2]}})})},e.prototype.addHiddenInput=function(e,t,n){if(!e.querySelector('input[name="'.concat(t,'"]'))){var i=document.createElement("input");i.type="hidden",i.name=t,i.value=n,e.appendChild(i)}},e.prototype.getCookie=function(e){var t,n="; ".concat(document.cookie).split("; ".concat(e,"="));return 2===n.length&&(null===(t=n.pop())||void 0===t?void 0:t.split(";").shift())||null},e.prototype.destroy=function(){this.cartObserver&&(this.cartObserver.disconnect(),this.cartObserver=null),this.initialized=!1},e}(),uc="#95BF47",pc=function(){function e(e){void 0===e&&(e={});var t=this;this.detectedSections=new Map,this.hiddenSections=new Set,this.overlayContainer=null,this.activeOverlay=null,this.hoveredSection=null,this.isActive=!1,this.playbookContainer=null,this.handleMouseMove=function(e){var n;if(t.isActive){var i=e.target;if(!i.closest("[data-playbook-section-overlay]")){var o=t.findSectionAncestor(i);(null===(n=t.hoveredSection)||void 0===n?void 0:n.element)!==(null==o?void 0:o.element)&&(t.hoveredSection=o,o&&Fo.debug("[StoreSectionManager] Showing overlay for:",o.selector),t.updateOverlay())}}},this.handleMouseLeave=function(){t.hoveredSection&&(t.hoveredSection=null,t.updateOverlay())},this.handleScroll=function(){if(t.hoveredSection&&t.activeOverlay){var e=t.hoveredSection.element.getBoundingClientRect();t.activeOverlay.style.top="".concat(e.top,"px"),t.activeOverlay.style.left="".concat(e.left,"px"),t.activeOverlay.style.width="".concat(e.width,"px"),t.activeOverlay.style.height="".concat(e.height,"px")}},this.handleOverlayClick=function(e){e.preventDefault(),e.stopPropagation(),t.options.readOnly||t.hoveredSection&&t.toggleSectionVisibility(t.hoveredSection.selector)},this.options=e}return e.prototype.initialize=function(e){void 0===e&&(e="playbook-hero"),this.playbookContainer=document.getElementById(e),this.playbookContainer||Fo.warn("[StoreSectionManager] Playbook container not found, cannot determine section positions"),this.detectSections(),this.createOverlayContainer(),this.setupEventListeners(),this.isActive=!0,Fo.debug("[StoreSectionManager] Initialized with",this.detectedSections.size,"sections"),this.options.onSectionsDetected&&this.options.onSectionsDetected(Array.from(this.detectedSections.values()))},e.prototype.detectSections=function(){var e,t=this;this.detectedSections.clear();var n=(null===(e=this.playbookContainer)||void 0===e?void 0:e.parentElement)||document.querySelector("main")||document.body,i=n.querySelectorAll('[data-section-type], .shopify-section, [id^="shopify-section-"]'),o=n.querySelectorAll("[data-comp]");i.forEach(function(e){if(!t.isPlaybookElement(e)&&!t.isAbovePlaybook(e)){var n=t.generateSelector(e),i=t.getSectionLabel(e,"shopify");t.detectedSections.set(n,{selector:n,label:i,element:e,type:"shopify"})}}),o.forEach(function(e){if(!t.isPlaybookElement(e)&&!(t.isAbovePlaybook(e)||"SECTION"!==e.tagName&&e.querySelector("section[data-comp]"))){var n=t.generateSelector(e),i=t.getSectionLabel(e,"pack");t.detectedSections.set(n,{selector:n,label:i,element:e,type:"pack"})}})},e.prototype.isPlaybookElement=function(e){return!!this.playbookContainer&&(e===this.playbookContainer||e.contains(this.playbookContainer)||this.playbookContainer.contains(e))},e.prototype.isAbovePlaybook=function(e){return!!this.playbookContainer&&!!(e.compareDocumentPosition(this.playbookContainer)&Node.DOCUMENT_POSITION_FOLLOWING)},e.prototype.findSectionAncestor=function(e){if(!this.playbookContainer)return null;var t=this.playbookContainer.parentElement;if(!t)return null;for(var n=e,i=null,o=null;n&&n!==document.body;){if("SECTION"!==n.tagName||!n.hasAttribute("data-comp")||this.isPlaybookElement(n)||this.isAbovePlaybook(n)||(i=n),!this.isShopifySection(n)||this.isPlaybookElement(n)||this.isAbovePlaybook(n)||(o=n),n.parentElement===t){if(n!==this.playbookContainer&&!this.isAbovePlaybook(n)){if(i)return{selector:this.generateSelector(i),label:this.getSectionLabel(i,"pack"),element:i,type:"pack"};if(n.querySelector("section[data-comp]"))return null;if(o&&o!==n)return{selector:this.generateSelector(o),label:this.getSectionLabel(o,"shopify"),element:o,type:"shopify"};if(n.querySelector('.shopify-section, [id^="shopify-section-"]')&&!this.isShopifySection(n))return null;var r=this.generateSelector(n),a=n.hasAttribute("data-comp")?"pack":"shopify";return{selector:r,label:this.getSectionLabel(n,a),element:n,type:a}}return null}n=n.parentElement}return null},e.prototype.isShopifySection=function(e){return e.classList.contains("shopify-section")||e.id.startsWith("shopify-section-")||e.hasAttribute("data-section-type")},e.prototype.generateSelector=function(e){var t,n=e.getAttribute("data-comp-id");if(n)return'[data-comp-id="'.concat(n,'"]');if(e.id){var i=e.id.match(/^shopify-section-template--\d+__(.+)$/);if(i)return'[id*="shopify-section-"][id$="__'.concat(i[1],'"]')}var o=e.getAttribute("data-comp");if(o){var r=Array.from(document.querySelectorAll('[data-comp="'.concat(o,'"]'))).indexOf(e);return'[data-comp="'.concat(o,'"]:nth-of-type(').concat(r+1,")")}if(e.id)return"#".concat(e.id);for(var a=[],l=e;l&&l!==document.body;){var s=l.tagName.toLowerCase();if(l.id){s="#".concat(l.id),a.unshift(s);break}var d=null===(t=l.parentElement)||void 0===t?void 0:t.children;d&&d.length>1&&(r=Array.from(d).indexOf(l)+1,s+=":nth-child(".concat(r,")")),a.unshift(s),l=l.parentElement}return a.join(" > ")},e.prototype.getSectionLabel=function(e,t){if("shopify"===t){var n=e.getAttribute("data-section-type");if(n)return this.formatLabel(n);if(e.id.startsWith("shopify-section-"))return this.formatLabel(e.id.replace("shopify-section-",""))}if("pack"===t){var i=e.getAttribute("data-comp");if(i)return this.formatLabel(i)}return"Section"},e.prototype.formatLabel=function(e){return e.replace(/[-_]/g," ").replace(/\b\w/g,function(e){return e.toUpperCase()}).trim()},e.prototype.createOverlayContainer=function(){var e;null===(e=this.overlayContainer)||void 0===e||e.remove(),this.overlayContainer=document.createElement("div"),this.overlayContainer.id="playbook-section-overlays",this.overlayContainer.style.cssText="\n      position: fixed;\n      top: 0;\n      left: 0;\n      width: 100%;\n      height: 100%;\n      pointer-events: none;\n      z-index: 2147483646;\n    ",document.body.appendChild(this.overlayContainer)},e.prototype.setupEventListeners=function(){document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseleave",this.handleMouseLeave),document.addEventListener("scroll",this.handleScroll,!0)},e.prototype.updateOverlay=function(){var e;if(this.overlayContainer&&(null===(e=this.activeOverlay)||void 0===e||e.remove(),this.activeOverlay=null,this.hoveredSection)){var t=this.hoveredSection.element.getBoundingClientRect(),n=this.hiddenSections.has(this.hoveredSection.selector);this.activeOverlay=document.createElement("div"),this.activeOverlay.setAttribute("data-playbook-section-overlay","true"),this.activeOverlay.style.cssText="\n      position: fixed;\n      top: ".concat(t.top,"px;\n      left: ").concat(t.left,"px;\n      width: ").concat(t.width,"px;\n      height: ").concat(t.height,"px;\n      border: 2px solid ").concat(uc,";\n      border-radius: 12px;\n      pointer-events: auto;\n      cursor: ").concat(this.options.readOnly?"default":"pointer",";\n      box-sizing: border-box;\n    "),this.activeOverlay.addEventListener("click",this.handleOverlayClick);var i=document.createElement("div");i.style.cssText="\n      position: absolute;\n      bottom: 8px;\n      left: 8px;\n      background: ".concat(uc,";\n      color: white;\n      padding: 5px 10px;\n      border-radius: 6px;\n      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n      font-size: 11px;\n      font-weight: 500;\n      display: flex;\n      align-items: center;\n      gap: 0;\n      box-shadow: 0 2px 8px rgba(0,0,0,0.15);\n    ");var o=n?'<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n           <path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"/>\n           <path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"/>\n           <line x1="1" y1="1" x2="23" y2="23"/>\n         </svg>':'<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n           <path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>\n           <circle cx="12" cy="12" r="3"/>\n         </svg>',r=n?"Hidden":"Visible";i.innerHTML="".concat('<svg width="12" height="14" viewBox="0 0 44 50" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n      <path d="M30.0164 5.94383C30.0164 5.94383 29.4539 6.10447 28.5297 6.38559C28.3689 5.8635 28.1279 5.26109 27.8064 4.61852C26.7616 2.61049 25.1945 1.52615 23.3461 1.52615C23.2256 1.52615 23.105 1.52615 22.9443 1.56632C22.9041 1.48599 22.8237 1.44583 22.7836 1.36551C21.9799 0.481978 20.9352 0.0803717 19.6895 0.120532C17.2785 0.200854 14.8676 1.92776 12.9388 5.02013C11.5726 7.18881 10.5279 9.91973 10.2466 12.0482C7.47397 12.8916 5.54521 13.494 5.50502 13.5342C4.09863 13.976 4.05845 14.0161 3.89772 15.3414C3.65662 16.3454 0 44.6587 0 44.6587L30.3781 49.9197V5.8635C30.2174 5.90367 30.0968 5.90366 30.0164 5.94383ZM22.9845 8.1125C21.3772 8.59443 19.6091 9.15668 17.8813 9.67876C18.3635 7.79121 19.3279 5.90367 20.453 4.65869C20.895 4.21692 21.4977 3.69483 22.1808 3.37354C22.8639 4.81933 23.0247 6.7872 22.9845 8.1125ZM19.7297 1.72696C20.2922 1.72696 20.7744 1.84744 21.1763 2.0884C20.5333 2.40969 19.8904 2.93178 19.2877 3.53419C17.7607 5.18077 16.5954 7.75105 16.1132 10.2009C14.6667 10.6426 13.2201 11.0844 11.8941 11.486C12.7379 7.67073 15.9927 1.84744 19.7297 1.72696ZM15.0283 23.8153C15.189 26.3856 21.9799 26.9478 22.3817 33.0121C22.663 37.7912 19.8502 41.0442 15.7918 41.2852C10.8895 41.6065 8.19726 38.7149 8.19726 38.7149L9.24201 34.2972C9.24201 34.2972 11.9342 36.3454 14.1041 36.1848C15.5105 36.1045 16.0329 34.9398 15.9927 34.1366C15.7918 30.7631 10.2466 30.9639 9.88493 25.4217C9.56347 20.8033 12.6174 16.1045 19.368 15.6627C21.9799 15.5021 23.3059 16.1446 23.3059 16.1446L21.779 21.9278C21.779 21.9278 20.0511 21.1245 18.0018 21.2852C15.0283 21.486 14.9881 23.3735 15.0283 23.8153ZM24.5918 7.63057C24.5918 6.42575 24.431 4.69885 23.8685 3.25306C25.7169 3.61451 26.6009 5.6627 27.0027 6.90768C26.2794 7.10848 25.4758 7.34945 24.5918 7.63057Z"/>\n      <path d="M31.3828 49.7591L44.0001 46.6266C44.0001 46.6266 38.5754 9.95992 38.5353 9.71895C38.4951 9.47799 38.2942 9.31735 38.0933 9.31735C37.8923 9.31735 34.3563 9.23702 34.3563 9.23702C34.3563 9.23702 32.1864 7.14867 31.3828 6.34546V49.7591Z"/>\n    </svg>').concat('<span style="width:1px;height:14px;background:rgba(255,255,255,0.4);margin:0 8px;"></span>','<span style="display:flex;align-items:center;gap:4px;">').concat(o,"<span>").concat(r,"</span></span>"),this.activeOverlay.appendChild(i),this.overlayContainer.appendChild(this.activeOverlay)}},e.prototype.toggleSectionVisibility=function(e){var t=this.hiddenSections.has(e);t?this.hiddenSections.delete(e):this.hiddenSections.add(e),this.injectHidingStyleTag("playbook-section-editor-hiding",Array.from(this.hiddenSections),"opacity: 0.3 !important; transition: opacity 0.2s ease !important;"),this.updateOverlay(),this.options.onSectionToggle&&this.options.onSectionToggle(e,!t),Fo.debug("[StoreSectionManager] Section toggled:",e,t?"visible":"hidden")},e.prototype.injectHidingStyleTag=function(e,t,n){var i,o=t.map(function(e){try{return document.querySelector(e),"".concat(e," { ").concat(n," }")}catch(t){return Fo.warn("[StoreSectionManager] Invalid selector:",e),null}}).filter(Boolean).join("\n");if(null===(i=document.getElementById(e))||void 0===i||i.remove(),o){var r=document.createElement("style");r.id=e,r.textContent=o,document.head.appendChild(r)}},e.prototype.setHiddenSections=function(e){this.hiddenSections=new Set(e),this.injectHidingStyleTag("playbook-section-editor-hiding",e,"opacity: 0.3 !important; transition: opacity 0.2s ease !important;"),Fo.debug("[StoreSectionManager] Hidden sections set:",e.length)},e.prototype.getHiddenSections=function(){return Array.from(this.hiddenSections)},e.prototype.getDetectedSections=function(){return Array.from(this.detectedSections.values())},e.prototype.applySectionHiding=function(e){e.length&&(this.injectHidingStyleTag("playbook-section-hiding",e,"display: none !important;"),Fo.debug("[StoreSectionManager] Hidden sections applied:",e))},e.prototype.destroy=function(){var e,t,n;this.isActive=!1,document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseleave",this.handleMouseLeave),document.removeEventListener("scroll",this.handleScroll,!0),null===(e=this.overlayContainer)||void 0===e||e.remove(),this.overlayContainer=null,this.activeOverlay=null,null===(t=document.getElementById("playbook-section-editor-hiding"))||void 0===t||t.remove(),null===(n=document.getElementById("playbook-section-hiding"))||void 0===n||n.remove(),this.detectedSections.clear(),this.hiddenSections.clear(),Fo.debug("[StoreSectionManager] Destroyed")},e}(),hc=function(){function e(){this.isPreviewMode=!1,this.parentOrigin=null,this.renderCallback=null,this.highlightCallback=null,this.highlightElementCallback=null,this.uploadingFieldCallback=null,this.viewportChangeCallback=null,this._selectedSectionId=null,this._selectedElementId=null,this._uploadingField=null,this._viewport="desktop",this.storeSectionManager=null,this._readOnly=!1,this._generatingFields=new Set,this.generatingFieldsCallback=null,this.isInIframe()?(Fo.debug("[Preview Mode] Detected iframe context, initializing preview mode"),this.setupMessageListener(),this.setupKeyboardListeners(),this.setupNavigationPrevention(),this.requestHandshake()):Fo.debug("[Preview Mode] Not in iframe, preview mode will not activate")}return e.prototype.isInIframe=function(){try{return window.self!==window.top}catch(e){return!0}},e.prototype.setupMessageListener=function(){var e=this;window.addEventListener("message",function(t){var n=t.data;if("playbook-preview"===(null==n?void 0:n.type))return"handshake"===n.action?(e.parentOrigin=t.origin,e.isPreviewMode=!0,void Fo.debug("[Preview Mode] Handshake received from",t.origin)):void(e.parentOrigin&&t.origin!==e.parentOrigin?Fo.warn("[Preview Mode] Message from unexpected origin:",t.origin):e.handleMessage(n))})},e.prototype.setupKeyboardListeners=function(){var e=this;window.addEventListener("keydown",function(t){e.isPreviewMode&&"Escape"===t.key&&(t.preventDefault(),t.stopPropagation(),(e._selectedSectionId||e._selectedElementId)&&(Fo.debug("[Preview Mode] Escape pressed, deselecting"),e.notifyElementClicked("",""),e._selectedSectionId=null,e._selectedElementId=null,e.highlightElementCallback&&e.highlightElementCallback(null,null)))})},e.prototype.setupNavigationPrevention=function(){var e=this;document.addEventListener("click",function(t){if(e.isPreviewMode){var n=t.target.closest("a");if(n){var i=n.getAttribute("href");if(i&&i.startsWith("#"))return;t.preventDefault(),t.stopPropagation(),Fo.debug("[Preview Mode] Prevented navigation to:",i),e.notifyNavigationPrevented(i||"","link")}}},!0),document.addEventListener("submit",function(t){if(e.isPreviewMode){var n=t.target.getAttribute("action")||"";!n||"#"===n||n.startsWith("javascript:")||n.startsWith("#")||(t.preventDefault(),t.stopPropagation(),Fo.debug("[Preview Mode] Prevented form submission to:",n),e.notifyNavigationPrevented(n,"form"))}},!0)},e.prototype.notifyNavigationPrevented=function(e,t){this.sendMessage("navigation-prevented",{url:e,type:t})},e.prototype.handleMessage=function(e){var t,n,i,o,r,a,l,s,d,c,u,p,h,m,f,g;switch(e.action){case"handshake":case"update-overrides":break;case"render-hero":Fo.debug("[Preview Mode] Rendering hero:",null===(n=null===(t=e.payload)||void 0===t?void 0:t.hero)||void 0===n?void 0:n.id),this._readOnly=!!(null===(i=e.payload)||void 0===i?void 0:i.readOnly),this.renderCallback&&e.payload?this.renderCallback(e.payload).catch(function(e){Fo.error("[Preview Mode] Render error:",e)}):Fo.warn("[Preview Mode] No render callback or payload");break;case"set-viewport":var b=null===(o=e.payload)||void 0===o?void 0:o.viewport;!b||"mobile"!==b&&"desktop"!==b||(Fo.debug("[Preview Mode] Viewport changed:",b),this._viewport=b,this.applyViewportOverflow(b),this.viewportChangeCallback&&this.viewportChangeCallback(b));break;case"highlight-section":Fo.debug("[Preview Mode] Highlight section:",null===(r=e.payload)||void 0===r?void 0:r.sectionId),this._selectedSectionId=(null===(a=e.payload)||void 0===a?void 0:a.sectionId)||null,this._selectedElementId=null,this.highlightCallback&&this.highlightCallback(this._selectedSectionId);break;case"highlight-element":Fo.debug("[Preview Mode] Highlight element:",null===(l=e.payload)||void 0===l?void 0:l.sectionId,null===(s=e.payload)||void 0===s?void 0:s.elementId),this._selectedSectionId=(null===(d=e.payload)||void 0===d?void 0:d.sectionId)||null,this._selectedElementId=(null===(c=e.payload)||void 0===c?void 0:c.elementId)||null,this.highlightElementCallback&&this.highlightElementCallback(this._selectedSectionId,this._selectedElementId);break;case"upload-started":Fo.debug("[Preview Mode] Upload started:",null===(u=e.payload)||void 0===u?void 0:u.sectionId,null===(p=e.payload)||void 0===p?void 0:p.field),this._uploadingField=e.payload?{sectionId:e.payload.sectionId,field:e.payload.field}:null,this.uploadingFieldCallback&&this.uploadingFieldCallback(this._uploadingField);break;case"upload-complete":Fo.debug("[Preview Mode] Upload complete"),this._uploadingField=null,this.uploadingFieldCallback&&this.uploadingFieldCallback(null);break;case"detect-store-sections":Fo.debug("[Preview Mode] Detecting store sections"),this.initializeStoreSectionManager();break;case"set-hidden-store-sections":Fo.debug("[Preview Mode] Setting hidden store sections:",null===(h=e.payload)||void 0===h?void 0:h.selectors),this.storeSectionManager&&(null===(m=e.payload)||void 0===m?void 0:m.selectors)&&this.storeSectionManager.setHiddenSections(e.payload.selectors);break;case"image-gen-started":(null===(f=e.payload)||void 0===f?void 0:f.key)&&(this._generatingFields.add(e.payload.key),this._generatingFields=new Set(this._generatingFields),this.generatingFieldsCallback&&this.generatingFieldsCallback(this._generatingFields));break;case"image-gen-complete":(null===(g=e.payload)||void 0===g?void 0:g.key)&&(this._generatingFields.delete(e.payload.key),this._generatingFields=new Set(this._generatingFields),this.generatingFieldsCallback&&this.generatingFieldsCallback(this._generatingFields))}},e.prototype.requestHandshake=function(){Fo.debug("[Preview Mode] Sending ready message to parent"),window.parent.postMessage({type:"playbook-preview",action:"ready"},"*")},e.prototype.sendMessage=function(e,t){if(this.parentOrigin){var n={type:"playbook-preview",action:e,payload:t};window.parent.postMessage(n,this.parentOrigin)}else Fo.warn("[Preview Mode] Cannot send message, no parent origin")},e.prototype.isInIframeContext=function(){return this.isInIframe()},e.prototype.isActive=function(){return this.isPreviewMode},e.prototype.onRenderHero=function(e){this.renderCallback=e},e.prototype.requestTextEdit=function(e,t,n){Fo.debug("[Preview Mode] Text edit:",e,t),this.sendMessage("edit-request",{type:"text",sectionId:e,field:t,currentValue:n})},e.prototype.requestImageEdit=function(e,t,n,i){var o="upload"===(null==i?void 0:i.mode)?"open-file-upload":"focal"===(null==i?void 0:i.mode)?"open-focal-point":"open-media-picker";Fo.debug("[Preview Mode] Image edit:",e,t,(null==i?void 0:i.mode)||"picker"),this.sendMessage(o,{sectionId:e,field:t,currentUrl:n})},e.prototype.requestIconEdit=function(e,t,n){Fo.debug("[Preview Mode] Icon edit:",e,t),this.sendMessage("open-icon-picker",{sectionId:e,field:t,currentIcon:n})},e.prototype.requestUrlEdit=function(e,t,n){Fo.debug("[Preview Mode] URL edit:",e,t),this.sendMessage("open-url-picker",{sectionId:e,field:t,currentUrl:n})},e.prototype.notifyTextChanged=function(e,t,n,i){Fo.debug("[Preview Mode] Text changed:",e,t),this.sendMessage("text-changed",{sectionId:e,field:t,oldValue:n,newValue:i})},e.prototype.notifyColorChanged=function(e,t,n){Fo.debug("[Preview Mode] Color changed:",e,t,n),this.sendMessage("color-changed",{sectionId:e,field:t,color:n})},e.prototype.onHighlightSection=function(e){this.highlightCallback=e},e.prototype.notifySectionClicked=function(e){Fo.debug("[Preview Mode] Section clicked:",e),this.sendMessage("section-clicked",{sectionId:e})},e.prototype.notifyElementClicked=function(e,t){Fo.debug("[Preview Mode] Element clicked:",e,t),this.sendMessage("element-clicked",{sectionId:e,elementId:t})},e.prototype.notifySectionReorder=function(e,t){Fo.debug("[Preview Mode] Section reorder:",e,t),this.sendMessage("section-reorder",{sectionId:e,direction:t})},e.prototype.notifySectionDelete=function(e){Fo.debug("[Preview Mode] Section delete:",e),this.sendMessage("section-delete",{sectionId:e})},e.prototype.notifySectionInsertAt=function(e){Fo.debug("[Preview Mode] Section insert at:",e),this.sendMessage("section-insert-at",{index:e})},e.prototype.notifySectionScrolledOutOfView=function(e){Fo.debug("[Preview Mode] Section scrolled out of view:",e),this.sendMessage("section-scrolled-out-of-view",{sectionId:e})},e.prototype.onHighlightElement=function(e){this.highlightElementCallback=e},e.prototype.getSelectedSectionId=function(){return this._selectedSectionId},e.prototype.getSelectedElementId=function(){return this._selectedElementId},e.prototype.onUploadingFieldChange=function(e){this.uploadingFieldCallback=e},e.prototype.getUploadingField=function(){return this._uploadingField},e.prototype.applyViewportOverflow=function(e){"mobile"===e?document.documentElement.classList.add("pb-mobile-viewport"):document.documentElement.classList.remove("pb-mobile-viewport")},e.prototype.onViewportChange=function(e){this.viewportChangeCallback=e},e.prototype.getViewport=function(){return this._viewport},e.prototype.initializeStoreSectionManager=function(e){var t=this;this.storeSectionManager&&this.storeSectionManager.destroy(),this.storeSectionManager=new pc({onSectionsDetected:function(e){t.notifyStoreSectionsDetected(e)},onSectionToggle:function(e,n){t.notifyStoreSectionToggled(e,n)},readOnly:e}),this.storeSectionManager.initialize()},e.prototype.notifyStoreSectionsDetected=function(e){var t=e.map(function(e){return{selector:e.selector,label:e.label,type:e.type}});this.sendMessage("store-sections-detected",{sections:t})},e.prototype.notifyStoreSectionToggled=function(e,t){this.sendMessage("store-section-toggled",{selector:e,hidden:t})},e.prototype.getStoreSectionManager=function(){return this.storeSectionManager},e.prototype.onGeneratingFieldsChange=function(e){this.generatingFieldsCallback=e},e.prototype.getGeneratingFields=function(){return this._generatingFields},e.prototype.isReadOnly=function(){return this._readOnly},e.prototype.requestImageRegenerate=function(e,t){Fo.debug("[Preview Mode] Request image regenerate:",e,t),this.sendMessage("request-image-regenerate",{sectionId:e,field:t})},e.prototype.requestImagePrompt=function(e,t){Fo.debug("[Preview Mode] Request image prompt:",e,t),this.sendMessage("request-image-prompt",{sectionId:e,field:t})},e.prototype.requestCancelGeneration=function(e,t){Fo.debug("[Preview Mode] Request cancel generation:",e,t),this.sendMessage("request-cancel-generation",{sectionId:e,field:t})},e}();function mc(e){return e?/^#[0-9a-fA-F]{8}$/.test(e)?e.slice(0,7):e:"#000000"}function fc(e){try{var t=e.replace("#","");return 3===t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),6!==t.length||(.299*parseInt(t.substring(0,2),16)+.587*parseInt(t.substring(2,4),16)+.114*parseInt(t.substring(4,6),16))/255>.5?"#000000":"#FFFFFF"}catch(e){return"#000000"}}function gc(e){try{var t=e.replace("#","");return(.299*parseInt(t.substring(0,2),16)+.587*parseInt(t.substring(2,4),16)+.114*parseInt(t.substring(4,6),16))/255>.9}catch(e){return!1}}function bc(e,t){void 0===t&&(t=.15);try{var n=e.replace("#",""),i=Math.max(0,Math.floor(parseInt(n.substring(0,2),16)*(1-t))),o=Math.max(0,Math.floor(parseInt(n.substring(2,4),16)*(1-t))),r=Math.max(0,Math.floor(parseInt(n.substring(4,6),16)*(1-t)));return"#".concat(i.toString(16).padStart(2,"0")).concat(o.toString(16).padStart(2,"0")).concat(r.toString(16).padStart(2,"0"))}catch(t){return e}}var vc=null,yc=null;function xc(e,t){void 0===t&&(t=!1);var n=e.colors,i=e.typography;n&&n.primary&&(t?function(e,t){yc&&vc?(vc.innerHTML="",yc.parentNode||document.body.appendChild(yc)):((yc=document.createElement("div")).id="playbook-brand-preview",yc.style.cssText="\n      position: fixed;\n      top: 0;\n      left: 0;\n      right: 0;\n      bottom: 0;\n      width: 100vw;\n      height: 100vh;\n      overflow-y: auto;\n      z-index: 2147483647;\n      background-color: #f9fafb;\n    ",document.body.appendChild(yc),vc=yc.attachShadow({mode:"open"})),wc(vc,e,t)}(n,i):(document.body.innerHTML="",document.body.style.margin="0",document.body.style.padding="0",function(e,t){yc&&vc?(vc.innerHTML="",yc.parentNode||document.body.appendChild(yc)):((yc=document.createElement("div")).id="playbook-brand-preview",yc.style.cssText="display: block; width: 100%; min-height: 100vh;",document.body.appendChild(yc),vc=yc.attachShadow({mode:"open"})),wc(vc,e,t)}(n,i)))}function wc(e,t,n){var i,o,r,a,l,s,d,c=mc((null===(i=t.primary)||void 0===i?void 0:i.base)||"#000000"),u=(null===(o=null==n?void 0:n.fontFamilies)||void 0===o?void 0:o.heading)||"system-ui, -apple-system, sans-serif",p=(null===(r=null==n?void 0:n.fontFamilies)||void 0===r?void 0:r.body)||"system-ui, -apple-system, sans-serif",h=(null==n?void 0:n.scale)||{},m=h.h1||{fontSize:"56px",fontWeight:"700",lineHeight:"1.23"},f=h.h2||{fontSize:"40px",fontWeight:"700",lineHeight:"1.35"},g=h.h3||{fontSize:"30px",fontWeight:"700",lineHeight:"1.27"},b=h.body||{fontSize:"16px",fontWeight:"400",lineHeight:"1.375"},v=t.buttonStyles||{},y=v.borderRadius||"2px",x=v.textTransform||"none",w=v.padding||"15px 30px",k=v.boxShadow||"none",C=v.borderWidth||"0px",_=v.borderColor||"transparent",I=v.borderStyle||"solid",S=!1!==v.hoverScale,M=v.fontFamily||"",A=v.fontSize||"15px",T=v.fontWeight||"700",E=v.letterSpacing||"1.2px",P=document.createElement("style");P.textContent="\n    :host {\n      display: block;\n      width: 100%;\n      min-height: 100vh;\n      background-color: #f9fafb;\n      font-family: ".concat(p,";\n      color: #111827;\n      line-height: 1.5;\n    }\n\n    * {\n      box-sizing: border-box;\n      margin: 0;\n      padding: 0;\n    }\n\n    .preview-button {\n      display: inline-flex;\n      align-items: center;\n      justify-content: center;\n      font-weight: ").concat(T,";\n      letter-spacing: ").concat(E,";\n      font-size: ").concat(A,";\n      ").concat(M?"font-family: ".concat(M,";"):"","\n      line-height: 20px;\n      transition: all 0.2s ease-out;\n      cursor: pointer;\n      border-radius: ").concat(y,";\n      text-transform: ").concat(x,";\n      padding: ").concat(w,";\n      box-shadow: ").concat(k,";\n      border-width: ").concat(C,";\n      border-color: ").concat(_,";\n      border-style: ").concat(I,";\n    }\n  "),e.appendChild(P);var L=document.createElement("div");L.style.maxWidth="800px",L.style.margin="0 auto",L.style.padding="32px 24px";var N=document.createElement("p");N.textContent="TYPOGRAPHY",N.style.fontSize="11px",N.style.fontWeight="600",N.style.letterSpacing="0.05em",N.style.color="#9ca3af",N.style.marginBottom="8px",N.style.paddingLeft="4px",L.appendChild(N);var j=document.createElement("div");j.style.marginBottom="24px",j.style.backgroundColor="white",j.style.borderRadius="12px",j.style.padding="32px",j.style.boxShadow="0 1px 3px 0 rgba(0, 0, 0, 0.1)";var z=document.createElement("h1");z.textContent="Hero Headline",z.style.fontSize=m.fontSize,z.style.fontWeight=String(m.fontWeight),z.style.lineHeight=m.lineHeight,z.style.color="#111827",z.style.fontFamily=u,z.style.marginBottom="4px",j.appendChild(z);var O=document.createElement("p");O.textContent="H1 · ".concat(m.fontSize),O.style.fontSize="12px",O.style.color="#9ca3af",O.style.fontFamily="monospace",O.style.marginBottom="20px",j.appendChild(O);var R=document.createElement("h2");R.textContent="Section Heading",R.style.fontSize=f.fontSize,R.style.fontWeight=String(f.fontWeight),R.style.lineHeight=f.lineHeight,R.style.color="#111827",R.style.fontFamily=u,R.style.marginBottom="4px",j.appendChild(R);var $=document.createElement("p");$.textContent="H2 · ".concat(f.fontSize),$.style.fontSize="12px",$.style.color="#9ca3af",$.style.fontFamily="monospace",$.style.marginBottom="20px",j.appendChild($);var B=document.createElement("h3");B.textContent="Feature Title",B.style.fontSize=g.fontSize,B.style.fontWeight=String(g.fontWeight),B.style.lineHeight=g.lineHeight,B.style.color="#111827",B.style.fontFamily=u,B.style.marginBottom="4px",j.appendChild(B);var F=document.createElement("p");F.textContent="H3 · ".concat(g.fontSize),F.style.fontSize="12px",F.style.color="#9ca3af",F.style.fontFamily="monospace",F.style.marginBottom="20px",j.appendChild(F);var D=document.createElement("p");D.textContent="This is how your body text will appear. It's used for descriptions, paragraphs, and general content throughout your landing pages.",D.style.fontSize=b.fontSize,D.style.fontWeight=String(b.fontWeight),D.style.lineHeight=b.lineHeight,D.style.color="#4b5563",D.style.fontFamily=p,D.style.marginBottom="4px",j.appendChild(D);var H=document.createElement("p");H.textContent="Body · ".concat(b.fontSize),H.style.fontSize="12px",H.style.color="#9ca3af",H.style.fontFamily="monospace",j.appendChild(H);var W=document.createElement("div");W.style.marginTop="20px",W.style.paddingTop="16px",W.style.borderTop="1px solid #e5e7eb",W.style.display="flex",W.style.gap="24px",W.style.fontSize="12px",W.style.color="#6b7280";var U=document.createElement("span");U.innerHTML="<strong>Heading:</strong> ".concat(u),W.appendChild(U);var Z=document.createElement("span");Z.innerHTML="<strong>Body:</strong> ".concat(p),W.appendChild(Z),j.appendChild(W),L.appendChild(j);var q=document.createElement("p");q.textContent="SECTION BACKGROUNDS",q.style.fontSize="11px",q.style.fontWeight="600",q.style.letterSpacing="0.05em",q.style.color="#9ca3af",q.style.marginBottom="8px",q.style.paddingLeft="4px",L.appendChild(q);var V=document.createElement("div");V.style.display="flex",V.style.flexDirection="column",V.style.gap="12px";var Y=function(e,t){try{var n=function(e){var t=e.replace("#","");return(.299*parseInt(t.substring(0,2),16)+.587*parseInt(t.substring(2,4),16)+.114*parseInt(t.substring(4,6),16))/255};return Math.abs(n(e)-n(t))<.15}catch(e){return!1}},G=function(e){var n,i=c;if(Y(i,e)){var o=(null===(n=t.secondary)||void 0===n?void 0:n.base)?mc(t.secondary.base):null;i=o&&!Y(o,e)?o:fc(e)}var r=v.hoverBackgroundColor||function(e){try{var t=e.replace("#","");return(.299*parseInt(t.substring(0,2),16)+.587*parseInt(t.substring(2,4),16)+.114*parseInt(t.substring(4,6),16))/255<=.5?function(e,t){void 0===t&&(t=.15);try{var n=e.replace("#",""),i=Math.min(255,Math.floor(parseInt(n.substring(0,2),16)+(255-parseInt(n.substring(0,2),16))*t)),o=Math.min(255,Math.floor(parseInt(n.substring(2,4),16)+(255-parseInt(n.substring(2,4),16))*t)),r=Math.min(255,Math.floor(parseInt(n.substring(4,6),16)+(255-parseInt(n.substring(4,6),16))*t));return"#".concat(i.toString(16).padStart(2,"0")).concat(o.toString(16).padStart(2,"0")).concat(r.toString(16).padStart(2,"0"))}catch(t){return e}}(e):bc(e)}catch(t){return bc(e)}}(i);return{buttonBg:i,buttonText:fc(i),buttonHoverBg:r,buttonHoverText:fc(r)}},J=[],X=t.backgroundColors;if(X&&X.length>0)for(var K=0;K<X.length;K++)J.push({name:"Background ".concat(K+1),color:mc(X[K])});else(null===(a=t.secondary)||void 0===a?void 0:a.base)&&J.push({name:"Secondary",color:mc(t.secondary.base)}),(null===(l=t.primary)||void 0===l?void 0:l.base)&&J.push({name:"Primary",color:mc(t.primary.base)}),(null===(s=t.accent1)||void 0===s?void 0:s.base)&&J.push({name:"Accent 1",color:mc(t.accent1.base)}),(null===(d=t.accent2)||void 0===d?void 0:d.base)&&J.push({name:"Accent 2",color:mc(t.accent2.base)});var Q=function(e){return J.some(function(t){return t.color.toLowerCase()===e.toLowerCase()})};Q("#ffffff")||J.push({name:"White",color:"#FFFFFF"}),Q("#000000")||J.push({name:"Black",color:"#000000"});for(var ee=0,te=J;ee<te.length;ee++){var ne=te[ee],ie=ne.name,oe=ne.color,re=document.createElement("div");re.style.backgroundColor=oe,re.style.borderRadius="12px",re.style.padding="32px",gc(oe)&&(re.style.border="1px solid #e5e7eb");var ae=fc(oe),le="#FFFFFF"===ae?"rgba(255,255,255,0.8)":"rgba(0,0,0,0.6)",se=document.createElement("p");se.textContent="".concat(ie.toUpperCase()," COLOR"),se.style.fontSize="11px",se.style.fontWeight="600",se.style.letterSpacing="0.05em",se.style.color=le,se.style.marginBottom="8px",re.appendChild(se);var de=document.createElement("h2");de.textContent="Example Section Heading",de.style.fontSize=f.fontSize,de.style.fontWeight=String(f.fontWeight),de.style.lineHeight=f.lineHeight,de.style.color=ae,de.style.fontFamily=u,de.style.marginBottom="8px",re.appendChild(de);var ce=document.createElement("p");ce.textContent="This shows how text and buttons appear on your ".concat(ie.toLowerCase()," color background."),ce.style.fontSize="15px",ce.style.color=le,ce.style.fontFamily=p,ce.style.marginBottom="20px",re.appendChild(ce);var ue=G(oe),pe=kc("Button Preview",ue.buttonBg,ue.buttonHoverBg,ue.buttonText,ue.buttonHoverText,S);re.appendChild(pe),V.appendChild(re)}L.appendChild(V),e.appendChild(L)}function kc(e,t,n,i,o,r){void 0===r&&(r=!0);var a=document.createElement("button");a.className="preview-button",a.textContent=e;var l=o||fc(n);return a.style.backgroundColor=t,a.style.color=i,a.addEventListener("mouseenter",function(){a.style.backgroundColor=n,a.style.color=l,r&&(a.style.transform="scale(1.02)")}),a.addEventListener("mouseleave",function(){a.style.backgroundColor=t,a.style.color=i,a.style.transform="scale(1)"}),a}var Cc,_c,Ic=function(){function e(){this.config=null,this.originalContent=null,this.initialized=!1,this.currentPath="",this.navigationListenerActive=!1,this.bundle=[],this.cartInjector=new cc,this.previewMode=new hc}return e.prototype.init=function(e){var o,r,a=this;if(!this.initialized){this.config=e,this.initialized=!0,Fo.debug("[Playbook] Initializing"),u("initialized",{shopDomain:e.shopDomain,apiEndpoint:e.apiEndpoint});var l=window.__PLAYBOOK_ORIGINAL_QUERY__||window.location.search,s=new URLSearchParams(l),d="brand_preview"===s.get("pb_mode");if(Fo.debug("[Playbook] URL:",window.location.href),Fo.debug("[Playbook] Original query string:",window.__PLAYBOOK_ORIGINAL_QUERY__),Fo.debug("[Playbook] Query string used:",l),Fo.debug("[Playbook] pb_mode parameter:",s.get("pb_mode")),d)return Fo.debug("[Playbook] Brand preview mode detected, starting brand preview"),void this.startBrandPreviewMode();if(this.previewMode.isInIframeContext()){Fo.debug("[Playbook] Preview mode active (experience editing)");var c=!(null===(o=window.Shopify)||void 0===o?void 0:o.shop),p=!c,h=null,m=!1,f=function(){return n(a,void 0,void 0,function(){var e,n,o,r,a=this;return i(this,function(i){switch(i.label){case 0:return h?p?(Fo.debug("[Playbook] Proceeding to render hero"),m=!1,[4,lc(t(t({},h.hero),{metadata:t(t({},h.hero.metadata),{edits:h.overrides})}),"top",h.brandDesign,{onTextChanged:function(e,t,n,i){a.previewMode.notifyTextChanged(e,t,n,i)},onColorChanged:function(e,t,n){a.previewMode.notifyColorChanged(e,t,n)},onImageEditRequest:function(e,t,n,i){a.previewMode.requestImageEdit(e,t,n,i)},onIconEditRequest:function(e,t,n){a.previewMode.requestIconEdit(e,t,n)},onUrlEditRequest:function(e,t,n){a.previewMode.requestUrlEdit(e,t,n)},onTextEditRequest:function(e,t,n){a.previewMode.requestTextEdit(e,t,n)},selectedSectionId:this.previewMode.getSelectedSectionId(),selectedElementId:this.previewMode.getSelectedElementId(),onSectionClick:function(e){a.previewMode.notifySectionClicked(e)},onElementClick:function(e,t){a.previewMode.notifyElementClicked(e,t)},onSectionReorder:function(e,t){a.previewMode.notifySectionReorder(e,t)},onSectionDelete:function(e){a.previewMode.notifySectionDelete(e)},onSectionInsertAt:function(e){a.previewMode.notifySectionInsertAt(e)},onSectionScrolledOutOfView:function(e){a.previewMode.notifySectionScrolledOutOfView(e)},uploadingField:this.previewMode.getUploadingField(),viewport:this.previewMode.getViewport(),generatingFields:this.previewMode.getGeneratingFields(),requestImageRegenerate:function(e,t){a.previewMode.requestImageRegenerate(e,t)},requestImagePrompt:function(e,t){a.previewMode.requestImagePrompt(e,t)},requestCancelGeneration:function(e,t){a.previewMode.requestCancelGeneration(e,t)},readOnly:this.previewMode.isReadOnly()})]):(Fo.debug("[Playbook] Waiting for hydration before rendering..."),m=!0,[2]):[2];case 1:return i.sent(),this.logComplete("preview-rendered"),this.previewMode.initializeStoreSectionManager(this.previewMode.isReadOnly()),(null===(r=null===(o=null===(n=h.hero)||void 0===n?void 0:n.domModifications)||void 0===o?void 0:o.hiddenSections)||void 0===r?void 0:r.length)&&(e=this.previewMode.getStoreSectionManager())&&e.setHiddenSections(h.hero.domModifications.hiddenSections),[2]}})})};return c&&(Fo.debug("[Playbook] Hydrogen store detected in preview mode, waiting for hydration"),this.waitForHydration().then(function(){Fo.debug("[Playbook] Hydrogen hydration complete, preview mode ready"),p=!0,m&&(Fo.debug("[Playbook] Triggering pending render after hydration"),f())})),this.previewMode.onRenderHero(function(e){return n(a,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return h=e,[4,f()];case 1:return t.sent(),[2]}})})}),this.previewMode.onHighlightSection(function(){return n(a,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return[4,f()];case 1:return e.sent(),[2]}})})}),this.previewMode.onHighlightElement(function(){return n(a,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return[4,f()];case 1:return e.sent(),[2]}})})}),this.previewMode.onUploadingFieldChange(function(){return n(a,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return[4,f()];case 1:return e.sent(),[2]}})})}),void this.previewMode.onViewportChange(function(){return n(a,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return[4,f()];case 1:return e.sent(),[2]}})})})}if(this.cartInjector.init(),null===(r=window.Shopify)||void 0===r?void 0:r.shop)"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){a.start(),a.setupNavigationListener()}):(this.start(),this.setupNavigationListener());else{var g=function(){(window.requestIdleCallback||function(e){return setTimeout(e,100)})(function(){a.start(),a.setupNavigationListener()})};"complete"===document.readyState?g():window.addEventListener("load",g)}}},e.prototype.setupNavigationListener=function(){var e=this;if(!this.navigationListenerActive){this.navigationListenerActive=!0,this.currentPath=window.location.pathname,Fo.debug("[Playbook] Setting up SPA navigation listener"),window.addEventListener("popstate",function(){e.handleRouteChange()});var t=history.pushState.bind(history);history.pushState=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t.apply(void 0,n),setTimeout(function(){return e.handleRouteChange()},0)};var n=history.replaceState.bind(history);history.replaceState=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];n.apply(void 0,t),setTimeout(function(){return e.handleRouteChange()},0)},Fo.debug("[Playbook] SPA navigation listener active")}},e.prototype.handleRouteChange=function(){var e=window.location.pathname;e!==this.currentPath?(Fo.debug("[Playbook] Route change detected:",this.currentPath,"->",e),this.currentPath=e,sc(),this.start()):Fo.debug("[Playbook] Route change detected but path unchanged, skipping")},e.prototype.start=function(){return n(this,void 0,void 0,function(){var e,t,n,o,r,l,s,d,c,u,p,m,f,g;return i(this,function(i){switch(i.label){case 0:return Fo.debug("[Playbook DEBUG] start() called at",performance.now(),"ms"),e=function(){var e,t,n,i=window.location.pathname,o={path:i,type:"unknown",handle:null};return"/"===i||""===i?(o.type="home",o.handle="/"):i.includes("/products/")?(o.type="product",o.handle=(null===(e=i.split("/products/")[1])||void 0===e?void 0:e.split("?")[0])||null):i.includes("/collections/")?(o.type="collection",o.handle=(null===(t=i.split("/collections/")[1])||void 0===t?void 0:t.split("?")[0])||null):i.includes("/pages/")?(o.type="page",o.handle=(null===(n=i.split("/pages/")[1])||void 0===n?void 0:n.split("?")[0])||null):(o.type="page",o.handle=i),o}(),t=new URLSearchParams(window.location.search),n=t.get("campaign"),o=t.get("variant")||"A",t.get("ad_unit")||t.get("utm_content"),r=t.get("_pv"),l=t.get("_pid"),s=t.get("_ptid"),r&&l&&s?(Fo.debug("[Playbook] Redirect flow: test params detected"),this.setCookie("_pb_variant",r,30),this.setCookie("_pb_impression_id",l,30),this.setCookie("_pb_test_id",s,30),this.setSessionStorage("_pb_variant",r),this.setSessionStorage("_pb_impression_id",l),this.setSessionStorage("_pb_test_id",s),h(s,r),[4,this.renderTestExperience(s,r,l,e)]):[3,2];case 1:return i.sent(),[2];case 2:return r&&s&&!l?(d="true"===t.get("_preview"),Fo.debug("[Playbook] Preview mode: showing",r,"for test",s,"preview bypass:",d),c="preview-"+this.generateUUID(),[4,this.renderTestExperience(s,r,c,e,d)]):[3,4];case 3:return i.sent(),[2];case 4:return(u=t.get("pbk"))?(Fo.debug("[Playbook] Client-side flow: pbk param detected",u),[4,this.handleClientSideAttribution(u,t,e)]):[3,6];case 5:return i.sent(),[2];case 6:if(!n)return Fo.debug("[Playbook] No test params (pbk) found, not rendering experience"),this.logComplete("no-test-params"),[2];if(!function(e,t){return!!t}(0,n))return Fo.debug("[Playbook] Not rendering on this page"),this.logComplete("should-not-render"),[2];i.label=7;case 7:if(i.trys.push([7,9,,10]),p=n,!this.config)throw new Error("Playbook not initialized");return[4,a(this.config,e,p,o)];case 8:return(m=i.sent())&&(f={value:this.originalContent},function(e,t){var n=document.querySelector("main")||document.querySelector('[role="main"]')||document.body;if(n){t.value=n.innerHTML;var i=document.createElement("div");i.id="playbook-content",i.className="playbook-active",i.innerHTML=e.html,n.innerHTML="",n.appendChild(i)}if(e.styles){var o=document.createElement("style");o.id="playbook-styles",o.textContent=e.styles,document.head.appendChild(o)}e.scripts&&function(e){try{new Function(e).call(window)}catch(e){}}(e.scripts)}(m,f),this.originalContent=f.value,this.trackEvent("page_view",{pageInfo:e,campaign:n,variant:o})),this.logComplete("campaign-content"),[3,10];case 9:return g=i.sent(),Fo.error("[Playbook] Error:",g),this.logComplete("error"),[3,10];case 10:return[2]}})})},e.prototype.handleClientSideAttribution=function(e,t,o){return n(this,void 0,void 0,function(){var n,a,l,s,d,c,p,m,f,g,b,v;return i(this,function(i){switch(i.label){case 0:if(i.trys.push([0,5,,6]),!this.config)throw new Error("Playbook not initialized");return n=performance.now(),u("client_attribution_started",{testId:e}),Fo.debug("[Playbook] Fetching test config for:",e),[4,r(this.config,e)];case 1:return a=i.sent(),l=performance.now()-n,Fo.debug("[Playbook] Test config fetched in",l,"ms"),a?a.active?(s=this.getCookie("_pb_test_id"),d=this.getCookie("_pb_impression_id"),c=this.getCookie("_pb_variant"),s===e&&d&&c?(Fo.debug("[Playbook] Returning visitor, reusing impression:",d),this.setSessionStorage("_pb_variant",c),this.setSessionStorage("_pb_impression_id",d),this.setSessionStorage("_pb_test_id",e),u("client_attribution_returning",{testId:e,variant:c,impressionId:d,config_fetch_ms:l}),h(e,c),[4,this.renderTestExperience(e,c,d,o)]):[3,3]):(Fo.debug("[Playbook] Test is paused:",e),u("client_attribution_test_paused",{testId:e,duration_ms:l}),this.logComplete("test-paused"),[2]):(Fo.debug("[Playbook] Test not found:",e),u("client_attribution_test_not_found",{testId:e,duration_ms:l}),this.logComplete("test-not-found"),[2]);case 2:return i.sent(),[2];case 3:return p=this.getOrCreateVisitorId(),m=this.assignVariant(p,e,a.trafficSplit.control),Fo.debug("[Playbook] Assigned variant:",m),f=this.generateUUID(),g={utmSource:t.get("utm_source")||void 0,utmMedium:t.get("utm_medium")||void 0,utmCampaign:t.get("utm_campaign")||void 0,utmContent:t.get("utm_content")||void 0,utmTerm:t.get("utm_term")||void 0},b={gclid:t.get("gclid")||void 0,fbclid:t.get("fbclid")||void 0,msclkid:t.get("msclkid")||void 0,ttclid:t.get("ttclid")||void 0,liFatId:t.get("li_fat_id")||void 0,twclid:t.get("twclid")||void 0},this.createImpressionAsync(e,f,m,a,o,g,b),this.setCookie("_pb_variant",m,30),this.setCookie("_pb_impression_id",f,30),this.setCookie("_pb_test_id",e,30),this.setSessionStorage("_pb_variant",m),this.setSessionStorage("_pb_impression_id",f),this.setSessionStorage("_pb_test_id",e),u("client_attribution_assigned",{testId:e,variant:m,impressionId:f,config_fetch_ms:l}),h(e,m),[4,this.renderTestExperience(e,m,f,o)];case 4:return i.sent(),[3,6];case 5:return v=i.sent(),Fo.error("[Playbook] Error in client-side attribution:",v),u("client_attribution_error",{testId:e,error:v instanceof Error?v.message:String(v)}),this.logComplete("error"),[3,6];case 6:return[2]}})})},e.prototype.createImpressionAsync=function(e,o,r,a,l,s,d){this.config&&function(e,t){return n(this,void 0,void 0,function(){var n;return i(this,function(i){switch(i.label){case 0:n="".concat(e.apiEndpoint,"/api/track/impression"),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(t)})];case 2:return[2,i.sent().ok];case 3:return i.sent(),[2,!1];case 4:return[2]}})})}(this.config,t(t({shopId:a.shopId,impressionId:o,testId:e,variant:r,pageHandle:a.pageHandle,pageType:a.pageType,landingUrl:window.location.href,referrer:document.referrer||void 0,userAgent:navigator.userAgent},s),d)).catch(function(e){Fo.error("[Playbook] Failed to create impression:",e)})},e.prototype.getOrCreateVisitorId=function(){var e="_pb_visitor_id",t=this.getCookie(e);if(t)return t;var n=this.generateUUID();return this.setCookie(e,n,365),n},e.prototype.getCookie=function(e){var t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t?t[2]:null},e.prototype.assignVariant=function(e,t,n){var i=this.hashCode(e+t);return Math.abs(i)%100<n?"control":"treatment"},e.prototype.hashCode=function(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t},e.prototype.generateUUID=function(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},e.prototype.renderTestExperience=function(e,t,o,r){return n(this,arguments,void 0,function(e,t,n,o,r){var a,s,d,c,p,h,m,f,g,b,v,y,x,w,k;return void 0===r&&(r=!1),i(this,function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),!this.config)throw new Error("Playbook not initialized");return["product","collection","page","home"].includes(o.type)?"control"===t?(Fo.debug("[Playbook] Control variant, not rendering experience"),this.logComplete("control-variant"),[2]):(a=performance.now(),Fo.debug("[Playbook DEBUG] Fetching experience at",a,"ms"),u("experience_fetch_started",{testId:e,variant:t,impressionId:n}),[4,l(this.config,e,t,n,r)]):(Fo.debug("[Playbook] Unsupported page type:",o.type,"- skipping experience"),this.logComplete("unsupported-page-type"),[2]);case 1:return s=i.sent(),d=performance.now(),Fo.debug("[Playbook DEBUG] Experience fetched at",d,"ms"),s?(u("experience_fetch_success",{testId:e,variant:t,impressionId:n,duration_ms:d-a,sectionCount:(null===(b=null===(g=null===(f=s.hero)||void 0===f?void 0:f.metadata)||void 0===g?void 0:g.sections)||void 0===b?void 0:b.length)||0}),c=performance.now(),Fo.debug("[Playbook DEBUG] Rendering experience with Preact at",c,"ms"),[4,lc(s.hero,"top",s.brandDesign,void 0,null!==(v=s.poweredByEnabled)&&void 0!==v&&v,null===(y=this.config)||void 0===y?void 0:y.apiEndpoint)]):(Fo.debug("[Playbook] No experience found for test, revealing page"),u("experience_fetch_empty",{testId:e,variant:t,impressionId:n,duration_ms:d-a}),this.logComplete("no-experience"),[2]);case 2:return i.sent(),(null==(p=(null===(x=s.domModifications)||void 0===x?void 0:x.hiddenSections)||(null===(k=null===(w=s.hero)||void 0===w?void 0:w.domModifications)||void 0===k?void 0:k.hiddenSections))?void 0:p.length)&&(Fo.debug("[Playbook] Applying hidden sections:",p),(new pc).applySectionHiding(p)),h=performance.now(),Fo.debug("[Playbook DEBUG] Experience rendered at",h,"ms"),Fo.debug("[Playbook] Experience rendered successfully"),u("hero_render_complete",{testId:e,variant:t,impressionId:n,fetch_duration_ms:d-a,render_duration_ms:h-c,total_duration_ms:h-a}),this.logComplete("experience-rendered"),[3,4];case 3:return m=i.sent(),Fo.error("[Playbook] Error rendering experience:",m),u("experience_render_error",{testId:e,variant:t,impressionId:n,error:m instanceof Error?m.message:String(m)}),this.logComplete("error"),[3,4];case 4:return[2]}})})},e.prototype.logComplete=function(e){var t;Fo.debug("[Playbook] SDK complete, source:",e),"test-not-found"===e&&new URLSearchParams(window.location.search).has("pbk")||("function"==typeof(null===(t=window.Playbook)||void 0===t?void 0:t.pageReady)&&window.Playbook.pageReady(),"function"==typeof window.__playbookProxyReveal&&window.__playbookProxyReveal()),u("sdk_complete",{source:e})},e.prototype.trackEvent=function(e,n){!function(e,n,i){e&&(c=e,s.push({event:n,properties:t(t({},i),{shopDomain:e.shopDomain}),timestamp:(new Date).toISOString()}),d||(d=setTimeout(function(){p()},1e3)),s.length>=10&&p(),window.Shopify&&window.Shopify.analytics&&window.Shopify.analytics.publish(n,i))}(this.config,e,n)},e.prototype.revert=function(){sc(),function(e){if(e){var t=document.querySelector("main")||document.querySelector('[role="main"]')||document.body;t&&(t.innerHTML=e);var n=document.getElementById("playbook-styles");n&&n.remove()}}(this.originalContent)},e.prototype.setCookie=function(e,t,n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var o="expires="+i.toUTCString();document.cookie="".concat(e,"=").concat(t,";").concat(o,";path=/"),Fo.debug("[Playbook] Cookie set: ".concat(e,"=").concat(t))},e.prototype.setSessionStorage=function(e,t){try{sessionStorage.setItem(e,t),Fo.debug("[Playbook] sessionStorage set: ".concat(e,"=").concat(t))}catch(t){Fo.warn("[Playbook] Failed to set sessionStorage: ".concat(e),t)}},e.prototype.waitForHydration=function(){return new Promise(function(e){var t=null,n=null,i=!1,o=Date.now(),r=function(){i||(i=!0,t&&clearTimeout(t),n&&n.disconnect(),Fo.debug("[Playbook] Hydration complete (DOM stable)"),e())},a=function(){if(t&&clearTimeout(t),Date.now()-o>3e3)return Fo.debug("[Playbook] Hydration timeout, proceeding anyway"),void r();t=setTimeout(r,300)},l=function(){(n=new MutationObserver(function(){a()})).observe(document.body,{childList:!0,subtree:!0,attributes:!0}),a()};setTimeout(function(){i||(Fo.debug("[Playbook] Hydration absolute timeout, proceeding"),r())},3e3),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",l):l()})},e.prototype.startBrandPreviewMode=function(){return n(this,void 0,void 0,function(){var e,t,n,o,r,a,l,s,d,c;return i(this,function(i){switch(i.label){case 0:if(i.trys.push([0,8,,9]),Fo.debug("[Playbook] Starting brand preview mode"),!this.config)throw new Error("Playbook not initialized");return(e=!(null===(c=window.Shopify)||void 0===c?void 0:c.shop))?(Fo.debug("[Playbook] Hydrogen store detected in brand preview, waiting for hydration"),[4,this.waitForHydration()]):[3,2];case 1:i.sent(),i.label=2;case 2:return Fo.debug("[Playbook] Brand preview ready, isHydrogenStore:",e),window.parent!==window&&(Fo.debug("[Playbook] Signaling ready to parent"),window.parent.postMessage({type:"PLAYBOOK_BRAND_PREVIEW_READY"},"*")),t=new Promise(function(e){var t=function(n){var i;"PLAYBOOK_TEST_BRAND_DATA"===(null===(i=n.data)||void 0===i?void 0:i.type)&&(Fo.debug("[Playbook] Received test brand data via postMessage"),window.removeEventListener("message",t),e(n.data.brandSystem))};window.addEventListener("message",t),setTimeout(function(){Fo.debug("[Playbook] postMessage timeout, falling back to API"),window.removeEventListener("message",t),e(null)},5e3)}),window.addEventListener("message",function(t){var n;"PLAYBOOK_TEST_BRAND_DATA"===(null===(n=t.data)||void 0===n?void 0:n.type)&&t.data.brandSystem&&(Fo.debug("[Playbook] Received updated brand data, re-rendering"),xc(t.data.brandSystem,e))}),[4,t];case 3:return n=i.sent(),o=void 0,n?(Fo.debug("[Playbook] Using test brand data from postMessage"),o=n,[3,7]):[3,4];case 4:return r=this.config.shopDomain,a="".concat(this.config.apiEndpoint||"https://www.heyplaybook.com","/api/shop/brand-system?shop=").concat(r),Fo.debug("[Playbook] Fetching brand data from:",a),[4,fetch(a)];case 5:if(!(l=i.sent()).ok)throw new Error("Failed to fetch brand data: ".concat(l.statusText));return[4,l.json()];case 6:if(!(s=i.sent()).success||!s.brandSystem)throw new Error("No brand system data available");Fo.debug("[Playbook] Brand data fetched successfully"),o=s.brandSystem,i.label=7;case 7:return xc(o,e),Fo.debug("[Playbook] Brand preview rendered successfully"),this.logComplete("brand-preview-rendered"),[3,9];case 8:return d=i.sent(),Fo.error("[Playbook] Error in brand preview mode:",d),document.body.style.display="block",document.body.innerHTML='\n        <div style="padding: 40px; text-align: center; font-family: system-ui, -apple-system, sans-serif;">\n          <h1 style="color: #dc2626; margin-bottom: 16px;">Brand Preview Error</h1>\n          <p style="color: #6b7280; margin-bottom: 24px;">\n            '.concat(d instanceof Error?d.message:"Failed to load brand preview",'\n          </p>\n          <p style="color: #9ca3af; font-size: 14px;">\n            Check console for details or contact support.\n          </p>\n        </div>\n      '),[3,9];case 9:return[2]}})})},e.prototype.destroy=function(){this.cartInjector.destroy(),this.initialized=!1,Fo.debug("[Playbook] SDK destroyed")},e}();if(window.__PLAYBOOK_SDK_LOADED__);else{window.__PLAYBOOK_SDK_LOADED__=!0;var Sc=null===(Cc=window.Playbook)||void 0===Cc?void 0:Cc.pageReady,Mc=new Ic;window.Playbook=Mc,Sc&&(window.Playbook.pageReady=Sc);var Ac=document.querySelector('script[src*="playbook.js"], script[src*="/api/sdk"], script[src*="/apps/playbook/sdk"]'),Tc=null===(_c=window.Shopify)||void 0===_c?void 0:_c.shop,Ec=null;if(Ac){var Pc=Ac.getAttribute("data-pb-config");if(Pc)try{var Lc=JSON.parse(Pc);Tc=Lc.shopDomain||Tc,Ec=Lc.shopId||null,Lc.apiEndpoint&&(window.PB_API_ENDPOINT=Lc.apiEndpoint)}catch(ue){}var Nc=Ac.getAttribute("data-shop-id");Nc&&(Ec=Nc,Tc||(Tc=window.location.hostname))}Tc||(Tc=window.location.hostname);var jc=window.PB_API_ENDPOINT;if(!jc)if(Ac&&Ac.src)if(Ac.src.includes("/apps/playbook/"))jc="".concat(window.location.origin,"/apps/playbook");else{var zc=new URL(Ac.src);"https://heyplaybook.com"===(jc="".concat(zc.protocol,"//").concat(zc.host))&&(jc="https://www.heyplaybook.com")}else jc="https://www.heyplaybook.com";Mc.init({apiEndpoint:jc,shopDomain:Tc,shopId:Ec||void 0,debug:!0});try{if(new URLSearchParams(window.location.search).has("pbk")){var Oc=document.createElement("script");Oc.src="https://cdn.heyplaybook.com/experience-sdk.js",Oc.async=!0,Oc.setAttribute("data-pb-api-base",jc||"".concat(window.location.origin,"/apps/playbook")),Oc.setAttribute("data-pb-shop",Tc),document.head.appendChild(Oc)}}catch(e){}try{var Rc=new URLSearchParams(window.location.search);if("experience_preview"===Rc.get("pb_mode")){var $c=document.createElement("script"),Bc=Rc.get("pb_v");$c.src="https://cdn.heyplaybook.com/experience-sdk-preview.js"+(Bc?"?v=".concat(encodeURIComponent(Bc)):""),$c.async=!0,document.head.appendChild($c)}}catch(e){}try{var Fc=new URLSearchParams(window.location.search);if("experience_editor"===Fc.get("pb_mode")){var Dc=document.createElement("script"),Hc=Fc.get("pb_v");Dc.src="https://cdn.heyplaybook.com/experience-sdk-editor.js"+(Hc?"?v=".concat(encodeURIComponent(Hc)):""),Dc.async=!0,document.head.appendChild(Dc)}}catch(Zl){}}return e.Playbook=Ic,e}({});
