pagepilot-visual-editor 1.0.28 → 1.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/render.cjs CHANGED
@@ -1,45 +1,45 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),Tc=require("react-dom/server"),U=require("react");var Wa;function E(e,t,n){function o(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);const c=a.prototype,u=Object.keys(c);for(let h=0;h<u.length;h++){const d=u[h];d in l||(l[d]=c[d].bind(l))}}const r=(n==null?void 0:n.Parent)??Object;class i extends r{}Object.defineProperty(i,"name",{value:e});function a(l){var s;const c=n!=null&&n.Parent?new i:this;o(c,l),(s=c._zod).deferred??(s.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>{var s,c;return n!=null&&n.Parent&&l instanceof n.Parent?!0:(c=(s=l==null?void 0:l._zod)==null?void 0:s.traits)==null?void 0:c.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class Xt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Pl extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Wa=globalThis).__zod_globalConfig??(Wa.__zod_globalConfig={});const ca=globalThis.__zod_globalConfig;function wt(e){return ca}function Ol(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}function xr(e,t){return typeof t=="bigint"?t.toString():t}function ko(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function ua(e){return e==null}function da(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Ec(e,t){const n=e/t,o=Math.round(n),r=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<r?0:n-o}const Za=Symbol("evaluating");function re(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==Za)return o===void 0&&(o=Za,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function jt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Rt(...e){const t={};for(const n of e){const o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function Va(e){return JSON.stringify(e)}function Mc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Ll="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Cn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Pc=ko(()=>{var e;if(ca.jitless||typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function tn(e){if(Cn(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Cn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function zl(e){return tn(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Oc=new Set(["string","number","symbol"]);function nn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Nt(e,t,n){const o=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(o._zod.parent=e),o}function G(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Lc(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const zc={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function jc(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=Rt(e._zod.def,{get shape(){const a={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=n.shape[l])}return jt(this,"shape",a),a},checks:[]});return Nt(e,i)}function Bc(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=Rt(e._zod.def,{get shape(){const a={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return jt(this,"shape",a),a},checks:[]});return Nt(e,i)}function Dc(e,t){if(!tn(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=e._zod.def.shape;for(const a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=Rt(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return jt(this,"shape",i),i}});return Nt(e,r)}function Fc(e,t){if(!tn(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Rt(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return jt(this,"shape",o),o}});return Nt(e,n)}function Hc(e,t){var o;if((o=e._zod.def.checks)!=null&&o.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=Rt(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return jt(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Nt(e,n)}function Gc(e,t,n){const r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=Rt(t._zod.def,{get shape(){const l=t._zod.def.shape,s={...l};if(n)for(const c in n){if(!(c in l))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(s[c]=e?new e({type:"optional",innerType:l[c]}):l[c])}else for(const c in l)s[c]=e?new e({type:"optional",innerType:l[c]}):l[c];return jt(this,"shape",s),s},checks:[]});return Nt(t,a)}function Uc(e,t,n){const o=Rt(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(n)for(const a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(const a in r)i[a]=new e({type:"nonoptional",innerType:r[a]});return jt(this,"shape",i),i}});return Nt(t,o)}function Yt(e,t=0){var n;if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(((n=e.issues[o])==null?void 0:n.continue)!==!0)return!0;return!1}function Wc(e,t=0){var n;if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(((n=e.issues[o])==null?void 0:n.continue)===!1)return!0;return!1}function yt(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Dn(e){return typeof e=="string"?e:e==null?void 0:e.message}function $t(e,t,n){var s,c,u,h,d,f;const o=e.message?e.message:Dn((u=(c=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:c.error)==null?void 0:u.call(c,e))??Dn((h=t==null?void 0:t.error)==null?void 0:h.call(t,e))??Dn((d=n.customError)==null?void 0:d.call(n,e))??Dn((f=n.localeError)==null?void 0:f.call(n,e))??"Invalid input",{inst:r,continue:i,input:a,...l}=e;return l.path??(l.path=[]),l.message=o,t!=null&&t.reportInput&&(l.input=a),l}function ha(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function An(...e){const[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}const jl=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,xr,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Bl=E("$ZodError",jl),Dl=E("$ZodError",jl,{Parent:Error});function Zc(e,t=n=>n.message){const n={},o=[];for(const r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):o.push(t(r));return{formErrors:o,fieldErrors:n}}function Vc(e,t=n=>n.message){const n={_errors:[]},o=(r,i=[])=>{for(const a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>o({issues:l},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{const l=[...i,...a.path];if(l.length===0)n._errors.push(t(a));else{let s=n,c=0;for(;c<l.length;){const u=l[c];c===l.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(t(a))):s[u]=s[u]||{_errors:[]},s=s[u],c++}}}};return o(e),n}const fa=e=>(t,n,o,r)=>{const i=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Xt;if(a.issues.length){const l=new((r==null?void 0:r.Err)??e)(a.issues.map(s=>$t(s,i,wt())));throw Ll(l,r==null?void 0:r.callee),l}return a.value},ma=e=>async(t,n,o,r)=>{const i=o?{...o,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const l=new((r==null?void 0:r.Err)??e)(a.issues.map(s=>$t(s,i,wt())));throw Ll(l,r==null?void 0:r.callee),l}return a.value},_o=e=>(t,n,o)=>{const r=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new Xt;return i.issues.length?{success:!1,error:new(e??Bl)(i.issues.map(a=>$t(a,r,wt())))}:{success:!0,data:i.value}},qc=_o(Dl),Co=e=>async(t,n,o)=>{const r=o?{...o,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>$t(a,r,wt())))}:{success:!0,data:i.value}},Yc=Co(Dl),Kc=e=>(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return fa(e)(t,n,r)},Jc=e=>(t,n,o)=>fa(e)(t,n,o),Xc=e=>async(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return ma(e)(t,n,r)},Qc=e=>async(t,n,o)=>ma(e)(t,n,o),eu=e=>(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return _o(e)(t,n,r)},tu=e=>(t,n,o)=>_o(e)(t,n,o),nu=e=>async(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return Co(e)(t,n,r)},ou=e=>async(t,n,o)=>Co(e)(t,n,o),ru=/^[cC][0-9a-z]{6,}$/,au=/^[0-9a-z]+$/,iu=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,lu=/^[0-9a-vA-V]{20}$/,su=/^[A-Za-z0-9]{27}$/,cu=/^[a-zA-Z0-9_-]{21}$/,uu=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,du=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,qa=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,hu=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,fu="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function mu(){return new RegExp(fu,"u")}const pu=/^(?:(?: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])$/,gu=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,bu=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,xu=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,vu=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Fl=/^[A-Za-z0-9_-]*$/,Su=/^https?$/,wu=/^\+[1-9]\d{6,14}$/,Hl="(?:(?:\\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])))",$u=new RegExp(`^${Hl}$`);function Gl(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ku(e){return new RegExp(`^${Gl(e)}$`)}function _u(e){const t=Gl({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${t}(?:${n.join("|")})`;return new RegExp(`^${Hl}T(?:${o})$`)}const Cu=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Au=/^-?\d+$/,Ul=/^-?\d+(?:\.\d+)?$/,yu=/^(?:true|false)$/i,Iu=/^[^A-Z]*$/,Ru=/^[^a-z]*$/,He=E("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Wl={number:"number",bigint:"bigint",object:"date"},Zl=E("$ZodCheckLessThan",(e,t)=>{He.init(e,t);const n=Wl[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Vl=E("$ZodCheckGreaterThan",(e,t)=>{He.init(e,t);const n=Wl[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Nu=E("$ZodCheckMultipleOf",(e,t)=>{He.init(e,t),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Ec(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Tu=E("$ZodCheckNumberFormat",(e,t)=>{var a;He.init(e,t),t.format=t.format||"float64";const n=(a=t.format)==null?void 0:a.includes("int"),o=n?"int":"number",[r,i]=zc[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=r,s.maximum=i,n&&(s.pattern=Au)}),e._zod.check=l=>{const s=l.value;if(n){if(!Number.isInteger(s)){l.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?l.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):l.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<r&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s>i&&l.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Eu=E("$ZodCheckMaxLength",(e,t)=>{var n;He.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!ua(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const r=o.value;if(r.length<=t.maximum)return;const a=ha(r);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Mu=E("$ZodCheckMinLength",(e,t)=>{var n;He.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!ua(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const r=o.value;if(r.length>=t.minimum)return;const a=ha(r);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Pu=E("$ZodCheckLengthEquals",(e,t)=>{var n;He.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!ua(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=o=>{const r=o.value,i=r.length;if(i===t.length)return;const a=ha(r),l=i>t.length;o.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Ao=E("$ZodCheckStringFormat",(e,t)=>{var n,o;He.init(e,t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Ou=E("$ZodCheckRegex",(e,t)=>{Ao.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Lu=E("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Iu),Ao.init(e,t)}),zu=E("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ru),Ao.init(e,t)}),ju=E("$ZodCheckIncludes",(e,t)=>{He.init(e,t);const n=nn(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Bu=E("$ZodCheckStartsWith",(e,t)=>{He.init(e,t);const n=new RegExp(`^${nn(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Du=E("$ZodCheckEndsWith",(e,t)=>{He.init(e,t);const n=new RegExp(`.*${nn(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}}),Fu=E("$ZodCheckOverwrite",(e,t)=>{He.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Hu{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const o=t.split(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),Ec=require("react-dom/server"),Z=require("react");var Za;function T(e,t,n){function o(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);const c=a.prototype,u=Object.keys(c);for(let h=0;h<u.length;h++){const d=u[h];d in l||(l[d]=c[d].bind(l))}}const r=(n==null?void 0:n.Parent)??Object;class i extends r{}Object.defineProperty(i,"name",{value:e});function a(l){var s;const c=n!=null&&n.Parent?new i:this;o(c,l),(s=c._zod).deferred??(s.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>{var s,c;return n!=null&&n.Parent&&l instanceof n.Parent?!0:(c=(s=l==null?void 0:l._zod)==null?void 0:s.traits)==null?void 0:c.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class Qt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ol extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Za=globalThis).__zod_globalConfig??(Za.__zod_globalConfig={});const da=globalThis.__zod_globalConfig;function wt(e){return da}function Ll(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}function Sr(e,t){return typeof t=="bigint"?t.toString():t}function Co(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function ha(e){return e==null}function fa(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Mc(e,t){const n=e/t,o=Math.round(n),r=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<r?0:n-o}const Va=Symbol("evaluating");function ce(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==Va)return o===void 0&&(o=Va,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function Bt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Rt(...e){const t={};for(const n of e){const o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function qa(e){return JSON.stringify(e)}function Pc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const zl="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function An(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Oc=Co(()=>{var e;if(da.jitless||typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function nn(e){if(An(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(An(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function jl(e){return nn(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Lc=new Set(["string","number","symbol"]);function on(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Nt(e,t,n){const o=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(o._zod.parent=e),o}function U(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function zc(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const jc={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Bc(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=Rt(e._zod.def,{get shape(){const a={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=n.shape[l])}return Bt(this,"shape",a),a},checks:[]});return Nt(e,i)}function Dc(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=Rt(e._zod.def,{get shape(){const a={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return Bt(this,"shape",a),a},checks:[]});return Nt(e,i)}function Fc(e,t){if(!nn(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=e._zod.def.shape;for(const a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=Rt(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return Bt(this,"shape",i),i}});return Nt(e,r)}function Hc(e,t){if(!nn(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Rt(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return Bt(this,"shape",o),o}});return Nt(e,n)}function Gc(e,t){var o;if((o=e._zod.def.checks)!=null&&o.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=Rt(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return Bt(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Nt(e,n)}function Uc(e,t,n){const r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=Rt(t._zod.def,{get shape(){const l=t._zod.def.shape,s={...l};if(n)for(const c in n){if(!(c in l))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(s[c]=e?new e({type:"optional",innerType:l[c]}):l[c])}else for(const c in l)s[c]=e?new e({type:"optional",innerType:l[c]}):l[c];return Bt(this,"shape",s),s},checks:[]});return Nt(t,a)}function Wc(e,t,n){const o=Rt(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(n)for(const a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(const a in r)i[a]=new e({type:"nonoptional",innerType:r[a]});return Bt(this,"shape",i),i}});return Nt(t,o)}function Kt(e,t=0){var n;if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(((n=e.issues[o])==null?void 0:n.continue)!==!0)return!0;return!1}function Zc(e,t=0){var n;if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(((n=e.issues[o])==null?void 0:n.continue)===!1)return!0;return!1}function yt(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Fn(e){return typeof e=="string"?e:e==null?void 0:e.message}function $t(e,t,n){var s,c,u,h,d,f;const o=e.message?e.message:Fn((u=(c=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:c.error)==null?void 0:u.call(c,e))??Fn((h=t==null?void 0:t.error)==null?void 0:h.call(t,e))??Fn((d=n.customError)==null?void 0:d.call(n,e))??Fn((f=n.localeError)==null?void 0:f.call(n,e))??"Invalid input",{inst:r,continue:i,input:a,...l}=e;return l.path??(l.path=[]),l.message=o,t!=null&&t.reportInput&&(l.input=a),l}function ma(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function yn(...e){const[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}const Bl=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Sr,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Dl=T("$ZodError",Bl),Fl=T("$ZodError",Bl,{Parent:Error});function Vc(e,t=n=>n.message){const n={},o=[];for(const r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):o.push(t(r));return{formErrors:o,fieldErrors:n}}function qc(e,t=n=>n.message){const n={_errors:[]},o=(r,i=[])=>{for(const a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>o({issues:l},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{const l=[...i,...a.path];if(l.length===0)n._errors.push(t(a));else{let s=n,c=0;for(;c<l.length;){const u=l[c];c===l.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(t(a))):s[u]=s[u]||{_errors:[]},s=s[u],c++}}}};return o(e),n}const pa=e=>(t,n,o,r)=>{const i=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Qt;if(a.issues.length){const l=new((r==null?void 0:r.Err)??e)(a.issues.map(s=>$t(s,i,wt())));throw zl(l,r==null?void 0:r.callee),l}return a.value},ga=e=>async(t,n,o,r)=>{const i=o?{...o,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const l=new((r==null?void 0:r.Err)??e)(a.issues.map(s=>$t(s,i,wt())));throw zl(l,r==null?void 0:r.callee),l}return a.value},Ao=e=>(t,n,o)=>{const r=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new Qt;return i.issues.length?{success:!1,error:new(e??Dl)(i.issues.map(a=>$t(a,r,wt())))}:{success:!0,data:i.value}},Yc=Ao(Fl),yo=e=>async(t,n,o)=>{const r=o?{...o,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>$t(a,r,wt())))}:{success:!0,data:i.value}},Kc=yo(Fl),Jc=e=>(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return pa(e)(t,n,r)},Xc=e=>(t,n,o)=>pa(e)(t,n,o),Qc=e=>async(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return ga(e)(t,n,r)},eu=e=>async(t,n,o)=>ga(e)(t,n,o),tu=e=>(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return Ao(e)(t,n,r)},nu=e=>(t,n,o)=>Ao(e)(t,n,o),ou=e=>async(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return yo(e)(t,n,r)},ru=e=>async(t,n,o)=>yo(e)(t,n,o),au=/^[cC][0-9a-z]{6,}$/,iu=/^[0-9a-z]+$/,lu=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,su=/^[0-9a-vA-V]{20}$/,cu=/^[A-Za-z0-9]{27}$/,uu=/^[a-zA-Z0-9_-]{21}$/,du=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,hu=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ya=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,fu=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,mu="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function pu(){return new RegExp(mu,"u")}const gu=/^(?:(?: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])$/,bu=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,xu=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,vu=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Su=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Hl=/^[A-Za-z0-9_-]*$/,wu=/^https?$/,$u=/^\+[1-9]\d{6,14}$/,Gl="(?:(?:\\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])))",ku=new RegExp(`^${Gl}$`);function Ul(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function _u(e){return new RegExp(`^${Ul(e)}$`)}function Cu(e){const t=Ul({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${t}(?:${n.join("|")})`;return new RegExp(`^${Gl}T(?:${o})$`)}const Au=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},yu=/^-?\d+$/,Wl=/^-?\d+(?:\.\d+)?$/,Iu=/^(?:true|false)$/i,Ru=/^[^A-Z]*$/,Nu=/^[^a-z]*$/,Ue=T("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Zl={number:"number",bigint:"bigint",object:"date"},Vl=T("$ZodCheckLessThan",(e,t)=>{Ue.init(e,t);const n=Zl[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ql=T("$ZodCheckGreaterThan",(e,t)=>{Ue.init(e,t);const n=Zl[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Tu=T("$ZodCheckMultipleOf",(e,t)=>{Ue.init(e,t),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Mc(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Eu=T("$ZodCheckNumberFormat",(e,t)=>{var a;Ue.init(e,t),t.format=t.format||"float64";const n=(a=t.format)==null?void 0:a.includes("int"),o=n?"int":"number",[r,i]=jc[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=r,s.maximum=i,n&&(s.pattern=yu)}),e._zod.check=l=>{const s=l.value;if(n){if(!Number.isInteger(s)){l.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?l.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):l.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<r&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s>i&&l.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Mu=T("$ZodCheckMaxLength",(e,t)=>{var n;Ue.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!ha(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const r=o.value;if(r.length<=t.maximum)return;const a=ma(r);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Pu=T("$ZodCheckMinLength",(e,t)=>{var n;Ue.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!ha(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const r=o.value;if(r.length>=t.minimum)return;const a=ma(r);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ou=T("$ZodCheckLengthEquals",(e,t)=>{var n;Ue.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!ha(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=o=>{const r=o.value,i=r.length;if(i===t.length)return;const a=ma(r),l=i>t.length;o.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Io=T("$ZodCheckStringFormat",(e,t)=>{var n,o;Ue.init(e,t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Lu=T("$ZodCheckRegex",(e,t)=>{Io.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),zu=T("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Ru),Io.init(e,t)}),ju=T("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Nu),Io.init(e,t)}),Bu=T("$ZodCheckIncludes",(e,t)=>{Ue.init(e,t);const n=on(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Du=T("$ZodCheckStartsWith",(e,t)=>{Ue.init(e,t);const n=new RegExp(`^${on(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Fu=T("$ZodCheckEndsWith",(e,t)=>{Ue.init(e,t);const n=new RegExp(`.*${on(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}}),Hu=T("$ZodCheckOverwrite",(e,t)=>{Ue.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Gu{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const o=t.split(`
2
2
  `).filter(a=>a),r=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(const a of i)this.content.push(a)}compile(){const t=Function,n=this==null?void 0:this.args,r=[...((this==null?void 0:this.content)??[""]).map(i=>` ${i}`)];return new t(...n,r.join(`
3
- `))}}const Gu={major:4,minor:4,patch:3},me=E("$ZodType",(e,t)=>{var r;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Gu;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const i of o)for(const a of i._zod.onattach)a(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),(r=e._zod.deferred)==null||r.push(()=>{e._zod.run=e._zod.parse});else{const i=(l,s,c)=>{let u=Yt(l),h;for(const d of s){if(d._zod.def.when){if(Wc(l)||!d._zod.def.when(l))continue}else if(u)continue;const f=l.issues.length,p=d._zod.check(l);if(p instanceof Promise&&(c==null?void 0:c.async)===!1)throw new Xt;if(h||p instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await p,l.issues.length!==f&&(u||(u=Yt(l,f)))});else{if(l.issues.length===f)continue;u||(u=Yt(l,f))}}return h?h.then(()=>l):l},a=(l,s,c)=>{if(Yt(l))return l.aborted=!0,l;const u=i(s,o,c);if(u instanceof Promise){if(c.async===!1)throw new Xt;return u.then(h=>e._zod.parse(h,c))}return e._zod.parse(u,c)};e._zod.run=(l,s)=>{if(s.skipChecks)return e._zod.parse(l,s);if(s.direction==="backward"){const u=e._zod.parse({value:l.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(h=>a(h,l,s)):a(u,l,s)}const c=e._zod.parse(l,s);if(c instanceof Promise){if(s.async===!1)throw new Xt;return c.then(u=>i(u,o,s))}return i(c,o,s)}}re(e,"~standard",()=>({validate:i=>{var a;try{const l=qc(e,i);return l.success?{value:l.data}:{issues:(a=l.error)==null?void 0:a.issues}}catch{return Yc(e,i).then(s=>{var c;return s.success?{value:s.data}:{issues:(c=s.error)==null?void 0:c.issues}})}},vendor:"zod",version:1}))}),pa=E("$ZodString",(e,t)=>{var n;me.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Cu(e._zod.bag),e._zod.parse=(o,r)=>{if(t.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),we=E("$ZodStringFormat",(e,t)=>{Ao.init(e,t),pa.init(e,t)}),Uu=E("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=du),we.init(e,t)}),Wu=E("$ZodUUID",(e,t)=>{if(t.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=qa(o))}else t.pattern??(t.pattern=qa());we.init(e,t)}),Zu=E("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=hu),we.init(e,t)}),Vu=E("$ZodURL",(e,t)=>{we.init(e,t),e._zod.check=n=>{var o;try{const r=n.value.trim();if(!t.normalize&&((o=t.protocol)==null?void 0:o.source)===Su.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),qu=E("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=mu()),we.init(e,t)}),Yu=E("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=cu),we.init(e,t)}),Ku=E("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ru),we.init(e,t)}),Ju=E("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=au),we.init(e,t)}),Xu=E("$ZodULID",(e,t)=>{t.pattern??(t.pattern=iu),we.init(e,t)}),Qu=E("$ZodXID",(e,t)=>{t.pattern??(t.pattern=lu),we.init(e,t)}),ed=E("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=su),we.init(e,t)}),td=E("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=_u(t)),we.init(e,t)}),nd=E("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=$u),we.init(e,t)}),od=E("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ku(t)),we.init(e,t)}),rd=E("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=uu),we.init(e,t)}),ad=E("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=pu),we.init(e,t),e._zod.bag.format="ipv4"}),id=E("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=gu),we.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),ld=E("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=bu),we.init(e,t)}),sd=E("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=xu),we.init(e,t),e._zod.check=n=>{const o=n.value.split("/");try{if(o.length!==2)throw new Error;const[r,i]=o;if(!i)throw new Error;const a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function ql(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const cd=E("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=vu),we.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{ql(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function ud(e){if(!Fl.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ql(n)}const dd=E("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Fl),we.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{ud(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),hd=E("$ZodE164",(e,t)=>{t.pattern??(t.pattern=wu),we.init(e,t)});function fd(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[o]=n;if(!o)return!1;const r=JSON.parse(atob(o));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}const md=E("$ZodJWT",(e,t)=>{we.init(e,t),e._zod.check=n=>{fd(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Yl=E("$ZodNumber",(e,t)=>{me.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ul,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;const i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),n}}),pd=E("$ZodNumberFormat",(e,t)=>{Tu.init(e,t),Yl.init(e,t)}),gd=E("$ZodBoolean",(e,t)=>{me.init(e,t),e._zod.pattern=yu,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),bd=E("$ZodAny",(e,t)=>{me.init(e,t),e._zod.parse=n=>n}),xd=E("$ZodUnknown",(e,t)=>{me.init(e,t),e._zod.parse=n=>n}),vd=E("$ZodNever",(e,t)=>{me.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Ya(e,t,n){e.issues.length&&t.issues.push(...yt(n,e.issues)),t.value[n]=e.value}const Sd=E("$ZodArray",(e,t)=>{me.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);const i=[];for(let a=0;a<r.length;a++){const l=r[a],s=t.element._zod.run({value:l,issues:[]},o);s instanceof Promise?i.push(s.then(c=>Ya(c,n,a))):Ya(s,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function so(e,t,n,o,r,i){const a=n in o;if(e.issues.length){if(r&&i&&!a)return;t.issues.push(...yt(n,e.issues))}if(!a&&!r){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?a&&(t.value[n]=void 0):t.value[n]=e.value}function Kl(e){var o,r,i,a;const t=Object.keys(e.shape);for(const l of t)if(!((a=(i=(r=(o=e.shape)==null?void 0:o[l])==null?void 0:r._zod)==null?void 0:i.traits)!=null&&a.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=Lc(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Jl(e,t,n,o,r,i){const a=[],l=r.keySet,s=r.catchall._zod,c=s.def.type,u=s.optin==="optional",h=s.optout==="optional";for(const d in t){if(d==="__proto__"||l.has(d))continue;if(c==="never"){a.push(d);continue}const f=s.run({value:t[d],issues:[]},o);f instanceof Promise?e.push(f.then(p=>so(p,n,d,t,u,h))):so(f,n,d,t,u,h)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const wd=E("$ZodObject",(e,t)=>{me.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const l=t.shape;Object.defineProperty(t,"shape",{get:()=>{const s={...l};return Object.defineProperty(t,"shape",{value:s}),s}})}const o=ko(()=>Kl(t));re(e._zod,"propValues",()=>{const l=t.shape,s={};for(const c in l){const u=l[c]._zod;if(u.values){s[c]??(s[c]=new Set);for(const h of u.values)s[c].add(h)}}return s});const r=Cn,i=t.catchall;let a;e._zod.parse=(l,s)=>{a??(a=o.value);const c=l.value;if(!r(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;l.value={};const u=[],h=a.shape;for(const d of a.keys){const f=h[d],p=f._zod.optin==="optional",b=f._zod.optout==="optional",x=f._zod.run({value:c[d],issues:[]},s);x instanceof Promise?u.push(x.then(v=>so(v,l,d,c,p,b))):so(x,l,d,c,p,b)}return i?Jl(u,c,l,s,o.value,e):u.length?Promise.all(u).then(()=>l):l}}),$d=E("$ZodObjectJIT",(e,t)=>{wd.init(e,t);const n=e._zod.parse,o=ko(()=>Kl(t)),r=d=>{var k,w;const f=new Hu(["shape","payload","ctx"]),p=o.value,b=C=>{const y=Va(C);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};f.write("const input = payload.value;");const x=Object.create(null);let v=0;for(const C of p.keys)x[C]=`key_${v++}`;f.write("const newResult = {};");for(const C of p.keys){const y=x[C],_=Va(C),I=d[C],R=((k=I==null?void 0:I._zod)==null?void 0:k.optin)==="optional",T=((w=I==null?void 0:I._zod)==null?void 0:w.optout)==="optional";f.write(`const ${y} = ${b(C)};`),R&&T?f.write(`
3
+ `))}}const Uu={major:4,minor:4,patch:3},pe=T("$ZodType",(e,t)=>{var r;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Uu;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const i of o)for(const a of i._zod.onattach)a(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),(r=e._zod.deferred)==null||r.push(()=>{e._zod.run=e._zod.parse});else{const i=(l,s,c)=>{let u=Kt(l),h;for(const d of s){if(d._zod.def.when){if(Zc(l)||!d._zod.def.when(l))continue}else if(u)continue;const f=l.issues.length,p=d._zod.check(l);if(p instanceof Promise&&(c==null?void 0:c.async)===!1)throw new Qt;if(h||p instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await p,l.issues.length!==f&&(u||(u=Kt(l,f)))});else{if(l.issues.length===f)continue;u||(u=Kt(l,f))}}return h?h.then(()=>l):l},a=(l,s,c)=>{if(Kt(l))return l.aborted=!0,l;const u=i(s,o,c);if(u instanceof Promise){if(c.async===!1)throw new Qt;return u.then(h=>e._zod.parse(h,c))}return e._zod.parse(u,c)};e._zod.run=(l,s)=>{if(s.skipChecks)return e._zod.parse(l,s);if(s.direction==="backward"){const u=e._zod.parse({value:l.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(h=>a(h,l,s)):a(u,l,s)}const c=e._zod.parse(l,s);if(c instanceof Promise){if(s.async===!1)throw new Qt;return c.then(u=>i(u,o,s))}return i(c,o,s)}}ce(e,"~standard",()=>({validate:i=>{var a;try{const l=Yc(e,i);return l.success?{value:l.data}:{issues:(a=l.error)==null?void 0:a.issues}}catch{return Kc(e,i).then(s=>{var c;return s.success?{value:s.data}:{issues:(c=s.error)==null?void 0:c.issues}})}},vendor:"zod",version:1}))}),ba=T("$ZodString",(e,t)=>{var n;pe.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Au(e._zod.bag),e._zod.parse=(o,r)=>{if(t.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),we=T("$ZodStringFormat",(e,t)=>{Io.init(e,t),ba.init(e,t)}),Wu=T("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=hu),we.init(e,t)}),Zu=T("$ZodUUID",(e,t)=>{if(t.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ya(o))}else t.pattern??(t.pattern=Ya());we.init(e,t)}),Vu=T("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=fu),we.init(e,t)}),qu=T("$ZodURL",(e,t)=>{we.init(e,t),e._zod.check=n=>{var o;try{const r=n.value.trim();if(!t.normalize&&((o=t.protocol)==null?void 0:o.source)===wu.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Yu=T("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=pu()),we.init(e,t)}),Ku=T("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=uu),we.init(e,t)}),Ju=T("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=au),we.init(e,t)}),Xu=T("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=iu),we.init(e,t)}),Qu=T("$ZodULID",(e,t)=>{t.pattern??(t.pattern=lu),we.init(e,t)}),ed=T("$ZodXID",(e,t)=>{t.pattern??(t.pattern=su),we.init(e,t)}),td=T("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=cu),we.init(e,t)}),nd=T("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Cu(t)),we.init(e,t)}),od=T("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=ku),we.init(e,t)}),rd=T("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=_u(t)),we.init(e,t)}),ad=T("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=du),we.init(e,t)}),id=T("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=gu),we.init(e,t),e._zod.bag.format="ipv4"}),ld=T("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=bu),we.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),sd=T("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=xu),we.init(e,t)}),cd=T("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=vu),we.init(e,t),e._zod.check=n=>{const o=n.value.split("/");try{if(o.length!==2)throw new Error;const[r,i]=o;if(!i)throw new Error;const a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Yl(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const ud=T("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Su),we.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Yl(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function dd(e){if(!Hl.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Yl(n)}const hd=T("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Hl),we.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{dd(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),fd=T("$ZodE164",(e,t)=>{t.pattern??(t.pattern=$u),we.init(e,t)});function md(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[o]=n;if(!o)return!1;const r=JSON.parse(atob(o));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}const pd=T("$ZodJWT",(e,t)=>{we.init(e,t),e._zod.check=n=>{md(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Kl=T("$ZodNumber",(e,t)=>{pe.init(e,t),e._zod.pattern=e._zod.bag.pattern??Wl,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;const i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),n}}),gd=T("$ZodNumberFormat",(e,t)=>{Eu.init(e,t),Kl.init(e,t)}),bd=T("$ZodBoolean",(e,t)=>{pe.init(e,t),e._zod.pattern=Iu,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),xd=T("$ZodAny",(e,t)=>{pe.init(e,t),e._zod.parse=n=>n}),vd=T("$ZodUnknown",(e,t)=>{pe.init(e,t),e._zod.parse=n=>n}),Sd=T("$ZodNever",(e,t)=>{pe.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Ka(e,t,n){e.issues.length&&t.issues.push(...yt(n,e.issues)),t.value[n]=e.value}const wd=T("$ZodArray",(e,t)=>{pe.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);const i=[];for(let a=0;a<r.length;a++){const l=r[a],s=t.element._zod.run({value:l,issues:[]},o);s instanceof Promise?i.push(s.then(c=>Ka(c,n,a))):Ka(s,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function uo(e,t,n,o,r,i){const a=n in o;if(e.issues.length){if(r&&i&&!a)return;t.issues.push(...yt(n,e.issues))}if(!a&&!r){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?a&&(t.value[n]=void 0):t.value[n]=e.value}function Jl(e){var o,r,i,a;const t=Object.keys(e.shape);for(const l of t)if(!((a=(i=(r=(o=e.shape)==null?void 0:o[l])==null?void 0:r._zod)==null?void 0:i.traits)!=null&&a.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=zc(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Xl(e,t,n,o,r,i){const a=[],l=r.keySet,s=r.catchall._zod,c=s.def.type,u=s.optin==="optional",h=s.optout==="optional";for(const d in t){if(d==="__proto__"||l.has(d))continue;if(c==="never"){a.push(d);continue}const f=s.run({value:t[d],issues:[]},o);f instanceof Promise?e.push(f.then(p=>uo(p,n,d,t,u,h))):uo(f,n,d,t,u,h)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const $d=T("$ZodObject",(e,t)=>{pe.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const l=t.shape;Object.defineProperty(t,"shape",{get:()=>{const s={...l};return Object.defineProperty(t,"shape",{value:s}),s}})}const o=Co(()=>Jl(t));ce(e._zod,"propValues",()=>{const l=t.shape,s={};for(const c in l){const u=l[c]._zod;if(u.values){s[c]??(s[c]=new Set);for(const h of u.values)s[c].add(h)}}return s});const r=An,i=t.catchall;let a;e._zod.parse=(l,s)=>{a??(a=o.value);const c=l.value;if(!r(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;l.value={};const u=[],h=a.shape;for(const d of a.keys){const f=h[d],p=f._zod.optin==="optional",b=f._zod.optout==="optional",x=f._zod.run({value:c[d],issues:[]},s);x instanceof Promise?u.push(x.then(w=>uo(w,l,d,c,p,b))):uo(x,l,d,c,p,b)}return i?Xl(u,c,l,s,o.value,e):u.length?Promise.all(u).then(()=>l):l}}),kd=T("$ZodObjectJIT",(e,t)=>{$d.init(e,t);const n=e._zod.parse,o=Co(()=>Jl(t)),r=d=>{var k,v;const f=new Gu(["shape","payload","ctx"]),p=o.value,b=_=>{const y=qa(_);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};f.write("const input = payload.value;");const x=Object.create(null);let w=0;for(const _ of p.keys)x[_]=`key_${w++}`;f.write("const newResult = {};");for(const _ of p.keys){const y=x[_],C=qa(_),I=d[_],R=((k=I==null?void 0:I._zod)==null?void 0:k.optin)==="optional",E=((v=I==null?void 0:I._zod)==null?void 0:v.optout)==="optional";f.write(`const ${y} = ${b(_)};`),R&&E?f.write(`
4
4
  if (${y}.issues.length) {
5
- if (${_} in input) {
5
+ if (${C} in input) {
6
6
  payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
7
7
  ...iss,
8
- path: iss.path ? [${_}, ...iss.path] : [${_}]
8
+ path: iss.path ? [${C}, ...iss.path] : [${C}]
9
9
  })));
10
10
  }
11
11
  }
12
12
 
13
13
  if (${y}.value === undefined) {
14
- if (${_} in input) {
15
- newResult[${_}] = undefined;
14
+ if (${C} in input) {
15
+ newResult[${C}] = undefined;
16
16
  }
17
17
  } else {
18
- newResult[${_}] = ${y}.value;
18
+ newResult[${C}] = ${y}.value;
19
19
  }
20
20
 
21
21
  `):R?f.write(`
22
22
  if (${y}.issues.length) {
23
23
  payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
24
24
  ...iss,
25
- path: iss.path ? [${_}, ...iss.path] : [${_}]
25
+ path: iss.path ? [${C}, ...iss.path] : [${C}]
26
26
  })));
27
27
  }
28
28
 
29
29
  if (${y}.value === undefined) {
30
- if (${_} in input) {
31
- newResult[${_}] = undefined;
30
+ if (${C} in input) {
31
+ newResult[${C}] = undefined;
32
32
  }
33
33
  } else {
34
- newResult[${_}] = ${y}.value;
34
+ newResult[${C}] = ${y}.value;
35
35
  }
36
36
 
37
37
  `):f.write(`
38
- const ${y}_present = ${_} in input;
38
+ const ${y}_present = ${C} in input;
39
39
  if (${y}.issues.length) {
40
40
  payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
41
41
  ...iss,
42
- path: iss.path ? [${_}, ...iss.path] : [${_}]
42
+ path: iss.path ? [${C}, ...iss.path] : [${C}]
43
43
  })));
44
44
  }
45
45
  if (!${y}_present && !${y}.issues.length) {
@@ -47,54 +47,54 @@
47
47
  code: "invalid_type",
48
48
  expected: "nonoptional",
49
49
  input: undefined,
50
- path: [${_}]
50
+ path: [${C}]
51
51
  });
52
52
  }
53
53
 
54
54
  if (${y}_present) {
55
55
  if (${y}.value === undefined) {
56
- newResult[${_}] = undefined;
56
+ newResult[${C}] = undefined;
57
57
  } else {
58
- newResult[${_}] = ${y}.value;
58
+ newResult[${C}] = ${y}.value;
59
59
  }
60
60
  }
61
61
 
62
- `)}f.write("payload.value = newResult;"),f.write("return payload;");const S=f.compile();return(C,y)=>S(d,C,y)};let i;const a=Cn,l=!ca.jitless,c=l&&Pc.value,u=t.catchall;let h;e._zod.parse=(d,f)=>{h??(h=o.value);const p=d.value;return a(p)?l&&c&&(f==null?void 0:f.async)===!1&&f.jitless!==!0?(i||(i=r(t.shape)),d=i(d,f),u?Jl([],p,d,f,h,e):d):n(d,f):(d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d)}});function Ka(e,t,n,o){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const r=e.filter(i=>!Yt(i));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>$t(a,o,wt())))}),t)}const Xl=E("$ZodUnion",(e,t)=>{me.init(e,t),re(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),re(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),re(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),re(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${o.map(r=>da(r.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,r)=>{if(n)return n(o,r);let i=!1;const a=[];for(const l of t.options){const s=l._zod.run({value:o.value,issues:[]},r);if(s instanceof Promise)a.push(s),i=!0;else{if(s.issues.length===0)return s;a.push(s)}}return i?Promise.all(a).then(l=>Ka(l,o,e,r)):Ka(a,o,e,r)}}),kd=E("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Xl.init(e,t);const n=e._zod.parse;re(e._zod,"propValues",()=>{const r={};for(const i of t.options){const a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[l,s]of Object.entries(a)){r[l]||(r[l]=new Set);for(const c of s)r[l].add(c)}}return r});const o=ko(()=>{var a;const r=t.options,i=new Map;for(const l of r){const s=(a=l._zod.propValues)==null?void 0:a[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const c of s){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,l)}}return i});e._zod.parse=(r,i)=>{const a=r.value;if(!Cn(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;const l=o.value.get(a==null?void 0:a[t.discriminator]);return l?l._zod.run(r,i):t.unionFallback||i.direction==="backward"?n(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:a,path:[t.discriminator],inst:e}),r)}}),_d=E("$ZodIntersection",(e,t)=>{me.init(e,t),e._zod.parse=(n,o)=>{const r=n.value,i=t.left._zod.run({value:r,issues:[]},o),a=t.right._zod.run({value:r,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,c])=>Ja(n,s,c)):Ja(n,i,a)}});function vr(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(tn(e)&&tn(t)){const n=Object.keys(t),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),r={...e,...t};for(const i of o){const a=vr(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r[i]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let o=0;o<e.length;o++){const r=e[o],i=t[o],a=vr(r,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ja(e,t,n){const o=new Map;let r;for(const l of t.issues)if(l.code==="unrecognized_keys"){r??(r=l);for(const s of l.keys)o.has(s)||o.set(s,{}),o.get(s).l=!0}else e.issues.push(l);for(const l of n.issues)if(l.code==="unrecognized_keys")for(const s of l.keys)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(l);const i=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&r&&e.issues.push({...r,keys:i}),Yt(e))return e;const a=vr(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const Cd=E("$ZodTuple",(e,t)=>{me.init(e,t);const n=t.items;e._zod.parse=(o,r)=>{const i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];const a=[],l=Xa(n,"optin"),s=Xa(n,"optout");if(!t.rest){if(i.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:i,inst:e,origin:"array"})}const c=new Array(n.length);for(let u=0;u<n.length;u++){const h=n[u]._zod.run({value:i[u],issues:[]},r);h instanceof Promise?a.push(h.then(d=>{c[u]=d})):c[u]=h}if(t.rest){let u=n.length-1;const h=i.slice(n.length);for(const d of h){u++;const f=t.rest._zod.run({value:d,issues:[]},r);f instanceof Promise?a.push(f.then(p=>Qa(p,o,u))):Qa(f,o,u)}}return a.length?Promise.all(a).then(()=>ei(c,o,n,i,s)):ei(c,o,n,i,s)}});function Xa(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function Qa(e,t,n){e.issues.length&&t.issues.push(...yt(n,e.issues)),t.value[n]=e.value}function ei(e,t,n,o,r){for(let i=0;i<n.length;i++){const a=e[i],l=i<o.length;if(a.issues.length){if(!l&&i>=r){t.value.length=i;break}t.issues.push(...yt(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=o.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}const Ad=E("$ZodRecord",(e,t)=>{me.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!tn(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;const i=[],a=t.keyType._zod.values;if(a){n.value={};const l=new Set;for(const c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){l.add(typeof c=="number"?c.toString():c);const u=t.keyType._zod.run({value:c,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(f=>$t(f,o,wt())),input:c,path:[c],inst:e});continue}const h=u.value,d=t.valueType._zod.run({value:r[c],issues:[]},o);d instanceof Promise?i.push(d.then(f=>{f.issues.length&&n.issues.push(...yt(c,f.issues)),n.value[h]=f.value})):(d.issues.length&&n.issues.push(...yt(c,d.issues)),n.value[h]=d.value)}let s;for(const c in r)l.has(c)||(s=s??[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(r)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(r,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&Ul.test(l)&&s.issues.length){const h=t.keyType._zod.run({value:Number(l),issues:[]},o);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(s=h)}if(s.issues.length){t.mode==="loose"?n.value[l]=r[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(h=>$t(h,o,wt())),input:l,path:[l],inst:e});continue}const u=t.valueType._zod.run({value:r[l],issues:[]},o);u instanceof Promise?i.push(u.then(h=>{h.issues.length&&n.issues.push(...yt(l,h.issues)),n.value[s.value]=h.value})):(u.issues.length&&n.issues.push(...yt(l,u.issues)),n.value[s.value]=u.value)}}return i.length?Promise.all(i).then(()=>n):n}}),yd=E("$ZodEnum",(e,t)=>{me.init(e,t);const n=Ol(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(r=>Oc.has(typeof r)).map(r=>typeof r=="string"?nn(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{const a=r.value;return o.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),Id=E("$ZodLiteral",(e,t)=>{if(me.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?nn(o):o?nn(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,r)=>{const i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),Rd=E("$ZodTransform",(e,t)=>{me.init(e,t),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Pl(e.constructor.name);const r=t.transform(n.value,n);if(o.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n.fallback=!0,n));if(r instanceof Promise)throw new Xt;return n.value=r,n.fallback=!0,n}});function ti(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Ql=E("$ZodOptional",(e,t)=>{me.init(e,t),e._zod.optin="optional",e._zod.optout="optional",re(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),re(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${da(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){const r=n.value,i=t.innerType._zod.run(n,o);return i instanceof Promise?i.then(a=>ti(a,r)):ti(i,r)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),Nd=E("$ZodExactOptional",(e,t)=>{Ql.init(e,t),re(e._zod,"values",()=>t.innerType._zod.values),re(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),Td=E("$ZodNullable",(e,t)=>{me.init(e,t),re(e._zod,"optin",()=>t.innerType._zod.optin),re(e._zod,"optout",()=>t.innerType._zod.optout),re(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${da(n.source)}|null)$`):void 0}),re(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),Ed=E("$ZodDefault",(e,t)=>{me.init(e,t),e._zod.optin="optional",re(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>ni(i,t)):ni(r,t)}});function ni(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Md=E("$ZodPrefault",(e,t)=>{me.init(e,t),e._zod.optin="optional",re(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),Pd=E("$ZodNonOptional",(e,t)=>{me.init(e,t),re(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>oi(i,e)):oi(r,e)}});function oi(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Od=E("$ZodCatch",(e,t)=>{me.init(e,t),e._zod.optin="optional",re(e._zod,"optout",()=>t.innerType._zod.optout),re(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>$t(a,o,wt()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>$t(i,o,wt()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),es=E("$ZodPipe",(e,t)=>{me.init(e,t),re(e._zod,"values",()=>t.in._zod.values),re(e._zod,"optin",()=>t.in._zod.optin),re(e._zod,"optout",()=>t.out._zod.optout),re(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){const i=t.out._zod.run(n,o);return i instanceof Promise?i.then(a=>Fn(a,t.in,o)):Fn(i,t.in,o)}const r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>Fn(i,t.out,o)):Fn(r,t.out,o)}});function Fn(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const Ld=E("$ZodPreprocess",(e,t)=>{es.init(e,t)}),zd=E("$ZodReadonly",(e,t)=>{me.init(e,t),re(e._zod,"propValues",()=>t.innerType._zod.propValues),re(e._zod,"values",()=>t.innerType._zod.values),re(e._zod,"optin",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optin}),re(e._zod,"optout",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optout}),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(ri):ri(r)}});function ri(e){return e.value=Object.freeze(e.value),e}const jd=E("$ZodLazy",(e,t)=>{me.init(e,t),re(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),re(e._zod,"pattern",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.pattern}),re(e._zod,"propValues",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.propValues}),re(e._zod,"optin",()=>{var n,o;return((o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.optin)??void 0}),re(e._zod,"optout",()=>{var n,o;return((o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.optout)??void 0}),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),Bd=E("$ZodCustom",(e,t)=>{He.init(e,t),me.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{const o=n.value,r=t.fn(o);if(r instanceof Promise)return r.then(i=>ai(i,n,o,e));ai(r,n,o,e)}});function ai(e,t,n,o){if(!e){const r={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(r.params=o._zod.def.params),t.issues.push(An(r))}}var ii;class Dd{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const o={...this.get(n)??{}};delete o.id;const r={...o,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Fd(){return new Dd}(ii=globalThis).__zod_globalRegistry??(ii.__zod_globalRegistry=Fd());const wn=globalThis.__zod_globalRegistry;function Hd(e,t){return new e({type:"string",...G(t)})}function Gd(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...G(t)})}function li(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...G(t)})}function Ud(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...G(t)})}function Wd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...G(t)})}function Zd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...G(t)})}function Vd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...G(t)})}function qd(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...G(t)})}function Yd(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...G(t)})}function Kd(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...G(t)})}function Jd(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...G(t)})}function Xd(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...G(t)})}function Qd(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...G(t)})}function eh(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...G(t)})}function th(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...G(t)})}function nh(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...G(t)})}function oh(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...G(t)})}function rh(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...G(t)})}function ah(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...G(t)})}function ih(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...G(t)})}function lh(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...G(t)})}function sh(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...G(t)})}function ch(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...G(t)})}function uh(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...G(t)})}function dh(e,t){return new e({type:"string",format:"date",check:"string_format",...G(t)})}function hh(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...G(t)})}function fh(e,t){return new e({type:"string",format:"duration",check:"string_format",...G(t)})}function mh(e,t){return new e({type:"number",checks:[],...G(t)})}function ph(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...G(t)})}function gh(e,t){return new e({type:"boolean",...G(t)})}function bh(e){return new e({type:"any"})}function xh(e){return new e({type:"unknown"})}function vh(e,t){return new e({type:"never",...G(t)})}function si(e,t){return new Zl({check:"less_than",...G(t),value:e,inclusive:!1})}function Eo(e,t){return new Zl({check:"less_than",...G(t),value:e,inclusive:!0})}function ci(e,t){return new Vl({check:"greater_than",...G(t),value:e,inclusive:!1})}function Mo(e,t){return new Vl({check:"greater_than",...G(t),value:e,inclusive:!0})}function ui(e,t){return new Nu({check:"multiple_of",...G(t),value:e})}function ts(e,t){return new Eu({check:"max_length",...G(t),maximum:e})}function co(e,t){return new Mu({check:"min_length",...G(t),minimum:e})}function ns(e,t){return new Pu({check:"length_equals",...G(t),length:e})}function Sh(e,t){return new Ou({check:"string_format",format:"regex",...G(t),pattern:e})}function wh(e){return new Lu({check:"string_format",format:"lowercase",...G(e)})}function $h(e){return new zu({check:"string_format",format:"uppercase",...G(e)})}function kh(e,t){return new ju({check:"string_format",format:"includes",...G(t),includes:e})}function _h(e,t){return new Bu({check:"string_format",format:"starts_with",...G(t),prefix:e})}function Ch(e,t){return new Du({check:"string_format",format:"ends_with",...G(t),suffix:e})}function ln(e){return new Fu({check:"overwrite",tx:e})}function Ah(e){return ln(t=>t.normalize(e))}function yh(){return ln(e=>e.trim())}function Ih(){return ln(e=>e.toLowerCase())}function Rh(){return ln(e=>e.toUpperCase())}function Nh(){return ln(e=>Mc(e))}function Th(e,t,n){return new e({type:"array",element:t,...G(n)})}function Eh(e,t,n){return new e({type:"custom",check:"custom",fn:t,...G(n)})}function Mh(e,t){const n=Ph(o=>(o.addIssue=r=>{if(typeof r=="string")o.issues.push(An(r,o.value,n._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(An(i))}},e(o.value,o)),t);return n}function Ph(e,t){const n=new He({check:"custom",...G(t)});return n._zod.check=e,n}function os(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??wn,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function $e(e,t,n={path:[],schemaPath:[]}){var u,h;var o;const r=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);const l=(h=(u=e._zod).toJSONSchema)==null?void 0:h.call(u);if(l)a.schema=l;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{const p=a.schema,b=t.processors[r.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);b(e,t,p,d)}const f=e._zod.parent;f&&(a.ref||(a.ref=f),$e(f,t,d),t.seen.get(f).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),t.io==="input"&&ze(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function rs(e,t){var a,l,s,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=new Map;for(const u of e.seen.entries()){const h=(a=e.metadataRegistry.get(u[0]))==null?void 0:a.id;if(h){const d=o.get(h);if(d&&d!==u[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(h,u[0])}}const r=u=>{var b;const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const x=(b=e.external.registry.get(u[0]))==null?void 0:b.id,v=e.external.uri??(k=>k);if(x)return{ref:v(x)};const S=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=S,{defId:S,ref:`${v("__shared")}#/${h}/${S}`}}if(u[1]===n)return{ref:"#"};const f=`#/${h}/`,p=u[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:f+p}},i=u=>{if(u[1].schema.$ref)return;const h=u[1],{ref:d,defId:f}=r(u);h.def={...h.schema},f&&(h.defId=f);const p=h.schema;for(const b in p)delete p[b];p.$ref=d};if(e.cycles==="throw")for(const u of e.seen.entries()){const h=u[1];if(h.cycle)throw new Error(`Cycle detected: #/${(l=h.cycle)==null?void 0:l.join("/")}/<root>
62
+ `)}f.write("payload.value = newResult;"),f.write("return payload;");const S=f.compile();return(_,y)=>S(d,_,y)};let i;const a=An,l=!da.jitless,c=l&&Oc.value,u=t.catchall;let h;e._zod.parse=(d,f)=>{h??(h=o.value);const p=d.value;return a(p)?l&&c&&(f==null?void 0:f.async)===!1&&f.jitless!==!0?(i||(i=r(t.shape)),d=i(d,f),u?Xl([],p,d,f,h,e):d):n(d,f):(d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d)}});function Ja(e,t,n,o){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const r=e.filter(i=>!Kt(i));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>$t(a,o,wt())))}),t)}const Ql=T("$ZodUnion",(e,t)=>{pe.init(e,t),ce(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),ce(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),ce(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),ce(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${o.map(r=>fa(r.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,r)=>{if(n)return n(o,r);let i=!1;const a=[];for(const l of t.options){const s=l._zod.run({value:o.value,issues:[]},r);if(s instanceof Promise)a.push(s),i=!0;else{if(s.issues.length===0)return s;a.push(s)}}return i?Promise.all(a).then(l=>Ja(l,o,e,r)):Ja(a,o,e,r)}}),_d=T("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Ql.init(e,t);const n=e._zod.parse;ce(e._zod,"propValues",()=>{const r={};for(const i of t.options){const a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[l,s]of Object.entries(a)){r[l]||(r[l]=new Set);for(const c of s)r[l].add(c)}}return r});const o=Co(()=>{var a;const r=t.options,i=new Map;for(const l of r){const s=(a=l._zod.propValues)==null?void 0:a[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const c of s){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,l)}}return i});e._zod.parse=(r,i)=>{const a=r.value;if(!An(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;const l=o.value.get(a==null?void 0:a[t.discriminator]);return l?l._zod.run(r,i):t.unionFallback||i.direction==="backward"?n(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:a,path:[t.discriminator],inst:e}),r)}}),Cd=T("$ZodIntersection",(e,t)=>{pe.init(e,t),e._zod.parse=(n,o)=>{const r=n.value,i=t.left._zod.run({value:r,issues:[]},o),a=t.right._zod.run({value:r,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,c])=>Xa(n,s,c)):Xa(n,i,a)}});function wr(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(nn(e)&&nn(t)){const n=Object.keys(t),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),r={...e,...t};for(const i of o){const a=wr(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r[i]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let o=0;o<e.length;o++){const r=e[o],i=t[o],a=wr(r,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Xa(e,t,n){const o=new Map;let r;for(const l of t.issues)if(l.code==="unrecognized_keys"){r??(r=l);for(const s of l.keys)o.has(s)||o.set(s,{}),o.get(s).l=!0}else e.issues.push(l);for(const l of n.issues)if(l.code==="unrecognized_keys")for(const s of l.keys)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(l);const i=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&r&&e.issues.push({...r,keys:i}),Kt(e))return e;const a=wr(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const Ad=T("$ZodTuple",(e,t)=>{pe.init(e,t);const n=t.items;e._zod.parse=(o,r)=>{const i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];const a=[],l=Qa(n,"optin"),s=Qa(n,"optout");if(!t.rest){if(i.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:i,inst:e,origin:"array"})}const c=new Array(n.length);for(let u=0;u<n.length;u++){const h=n[u]._zod.run({value:i[u],issues:[]},r);h instanceof Promise?a.push(h.then(d=>{c[u]=d})):c[u]=h}if(t.rest){let u=n.length-1;const h=i.slice(n.length);for(const d of h){u++;const f=t.rest._zod.run({value:d,issues:[]},r);f instanceof Promise?a.push(f.then(p=>ei(p,o,u))):ei(f,o,u)}}return a.length?Promise.all(a).then(()=>ti(c,o,n,i,s)):ti(c,o,n,i,s)}});function Qa(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function ei(e,t,n){e.issues.length&&t.issues.push(...yt(n,e.issues)),t.value[n]=e.value}function ti(e,t,n,o,r){for(let i=0;i<n.length;i++){const a=e[i],l=i<o.length;if(a.issues.length){if(!l&&i>=r){t.value.length=i;break}t.issues.push(...yt(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=o.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}const yd=T("$ZodRecord",(e,t)=>{pe.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!nn(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;const i=[],a=t.keyType._zod.values;if(a){n.value={};const l=new Set;for(const c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){l.add(typeof c=="number"?c.toString():c);const u=t.keyType._zod.run({value:c,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(f=>$t(f,o,wt())),input:c,path:[c],inst:e});continue}const h=u.value,d=t.valueType._zod.run({value:r[c],issues:[]},o);d instanceof Promise?i.push(d.then(f=>{f.issues.length&&n.issues.push(...yt(c,f.issues)),n.value[h]=f.value})):(d.issues.length&&n.issues.push(...yt(c,d.issues)),n.value[h]=d.value)}let s;for(const c in r)l.has(c)||(s=s??[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(r)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(r,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&Wl.test(l)&&s.issues.length){const h=t.keyType._zod.run({value:Number(l),issues:[]},o);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(s=h)}if(s.issues.length){t.mode==="loose"?n.value[l]=r[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(h=>$t(h,o,wt())),input:l,path:[l],inst:e});continue}const u=t.valueType._zod.run({value:r[l],issues:[]},o);u instanceof Promise?i.push(u.then(h=>{h.issues.length&&n.issues.push(...yt(l,h.issues)),n.value[s.value]=h.value})):(u.issues.length&&n.issues.push(...yt(l,u.issues)),n.value[s.value]=u.value)}}return i.length?Promise.all(i).then(()=>n):n}}),Id=T("$ZodEnum",(e,t)=>{pe.init(e,t);const n=Ll(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(r=>Lc.has(typeof r)).map(r=>typeof r=="string"?on(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{const a=r.value;return o.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),Rd=T("$ZodLiteral",(e,t)=>{if(pe.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?on(o):o?on(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,r)=>{const i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),Nd=T("$ZodTransform",(e,t)=>{pe.init(e,t),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Ol(e.constructor.name);const r=t.transform(n.value,n);if(o.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n.fallback=!0,n));if(r instanceof Promise)throw new Qt;return n.value=r,n.fallback=!0,n}});function ni(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const es=T("$ZodOptional",(e,t)=>{pe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ce(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ce(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${fa(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){const r=n.value,i=t.innerType._zod.run(n,o);return i instanceof Promise?i.then(a=>ni(a,r)):ni(i,r)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),Td=T("$ZodExactOptional",(e,t)=>{es.init(e,t),ce(e._zod,"values",()=>t.innerType._zod.values),ce(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),Ed=T("$ZodNullable",(e,t)=>{pe.init(e,t),ce(e._zod,"optin",()=>t.innerType._zod.optin),ce(e._zod,"optout",()=>t.innerType._zod.optout),ce(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${fa(n.source)}|null)$`):void 0}),ce(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),Md=T("$ZodDefault",(e,t)=>{pe.init(e,t),e._zod.optin="optional",ce(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>oi(i,t)):oi(r,t)}});function oi(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Pd=T("$ZodPrefault",(e,t)=>{pe.init(e,t),e._zod.optin="optional",ce(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),Od=T("$ZodNonOptional",(e,t)=>{pe.init(e,t),ce(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>ri(i,e)):ri(r,e)}});function ri(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Ld=T("$ZodCatch",(e,t)=>{pe.init(e,t),e._zod.optin="optional",ce(e._zod,"optout",()=>t.innerType._zod.optout),ce(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>$t(a,o,wt()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>$t(i,o,wt()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),ts=T("$ZodPipe",(e,t)=>{pe.init(e,t),ce(e._zod,"values",()=>t.in._zod.values),ce(e._zod,"optin",()=>t.in._zod.optin),ce(e._zod,"optout",()=>t.out._zod.optout),ce(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){const i=t.out._zod.run(n,o);return i instanceof Promise?i.then(a=>Hn(a,t.in,o)):Hn(i,t.in,o)}const r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>Hn(i,t.out,o)):Hn(r,t.out,o)}});function Hn(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const zd=T("$ZodPreprocess",(e,t)=>{ts.init(e,t)}),jd=T("$ZodReadonly",(e,t)=>{pe.init(e,t),ce(e._zod,"propValues",()=>t.innerType._zod.propValues),ce(e._zod,"values",()=>t.innerType._zod.values),ce(e._zod,"optin",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optin}),ce(e._zod,"optout",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optout}),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(ai):ai(r)}});function ai(e){return e.value=Object.freeze(e.value),e}const Bd=T("$ZodLazy",(e,t)=>{pe.init(e,t),ce(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),ce(e._zod,"pattern",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.pattern}),ce(e._zod,"propValues",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.propValues}),ce(e._zod,"optin",()=>{var n,o;return((o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.optin)??void 0}),ce(e._zod,"optout",()=>{var n,o;return((o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.optout)??void 0}),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),Dd=T("$ZodCustom",(e,t)=>{Ue.init(e,t),pe.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{const o=n.value,r=t.fn(o);if(r instanceof Promise)return r.then(i=>ii(i,n,o,e));ii(r,n,o,e)}});function ii(e,t,n,o){if(!e){const r={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(r.params=o._zod.def.params),t.issues.push(yn(r))}}var li;class Fd{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const o={...this.get(n)??{}};delete o.id;const r={...o,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Hd(){return new Fd}(li=globalThis).__zod_globalRegistry??(li.__zod_globalRegistry=Hd());const $n=globalThis.__zod_globalRegistry;function Gd(e,t){return new e({type:"string",...U(t)})}function Ud(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...U(t)})}function si(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...U(t)})}function Wd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...U(t)})}function Zd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...U(t)})}function Vd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...U(t)})}function qd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...U(t)})}function Yd(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...U(t)})}function Kd(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...U(t)})}function Jd(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...U(t)})}function Xd(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...U(t)})}function Qd(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...U(t)})}function eh(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...U(t)})}function th(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...U(t)})}function nh(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...U(t)})}function oh(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...U(t)})}function rh(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...U(t)})}function ah(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...U(t)})}function ih(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...U(t)})}function lh(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...U(t)})}function sh(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...U(t)})}function ch(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...U(t)})}function uh(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...U(t)})}function dh(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...U(t)})}function hh(e,t){return new e({type:"string",format:"date",check:"string_format",...U(t)})}function fh(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...U(t)})}function mh(e,t){return new e({type:"string",format:"duration",check:"string_format",...U(t)})}function ph(e,t){return new e({type:"number",checks:[],...U(t)})}function gh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...U(t)})}function bh(e,t){return new e({type:"boolean",...U(t)})}function xh(e){return new e({type:"any"})}function vh(e){return new e({type:"unknown"})}function Sh(e,t){return new e({type:"never",...U(t)})}function ci(e,t){return new Vl({check:"less_than",...U(t),value:e,inclusive:!1})}function Oo(e,t){return new Vl({check:"less_than",...U(t),value:e,inclusive:!0})}function ui(e,t){return new ql({check:"greater_than",...U(t),value:e,inclusive:!1})}function Lo(e,t){return new ql({check:"greater_than",...U(t),value:e,inclusive:!0})}function di(e,t){return new Tu({check:"multiple_of",...U(t),value:e})}function ns(e,t){return new Mu({check:"max_length",...U(t),maximum:e})}function ho(e,t){return new Pu({check:"min_length",...U(t),minimum:e})}function os(e,t){return new Ou({check:"length_equals",...U(t),length:e})}function wh(e,t){return new Lu({check:"string_format",format:"regex",...U(t),pattern:e})}function $h(e){return new zu({check:"string_format",format:"lowercase",...U(e)})}function kh(e){return new ju({check:"string_format",format:"uppercase",...U(e)})}function _h(e,t){return new Bu({check:"string_format",format:"includes",...U(t),includes:e})}function Ch(e,t){return new Du({check:"string_format",format:"starts_with",...U(t),prefix:e})}function Ah(e,t){return new Fu({check:"string_format",format:"ends_with",...U(t),suffix:e})}function sn(e){return new Hu({check:"overwrite",tx:e})}function yh(e){return sn(t=>t.normalize(e))}function Ih(){return sn(e=>e.trim())}function Rh(){return sn(e=>e.toLowerCase())}function Nh(){return sn(e=>e.toUpperCase())}function Th(){return sn(e=>Pc(e))}function Eh(e,t,n){return new e({type:"array",element:t,...U(n)})}function Mh(e,t,n){return new e({type:"custom",check:"custom",fn:t,...U(n)})}function Ph(e,t){const n=Oh(o=>(o.addIssue=r=>{if(typeof r=="string")o.issues.push(yn(r,o.value,n._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(yn(i))}},e(o.value,o)),t);return n}function Oh(e,t){const n=new Ue({check:"custom",...U(t)});return n._zod.check=e,n}function rs(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??$n,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function $e(e,t,n={path:[],schemaPath:[]}){var u,h;var o;const r=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);const l=(h=(u=e._zod).toJSONSchema)==null?void 0:h.call(u);if(l)a.schema=l;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{const p=a.schema,b=t.processors[r.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);b(e,t,p,d)}const f=e._zod.parent;f&&(a.ref||(a.ref=f),$e(f,t,d),t.seen.get(f).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),t.io==="input"&&Be(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function as(e,t){var a,l,s,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=new Map;for(const u of e.seen.entries()){const h=(a=e.metadataRegistry.get(u[0]))==null?void 0:a.id;if(h){const d=o.get(h);if(d&&d!==u[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(h,u[0])}}const r=u=>{var b;const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const x=(b=e.external.registry.get(u[0]))==null?void 0:b.id,w=e.external.uri??(k=>k);if(x)return{ref:w(x)};const S=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=S,{defId:S,ref:`${w("__shared")}#/${h}/${S}`}}if(u[1]===n)return{ref:"#"};const f=`#/${h}/`,p=u[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:f+p}},i=u=>{if(u[1].schema.$ref)return;const h=u[1],{ref:d,defId:f}=r(u);h.def={...h.schema},f&&(h.defId=f);const p=h.schema;for(const b in p)delete p[b];p.$ref=d};if(e.cycles==="throw")for(const u of e.seen.entries()){const h=u[1];if(h.cycle)throw new Error(`Cycle detected: #/${(l=h.cycle)==null?void 0:l.join("/")}/<root>
63
63
 
64
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const h=u[1];if(t===u[0]){i(u);continue}if(e.external){const f=(s=e.external.registry.get(u[0]))==null?void 0:s.id;if(t!==u[0]&&f){i(u);continue}}if((c=e.metadataRegistry.get(u[0]))==null?void 0:c.id){i(u);continue}if(h.cycle){i(u);continue}if(h.count>1&&e.reused==="ref"){i(u);continue}}}function as(e,t){var l,s,c,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=h=>{const d=e.seen.get(h);if(d.ref===null)return;const f=d.def??d.schema,p={...f},b=d.ref;if(d.ref=null,b){o(b);const v=e.seen.get(b),S=v.schema;if(S.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(S)):Object.assign(f,S),Object.assign(f,p),h._zod.parent===b)for(const w in f)w==="$ref"||w==="allOf"||w in p||delete f[w];if(S.$ref&&v.def)for(const w in f)w==="$ref"||w==="allOf"||w in v.def&&JSON.stringify(f[w])===JSON.stringify(v.def[w])&&delete f[w]}const x=h._zod.parent;if(x&&x!==b){o(x);const v=e.seen.get(x);if(v!=null&&v.schema.$ref&&(f.$ref=v.schema.$ref,v.def))for(const S in f)S==="$ref"||S==="allOf"||S in v.def&&JSON.stringify(f[S])===JSON.stringify(v.def[S])&&delete f[S]}e.override({zodSchema:h,jsonSchema:f,path:d.path??[]})};for(const h of[...e.seen.entries()].reverse())o(h[0]);const r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,(l=e.external)!=null&&l.uri){const h=(s=e.external.registry.get(t))==null?void 0:s.id;if(!h)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(h)}Object.assign(r,n.def??n.schema);const i=(c=e.metadataRegistry.get(t))==null?void 0:c.id;i!==void 0&&r.id===i&&delete r.id;const a=((u=e.external)==null?void 0:u.defs)??{};for(const h of e.seen.entries()){const d=h[1];d.def&&d.defId&&(d.def.id===d.defId&&delete d.def.id,a[d.defId]=d.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?r.$defs=a:r.definitions=a);try{const h=JSON.parse(JSON.stringify(r));return Object.defineProperty(h,"~standard",{value:{...t["~standard"],jsonSchema:{input:uo(t,"input",e.processors),output:uo(t,"output",e.processors)}},enumerable:!1,writable:!1}),h}catch{throw new Error("Error converting schema to JSON.")}}function ze(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return ze(o.element,n);if(o.type==="set")return ze(o.valueType,n);if(o.type==="lazy")return ze(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return ze(o.innerType,n);if(o.type==="intersection")return ze(o.left,n)||ze(o.right,n);if(o.type==="record"||o.type==="map")return ze(o.keyType,n)||ze(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ze(o.in,n)||ze(o.out,n);if(o.type==="object"){for(const r in o.shape)if(ze(o.shape[r],n))return!0;return!1}if(o.type==="union"){for(const r of o.options)if(ze(r,n))return!0;return!1}if(o.type==="tuple"){for(const r of o.items)if(ze(r,n))return!0;return!!(o.rest&&ze(o.rest,n))}return!1}const Oh=(e,t={})=>n=>{const o=os({...n,processors:t});return $e(e,o),rs(o,e),as(o,e)},uo=(e,t,n={})=>o=>{const{libraryOptions:r,target:i}=o??{},a=os({...r??{},target:i,io:t,processors:n});return $e(e,a),rs(a,e),as(a,e)},Lh={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},zh=(e,t,n,o)=>{const r=n;r.type="string";const{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof a=="number"&&(r.maxLength=a),l&&(r.format=Lh[l]??l,r.format===""&&delete r.format,l==="time"&&delete r.format),c&&(r.contentEncoding=c),s&&s.size>0){const u=[...s];u.length===1?r.pattern=u[0].source:u.length>1&&(r.allOf=[...u.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},jh=(e,t,n,o)=>{const r=n,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof l=="string"&&l.includes("int")?r.type="integer":r.type="number";const h=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),d=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";h?f?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u:typeof i=="number"&&(r.minimum=i),d?f?(r.maximum=c,r.exclusiveMaximum=!0):r.exclusiveMaximum=c:typeof a=="number"&&(r.maximum=a),typeof s=="number"&&(r.multipleOf=s)},Bh=(e,t,n,o)=>{n.type="boolean"},Dh=(e,t,n,o)=>{n.not={}},Fh=(e,t,n,o)=>{},Hh=(e,t,n,o)=>{},Gh=(e,t,n,o)=>{const r=e._zod.def,i=Ol(r.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},Uh=(e,t,n,o)=>{const r=e._zod.def,i=[];for(const a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){const a=i[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),i.every(a=>typeof a=="boolean")&&(n.type="boolean"),i.every(a=>a===null)&&(n.type="null"),n.enum=i},Wh=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Zh=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Vh=(e,t,n,o)=>{const r=n,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof l=="number"&&(r.maxItems=l),r.type="array",r.items=$e(i.element,t,{...o,path:[...o.path,"items"]})},qh=(e,t,n,o)=>{var c;const r=n,i=e._zod.def;r.type="object",r.properties={};const a=i.shape;for(const u in a)r.properties[u]=$e(a[u],t,{...o,path:[...o.path,"properties",u]});const l=new Set(Object.keys(a)),s=new Set([...l].filter(u=>{const h=i.shape[u]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));s.size>0&&(r.required=Array.from(s)),((c=i.catchall)==null?void 0:c._zod.def.type)==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=$e(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},Yh=(e,t,n,o)=>{const r=e._zod.def,i=r.inclusive===!1,a=r.options.map((l,s)=>$e(l,t,{...o,path:[...o.path,i?"oneOf":"anyOf",s]}));i?n.oneOf=a:n.anyOf=a},Kh=(e,t,n,o)=>{const r=e._zod.def,i=$e(r.left,t,{...o,path:[...o.path,"allOf",0]}),a=$e(r.right,t,{...o,path:[...o.path,"allOf",1]}),l=c=>"allOf"in c&&Object.keys(c).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];n.allOf=s},Jh=(e,t,n,o)=>{const r=n,i=e._zod.def;r.type="array";const a=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=i.items.map((d,f)=>$e(d,t,{...o,path:[...o.path,a,f]})),c=i.rest?$e(i.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=s,c&&(r.items=c)):t.target==="openapi-3.0"?(r.items={anyOf:s},c&&r.items.anyOf.push(c),r.minItems=s.length,c||(r.maxItems=s.length)):(r.items=s,c&&(r.additionalItems=c));const{minimum:u,maximum:h}=e._zod.bag;typeof u=="number"&&(r.minItems=u),typeof h=="number"&&(r.maxItems=h)},Xh=(e,t,n,o)=>{const r=n,i=e._zod.def;r.type="object";const a=i.keyType,l=a._zod.bag,s=l==null?void 0:l.patterns;if(i.mode==="loose"&&s&&s.size>0){const u=$e(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});r.patternProperties={};for(const h of s)r.patternProperties[h.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=$e(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),r.additionalProperties=$e(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});const c=a._zod.values;if(c){const u=[...c].filter(h=>typeof h=="string"||typeof h=="number");u.length>0&&(r.required=u)}},Qh=(e,t,n,o)=>{const r=e._zod.def,i=$e(r.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},ef=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType},tf=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},nf=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},of=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},rf=(e,t,n,o)=>{const r=e._zod.def,i=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?r.out:r.in:r.out;$e(a,t,o);const l=t.seen.get(e);l.ref=a},af=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,n.readOnly=!0},is=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType},lf=(e,t,n,o)=>{const r=e._zod.innerType;$e(r,t,o);const i=t.seen.get(e);i.ref=r},sf=E("ZodISODateTime",(e,t)=>{td.init(e,t),ke.init(e,t)});function cf(e){return uh(sf,e)}const uf=E("ZodISODate",(e,t)=>{nd.init(e,t),ke.init(e,t)});function df(e){return dh(uf,e)}const hf=E("ZodISOTime",(e,t)=>{od.init(e,t),ke.init(e,t)});function ff(e){return hh(hf,e)}const mf=E("ZodISODuration",(e,t)=>{rd.init(e,t),ke.init(e,t)});function pf(e){return fh(mf,e)}const gf=(e,t)=>{Bl.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Vc(e,n)},flatten:{value:n=>Zc(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,xr,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,xr,2)}},isEmpty:{get(){return e.issues.length===0}}})},Ke=E("ZodError",gf,{Parent:Error}),bf=fa(Ke),xf=ma(Ke),vf=_o(Ke),Sf=Co(Ke),wf=Kc(Ke),$f=Jc(Ke),kf=Xc(Ke),_f=Qc(Ke),Cf=eu(Ke),Af=tu(Ke),yf=nu(Ke),If=ou(Ke),di=new WeakMap;function Mn(e,t,n){const o=Object.getPrototypeOf(e);let r=di.get(o);if(r||(r=new Set,di.set(o,r)),!r.has(t)){r.add(t);for(const i in n){const a=n[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){const l=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}const be=E("ZodType",(e,t)=>(me.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:uo(e,"input"),output:uo(e,"output")}}),e.toJSONSchema=Oh(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>bf(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>vf(e,n,o),e.parseAsync=async(n,o)=>xf(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Sf(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>wf(e,n,o),e.decode=(n,o)=>$f(e,n,o),e.encodeAsync=async(n,o)=>kf(e,n,o),e.decodeAsync=async(n,o)=>_f(e,n,o),e.safeEncode=(n,o)=>Cf(e,n,o),e.safeDecode=(n,o)=>Af(e,n,o),e.safeEncodeAsync=async(n,o)=>yf(e,n,o),e.safeDecodeAsync=async(n,o)=>If(e,n,o),Mn(e,"ZodType",{check(...n){const o=this.def;return this.clone(Rt(o,{checks:[...o.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return Nt(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(_m(n,o))},superRefine(n,o){return this.check(Cm(n,o))},overwrite(n){return this.check(ln(n))},optional(){return gi(this)},exactOptional(){return cm(this)},nullable(){return bi(this)},nullish(){return gi(bi(this))},nonoptional(n){return pm(this,n)},array(){return te(this)},or(n){return D([this,n])},and(n){return rm(this,n)},transform(n){return xi(this,ds(n))},default(n){return hm(this,n)},prefault(n){return mm(this,n)},catch(n){return bm(this,n)},pipe(n){return xi(this,n)},readonly(){return Sm(this)},describe(n){const o=this.clone();return wn.add(o,{description:n}),o},meta(...n){if(n.length===0)return wn.get(this);const o=this.clone();return wn.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){var n;return(n=wn.get(e))==null?void 0:n.description},configurable:!0}),e)),ls=E("_ZodString",(e,t)=>{pa.init(e,t),be.init(e,t),e._zod.processJSONSchema=(o,r,i)=>zh(e,o,r);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Mn(e,"_ZodString",{regex(...o){return this.check(Sh(...o))},includes(...o){return this.check(kh(...o))},startsWith(...o){return this.check(_h(...o))},endsWith(...o){return this.check(Ch(...o))},min(...o){return this.check(co(...o))},max(...o){return this.check(ts(...o))},length(...o){return this.check(ns(...o))},nonempty(...o){return this.check(co(1,...o))},lowercase(o){return this.check(wh(o))},uppercase(o){return this.check($h(o))},trim(){return this.check(yh())},normalize(...o){return this.check(Ah(...o))},toLowerCase(){return this.check(Ih())},toUpperCase(){return this.check(Rh())},slugify(){return this.check(Nh())}})}),Rf=E("ZodString",(e,t)=>{pa.init(e,t),ls.init(e,t),e.email=n=>e.check(Gd(Nf,n)),e.url=n=>e.check(qd(Tf,n)),e.jwt=n=>e.check(ch(Zf,n)),e.emoji=n=>e.check(Yd(Ef,n)),e.guid=n=>e.check(li(hi,n)),e.uuid=n=>e.check(Ud(Hn,n)),e.uuidv4=n=>e.check(Wd(Hn,n)),e.uuidv6=n=>e.check(Zd(Hn,n)),e.uuidv7=n=>e.check(Vd(Hn,n)),e.nanoid=n=>e.check(Kd(Mf,n)),e.guid=n=>e.check(li(hi,n)),e.cuid=n=>e.check(Jd(Pf,n)),e.cuid2=n=>e.check(Xd(Of,n)),e.ulid=n=>e.check(Qd(Lf,n)),e.base64=n=>e.check(ih(Gf,n)),e.base64url=n=>e.check(lh(Uf,n)),e.xid=n=>e.check(eh(zf,n)),e.ksuid=n=>e.check(th(jf,n)),e.ipv4=n=>e.check(nh(Bf,n)),e.ipv6=n=>e.check(oh(Df,n)),e.cidrv4=n=>e.check(rh(Ff,n)),e.cidrv6=n=>e.check(ah(Hf,n)),e.e164=n=>e.check(sh(Wf,n)),e.datetime=n=>e.check(cf(n)),e.date=n=>e.check(df(n)),e.time=n=>e.check(ff(n)),e.duration=n=>e.check(pf(n))});function $(e){return Hd(Rf,e)}const ke=E("ZodStringFormat",(e,t)=>{we.init(e,t),ls.init(e,t)}),Nf=E("ZodEmail",(e,t)=>{Zu.init(e,t),ke.init(e,t)}),hi=E("ZodGUID",(e,t)=>{Uu.init(e,t),ke.init(e,t)}),Hn=E("ZodUUID",(e,t)=>{Wu.init(e,t),ke.init(e,t)}),Tf=E("ZodURL",(e,t)=>{Vu.init(e,t),ke.init(e,t)}),Ef=E("ZodEmoji",(e,t)=>{qu.init(e,t),ke.init(e,t)}),Mf=E("ZodNanoID",(e,t)=>{Yu.init(e,t),ke.init(e,t)}),Pf=E("ZodCUID",(e,t)=>{Ku.init(e,t),ke.init(e,t)}),Of=E("ZodCUID2",(e,t)=>{Ju.init(e,t),ke.init(e,t)}),Lf=E("ZodULID",(e,t)=>{Xu.init(e,t),ke.init(e,t)}),zf=E("ZodXID",(e,t)=>{Qu.init(e,t),ke.init(e,t)}),jf=E("ZodKSUID",(e,t)=>{ed.init(e,t),ke.init(e,t)}),Bf=E("ZodIPv4",(e,t)=>{ad.init(e,t),ke.init(e,t)}),Df=E("ZodIPv6",(e,t)=>{id.init(e,t),ke.init(e,t)}),Ff=E("ZodCIDRv4",(e,t)=>{ld.init(e,t),ke.init(e,t)}),Hf=E("ZodCIDRv6",(e,t)=>{sd.init(e,t),ke.init(e,t)}),Gf=E("ZodBase64",(e,t)=>{cd.init(e,t),ke.init(e,t)}),Uf=E("ZodBase64URL",(e,t)=>{dd.init(e,t),ke.init(e,t)}),Wf=E("ZodE164",(e,t)=>{hd.init(e,t),ke.init(e,t)}),Zf=E("ZodJWT",(e,t)=>{md.init(e,t),ke.init(e,t)}),ss=E("ZodNumber",(e,t)=>{Yl.init(e,t),be.init(e,t),e._zod.processJSONSchema=(o,r,i)=>jh(e,o,r),Mn(e,"ZodNumber",{gt(o,r){return this.check(ci(o,r))},gte(o,r){return this.check(Mo(o,r))},min(o,r){return this.check(Mo(o,r))},lt(o,r){return this.check(si(o,r))},lte(o,r){return this.check(Eo(o,r))},max(o,r){return this.check(Eo(o,r))},int(o){return this.check(fi(o))},safe(o){return this.check(fi(o))},positive(o){return this.check(ci(0,o))},nonnegative(o){return this.check(Mo(0,o))},negative(o){return this.check(si(0,o))},nonpositive(o){return this.check(Eo(0,o))},multipleOf(o,r){return this.check(ui(o,r))},step(o,r){return this.check(ui(o,r))},finite(){return this}});const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function m(e){return mh(ss,e)}const Vf=E("ZodNumberFormat",(e,t)=>{pd.init(e,t),ss.init(e,t)});function fi(e){return ph(Vf,e)}const qf=E("ZodBoolean",(e,t)=>{gd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Bh(e,n,o)});function O(e){return gh(qf,e)}const Yf=E("ZodAny",(e,t)=>{bd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Fh()});function yn(){return bh(Yf)}const Kf=E("ZodUnknown",(e,t)=>{xd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Hh()});function mi(){return xh(Kf)}const Jf=E("ZodNever",(e,t)=>{vd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Dh(e,n,o)});function Xf(e){return vh(Jf,e)}const Qf=E("ZodArray",(e,t)=>{Sd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Vh(e,n,o,r),e.element=t.element,Mn(e,"ZodArray",{min(n,o){return this.check(co(n,o))},nonempty(n){return this.check(co(1,n))},max(n,o){return this.check(ts(n,o))},length(n,o){return this.check(ns(n,o))},unwrap(){return this.element}})});function te(e,t){return Th(Qf,e,t)}const em=E("ZodObject",(e,t)=>{$d.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>qh(e,n,o,r),re(e,"shape",()=>t.shape),Mn(e,"ZodObject",{keyof(){return N(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:mi()})},loose(){return this.clone({...this._zod.def,catchall:mi()})},strict(){return this.clone({...this._zod.def,catchall:Xf()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return Dc(this,n)},safeExtend(n){return Fc(this,n)},merge(n){return Hc(this,n)},pick(n){return jc(this,n)},omit(n){return Bc(this,n)},partial(...n){return Gc(hs,this,n[0])},required(...n){return Uc(fs,this,n[0])}})});function A(e,t){const n={type:"object",shape:e??{},...G(t)};return new em(n)}const cs=E("ZodUnion",(e,t)=>{Xl.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Yh(e,n,o,r),e.options=t.options});function D(e,t){return new cs({type:"union",options:e,...G(t)})}const tm=E("ZodDiscriminatedUnion",(e,t)=>{cs.init(e,t),kd.init(e,t)});function nm(e,t,n){return new tm({type:"union",options:t,discriminator:e,...G(n)})}const om=E("ZodIntersection",(e,t)=>{_d.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Kh(e,n,o,r)});function rm(e,t){return new om({type:"intersection",left:e,right:t})}const am=E("ZodTuple",(e,t)=>{Cd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Jh(e,n,o,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function us(e,t,n){const o=t instanceof me,r=o?n:t,i=o?t:null;return new am({type:"tuple",items:e,rest:i,...G(r)})}const pi=E("ZodRecord",(e,t)=>{Ad.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Xh(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType});function on(e,t,n){return!t||!t._zod?new pi({type:"record",keyType:$(),valueType:e,...G(t)}):new pi({type:"record",keyType:e,valueType:t,...G(n)})}const Sr=E("ZodEnum",(e,t)=>{yd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Gh(e,o,r),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(o,r)=>{const i={};for(const a of o)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Sr({...t,checks:[],...G(r),entries:i})},e.exclude=(o,r)=>{const i={...t.entries};for(const a of o)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Sr({...t,checks:[],...G(r),entries:i})}});function N(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Sr({type:"enum",entries:n,...G(t)})}const im=E("ZodLiteral",(e,t)=>{Id.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Uh(e,n,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function oe(e,t){return new im({type:"literal",values:Array.isArray(e)?e:[e],...G(t)})}const lm=E("ZodTransform",(e,t)=>{Rd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Zh(e,n),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Pl(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(An(i,n.value,t));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(An(a))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=r,n.fallback=!0,n)}});function ds(e){return new lm({type:"transform",transform:e})}const hs=E("ZodOptional",(e,t)=>{Ql.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>is(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function gi(e){return new hs({type:"optional",innerType:e})}const sm=E("ZodExactOptional",(e,t)=>{Nd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>is(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function cm(e){return new sm({type:"optional",innerType:e})}const um=E("ZodNullable",(e,t)=>{Td.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Qh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function bi(e){return new um({type:"nullable",innerType:e})}const dm=E("ZodDefault",(e,t)=>{Ed.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>tf(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function hm(e,t){return new dm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():zl(t)}})}const fm=E("ZodPrefault",(e,t)=>{Md.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>nf(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function mm(e,t){return new fm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():zl(t)}})}const fs=E("ZodNonOptional",(e,t)=>{Pd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ef(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function pm(e,t){return new fs({type:"nonoptional",innerType:e,...G(t)})}const gm=E("ZodCatch",(e,t)=>{Od.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>of(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function bm(e,t){return new gm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const ms=E("ZodPipe",(e,t)=>{es.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>rf(e,n,o,r),e.in=t.in,e.out=t.out});function xi(e,t){return new ms({type:"pipe",in:e,out:t})}const xm=E("ZodPreprocess",(e,t)=>{ms.init(e,t),Ld.init(e,t)}),vm=E("ZodReadonly",(e,t)=>{zd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>af(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Sm(e){return new vm({type:"readonly",innerType:e})}const wm=E("ZodLazy",(e,t)=>{jd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>lf(e,n,o,r),e.unwrap=()=>e._zod.def.getter()});function $m(e){return new wm({type:"lazy",getter:e})}const km=E("ZodCustom",(e,t)=>{Bd.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Wh(e,n)});function _m(e,t={}){return Eh(km,e,t)}function Cm(e,t){return Mh(e,t)}function ps(e,t){return new xm({type:"pipe",in:ds(e),out:t})}var Am=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),ym=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,vi=A({style:A({textAlign:N(["left","center","right"]).optional().nullable(),padding:Am}).optional().nullable(),props:A({size:m().gt(0).optional().nullable(),shape:N(["circle","square","rounded"]).optional().nullable(),imageUrl:$().optional().nullable(),alt:$().optional().nullable()}).optional().nullable()});function Im(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var Gn={size:64,imageUrl:"",alt:"",shape:"square"};function Si({style:e,props:t}){var n,o,r,i,a;const l=(n=t==null?void 0:t.size)!=null?n:Gn.size,s=(o=t==null?void 0:t.imageUrl)!=null?o:Gn.imageUrl,c=(r=t==null?void 0:t.alt)!=null?r:Gn.alt,u=(i=t==null?void 0:t.shape)!=null?i:Gn.shape,h={textAlign:(a=e==null?void 0:e.textAlign)!=null?a:void 0,padding:ym(e==null?void 0:e.padding)};return U.createElement("div",{style:h},U.createElement("img",{alt:c,src:s,height:l,width:l,style:{outline:"none",border:"none",textDecoration:"none",objectFit:"cover",height:l,width:l,maxWidth:"100%",display:"inline-block",verticalAlign:"middle",textAlign:"center",borderRadius:Im(u,l)}}))}const Rm=A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),Nm=vi.extend({props:vi.shape.props.unwrap().unwrap().extend({decorative:O().optional().nullable(),animation:Rm}).optional().nullable()}),$n={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},ga=Object.values($n);let gs=null;function wi(e){gs=e}function Tm(){return gs}function ba(){return"desktop"}const Pe=1024,Oe=640,ft=`@media (max-width: ${Pe}px)`,je=`@media (max-width: ${Oe}px)`,Bt=`@media (min-width: ${Oe+1}px) and (max-width: ${Pe}px)`,Ge=A({tablet:on($(),yn()).optional().nullable(),mobile:on($(),yn()).optional().nullable()}).optional().nullable();function xa(e){return typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e)}function va(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function Sa(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function Em(e,t,n){return t?(typeof e=="string"?e.trim():"").length===0?n:typeof e=="string"?e:n:null}const wa="data-ahd-theme",Po="auto",Mm="--ahd-c-",bs=(e,t,n)=>Math.min(n,Math.max(t,e));function Pm(e){const t=e.trim().match(/^#?([0-9a-f]{3,8})$/i);if(!t)return null;let n=t[1];return(n.length===3||n.length===4)&&(n=n.split("").map(o=>o+o).join("")),n.length!==6&&n.length!==8?null:{r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16),a:n.length===8?parseInt(n.slice(6,8),16)/255:1}}function Om(e){const t=e.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+)(?:,([0-9.]+))?\)$/i);return t?{r:Number(t[1]),g:Number(t[2]),b:Number(t[3]),a:t[4]!=null?Number(t[4]):1}:null}function Lm(e){const t=e.trim();return!t||t==="transparent"||t==="currentColor"||t==="inherit"?null:t.startsWith("#")?Pm(t):t.toLowerCase().startsWith("rgb")?Om(t):null}function $i({r:e,g:t,b:n,a:o}){const r=a=>bs(Math.round(a),0,255).toString(16).padStart(2,"0");if(o>=1)return`#${r(e)}${r(t)}${r(n)}`;const i=Math.round(o*1e3)/1e3;return`rgba(${Math.round(e)}, ${Math.round(t)}, ${Math.round(n)}, ${i})`}function zm({r:e,g:t,b:n}){const o=r=>{const i=r/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)};return .2126*o(e)+.7152*o(t)+.0722*o(n)}function ki({r:e,g:t,b:n,a:o}){const r=e/255,i=t/255,a=n/255,l=Math.max(r,i,a),s=Math.min(r,i,a),c=(l+s)/2,u=l-s;if(u===0)return{h:0,s:0,l:c,a:o};const h=c>.5?u/(2-l-s):u/(l+s);let d;return l===r?d=((i-a)/u+(i<a?6:0))/6:l===i?d=((a-r)/u+2)/6:d=((r-i)/u+4)/6,{h:d,s:h,l:c,a:o}}function Un({h:e,s:t,l:n,a:o}){if(t===0){const l=n*255;return{r:l,g:l,b:l,a:o}}const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=l=>{let s=l;return s<0&&(s+=1),s>1&&(s-=1),s<1/6?i+(r-i)*6*s:s<1/2?r:s<2/3?i+(r-i)*(2/3-s)*6:i};return{r:a(e+1/3)*255,g:a(e)*255,b:a(e-1/3)*255,a:o}}function jm(e){if(xa(e))return null;const t=Lm(e);if(!t)return null;const n=ki(t),o=n.s<.12,r=n.l>.9||n.l<.12;if(o||r){const u=.07+(1-n.l)*(.93-.07),h=o?n.s:Math.min(n.s,.08);return $i(Un({...n,s:h,l:u}))}const i=bs(Math.max(n.l,.62-n.l*.25),.45,.82);let a=Un({...n,l:i});const l=.22;let s=0;for(;zm(a)<l&&s<24;){const c=Math.min(.92,ki(a).l+.03);if(c>=.92){a=Un({...n,l:c});break}a=Un({...n,l:c}),s+=1}return $i(a)}function Bm(){const e=new Map;return{token(t){if(t==null)return;const n=typeof t=="string"?t.trim():"";if(!n)return t??void 0;const o=e.get(n);if(o)return`var(${o.name}, ${n})`;const r=jm(n);if(!r)return t;const i=`${Mm}${e.size+1}`;return e.set(n,{name:i,light:n,dark:r}),`var(${i}, ${n})`},css(t){if(t==="light"||e.size===0)return"";const n=[...e.values()],o=n.map(l=>`${l.name}:${l.light};`).join(""),r=n.map(l=>`${l.name}:light-dark(${l.light},${l.dark});`).join(""),i=t==="dark"?"dark":"light dark";return`${`[${wa}="${t}"]`}{color-scheme:${i};${o}${r}}`},size(){return e.size}}}function Dm(e){return`[${wa}="${e}"]{color-scheme:light dark;}`}const $a=U.createContext(null),Fm=$a.Provider;function j(e){const t=U.useContext($a);return t?t.token(e):e??void 0}const Hm=/style="([^"]*)"/gi,Gm=/(^|;)\s*(color|background-color|background|border-color)\s*:\s*([^;!]+)(!important)?/gi,Um=/<font([^>]*?)\scolor=["']([^"']+)["']([^>]*)>/gi;function Wm(e,t){if(!t||!e)return e;let n=e.replace(Hm,(o,r)=>{const i=r.replace(Gm,(a,l,s,c,u)=>{const h=c.trim(),d=t.token(h);return!d||d===h?a:`${l}${s}:${d}${u??""}`});return i===r?o:`style="${i}"`});return n=n.replace(Um,(o,r,i,a)=>{const l=t.token(i.trim());return!l||l===i.trim()?o:`<font${r}${a} style="color:${l}">`}),n}function Zm(e){const t=U.useContext($a);return Wm(e,t)}const Vm=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},qm=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M12 4V20M12 20L18 14M12 20L6 14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Ym=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 6L6 18M6 18H14M6 18V10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Km=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 6L18 18M18 18V10M18 18H10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Jm=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M20 12H4M4 12L10 18M4 12L10 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Xm=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Qm=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M12 20V4M12 4L6 10M12 4L18 10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ep=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 18L6 6M6 6V14M6 6H14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},tp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 18L18 6M18 6H10M18 6V14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},np=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},op=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 9L12 15L18 9",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},rp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M7 13L12 18L17 13M7 6L12 11L17 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ap=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M15 18L9 12L15 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ip=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 17L13 12L18 7M11 17L6 12L11 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},lp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M9 18L15 12L9 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},sp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 17L11 12L6 7M13 17L18 12L13 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},cp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 15L12 9L6 15",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},up=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 14",fill:"none",children:g.jsx("path",{d:"M11 13L6 8L1 13M11 6L6 1L1 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};function dp(e,t={fontSize:16}){if(!e)return null;switch(e){case"arrow-left":return g.jsx(Vm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return g.jsx(Jm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return g.jsx(np,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return g.jsx(Xm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return g.jsx(qm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return g.jsx(Ym,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return g.jsx(Km,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return g.jsx(Qm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return g.jsx(ep,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return g.jsx(tp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return g.jsx(ap,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return g.jsx(lp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return g.jsx(cp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down":return g.jsx(op,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left-double":return g.jsx(ip,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return g.jsx(sp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return g.jsx(up,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return g.jsx(rp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const hp=4,Ct=e=>({[e==="left"?"marginRight":"marginLeft"]:hp,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"}),fp=(e,t,n)=>({width:t,height:t,display:"block",backgroundColor:n,WebkitMaskImage:`url("${e}")`,maskImage:`url("${e}")`,WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskSize:"contain",maskSize:"contain"}),Wn=e=>({display:"inline-flex",alignItems:"center",justifyContent:e}),In="data-ahd-var",xs=/(<span\s+data-ahd-var="[^"]*">\{\{[^}]+\}\}<\/span>)|(\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\})/g,mp=/[&<>"']/g,pp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Qt(e){return e.replace(mp,t=>pp[t])}function vs(e){return!e||e.indexOf("{{")===-1?e:e.replace(xs,(t,n,o,r)=>{if(n)return n;const i=Qt(r);return`<span ${In}="${i}">{{${r}}}</span>`})}function Ss(e){return!e||e.indexOf("{{")===-1?e:Qt(e).replace(xs,(t,n,o,r)=>{if(n)return n;const i=Qt(r);return`<span ${In}="${i}">{{${r}}}</span>`})}const gp=/\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\}/g;function bp(e,t){if(!e||e.indexOf("{{")===-1)return e;const n=typeof window<"u"?window.location.search:void 0;if(n===void 0)return e;const o=new URLSearchParams(n||"");return e.replace(gp,(r,i)=>{const a=o.get(i);return a!==null?encodeURIComponent(a):r})}function xp(e,t){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search??""),o=e.querySelectorAll(`[${In}]`);for(let r=0;r<o.length;r++){const i=o[r],a=n.get(i.getAttribute(In)||"");a!==null&&(i.textContent=a)}}const wr="data-ahd-date",ws="data-ahd-date-format";function $r(e,t){const n=Qt(e),o=t??"",r=Qt(o),i=$s(o)||`{{${n}}}`;return`<span ${In}="${n}" ${wr}="${r}" ${ws}="relative">${Qt(i)}</span>`}function $s(e,t=new Date){if(!e)return"";const n=new Date(e);if(Number.isNaN(n.getTime()))return"";const o=864e5,r=l=>new Date(l.getFullYear(),l.getMonth(),l.getDate()).getTime(),i=Math.round((r(n)-r(t))/o);if(i===0)return"Today";if(i===1)return"Tomorrow";if(i===-1)return"Yesterday";if(i>=-6&&i<=6)return n.toLocaleDateString(void 0,{weekday:"short"});const a=n.getFullYear()===t.getFullYear();return n.toLocaleDateString(void 0,{month:"short",day:"numeric",...a?{}:{year:"numeric"}})}function vp(e,t){if(typeof window>"u")return;const n=e.querySelectorAll(`[${wr}][${ws}="relative"]`);for(let o=0;o<n.length;o++){const r=n[o],i=r.getAttribute(wr)||"",a=$s(i,t);a&&(r.textContent=a)}}const Sp=N(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function Oo(e){if(!e)return"inherit";switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}return"inherit"}const wp=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),$p=$().regex(/^rgba?\([^\)]+\)$/i),kp=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),_p=oe("transparent"),Mt=D([wp,$p,kp,_p]).nullable().optional(),Cp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ap=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),yp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ip=D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),Rp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Np=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Tp=A({color:Mt,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:O().default(!1)}).partial().optional().nullable();function Ep(e){if(!(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")))return e;const n=e.match(/#([0-9a-fA-F]{3,8})|rgba?\([^)]+\)/);return(n==null?void 0:n[0])??"#000000"}function Mp(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e;return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${Ep(t)}`}}const Pp=A({style:A({backgroundColor:Mt,fontSize:m().min(0).optional().nullable(),fontFamily:Sp,fontWeight:N(["bold","normal",...ga]).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),buttonTextAlign:N(["left","center","right"]).optional().nullable(),padding:Cp,margin:Ap}).optional().nullable(),props:A({buttonBackground:Mt,hoverBackground:Mt,hoverTextColor:Mt,borderRadius:Ip,borderWidth:yp,borderColor:Mt,boxShadow:Tp,buttonTextColor:Mt,fullWidth:O().optional().nullable(),widthType:N(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:N(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:N(["fixed","fill","fit"]).optional().nullable(),width:m().min(0).optional().nullable(),widthUnit:N(["px","%"]).optional().nullable(),widthTablet:m().min(0).optional().nullable(),widthMobile:m().min(0).optional().nullable(),size:N(["x-small","small","large","medium"]).optional().nullable(),sizeTablet:N(["x-small","small","large","medium"]).optional().nullable(),sizeMobile:N(["x-small","small","large","medium"]).optional().nullable(),text:$().optional().nullable(),url:$().optional().nullable(),action:N(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:O().optional().nullable(),customAction:$().optional().nullable(),actionPayload:on($(),yn()).optional().nullable(),iconEnabled:O().optional().nullable(),iconName:$().optional().nullable(),iconUrl:$().optional().nullable(),iconAlignment:N(["left","right"]).optional().nullable(),ariaLabel:$().optional().nullable(),goToStep:$().optional().nullable(),postMessageEvent:$().optional().nullable(),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable()}).optional().nullable(),responsive:Ge});function _i(e){switch(e){case"x-small":return[4,8];case"small":return[8,12];case"large":return[16,32];case"medium":default:return[12,20]}}const _e={text:"",url:"",fullWidth:!1,widthType:"fit",width:200,widthUnit:"px",size:"medium",borderRadius:4,borderColor:"",boxShadow:null,buttonTextColor:"#000000",buttonBackground:"#ffffff",borderWidth:{top:0,right:0,bottom:0,left:0},action:"onNextStep",openInNewTab:!0,customAction:"",actionPayload:null,iconEnabled:!1,iconName:"",iconAlignment:"left",goToStep:"",postMessageEvent:""};function Op({style:e,props:t}){const o=`bh-${U.useId().replace(/:/g,"")}`,r=(t==null?void 0:t.text)??_e.text,i=typeof r=="string"&&r.indexOf("{{")!==-1,a=(Ee,tt)=>i?g.jsx("span",{style:Ee,"data-action":tt,dangerouslySetInnerHTML:{__html:Ss(r)}}):g.jsx("span",{style:Ee,"data-action":tt,children:r}),l=(t==null?void 0:t.url)??_e.url,s=bp(l),c=typeof window>"u"&&typeof s=="string"&&s.indexOf("{{")!==-1,u=(t==null?void 0:t.fullWidth)??_e.fullWidth,h=(t==null?void 0:t.widthType)??_e.widthType,d=(t==null?void 0:t.width)??_e.width,f=(t==null?void 0:t.widthUnit)??_e.widthUnit,p=(t==null?void 0:t.widthTablet)??null,b=(t==null?void 0:t.widthMobile)??null,x=p??d,v=b??x,S=(t==null?void 0:t.widthTypeTablet)??h,k=(t==null?void 0:t.widthTypeMobile)??S,w=(t==null?void 0:t.size)??_e.size,C=(t==null?void 0:t.sizeTablet)??w,y=(t==null?void 0:t.sizeMobile)??C,_=h,I=d,R=(t==null?void 0:t.buttonTextColor)??_e.buttonTextColor,T=(t==null?void 0:t.buttonBackground)??_e.buttonBackground,P=j(R),M=j(T),z=(t==null?void 0:t.iconEnabled)??_e.iconEnabled,F=(t==null?void 0:t.iconName)??_e.iconName,H=(t==null?void 0:t.iconAlignment)??_e.iconAlignment,V=(t==null?void 0:t.iconUrl)??null,q=!!(z&&(V||F)),he=(t==null?void 0:t.ariaLabel)??null,ae=typeof r=="string"&&r.trim().length>0,pe=he&&he.trim().length>0?he:!ae&&z&&F?F:void 0,ee=(t==null?void 0:t.action)??_e.action,se=(t==null?void 0:t.openInNewTab)??_e.openInNewTab,Y=((t==null?void 0:t.customAction)??_e.customAction)||ee,de=(t==null?void 0:t.actionPayload)??_e.actionPayload,ve=(t==null?void 0:t.goToStep)??_e.goToStep,K=(t==null?void 0:t.postMessageEvent)??_e.postMessageEvent,L=de||(Y==="goToStep"?{goToStep:ve||""}:null)||(Y==="postMessageEvent"?{postMessageEvent:K||""}:null),B=L?JSON.stringify(L):void 0,Z=(t==null?void 0:t.borderRadius)??_e.borderRadius,W=(t==null?void 0:t.borderWidth)??_e.borderWidth,X=(t==null?void 0:t.borderColor)??_e.borderColor,ge=j(X),Ue=(t==null?void 0:t.boxShadow)??_e.boxShadow,ce=Mp(Ue),Te=(t==null?void 0:t.hoverBackground)??null,ue=(t==null?void 0:t.hoverTextColor)??null,Ie=_i(w),We=Ee=>typeof Ee=="number"?`${Ee}px`:`${Ee.topLeft}px ${Ee.topRight}px ${Ee.bottomRight}px ${Ee.bottomLeft}px`,Re=(Ee,tt)=>{if(typeof Ee=="number")return`${Math.max(0,Ee-tt)}px`;const No=Math.max(0,(Ee.topLeft||0)-tt),To=Math.max(0,(Ee.topRight||0)-tt),Gt=Math.max(0,(Ee.bottomRight||0)-tt),Ut=Math.max(0,(Ee.bottomLeft||0)-tt);return`${No}px ${To}px ${Gt}px ${Ut}px`},Be=X&&(X.includes("linear-gradient")||X.includes("radial-gradient")||X.includes("repeating-linear-gradient")),De=W&&((W.top??0)>0||(W.right??0)>0||(W.bottom??0)>0||(W.left??0)>0),Q={top:(W==null?void 0:W.top)??0,right:(W==null?void 0:W.right)??0,bottom:(W==null?void 0:W.bottom)??0,left:(W==null?void 0:W.left)??0},Ne=(()=>{if(u)return"100%";switch(_){case"fill":return"100%";case"fixed":return`${I}${f}`;case"fit":default:return"auto"}})(),Fe=(e==null?void 0:e.buttonTextAlign)??(e==null?void 0:e.textAlign)??"center",Le=Fe==="center"?"center":Fe==="right"?"flex-end":"flex-start",kt=()=>!X||X==="transparent"||!De?{border:"none"}:Be?{borderTop:`${Q.top}px solid transparent`,borderRight:`${Q.right}px solid transparent`,borderBottom:`${Q.bottom}px solid transparent`,borderLeft:`${Q.left}px solid transparent`,borderImage:`${ge} `,borderRadius:"0px"}:{borderTop:`${Q.top}px solid ${ge}`,borderRight:`${Q.right}px solid ${ge}`,borderBottom:`${Q.bottom}px solid ${ge}`,borderLeft:`${Q.left}px solid ${ge}`},gt=T&&(T.includes("linear-gradient")||T.includes("radial-gradient")||T.includes("repeating-linear-gradient")),at=R&&(R.includes("linear-gradient")||R.includes("radial-gradient")||R.includes("repeating-linear-gradient")),Ze=(e==null?void 0:e.backgroundColor)&&(e.backgroundColor.includes("linear-gradient")||e.backgroundColor.includes("radial-gradient")||e.backgroundColor.includes("repeating-linear-gradient")),_t={backgroundColor:Ze?void 0:(e==null?void 0:e.backgroundColor)??void 0,backgroundImage:Ze?(e==null?void 0:e.backgroundColor)??void 0:void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:Rp(e==null?void 0:e.padding),margin:Np(e==null?void 0:e.margin)},it=kt(),lt=at?{backgroundImage:P,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:P||void 0},st=gt?void 0:M,qe=gt?M:void 0,J=(e==null?void 0:e.fontSize)??16,Se=`${J}px`,Ce=()=>V?g.jsx("span",{"aria-hidden":"true",style:fp(V,J,at?"currentColor":P||"currentColor")}):dp(F,{strokeColor:at?void 0:P,fontSize:J}),bt={fontSize:Se,fontFamily:Oo(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??$n.REGULAR,backgroundColor:st,backgroundImage:qe,borderRadius:Be?"0px":We(Z),...it,...Be&&De?{}:ce,display:Ne==="100%"?"block":"inline-block",width:Ne,padding:`${Ie[0]}px ${Ie[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:Le,lineHeight:"normal"},Ft=Be&&De?g.jsx("div",{style:{display:Ne==="100%"?"block":"inline-block",padding:`${Q.top}px ${Q.right}px ${Q.bottom}px ${Q.left}px`,background:ge,borderRadius:We(Z),width:Ne,boxSizing:"border-box",...ce},children:g.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:Re(Z,Math.max(Q.top,Q.right,Q.bottom,Q.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??$n.REGULAR,fontFamily:Oo(e==null?void 0:e.fontFamily),backgroundImage:qe,backgroundColor:st,textAlign:Fe,textDecoration:"none",fontSize:Se,padding:`${Ie[0]}px ${Ie[1]}px`,boxSizing:"border-box",lineHeight:"normal",...Wn(Le)},"data-action":Y,"data-action-payload":B,"data-goto-step":Y==="goToStep"&&ve?ve:void 0,"data-post-message-event":Y==="postMessageEvent"&&K?K:void 0,type:"button","aria-label":pe,children:[q&&H==="left"?g.jsx("span",{style:Ct("left"),"data-action":Y,children:Ce()}):null,a({...lt,pointerEvents:"none"},Y),q&&H==="right"?g.jsx("span",{style:Ct("right"),"data-action":Y,children:Ce()}):null]})}):g.jsxs("button",{style:{cursor:"pointer",...it,...ce,borderRadius:We(Z),width:Ne,fontWeight:(e==null?void 0:e.fontWeight)??$n.REGULAR,fontFamily:Oo(e==null?void 0:e.fontFamily),backgroundColor:st,backgroundImage:qe,textAlign:Fe,textDecoration:"none",fontSize:Se,padding:`${Ie[0]}px ${Ie[1]}px`,boxSizing:"border-box",lineHeight:"normal",...Wn(Le)},"data-action":Y,"data-action-payload":B,"data-goto-step":Y==="goToStep"&&ve?ve:void 0,"data-post-message-event":Y==="postMessageEvent"&&K?K:void 0,type:"button","aria-label":pe,children:[q&&H==="left"?g.jsx("span",{style:Ct("left"),"data-action":Y,children:Ce()}):null,a({...lt,pointerEvents:"none"},Y),q&&H==="right"?g.jsx("span",{style:Ct("right"),"data-action":Y,children:Ce()}):null]}),Ht=!!Te&&(Te.includes("linear-gradient")||Te.includes("radial-gradient")||Te.includes("repeating-linear-gradient")),ne=!!ue&&(ue.includes("linear-gradient")||ue.includes("radial-gradient")||ue.includes("repeating-linear-gradient")),le=[];Te&&(Ht?le.push(`background-image: ${Te} !important; background-color: transparent !important;`):le.push(`background-color: ${Te} !important; background-image: none !important;`)),ue&&!ne&&le.push(`color: ${ue} !important;`);const Ve=ue?ne?`background-image: ${ue} !important; background-repeat: no-repeat !important; background-size: 100% 100% !important; -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent !important; color: transparent !important; display: inline-block;`:`background-image: none !important; color: ${ue} !important; -webkit-text-fill-color: ${ue} !important;`:"",et=le.length>0||Ve?`#${o} a:hover, #${o} button:hover { ${le.join(" ")} transition: background-color 150ms ease, background-image 150ms ease, color 150ms ease; } #${o} a:hover span, #${o} button:hover span { ${Ve} }`:null,xt=(Ee,tt,No,To)=>{const Gt=[],Ut=u||tt==="fill"?"100%":tt==="fixed"?`${No}${f}`:"auto";Gt.push(`width: ${Ut} !important;`,"max-width: 100% !important;"),Gt.push(`display: ${Ut==="100%"?"block":"inline-block"} !important;`);const[Ua,Nc]=_i(To);return Gt.push(`padding: ${Ua}px ${Nc}px !important;`),`${Ee} { #${o} a, #${o} button { ${Gt.join(" ")} } #${o} > div { width: ${Ut} !important; max-width: 100% !important; display: ${Ut==="100%"?"block":"inline-block"} !important; } }`},hn=S!==h||C!==w||S==="fixed"&&x!==d,Ga=k!==h||y!==w||k==="fixed"&&v!==d,Bn=hn||Ga?[hn?xt(ft,S,x,C):"",Ga?xt(je,k,v,y):""].filter(Boolean).join(`
65
- `):null;if(ee!=="link")return g.jsxs("div",{id:o,className:"button-block",style:_t,children:[et&&g.jsx("style",{children:et}),Bn&&g.jsx("style",{children:Bn}),Ft]});const Rc=Be&&De?g.jsx("div",{style:{display:Ne==="100%"?"block":"inline-block",padding:`${Q.top}px ${Q.right}px ${Q.bottom}px ${Q.left}px`,background:ge,borderRadius:We(Z),width:Ne,boxSizing:"border-box",...ce},children:g.jsxs("a",{href:s,"data-ahd-href-tpl":c?s:void 0,style:{...bt,border:"none",borderRadius:Re(Z,Math.max(Q.top,Q.right,Q.bottom,Q.left)),width:"100%",...Wn(Le)},target:se?"_blank":void 0,rel:se?"noopener noreferrer":void 0,"aria-label":pe,children:[q&&H==="left"?g.jsx("span",{style:Ct("left"),children:Ce()}):null,a({...lt,pointerEvents:"none"}),q&&H==="right"?g.jsx("span",{style:Ct("right"),children:Ce()}):null]})}):g.jsxs("a",{href:s,"data-ahd-href-tpl":c?s:void 0,style:{...bt,borderRadius:We(Z),...Wn(Le)},target:se?"_blank":void 0,rel:se?"noopener noreferrer":void 0,"aria-label":pe,children:[q&&H==="left"?g.jsx("span",{style:Ct("left"),children:Ce()}):null,a({...lt,pointerEvents:"none"}),q&&H==="right"?g.jsx("span",{style:Ct("right"),children:Ce()}):null]});return g.jsxs("div",{id:o,className:"button-block",style:_t,children:[et&&g.jsx("style",{children:et}),Bn&&g.jsx("style",{children:Bn}),Rc]})}const Lp=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),zp=$().regex(/^rgba?\([^\)]+\)$/i),jp=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Bp=oe("transparent"),Ci=D([Lp,zp,jp,Bp]).nullable().optional(),Dp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Fp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Hp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Gp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Up=A({style:A({backgroundColor:Ci,padding:Dp,margin:Fp}).optional().nullable(),props:A({lineColor:Ci,lineHeight:m().optional().nullable()}).optional().nullable()}),Ai={lineHeight:1,lineColor:"#333333"};function Wp({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??Ai.lineHeight,o=j((t==null?void 0:t.lineColor)??Ai.lineColor),r={padding:Hp(e==null?void 0:e.padding),margin:Gp(e==null?void 0:e.margin),backgroundColor:j(e==null?void 0:e.backgroundColor),"--ahd-divider-thickness":`${n}px`};return g.jsx("div",{className:"divider-block",style:r,children:g.jsx("hr",{style:{width:"100%",border:"none",borderTopStyle:"solid",borderTopColor:o,borderTopWidth:`var(--ahd-divider-thickness, ${n}px)`,margin:0}})})}const Zp=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Vp=$().regex(/^rgba?\([^\)]+\)$/i),qp=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Yp=oe("transparent"),Lo=D([Zp,Vp,qp,Yp]).nullable().optional(),Kp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Jp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Xp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Qp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,eg=N(["inherit","MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function tg(e){switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}const ng=A({props:A({text:$().optional().nullable(),level:N(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:N(["text","link"]).optional().nullable(),url:$().optional().nullable(),openInNewTab:O().optional().nullable(),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable()}).optional().nullable(),style:A({color:Lo,textColor:Lo,backgroundColor:Lo,fontFamily:eg,fontSize:m().optional().nullable(),lineClamp:m().int().gte(0).optional().nullable(),fontWeight:N(["bold","normal",...ga]).optional().nullable(),fontStyle:N(["italic","normal"]).optional().nullable(),textDecoration:N(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),padding:Kp,margin:Jp}).optional().nullable(),responsive:Ge}),fn={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};function og({props:e,style:t}){const n=(e==null?void 0:e.level)??fn.level,o=(e==null?void 0:e.text)??fn.text,r=typeof o=="string"&&o.indexOf("{{")!==-1,i=(e==null?void 0:e.linkType)??fn.linkType,a=(e==null?void 0:e.url)??fn.url,l=(e==null?void 0:e.openInNewTab)??fn.openInNewTab,s=i==="link"&&a,c=(t==null?void 0:t.fontSize)??rg(n),u=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),h=j(u),d=u&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(u),f=(t==null?void 0:t.textDecoration)??"none",p=d&&(f==="underline"||f==="underline line-through"),b=d&&(f==="line-through"||f==="underline line-through"),x=t==null?void 0:t.lineClamp,v=x&&x>0?{display:"-webkit-box",WebkitLineClamp:x,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},S={fontWeight:(t==null?void 0:t.fontWeight)??$n.BOLD,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:d?"none":f,margin:0,fontFamily:tg(t==null?void 0:t.fontFamily),fontSize:c,...v},k=!!(x&&x>0),w=d?{lineHeight:"normal ",backgroundImage:h,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",position:"relative",...k?{}:{display:"inline-block"},...p?{paddingBottom:"0.08em"}:{}}:{color:h??void 0},C={position:"absolute",left:0,right:0,height:"0.08em",backgroundImage:h??void 0,pointerEvents:"none"},y={...C,bottom:0},_={...C,top:"50%",transform:"translateY(-50%)"},I=(t==null?void 0:t.backgroundColor)??void 0,R=j(I),T=typeof I=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(I),P=t==null?void 0:t.margin,M=((P==null?void 0:P.left)??0)+((P==null?void 0:P.right)??0),z={padding:Xp(t==null?void 0:t.padding),margin:Qp(t==null?void 0:t.margin),display:"block",width:M>0?`calc(100% - ${M}px)`:"100%",boxSizing:"border-box",textAlign:(t==null?void 0:t.textAlign)??void 0,wordBreak:"break-word",overflowWrap:"break-word",...T?{backgroundImage:R,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:R}},F=n,H=g.jsx(F,{className:"heading-block",style:S,children:g.jsxs("span",{style:w,children:[r?g.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:Ss(o)}}):o,p?g.jsx("span",{style:y}):null,b?g.jsx("span",{style:_}):null]})});return g.jsx("div",{className:"heading-block-wrapper",style:z,children:s?g.jsx("a",{href:a,target:l?"_blank":void 0,rel:l?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!d&&h?h:void 0},children:H}):H})}function rg(e){switch(e){case"h1":return 32;case"h2":return 24;case"h3":return 19;case"h4":return 16;case"h5":return 13;case"h6":return 11}}var ks="comm",_s="rule",Cs="decl",ag="@import",ig="@namespace",lg="@keyframes",sg="@layer",cg=Math.abs,kn=String.fromCharCode;function As(e){return e.trim()}function kr(e,t,n){return e.replace(t,n)}function en(e,t){return e.charCodeAt(t)|0}function rn(e,t,n){return e.slice(t,n)}function ht(e){return e.length}function ug(e){return e.length}function Zn(e,t){return t.push(e),e}var yo=1,an=1,ys=0,Ye=0,ye=0,sn="";function ka(e,t,n,o,r,i,a,l){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:yo,column:an,length:a,return:"",siblings:l}}function dg(){return ye}function hg(){return ye=Ye>0?en(sn,--Ye):0,an--,ye===10&&(an=1,yo--),ye}function rt(){return ye=Ye<ys?en(sn,Ye++):0,an++,ye===10&&(an=1,yo++),ye}function It(){return en(sn,Ye)}function eo(){return Ye}function Io(e,t){return rn(sn,e,t)}function Rn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function fg(e){return yo=an=1,ys=ht(sn=e),Ye=0,[]}function mg(e){return sn="",e}function zo(e){return As(Io(Ye-1,_r(e===91?e+2:e===40?e+1:e)))}function pg(e){for(;(ye=It())&&ye<33;)rt();return Rn(e)>2||Rn(ye)>3?"":" "}function gg(e,t){for(;--t&&rt()&&!(ye<48||ye>102||ye>57&&ye<65||ye>70&&ye<97););return Io(e,eo()+(t<6&&It()==32&&rt()==32))}function _r(e){for(;rt();)switch(ye){case e:return Ye;case 34:case 39:e!==34&&e!==39&&_r(ye);break;case 40:e===41&&_r(e);break;case 92:rt();break}return Ye}function bg(e,t){for(;rt()&&e+ye!==57;)if(e+ye===84&&It()===47)break;return"/*"+Io(t,Ye-1)+"*"+kn(e===47?e:rt())}function xg(e){for(;!Rn(It());)rt();return Io(e,Ye)}function vg(e){return mg(to("",null,null,null,[""],e=fg(e),0,[0],e))}function to(e,t,n,o,r,i,a,l,s){for(var c=0,u=0,h=a,d=0,f=0,p=0,b=1,x=1,v=1,S=0,k=0,w="",C=r,y=i,_=o,I=w;x;)switch(p=k,k=rt()){case 40:p!=108&&en(I,h-1)==58?(S++,I+="("):I+=zo(k);break;case 41:S--,I+=")";break;case 34:case 39:case 91:I+=zo(k);break;case 9:case 10:case 13:case 32:if(S>0){I+=kn(k);break}I+=pg(p);break;case 92:I+=gg(eo()-1,7);continue;case 47:switch(It()){case 42:case 47:Zn(Sg(bg(rt(),eo()),t,n,s),s),(Rn(p||1)==5||Rn(It()||1)==5)&&ht(I)&&rn(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*b:l[c++]=ht(I)*v;case 125*b:case 59:case 0:if(S>0&&k){I+=kn(k);break}switch(k){case 0:case 125:x=0;case 59+u:v==-1&&(I=kr(I,/\f/g,"")),f>0&&(ht(I)-h||b===0)&&Zn(f>32?Ii(I+";",o,n,h-1,s):Ii(kr(I," ","")+";",o,n,h-2,s),s);break;case 59:I+=";";default:if(Zn(_=yi(I,t,n,c,u,r,l,w,C=[],y=[],h,i),i),k===123)if(u===0)to(I,t,_,_,C,i,h,l,y);else{switch(d){case 99:if(en(I,3)===110)break;case 108:if(en(I,2)===97)break;default:u=0;case 100:case 109:case 115:}u?to(e,_,_,o&&Zn(yi(e,_,_,0,0,r,l,w,r,C=[],h,y),y),r,y,h,l,o?C:y):to(I,_,_,_,[""],y,0,l,y)}}c=u=f=0,b=v=1,w=I="",h=a;break;case 58:h=1+ht(I),f=p;default:if(b<1){if(k==123)--b;else if(k==125&&b++==0&&hg()==125)continue}switch(I+=kn(k),k*b){case 38:v=u>0?1:(I+="\f",-1);break;case 44:if(S>0)break;l[c++]=(ht(I)-1)*v,v=1;break;case 64:It()===45&&(I+=zo(rt())),d=It(),u=h=ht(w=I+=xg(eo())),k++;break;case 45:p===45&&ht(I)==2&&(b=0)}}return i}function yi(e,t,n,o,r,i,a,l,s,c,u,h){for(var d=r-1,f=r===0?i:[""],p=ug(f),b=0,x=0,v=0;b<o;++b)for(var S=0,k=rn(e,d+1,d=cg(x=a[b])),w=e;S<p;++S)(w=As(x>0?f[S]+" "+k:kr(k,/&\f/g,f[S])))&&(s[v++]=w);return ka(e,t,n,r===0?_s:l,s,c,u,h)}function Sg(e,t,n,o){return ka(e,t,n,ks,kn(dg()),rn(e,2,-2),0,o)}function Ii(e,t,n,o,r){return ka(e,t,n,Cs,rn(e,0,o),rn(e,o+1,-1),o,r)}function Cr(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function wg(e,t,n,o){switch(e.type){case sg:if(e.children.length)break;case ag:case ig:case Cs:return e.return=e.return||e.value;case ks:return"";case lg:return e.return=e.value+"{"+Cr(e.children,o)+"}";case _s:if(!ht(e.value=e.props.join(",")))return""}return ht(n=Cr(e.children,o))?e.return=e.value+"{"+n+"}":""}const $g=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),kg=$().regex(/^rgba?\([^\)]+\)$/i),_g=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Cg=oe("transparent"),Ri=D([$g,kg,_g,Cg]).nullable().optional(),Ag=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),yg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ig=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Rg=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ng=N(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function Tg(e){switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}const Eg=A({style:A({color:Ri,backgroundColor:Ri,fontFamily:Ng,fontSize:m().min(0).optional().nullable(),textAlign:N(["left","right","center"]).optional().nullable(),padding:Ag,margin:yg}).optional().nullable(),props:A({contents:$().optional().nullable()}).optional().nullable()}),Mg=/<style[^>]*>([\s\S]*?)<\/style>/gi;function Pg(e,t){let n="";const o=e.replace(Mg,(i,a)=>(n+=a,""));if(!n.trim())return{markup:o,css:""};const r=Cr(vg(`[${t}]{${n}}`),wg);return{markup:o,css:r}}function Og({style:e,props:t}){const n=t==null?void 0:t.contents,[o,r]=U.useState(!1),a=`data-html-scope-${U.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=U.useMemo(()=>n?Pg(n,a):{markup:"",css:""},[n,a]),c={color:j(e==null?void 0:e.color),backgroundColor:j(e==null?void 0:e.backgroundColor),fontFamily:Tg(e==null?void 0:e.fontFamily),fontSize:(e==null?void 0:e.fontSize)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:Ig(e==null?void 0:e.padding),margin:Rg(e==null?void 0:e.margin)},u=U.useRef(null);U.useEffect(()=>{const b=u.current;if(!b)return;b.querySelectorAll("iframe").forEach(v=>{try{v.style.pointerEvents=o?"auto":"none"}catch{}})},[n,o]);const h=b=>{o||r(!0)},d=()=>{r(!1)},f=`[${a}] pre,[${a}] code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}`;if(!n)return g.jsx("div",{ref:u,className:"html-block",style:c,children:g.jsx("style",{dangerouslySetInnerHTML:{__html:f}})});const p=`<style>${f}${s}</style>${vs(l)}`;return g.jsx("div",{ref:u,className:"html-block",style:c,onClick:h,onBlur:d,tabIndex:0,[a]:"",dangerouslySetInnerHTML:{__html:p}})}const Lg=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),zg=$().regex(/^rgba?\([^\)]+\)$/i),jg=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Bg=oe("transparent"),Dg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Fg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Hg=D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),no=D([Lg,zg,jg,Bg]).nullable().optional(),Gg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ug=A({color:no,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:O().default(!1)}).partial().optional().nullable();function Wg(e){if(!(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")))return e;const n=e.match(/#([0-9a-fA-F]{3,8})|rgba?\([^)]+\)/);return(n==null?void 0:n[0])??"#000000"}function Zg(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e;return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${Wg(t)}`}}const Vg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,qg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Yg(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function Kg(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const Jg=A({style:A({padding:Dg,margin:Fg,backgroundColor:no.default(null),textAlign:N(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:m().optional().nullable(),widthUnit:N(["px","%"]).optional().nullable(),widthUnitTablet:N(["px","%"]).optional().nullable(),widthUnitMobile:N(["px","%"]).optional().nullable(),widthTablet:m().positive().optional().nullable(),widthMobile:m().positive().optional().nullable(),height:m().optional().nullable(),heightTablet:m().positive().optional().nullable(),heightMobile:m().positive().optional().nullable(),widthType:N(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:N(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:N(["fixed","fill","fit"]).optional().nullable(),url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:O().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:N(["_self","_blank"]).optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable(),borderRadius:Hg,borderColor:no.default(null),borderWidth:Gg,boxShadow:Ug,iconName:$().optional().nullable(),iconFillColor:no.default(null),rotation:m().min(0).max(360).optional().nullable(),rotationTablet:m().min(0).max(360).optional().nullable(),rotationMobile:m().min(0).max(360).optional().nullable(),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),hoverEffect:A({enabled:O(),scale:m().min(1).max(1.5).optional().nullable(),duration:m().min(0).max(3e3).optional().nullable(),easing:N(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable()}).optional().nullable()}),Me={widthType:"fit",width:300,widthUnit:"px",height:null,url:"",alt:"",decorative:!1,showLink:!1,linkHref:null,linkTarget:"_blank",contentAlignment:"middle",borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null,rotation:0,hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};let Xg=0;function Qg({style:e,props:t}){const n=U.useMemo(()=>`ahd-img-${++Xg}`,[]),o=ba(),r=(e==null?void 0:e.textAlign)??void 0,i=r==="center"?"center":r==="right"?"flex-end":"flex-start",a=e==null?void 0:e.margin,l=((a==null?void 0:a.left)??0)+((a==null?void 0:a.right)??0),s={padding:Vg(e==null?void 0:e.padding),margin:qg(e==null?void 0:e.margin),...Yg(j(e==null?void 0:e.backgroundColor)),display:"flex",justifyContent:i,width:l>0?`max(0px, calc(100% - ${l}px))`:"100%",boxSizing:"border-box"},c=(t==null?void 0:t.showLink)??(t!=null&&t.linkHref?!0:Me.showLink),u=(t==null?void 0:t.linkHref)??Me.linkHref,h=c&&u?u:null,d=(t==null?void 0:t.linkTarget)??Me.linkTarget,f=(t==null?void 0:t.widthType)??Me.widthType,p=(t==null?void 0:t.widthTypeTablet)??f,b=(t==null?void 0:t.widthTypeMobile)??p,x=(t==null?void 0:t.width)??Me.width,v=(t==null?void 0:t.widthUnit)??Me.widthUnit,S=(t==null?void 0:t.widthUnitTablet)??v,k=(t==null?void 0:t.widthUnitMobile)??S,w=(t==null?void 0:t.widthTablet)??null,C=(t==null?void 0:t.widthMobile)??null,y=w??x,_=C??y,I=(t==null?void 0:t.height)??Me.height,R=(t==null?void 0:t.heightTablet)??null,T=(t==null?void 0:t.heightMobile)??null,P=R??I,M=T??P,z=I,F=(t==null?void 0:t.url)??Me.url,H=(t==null?void 0:t.urlTablet)??null,V=(t==null?void 0:t.urlMobile)??null,q=!h&&((t==null?void 0:t.decorative)??Me.decorative),he=q?"":(t==null?void 0:t.alt)??Me.alt,ae=q?{role:"presentation","aria-hidden":!0}:{},pe=(t==null?void 0:t.contentAlignment)??Me.contentAlignment,ee=(t==null?void 0:t.borderRadius)??Me.borderRadius,se=j((t==null?void 0:t.borderColor)??Me.borderColor),fe=(t==null?void 0:t.borderWidth)??Me.borderWidth,Y=(t==null?void 0:t.boxShadow)??Me.boxShadow,de=Zg(Y),ve=(t==null?void 0:t.rotation)??Me.rotation,K=(t==null?void 0:t.rotationTablet)??null,L=(t==null?void 0:t.rotationMobile)??null,B=K??ve,Z=L??B,W=J=>{const Se=J*Math.PI/180,Ce=J%180!==0?1/(Math.abs(Math.cos(Se))+Math.abs(Math.sin(Se))):1;return`rotate(${J}deg) scale(${Ce})`},X=ve,ge=X?{transform:W(X),transformOrigin:"center"}:{},ce=K!=null||L!=null?`
64
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const h=u[1];if(t===u[0]){i(u);continue}if(e.external){const f=(s=e.external.registry.get(u[0]))==null?void 0:s.id;if(t!==u[0]&&f){i(u);continue}}if((c=e.metadataRegistry.get(u[0]))==null?void 0:c.id){i(u);continue}if(h.cycle){i(u);continue}if(h.count>1&&e.reused==="ref"){i(u);continue}}}function is(e,t){var l,s,c,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=h=>{const d=e.seen.get(h);if(d.ref===null)return;const f=d.def??d.schema,p={...f},b=d.ref;if(d.ref=null,b){o(b);const w=e.seen.get(b),S=w.schema;if(S.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(S)):Object.assign(f,S),Object.assign(f,p),h._zod.parent===b)for(const v in f)v==="$ref"||v==="allOf"||v in p||delete f[v];if(S.$ref&&w.def)for(const v in f)v==="$ref"||v==="allOf"||v in w.def&&JSON.stringify(f[v])===JSON.stringify(w.def[v])&&delete f[v]}const x=h._zod.parent;if(x&&x!==b){o(x);const w=e.seen.get(x);if(w!=null&&w.schema.$ref&&(f.$ref=w.schema.$ref,w.def))for(const S in f)S==="$ref"||S==="allOf"||S in w.def&&JSON.stringify(f[S])===JSON.stringify(w.def[S])&&delete f[S]}e.override({zodSchema:h,jsonSchema:f,path:d.path??[]})};for(const h of[...e.seen.entries()].reverse())o(h[0]);const r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,(l=e.external)!=null&&l.uri){const h=(s=e.external.registry.get(t))==null?void 0:s.id;if(!h)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(h)}Object.assign(r,n.def??n.schema);const i=(c=e.metadataRegistry.get(t))==null?void 0:c.id;i!==void 0&&r.id===i&&delete r.id;const a=((u=e.external)==null?void 0:u.defs)??{};for(const h of e.seen.entries()){const d=h[1];d.def&&d.defId&&(d.def.id===d.defId&&delete d.def.id,a[d.defId]=d.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?r.$defs=a:r.definitions=a);try{const h=JSON.parse(JSON.stringify(r));return Object.defineProperty(h,"~standard",{value:{...t["~standard"],jsonSchema:{input:fo(t,"input",e.processors),output:fo(t,"output",e.processors)}},enumerable:!1,writable:!1}),h}catch{throw new Error("Error converting schema to JSON.")}}function Be(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Be(o.element,n);if(o.type==="set")return Be(o.valueType,n);if(o.type==="lazy")return Be(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Be(o.innerType,n);if(o.type==="intersection")return Be(o.left,n)||Be(o.right,n);if(o.type==="record"||o.type==="map")return Be(o.keyType,n)||Be(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Be(o.in,n)||Be(o.out,n);if(o.type==="object"){for(const r in o.shape)if(Be(o.shape[r],n))return!0;return!1}if(o.type==="union"){for(const r of o.options)if(Be(r,n))return!0;return!1}if(o.type==="tuple"){for(const r of o.items)if(Be(r,n))return!0;return!!(o.rest&&Be(o.rest,n))}return!1}const Lh=(e,t={})=>n=>{const o=rs({...n,processors:t});return $e(e,o),as(o,e),is(o,e)},fo=(e,t,n={})=>o=>{const{libraryOptions:r,target:i}=o??{},a=rs({...r??{},target:i,io:t,processors:n});return $e(e,a),as(a,e),is(a,e)},zh={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},jh=(e,t,n,o)=>{const r=n;r.type="string";const{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof a=="number"&&(r.maxLength=a),l&&(r.format=zh[l]??l,r.format===""&&delete r.format,l==="time"&&delete r.format),c&&(r.contentEncoding=c),s&&s.size>0){const u=[...s];u.length===1?r.pattern=u[0].source:u.length>1&&(r.allOf=[...u.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},Bh=(e,t,n,o)=>{const r=n,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof l=="string"&&l.includes("int")?r.type="integer":r.type="number";const h=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),d=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";h?f?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u:typeof i=="number"&&(r.minimum=i),d?f?(r.maximum=c,r.exclusiveMaximum=!0):r.exclusiveMaximum=c:typeof a=="number"&&(r.maximum=a),typeof s=="number"&&(r.multipleOf=s)},Dh=(e,t,n,o)=>{n.type="boolean"},Fh=(e,t,n,o)=>{n.not={}},Hh=(e,t,n,o)=>{},Gh=(e,t,n,o)=>{},Uh=(e,t,n,o)=>{const r=e._zod.def,i=Ll(r.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},Wh=(e,t,n,o)=>{const r=e._zod.def,i=[];for(const a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){const a=i[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),i.every(a=>typeof a=="boolean")&&(n.type="boolean"),i.every(a=>a===null)&&(n.type="null"),n.enum=i},Zh=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Vh=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},qh=(e,t,n,o)=>{const r=n,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof l=="number"&&(r.maxItems=l),r.type="array",r.items=$e(i.element,t,{...o,path:[...o.path,"items"]})},Yh=(e,t,n,o)=>{var c;const r=n,i=e._zod.def;r.type="object",r.properties={};const a=i.shape;for(const u in a)r.properties[u]=$e(a[u],t,{...o,path:[...o.path,"properties",u]});const l=new Set(Object.keys(a)),s=new Set([...l].filter(u=>{const h=i.shape[u]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));s.size>0&&(r.required=Array.from(s)),((c=i.catchall)==null?void 0:c._zod.def.type)==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=$e(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},Kh=(e,t,n,o)=>{const r=e._zod.def,i=r.inclusive===!1,a=r.options.map((l,s)=>$e(l,t,{...o,path:[...o.path,i?"oneOf":"anyOf",s]}));i?n.oneOf=a:n.anyOf=a},Jh=(e,t,n,o)=>{const r=e._zod.def,i=$e(r.left,t,{...o,path:[...o.path,"allOf",0]}),a=$e(r.right,t,{...o,path:[...o.path,"allOf",1]}),l=c=>"allOf"in c&&Object.keys(c).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];n.allOf=s},Xh=(e,t,n,o)=>{const r=n,i=e._zod.def;r.type="array";const a=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=i.items.map((d,f)=>$e(d,t,{...o,path:[...o.path,a,f]})),c=i.rest?$e(i.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=s,c&&(r.items=c)):t.target==="openapi-3.0"?(r.items={anyOf:s},c&&r.items.anyOf.push(c),r.minItems=s.length,c||(r.maxItems=s.length)):(r.items=s,c&&(r.additionalItems=c));const{minimum:u,maximum:h}=e._zod.bag;typeof u=="number"&&(r.minItems=u),typeof h=="number"&&(r.maxItems=h)},Qh=(e,t,n,o)=>{const r=n,i=e._zod.def;r.type="object";const a=i.keyType,l=a._zod.bag,s=l==null?void 0:l.patterns;if(i.mode==="loose"&&s&&s.size>0){const u=$e(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});r.patternProperties={};for(const h of s)r.patternProperties[h.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=$e(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),r.additionalProperties=$e(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});const c=a._zod.values;if(c){const u=[...c].filter(h=>typeof h=="string"||typeof h=="number");u.length>0&&(r.required=u)}},ef=(e,t,n,o)=>{const r=e._zod.def,i=$e(r.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},tf=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType},nf=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},of=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},rf=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},af=(e,t,n,o)=>{const r=e._zod.def,i=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?r.out:r.in:r.out;$e(a,t,o);const l=t.seen.get(e);l.ref=a},lf=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,n.readOnly=!0},ls=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType},sf=(e,t,n,o)=>{const r=e._zod.innerType;$e(r,t,o);const i=t.seen.get(e);i.ref=r},cf=T("ZodISODateTime",(e,t)=>{nd.init(e,t),ke.init(e,t)});function uf(e){return dh(cf,e)}const df=T("ZodISODate",(e,t)=>{od.init(e,t),ke.init(e,t)});function hf(e){return hh(df,e)}const ff=T("ZodISOTime",(e,t)=>{rd.init(e,t),ke.init(e,t)});function mf(e){return fh(ff,e)}const pf=T("ZodISODuration",(e,t)=>{ad.init(e,t),ke.init(e,t)});function gf(e){return mh(pf,e)}const bf=(e,t)=>{Dl.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>qc(e,n)},flatten:{value:n=>Vc(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Sr,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Sr,2)}},isEmpty:{get(){return e.issues.length===0}}})},Ke=T("ZodError",bf,{Parent:Error}),xf=pa(Ke),vf=ga(Ke),Sf=Ao(Ke),wf=yo(Ke),$f=Jc(Ke),kf=Xc(Ke),_f=Qc(Ke),Cf=eu(Ke),Af=tu(Ke),yf=nu(Ke),If=ou(Ke),Rf=ru(Ke),hi=new WeakMap;function Pn(e,t,n){const o=Object.getPrototypeOf(e);let r=hi.get(o);if(r||(r=new Set,hi.set(o,r)),!r.has(t)){r.add(t);for(const i in n){const a=n[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){const l=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}const ge=T("ZodType",(e,t)=>(pe.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:fo(e,"input"),output:fo(e,"output")}}),e.toJSONSchema=Lh(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>xf(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Sf(e,n,o),e.parseAsync=async(n,o)=>vf(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>wf(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>$f(e,n,o),e.decode=(n,o)=>kf(e,n,o),e.encodeAsync=async(n,o)=>_f(e,n,o),e.decodeAsync=async(n,o)=>Cf(e,n,o),e.safeEncode=(n,o)=>Af(e,n,o),e.safeDecode=(n,o)=>yf(e,n,o),e.safeEncodeAsync=async(n,o)=>If(e,n,o),e.safeDecodeAsync=async(n,o)=>Rf(e,n,o),Pn(e,"ZodType",{check(...n){const o=this.def;return this.clone(Rt(o,{checks:[...o.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return Nt(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(Cm(n,o))},superRefine(n,o){return this.check(Am(n,o))},overwrite(n){return this.check(sn(n))},optional(){return bi(this)},exactOptional(){return um(this)},nullable(){return xi(this)},nullish(){return bi(xi(this))},nonoptional(n){return gm(this,n)},array(){return ne(this)},or(n){return G([this,n])},and(n){return am(this,n)},transform(n){return vi(this,hs(n))},default(n){return fm(this,n)},prefault(n){return pm(this,n)},catch(n){return xm(this,n)},pipe(n){return vi(this,n)},readonly(){return wm(this)},describe(n){const o=this.clone();return $n.add(o,{description:n}),o},meta(...n){if(n.length===0)return $n.get(this);const o=this.clone();return $n.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){var n;return(n=$n.get(e))==null?void 0:n.description},configurable:!0}),e)),ss=T("_ZodString",(e,t)=>{ba.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(o,r,i)=>jh(e,o,r);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Pn(e,"_ZodString",{regex(...o){return this.check(wh(...o))},includes(...o){return this.check(_h(...o))},startsWith(...o){return this.check(Ch(...o))},endsWith(...o){return this.check(Ah(...o))},min(...o){return this.check(ho(...o))},max(...o){return this.check(ns(...o))},length(...o){return this.check(os(...o))},nonempty(...o){return this.check(ho(1,...o))},lowercase(o){return this.check($h(o))},uppercase(o){return this.check(kh(o))},trim(){return this.check(Ih())},normalize(...o){return this.check(yh(...o))},toLowerCase(){return this.check(Rh())},toUpperCase(){return this.check(Nh())},slugify(){return this.check(Th())}})}),Nf=T("ZodString",(e,t)=>{ba.init(e,t),ss.init(e,t),e.email=n=>e.check(Ud(Tf,n)),e.url=n=>e.check(Yd(Ef,n)),e.jwt=n=>e.check(uh(Vf,n)),e.emoji=n=>e.check(Kd(Mf,n)),e.guid=n=>e.check(si(fi,n)),e.uuid=n=>e.check(Wd(Gn,n)),e.uuidv4=n=>e.check(Zd(Gn,n)),e.uuidv6=n=>e.check(Vd(Gn,n)),e.uuidv7=n=>e.check(qd(Gn,n)),e.nanoid=n=>e.check(Jd(Pf,n)),e.guid=n=>e.check(si(fi,n)),e.cuid=n=>e.check(Xd(Of,n)),e.cuid2=n=>e.check(Qd(Lf,n)),e.ulid=n=>e.check(eh(zf,n)),e.base64=n=>e.check(lh(Uf,n)),e.base64url=n=>e.check(sh(Wf,n)),e.xid=n=>e.check(th(jf,n)),e.ksuid=n=>e.check(nh(Bf,n)),e.ipv4=n=>e.check(oh(Df,n)),e.ipv6=n=>e.check(rh(Ff,n)),e.cidrv4=n=>e.check(ah(Hf,n)),e.cidrv6=n=>e.check(ih(Gf,n)),e.e164=n=>e.check(ch(Zf,n)),e.datetime=n=>e.check(uf(n)),e.date=n=>e.check(hf(n)),e.time=n=>e.check(mf(n)),e.duration=n=>e.check(gf(n))});function $(e){return Gd(Nf,e)}const ke=T("ZodStringFormat",(e,t)=>{we.init(e,t),ss.init(e,t)}),Tf=T("ZodEmail",(e,t)=>{Vu.init(e,t),ke.init(e,t)}),fi=T("ZodGUID",(e,t)=>{Wu.init(e,t),ke.init(e,t)}),Gn=T("ZodUUID",(e,t)=>{Zu.init(e,t),ke.init(e,t)}),Ef=T("ZodURL",(e,t)=>{qu.init(e,t),ke.init(e,t)}),Mf=T("ZodEmoji",(e,t)=>{Yu.init(e,t),ke.init(e,t)}),Pf=T("ZodNanoID",(e,t)=>{Ku.init(e,t),ke.init(e,t)}),Of=T("ZodCUID",(e,t)=>{Ju.init(e,t),ke.init(e,t)}),Lf=T("ZodCUID2",(e,t)=>{Xu.init(e,t),ke.init(e,t)}),zf=T("ZodULID",(e,t)=>{Qu.init(e,t),ke.init(e,t)}),jf=T("ZodXID",(e,t)=>{ed.init(e,t),ke.init(e,t)}),Bf=T("ZodKSUID",(e,t)=>{td.init(e,t),ke.init(e,t)}),Df=T("ZodIPv4",(e,t)=>{id.init(e,t),ke.init(e,t)}),Ff=T("ZodIPv6",(e,t)=>{ld.init(e,t),ke.init(e,t)}),Hf=T("ZodCIDRv4",(e,t)=>{sd.init(e,t),ke.init(e,t)}),Gf=T("ZodCIDRv6",(e,t)=>{cd.init(e,t),ke.init(e,t)}),Uf=T("ZodBase64",(e,t)=>{ud.init(e,t),ke.init(e,t)}),Wf=T("ZodBase64URL",(e,t)=>{hd.init(e,t),ke.init(e,t)}),Zf=T("ZodE164",(e,t)=>{fd.init(e,t),ke.init(e,t)}),Vf=T("ZodJWT",(e,t)=>{pd.init(e,t),ke.init(e,t)}),cs=T("ZodNumber",(e,t)=>{Kl.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Bh(e,o,r),Pn(e,"ZodNumber",{gt(o,r){return this.check(ui(o,r))},gte(o,r){return this.check(Lo(o,r))},min(o,r){return this.check(Lo(o,r))},lt(o,r){return this.check(ci(o,r))},lte(o,r){return this.check(Oo(o,r))},max(o,r){return this.check(Oo(o,r))},int(o){return this.check(mi(o))},safe(o){return this.check(mi(o))},positive(o){return this.check(ui(0,o))},nonnegative(o){return this.check(Lo(0,o))},negative(o){return this.check(ci(0,o))},nonpositive(o){return this.check(Oo(0,o))},multipleOf(o,r){return this.check(di(o,r))},step(o,r){return this.check(di(o,r))},finite(){return this}});const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function m(e){return ph(cs,e)}const qf=T("ZodNumberFormat",(e,t)=>{gd.init(e,t),cs.init(e,t)});function mi(e){return gh(qf,e)}const Yf=T("ZodBoolean",(e,t)=>{bd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Dh(e,n,o)});function L(e){return bh(Yf,e)}const Kf=T("ZodAny",(e,t)=>{xd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Hh()});function In(){return xh(Kf)}const Jf=T("ZodUnknown",(e,t)=>{vd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Gh()});function pi(){return vh(Jf)}const Xf=T("ZodNever",(e,t)=>{Sd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Fh(e,n,o)});function Qf(e){return Sh(Xf,e)}const em=T("ZodArray",(e,t)=>{wd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>qh(e,n,o,r),e.element=t.element,Pn(e,"ZodArray",{min(n,o){return this.check(ho(n,o))},nonempty(n){return this.check(ho(1,n))},max(n,o){return this.check(ns(n,o))},length(n,o){return this.check(os(n,o))},unwrap(){return this.element}})});function ne(e,t){return Eh(em,e,t)}const tm=T("ZodObject",(e,t)=>{kd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Yh(e,n,o,r),ce(e,"shape",()=>t.shape),Pn(e,"ZodObject",{keyof(){return N(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:pi()})},loose(){return this.clone({...this._zod.def,catchall:pi()})},strict(){return this.clone({...this._zod.def,catchall:Qf()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return Fc(this,n)},safeExtend(n){return Hc(this,n)},merge(n){return Gc(this,n)},pick(n){return Bc(this,n)},omit(n){return Dc(this,n)},partial(...n){return Uc(fs,this,n[0])},required(...n){return Wc(ms,this,n[0])}})});function A(e,t){const n={type:"object",shape:e??{},...U(t)};return new tm(n)}const us=T("ZodUnion",(e,t)=>{Ql.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Kh(e,n,o,r),e.options=t.options});function G(e,t){return new us({type:"union",options:e,...U(t)})}const nm=T("ZodDiscriminatedUnion",(e,t)=>{us.init(e,t),_d.init(e,t)});function om(e,t,n){return new nm({type:"union",options:t,discriminator:e,...U(n)})}const rm=T("ZodIntersection",(e,t)=>{Cd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Jh(e,n,o,r)});function am(e,t){return new rm({type:"intersection",left:e,right:t})}const im=T("ZodTuple",(e,t)=>{Ad.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Xh(e,n,o,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function ds(e,t,n){const o=t instanceof pe,r=o?n:t,i=o?t:null;return new im({type:"tuple",items:e,rest:i,...U(r)})}const gi=T("ZodRecord",(e,t)=>{yd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Qh(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType});function rn(e,t,n){return!t||!t._zod?new gi({type:"record",keyType:$(),valueType:e,...U(t)}):new gi({type:"record",keyType:e,valueType:t,...U(n)})}const $r=T("ZodEnum",(e,t)=>{Id.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Uh(e,o,r),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(o,r)=>{const i={};for(const a of o)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new $r({...t,checks:[],...U(r),entries:i})},e.exclude=(o,r)=>{const i={...t.entries};for(const a of o)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new $r({...t,checks:[],...U(r),entries:i})}});function N(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new $r({type:"enum",entries:n,...U(t)})}const lm=T("ZodLiteral",(e,t)=>{Rd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Wh(e,n,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function se(e,t){return new lm({type:"literal",values:Array.isArray(e)?e:[e],...U(t)})}const sm=T("ZodTransform",(e,t)=>{Nd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Vh(e,n),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Ol(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(yn(i,n.value,t));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(yn(a))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=r,n.fallback=!0,n)}});function hs(e){return new sm({type:"transform",transform:e})}const fs=T("ZodOptional",(e,t)=>{es.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ls(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function bi(e){return new fs({type:"optional",innerType:e})}const cm=T("ZodExactOptional",(e,t)=>{Td.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ls(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function um(e){return new cm({type:"optional",innerType:e})}const dm=T("ZodNullable",(e,t)=>{Ed.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ef(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function xi(e){return new dm({type:"nullable",innerType:e})}const hm=T("ZodDefault",(e,t)=>{Md.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>nf(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function fm(e,t){return new hm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():jl(t)}})}const mm=T("ZodPrefault",(e,t)=>{Pd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>of(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function pm(e,t){return new mm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():jl(t)}})}const ms=T("ZodNonOptional",(e,t)=>{Od.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>tf(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function gm(e,t){return new ms({type:"nonoptional",innerType:e,...U(t)})}const bm=T("ZodCatch",(e,t)=>{Ld.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>rf(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function xm(e,t){return new bm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const ps=T("ZodPipe",(e,t)=>{ts.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>af(e,n,o,r),e.in=t.in,e.out=t.out});function vi(e,t){return new ps({type:"pipe",in:e,out:t})}const vm=T("ZodPreprocess",(e,t)=>{ps.init(e,t),zd.init(e,t)}),Sm=T("ZodReadonly",(e,t)=>{jd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>lf(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function wm(e){return new Sm({type:"readonly",innerType:e})}const $m=T("ZodLazy",(e,t)=>{Bd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>sf(e,n,o,r),e.unwrap=()=>e._zod.def.getter()});function km(e){return new $m({type:"lazy",getter:e})}const _m=T("ZodCustom",(e,t)=>{Dd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Zh(e,n)});function Cm(e,t={}){return Mh(_m,e,t)}function Am(e,t){return Ph(e,t)}function gs(e,t){return new vm({type:"pipe",in:hs(e),out:t})}var ym=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Im=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Si=A({style:A({textAlign:N(["left","center","right"]).optional().nullable(),padding:ym}).optional().nullable(),props:A({size:m().gt(0).optional().nullable(),shape:N(["circle","square","rounded"]).optional().nullable(),imageUrl:$().optional().nullable(),alt:$().optional().nullable()}).optional().nullable()});function Rm(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var Un={size:64,imageUrl:"",alt:"",shape:"square"};function wi({style:e,props:t}){var n,o,r,i,a;const l=(n=t==null?void 0:t.size)!=null?n:Un.size,s=(o=t==null?void 0:t.imageUrl)!=null?o:Un.imageUrl,c=(r=t==null?void 0:t.alt)!=null?r:Un.alt,u=(i=t==null?void 0:t.shape)!=null?i:Un.shape,h={textAlign:(a=e==null?void 0:e.textAlign)!=null?a:void 0,padding:Im(e==null?void 0:e.padding)};return Z.createElement("div",{style:h},Z.createElement("img",{alt:c,src:s,height:l,width:l,style:{outline:"none",border:"none",textDecoration:"none",objectFit:"cover",height:l,width:l,maxWidth:"100%",display:"inline-block",verticalAlign:"middle",textAlign:"center",borderRadius:Rm(u,l)}}))}const Nm=A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),Tm=Si.extend({props:Si.shape.props.unwrap().unwrap().extend({decorative:L().optional().nullable(),animation:Nm}).optional().nullable()}),kn={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},xa=Object.values(kn);let bs=null;function $i(e){bs=e}function Em(){return bs}function va(){return"desktop"}const Oe=1024,Le=640,ft=`@media (max-width: ${Oe}px)`,De=`@media (max-width: ${Le}px)`,Dt=`@media (min-width: ${Le+1}px) and (max-width: ${Oe}px)`,We=A({tablet:rn($(),In()).optional().nullable(),mobile:rn($(),In()).optional().nullable()}).optional().nullable();function Sa(e){return typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e)}function wa(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function $a(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function Mm(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function Pm(e,t,n){return t?(typeof e=="string"?e.trim():"").length===0?n:typeof e=="string"?e:n:null}const zt="data-ahd-theme",to="auto",Om="--ahd-c-",xs=(e,t,n)=>Math.min(n,Math.max(t,e));function Lm(e){const t=e.trim().match(/^#?([0-9a-f]{3,8})$/i);if(!t)return null;let n=t[1];return(n.length===3||n.length===4)&&(n=n.split("").map(o=>o+o).join("")),n.length!==6&&n.length!==8?null:{r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16),a:n.length===8?parseInt(n.slice(6,8),16)/255:1}}function zm(e){const t=e.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+)(?:,([0-9.]+))?\)$/i);return t?{r:Number(t[1]),g:Number(t[2]),b:Number(t[3]),a:t[4]!=null?Number(t[4]):1}:null}function jm(e){const t=e.trim();return!t||t==="transparent"||t==="currentColor"||t==="inherit"?null:t.startsWith("#")?Lm(t):t.toLowerCase().startsWith("rgb")?zm(t):null}function ki({r:e,g:t,b:n,a:o}){const r=a=>xs(Math.round(a),0,255).toString(16).padStart(2,"0");if(o>=1)return`#${r(e)}${r(t)}${r(n)}`;const i=Math.round(o*1e3)/1e3;return`rgba(${Math.round(e)}, ${Math.round(t)}, ${Math.round(n)}, ${i})`}function Bm({r:e,g:t,b:n}){const o=r=>{const i=r/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)};return .2126*o(e)+.7152*o(t)+.0722*o(n)}function _i({r:e,g:t,b:n,a:o}){const r=e/255,i=t/255,a=n/255,l=Math.max(r,i,a),s=Math.min(r,i,a),c=(l+s)/2,u=l-s;if(u===0)return{h:0,s:0,l:c,a:o};const h=c>.5?u/(2-l-s):u/(l+s);let d;return l===r?d=((i-a)/u+(i<a?6:0))/6:l===i?d=((a-r)/u+2)/6:d=((r-i)/u+4)/6,{h:d,s:h,l:c,a:o}}function Wn({h:e,s:t,l:n,a:o}){if(t===0){const l=n*255;return{r:l,g:l,b:l,a:o}}const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=l=>{let s=l;return s<0&&(s+=1),s>1&&(s-=1),s<1/6?i+(r-i)*6*s:s<1/2?r:s<2/3?i+(r-i)*(2/3-s)*6:i};return{r:a(e+1/3)*255,g:a(e)*255,b:a(e-1/3)*255,a:o}}function Dm(e){if(Sa(e))return null;const t=jm(e);if(!t)return null;const n=_i(t),o=n.s<.12,r=n.l>.9||n.l<.12;if(o||r){const u=.07+(1-n.l)*(.93-.07),h=o?n.s:Math.min(n.s,.08);return ki(Wn({...n,s:h,l:u}))}const i=xs(Math.max(n.l,.62-n.l*.25),.45,.82);let a=Wn({...n,l:i});const l=.22;let s=0;for(;Bm(a)<l&&s<24;){const c=Math.min(.92,_i(a).l+.03);if(c>=.92){a=Wn({...n,l:c});break}a=Wn({...n,l:c}),s+=1}return ki(a)}function Fm(){const e=new Map;return{token(t){if(t==null)return;const n=typeof t=="string"?t.trim():"";if(!n)return t??void 0;const o=e.get(n);if(o)return`var(${o.name}, ${n})`;const r=Dm(n);if(!r)return t;const i=`${Om}${e.size+1}`;return e.set(n,{name:i,light:n,dark:r}),`var(${i}, ${n})`},css(t){if(t==="light"||e.size===0)return"";const n=[...e.values()],o=n.map(d=>`${d.name}:${d.light};`).join(""),r=n.map(d=>`${d.name}:light-dark(${d.light},${d.dark});`).join(""),i=t==="dark"?"dark":"light dark",l=`${`[${zt}="${t}"]`}{color-scheme:${i};${o}${r}}`;if(t!==to)return l;const s=`[${zt}="light"]`,c=`[${zt}="dark"]`,u=n.map(d=>`${d.name}:${d.light};`).join(""),h=n.map(d=>`${d.name}:${d.dark};`).join("");return l+`${s}{color-scheme:light;${u}}${c}{color-scheme:dark;${h}}`},size(){return e.size}}}function Hm(e){return`[${zt}="${e}"]{color-scheme:light dark;}`+`[${zt}="light"]{color-scheme:light;}[${zt}="dark"]{color-scheme:dark;}`}const Ro=Z.createContext(null),Gm=Ro.Provider;function z(e){const t=Z.useContext(Ro);return t?t.token(e):e??void 0}function ka(){const e=Z.useContext(Ro);return e?t=>e.token(t):t=>t??void 0}const Um=/style="([^"]*)"/gi,Wm=/(^|;)\s*(color|background-color|background|border-color)\s*:\s*([^;!]+)(!important)?/gi,Zm=/<font([^>]*?)\scolor=["']([^"']+)["']([^>]*)>/gi;function Vm(e,t){if(!t||!e)return e;let n=e.replace(Um,(o,r)=>{const i=r.replace(Wm,(a,l,s,c,u)=>{const h=c.trim(),d=t.token(h);return!d||d===h?a:`${l}${s}:${d}${u??""}`});return i===r?o:`style="${i}"`});return n=n.replace(Zm,(o,r,i,a)=>{const l=t.token(i.trim());return!l||l===i.trim()?o:`<font${r}${a} style="color:${l}">`}),n}function qm(e){const t=Z.useContext(Ro);return Vm(e,t)}const Ym=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Km=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M12 4V20M12 20L18 14M12 20L6 14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Jm=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 6L6 18M6 18H14M6 18V10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Xm=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 6L18 18M18 18V10M18 18H10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Qm=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M20 12H4M4 12L10 18M4 12L10 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ep=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},tp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M12 20V4M12 4L6 10M12 4L18 10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},np=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 18L6 6M6 6V14M6 6H14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},op=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 18L18 6M18 6H10M18 6V14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},rp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ap=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 9L12 15L18 9",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ip=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M7 13L12 18L17 13M7 6L12 11L17 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},lp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M15 18L9 12L15 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},sp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 17L13 12L18 7M11 17L6 12L11 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},cp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M9 18L15 12L9 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},up=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 17L11 12L6 7M13 17L18 12L13 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},dp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 15L12 9L6 15",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},hp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 14",fill:"none",children:g.jsx("path",{d:"M11 13L6 8L1 13M11 6L6 1L1 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};function fp(e,t={fontSize:16}){if(!e)return null;switch(e){case"arrow-left":return g.jsx(Ym,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return g.jsx(Qm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return g.jsx(rp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return g.jsx(ep,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return g.jsx(Km,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return g.jsx(Jm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return g.jsx(Xm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return g.jsx(tp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return g.jsx(np,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return g.jsx(op,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return g.jsx(lp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return g.jsx(cp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return g.jsx(dp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down":return g.jsx(ap,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left-double":return g.jsx(sp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return g.jsx(up,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return g.jsx(hp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return g.jsx(ip,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const mp=4,Ct=e=>({[e==="left"?"marginRight":"marginLeft"]:mp,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"}),pp=(e,t,n)=>({width:t,height:t,display:"block",backgroundColor:n,WebkitMaskImage:`url("${e}")`,maskImage:`url("${e}")`,WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskSize:"contain",maskSize:"contain"}),Zn=e=>({display:"inline-flex",alignItems:"center",justifyContent:e}),Rn="data-ahd-var",vs=/(<span\s+data-ahd-var="[^"]*">\{\{[^}]+\}\}<\/span>)|(\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\})/g,gp=/[&<>"']/g,bp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function en(e){return e.replace(gp,t=>bp[t])}function Ss(e){return!e||e.indexOf("{{")===-1?e:e.replace(vs,(t,n,o,r)=>{if(n)return n;const i=en(r);return`<span ${Rn}="${i}">{{${r}}}</span>`})}function ws(e){return!e||e.indexOf("{{")===-1?e:en(e).replace(vs,(t,n,o,r)=>{if(n)return n;const i=en(r);return`<span ${Rn}="${i}">{{${r}}}</span>`})}const xp=/\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\}/g;function vp(e,t){if(!e||e.indexOf("{{")===-1)return e;const n=typeof window<"u"?window.location.search:void 0;if(n===void 0)return e;const o=new URLSearchParams(n||"");return e.replace(xp,(r,i)=>{const a=o.get(i);return a!==null?encodeURIComponent(a):r})}function Sp(e,t){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search??""),o=e.querySelectorAll(`[${Rn}]`);for(let r=0;r<o.length;r++){const i=o[r],a=n.get(i.getAttribute(Rn)||"");a!==null&&(i.textContent=a)}}const kr="data-ahd-date",$s="data-ahd-date-format";function _r(e,t){const n=en(e),o=t??"",r=en(o),i=ks(o)||`{{${n}}}`;return`<span ${Rn}="${n}" ${kr}="${r}" ${$s}="relative">${en(i)}</span>`}function ks(e,t=new Date){if(!e)return"";const n=new Date(e);if(Number.isNaN(n.getTime()))return"";const o=864e5,r=l=>new Date(l.getFullYear(),l.getMonth(),l.getDate()).getTime(),i=Math.round((r(n)-r(t))/o);if(i===0)return"Today";if(i===1)return"Tomorrow";if(i===-1)return"Yesterday";if(i>=-6&&i<=6)return n.toLocaleDateString(void 0,{weekday:"short"});const a=n.getFullYear()===t.getFullYear();return n.toLocaleDateString(void 0,{month:"short",day:"numeric",...a?{}:{year:"numeric"}})}function wp(e,t){if(typeof window>"u")return;const n=e.querySelectorAll(`[${kr}][${$s}="relative"]`);for(let o=0;o<n.length;o++){const r=n[o],i=r.getAttribute(kr)||"",a=ks(i,t);a&&(r.textContent=a)}}const $p=N(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function zo(e){if(!e)return"inherit";switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}return"inherit"}const kp=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),_p=$().regex(/^rgba?\([^\)]+\)$/i),Cp=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Ap=se("transparent"),Mt=G([kp,_p,Cp,Ap]).nullable().optional(),yp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ip=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Rp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Np=G([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),Tp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ep=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Mp=A({color:Mt,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:L().default(!1)}).partial().optional().nullable();function Pp(e){if(!(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")))return e;const n=e.match(/#([0-9a-fA-F]{3,8})|rgba?\([^)]+\)/);return(n==null?void 0:n[0])??"#000000"}function Op(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e;return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${Pp(t)}`}}const Lp=A({style:A({backgroundColor:Mt,fontSize:m().min(0).optional().nullable(),fontFamily:$p,fontWeight:N(["bold","normal",...xa]).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),buttonTextAlign:N(["left","center","right"]).optional().nullable(),padding:yp,margin:Ip}).optional().nullable(),props:A({buttonBackground:Mt,hoverBackground:Mt,hoverTextColor:Mt,borderRadius:Np,borderWidth:Rp,borderColor:Mt,boxShadow:Mp,buttonTextColor:Mt,fullWidth:L().optional().nullable(),widthType:N(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:N(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:N(["fixed","fill","fit"]).optional().nullable(),width:m().min(0).optional().nullable(),widthUnit:N(["px","%"]).optional().nullable(),widthTablet:m().min(0).optional().nullable(),widthMobile:m().min(0).optional().nullable(),size:N(["x-small","small","large","medium"]).optional().nullable(),sizeTablet:N(["x-small","small","large","medium"]).optional().nullable(),sizeMobile:N(["x-small","small","large","medium"]).optional().nullable(),text:$().optional().nullable(),url:$().optional().nullable(),action:N(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:L().optional().nullable(),customAction:$().optional().nullable(),actionPayload:rn($(),In()).optional().nullable(),iconEnabled:L().optional().nullable(),iconName:$().optional().nullable(),iconUrl:$().optional().nullable(),iconAlignment:N(["left","right"]).optional().nullable(),ariaLabel:$().optional().nullable(),goToStep:$().optional().nullable(),postMessageEvent:$().optional().nullable(),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable()}).optional().nullable(),responsive:We});function Ci(e){switch(e){case"x-small":return[4,8];case"small":return[8,12];case"large":return[16,32];case"medium":default:return[12,20]}}const _e={text:"",url:"",fullWidth:!1,widthType:"fit",width:200,widthUnit:"px",size:"medium",borderRadius:4,borderColor:"",boxShadow:null,buttonTextColor:"#000000",buttonBackground:"#ffffff",borderWidth:{top:0,right:0,bottom:0,left:0},action:"onNextStep",openInNewTab:!0,customAction:"",actionPayload:null,iconEnabled:!1,iconName:"",iconAlignment:"left",goToStep:"",postMessageEvent:""};function zp({style:e,props:t}){const o=`bh-${Z.useId().replace(/:/g,"")}`,r=(t==null?void 0:t.text)??_e.text,i=typeof r=="string"&&r.indexOf("{{")!==-1,a=(Me,tt)=>i?g.jsx("span",{style:Me,"data-action":tt,dangerouslySetInnerHTML:{__html:ws(r)}}):g.jsx("span",{style:Me,"data-action":tt,children:r}),l=(t==null?void 0:t.url)??_e.url,s=vp(l),c=typeof window>"u"&&typeof s=="string"&&s.indexOf("{{")!==-1,u=(t==null?void 0:t.fullWidth)??_e.fullWidth,h=(t==null?void 0:t.widthType)??_e.widthType,d=(t==null?void 0:t.width)??_e.width,f=(t==null?void 0:t.widthUnit)??_e.widthUnit,p=(t==null?void 0:t.widthTablet)??null,b=(t==null?void 0:t.widthMobile)??null,x=p??d,w=b??x,S=(t==null?void 0:t.widthTypeTablet)??h,k=(t==null?void 0:t.widthTypeMobile)??S,v=(t==null?void 0:t.size)??_e.size,_=(t==null?void 0:t.sizeTablet)??v,y=(t==null?void 0:t.sizeMobile)??_,C=h,I=d,R=(t==null?void 0:t.buttonTextColor)??_e.buttonTextColor,E=(t==null?void 0:t.buttonBackground)??_e.buttonBackground,P=z(R),M=z(E),O=(t==null?void 0:t.iconEnabled)??_e.iconEnabled,H=(t==null?void 0:t.iconName)??_e.iconName,D=(t==null?void 0:t.iconAlignment)??_e.iconAlignment,V=(t==null?void 0:t.iconUrl)??null,F=!!(O&&(V||H)),q=(t==null?void 0:t.ariaLabel)??null,Y=typeof r=="string"&&r.trim().length>0,ie=q&&q.trim().length>0?q:!Y&&O&&H?H:void 0,J=(t==null?void 0:t.action)??_e.action,re=(t==null?void 0:t.openInNewTab)??_e.openInNewTab,ae=((t==null?void 0:t.customAction)??_e.customAction)||J,Se=(t==null?void 0:t.actionPayload)??_e.actionPayload,xe=(t==null?void 0:t.goToStep)??_e.goToStep,X=(t==null?void 0:t.postMessageEvent)??_e.postMessageEvent,j=Se||(ae==="goToStep"?{goToStep:xe||""}:null)||(ae==="postMessageEvent"?{postMessageEvent:X||""}:null),B=j?JSON.stringify(j):void 0,K=(t==null?void 0:t.borderRadius)??_e.borderRadius,W=(t==null?void 0:t.borderWidth)??_e.borderWidth,te=(t==null?void 0:t.borderColor)??_e.borderColor,fe=z(te),ze=(t==null?void 0:t.boxShadow)??_e.boxShadow,ue=Op(ze),Ce=(t==null?void 0:t.hoverBackground)??null,le=(t==null?void 0:t.hoverTextColor)??null,Ae=Ci(v),ye=Me=>typeof Me=="number"?`${Me}px`:`${Me.topLeft}px ${Me.topRight}px ${Me.bottomRight}px ${Me.bottomLeft}px`,Te=(Me,tt)=>{if(typeof Me=="number")return`${Math.max(0,Me-tt)}px`;const Mo=Math.max(0,(Me.topLeft||0)-tt),Po=Math.max(0,(Me.topRight||0)-tt),Ut=Math.max(0,(Me.bottomRight||0)-tt),Wt=Math.max(0,(Me.bottomLeft||0)-tt);return`${Mo}px ${Po}px ${Ut}px ${Wt}px`},Fe=te&&(te.includes("linear-gradient")||te.includes("radial-gradient")||te.includes("repeating-linear-gradient")),He=W&&((W.top??0)>0||(W.right??0)>0||(W.bottom??0)>0||(W.left??0)>0),ee={top:(W==null?void 0:W.top)??0,right:(W==null?void 0:W.right)??0,bottom:(W==null?void 0:W.bottom)??0,left:(W==null?void 0:W.left)??0},Ee=(()=>{if(u)return"100%";switch(C){case"fill":return"100%";case"fixed":return`${I}${f}`;case"fit":default:return"auto"}})(),Ge=(e==null?void 0:e.buttonTextAlign)??(e==null?void 0:e.textAlign)??"center",je=Ge==="center"?"center":Ge==="right"?"flex-end":"flex-start",kt=()=>!te||te==="transparent"||!He?{border:"none"}:Fe?{borderTop:`${ee.top}px solid transparent`,borderRight:`${ee.right}px solid transparent`,borderBottom:`${ee.bottom}px solid transparent`,borderLeft:`${ee.left}px solid transparent`,borderImage:`${fe} `,borderRadius:"0px"}:{borderTop:`${ee.top}px solid ${fe}`,borderRight:`${ee.right}px solid ${fe}`,borderBottom:`${ee.bottom}px solid ${fe}`,borderLeft:`${ee.left}px solid ${fe}`},gt=E&&(E.includes("linear-gradient")||E.includes("radial-gradient")||E.includes("repeating-linear-gradient")),at=R&&(R.includes("linear-gradient")||R.includes("radial-gradient")||R.includes("repeating-linear-gradient")),Ze=(e==null?void 0:e.backgroundColor)&&(e.backgroundColor.includes("linear-gradient")||e.backgroundColor.includes("radial-gradient")||e.backgroundColor.includes("repeating-linear-gradient")),_t={backgroundColor:Ze?void 0:(e==null?void 0:e.backgroundColor)??void 0,backgroundImage:Ze?(e==null?void 0:e.backgroundColor)??void 0:void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:Tp(e==null?void 0:e.padding),margin:Ep(e==null?void 0:e.margin)},it=kt(),lt=at?{backgroundImage:P,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:P||void 0},st=gt?void 0:M,qe=gt?M:void 0,Q=(e==null?void 0:e.fontSize)??16,ve=`${Q}px`,Ie=()=>V?g.jsx("span",{"aria-hidden":"true",style:pp(V,Q,at?"currentColor":P||"currentColor")}):fp(H,{strokeColor:at?void 0:P,fontSize:Q}),bt={fontSize:ve,fontFamily:zo(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??kn.REGULAR,backgroundColor:st,backgroundImage:qe,borderRadius:Fe?"0px":ye(K),...it,...Fe&&He?{}:ue,display:Ee==="100%"?"block":"inline-block",width:Ee,padding:`${Ae[0]}px ${Ae[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:je,lineHeight:"normal"},Ht=Fe&&He?g.jsx("div",{style:{display:Ee==="100%"?"block":"inline-block",padding:`${ee.top}px ${ee.right}px ${ee.bottom}px ${ee.left}px`,background:fe,borderRadius:ye(K),width:Ee,boxSizing:"border-box",...ue},children:g.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:Te(K,Math.max(ee.top,ee.right,ee.bottom,ee.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??kn.REGULAR,fontFamily:zo(e==null?void 0:e.fontFamily),backgroundImage:qe,backgroundColor:st,textAlign:Ge,textDecoration:"none",fontSize:ve,padding:`${Ae[0]}px ${Ae[1]}px`,boxSizing:"border-box",lineHeight:"normal",...Zn(je)},"data-action":ae,"data-action-payload":B,"data-goto-step":ae==="goToStep"&&xe?xe:void 0,"data-post-message-event":ae==="postMessageEvent"&&X?X:void 0,type:"button","aria-label":ie,children:[F&&D==="left"?g.jsx("span",{style:Ct("left"),"data-action":ae,children:Ie()}):null,a({...lt,pointerEvents:"none"},ae),F&&D==="right"?g.jsx("span",{style:Ct("right"),"data-action":ae,children:Ie()}):null]})}):g.jsxs("button",{style:{cursor:"pointer",...it,...ue,borderRadius:ye(K),width:Ee,fontWeight:(e==null?void 0:e.fontWeight)??kn.REGULAR,fontFamily:zo(e==null?void 0:e.fontFamily),backgroundColor:st,backgroundImage:qe,textAlign:Ge,textDecoration:"none",fontSize:ve,padding:`${Ae[0]}px ${Ae[1]}px`,boxSizing:"border-box",lineHeight:"normal",...Zn(je)},"data-action":ae,"data-action-payload":B,"data-goto-step":ae==="goToStep"&&xe?xe:void 0,"data-post-message-event":ae==="postMessageEvent"&&X?X:void 0,type:"button","aria-label":ie,children:[F&&D==="left"?g.jsx("span",{style:Ct("left"),"data-action":ae,children:Ie()}):null,a({...lt,pointerEvents:"none"},ae),F&&D==="right"?g.jsx("span",{style:Ct("right"),"data-action":ae,children:Ie()}):null]}),Gt=!!Ce&&(Ce.includes("linear-gradient")||Ce.includes("radial-gradient")||Ce.includes("repeating-linear-gradient")),oe=!!le&&(le.includes("linear-gradient")||le.includes("radial-gradient")||le.includes("repeating-linear-gradient")),he=[];Ce&&(Gt?he.push(`background-image: ${Ce} !important; background-color: transparent !important;`):he.push(`background-color: ${Ce} !important; background-image: none !important;`)),le&&!oe&&he.push(`color: ${le} !important;`);const Ve=le?oe?`background-image: ${le} !important; background-repeat: no-repeat !important; background-size: 100% 100% !important; -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent !important; color: transparent !important; display: inline-block;`:`background-image: none !important; color: ${le} !important; -webkit-text-fill-color: ${le} !important;`:"",et=he.length>0||Ve?`#${o} a:hover, #${o} button:hover { ${he.join(" ")} transition: background-color 150ms ease, background-image 150ms ease, color 150ms ease; } #${o} a:hover span, #${o} button:hover span { ${Ve} }`:null,xt=(Me,tt,Mo,Po)=>{const Ut=[],Wt=u||tt==="fill"?"100%":tt==="fixed"?`${Mo}${f}`:"auto";Ut.push(`width: ${Wt} !important;`,"max-width: 100% !important;"),Ut.push(`display: ${Wt==="100%"?"block":"inline-block"} !important;`);const[Wa,Tc]=Ci(Po);return Ut.push(`padding: ${Wa}px ${Tc}px !important;`),`${Me} { #${o} a, #${o} button { ${Ut.join(" ")} } #${o} > div { width: ${Wt} !important; max-width: 100% !important; display: ${Wt==="100%"?"block":"inline-block"} !important; } }`},fn=S!==h||_!==v||S==="fixed"&&x!==d,Ua=k!==h||y!==v||k==="fixed"&&w!==d,Dn=fn||Ua?[fn?xt(ft,S,x,_):"",Ua?xt(De,k,w,y):""].filter(Boolean).join(`
65
+ `):null;if(J!=="link")return g.jsxs("div",{id:o,className:"button-block",style:_t,children:[et&&g.jsx("style",{children:et}),Dn&&g.jsx("style",{children:Dn}),Ht]});const Nc=Fe&&He?g.jsx("div",{style:{display:Ee==="100%"?"block":"inline-block",padding:`${ee.top}px ${ee.right}px ${ee.bottom}px ${ee.left}px`,background:fe,borderRadius:ye(K),width:Ee,boxSizing:"border-box",...ue},children:g.jsxs("a",{href:s,"data-ahd-href-tpl":c?s:void 0,style:{...bt,border:"none",borderRadius:Te(K,Math.max(ee.top,ee.right,ee.bottom,ee.left)),width:"100%",...Zn(je)},target:re?"_blank":void 0,rel:re?"noopener noreferrer":void 0,"aria-label":ie,children:[F&&D==="left"?g.jsx("span",{style:Ct("left"),children:Ie()}):null,a({...lt,pointerEvents:"none"}),F&&D==="right"?g.jsx("span",{style:Ct("right"),children:Ie()}):null]})}):g.jsxs("a",{href:s,"data-ahd-href-tpl":c?s:void 0,style:{...bt,borderRadius:ye(K),...Zn(je)},target:re?"_blank":void 0,rel:re?"noopener noreferrer":void 0,"aria-label":ie,children:[F&&D==="left"?g.jsx("span",{style:Ct("left"),children:Ie()}):null,a({...lt,pointerEvents:"none"}),F&&D==="right"?g.jsx("span",{style:Ct("right"),children:Ie()}):null]});return g.jsxs("div",{id:o,className:"button-block",style:_t,children:[et&&g.jsx("style",{children:et}),Dn&&g.jsx("style",{children:Dn}),Nc]})}const jp=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Bp=$().regex(/^rgba?\([^\)]+\)$/i),Dp=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Fp=se("transparent"),Ai=G([jp,Bp,Dp,Fp]).nullable().optional(),Hp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Gp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Up=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Wp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Zp=A({style:A({backgroundColor:Ai,padding:Hp,margin:Gp}).optional().nullable(),props:A({lineColor:Ai,lineHeight:m().optional().nullable()}).optional().nullable()}),yi={lineHeight:1,lineColor:"#333333"};function Vp({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??yi.lineHeight,o=z((t==null?void 0:t.lineColor)??yi.lineColor),r={padding:Up(e==null?void 0:e.padding),margin:Wp(e==null?void 0:e.margin),backgroundColor:z(e==null?void 0:e.backgroundColor),"--ahd-divider-thickness":`${n}px`};return g.jsx("div",{className:"divider-block",style:r,children:g.jsx("hr",{style:{width:"100%",border:"none",borderTopStyle:"solid",borderTopColor:o,borderTopWidth:`var(--ahd-divider-thickness, ${n}px)`,margin:0}})})}const qp=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Yp=$().regex(/^rgba?\([^\)]+\)$/i),Kp=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Jp=se("transparent"),jo=G([qp,Yp,Kp,Jp]).nullable().optional(),Xp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Qp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),eg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,tg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,ng=N(["inherit","MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function og(e){switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}const rg=A({props:A({text:$().optional().nullable(),level:N(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:N(["text","link"]).optional().nullable(),url:$().optional().nullable(),openInNewTab:L().optional().nullable(),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable()}).optional().nullable(),style:A({color:jo,textColor:jo,backgroundColor:jo,fontFamily:ng,fontSize:m().optional().nullable(),lineClamp:m().int().gte(0).optional().nullable(),fontWeight:N(["bold","normal",...xa]).optional().nullable(),fontStyle:N(["italic","normal"]).optional().nullable(),textDecoration:N(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),padding:Xp,margin:Qp}).optional().nullable(),responsive:We}),mn={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};function ag({props:e,style:t}){const n=(e==null?void 0:e.level)??mn.level,o=(e==null?void 0:e.text)??mn.text,r=typeof o=="string"&&o.indexOf("{{")!==-1,i=(e==null?void 0:e.linkType)??mn.linkType,a=(e==null?void 0:e.url)??mn.url,l=(e==null?void 0:e.openInNewTab)??mn.openInNewTab,s=i==="link"&&a,c=(t==null?void 0:t.fontSize)??ig(n),u=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),h=z(u),d=u&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(u),f=(t==null?void 0:t.textDecoration)??"none",p=d&&(f==="underline"||f==="underline line-through"),b=d&&(f==="line-through"||f==="underline line-through"),x=t==null?void 0:t.lineClamp,w=x&&x>0?{display:"-webkit-box",WebkitLineClamp:x,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},S={fontWeight:(t==null?void 0:t.fontWeight)??kn.BOLD,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:d?"none":f,margin:0,fontFamily:og(t==null?void 0:t.fontFamily),fontSize:c,...w},k=!!(x&&x>0),v=d?{lineHeight:"normal ",backgroundImage:h,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",position:"relative",...k?{}:{display:"inline-block"},...p?{paddingBottom:"0.08em"}:{}}:{color:h??void 0},_={position:"absolute",left:0,right:0,height:"0.08em",backgroundImage:h??void 0,pointerEvents:"none"},y={..._,bottom:0},C={..._,top:"50%",transform:"translateY(-50%)"},I=(t==null?void 0:t.backgroundColor)??void 0,R=z(I),E=typeof I=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(I),P=t==null?void 0:t.margin,M=((P==null?void 0:P.left)??0)+((P==null?void 0:P.right)??0),O={padding:eg(t==null?void 0:t.padding),margin:tg(t==null?void 0:t.margin),display:"block",width:M>0?`calc(100% - ${M}px)`:"100%",boxSizing:"border-box",textAlign:(t==null?void 0:t.textAlign)??void 0,wordBreak:"break-word",overflowWrap:"break-word",...E?{backgroundImage:R,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:R}},H=n,D=g.jsx(H,{className:"heading-block",style:S,children:g.jsxs("span",{style:v,children:[r?g.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:ws(o)}}):o,p?g.jsx("span",{style:y}):null,b?g.jsx("span",{style:C}):null]})});return g.jsx("div",{className:"heading-block-wrapper",style:O,children:s?g.jsx("a",{href:a,target:l?"_blank":void 0,rel:l?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!d&&h?h:void 0},children:D}):D})}function ig(e){switch(e){case"h1":return 32;case"h2":return 24;case"h3":return 19;case"h4":return 16;case"h5":return 13;case"h6":return 11}}var _s="comm",Cs="rule",As="decl",lg="@import",sg="@namespace",cg="@keyframes",ug="@layer",dg=Math.abs,_n=String.fromCharCode;function ys(e){return e.trim()}function Cr(e,t,n){return e.replace(t,n)}function tn(e,t){return e.charCodeAt(t)|0}function an(e,t,n){return e.slice(t,n)}function ht(e){return e.length}function hg(e){return e.length}function Vn(e,t){return t.push(e),e}var No=1,ln=1,Is=0,Ye=0,Ne=0,cn="";function _a(e,t,n,o,r,i,a,l){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:No,column:ln,length:a,return:"",siblings:l}}function fg(){return Ne}function mg(){return Ne=Ye>0?tn(cn,--Ye):0,ln--,Ne===10&&(ln=1,No--),Ne}function rt(){return Ne=Ye<Is?tn(cn,Ye++):0,ln++,Ne===10&&(ln=1,No++),Ne}function It(){return tn(cn,Ye)}function no(){return Ye}function To(e,t){return an(cn,e,t)}function Nn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function pg(e){return No=ln=1,Is=ht(cn=e),Ye=0,[]}function gg(e){return cn="",e}function Bo(e){return ys(To(Ye-1,Ar(e===91?e+2:e===40?e+1:e)))}function bg(e){for(;(Ne=It())&&Ne<33;)rt();return Nn(e)>2||Nn(Ne)>3?"":" "}function xg(e,t){for(;--t&&rt()&&!(Ne<48||Ne>102||Ne>57&&Ne<65||Ne>70&&Ne<97););return To(e,no()+(t<6&&It()==32&&rt()==32))}function Ar(e){for(;rt();)switch(Ne){case e:return Ye;case 34:case 39:e!==34&&e!==39&&Ar(Ne);break;case 40:e===41&&Ar(e);break;case 92:rt();break}return Ye}function vg(e,t){for(;rt()&&e+Ne!==57;)if(e+Ne===84&&It()===47)break;return"/*"+To(t,Ye-1)+"*"+_n(e===47?e:rt())}function Sg(e){for(;!Nn(It());)rt();return To(e,Ye)}function wg(e){return gg(oo("",null,null,null,[""],e=pg(e),0,[0],e))}function oo(e,t,n,o,r,i,a,l,s){for(var c=0,u=0,h=a,d=0,f=0,p=0,b=1,x=1,w=1,S=0,k=0,v="",_=r,y=i,C=o,I=v;x;)switch(p=k,k=rt()){case 40:p!=108&&tn(I,h-1)==58?(S++,I+="("):I+=Bo(k);break;case 41:S--,I+=")";break;case 34:case 39:case 91:I+=Bo(k);break;case 9:case 10:case 13:case 32:if(S>0){I+=_n(k);break}I+=bg(p);break;case 92:I+=xg(no()-1,7);continue;case 47:switch(It()){case 42:case 47:Vn($g(vg(rt(),no()),t,n,s),s),(Nn(p||1)==5||Nn(It()||1)==5)&&ht(I)&&an(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*b:l[c++]=ht(I)*w;case 125*b:case 59:case 0:if(S>0&&k){I+=_n(k);break}switch(k){case 0:case 125:x=0;case 59+u:w==-1&&(I=Cr(I,/\f/g,"")),f>0&&(ht(I)-h||b===0)&&Vn(f>32?Ri(I+";",o,n,h-1,s):Ri(Cr(I," ","")+";",o,n,h-2,s),s);break;case 59:I+=";";default:if(Vn(C=Ii(I,t,n,c,u,r,l,v,_=[],y=[],h,i),i),k===123)if(u===0)oo(I,t,C,C,_,i,h,l,y);else{switch(d){case 99:if(tn(I,3)===110)break;case 108:if(tn(I,2)===97)break;default:u=0;case 100:case 109:case 115:}u?oo(e,C,C,o&&Vn(Ii(e,C,C,0,0,r,l,v,r,_=[],h,y),y),r,y,h,l,o?_:y):oo(I,C,C,C,[""],y,0,l,y)}}c=u=f=0,b=w=1,v=I="",h=a;break;case 58:h=1+ht(I),f=p;default:if(b<1){if(k==123)--b;else if(k==125&&b++==0&&mg()==125)continue}switch(I+=_n(k),k*b){case 38:w=u>0?1:(I+="\f",-1);break;case 44:if(S>0)break;l[c++]=(ht(I)-1)*w,w=1;break;case 64:It()===45&&(I+=Bo(rt())),d=It(),u=h=ht(v=I+=Sg(no())),k++;break;case 45:p===45&&ht(I)==2&&(b=0)}}return i}function Ii(e,t,n,o,r,i,a,l,s,c,u,h){for(var d=r-1,f=r===0?i:[""],p=hg(f),b=0,x=0,w=0;b<o;++b)for(var S=0,k=an(e,d+1,d=dg(x=a[b])),v=e;S<p;++S)(v=ys(x>0?f[S]+" "+k:Cr(k,/&\f/g,f[S])))&&(s[w++]=v);return _a(e,t,n,r===0?Cs:l,s,c,u,h)}function $g(e,t,n,o){return _a(e,t,n,_s,_n(fg()),an(e,2,-2),0,o)}function Ri(e,t,n,o,r){return _a(e,t,n,As,an(e,0,o),an(e,o+1,-1),o,r)}function yr(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function kg(e,t,n,o){switch(e.type){case ug:if(e.children.length)break;case lg:case sg:case As:return e.return=e.return||e.value;case _s:return"";case cg:return e.return=e.value+"{"+yr(e.children,o)+"}";case Cs:if(!ht(e.value=e.props.join(",")))return""}return ht(n=yr(e.children,o))?e.return=e.value+"{"+n+"}":""}const _g=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Cg=$().regex(/^rgba?\([^\)]+\)$/i),Ag=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),yg=se("transparent"),Ni=G([_g,Cg,Ag,yg]).nullable().optional(),Ig=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Rg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ng=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Tg=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Eg=N(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function Mg(e){switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}const Pg=A({style:A({color:Ni,backgroundColor:Ni,fontFamily:Eg,fontSize:m().min(0).optional().nullable(),textAlign:N(["left","right","center"]).optional().nullable(),padding:Ig,margin:Rg}).optional().nullable(),props:A({contents:$().optional().nullable()}).optional().nullable()}),Og=/<style[^>]*>([\s\S]*?)<\/style>/gi;function Lg(e,t){let n="";const o=e.replace(Og,(i,a)=>(n+=a,""));if(!n.trim())return{markup:o,css:""};const r=yr(wg(`[${t}]{${n}}`),kg);return{markup:o,css:r}}function zg({style:e,props:t}){const n=t==null?void 0:t.contents,[o,r]=Z.useState(!1),a=`data-html-scope-${Z.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=Z.useMemo(()=>n?Lg(n,a):{markup:"",css:""},[n,a]),c={color:z(e==null?void 0:e.color),backgroundColor:z(e==null?void 0:e.backgroundColor),fontFamily:Mg(e==null?void 0:e.fontFamily),fontSize:(e==null?void 0:e.fontSize)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:Ng(e==null?void 0:e.padding),margin:Tg(e==null?void 0:e.margin)},u=Z.useRef(null);Z.useEffect(()=>{const b=u.current;if(!b)return;b.querySelectorAll("iframe").forEach(w=>{try{w.style.pointerEvents=o?"auto":"none"}catch{}})},[n,o]);const h=b=>{o||r(!0)},d=()=>{r(!1)},f=`[${a}] pre,[${a}] code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}`;if(!n)return g.jsx("div",{ref:u,className:"html-block",style:c,children:g.jsx("style",{dangerouslySetInnerHTML:{__html:f}})});const p=`<style>${f}${s}</style>${Ss(l)}`;return g.jsx("div",{ref:u,className:"html-block",style:c,onClick:h,onBlur:d,tabIndex:0,[a]:"",dangerouslySetInnerHTML:{__html:p}})}const jg=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Bg=$().regex(/^rgba?\([^\)]+\)$/i),Dg=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Fg=se("transparent"),Hg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Gg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ug=G([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),ro=G([jg,Bg,Dg,Fg]).nullable().optional(),Wg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Zg=A({color:ro,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:L().default(!1)}).partial().optional().nullable();function Vg(e){if(!(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")))return e;const n=e.match(/#([0-9a-fA-F]{3,8})|rgba?\([^)]+\)/);return(n==null?void 0:n[0])??"#000000"}function qg(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e;return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${Vg(t)}`}}const Yg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Kg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Jg(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function Xg(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const Qg=A({style:A({padding:Hg,margin:Gg,backgroundColor:ro.default(null),textAlign:N(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:m().optional().nullable(),widthUnit:N(["px","%"]).optional().nullable(),widthUnitTablet:N(["px","%"]).optional().nullable(),widthUnitMobile:N(["px","%"]).optional().nullable(),widthTablet:m().positive().optional().nullable(),widthMobile:m().positive().optional().nullable(),height:m().optional().nullable(),heightTablet:m().positive().optional().nullable(),heightMobile:m().positive().optional().nullable(),widthType:N(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:N(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:N(["fixed","fill","fit"]).optional().nullable(),url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:L().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:N(["_self","_blank"]).optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable(),borderRadius:Ug,borderColor:ro.default(null),borderWidth:Wg,boxShadow:Zg,iconName:$().optional().nullable(),iconFillColor:ro.default(null),rotation:m().min(0).max(360).optional().nullable(),rotationTablet:m().min(0).max(360).optional().nullable(),rotationMobile:m().min(0).max(360).optional().nullable(),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),hoverEffect:A({enabled:L(),scale:m().min(1).max(1.5).optional().nullable(),duration:m().min(0).max(3e3).optional().nullable(),easing:N(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable()}).optional().nullable()}),Pe={widthType:"fit",width:300,widthUnit:"px",height:null,url:"",alt:"",decorative:!1,showLink:!1,linkHref:null,linkTarget:"_blank",contentAlignment:"middle",borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null,rotation:0,hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};let eb=0;function tb({style:e,props:t}){const n=Z.useMemo(()=>`ahd-img-${++eb}`,[]),o=va(),r=(e==null?void 0:e.textAlign)??void 0,i=r==="center"?"center":r==="right"?"flex-end":"flex-start",a=e==null?void 0:e.margin,l=((a==null?void 0:a.left)??0)+((a==null?void 0:a.right)??0),s={padding:Yg(e==null?void 0:e.padding),margin:Kg(e==null?void 0:e.margin),...Jg(z(e==null?void 0:e.backgroundColor)),display:"flex",justifyContent:i,width:l>0?`max(0px, calc(100% - ${l}px))`:"100%",boxSizing:"border-box"},c=(t==null?void 0:t.showLink)??(t!=null&&t.linkHref?!0:Pe.showLink),u=(t==null?void 0:t.linkHref)??Pe.linkHref,h=c&&u?u:null,d=(t==null?void 0:t.linkTarget)??Pe.linkTarget,f=(t==null?void 0:t.widthType)??Pe.widthType,p=(t==null?void 0:t.widthTypeTablet)??f,b=(t==null?void 0:t.widthTypeMobile)??p,x=(t==null?void 0:t.width)??Pe.width,w=(t==null?void 0:t.widthUnit)??Pe.widthUnit,S=(t==null?void 0:t.widthUnitTablet)??w,k=(t==null?void 0:t.widthUnitMobile)??S,v=(t==null?void 0:t.widthTablet)??null,_=(t==null?void 0:t.widthMobile)??null,y=v??x,C=_??y,I=(t==null?void 0:t.height)??Pe.height,R=(t==null?void 0:t.heightTablet)??null,E=(t==null?void 0:t.heightMobile)??null,P=R??I,M=E??P,O=I,H=(t==null?void 0:t.url)??Pe.url,D=(t==null?void 0:t.urlTablet)??null,V=(t==null?void 0:t.urlMobile)??null,F=!h&&((t==null?void 0:t.decorative)??Pe.decorative),q=F?"":(t==null?void 0:t.alt)??Pe.alt,Y=F?{role:"presentation","aria-hidden":!0}:{},ie=(t==null?void 0:t.contentAlignment)??Pe.contentAlignment,J=(t==null?void 0:t.borderRadius)??Pe.borderRadius,re=z((t==null?void 0:t.borderColor)??Pe.borderColor),me=(t==null?void 0:t.borderWidth)??Pe.borderWidth,ae=(t==null?void 0:t.boxShadow)??Pe.boxShadow,Se=qg(ae),xe=(t==null?void 0:t.rotation)??Pe.rotation,X=(t==null?void 0:t.rotationTablet)??null,j=(t==null?void 0:t.rotationMobile)??null,B=X??xe,K=j??B,W=Q=>{const ve=Q*Math.PI/180,Ie=Q%180!==0?1/(Math.abs(Math.cos(ve))+Math.abs(Math.sin(ve))):1;return`rotate(${Q}deg) scale(${Ie})`},te=xe,fe=te?{transform:W(te),transformOrigin:"center"}:{},ue=X!=null||j!=null?`
66
66
  ${ft} { .${n} img, .${n} > div { transform: ${W(B)} !important; transform-origin: center !important; } }
67
- ${je} { .${n} img, .${n} > div { transform: ${W(Z)} !important; transform-origin: center !important; } }
68
- `.trim():null,Te=Kg(se,fe),ue=J=>typeof J=="number"?`${J}px`:`${J.topLeft}px ${J.topRight}px ${J.bottomRight}px ${J.bottomLeft}px`,Ie=(J,Se)=>{const Ce=Math.max((Se==null?void 0:Se.top)||0,(Se==null?void 0:Se.right)||0,(Se==null?void 0:Se.bottom)||0,(Se==null?void 0:Se.left)||0);if(typeof J=="number")return`${Math.max(0,J-Ce)}px`;const bt=Math.max(0,(J.topLeft||0)-Ce),Ft=Math.max(0,(J.topRight||0)-Ce),Ht=Math.max(0,(J.bottomRight||0)-Ce),ne=Math.max(0,(J.bottomLeft||0)-Ce);return`${bt}px ${Ft}px ${Ht}px ${ne}px`},Re=(()=>{switch(f){case"fill":return"100%";case"fixed":return x;case"fit":default:return}})(),Be=J=>J==="mobile"?b:J==="tablet"?p:f,De=J=>J==="mobile"?k:J==="tablet"?S:v,Q=J=>{const Se=Be(J);if(Se==="fill")return"100%";if(Se==="fit")return"auto";const Ce=J==="mobile"?_:J==="tablet"?y:x,bt=De(J);return`${Ce}${bt}`},ie=Q(o),Ne=De(o),Fe=typeof ie=="string"&&ie.endsWith("%")?{display:"block",width:"100%"}:{},Le=F,gt=(t==null?void 0:t.widthTypeTablet)!=null||(t==null?void 0:t.widthTypeMobile)!=null||f==="fixed"?`
69
- ${ft} { .${n} img { width: ${Q("tablet")} !important; max-width: 100% !important; } }
70
- ${je} { .${n} img { width: ${Q("mobile")} !important; max-width: 100% !important; } }
71
- `.trim():null,at=R!=null||T!=null?`
67
+ ${De} { .${n} img, .${n} > div { transform: ${W(K)} !important; transform-origin: center !important; } }
68
+ `.trim():null,Ce=Xg(re,me),le=Q=>typeof Q=="number"?`${Q}px`:`${Q.topLeft}px ${Q.topRight}px ${Q.bottomRight}px ${Q.bottomLeft}px`,Ae=(Q,ve)=>{const Ie=Math.max((ve==null?void 0:ve.top)||0,(ve==null?void 0:ve.right)||0,(ve==null?void 0:ve.bottom)||0,(ve==null?void 0:ve.left)||0);if(typeof Q=="number")return`${Math.max(0,Q-Ie)}px`;const bt=Math.max(0,(Q.topLeft||0)-Ie),Ht=Math.max(0,(Q.topRight||0)-Ie),Gt=Math.max(0,(Q.bottomRight||0)-Ie),oe=Math.max(0,(Q.bottomLeft||0)-Ie);return`${bt}px ${Ht}px ${Gt}px ${oe}px`},Te=(()=>{switch(f){case"fill":return"100%";case"fixed":return x;case"fit":default:return}})(),Fe=Q=>Q==="mobile"?b:Q==="tablet"?p:f,He=Q=>Q==="mobile"?k:Q==="tablet"?S:w,ee=Q=>{const ve=Fe(Q);if(ve==="fill")return"100%";if(ve==="fit")return"auto";const Ie=Q==="mobile"?C:Q==="tablet"?y:x,bt=He(Q);return`${Ie}${bt}`},de=ee(o),Ee=He(o),Ge=typeof de=="string"&&de.endsWith("%")?{display:"block",width:"100%"}:{},je=H,gt=(t==null?void 0:t.widthTypeTablet)!=null||(t==null?void 0:t.widthTypeMobile)!=null||f==="fixed"?`
69
+ ${ft} { .${n} img { width: ${ee("tablet")} !important; max-width: 100% !important; } }
70
+ ${De} { .${n} img { width: ${ee("mobile")} !important; max-width: 100% !important; } }
71
+ `.trim():null,at=R!=null||E!=null?`
72
72
  ${ft} { .${n} img { height: ${P?`${P}px`:"auto"} !important; } }
73
- ${je} { .${n} img { height: ${M?`${M}px`:"auto"} !important; } }
74
- `.trim():null,Ze=(t==null?void 0:t.hoverEffect)??Me.hoverEffect,_t=Ze!=null&&Ze.enabled?`
73
+ ${De} { .${n} img { height: ${M?`${M}px`:"auto"} !important; } }
74
+ `.trim():null,Ze=(t==null?void 0:t.hoverEffect)??Pe.hoverEffect,_t=Ze!=null&&Ze.enabled?`
75
75
  .${n} picture { display: inline-block; transition: transform ${Ze.duration??500}ms ${Ze.easing??"ease-in-out"}; }
76
76
  .${n}:hover picture { transform: scale(${Ze.scale??1.05}); }
77
- `.trim():null,it=[gt,at,ce,_t].filter(Boolean).join(`
78
- `)||null,dn=se&&(se.includes("linear-gradient")||se.includes("radial-gradient")||se.includes("repeating-linear-gradient")),lt=(V||H)&&g.jsxs(g.Fragment,{children:[V&&g.jsx("source",{media:je.replace("@media ",""),srcSet:V}),(H??V)&&g.jsx("source",{media:ft.replace("@media ",""),srcSet:H??V??F})]}),st=g.jsxs("picture",{style:Fe,children:[lt,g.jsx("img",{alt:he,...ae,src:Le,width:typeof Re=="number"&&Ne==="px"?Re:void 0,height:z!==null?z:void 0,style:{width:ie??(Re==="100%"?"100%":typeof Re=="number"?`${Re}${Ne}`:"auto"),height:z?`${z}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:pe,display:f==="fill"?"block":"inline-block",maxWidth:"100%",boxSizing:"border-box",borderRadius:ee?ue(ee):void 0}})]}),qe=dn?g.jsx("div",{style:{borderRadius:ee?ue(ee):void 0,...Te,...de,...ge},children:g.jsxs("picture",{children:[lt,g.jsx("img",{alt:he,...ae,src:Le,width:typeof Re=="number"&&Ne==="px"?Re:void 0,height:z!==null?z:void 0,style:{width:"100%",height:z?`${z}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:pe,display:"block",maxWidth:ie??(typeof Re=="number"?`${Re}${Ne}`:"auto"),boxSizing:"border-box",borderRadius:ee?Ie(ee,fe):void 0}})]})}):se?g.jsx("div",{style:{borderRadius:ee?ue(ee):void 0,...Te,...de,...ge},children:st}):de.boxShadow?g.jsx("div",{style:{borderRadius:ee?ue(ee):void 0,...de,...ge},children:st}):U.cloneElement(st,{children:U.Children.map(st.props.children,J=>(J==null?void 0:J.type)==="img"?U.cloneElement(J,{style:{...J.props.style,...ge}}):J)});return h?g.jsxs("div",{className:`image-block ${n}`,style:s,children:[it&&g.jsx("style",{dangerouslySetInnerHTML:{__html:it}}),g.jsx("a",{href:h,style:{textDecoration:"none"},target:d,rel:d==="_blank"?"noopener noreferrer":void 0,children:qe})]}):g.jsxs("div",{className:`image-block ${n}`,style:s,children:[it&&g.jsx("style",{dangerouslySetInnerHTML:{__html:it}}),qe]})}const eb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),tb=$().regex(/^rgba?\([^\)]+\)$/i),nb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),ob=oe("transparent"),qt=D([eb,tb,nb,ob]).nullable().optional(),rb=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),ab=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),ib=D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),lb=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),sb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,cb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function ub(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function db(e,t){return!e||e==="transparent"?{}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}}const jo=e=>typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`,hb=A({color:qt,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:O().default(!1)}).partial().optional().nullable();function fb(e){if(!(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")))return e;const n=e.match(/#([0-9a-fA-F]{3,8})|rgba?\([^)]+\)/);return(n==null?void 0:n[0])??"#000000"}function mb(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e;return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${fb(t)}`}}const pb=A({style:A({padding:rb,margin:ab,backgroundColor:qt.default(null),textAlign:N(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:O().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:N(["_self","_blank"]).optional().nullable(),width:m().positive().optional().nullable(),widthTablet:m().positive().optional().nullable(),widthMobile:m().positive().optional().nullable(),borderRadius:ib,borderColor:qt.default(null),borderWidth:lb,boxShadow:hb,iconName:$().optional().nullable(),iconNameTablet:$().optional().nullable(),iconNameMobile:$().optional().nullable(),iconFillColor:qt.default(null),iconFillColorTablet:qt.default(null),iconFillColorMobile:qt.default(null),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable()}).optional().nullable()}),nt={url:"",alt:"Logo",decorative:!1,showLink:!1,linkHref:null,linkTarget:"_blank",width:160,borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null};let gb=0;function bb({style:e,props:t}){const n=(t==null?void 0:t.url)??nt.url,o=(t==null?void 0:t.urlTablet)??null,r=(t==null?void 0:t.urlMobile)??null,i=(t==null?void 0:t.showLink)??nt.showLink,a=(t==null?void 0:t.linkHref)??nt.linkHref,l=i&&a?a:null,s=(t==null?void 0:t.linkTarget)??nt.linkTarget,c=!l&&((t==null?void 0:t.decorative)??nt.decorative),u=c?"":(t==null?void 0:t.alt)??nt.alt,h=c?{role:"presentation","aria-hidden":!0}:{},d=(t==null?void 0:t.width)??nt.width,f=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,b=(t==null?void 0:t.borderRadius)??nt.borderRadius,x=j((t==null?void 0:t.borderColor)??nt.borderColor),v=(t==null?void 0:t.borderWidth)??nt.borderWidth,S=(t==null?void 0:t.boxShadow)??nt.boxShadow,k=mb(S),w=f??d,C=p??w,y=d,_=n,I=`ahd-logo-${++gb}`,R=`
79
- ${ft} { .${I} img { width: ${w}px !important; max-width: 100% !important; } }
80
- ${je} { .${I} img { width: ${C}px !important; max-width: 100% !important; } }
81
- `.trim(),T={padding:sb(e==null?void 0:e.padding),margin:cb(e==null?void 0:e.margin),...ub(j(e==null?void 0:e.backgroundColor)),textAlign:(e==null?void 0:e.textAlign)??void 0,lineHeight:0},P={width:`${y}px`,height:"auto",maxWidth:"100%",display:"inline-block",verticalAlign:"top",boxSizing:"border-box",border:"none",outline:"none",textDecoration:"none",borderRadius:b?jo(b):void 0},M=g.jsxs("picture",{children:[r&&g.jsx("source",{media:je.replace("@media ",""),srcSet:r}),o&&g.jsx("source",{media:ft.replace("@media ",""),srcSet:o}),g.jsx("img",{alt:u,...h,src:_,width:y,style:P})]}),z=x&&x!=="transparent"?g.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?jo(b):void 0,...db(x,v),...k},children:M}):k.boxShadow?g.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?jo(b):void 0,...k},children:M}):M;return l?g.jsxs("div",{className:`logo-block ${I}`,style:T,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:R}}),g.jsx("a",{href:l,style:{textDecoration:"none",display:"inline-block",verticalAlign:"top"},target:s,rel:s==="_blank"?"noopener noreferrer":void 0,"aria-label":c?"Logo":u||"Logo",children:z})]}):g.jsxs("div",{className:`logo-block ${I}`,style:T,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:R}}),z]})}const xb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),vb=$().regex(/^rgba?\([^\)]+\)$/i),Sb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),wb=oe("transparent"),$b=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),kb=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),_b=D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),Cb=D([xb,vb,Sb,wb]).nullable().optional(),Ab=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),yb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ib=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Rb(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function Nb(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const Tb=A({style:A({padding:$b,margin:kb,backgroundColor:$().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:N(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:D([m(),$()]).optional().nullable(),height:D([m(),$()]).optional().nullable(),widthTablet:D([m(),$()]).optional().nullable(),widthMobile:D([m(),$()]).optional().nullable(),heightTablet:D([m(),$()]).optional().nullable(),heightMobile:D([m(),$()]).optional().nullable(),url:$().optional().nullable(),alt:$().optional().nullable(),linkHref:$().optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable(),name:$().optional().nullable(),borderRadius:_b,borderColor:Cb.default(null),borderWidth:Ab}).optional().nullable()});function Eb(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}function Mb(e){if(!e)return null;try{const t=new URL(e);return t.hostname==="youtu.be"?`https://www.youtube.com/embed/${t.pathname.slice(1)}`:t.hostname.includes("youtube.com")&&t.searchParams.get("v")?`https://www.youtube.com/embed/${t.searchParams.get("v")}`:t.pathname.startsWith("/embed/")?e:null}catch{return null}}let Pb=0;function Ob({style:e,props:t}){const n=`ahd-video-${++Pb}`,o=(e==null?void 0:e.textAlign)??"left",r={padding:yb(e==null?void 0:e.padding),margin:Ib(e==null?void 0:e.margin),...Rb(j(e==null?void 0:e.backgroundColor)),display:"flex",justifyContent:Eb(o),textAlign:o},i=(t==null?void 0:t.width)??"100%",a=(t==null?void 0:t.height)??"inherit",l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,c=l??i,u=s??i,h=(t==null?void 0:t.heightTablet)===null?"auto":(t==null?void 0:t.heightTablet)??a,d=(t==null?void 0:t.heightMobile)===null?"auto":(t==null?void 0:t.heightMobile)??a,f=i,p=a,b=M=>M==null?void 0:typeof M=="number"?`${M}px`:M,x=`
82
- ${Bt} { .${n} video, .${n} iframe { ${b(c)?`width: ${b(c)} !important;`:""} ${b(h)?`height: ${b(h)} !important;`:""} max-width: 100% !important; } }
83
- ${je} { .${n} video, .${n} iframe { ${b(u)?`width: ${b(u)} !important;`:""} ${b(d)?`height: ${b(d)} !important;`:""} max-width: 100% !important; } }
84
- `.trim(),v=(t==null?void 0:t.linkHref)??null,S=(t==null?void 0:t.borderRadius)??0,k=M=>typeof M=="number"?`${M}px`:`${M.topLeft}px ${M.topRight}px ${M.bottomRight}px ${M.bottomLeft}px`,w=(M,z)=>{const F=Math.max((z==null?void 0:z.top)||0,(z==null?void 0:z.right)||0,(z==null?void 0:z.bottom)||0,(z==null?void 0:z.left)||0);if(typeof M=="number")return`${Math.max(0,M-F)}px`;const H=Math.max(0,(M.topLeft||0)-F),V=Math.max(0,(M.topRight||0)-F),q=Math.max(0,(M.bottomRight||0)-F),he=Math.max(0,(M.bottomLeft||0)-F);return`${H}px ${V}px ${q}px ${he}px`},C=j((t==null?void 0:t.borderColor)??null),y=(t==null?void 0:t.borderWidth)??null,_=Nb(C,y),I=C&&(C.includes("linear-gradient")||C.includes("radial-gradient")||C.includes("repeating-linear-gradient")),R=Mb(t==null?void 0:t.url),T=R?g.jsx("iframe",{width:f,height:p,src:R,title:(t==null?void 0:t.alt)??"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:k(S)}},R):g.jsx("video",{controls:!0,preload:"metadata","aria-label":(t==null?void 0:t.alt)??(t==null?void 0:t.name)??void 0,src:(t==null?void 0:t.url)??"",width:f,height:p,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",objectFit:"cover",borderRadius:k(S),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url),P=I?g.jsx("div",{style:{borderRadius:S?k(S):void 0,..._},children:R?g.jsx("iframe",{width:f,height:p,src:R,title:(t==null?void 0:t.alt)??"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:w(S,y)}},R):g.jsx("video",{controls:!0,src:(t==null?void 0:t.url)??"",width:f,height:p,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",objectFit:"cover",borderRadius:w(S,y),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url)}):C?g.jsx("div",{style:{borderRadius:S?k(S):void 0,..._},children:T}):T;return v?g.jsxs("div",{className:`video-block ${n}`,style:r,children:[x&&g.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),g.jsx("a",{href:v,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:P})]}):g.jsxs("div",{className:`video-block ${n}`,style:r,children:[x&&g.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),P]})}var Lb=A({props:A({height:m().gte(0).optional().nullish()}).optional().nullable()}),zb={height:16};const pt=[{key:"inherit",label:"Inherit",value:"inherit"},{key:"MODERN_SANS",label:"Modern sans",value:'"Modern Sans", "Inter", "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif'},{key:"BOOK_SANS",label:"Book sans",value:'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif'},{key:"ORGANIC_SANS",label:"Organic sans",value:'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif'},{key:"GEOMETRIC_SANS",label:"Geometric sans",value:'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif'},{key:"HEAVY_SANS",label:"Heavy sans",value:'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif'},{key:"ROUNDED_SANS",label:"Rounded sans",value:'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif'},{key:"MODERN_SERIF",label:"Modern serif",value:'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif'},{key:"BOOK_SERIF",label:"Book serif",value:'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif'},{key:"MONOSPACE",label:"Monospace",value:'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'},{key:"ROBOTO",label:"Roboto",value:'Roboto, "Helvetica Neue", Arial, sans-serif'},{key:"OPEN_SANS",label:"Open Sans",value:'"Open Sans", "Helvetica Neue", Arial, sans-serif'},{key:"LATO",label:"Lato",value:'Lato, "Helvetica Neue", Arial, sans-serif'},{key:"POPPINS",label:"Poppins",value:'Poppins, "Helvetica Neue", Arial, sans-serif'},{key:"INTER",label:"Inter",value:'Inter, "Helvetica Neue", Arial, sans-serif'},{key:"MONTSERRAT",label:"Montserrat",value:'Montserrat, "Helvetica Neue", Arial, sans-serif'},{key:"RALEWAY",label:"Raleway",value:'Raleway, "Helvetica Neue", Arial, sans-serif'},{key:"NUNITO",label:"Nunito",value:'Nunito, "Helvetica Neue", Arial, sans-serif'},{key:"PLAYFAIR_DISPLAY",label:"Playfair Display",value:'"Playfair Display", Georgia, serif'},{key:"MERRIWEATHER",label:"Merriweather",value:"Merriweather, Georgia, serif"},{key:"PT_SANS",label:"PT Sans",value:'"PT Sans", "Helvetica Neue", Arial, sans-serif'},{key:"OSWALD",label:"Oswald",value:'Oswald, "Helvetica Neue", Arial, sans-serif'},{key:"SOURCE_SANS_PRO",label:"Source Sans Pro",value:'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif'},{key:"RUBIK",label:"Rubik",value:'Rubik, "Helvetica Neue", Arial, sans-serif'},{key:"WORK_SANS",label:"Work Sans",value:'"Work Sans", "Helvetica Neue", Arial, sans-serif'},{key:"NOTO_SANS",label:"Noto Sans",value:'"Noto Sans", "Helvetica Neue", Arial, sans-serif'},{key:"DANCING_SCRIPT",label:"Dancing Script",value:'"Dancing Script", cursive, sans-serif'},{key:"PACIFICO",label:"Pacifico",value:"Pacifico, cursive, sans-serif"},{key:"LOBSTER",label:"Lobster",value:"Lobster, cursive, sans-serif"},{key:"BEBAS_NEUE",label:"Bebas Neue",value:'"Bebas Neue", cursive, sans-serif'}],jb={Inter:[400,500,600,700],Roboto:[400,500,700],"Open Sans":[400,500,600,700],Lato:[400,700],Poppins:[400,500,600,700],Montserrat:[400,500,600,700],Raleway:[400,500,600,700],Nunito:[400,500,600,700],"Playfair Display":[400,500,600,700],Merriweather:[400,700],"PT Sans":[400,700],Oswald:[400,500,600,700],"Source Sans Pro":[400,600,700],Rubik:[400,500,600,700],"Work Sans":[400,500,600,700],"Noto Sans":[400,500,600,700],"Titillium Web":[400,600,700],"Dancing Script":[400,500,600,700],Pacifico:[400],Lobster:[400],"Bebas Neue":[400],"Permanent Marker":[400],"Great Vibes":[400],"Libre Baskerville":[400,700],"EB Garamond":[400,500,700],Lora:[400,500,700]},Bb=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`};`${Object.entries(jb).map(([e,t])=>`family=${Bb(e,t)}`).join("&")}`;const Is=pt.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));Is.map(e=>e.css);const Db=e=>e.replace(/"/g,'\\"'),Fb=e=>((e||"").split(",")[0]||"").replace(/['"]/g,"").trim().toLowerCase();new Set(pt.filter(e=>e.key!=="inherit").map(e=>Fb(e.value)));const Ni=pt.find(e=>e.key==="INTER");Ni&&Ni.value;Is.map(e=>{const t=Db(e.css);return`
77
+ `.trim():null,it=[gt,at,ue,_t].filter(Boolean).join(`
78
+ `)||null,hn=re&&(re.includes("linear-gradient")||re.includes("radial-gradient")||re.includes("repeating-linear-gradient")),lt=(V||D)&&g.jsxs(g.Fragment,{children:[V&&g.jsx("source",{media:De.replace("@media ",""),srcSet:V}),(D??V)&&g.jsx("source",{media:ft.replace("@media ",""),srcSet:D??V??H})]}),st=g.jsxs("picture",{style:Ge,children:[lt,g.jsx("img",{alt:q,...Y,src:je,width:typeof Te=="number"&&Ee==="px"?Te:void 0,height:O!==null?O:void 0,style:{width:de??(Te==="100%"?"100%":typeof Te=="number"?`${Te}${Ee}`:"auto"),height:O?`${O}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:ie,display:f==="fill"?"block":"inline-block",maxWidth:"100%",boxSizing:"border-box",borderRadius:J?le(J):void 0}})]}),qe=hn?g.jsx("div",{style:{borderRadius:J?le(J):void 0,...Ce,...Se,...fe},children:g.jsxs("picture",{children:[lt,g.jsx("img",{alt:q,...Y,src:je,width:typeof Te=="number"&&Ee==="px"?Te:void 0,height:O!==null?O:void 0,style:{width:"100%",height:O?`${O}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:ie,display:"block",maxWidth:de??(typeof Te=="number"?`${Te}${Ee}`:"auto"),boxSizing:"border-box",borderRadius:J?Ae(J,me):void 0}})]})}):re?g.jsx("div",{style:{borderRadius:J?le(J):void 0,...Ce,...Se,...fe},children:st}):Se.boxShadow?g.jsx("div",{style:{borderRadius:J?le(J):void 0,...Se,...fe},children:st}):Z.cloneElement(st,{children:Z.Children.map(st.props.children,Q=>(Q==null?void 0:Q.type)==="img"?Z.cloneElement(Q,{style:{...Q.props.style,...fe}}):Q)});return h?g.jsxs("div",{className:`image-block ${n}`,style:s,children:[it&&g.jsx("style",{dangerouslySetInnerHTML:{__html:it}}),g.jsx("a",{href:h,style:{textDecoration:"none"},target:d,rel:d==="_blank"?"noopener noreferrer":void 0,children:qe})]}):g.jsxs("div",{className:`image-block ${n}`,style:s,children:[it&&g.jsx("style",{dangerouslySetInnerHTML:{__html:it}}),qe]})}const nb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),ob=$().regex(/^rgba?\([^\)]+\)$/i),rb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),ab=se("transparent"),Yt=G([nb,ob,rb,ab]).nullable().optional(),ib=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),lb=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),sb=G([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),cb=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),ub=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,db=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function hb(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function fb(e,t){return!e||e==="transparent"?{}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}}const Do=e=>typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`,mb=A({color:Yt,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:L().default(!1)}).partial().optional().nullable();function pb(e){if(!(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")))return e;const n=e.match(/#([0-9a-fA-F]{3,8})|rgba?\([^)]+\)/);return(n==null?void 0:n[0])??"#000000"}function gb(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e;return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${pb(t)}`}}const bb=A({style:A({padding:ib,margin:lb,backgroundColor:Yt.default(null),textAlign:N(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:L().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:N(["_self","_blank"]).optional().nullable(),width:m().positive().optional().nullable(),widthTablet:m().positive().optional().nullable(),widthMobile:m().positive().optional().nullable(),borderRadius:sb,borderColor:Yt.default(null),borderWidth:cb,boxShadow:mb,iconName:$().optional().nullable(),iconNameTablet:$().optional().nullable(),iconNameMobile:$().optional().nullable(),iconFillColor:Yt.default(null),iconFillColorTablet:Yt.default(null),iconFillColorMobile:Yt.default(null),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable()}).optional().nullable()}),nt={url:"",alt:"Logo",decorative:!1,showLink:!1,linkHref:null,linkTarget:"_blank",width:160,borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null};let xb=0;function vb({style:e,props:t}){const n=(t==null?void 0:t.url)??nt.url,o=(t==null?void 0:t.urlTablet)??null,r=(t==null?void 0:t.urlMobile)??null,i=(t==null?void 0:t.showLink)??nt.showLink,a=(t==null?void 0:t.linkHref)??nt.linkHref,l=i&&a?a:null,s=(t==null?void 0:t.linkTarget)??nt.linkTarget,c=!l&&((t==null?void 0:t.decorative)??nt.decorative),u=c?"":(t==null?void 0:t.alt)??nt.alt,h=c?{role:"presentation","aria-hidden":!0}:{},d=(t==null?void 0:t.width)??nt.width,f=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,b=(t==null?void 0:t.borderRadius)??nt.borderRadius,x=z((t==null?void 0:t.borderColor)??nt.borderColor),w=(t==null?void 0:t.borderWidth)??nt.borderWidth,S=(t==null?void 0:t.boxShadow)??nt.boxShadow,k=gb(S),v=f??d,_=p??v,y=d,C=n,I=`ahd-logo-${++xb}`,R=`
79
+ ${ft} { .${I} img { width: ${v}px !important; max-width: 100% !important; } }
80
+ ${De} { .${I} img { width: ${_}px !important; max-width: 100% !important; } }
81
+ `.trim(),E={padding:ub(e==null?void 0:e.padding),margin:db(e==null?void 0:e.margin),...hb(z(e==null?void 0:e.backgroundColor)),textAlign:(e==null?void 0:e.textAlign)??void 0,lineHeight:0},P={width:`${y}px`,height:"auto",maxWidth:"100%",display:"inline-block",verticalAlign:"top",boxSizing:"border-box",border:"none",outline:"none",textDecoration:"none",borderRadius:b?Do(b):void 0},M=g.jsxs("picture",{children:[r&&g.jsx("source",{media:De.replace("@media ",""),srcSet:r}),o&&g.jsx("source",{media:ft.replace("@media ",""),srcSet:o}),g.jsx("img",{alt:u,...h,src:C,width:y,style:P})]}),O=x&&x!=="transparent"?g.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?Do(b):void 0,...fb(x,w),...k},children:M}):k.boxShadow?g.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?Do(b):void 0,...k},children:M}):M;return l?g.jsxs("div",{className:`logo-block ${I}`,style:E,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:R}}),g.jsx("a",{href:l,style:{textDecoration:"none",display:"inline-block",verticalAlign:"top"},target:s,rel:s==="_blank"?"noopener noreferrer":void 0,"aria-label":c?"Logo":u||"Logo",children:O})]}):g.jsxs("div",{className:`logo-block ${I}`,style:E,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:R}}),O]})}const Sb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),wb=$().regex(/^rgba?\([^\)]+\)$/i),$b=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),kb=se("transparent"),_b=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Cb=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ab=G([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),yb=G([Sb,wb,$b,kb]).nullable().optional(),Ib=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Rb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Nb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Tb(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function Eb(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const Mb=A({style:A({padding:_b,margin:Cb,backgroundColor:$().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:N(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:G([m(),$()]).optional().nullable(),height:G([m(),$()]).optional().nullable(),widthTablet:G([m(),$()]).optional().nullable(),widthMobile:G([m(),$()]).optional().nullable(),heightTablet:G([m(),$()]).optional().nullable(),heightMobile:G([m(),$()]).optional().nullable(),url:$().optional().nullable(),alt:$().optional().nullable(),linkHref:$().optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable(),name:$().optional().nullable(),borderRadius:Ab,borderColor:yb.default(null),borderWidth:Ib}).optional().nullable()});function Pb(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}function Ob(e){if(!e)return null;try{const t=new URL(e);return t.hostname==="youtu.be"?`https://www.youtube.com/embed/${t.pathname.slice(1)}`:t.hostname.includes("youtube.com")&&t.searchParams.get("v")?`https://www.youtube.com/embed/${t.searchParams.get("v")}`:t.pathname.startsWith("/embed/")?e:null}catch{return null}}let Lb=0;function zb({style:e,props:t}){const n=`ahd-video-${++Lb}`,o=(e==null?void 0:e.textAlign)??"left",r={padding:Rb(e==null?void 0:e.padding),margin:Nb(e==null?void 0:e.margin),...Tb(z(e==null?void 0:e.backgroundColor)),display:"flex",justifyContent:Pb(o),textAlign:o},i=(t==null?void 0:t.width)??"100%",a=(t==null?void 0:t.height)??"inherit",l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,c=l??i,u=s??i,h=(t==null?void 0:t.heightTablet)===null?"auto":(t==null?void 0:t.heightTablet)??a,d=(t==null?void 0:t.heightMobile)===null?"auto":(t==null?void 0:t.heightMobile)??a,f=i,p=a,b=M=>M==null?void 0:typeof M=="number"?`${M}px`:M,x=`
82
+ ${Dt} { .${n} video, .${n} iframe { ${b(c)?`width: ${b(c)} !important;`:""} ${b(h)?`height: ${b(h)} !important;`:""} max-width: 100% !important; } }
83
+ ${De} { .${n} video, .${n} iframe { ${b(u)?`width: ${b(u)} !important;`:""} ${b(d)?`height: ${b(d)} !important;`:""} max-width: 100% !important; } }
84
+ `.trim(),w=(t==null?void 0:t.linkHref)??null,S=(t==null?void 0:t.borderRadius)??0,k=M=>typeof M=="number"?`${M}px`:`${M.topLeft}px ${M.topRight}px ${M.bottomRight}px ${M.bottomLeft}px`,v=(M,O)=>{const H=Math.max((O==null?void 0:O.top)||0,(O==null?void 0:O.right)||0,(O==null?void 0:O.bottom)||0,(O==null?void 0:O.left)||0);if(typeof M=="number")return`${Math.max(0,M-H)}px`;const D=Math.max(0,(M.topLeft||0)-H),V=Math.max(0,(M.topRight||0)-H),F=Math.max(0,(M.bottomRight||0)-H),q=Math.max(0,(M.bottomLeft||0)-H);return`${D}px ${V}px ${F}px ${q}px`},_=z((t==null?void 0:t.borderColor)??null),y=(t==null?void 0:t.borderWidth)??null,C=Eb(_,y),I=_&&(_.includes("linear-gradient")||_.includes("radial-gradient")||_.includes("repeating-linear-gradient")),R=Ob(t==null?void 0:t.url),E=R?g.jsx("iframe",{width:f,height:p,src:R,title:(t==null?void 0:t.alt)??"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:k(S)}},R):g.jsx("video",{controls:!0,preload:"metadata","aria-label":(t==null?void 0:t.alt)??(t==null?void 0:t.name)??void 0,src:(t==null?void 0:t.url)??"",width:f,height:p,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",objectFit:"cover",borderRadius:k(S),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url),P=I?g.jsx("div",{style:{borderRadius:S?k(S):void 0,...C},children:R?g.jsx("iframe",{width:f,height:p,src:R,title:(t==null?void 0:t.alt)??"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:v(S,y)}},R):g.jsx("video",{controls:!0,src:(t==null?void 0:t.url)??"",width:f,height:p,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",objectFit:"cover",borderRadius:v(S,y),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url)}):_?g.jsx("div",{style:{borderRadius:S?k(S):void 0,...C},children:E}):E;return w?g.jsxs("div",{className:`video-block ${n}`,style:r,children:[x&&g.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),g.jsx("a",{href:w,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:P})]}):g.jsxs("div",{className:`video-block ${n}`,style:r,children:[x&&g.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),P]})}var jb=A({props:A({height:m().gte(0).optional().nullish()}).optional().nullable()}),Bb={height:16};const pt=[{key:"inherit",label:"Inherit",value:"inherit"},{key:"MODERN_SANS",label:"Modern sans",value:'"Modern Sans", "Inter", "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif'},{key:"BOOK_SANS",label:"Book sans",value:'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif'},{key:"ORGANIC_SANS",label:"Organic sans",value:'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif'},{key:"GEOMETRIC_SANS",label:"Geometric sans",value:'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif'},{key:"HEAVY_SANS",label:"Heavy sans",value:'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif'},{key:"ROUNDED_SANS",label:"Rounded sans",value:'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif'},{key:"MODERN_SERIF",label:"Modern serif",value:'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif'},{key:"BOOK_SERIF",label:"Book serif",value:'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif'},{key:"MONOSPACE",label:"Monospace",value:'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'},{key:"ROBOTO",label:"Roboto",value:'Roboto, "Helvetica Neue", Arial, sans-serif'},{key:"OPEN_SANS",label:"Open Sans",value:'"Open Sans", "Helvetica Neue", Arial, sans-serif'},{key:"LATO",label:"Lato",value:'Lato, "Helvetica Neue", Arial, sans-serif'},{key:"POPPINS",label:"Poppins",value:'Poppins, "Helvetica Neue", Arial, sans-serif'},{key:"INTER",label:"Inter",value:'Inter, "Helvetica Neue", Arial, sans-serif'},{key:"MONTSERRAT",label:"Montserrat",value:'Montserrat, "Helvetica Neue", Arial, sans-serif'},{key:"RALEWAY",label:"Raleway",value:'Raleway, "Helvetica Neue", Arial, sans-serif'},{key:"NUNITO",label:"Nunito",value:'Nunito, "Helvetica Neue", Arial, sans-serif'},{key:"PLAYFAIR_DISPLAY",label:"Playfair Display",value:'"Playfair Display", Georgia, serif'},{key:"MERRIWEATHER",label:"Merriweather",value:"Merriweather, Georgia, serif"},{key:"PT_SANS",label:"PT Sans",value:'"PT Sans", "Helvetica Neue", Arial, sans-serif'},{key:"OSWALD",label:"Oswald",value:'Oswald, "Helvetica Neue", Arial, sans-serif'},{key:"SOURCE_SANS_PRO",label:"Source Sans Pro",value:'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif'},{key:"RUBIK",label:"Rubik",value:'Rubik, "Helvetica Neue", Arial, sans-serif'},{key:"WORK_SANS",label:"Work Sans",value:'"Work Sans", "Helvetica Neue", Arial, sans-serif'},{key:"NOTO_SANS",label:"Noto Sans",value:'"Noto Sans", "Helvetica Neue", Arial, sans-serif'},{key:"DANCING_SCRIPT",label:"Dancing Script",value:'"Dancing Script", cursive, sans-serif'},{key:"PACIFICO",label:"Pacifico",value:"Pacifico, cursive, sans-serif"},{key:"LOBSTER",label:"Lobster",value:"Lobster, cursive, sans-serif"},{key:"BEBAS_NEUE",label:"Bebas Neue",value:'"Bebas Neue", cursive, sans-serif'}],Db={Inter:[400,500,600,700],Roboto:[400,500,700],"Open Sans":[400,500,600,700],Lato:[400,700],Poppins:[400,500,600,700],Montserrat:[400,500,600,700],Raleway:[400,500,600,700],Nunito:[400,500,600,700],"Playfair Display":[400,500,600,700],Merriweather:[400,700],"PT Sans":[400,700],Oswald:[400,500,600,700],"Source Sans Pro":[400,600,700],Rubik:[400,500,600,700],"Work Sans":[400,500,600,700],"Noto Sans":[400,500,600,700],"Titillium Web":[400,600,700],"Dancing Script":[400,500,600,700],Pacifico:[400],Lobster:[400],"Bebas Neue":[400],"Permanent Marker":[400],"Great Vibes":[400],"Libre Baskerville":[400,700],"EB Garamond":[400,500,700],Lora:[400,500,700]},Fb=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`};`${Object.entries(Db).map(([e,t])=>`family=${Fb(e,t)}`).join("&")}`;const Rs=pt.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));Rs.map(e=>e.css);const Hb=e=>e.replace(/"/g,'\\"'),Gb=e=>((e||"").split(",")[0]||"").replace(/['"]/g,"").trim().toLowerCase();new Set(pt.filter(e=>e.key!=="inherit").map(e=>Gb(e.value)));const Ti=pt.find(e=>e.key==="INTER");Ti&&Ti.value;Rs.map(e=>{const t=Hb(e.css);return`
85
85
  .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
86
86
  .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
87
87
  content: '${e.label}';
88
88
  font-family: ${e.css};
89
89
  }`}).join(`
90
- `);const oo=[{label:"10",px:10},{label:"12",px:12},{label:"14",px:14},{label:"16",px:16},{label:"18",px:18},{label:"20",px:20},{label:"22",px:22},{label:"24",px:24},{label:"26",px:26},{label:"28",px:28},{label:"30",px:30},{label:"32",px:32},{label:"36",px:36},{label:"40",px:40},{label:"44",px:44},{label:"48",px:48},{label:"52",px:52},{label:"56",px:56},{label:"60",px:60},{label:"64",px:64},{label:"72",px:72},{label:"76",px:76}],Hb={P:"Normal",DIV:"Normal",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6",BLOCKQUOTE:"Quote",PRE:"Code"};new Set(Object.keys(Hb));const Rs="@container ahd-page (min-width: 641px) and (max-width: 1024px)",Ns="@container ahd-page (max-width: 640px)";function Gb(){const e=oo.map(o=>`[data-fs-desktop="${o.px}"]{font-size:${o.px}px}`).join(`
91
- `),t=oo.map(o=>`[data-fs-tablet="${o.px}"]{font-size:${o.px}px !important}`).join(`
92
- `),n=oo.map(o=>`[data-fs-mobile="${o.px}"]{font-size:${o.px}px !important}`).join(`
93
- `);return[e,`${Bt}{${t}}`,`${Rs}{${t}}`,`${je}{${n}}`,`${Ns}{${n}}`].join(`
94
- `)}const _a=Gb(),Ub=new Set(oo.map(e=>e.px));function Wb(e){if(!e)return"";const t={desktop:new Set,tablet:new Set,mobile:new Set},n=/data-fs-(desktop|tablet|mobile)="(\d+)"/g;let o;for(;(o=n.exec(e))!==null;){const s=Number(o[2]);!Number.isFinite(s)||Ub.has(s)||t[o[1]].add(s)}const r=s=>Array.from(t[s]).map(c=>`[data-fs-${s}="${c}"]{font-size:${c}px${s==="desktop"?"":" !important"}}`).join(`
95
- `),i=r("desktop"),a=r("tablet"),l=r("mobile");return!i&&!a&&!l?"":[i,a&&`${Bt}{${a}}`,a&&`${Rs}{${a}}`,l&&`${je}{${l}}`,l&&`${Ns}{${l}}`].filter(Boolean).join(`
96
- `)}const Ti="ahd-responsive-font-size";function Zb(){if(typeof document>"u"||document.getElementById(Ti))return;const e=document.createElement("style");e.id=Ti,e.setAttribute("data-ahd-generated","responsive-font-size"),e.textContent=_a,document.head.appendChild(e)}Zb();const Vb=20;function qb(e){const t=[];t.push('ol[data-mll="decimal-dot"] { list-style-type: none; padding-inline-start: 32px; counter-reset: mll-1; }'),t.push('ol[data-mll="decimal-dot"] > li { counter-increment: mll-1; position: relative; }'),t.push('ol[data-mll="decimal-dot"] > li::before { content: counter(mll-1) "."; position: absolute; left: -32px; width: 24px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }');for(let n=2;n<=e;n++){const r=`ol[data-mll="decimal-dot"]${" ol".repeat(n-1)}`,i=[];for(let l=1;l<=n;l++)l>1&&i.push('"."'),i.push(`counter(mll-${l})`);const a=i.join(" ");n===2?(t.push(`${r} { list-style-type: none; counter-reset: mll-${n}; padding-inline-start: 44px; }`),t.push(`${r} > li { counter-increment: mll-${n}; position: relative; }`),t.push(`${r} > li::before { content: ${a}; position: absolute; right: calc(100% + 8px); white-space: nowrap; font-variant-numeric: tabular-nums; }`)):(t.push(`${r} { counter-reset: mll-${n}; padding-inline-start: 44px; }`),t.push(`${r} > li { counter-increment: mll-${n}; }`),t.push(`${r} > li::before { content: ${a}; right: calc(100% + 8px); white-space: nowrap; font-variant-numeric: tabular-nums; }`))}return t.join(`
97
- `)}const Yb=`
90
+ `);const ao=[{label:"10",px:10},{label:"12",px:12},{label:"14",px:14},{label:"16",px:16},{label:"18",px:18},{label:"20",px:20},{label:"22",px:22},{label:"24",px:24},{label:"26",px:26},{label:"28",px:28},{label:"30",px:30},{label:"32",px:32},{label:"36",px:36},{label:"40",px:40},{label:"44",px:44},{label:"48",px:48},{label:"52",px:52},{label:"56",px:56},{label:"60",px:60},{label:"64",px:64},{label:"72",px:72},{label:"76",px:76}],Ub={P:"Normal",DIV:"Normal",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6",BLOCKQUOTE:"Quote",PRE:"Code"};new Set(Object.keys(Ub));const Ns="@container ahd-page (min-width: 641px) and (max-width: 1024px)",Ts="@container ahd-page (max-width: 640px)";function Wb(){const e=ao.map(o=>`[data-fs-desktop="${o.px}"]{font-size:${o.px}px}`).join(`
91
+ `),t=ao.map(o=>`[data-fs-tablet="${o.px}"]{font-size:${o.px}px !important}`).join(`
92
+ `),n=ao.map(o=>`[data-fs-mobile="${o.px}"]{font-size:${o.px}px !important}`).join(`
93
+ `);return[e,`${Dt}{${t}}`,`${Ns}{${t}}`,`${De}{${n}}`,`${Ts}{${n}}`].join(`
94
+ `)}const Ca=Wb(),Zb=new Set(ao.map(e=>e.px));function Vb(e){if(!e)return"";const t={desktop:new Set,tablet:new Set,mobile:new Set},n=/data-fs-(desktop|tablet|mobile)="(\d+)"/g;let o;for(;(o=n.exec(e))!==null;){const s=Number(o[2]);!Number.isFinite(s)||Zb.has(s)||t[o[1]].add(s)}const r=s=>Array.from(t[s]).map(c=>`[data-fs-${s}="${c}"]{font-size:${c}px${s==="desktop"?"":" !important"}}`).join(`
95
+ `),i=r("desktop"),a=r("tablet"),l=r("mobile");return!i&&!a&&!l?"":[i,a&&`${Dt}{${a}}`,a&&`${Ns}{${a}}`,l&&`${De}{${l}}`,l&&`${Ts}{${l}}`].filter(Boolean).join(`
96
+ `)}const Ei="ahd-responsive-font-size";function qb(){if(typeof document>"u"||document.getElementById(Ei))return;const e=document.createElement("style");e.id=Ei,e.setAttribute("data-ahd-generated","responsive-font-size"),e.textContent=Ca,document.head.appendChild(e)}qb();const Yb=20;function Kb(e){const t=[];t.push('ol[data-mll="decimal-dot"] { list-style-type: none; padding-inline-start: 32px; counter-reset: mll-1; }'),t.push('ol[data-mll="decimal-dot"] > li { counter-increment: mll-1; position: relative; }'),t.push('ol[data-mll="decimal-dot"] > li::before { content: counter(mll-1) "."; position: absolute; left: -32px; width: 24px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }');for(let n=2;n<=e;n++){const r=`ol[data-mll="decimal-dot"]${" ol".repeat(n-1)}`,i=[];for(let l=1;l<=n;l++)l>1&&i.push('"."'),i.push(`counter(mll-${l})`);const a=i.join(" ");n===2?(t.push(`${r} { list-style-type: none; counter-reset: mll-${n}; padding-inline-start: 44px; }`),t.push(`${r} > li { counter-increment: mll-${n}; position: relative; }`),t.push(`${r} > li::before { content: ${a}; position: absolute; right: calc(100% + 8px); white-space: nowrap; font-variant-numeric: tabular-nums; }`)):(t.push(`${r} { counter-reset: mll-${n}; padding-inline-start: 44px; }`),t.push(`${r} > li { counter-increment: mll-${n}; }`),t.push(`${r} > li::before { content: ${a}; right: calc(100% + 8px); white-space: nowrap; font-variant-numeric: tabular-nums; }`))}return t.join(`
97
+ `)}const Jb=`
98
98
  /* Match the block's paragraph rhythm: this app zeros <p> margins via a
99
99
  .ahd-page-root p rule, so list items and nested lists must also carry
100
100
  zero vertical margin or the list feels double-spaced next to
@@ -154,7 +154,7 @@ ol[data-mll="decimal-paren"] ol ol ol > li::before { content: counter(mll-d) ")"
154
154
  buildDecimalDotCSS so arbitrary nesting depth (up to
155
155
  DECIMAL_DOT_MAX_LEVEL) renders the correctly concatenated marker
156
156
  instead of repeating the last-defined level's string. */
157
- ${qb(Vb)}
157
+ ${Kb(Yb)}
158
158
 
159
159
  /* ── list-style-type schemes: tight hanging indent similar to plain
160
160
  browser <ol> so the marker character sits close to the text. ────── */
@@ -188,62 +188,62 @@ ul[data-mll="bullet-arrow"] > li::before { content: "▸"; position: absolute; l
188
188
  ul[data-mll="bullet-arrow"] ul { list-style-type: none; }
189
189
  ul[data-mll="bullet-arrow"] ul > li::before { content: "◦"; }
190
190
  ul[data-mll="bullet-arrow"] ul ul > li::before { content: "▪"; }
191
- `,Kb=N(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function Jb(e){switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}const Xb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Qb=$().regex(/^rgba?\([^\)]+\)$/i),e0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),t0=oe("transparent"),Ei=D([Xb,Qb,e0,t0]).nullable().optional(),n0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),o0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),r0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,a0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,i0=A({style:A({color:Ei,backgroundColor:Ei,fontSize:m().gte(0).optional().nullable(),lineClamp:m().int().gte(0).optional().nullable(),fontFamily:Kb,fontWeight:N(["bold","normal",...ga]).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),padding:n0,margin:o0}).optional().nullable(),props:A({text:$().optional().nullable(),editorType:N(["summernote","quill"]).optional().nullable(),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable()}).optional().nullable()}),l0={text:""};function s0({style:e,props:t}){const n=e==null?void 0:e.lineClamp,o=n&&n>0?{display:"-webkit-box",WebkitLineClamp:n,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},r=(e==null?void 0:e.color)??void 0,i=xa(r),a=j(r),l=j(e==null?void 0:e.backgroundColor),s={...i?{backgroundImage:a,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"}:{color:a},background:i?void 0:l??void 0,fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:Jb(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:r0(e==null?void 0:e.padding),margin:a0(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word"},c=o,u=Zm(vs((t==null?void 0:t.text)??l0.text));return g.jsxs("div",{className:"text-block",style:s,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:`.text-block ul,.text-block ol{margin-block-start:0;margin-block-end:0;padding-inline-start:revert}.text-block li{display:list-item}
191
+ `,Xb=N(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function Qb(e){switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}const e0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),t0=$().regex(/^rgba?\([^\)]+\)$/i),n0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),o0=se("transparent"),Mi=G([e0,t0,n0,o0]).nullable().optional(),r0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),a0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),i0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,l0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,s0=A({style:A({color:Mi,backgroundColor:Mi,fontSize:m().gte(0).optional().nullable(),lineClamp:m().int().gte(0).optional().nullable(),fontFamily:Xb,fontWeight:N(["bold","normal",...xa]).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),padding:r0,margin:a0}).optional().nullable(),props:A({text:$().optional().nullable(),editorType:N(["summernote","quill"]).optional().nullable(),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable()}).optional().nullable()}),c0={text:""};function u0({style:e,props:t}){const n=e==null?void 0:e.lineClamp,o=n&&n>0?{display:"-webkit-box",WebkitLineClamp:n,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},r=(e==null?void 0:e.color)??void 0,i=Sa(r),a=z(r),l=z(e==null?void 0:e.backgroundColor),s={...i?{backgroundImage:a,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"}:{color:a},background:i?void 0:l??void 0,fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:Qb(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:i0(e==null?void 0:e.padding),margin:l0(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word"},c=o,u=qm(Ss((t==null?void 0:t.text)??c0.text));return g.jsxs("div",{className:"text-block",style:s,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:`.text-block ul,.text-block ol{margin-block-start:0;margin-block-end:0;padding-inline-start:revert}.text-block li{display:list-item}
192
192
  .text-block a{color:#2563eb;color:light-dark(#2563eb,#7ab0ff);text-decoration:underline}/* keep in sync with LINK_COLOR (editor-sample InlineTextToolbar/types.ts) */
193
193
  .text-block pre,.text-block code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}
194
- ${Yb}
195
- ${_a}
196
- ${Wb(u)}`}}),g.jsx("div",{style:c,dangerouslySetInnerHTML:{__html:u}})]})}const c0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),u0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),d0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,h0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,f0=A({style:A({padding:c0,margin:u0,backgroundColor:$().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:N(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:m().optional().nullable(),height:m().optional().nullable(),widthTablet:D([m(),$()]).optional().nullable(),widthMobile:D([m(),$()]).optional().nullable(),heightTablet:D([m(),$()]).optional().nullable(),heightMobile:D([m(),$()]).optional().nullable(),url:$().optional().nullable(),alt:$().optional().nullable(),linkHref:$().optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable()}).optional().nullable()});let m0=0;function p0({style:e,props:t}){const n=`ahd-youtube-url-${++m0}`,o={padding:d0(e==null?void 0:e.padding),margin:h0(e==null?void 0:e.margin),backgroundColor:j(e==null?void 0:e.backgroundColor),textAlign:(e==null?void 0:e.textAlign)??void 0},r=(t==null?void 0:t.linkHref)??null,i=(t==null?void 0:t.width)??void 0,a=(t==null?void 0:t.height)??void 0,l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,c=(t==null?void 0:t.heightTablet)??null,u=(t==null?void 0:t.heightMobile)??null,h=l??i,d=s??h,f=c??a,p=u??f,b=i,x=a,v=w=>w==null?void 0:typeof w=="number"?`${w}px`:w,S=`
197
- ${ft} { .${n} video { ${v(h)?`width: ${v(h)} !important;`:""} ${v(f)?`height: ${v(f)} !important;`:""} max-width: 100% !important; } }
198
- ${je} { .${n} video { ${v(d)?`width: ${v(d)} !important;`:""} ${v(p)?`height: ${v(p)} !important;`:""} max-width: 100% !important; } }
199
- `.trim(),k=g.jsx("video",{controls:!0,preload:"metadata","aria-label":(t==null?void 0:t.alt)??void 0,src:(t==null?void 0:t.url)??"",width:b,height:x,style:{width:b,height:x,outline:"none",border:"none",textDecoration:"none",verticalAlign:(t==null?void 0:t.contentAlignment)??"middle",display:"inline-block",maxWidth:"100%"}});return r?g.jsxs("div",{className:`youtube-url-block ${n}`,style:o,children:[S&&g.jsx("style",{dangerouslySetInnerHTML:{__html:S}}),g.jsx("a",{href:r,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:k})]}):g.jsxs("div",{className:`youtube-url-block ${n}`,style:o,children:[S&&g.jsx("style",{dangerouslySetInnerHTML:{__html:S}}),k]})}const g0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),b0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),x0=A({responsive:Ge,style:A({padding:g0,margin:b0,textAlign:N(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({src:$().optional().nullable(),width:$().optional().nullable(),height:$().optional().nullable(),title:$().optional().nullable(),allowFullscreen:O().optional().nullable()}).optional().nullable()}),v0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,S0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function w0({style:e,props:t}){var d,f;const n=(t==null?void 0:t.src)??"",o=(t==null?void 0:t.width)??"100%",r=t==null?void 0:t.height,i=!r||/^\s*(0|0px|100vh)\s*$/i.test(r)?"800px":r,a=(t==null?void 0:t.title)??"Embedded content",l=(t==null?void 0:t.allowFullscreen)??!0,s=U.useRef(null),c=(((d=e==null?void 0:e.margin)==null?void 0:d.left)??0)+(((f=e==null?void 0:e.margin)==null?void 0:f.right)??0),u={padding:v0(e==null?void 0:e.padding),margin:S0(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:`calc(100% - ${c}px)`},h={width:`var(--ahd-iframe-width,${o})`,height:`var(--ahd-iframe-height,${i})`,minHeight:`var(--ahd-iframe-height,${i})`,border:"none",display:"inline-block",verticalAlign:"top"};return n?g.jsx("div",{className:"iframe-block",style:u,children:g.jsx("iframe",{ref:s,src:n,title:a,style:h,allowFullScreen:l})}):g.jsx("div",{className:"iframe-block",style:{...u,backgroundColor:"#F5F5F5",padding:"24px",textAlign:"center",color:"#888",fontSize:"14px"},children:"IFrame — enter a URL in the panel"})}const $0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),k0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),_0=A({responsive:Ge,style:A({padding:$0,margin:k0,textAlign:N(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({src:$().optional().nullable(),width:$().optional().nullable(),height:$().optional().nullable(),title:$().optional().nullable(),allowFullscreen:O().optional().nullable()}).optional().nullable()}),C0=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},A0=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},y0=({props:e,style:t})=>{var u,h;const{src:n,width:o,height:r,title:i,allowFullscreen:a=!0}=e??{};if(!n)return g.jsx(g.Fragment,{});const l=(((u=t==null?void 0:t.margin)==null?void 0:u.left)??0)+(((h=t==null?void 0:t.margin)==null?void 0:h.right)??0),s=t??{},c={width:`calc(100% - ${l}px)`,padding:C0(s.padding),margin:A0(s.margin),textAlign:s.textAlign||void 0};return g.jsx("div",{className:"calendly-block",style:c,children:g.jsx("iframe",{src:n,title:i||"Calendly scheduling",allowFullScreen:a??!0,style:{width:`var(--ahd-calendly-width,${o||"100%"})`,height:`var(--ahd-calendly-height,${r||"800px"})`,border:"none",display:"inline-block",verticalAlign:"top"},loading:"lazy"})})};var I0=Object.defineProperty,Mi=Object.getOwnPropertySymbols,R0=Object.prototype.hasOwnProperty,N0=Object.prototype.propertyIsEnumerable,Pi=(e,t,n)=>t in e?I0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T0=(e,t)=>{for(var n in t||(t={}))R0.call(t,n)&&Pi(e,n,t[n]);if(Mi)for(var n of Mi(t))N0.call(t,n)&&Pi(e,n,t[n]);return e};function E0(e){return function({type:n,data:o}){const r=e[n].Component;return U.createElement(r,T0({},o))}}function M0(e){const t=Object.keys(e).map(n=>A({type:oe(n),data:e[n].schema}));return nm("type",t).transform(n=>n)}const P0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),O0=$().regex(/^rgba?\([^\)]+\)$/i),L0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),z0=oe("transparent"),j0=D([P0,O0,L0,z0]).nullable().optional(),B0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),D0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Bo=us([m().optional().nullish(),m().optional().nullish(),m().optional().nullish(),m().optional().nullish(),m().optional().nullish()]).optional().nullable(),Do=N(["fixed","fill","fit"]).optional().nullable(),F0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,H0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ts=A({style:A({backgroundColor:j0,padding:B0,margin:D0}).optional().nullable(),props:A({widthType:Do,widthTypeTablet:Do,widthTypeMobile:Do,fixedWidths:Bo,fixedWidthsTablet:Bo,fixedWidthsMobile:Bo,columnsCount:D([oe(2),oe(3),oe(4),oe(5)]).optional().nullable(),columnsGap:m().optional().nullable(),columnsGapTablet:m().optional().nullable(),columnsGapMobile:m().optional().nullable(),columnsDirection:N(["horizontal","vertical"]).optional().nullable(),columnsDirectionTablet:N(["horizontal","vertical"]).optional().nullable(),columnsDirectionMobile:N(["horizontal","vertical"]).optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable(),contentAlignmentTablet:N(["top","middle","bottom"]).optional().nullable(),contentAlignmentMobile:N(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),Lt={columnsCount:2,columnsGap:0,columnsDirection:"horizontal",contentAlignment:"middle",widthType:"fill"};function Oi(e){return`${e} table, ${e} tbody, ${e} tr, ${e} td { display: block !important; width: 100% !important; }
194
+ ${Jb}
195
+ ${Ca}
196
+ ${Vb(u)}`}}),g.jsx("div",{style:c,dangerouslySetInnerHTML:{__html:u}})]})}const d0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),h0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),f0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,m0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,p0=A({style:A({padding:d0,margin:h0,backgroundColor:$().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:N(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:m().optional().nullable(),height:m().optional().nullable(),widthTablet:G([m(),$()]).optional().nullable(),widthMobile:G([m(),$()]).optional().nullable(),heightTablet:G([m(),$()]).optional().nullable(),heightMobile:G([m(),$()]).optional().nullable(),url:$().optional().nullable(),alt:$().optional().nullable(),linkHref:$().optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable()}).optional().nullable()});let g0=0;function b0({style:e,props:t}){const n=`ahd-youtube-url-${++g0}`,o={padding:f0(e==null?void 0:e.padding),margin:m0(e==null?void 0:e.margin),backgroundColor:z(e==null?void 0:e.backgroundColor),textAlign:(e==null?void 0:e.textAlign)??void 0},r=(t==null?void 0:t.linkHref)??null,i=(t==null?void 0:t.width)??void 0,a=(t==null?void 0:t.height)??void 0,l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,c=(t==null?void 0:t.heightTablet)??null,u=(t==null?void 0:t.heightMobile)??null,h=l??i,d=s??h,f=c??a,p=u??f,b=i,x=a,w=v=>v==null?void 0:typeof v=="number"?`${v}px`:v,S=`
197
+ ${ft} { .${n} video { ${w(h)?`width: ${w(h)} !important;`:""} ${w(f)?`height: ${w(f)} !important;`:""} max-width: 100% !important; } }
198
+ ${De} { .${n} video { ${w(d)?`width: ${w(d)} !important;`:""} ${w(p)?`height: ${w(p)} !important;`:""} max-width: 100% !important; } }
199
+ `.trim(),k=g.jsx("video",{controls:!0,preload:"metadata","aria-label":(t==null?void 0:t.alt)??void 0,src:(t==null?void 0:t.url)??"",width:b,height:x,style:{width:b,height:x,outline:"none",border:"none",textDecoration:"none",verticalAlign:(t==null?void 0:t.contentAlignment)??"middle",display:"inline-block",maxWidth:"100%"}});return r?g.jsxs("div",{className:`youtube-url-block ${n}`,style:o,children:[S&&g.jsx("style",{dangerouslySetInnerHTML:{__html:S}}),g.jsx("a",{href:r,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:k})]}):g.jsxs("div",{className:`youtube-url-block ${n}`,style:o,children:[S&&g.jsx("style",{dangerouslySetInnerHTML:{__html:S}}),k]})}const x0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),v0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),S0=A({responsive:We,style:A({padding:x0,margin:v0,textAlign:N(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({src:$().optional().nullable(),width:$().optional().nullable(),height:$().optional().nullable(),title:$().optional().nullable(),allowFullscreen:L().optional().nullable()}).optional().nullable()}),w0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,$0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function k0({style:e,props:t}){var d,f;const n=(t==null?void 0:t.src)??"",o=(t==null?void 0:t.width)??"100%",r=t==null?void 0:t.height,i=!r||/^\s*(0|0px|100vh)\s*$/i.test(r)?"800px":r,a=(t==null?void 0:t.title)??"Embedded content",l=(t==null?void 0:t.allowFullscreen)??!0,s=Z.useRef(null),c=(((d=e==null?void 0:e.margin)==null?void 0:d.left)??0)+(((f=e==null?void 0:e.margin)==null?void 0:f.right)??0),u={padding:w0(e==null?void 0:e.padding),margin:$0(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:`calc(100% - ${c}px)`},h={width:`var(--ahd-iframe-width,${o})`,height:`var(--ahd-iframe-height,${i})`,minHeight:`var(--ahd-iframe-height,${i})`,border:"none",display:"inline-block",verticalAlign:"top"};return n?g.jsx("div",{className:"iframe-block",style:u,children:g.jsx("iframe",{ref:s,src:n,title:a,style:h,allowFullScreen:l})}):g.jsx("div",{className:"iframe-block",style:{...u,backgroundColor:"#F5F5F5",padding:"24px",textAlign:"center",color:"#888",fontSize:"14px"},children:"IFrame — enter a URL in the panel"})}const _0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),C0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),A0=A({responsive:We,style:A({padding:_0,margin:C0,textAlign:N(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({src:$().optional().nullable(),width:$().optional().nullable(),height:$().optional().nullable(),title:$().optional().nullable(),allowFullscreen:L().optional().nullable()}).optional().nullable()}),y0=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},I0=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},R0=({props:e,style:t})=>{var u,h;const{src:n,width:o,height:r,title:i,allowFullscreen:a=!0}=e??{};if(!n)return g.jsx(g.Fragment,{});const l=(((u=t==null?void 0:t.margin)==null?void 0:u.left)??0)+(((h=t==null?void 0:t.margin)==null?void 0:h.right)??0),s=t??{},c={width:`calc(100% - ${l}px)`,padding:y0(s.padding),margin:I0(s.margin),textAlign:s.textAlign||void 0};return g.jsx("div",{className:"calendly-block",style:c,children:g.jsx("iframe",{src:n,title:i||"Calendly scheduling",allowFullScreen:a??!0,style:{width:`var(--ahd-calendly-width,${o||"100%"})`,height:`var(--ahd-calendly-height,${r||"800px"})`,border:"none",display:"inline-block",verticalAlign:"top"},loading:"lazy"})})};var N0=Object.defineProperty,Pi=Object.getOwnPropertySymbols,T0=Object.prototype.hasOwnProperty,E0=Object.prototype.propertyIsEnumerable,Oi=(e,t,n)=>t in e?N0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M0=(e,t)=>{for(var n in t||(t={}))T0.call(t,n)&&Oi(e,n,t[n]);if(Pi)for(var n of Pi(t))E0.call(t,n)&&Oi(e,n,t[n]);return e};function P0(e){return function({type:n,data:o}){const r=e[n].Component;return Z.createElement(r,M0({},o))}}function O0(e){const t=Object.keys(e).map(n=>A({type:se(n),data:e[n].schema}));return om("type",t).transform(n=>n)}const L0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),z0=$().regex(/^rgba?\([^\)]+\)$/i),j0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),B0=se("transparent"),D0=G([L0,z0,j0,B0]).nullable().optional(),F0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),H0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Fo=ds([m().optional().nullish(),m().optional().nullish(),m().optional().nullish(),m().optional().nullish(),m().optional().nullish()]).optional().nullable(),Ho=N(["fixed","fill","fit"]).optional().nullable(),G0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,U0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Es=A({style:A({backgroundColor:D0,padding:F0,margin:H0}).optional().nullable(),props:A({widthType:Ho,widthTypeTablet:Ho,widthTypeMobile:Ho,fixedWidths:Fo,fixedWidthsTablet:Fo,fixedWidthsMobile:Fo,columnsCount:G([se(2),se(3),se(4),se(5)]).optional().nullable(),columnsGap:m().optional().nullable(),columnsGapTablet:m().optional().nullable(),columnsGapMobile:m().optional().nullable(),columnsDirection:N(["horizontal","vertical"]).optional().nullable(),columnsDirectionTablet:N(["horizontal","vertical"]).optional().nullable(),columnsDirectionMobile:N(["horizontal","vertical"]).optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable(),contentAlignmentTablet:N(["top","middle","bottom"]).optional().nullable(),contentAlignmentMobile:N(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),Lt={columnsCount:2,columnsGap:0,columnsDirection:"horizontal",contentAlignment:"middle",widthType:"fill"};function Li(e){return`${e} table, ${e} tbody, ${e} tr, ${e} td { display: block !important; width: 100% !important; }
200
200
  ${e} table { table-layout: auto !important; }
201
201
  ${e} td { box-sizing: border-box; padding-left: 0 !important; padding-right: 0 !important; vertical-align: top !important; }
202
- ${e} td + td { margin-top: var(--columns-gap, 0px) !important; }`}function Li(e){return`${e} table { display: table !important; table-layout: fixed !important; }
202
+ ${e} td + td { margin-top: var(--columns-gap, 0px) !important; }`}function zi(e){return`${e} table { display: table !important; table-layout: fixed !important; }
203
203
  ${e} tbody { display: table-row-group !important; }
204
204
  ${e} tr { display: table-row !important; width: auto !important; }
205
205
  ${e} td { display: table-cell !important; width: auto !important; }
206
- ${e} td + td { margin-top: 0 !important; }`}function zi(e,t,n,o,r,i){const a=[];for(let l=0;l<t;l+=1){const s=`${e} td:nth-child(${l+1})`,c=l===0?0:n/2,u=l===t-1?0:n/2,h=[`padding-left: ${c}px !important`,`padding-right: ${u}px !important`];o==="fixed"&&(r==null?void 0:r[l])!=null?h.push(`width: ${r[l]}px !important`):h.push("width: auto !important"),a.push(`${s} { ${h.join("; ")}; }`)}return a.join(`
207
- `)}function G0(e,t){const n=`.${e}.columns-container`,o=(r,i)=>!i&&r?`${n} td { vertical-align: ${r} !important; }`:"";return`
208
- @media (max-width: ${Pe}px) {
206
+ ${e} td + td { margin-top: 0 !important; }`}function ji(e,t,n,o,r,i){const a=[];for(let l=0;l<t;l+=1){const s=`${e} td:nth-child(${l+1})`,c=l===0?0:n/2,u=l===t-1?0:n/2,h=[`padding-left: ${c}px !important`,`padding-right: ${u}px !important`];o==="fixed"&&(r==null?void 0:r[l])!=null?h.push(`width: ${r[l]}px !important`):h.push("width: auto !important"),a.push(`${s} { ${h.join("; ")}; }`)}return a.join(`
207
+ `)}function W0(e,t){const n=`.${e}.columns-container`,o=(r,i)=>!i&&r?`${n} td { vertical-align: ${r} !important; }`:"";return`
208
+ @media (max-width: ${Oe}px) {
209
209
  ${n} { --columns-gap: ${t.tabletGap}px; }
210
- ${t.tabletVertical?Oi(n):Li(n)}
211
- ${t.tabletVertical?"":zi(n,t.columnsCount,t.tabletGap,t.tabletWidthType,t.tabletFixedWidths)}
210
+ ${t.tabletVertical?Li(n):zi(n)}
211
+ ${t.tabletVertical?"":ji(n,t.columnsCount,t.tabletGap,t.tabletWidthType,t.tabletFixedWidths)}
212
212
  ${o(t.tabletAlign,t.tabletVertical)}
213
213
  }
214
- @media (max-width: ${Oe}px) {
214
+ @media (max-width: ${Le}px) {
215
215
  ${n} { --columns-gap: ${t.mobileGap}px; }
216
- ${t.mobileVertical?Oi(n):Li(n)}
217
- ${t.mobileVertical?"":zi(n,t.columnsCount,t.mobileGap,t.mobileWidthType,t.mobileFixedWidths)}
216
+ ${t.mobileVertical?Li(n):zi(n)}
217
+ ${t.mobileVertical?"":ji(n,t.columnsCount,t.mobileGap,t.mobileWidthType,t.mobileFixedWidths)}
218
218
  ${o(t.mobileAlign,t.mobileVertical)}
219
219
  }
220
- `.trim()}let U0=0;function W0({style:e,columns:t,props:n}){const o=(n==null?void 0:n.widthType)??Lt.widthType,r=(n==null?void 0:n.widthTypeTablet)??o,i=(n==null?void 0:n.widthTypeMobile)??r,a=n==null?void 0:n.fixedWidths,l=(n==null?void 0:n.fixedWidthsTablet)??a,s=(n==null?void 0:n.fixedWidthsMobile)??l,c=(n==null?void 0:n.columnsGap)??Lt.columnsGap,u=(n==null?void 0:n.columnsGapTablet)??c,h=(n==null?void 0:n.columnsGapMobile)??u,d=(n==null?void 0:n.columnsDirection)??Lt.columnsDirection,f=(n==null?void 0:n.columnsDirectionTablet)??d,p=(n==null?void 0:n.columnsDirectionMobile)??f,b=(n==null?void 0:n.contentAlignment)??Lt.contentAlignment,x=(n==null?void 0:n.contentAlignmentTablet)??b,v=(n==null?void 0:n.contentAlignmentMobile)??x,S=(n==null?void 0:n.columnsCount)??Lt.columnsCount,k=o,w=a,C=c,y=d,I={widthType:k,columnsCount:S,columnsGap:C,columnsDirection:y,contentAlignment:b,fixedWidths:w},R=y==="vertical",T=U.useMemo(()=>`ahd-cc-${U0+=1}`,[]),P=G0(T,{tabletVertical:f==="vertical",mobileVertical:p==="vertical",columnsCount:S,tabletGap:u,mobileGap:h,tabletWidthType:r,mobileWidthType:i,tabletFixedWidths:l,mobileFixedWidths:s,tabletAlign:x,mobileAlign:v}),M={background:j(e==null?void 0:e.backgroundColor),padding:F0(e==null?void 0:e.padding),margin:H0(e==null?void 0:e.margin),"--columns-gap":`${C}px`};return g.jsxs("div",{className:`columns-container ${T}${R?" is-stacked":""}`,style:M,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:P}}),g.jsx("table",{role:"presentation","aria-hidden":"false",align:"center",width:"100%",cellPadding:"0",border:0,style:{tableLayout:R||k==="fit"?"auto":"fixed",borderCollapse:"collapse",...R?{display:"block",width:"100%"}:{}},children:g.jsx("tbody",{style:{width:"100%",...R?{display:"block"}:{}},children:g.jsxs("tr",{style:{width:"100%",...R?{display:"block"}:{}},children:[g.jsx(mn,{index:0,props:I,columns:t}),g.jsx(mn,{index:1,props:I,columns:t}),g.jsx(mn,{index:2,props:I,columns:t}),g.jsx(mn,{index:3,props:I,columns:t}),g.jsx(mn,{index:4,props:I,columns:t})]})})})]})}function mn({index:e,props:t,columns:n}){var h;const o=(t==null?void 0:t.columnsCount)??Lt.columnsCount;if(e>=o)return null;const r=t.columnsDirection==="vertical",i=r?0:Z0(e,t),a=r?0:V0(e,t),l=(h=t.fixedWidths)==null?void 0:h[e],s={boxSizing:r?"border-box":"content-box",verticalAlign:r?"top":(t==null?void 0:t.contentAlignment)??Lt.contentAlignment,paddingLeft:i?`${i}px`:0,paddingRight:a?`${a}px`:0,width:t.widthType==="fixed"&&!r&&l!=null?`${l}px`:void 0,...r?{display:"block",width:"100%",marginTop:e>0?`${t.columnsGap}px`:void 0}:{}},c=(n==null?void 0:n[e])??null,u=t.widthType==="fixed"&&l!=null?l:void 0;return g.jsx("td",{style:s,width:u,children:c})}function Z0(e,{columnsGap:t}){return e===0?0:t/2}function V0(e,{columnsGap:t,columnsCount:n}){return e===n-1?0:t/2}const q0=Ts.shape.props.unwrap().unwrap().shape,Y0=Ts.shape.style.unwrap().unwrap().shape,K0=A({style:A({...Y0,borderRadius:D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({...q0,columns:us([A({childrenIds:te($())}),A({childrenIds:te($())}),A({childrenIds:te($())})])}).optional().nullable()});function J0(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function X0({style:e,props:t}){const{columns:n,...o}=t??{};let r;n&&(r=n.map(d=>((d==null?void 0:d.childrenIds)??[]).map(f=>g.jsx(Ae,{id:f},f))));const{borderRadius:i,borderColor:a,borderWidth:l,...s}=e??{},c={};if(i!=null&&(c.borderRadius=J0(i)),a){const d=l??{top:1,right:1,bottom:1,left:1};c.borderStyle="solid",c.borderColor=a,c.borderWidth=`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`}c.overflow="hidden";const u=i!=null||!!a,h=g.jsx(W0,{props:o,columns:r,style:s});return u?g.jsx("div",{style:c,children:h}):g.jsx(g.Fragment,{children:h})}const Q0=A({style:A({backgroundColor:$().optional().nullable(),padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),borderRadius:D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({columnsCount:m().int().min(2).optional().nullable(),columnsGap:m().optional().nullable(),columnsGapTablet:m().optional().nullable(),columnsGapMobile:m().optional().nullable(),wrap:O().optional().nullable(),desktopLayout:N(["wrap","row"]).optional().nullable(),mobileLayout:N(["wrap","row"]).optional().nullable(),tabletLayout:N(["wrap","row"]).optional().nullable(),columnShrink:te(O()).optional().nullable(),columnShrinkTablet:te(O()).optional().nullable(),columnShrinkMobile:te(O()).optional().nullable(),equalColumns:O().optional().nullable(),columns:te(A({childrenIds:te($())})).optional().nullable(),align:N(["flex-start","center","flex-end","stretch"]).optional().nullable(),justify:N(["flex-start","center","flex-end","space-between","space-around"]).optional().nullable(),reverseColumns:O().optional().nullable(),repeatableEnabled:O().optional().nullable()}).optional().nullable()});function ex(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function tx(e){var r,i;const t=e??{},n=(((r=t.margin)==null?void 0:r.left)??0)+(((i=t.margin)==null?void 0:i.right)??0),o={boxSizing:"border-box",width:n>0?`calc(100% - ${n}px)`:"100%"};if(t.backgroundColor&&(o.backgroundColor=t.backgroundColor),t.padding){const a=t.padding;o.padding=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}if(t.margin){const a=t.margin;o.margin=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}if(t.borderRadius!=null&&(o.borderRadius=ex(t.borderRadius),o.overflow="hidden"),t.borderColor){const a=t.borderWidth??{top:1,right:1,bottom:1,left:1};o.borderStyle="solid",o.borderColor=t.borderColor,o.borderWidth=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}return o}function Fo(e,t,n){const o=e??{},r=o.desktopLayout??(o.wrap?"wrap":"row"),i=o.tabletLayout??r,a=o.mobileLayout??"wrap",l=o.columnShrink??[],s=o.columnShrinkTablet??l,c=o.columnShrinkMobile??s,u=o.columnsGap??16,h=o.columnsGapTablet??u,d=o.columnsGapMobile??h,f={desktop:{layout:r,shrink:l,gap:u},tablet:{layout:i,shrink:s,gap:h},mobile:{layout:a,shrink:c,gap:d}}[t];return{layout:f.layout,gap:f.gap,shrink:Array.from({length:n},(p,b)=>f.shrink[b]===!0),equalColumns:o.equalColumns===!0,reverseColumns:o.reverseColumns===!0}}function nx(e){switch(e){case"shrink":return"flex: 0 0 auto; width: auto;";case"equal":return"flex: 1 1 0; width: 0;";default:return"flex: 1 1 auto; width: auto;"}}function ox(e,{shrink:t,equalColumns:n}){return t[e]?"shrink":n?"equal":"plain"}function Ho(e,t,n,o){const{layout:r,reverseColumns:i,gap:a}=n,l=d=>d.map(f=>`${t}:nth-child(${f+1})`).join(", "),s=Array.from({length:o},(d,f)=>f);if(r==="wrap")return[`${e} { flex-direction: column; flex-wrap: nowrap; gap: ${a}px; }`,`${l(s)} { flex: 0 0 100%; width: 100%; max-width: 100%; }`].join(`
221
- `);const u=[`${e} { flex-direction: ${i?"row-reverse":"row"}; flex-wrap: nowrap; gap: ${a}px; }`],h=new Map;for(const d of s){const f=ox(d,n);h.set(f,[...h.get(f)??[],d])}for(const[d,f]of h)u.push(`${l(f)} { ${nx(d)} max-width: 100%; }`);return u.join(`
222
- `)}function rx(e,t){const{columnsCount:n,desktop:o,tablet:r,mobile:i}=t,a=`.${e}.flex-columns-block > .fc-row`,l=`${a} > .fc-col`,s=[`${a} { display: flex; width: 100%; box-sizing: border-box; }`,`${l} { min-width: 0; box-sizing: border-box; }`,`${l} > * { max-width: 100%; }`,`${l} img { max-width: 100%; height: auto; }`].join(`
220
+ `.trim()}let Z0=0;function V0({style:e,columns:t,props:n}){const o=(n==null?void 0:n.widthType)??Lt.widthType,r=(n==null?void 0:n.widthTypeTablet)??o,i=(n==null?void 0:n.widthTypeMobile)??r,a=n==null?void 0:n.fixedWidths,l=(n==null?void 0:n.fixedWidthsTablet)??a,s=(n==null?void 0:n.fixedWidthsMobile)??l,c=(n==null?void 0:n.columnsGap)??Lt.columnsGap,u=(n==null?void 0:n.columnsGapTablet)??c,h=(n==null?void 0:n.columnsGapMobile)??u,d=(n==null?void 0:n.columnsDirection)??Lt.columnsDirection,f=(n==null?void 0:n.columnsDirectionTablet)??d,p=(n==null?void 0:n.columnsDirectionMobile)??f,b=(n==null?void 0:n.contentAlignment)??Lt.contentAlignment,x=(n==null?void 0:n.contentAlignmentTablet)??b,w=(n==null?void 0:n.contentAlignmentMobile)??x,S=(n==null?void 0:n.columnsCount)??Lt.columnsCount,k=o,v=a,_=c,y=d,I={widthType:k,columnsCount:S,columnsGap:_,columnsDirection:y,contentAlignment:b,fixedWidths:v},R=y==="vertical",E=Z.useMemo(()=>`ahd-cc-${Z0+=1}`,[]),P=W0(E,{tabletVertical:f==="vertical",mobileVertical:p==="vertical",columnsCount:S,tabletGap:u,mobileGap:h,tabletWidthType:r,mobileWidthType:i,tabletFixedWidths:l,mobileFixedWidths:s,tabletAlign:x,mobileAlign:w}),M={background:z(e==null?void 0:e.backgroundColor),padding:G0(e==null?void 0:e.padding),margin:U0(e==null?void 0:e.margin),"--columns-gap":`${_}px`};return g.jsxs("div",{className:`columns-container ${E}${R?" is-stacked":""}`,style:M,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:P}}),g.jsx("table",{role:"presentation","aria-hidden":"false",align:"center",width:"100%",cellPadding:"0",border:0,style:{tableLayout:R||k==="fit"?"auto":"fixed",borderCollapse:"collapse",...R?{display:"block",width:"100%"}:{}},children:g.jsx("tbody",{style:{width:"100%",...R?{display:"block"}:{}},children:g.jsxs("tr",{style:{width:"100%",...R?{display:"block"}:{}},children:[g.jsx(pn,{index:0,props:I,columns:t}),g.jsx(pn,{index:1,props:I,columns:t}),g.jsx(pn,{index:2,props:I,columns:t}),g.jsx(pn,{index:3,props:I,columns:t}),g.jsx(pn,{index:4,props:I,columns:t})]})})})]})}function pn({index:e,props:t,columns:n}){var h;const o=(t==null?void 0:t.columnsCount)??Lt.columnsCount;if(e>=o)return null;const r=t.columnsDirection==="vertical",i=r?0:q0(e,t),a=r?0:Y0(e,t),l=(h=t.fixedWidths)==null?void 0:h[e],s={boxSizing:r?"border-box":"content-box",verticalAlign:r?"top":(t==null?void 0:t.contentAlignment)??Lt.contentAlignment,paddingLeft:i?`${i}px`:0,paddingRight:a?`${a}px`:0,width:t.widthType==="fixed"&&!r&&l!=null?`${l}px`:void 0,...r?{display:"block",width:"100%",marginTop:e>0?`${t.columnsGap}px`:void 0}:{}},c=(n==null?void 0:n[e])??null,u=t.widthType==="fixed"&&l!=null?l:void 0;return g.jsx("td",{style:s,width:u,children:c})}function q0(e,{columnsGap:t}){return e===0?0:t/2}function Y0(e,{columnsGap:t,columnsCount:n}){return e===n-1?0:t/2}const K0=Es.shape.props.unwrap().unwrap().shape,J0=Es.shape.style.unwrap().unwrap().shape,X0=A({style:A({...J0,borderRadius:G([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({...K0,columns:ds([A({childrenIds:ne($())}),A({childrenIds:ne($())}),A({childrenIds:ne($())})])}).optional().nullable()});function Q0(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function ex({style:e,props:t}){const{columns:n,...o}=t??{};let r;n&&(r=n.map(d=>((d==null?void 0:d.childrenIds)??[]).map(f=>g.jsx(Re,{id:f},f))));const{borderRadius:i,borderColor:a,borderWidth:l,...s}=e??{},c={};if(i!=null&&(c.borderRadius=Q0(i)),a){const d=l??{top:1,right:1,bottom:1,left:1};c.borderStyle="solid",c.borderColor=a,c.borderWidth=`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`}c.overflow="hidden";const u=i!=null||!!a,h=g.jsx(V0,{props:o,columns:r,style:s});return u?g.jsx("div",{style:c,children:h}):g.jsx(g.Fragment,{children:h})}const tx=A({style:A({backgroundColor:$().optional().nullable(),padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),borderRadius:G([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({columnsCount:m().int().min(2).optional().nullable(),columnsGap:m().optional().nullable(),columnsGapTablet:m().optional().nullable(),columnsGapMobile:m().optional().nullable(),wrap:L().optional().nullable(),desktopLayout:N(["wrap","row"]).optional().nullable(),mobileLayout:N(["wrap","row"]).optional().nullable(),tabletLayout:N(["wrap","row"]).optional().nullable(),columnShrink:ne(L()).optional().nullable(),columnShrinkTablet:ne(L()).optional().nullable(),columnShrinkMobile:ne(L()).optional().nullable(),equalColumns:L().optional().nullable(),columns:ne(A({childrenIds:ne($())})).optional().nullable(),align:N(["flex-start","center","flex-end","stretch"]).optional().nullable(),justify:N(["flex-start","center","flex-end","space-between","space-around"]).optional().nullable(),reverseColumns:L().optional().nullable(),repeatableEnabled:L().optional().nullable()}).optional().nullable()});function nx(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function ox(e){var r,i;const t=e??{},n=(((r=t.margin)==null?void 0:r.left)??0)+(((i=t.margin)==null?void 0:i.right)??0),o={boxSizing:"border-box",width:n>0?`calc(100% - ${n}px)`:"100%"};if(t.backgroundColor&&(o.backgroundColor=t.backgroundColor),t.padding){const a=t.padding;o.padding=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}if(t.margin){const a=t.margin;o.margin=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}if(t.borderRadius!=null&&(o.borderRadius=nx(t.borderRadius),o.overflow="hidden"),t.borderColor){const a=t.borderWidth??{top:1,right:1,bottom:1,left:1};o.borderStyle="solid",o.borderColor=t.borderColor,o.borderWidth=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}return o}function Go(e,t,n){const o=e??{},r=o.desktopLayout??(o.wrap?"wrap":"row"),i=o.tabletLayout??r,a=o.mobileLayout??"wrap",l=o.columnShrink??[],s=o.columnShrinkTablet??l,c=o.columnShrinkMobile??s,u=o.columnsGap??16,h=o.columnsGapTablet??u,d=o.columnsGapMobile??h,f={desktop:{layout:r,shrink:l,gap:u},tablet:{layout:i,shrink:s,gap:h},mobile:{layout:a,shrink:c,gap:d}}[t];return{layout:f.layout,gap:f.gap,shrink:Array.from({length:n},(p,b)=>f.shrink[b]===!0),equalColumns:o.equalColumns===!0,reverseColumns:o.reverseColumns===!0}}function rx(e){switch(e){case"shrink":return"flex: 0 0 auto; width: auto;";case"equal":return"flex: 1 1 0; width: 0;";default:return"flex: 1 1 auto; width: auto;"}}function ax(e,{shrink:t,equalColumns:n}){return t[e]?"shrink":n?"equal":"plain"}function Uo(e,t,n,o){const{layout:r,reverseColumns:i,gap:a}=n,l=d=>d.map(f=>`${t}:nth-child(${f+1})`).join(", "),s=Array.from({length:o},(d,f)=>f);if(r==="wrap")return[`${e} { flex-direction: column; flex-wrap: nowrap; gap: ${a}px; }`,`${l(s)} { flex: 0 0 100%; width: 100%; max-width: 100%; }`].join(`
221
+ `);const u=[`${e} { flex-direction: ${i?"row-reverse":"row"}; flex-wrap: nowrap; gap: ${a}px; }`],h=new Map;for(const d of s){const f=ax(d,n);h.set(f,[...h.get(f)??[],d])}for(const[d,f]of h)u.push(`${l(f)} { ${rx(d)} max-width: 100%; }`);return u.join(`
222
+ `)}function ix(e,t){const{columnsCount:n,desktop:o,tablet:r,mobile:i}=t,a=`.${e}.flex-columns-block > .fc-row`,l=`${a} > .fc-col`,s=[`${a} { display: flex; width: 100%; box-sizing: border-box; }`,`${l} { min-width: 0; box-sizing: border-box; }`,`${l} > * { max-width: 100%; }`,`${l} img { max-width: 100%; height: auto; }`].join(`
223
223
  `),u=[o,r,i].some(d=>d.shrink.some(Boolean))?[o,r,i].flatMap(d=>d.shrink.map((f,p)=>f?p:-1).filter(f=>f>=0)).filter((d,f,p)=>p.indexOf(d)===f).map(d=>{const f=`${l}:nth-child(${d+1})`;return`${f} > *, ${f} .container-block { width: auto; max-width: 100%; }`}).join(`
224
224
  `):"",h=(d,f)=>`@media (max-width: ${d}px) {
225
225
  ${f}
226
226
  }
227
227
  @container ahd-page (max-width: ${d}px) {
228
228
  ${f}
229
- }`;return[s,u,Ho(a,l,o,n),h(Pe,Ho(a,l,r,n)),h(Oe,Ho(a,l,i,n))].filter(Boolean).join(`
230
- `)}let ax=0;function ix({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,o=(t==null?void 0:t.align)??"flex-start",r=(t==null?void 0:t.justify)??"flex-start",i=(t==null?void 0:t.columns)??[],a=Array.from({length:n},(u,h)=>i[h]??{childrenIds:[]}),l=U.useMemo(()=>`ahd-fc-${ax+=1}`,[]),s=rx(l,{columnsCount:n,desktop:Fo(t,"desktop",n),tablet:Fo(t,"tablet",n),mobile:Fo(t,"mobile",n)}),c={alignItems:o,justifyContent:r};return g.jsxs("div",{className:`flex-columns-block ${l}`,style:tx(e),"data-cols":n,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),g.jsx("div",{className:"fc-row",style:c,children:a.map((u,h)=>g.jsx("div",{className:"fc-col",children:u.childrenIds.map(d=>g.jsx(Ae,{id:d},d))},h))})]})}const lx=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),sx=$().regex(/^rgba?\([^\)]+\)$/i),cx=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),ux=oe("transparent"),dx=D([lx,sx,cx,ux]).nullable().optional(),hx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),fx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),mx=A({style:A({backgroundColor:dx,padding:hx,margin:fx}).optional().nullable(),props:A({columnsCount:m().int().min(1).optional().nullable(),columnsCountTablet:m().int().min(1).optional().nullable(),columnsCountMobile:m().int().min(1).optional().nullable(),rowsCount:m().int().min(1).optional().nullable(),columnsGap:m().optional().nullable(),rowsGap:m().optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),px=mx.shape.props.unwrap().unwrap().shape,gx=A({backgroundColor:$().optional().nullable(),padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),borderRadius:D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable(),bx=A({style:gx,props:A({...px,cells:te(A({childrenIds:te($()),colStart:m().int().min(1).optional().nullable(),colSpan:m().int().min(1).optional().nullable(),rowStart:m().int().min(1).optional().nullable(),rowSpan:m().int().min(1).optional().nullable()})),columnsCountTablet:D([oe(1),oe(2),oe(3),oe(4),oe(5)]).optional().nullable(),columnsCountMobile:D([oe(1),oe(2),oe(3),oe(4),oe(5)]).optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:N(["left","center","right"]).optional().nullable()}).optional().nullable()}),xx={top:"flex-start",middle:"center",bottom:"flex-end"},vx={left:"flex-start",center:"center",right:"flex-end"};let Sx=0;function wx({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,o=(t==null?void 0:t.columnsCountTablet)??n,r=(t==null?void 0:t.columnsCountMobile)??1,i=(t==null?void 0:t.rowsCount)??2,a=(t==null?void 0:t.columnsGap)??0,l=(t==null?void 0:t.rowsGap)??0,s=(t==null?void 0:t.contentAlignment)??"middle",c=(t==null?void 0:t.horizontalAlignment)??"left",u=(t==null?void 0:t.cells)??[],d=u.some(R=>(R==null?void 0:R.colStart)!=null||(R==null?void 0:R.rowStart)!=null||(R==null?void 0:R.colSpan)!=null||(R==null?void 0:R.rowSpan)!=null)?u.length:n*i,f=U.useMemo(()=>`ahd-grid-${Sx+=1}`,[]),p=Array.from({length:d},(R,T)=>u[T]??{childrenIds:[]}),b=e==null?void 0:e.padding,x=e==null?void 0:e.margin,v=((x==null?void 0:x.left)??0)+((x==null?void 0:x.right)??0),S=v>0?`calc(100% - ${v}px)`:"100%",k={backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,padding:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,boxSizing:"border-box",margin:x?`${x.top}px ${x.right}px ${x.bottom}px ${x.left}px`:void 0,width:S,maxWidth:"100%"},w=e==null?void 0:e.borderRadius;if(w!=null&&(k.borderRadius=typeof w=="number"?`${w}px`:`${w.topLeft}px ${w.topRight}px ${w.bottomRight}px ${w.bottomLeft}px`,k.overflow="hidden"),e!=null&&e.borderColor){const R=e.borderWidth??{top:1,right:1,bottom:1,left:1};k.borderStyle="solid",k.borderColor=e.borderColor,k.borderWidth=`${R.top}px ${R.right}px ${R.bottom}px ${R.left}px`}const C={display:"grid",columnGap:`${a}px`,rowGap:`${l}px`,alignItems:xx[s]??"center",justifyContent:vx[c]??"flex-start",width:"100%",boxSizing:"border-box"},y=p.map((R,T)=>{if(R.colStart==null&&R.rowStart==null)return"";const P=[];return R.colStart!=null&&R.colSpan!=null&&P.push(`grid-column: ${R.colStart} / span ${R.colSpan};`),R.rowStart!=null&&R.rowSpan!=null&&P.push(`grid-row: ${R.rowStart} / span ${R.rowSpan};`),P.length===0?"":`.${f}-cell-${T} { ${P.join(" ")} }
231
- @media (max-width: ${Oe}px) { .${f}-cell-${T} { grid-column: auto; grid-row: auto; } }`}).filter(Boolean).join(`
232
- `),_=`
229
+ }`;return[s,u,Uo(a,l,o,n),h(Oe,Uo(a,l,r,n)),h(Le,Uo(a,l,i,n))].filter(Boolean).join(`
230
+ `)}let lx=0;function sx({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,o=(t==null?void 0:t.align)??"flex-start",r=(t==null?void 0:t.justify)??"flex-start",i=(t==null?void 0:t.columns)??[],a=Array.from({length:n},(u,h)=>i[h]??{childrenIds:[]}),l=Z.useMemo(()=>`ahd-fc-${lx+=1}`,[]),s=ix(l,{columnsCount:n,desktop:Go(t,"desktop",n),tablet:Go(t,"tablet",n),mobile:Go(t,"mobile",n)}),c={alignItems:o,justifyContent:r};return g.jsxs("div",{className:`flex-columns-block ${l}`,style:ox(e),"data-cols":n,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),g.jsx("div",{className:"fc-row",style:c,children:a.map((u,h)=>g.jsx("div",{className:"fc-col",children:u.childrenIds.map(d=>g.jsx(Re,{id:d},d))},h))})]})}const cx=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),ux=$().regex(/^rgba?\([^\)]+\)$/i),dx=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),hx=se("transparent"),fx=G([cx,ux,dx,hx]).nullable().optional(),mx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),px=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),gx=A({style:A({backgroundColor:fx,padding:mx,margin:px}).optional().nullable(),props:A({columnsCount:m().int().min(1).optional().nullable(),columnsCountTablet:m().int().min(1).optional().nullable(),columnsCountMobile:m().int().min(1).optional().nullable(),rowsCount:m().int().min(1).optional().nullable(),columnsGap:m().optional().nullable(),rowsGap:m().optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),bx=gx.shape.props.unwrap().unwrap().shape,xx=A({backgroundColor:$().optional().nullable(),padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),borderRadius:G([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable(),vx=A({style:xx,props:A({...bx,cells:ne(A({childrenIds:ne($()),colStart:m().int().min(1).optional().nullable(),colSpan:m().int().min(1).optional().nullable(),rowStart:m().int().min(1).optional().nullable(),rowSpan:m().int().min(1).optional().nullable()})),columnsCountTablet:G([se(1),se(2),se(3),se(4),se(5)]).optional().nullable(),columnsCountMobile:G([se(1),se(2),se(3),se(4),se(5)]).optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:N(["left","center","right"]).optional().nullable()}).optional().nullable()}),Sx={top:"flex-start",middle:"center",bottom:"flex-end"},wx={left:"flex-start",center:"center",right:"flex-end"};let $x=0;function kx({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,o=(t==null?void 0:t.columnsCountTablet)??n,r=(t==null?void 0:t.columnsCountMobile)??1,i=(t==null?void 0:t.rowsCount)??2,a=(t==null?void 0:t.columnsGap)??0,l=(t==null?void 0:t.rowsGap)??0,s=(t==null?void 0:t.contentAlignment)??"middle",c=(t==null?void 0:t.horizontalAlignment)??"left",u=(t==null?void 0:t.cells)??[],d=u.some(R=>(R==null?void 0:R.colStart)!=null||(R==null?void 0:R.rowStart)!=null||(R==null?void 0:R.colSpan)!=null||(R==null?void 0:R.rowSpan)!=null)?u.length:n*i,f=Z.useMemo(()=>`ahd-grid-${$x+=1}`,[]),p=Array.from({length:d},(R,E)=>u[E]??{childrenIds:[]}),b=e==null?void 0:e.padding,x=e==null?void 0:e.margin,w=((x==null?void 0:x.left)??0)+((x==null?void 0:x.right)??0),S=w>0?`calc(100% - ${w}px)`:"100%",k={backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,padding:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,boxSizing:"border-box",margin:x?`${x.top}px ${x.right}px ${x.bottom}px ${x.left}px`:void 0,width:S,maxWidth:"100%"},v=e==null?void 0:e.borderRadius;if(v!=null&&(k.borderRadius=typeof v=="number"?`${v}px`:`${v.topLeft}px ${v.topRight}px ${v.bottomRight}px ${v.bottomLeft}px`,k.overflow="hidden"),e!=null&&e.borderColor){const R=e.borderWidth??{top:1,right:1,bottom:1,left:1};k.borderStyle="solid",k.borderColor=e.borderColor,k.borderWidth=`${R.top}px ${R.right}px ${R.bottom}px ${R.left}px`}const _={display:"grid",columnGap:`${a}px`,rowGap:`${l}px`,alignItems:Sx[s]??"center",justifyContent:wx[c]??"flex-start",width:"100%",boxSizing:"border-box"},y=p.map((R,E)=>{if(R.colStart==null&&R.rowStart==null)return"";const P=[];return R.colStart!=null&&R.colSpan!=null&&P.push(`grid-column: ${R.colStart} / span ${R.colSpan};`),R.rowStart!=null&&R.rowSpan!=null&&P.push(`grid-row: ${R.rowStart} / span ${R.rowSpan};`),P.length===0?"":`.${f}-cell-${E} { ${P.join(" ")} }
231
+ @media (max-width: ${Le}px) { .${f}-cell-${E} { grid-column: auto; grid-row: auto; } }`}).filter(Boolean).join(`
232
+ `),C=`
233
233
  .${f} > .grid-block-inner { grid-template-columns: repeat(${n}, minmax(0, 1fr)); }
234
- @media (max-width: ${Pe}px) { .${f} > .grid-block-inner { grid-template-columns: repeat(${o}, minmax(0, 1fr)); } }
235
- @media (max-width: ${Oe}px) { .${f} > .grid-block-inner { grid-template-columns: repeat(${r}, minmax(0, 1fr)); } }
234
+ @media (max-width: ${Oe}px) { .${f} > .grid-block-inner { grid-template-columns: repeat(${o}, minmax(0, 1fr)); } }
235
+ @media (max-width: ${Le}px) { .${f} > .grid-block-inner { grid-template-columns: repeat(${r}, minmax(0, 1fr)); } }
236
236
  ${y}
237
- `.trim(),I=()=>({minWidth:0,boxSizing:"border-box"});return g.jsxs("div",{className:`grid-block ${f}`,style:k,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),g.jsx("div",{className:"grid-block-inner",style:C,children:p.map((R,T)=>g.jsx("div",{className:`grid-cell ${f}-cell-${T}`,style:I(),children:R.childrenIds.map(P=>g.jsx(Ae,{id:P},P))},T))})]})}const $x=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),kx=$().regex(/^rgba?\([^\)]+\)$/i),_x=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Cx=oe("transparent"),Ar=ps(e=>typeof e=="string"?e.trim():e,D([$x,kx,_x,Cx]).nullable().optional()),Ax=$().url().regex(/^https?:\/\//,"URL must start with http:// or https://").nullable().optional(),yx=$().regex(/^(none|auto|cover|contain|inherit|initial|revert-layer|revert|unset|\d+(px|em|rem|%)?(\s+\d+(px|em|rem|%)?)?)$/i,"Invalid CSS background-size value").nullable().optional(),Ix=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Rx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Nx=D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),Tx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),ji=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Es(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function Ex(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:Es(e)?{backgroundColor:"transparent"}:{backgroundColor:e}}function Mx(e,t){const n=e&&Es(e)?e:void 0;return n&&t?`${n}, ${t}`:n??t}function Px(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const Ox=A({color:Ar,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:O().default(!1)}).partial().optional().nullable();function Lx(e){if(!(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")))return e;const n=e.match(/#([0-9a-fA-F]{3,8})|rgba?\([^)]+\)/);return(n==null?void 0:n[0])??"#000000"}function zx(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e;return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${Lx(t)}`}}function jx(e,t){const n=Math.max((t==null?void 0:t.top)||0,(t==null?void 0:t.right)||0,(t==null?void 0:t.bottom)||0,(t==null?void 0:t.left)||0);if(e==null)return;if(typeof e=="number")return`${Math.max(0,e-n)}px`;const o=Math.max(0,(e.topLeft||0)-n),r=Math.max(0,(e.topRight||0)-n),i=Math.max(0,(e.bottomRight||0)-n),a=Math.max(0,(e.bottomLeft||0)-n);return`${o}px ${r}px ${i}px ${a}px`}const Bx=A({style:A({backgroundColor:Ar,backgroundImage:Ax,backgroundSize:yx,backgroundRepeat:N(["repeat","no-repeat"]).optional().nullable(),borderColor:Ar,borderRadius:Nx,padding:Ix,margin:Rx,borderWidth:Tx,boxShadow:Ox}).optional().nullable(),props:A({fullWidth:O().optional().nullable(),widthType:N(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:N(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:N(["fixed","fill","fit"]).optional().nullable(),width:m().min(0).optional().nullable(),widthUnit:N(["px","%"]).optional().nullable(),widthTablet:m().min(0).optional().nullable(),widthMobile:m().min(0).optional().nullable(),height:m().min(0).optional().nullable(),heightTablet:D([m().min(0),oe("auto")]).optional().nullable(),heightMobile:D([m().min(0),oe("auto")]).optional().nullable(),overflow:O().optional().nullable(),alignment:N(["left","center","right"]).optional().nullable(),alignmentTablet:N(["left","center","right"]).optional().nullable(),alignmentMobile:N(["left","center","right"]).optional().nullable(),tag:N(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:N(["_self","_blank"]).optional().nullable(),hoverEffect:A({enabled:O(),scale:m().min(1).max(1.5).optional().nullable(),duration:m().min(0).max(3e3).optional().nullable(),easing:N(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable()}).optional().nullable()}),Wt={fullWidth:!1,widthType:"fill",width:300,widthUnit:"px",alignment:"left",hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};function Dx({style:e,props:t,children:n,blockId:o}){const r=ba(),i=(t==null?void 0:t.fullWidth)??Wt.fullWidth,a=(t==null?void 0:t.widthType)??Wt.widthType,l=(t==null?void 0:t.widthTypeTablet)??null,s=(t==null?void 0:t.widthTypeMobile)??null,c=l??a,u=s??c,h=(t==null?void 0:t.width)??Wt.width,d=(t==null?void 0:t.widthUnit)??Wt.widthUnit,f=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,b=f??h,x=p??b,v=(t==null?void 0:t.height)??null,S=(t==null?void 0:t.heightTablet)??null,k=(t==null?void 0:t.heightMobile)??null,w=S==="auto"?null:S??v,C=k==="auto"?null:k??(S==="auto"?null:w),y=(t==null?void 0:t.overflow)===!0,_=(t==null?void 0:t.alignment)??Wt.alignment,I=(t==null?void 0:t.alignmentTablet)??null,R=(t==null?void 0:t.alignmentMobile)??null,T=I??_,P=R??T,M=_,z=(t==null?void 0:t.ariaLabel)??void 0,F=(t==null?void 0:t.elementId)??void 0,H=!!(t!=null&&t.showLink),V=(t==null?void 0:t.linkHref)??null,q=typeof V=="string"?V.trim():V,he=H&&typeof q=="string"&&q.length>0,ae=(t==null?void 0:t.linkTarget)??"_blank",pe=he?"a":(t==null?void 0:t.tag)??"div",ee=he?{href:q,target:ae,...ae==="_blank"?{rel:"noopener noreferrer"}:{},style:{textDecoration:"none",color:"inherit",display:"block"}}:{},se=(ne,le,Ve=!1)=>{if(Ve&&i)return"100%";switch(ne){case"fill":return"100%";case"fixed":return`${le}${d}`;case"fit":default:return"auto"}},fe=ne=>((ne==null?void 0:ne.left)??0)+((ne==null?void 0:ne.right)??0),Y=(ne,le,Ve)=>{const et=(le==null?void 0:le.top)??0,xt=(le==null?void 0:le.bottom)??0;if(Ve)return{marginTop:et,marginBottom:xt,marginLeft:(le==null?void 0:le.left)??0,marginRight:(le==null?void 0:le.right)??0};switch(ne){case"center":return{marginTop:et,marginBottom:xt,marginLeft:"auto",marginRight:"auto"};case"right":return{marginTop:et,marginBottom:xt,marginLeft:"auto",marginRight:(le==null?void 0:le.right)??0};case"left":default:return{marginTop:et,marginBottom:xt,marginLeft:(le==null?void 0:le.left)??0,marginRight:"auto"}}},de=(ne,le)=>{const Ve=fe(le);return Ve<=0?ne:ne==="100%"?`calc(100% - ${Ve}px)`:ne},ve=a,K=h,L=v,B=se(ve,K,r==="desktop"),Z=de(B,e==null?void 0:e.margin),X=B==="100%"?null:{textAlign:M==="left"?"left":M==="right"?"right":"center"},ge=(ne,le,Ve)=>se(le,Ve)==="100%"||ne==="left"?"left":ne==="right"?"right":"center",Ue=l!=null||s!=null||f!=null||p!=null||S!=null||k!=null||I!=null||R!=null,ce=(t==null?void 0:t.hoverEffect)??Wt.hoverEffect,Te=!!(ce!=null&&ce.enabled),ue=(Ue||Te)&&o?`ahd-cb-${o}`:"",Ie=ue?`${ue}-align`:"",We=w!=null?`height: ${w}px !important;`:S==="auto"?"height: auto !important;":"",Re=C!=null?`height: ${C}px !important;`:k==="auto"||k==null&&S==="auto"?"height: auto !important;":"",Be=Ue?`
238
- ${ft} { .${ue} { width: ${de(se(c,b),e==null?void 0:e.margin)} !important; ${We} max-width: 100% !important; } }
239
- ${je} { .${ue} { width: ${de(se(u,x),e==null?void 0:e.margin)} !important; ${Re} max-width: 100% !important; } }
240
- ${ft} { .${Ie} { text-align: ${ge(T,c,b)} !important; } }
241
- ${je} { .${Ie} { text-align: ${ge(P,u,x)} !important; } }
242
- `.trim():null,De=Te?`
243
- .${ue} { transition: transform ${ce.duration??500}ms ${ce.easing??"ease-in-out"}; }
244
- .${ue}:hover { transform: scale(${ce.scale??1.05}); }
245
- `.trim():null,Q=[Be,De].filter(Boolean).join(`
246
- `)||null,ie=ne=>{if(ne!=null)return typeof ne=="number"?`${ne}px`:`${ne.topLeft}px ${ne.topRight}px ${ne.bottomRight}px ${ne.bottomLeft}px`},Ne=(e==null?void 0:e.borderColor)??null,Fe=(e==null?void 0:e.borderWidth)??null,Le=Px(j(Ne),Fe),kt=zx(e==null?void 0:e.boxShadow),gt=Ex(j((e==null?void 0:e.backgroundColor)??"")),at=(e==null?void 0:e.backgroundSize)==="none",Ze=!at&&(e!=null&&e.backgroundImage)?`url(${e.backgroundImage})`:void 0,_t=Mx(e==null?void 0:e.backgroundColor,Ze),it=_t?{colorScheme:"light"}:void 0,dn=at?void 0:(e==null?void 0:e.backgroundSize)??void 0,lt=(e==null?void 0:e.backgroundRepeat)??"no-repeat",st=Ne&&(Ne.includes("linear-gradient")||Ne.includes("radial-gradient")||Ne.includes("repeating-linear-gradient")),qe=L!=null,J=qe?{"--ahd-cb-h":`${L}px`}:{},Se=qe?" container-block-has-height":"";if(st){const ne={...Le,borderRadius:ie(e==null?void 0:e.borderRadius),width:Z,maxWidth:"100%",height:qe?`${L}px`:void 0,boxSizing:"border-box",...Y(M,e==null?void 0:e.margin,B==="100%"),...X?{display:"inline-block"}:{},...kt,...J},le={...gt,...it,backgroundImage:_t,backgroundSize:dn,backgroundRepeat:lt,borderRadius:jx((e==null?void 0:e.borderRadius)??0,Fe),overflow:y?"auto":"hidden",padding:ji(e==null?void 0:e.padding),width:"100%",height:qe?"100%":void 0,boxSizing:"border-box"},Ve=`container-block${y?" container-block-overflow":""}${Se}${ue?` ${ue}`:""}`,et=`container-block-inner${y?" container-block-overflow":""}`,xt=he?{...ne,...ee.style,...X?{display:"inline-block"}:{}}:ne,hn=g.jsx(pe,{className:Ve,"aria-label":z,id:F,...ee,style:xt,children:g.jsx("div",{className:et,style:le,children:n})});return g.jsxs(g.Fragment,{children:[Q&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),X?g.jsx("div",{className:Ie,style:X,children:hn}):hn]})}const Ce={...gt,...it,backgroundImage:_t,backgroundSize:dn,backgroundRepeat:lt,...Le,borderRadius:ie(e==null?void 0:e.borderRadius),padding:ji(e==null?void 0:e.padding),...Y(M,e==null?void 0:e.margin,B==="100%"),width:Z,maxWidth:"100%",height:qe?`${L}px`:void 0,overflow:y?"auto":void 0,boxSizing:"border-box",...y?{}:{display:"flow-root"},...X?{display:"inline-block"}:{},...kt,...J},bt=`container-block${y?" container-block-overflow":""}${Se}${ue?` ${ue}`:""}`,Ft=he?{...Ce,...ee.style,...X?{display:"inline-block"}:{}}:Ce;if(!n){const ne=g.jsx(pe,{className:bt,"aria-label":z,id:F,...ee,style:Ft});return g.jsxs(g.Fragment,{children:[Q&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),X?g.jsx("div",{className:Ie,style:X,children:ne}):ne]})}const Ht=g.jsx(pe,{className:bt,"aria-label":z,id:F,...ee,style:Ft,children:n});return g.jsxs(g.Fragment,{children:[Q&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),X?g.jsx("div",{className:Ie,style:X,children:Ht}):Ht]})}const Fx=A({style:Bx.shape.style,responsive:Ge,props:A({childrenIds:te($()).optional().nullable(),fullWidth:O().optional().nullable(),widthType:N(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:N(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:N(["fixed","fill","fit"]).optional().nullable(),width:m().min(0).optional().nullable(),widthUnit:N(["px","%"]).optional().nullable(),widthTablet:m().min(0).optional().nullable(),widthMobile:m().min(0).optional().nullable(),height:m().min(0).optional().nullable(),heightTablet:D([m().min(0),oe("auto")]).optional().nullable(),heightMobile:D([m().min(0),oe("auto")]).optional().nullable(),overflow:O().optional().nullable(),alignment:N(["left","center","right"]).optional().nullable(),alignmentTablet:N(["left","center","right"]).optional().nullable(),alignmentMobile:N(["left","center","right"]).optional().nullable(),tag:N(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:N(["_self","_blank"]).optional().nullable(),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),hoverEffect:A({enabled:O(),scale:m().min(1).max(1.5).optional().nullable(),duration:m().min(0).max(3e3).optional().nullable(),easing:N(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable()}).optional().nullable()});function Ms({style:e,props:t,blockId:n}){const o=(t==null?void 0:t.childrenIds)??[];return g.jsx(Dx,{style:e,blockId:n,props:{fullWidth:(t==null?void 0:t.fullWidth)??void 0,widthType:(t==null?void 0:t.widthType)??void 0,widthTypeTablet:(t==null?void 0:t.widthTypeTablet)??void 0,widthTypeMobile:(t==null?void 0:t.widthTypeMobile)??void 0,width:(t==null?void 0:t.width)??void 0,widthUnit:(t==null?void 0:t.widthUnit)??void 0,widthTablet:(t==null?void 0:t.widthTablet)??void 0,widthMobile:(t==null?void 0:t.widthMobile)??void 0,height:(t==null?void 0:t.height)??void 0,heightTablet:(t==null?void 0:t.heightTablet)??void 0,heightMobile:(t==null?void 0:t.heightMobile)??void 0,overflow:(t==null?void 0:t.overflow)??void 0,alignment:(t==null?void 0:t.alignment)??void 0,alignmentTablet:(t==null?void 0:t.alignmentTablet)??void 0,alignmentMobile:(t==null?void 0:t.alignmentMobile)??void 0,tag:(t==null?void 0:t.tag)??void 0,ariaLabel:(t==null?void 0:t.ariaLabel)??void 0,elementId:(t==null?void 0:t.elementId)??void 0,showLink:(t==null?void 0:t.showLink)??void 0,linkHref:(t==null?void 0:t.linkHref)??void 0,linkTarget:(t==null?void 0:t.linkTarget)??void 0,hoverEffect:(t==null?void 0:t.hoverEffect)??void 0},children:o.map(r=>g.jsx(Ae,{id:r},r))})}const Hx=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Gx=$().regex(/^rgba?\([^\)]+\)$/i),Ux=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Wx=oe("transparent"),Kt=D([Hx,Gx,Ux,Wx]).nullable().optional(),Zx=N(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional(),Vx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Go=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Uo=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),qx=$().regex(/^(auto|cover|contain|inherit|initial|revert-layer|revert|unset|\d+(px|em|rem|%)?(\s+\d+(px|em|rem|%)?)?)$/i,"Invalid CSS background-size value").nullable().optional(),Yx=A({color:Kt,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:O().default(!1)}).partial().optional().nullable(),Kx=A({position:N(["top","top-left","top-right","top-center","bottom","bottom-left","bottom-right","bottom-center","center","left","left-center","right","right-center"]).optional().default("right"),isCaret:O().optional().default(!0),selector:$().optional().default(""),showCloseIcon:O().optional(),iconCloseColor:Kt,closeIconPosition:N(["left","center","right"]).optional(),closeIconPaddingTop:m().optional(),closeIconPaddingLeft:m().optional(),closeIconPaddingRight:m().optional(),bannerSubType:$().optional()}).passthrough().optional().nullable(),Jx=te(A({id:$(),name:$(),type:$().optional().default("text"),value:$().optional()})).optional().nullable(),Xx=A({formFields:Jx,backdropColor:Kt.default(null),borderColor:Kt.default(null),borderRadius:m().optional().nullable(),canvasColor:Kt.default(null),textColor:Kt,fontFamily:Zx,childrenIds:te($()).optional().nullable(),maxWidth:$().default(""),maxHeight:$().default(""),top:$().default(""),left:$().default(""),padding:Go,margin:Uo,maxWidthTablet:$().optional().nullable(),maxWidthMobile:$().optional().nullable(),maxHeightTablet:$().optional().nullable(),maxHeightMobile:$().optional().nullable(),paddingTablet:Go,paddingMobile:Go,marginTablet:Uo,marginMobile:Uo,borderWidth:Vx,boxShadow:Yx,behaviour:Kx,linkHref:$().optional().default(""),backgroundImage:$().default("").nullable().optional(),backgroundSize:qx,backgroundRepeat:N(["repeat","no-repeat"]).optional().nullable()}),Qx=()=>null,ev="INTER";function tv(e){return e||ev}function Zt(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function Vn(e,t,n){const o=e??{},r=o[t];if(n==="desktop")return Zt(r)?r:null;const i=o[`${t}Tablet`];if(n==="tablet")return Zt(i)?i:Zt(r)?r:null;const a=o[`${t}Mobile`];return Zt(a)?a:Zt(i)?i:Zt(r)?r:null}function Wo(e,t){return{maxWidth:Vn(e,"maxWidth",t)??null,maxHeight:Vn(e,"maxHeight",t)??null,padding:Vn(e,"padding",t)??null,margin:Vn(e,"margin",t)??null}}function nv(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function ov(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function Zo(e,t){const n=[];return t.maxWidth&&(n.push(`${e.width}{width:${t.maxWidth};max-width:100%;}`),n.push(`${e.table}{max-width:${t.maxWidth};min-width:0;}`)),t.maxHeight&&n.push(`${e.table}{height:${t.maxHeight};}`),t.padding&&n.push(`${e.padding}{padding:${nv(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${ov(t.margin)};}`),n.join("")}function rv(e,t,n){const o=`.${e}`,r={width:`${o} .ahd-layout-sizer`,table:`${o} .ahd-layout-table`,padding:`${o} .email-layout-content`,margin:`${o} .email-layout-content`},i=Wo(t,"desktop"),a=Zo(r,{...i,maxWidth:i.maxWidth??n??null}),l=Zo(r,Wo(t,"tablet")),s=Zo(r,Wo(t,"mobile")),c=(u,h)=>h?`@media (max-width:${u}px){${h}}@container ahd-page (max-width:${u}px){${h}}`:"";return[a,c(Pe,l),c(Oe,s)].filter(Boolean).join("")}const av="Made with Page Pilot",iv="https://pagepilot.fabbuilder.com";let lv=0;function sv(e){switch(tv(e)){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}function cv(e){const{borderColor:t,borderWidth:n,borderRadius:o}=e;if(!t)return{};if(t==="transparent")return{border:"none"};const r=t&&(t.includes("linear-gradient")||t.includes("radial-gradient")||t.includes("repeating-linear-gradient")),i=o??0,a=s=>typeof s=="number"?`${s}px`:`${s.topLeft}px ${s.topRight}px ${s.bottomRight}px ${s.bottomLeft}px`;if(((n==null?void 0:n.top)??0)+((n==null?void 0:n.right)??0)+((n==null?void 0:n.bottom)??0)+((n==null?void 0:n.left)??0)===0)return{borderRadius:i?a(i):void 0};if(r){const s=e.canvasColor,c=!s||s==="transparent"?"linear-gradient(transparent, transparent)":s.includes("gradient")?s:`linear-gradient(${s}, ${s})`;return{borderStyle:"solid",borderTopWidth:`${(n==null?void 0:n.top)??0}px`,borderRightWidth:`${(n==null?void 0:n.right)??0}px`,borderBottomWidth:`${(n==null?void 0:n.bottom)??0}px`,borderLeftWidth:`${(n==null?void 0:n.left)??0}px`,borderColor:"transparent",backgroundImage:`${c}, ${t}`,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",borderRadius:i?a(i):void 0}}return{borderTop:`${(n==null?void 0:n.top)||0}px solid ${t}`,borderRight:`${(n==null?void 0:n.right)||0}px solid ${t}`,borderBottom:`${(n==null?void 0:n.bottom)||0}px solid ${t}`,borderLeft:`${(n==null?void 0:n.left)||0}px solid ${t}`,borderRadius:i?a(i):void 0}}function uv(e){return e.includes("gradient")?(e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[])[0]??"#000000":e}function Bi(e){if(!e||!e.color)return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e,l=uv(t);return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${l}`}}function dv(e,t,n){return n==="appBanner"&&t?{backgroundColor:"transparent"}:!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function hv(e){switch(e){case"top":return"bottom";case"top-left":return"bottom-right";case"top-right":return"bottom-left";case"bottom":return"top";case"bottom-left":return"top-right";case"bottom-right":return"top-left";case"left":return"right";case"right":return"left";default:return e}}function fv(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function mv(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=fv(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function pv({position:e,color:t}){const r="20px",i={position:"absolute",background:t,pointerEvents:"none",zIndex:2},a="polygon(50% 0, 0 100%, 100% 100%)",l="polygon(0 0, 100% 0, 50% 100%)",s="polygon(100% 0, 100% 100%, 0 50%)",c="polygon(0 0, 0 100%, 100% 50%)";let u;switch(e){case"top":u={top:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:a};break;case"top-left":u={top:-8,left:r,width:16,height:8,clipPath:a};break;case"top-right":u={top:-8,right:r,width:16,height:8,clipPath:a};break;case"bottom":u={bottom:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:l};break;case"bottom-left":u={bottom:-8,left:r,width:16,height:8,clipPath:l};break;case"bottom-right":u={bottom:-8,right:r,width:16,height:8,clipPath:l};break;case"left":u={left:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:s};break;case"right":u={right:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:c};break;default:return null}return g.jsx("div",{"aria-hidden":!0,style:{...i,...u}})}function gv({color:e,position:t,paddingTop:n,paddingLeft:o,paddingRight:r}){const i=e||"#262626",a=t??"right",l=typeof n=="number"?n:2,u=a==="left"?{left:typeof o=="number"?o:2}:a==="center"?{left:"50%",transform:"translateX(-50%)"}:{right:typeof r=="number"?r:2};return g.jsx("div",{role:"button","aria-label":"Close",tabIndex:0,"data-action":"onCloseStep",style:{position:"absolute",top:l,...u,width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",zIndex:11,cursor:"pointer",lineHeight:0,background:"transparent",border:0},children:g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:i,strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{pointerEvents:"none"},children:[g.jsx("line",{x1:"3",y1:"3",x2:"11",y2:"11"}),g.jsx("line",{x1:"11",y1:"3",x2:"3",y2:"11"})]})})}function bv(){return g.jsx("div",{className:"ahd-branding-footer",style:{display:"block",width:"100%",textAlign:"left",fontSize:11,color:"light-dark(#8a8a8a, #9a9a9a)",marginTop:8},children:g.jsx("a",{href:iv,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:av})})}function xv(e){var ve,K,L,B,Z,W,X,ge,Ue,ce,Te,ue,Ie,We,Re,Be,De,Q;const t=e.childrenIds??[],n=typeof window<"u"&&window.location?window.location.pathname:"",o=n.includes("page")?"page":"",r=n.includes("app-banner"),i=n.includes("demo"),a=n.includes("faq"),l=n.includes("tour"),s=n.includes("tooltip"),c=l||s||i,u=["top-left","top-right","bottom-left","bottom-right","top-center","bottom-center","left-center","right-center","center"],h=Tm(),d=(ve=Qx())==null?void 0:ve.getState(),f=(B=(L=(K=d==null?void 0:d.appBanner)==null?void 0:K.view)==null?void 0:L.record)==null?void 0:B.type,p=h??f,b=o==="page"||h==="page",x=r&&(p==="floater"||((Z=e.behaviour)==null?void 0:Z.bannerSubType)==="floater"||u.includes((W=e.behaviour)==null?void 0:W.position)),v=r&&(p==="modal"||((X=e.behaviour)==null?void 0:X.bannerSubType)==="modal"),S=(c||x||v)&&((ge=e.behaviour)==null?void 0:ge.showCloseIcon)!==!1,w=c&&!0,C=r&&e.linkHref?e.linkHref:null,y=U.useMemo(()=>`ahd-layout-${lv+=1}`,[]),I=rv(y,e,b||a?"100%":r&&!x?"900px":"320px"),R=(r||i)&&!!e.backgroundImage;e.borderRadius;const T=e.borderRadius??0,P=ie=>typeof ie=="number"?`${ie}px`:`${ie.topLeft}px ${ie.topRight}px ${ie.bottomRight}px ${ie.bottomLeft}px`,z=(ie=>ie==null?!1:typeof ie=="number"?ie>0:(ie.topLeft??0)>0||(ie.topRight??0)>0||(ie.bottomRight??0)>0||(ie.bottomLeft??0)>0)(T),F=ie=>C?g.jsx("a",{href:C,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:ie}):ie,H=cv({...e,borderColor:j(e.borderColor)??null}),V=r&&!!((Ue=e.boxShadow)!=null&&Ue.color)&&!!e.boxShadow.inset,q=r&&!V?Bi(e.boxShadow):{},he=V?Bi(e.boxShadow):{},ae=hv(((ce=e.behaviour)==null?void 0:ce.position)??"right"),pe=c&&!x&&!v&&((Te=e.behaviour)==null?void 0:Te.isCaret)!==!1,ee=j(e.canvasColor),se=xa(e.canvasColor)?{colorScheme:"light"}:void 0,fe=mv(ee,ae),Y=(((ue=e.margin)==null?void 0:ue.left)??0)+(((Ie=e.margin)==null?void 0:Ie.right)??0),de=Y>0?`calc(100% - ${Y}px)`:"100%";return F(g.jsxs("div",{className:y,style:{minHeight:"100%",display:"block",alignItems:"center"},children:[I&&g.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),g.jsx("div",{style:{color:j(e.textColor??"#262626"),fontFamily:sv(e.fontFamily),fontSize:"16px",fontWeight:"400",letterSpacing:"normal",lineHeight:"1.5",margin:"0",minHeight:"100%",width:"100%"},children:g.jsxs("div",{className:"ahd-layout-sizer",style:{position:"relative",margin:"0 auto",...v||x?null:{maxWidth:"100%"}},children:[pe&&g.jsx(pv,{position:ae,color:fe}),g.jsxs("div",{style:{position:"relative",borderRadius:P(T),...z?{overflowX:"hidden",overflowY:"visible"}:{overflow:"visible"},...q},children:[V&&g.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:P(T),zIndex:1,...he}}),S&&g.jsx(gv,{color:(We=e.behaviour)==null?void 0:We.iconCloseColor,position:(Re=e.behaviour)==null?void 0:Re.closeIconPosition,paddingTop:(Be=e.behaviour)==null?void 0:Be.closeIconPaddingTop,paddingLeft:(De=e.behaviour)==null?void 0:De.closeIconPaddingLeft,paddingRight:(Q=e.behaviour)==null?void 0:Q.closeIconPaddingRight}),g.jsx("table",{width:"100%",className:"ahd-layout-table",style:{width:de,maxWidth:"100%",boxSizing:"border-box",flex:1,margin:e.margin?`${e.margin.top}px ${e.margin.right}px ${e.margin.bottom}px ${e.margin.left}px`:"0 auto",...v||x?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...dv(ee,e.backgroundImage,r?"appBanner":""),...se,borderCollapse:"separate",tableLayout:"fixed",...H,borderRadius:P(T),overflow:z?"clip":"visible",...R?{backgroundImage:`url(${e.backgroundImage})`,backgroundSize:e.backgroundSize??"cover",backgroundPosition:"center",backgroundRepeat:e.backgroundRepeat??"no-repeat"}:{}},role:"presentation",cellSpacing:"0",cellPadding:"0",children:g.jsx("tbody",{children:g.jsx("tr",{style:{width:"100%"},children:g.jsxs("td",{className:"email-layout-content",children:[t.map(ie=>g.jsx(Ae,{id:ie},ie)),w&&g.jsx(bv,{})]})})})})]})]})})]}))}const vv=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Sv=$().regex(/^rgba?\([^\)]+\)$/i),wv=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),$v=oe("transparent"),qn=D([vv,Sv,wv,$v]).nullable().optional(),kv=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),_v=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Cv=N(["left","center","right"]).optional().nullable(),ho={min:1,max:20},fo={min:4,max:48},Ps=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),Av=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,yv=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,pn=(e,t,n)=>Math.min(Math.max(e,t),n),Di=e=>e?Ps(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},Iv=A({style:A({backgroundColor:qn,textAlign:Cv,padding:kv,margin:_v}).optional().nullable(),props:A({stepperType:N(["dots","numeric","both"]).optional().nullable(),totalDots:m().min(ho.min).max(ho.max).optional().nullable(),activeIndex:m().min(1).optional().nullable(),activeColor:qn,inactiveColor:qn,dotSize:m().min(fo.min).max(fo.max).optional().nullable(),dotSpacing:m().min(0).max(40).optional().nullable(),numericColor:qn,numericFontSize:m().min(8).max(48).optional().nullable(),numericPosition:N(["above","below","left","right"]).optional().nullable()}).optional().nullable()}),ct={stepperType:"dots",totalDots:5,activeIndex:1,activeColor:"#3F73FF",inactiveColor:"#FFFFFF",dotSize:14,dotSpacing:12,numericColor:"#000000",numericFontSize:14,numericPosition:"below"};function Rv({style:e,props:t}){const o=ba()==="mobile",i=typeof window<"u"&&window.location.pathname.includes("page")&&o,a=pn((t==null?void 0:t.totalDots)??ct.totalDots,ho.min,ho.max),l=pn((t==null?void 0:t.dotSize)??ct.dotSize,fo.min,fo.max),s=pn((t==null?void 0:t.dotSpacing)??ct.dotSpacing,0,40),c=(t==null?void 0:t.activeIndex)??ct.activeIndex,u=pn(c,1,a),h=j((t==null?void 0:t.activeColor)??ct.activeColor),d=j((t==null?void 0:t.inactiveColor)??ct.inactiveColor),f=(t==null?void 0:t.stepperType)??ct.stepperType,p=f==="numeric"||f==="both",b=f==="dots"||f==="both",x=(t==null?void 0:t.numericColor)??ct.numericColor,v=j(x),S=pn((t==null?void 0:t.numericFontSize)??ct.numericFontSize,8,48),k=(t==null?void 0:t.numericPosition)??ct.numericPosition,C={...Di((e==null?void 0:e.backgroundColor)??void 0),padding:Av(e==null?void 0:e.padding,i),margin:yv(e==null?void 0:e.margin,i),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},y=p&&b&&(k==="above"||k==="below"),_={display:"inline-flex",flexDirection:y?"column":"row",alignItems:"center",justifyContent:(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center",gap:y?"8px":b?`${s}px`:"0px"},I={display:"inline-flex",gap:`${s}px`,alignItems:"center",flexWrap:"wrap"},R=`${u}/${a}`,T=Ps(x),P={fontSize:`${S}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...T?{backgroundImage:v,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:v??void 0}},M=()=>p?g.jsx("span",{style:P,children:R}):null,z=()=>g.jsx("div",{style:I,"aria-hidden":"true",children:Array.from({length:a}).map((F,H)=>{const V=H===u-1,q={width:l,height:l,borderRadius:"50%",border:"2px solid #0000001a",transition:"background 120ms ease, transform 120ms ease",transform:V?"scale(1.1)":"scale(1)",...Di(V?h:d)};return g.jsx("span",{style:q,"data-active":V?"true":"false"},H)})});return g.jsx("div",{className:"stepper-block",style:C,role:"progressbar","aria-valuenow":u,"aria-valuemin":1,"aria-valuemax":a,"aria-valuetext":`Step ${u} of ${a}`,"aria-label":`Step ${u} of ${a}`,children:g.jsxs("div",{style:_,children:[p&&k==="above"&&M(),p&&k==="left"&&M(),b&&z(),p&&k==="right"&&M(),p&&k==="below"&&M()]})})}const Nv=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Tv=$().regex(/^rgba?\([^\)]+\)$/i),Ev=oe("transparent"),Vo=D([Nv,Tv,Ev]).nullable().optional(),Os=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Mv=Os,Pv=N(["left","center","right"]).optional().nullable(),Ov=["disc","circle","square","dash","arrow","check","cross","none"],Lv=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],Fi={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},zv=A({text:$()}),jv=A({style:A({color:Vo,backgroundColor:Vo,textAlign:Pv,fontSize:m().min(1).max(200).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:D([m(),$()]).optional().nullable(),lineHeight:m().min(1).max(3).optional().nullable(),padding:Os,margin:Mv}).optional().nullable(),props:A({listType:N(["unordered","ordered"]).optional().nullable(),marker:N([...Ov,...Lv]).optional().nullable(),numberSuffix:ps(e=>e===""?void 0:e,N([".",")"]).optional().nullable()),startNumber:m().min(0).max(9999).optional().nullable(),markerColor:Vo,markerSize:m().min(1).max(200).optional().nullable(),itemGap:m().min(0).max(64).optional().nullable(),items:te(zv).optional().nullable()}).optional().nullable(),responsive:Ge}),At={listType:"unordered",marker:"disc",numberSuffix:".",startNumber:1,markerColor:null,markerSize:16,itemGap:8,items:[{text:"First list item"},{text:"Second list item"},{text:"Third list item"}]},Hi=(e,t,n)=>Math.min(Math.max(e,t),n),Gi=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ui=e=>{if(e<=0)return String(e);const t=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];let n="",o=e;for(const[r,i]of t)for(;o>=r;)n+=i,o-=r;return n},Wi=e=>{let t=e,n="";for(;t>0;){const o=(t-1)%26;n=String.fromCharCode(97+o)+n,t=Math.floor((t-1)/26)}return n||"a"},Bv=(e,t,n,o)=>{const r=n+t;switch(e){case"decimal-zero":return`${String(r).padStart(2,"0")}${o}`;case"lower-alpha":return`${Wi(r)}${o}`;case"upper-alpha":return`${Wi(r).toUpperCase()}${o}`;case"lower-roman":return`${Ui(r).toLowerCase()}${o}`;case"upper-roman":return`${Ui(r)}${o}`;case"decimal":default:return`${r}${o}`}};function Dv({style:e,props:t}){var v;const o=((t==null?void 0:t.listType)??At.listType)==="ordered",r=(t==null?void 0:t.marker)??(o?"decimal":At.marker),i=(t==null?void 0:t.numberSuffix)??At.numberSuffix,a=(t==null?void 0:t.startNumber)??At.startNumber,l=(t==null?void 0:t.markerColor)??At.markerColor,s=Hi((t==null?void 0:t.markerSize)??At.markerSize,1,200),c=Hi((t==null?void 0:t.itemGap)??At.itemGap,0,64),u=(v=t==null?void 0:t.items)!=null&&v.length?t.items:At.items.map(S=>({...S})),h=j(e==null?void 0:e.color),d=(e==null?void 0:e.textAlign)??"left",f={backgroundColor:j(e==null?void 0:e.backgroundColor),padding:Gi(e==null?void 0:e.padding),margin:Gi(e==null?void 0:e.margin),width:"100%",boxSizing:"border-box",color:h,fontSize:e!=null&&e.fontSize?`${e.fontSize}px`:void 0,fontFamily:(e==null?void 0:e.fontFamily)??void 0,fontWeight:(e==null?void 0:e.fontWeight)??void 0,lineHeight:(e==null?void 0:e.lineHeight)??1.5},p={textAlign:"left"},b={verticalAlign:"top",paddingRight:"8px",whiteSpace:"nowrap",color:j(l),fontSize:`${s}px`},x=S=>r==="none"?null:o?Bv(r,S,a,i):Fi[r]??Fi.disc;return g.jsx("div",{className:"list-block",style:f,children:g.jsx("table",{role:"presentation",cellPadding:0,cellSpacing:0,style:{borderCollapse:"collapse",width:d==="left"?"100%":"auto",maxWidth:"100%",marginLeft:d==="left"?void 0:"auto",marginRight:d==="center"?"auto":void 0},children:g.jsx("tbody",{children:u.map((S,k)=>{const w=x(k);return g.jsxs("tr",{children:[r!=="none"&&g.jsx("td",{style:b,children:w}),g.jsx("td",{style:{...p,paddingBottom:k<u.length-1?`${c}px`:0,width:d==="left"?"100%":void 0},children:S.text})]},k)})})})})}const Fv=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Hv=$().regex(/^rgba?\([^\)]+\)$/i),Gv=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Uv=oe("transparent"),Wv=D([Fv,Hv,Gv,Uv]).nullable().optional(),Zv=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Vv=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),yr=A({style:A({backgroundColor:Wv,padding:Zv,margin:Vv}).optional().nullable(),props:A({direction:N(["row","column"]).optional().nullable(),directionTablet:N(["row","column"]).optional().nullable(),directionMobile:N(["row","column"]).optional().nullable(),gap:m().optional().nullable(),gapTablet:m().optional().nullable(),gapMobile:m().optional().nullable(),alignment:N(["start","center","end","space-between"]).optional().nullable(),alignmentTablet:N(["start","center","end","space-between"]).optional().nullable(),alignmentMobile:N(["start","center","end","space-between"]).optional().nullable(),wrap:O().optional().nullable(),ariaLabel:$().optional().nullable()}).optional().nullable(),responsive:Ge}),Yn={direction:"row",gap:12,alignment:"start",wrap:!0},mo={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},qv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Yv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Zi(e,t,n,o){const r=e==="row"?mo[t]:"flex-start",i=e==="column"?mo[t]:"center";return`flex-direction:${e}!important;justify-content:${r}!important;align-items:${i}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;gap:${o}px!important;`}let Kv=0;function Jv({style:e,buttons:t,props:n}){const o=(n==null?void 0:n.direction)??Yn.direction,r=(n==null?void 0:n.directionTablet)??o,i=(n==null?void 0:n.directionMobile)??r,a=(n==null?void 0:n.gap)??Yn.gap,l=(n==null?void 0:n.gapTablet)??a,s=(n==null?void 0:n.gapMobile)??l,c=(n==null?void 0:n.alignment)??Yn.alignment,u=(n==null?void 0:n.alignmentTablet)??c,h=(n==null?void 0:n.alignmentMobile)??u,d=(n==null?void 0:n.wrap)??Yn.wrap,f=(n==null?void 0:n.ariaLabel)??void 0,p=o,b=c,x=a,v=e==null?void 0:e.margin,S=((v==null?void 0:v.left)??0)+((v==null?void 0:v.right)??0),k={display:"flex",flexDirection:p,gap:`${x}px`,justifyContent:p==="row"?mo[b]:"flex-start",alignItems:p==="column"?mo[b]:"center",flexWrap:p==="row"&&d?"wrap":"nowrap",background:j(e==null?void 0:e.backgroundColor),padding:qv(e==null?void 0:e.padding),margin:Yv(e==null?void 0:e.margin),boxSizing:"border-box",width:S>0?`max(0px, calc(100% - ${S}px))`:"100%"},w=U.useMemo(()=>`ahd-bg-${Kv+=1}`,[]),C=U.useMemo(()=>{const y=`.${w}`;let _="";return(r!==o||u!==c||l!==a)&&(_+=`@media (max-width:${Pe}px){${y}{${Zi(r,u,d,l)}}}`),(i!==r||h!==u||s!==l)&&(_+=`@media (max-width:${Oe}px){${y}{${Zi(i,h,d,s)}}}`),_},[w,o,r,i,c,u,h,a,l,s,d]);return g.jsxs("div",{className:`button-group ${w}`,style:k,role:"group","aria-label":f,children:[C&&g.jsx("style",{dangerouslySetInnerHTML:{__html:C}}),t]})}const Xv=yr.shape.props.unwrap().unwrap().shape,Qv=A({style:yr.shape.style,props:A({...Xv,childrenIds:te($()).optional().nullable()}).optional().nullable(),responsive:yr.shape.responsive});function e1({style:e,props:t}){const{childrenIds:n,...o}=t??{},r=(n??[]).map(i=>g.jsx(Ae,{id:i},i));return g.jsx(Jv,{style:e,props:o,buttons:r})}const t1=A({titleChildrenIds:te($()).optional().nullable(),contentChildrenIds:te($()).optional().nullable()}),n1=A({responsive:Ge,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),borderRadius:D([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),marginBottom:m().optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({items:te(t1).min(1).max(25).optional().nullable(),iconColor:$().optional().nullable(),iconSize:m().optional().nullable(),defaultOpen:O().optional().nullable(),activeBorderColor:$().optional().nullable()}).optional().nullable()});function o1(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}const Vi=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e);function r1(e,t){if(!e)return;const n=Math.max(t.top,t.right,t.bottom,t.left),o=e.split(" ").map(r=>Math.max(0,parseFloat(r)-n));return o.length===1?`${o[0]}px`:o.map(r=>`${r}px`).join(" ")}function a1({style:e,props:t}){const n=U.useMemo(()=>{const _=t==null?void 0:t.items;return!_||_.length===0?{titleChildrenIds:[],contentChildrenIds:[]}:{titleChildrenIds:_[0].titleChildrenIds??[],contentChildrenIds:_[0].contentChildrenIds??[]}},[t==null?void 0:t.items]),o=U.useMemo(()=>`email-accordion-${Math.random().toString(36).slice(2,9)}`,[]),r=`${o}-content`,i=e==null?void 0:e.padding,a=e==null?void 0:e.margin,l=((a==null?void 0:a.left)??0)+((a==null?void 0:a.right)??0),s=t==null?void 0:t.activeBorderColor,c=e==null?void 0:e.borderColor,u=j(s),h=j(c),d=j(e==null?void 0:e.backgroundColor),f=j("#ffffff"),p=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},b=`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`,x=o1(e==null?void 0:e.borderRadius),v=Vi(c),S=Vi(s),k=v||S,w={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",borderRadius:x,margin:a?`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`:void 0,boxShadow:"none"};(e==null?void 0:e.borderRadius)!=null&&(w.overflow="hidden"),k?(w.padding=b,v?w.background=c:c&&(w.borderStyle="solid",w.borderColor=h,w.borderWidth=b)):c&&(w.borderStyle="solid",w.borderColor=h,w.borderWidth=b);const C={background:d??(k?f:void 0),borderRadius:k?r1(x,p):void 0,padding:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,overflow:k&&(e==null?void 0:e.borderRadius)!=null?"hidden":void 0},y=[];return s&&(S?y.push(`#${o}:checked + .email-accordion-root { background:${s}!important; border-style:none!important; padding:${b}!important; }`):y.push(`#${o}:checked + .email-accordion-root { background:none!important; border-style:solid!important; border-color:${u}!important; border-width:${b}!important; ${k?"padding:0!important;":""} }`)),g.jsxs("div",{className:"accordion-block",style:{marginBottom:(e==null?void 0:e.marginBottom)!=null?`${e.marginBottom}px`:"5px"},children:[g.jsx("style",{children:`
237
+ `.trim(),I=()=>({minWidth:0,boxSizing:"border-box"});return g.jsxs("div",{className:`grid-block ${f}`,style:k,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:C}}),g.jsx("div",{className:"grid-block-inner",style:_,children:p.map((R,E)=>g.jsx("div",{className:`grid-cell ${f}-cell-${E}`,style:I(),children:R.childrenIds.map(P=>g.jsx(Re,{id:P},P))},E))})]})}const _x=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Cx=$().regex(/^rgba?\([^\)]+\)$/i),Ax=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),yx=se("transparent"),Ir=gs(e=>typeof e=="string"?e.trim():e,G([_x,Cx,Ax,yx]).nullable().optional()),Ix=$().url().regex(/^https?:\/\//,"URL must start with http:// or https://").nullable().optional(),Rx=$().regex(/^(none|auto|cover|contain|inherit|initial|revert-layer|revert|unset|\d+(px|em|rem|%)?(\s+\d+(px|em|rem|%)?)?)$/i,"Invalid CSS background-size value").nullable().optional(),Nx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Tx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ex=G([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),Mx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Bi=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Ms(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function Px(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:Ms(e)?{backgroundColor:"transparent"}:{backgroundColor:e}}function Ox(e,t){const n=e&&Ms(e)?e:void 0;return n&&t?`${n}, ${t}`:n??t}function Lx(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const zx=A({color:Ir,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:L().default(!1)}).partial().optional().nullable();function jx(e){if(!(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")))return e;const n=e.match(/#([0-9a-fA-F]{3,8})|rgba?\([^)]+\)/);return(n==null?void 0:n[0])??"#000000"}function Bx(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e;return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${jx(t)}`}}function Dx(e,t){const n=Math.max((t==null?void 0:t.top)||0,(t==null?void 0:t.right)||0,(t==null?void 0:t.bottom)||0,(t==null?void 0:t.left)||0);if(e==null)return;if(typeof e=="number")return`${Math.max(0,e-n)}px`;const o=Math.max(0,(e.topLeft||0)-n),r=Math.max(0,(e.topRight||0)-n),i=Math.max(0,(e.bottomRight||0)-n),a=Math.max(0,(e.bottomLeft||0)-n);return`${o}px ${r}px ${i}px ${a}px`}const Fx=A({style:A({backgroundColor:Ir,backgroundImage:Ix,backgroundSize:Rx,backgroundRepeat:N(["repeat","no-repeat"]).optional().nullable(),borderColor:Ir,borderRadius:Ex,padding:Nx,margin:Tx,borderWidth:Mx,boxShadow:zx}).optional().nullable(),props:A({fullWidth:L().optional().nullable(),widthType:N(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:N(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:N(["fixed","fill","fit"]).optional().nullable(),width:m().min(0).optional().nullable(),widthUnit:N(["px","%"]).optional().nullable(),widthTablet:m().min(0).optional().nullable(),widthMobile:m().min(0).optional().nullable(),height:m().min(0).optional().nullable(),heightTablet:G([m().min(0),se("auto")]).optional().nullable(),heightMobile:G([m().min(0),se("auto")]).optional().nullable(),overflow:L().optional().nullable(),alignment:N(["left","center","right"]).optional().nullable(),alignmentTablet:N(["left","center","right"]).optional().nullable(),alignmentMobile:N(["left","center","right"]).optional().nullable(),tag:N(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:N(["_self","_blank"]).optional().nullable(),hoverEffect:A({enabled:L(),scale:m().min(1).max(1.5).optional().nullable(),duration:m().min(0).max(3e3).optional().nullable(),easing:N(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable()}).optional().nullable()}),Zt={fullWidth:!1,widthType:"fill",width:300,widthUnit:"px",alignment:"left",hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};function Hx({style:e,props:t,children:n,blockId:o}){const r=va(),i=(t==null?void 0:t.fullWidth)??Zt.fullWidth,a=(t==null?void 0:t.widthType)??Zt.widthType,l=(t==null?void 0:t.widthTypeTablet)??null,s=(t==null?void 0:t.widthTypeMobile)??null,c=l??a,u=s??c,h=(t==null?void 0:t.width)??Zt.width,d=(t==null?void 0:t.widthUnit)??Zt.widthUnit,f=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,b=f??h,x=p??b,w=(t==null?void 0:t.height)??null,S=(t==null?void 0:t.heightTablet)??null,k=(t==null?void 0:t.heightMobile)??null,v=S==="auto"?null:S??w,_=k==="auto"?null:k??(S==="auto"?null:v),y=(t==null?void 0:t.overflow)===!0,C=(t==null?void 0:t.alignment)??Zt.alignment,I=(t==null?void 0:t.alignmentTablet)??null,R=(t==null?void 0:t.alignmentMobile)??null,E=I??C,P=R??E,M=C,O=(t==null?void 0:t.ariaLabel)??void 0,H=(t==null?void 0:t.elementId)??void 0,D=!!(t!=null&&t.showLink),V=(t==null?void 0:t.linkHref)??null,F=typeof V=="string"?V.trim():V,q=D&&typeof F=="string"&&F.length>0,Y=(t==null?void 0:t.linkTarget)??"_blank",ie=q?"a":(t==null?void 0:t.tag)??"div",J=q?{href:F,target:Y,...Y==="_blank"?{rel:"noopener noreferrer"}:{},style:{textDecoration:"none",color:"inherit",display:"block"}}:{},re=(oe,he,Ve=!1)=>{if(Ve&&i)return"100%";switch(oe){case"fill":return"100%";case"fixed":return`${he}${d}`;case"fit":default:return"auto"}},me=oe=>((oe==null?void 0:oe.left)??0)+((oe==null?void 0:oe.right)??0),ae=(oe,he,Ve)=>{const et=(he==null?void 0:he.top)??0,xt=(he==null?void 0:he.bottom)??0;if(Ve)return{marginTop:et,marginBottom:xt,marginLeft:(he==null?void 0:he.left)??0,marginRight:(he==null?void 0:he.right)??0};switch(oe){case"center":return{marginTop:et,marginBottom:xt,marginLeft:"auto",marginRight:"auto"};case"right":return{marginTop:et,marginBottom:xt,marginLeft:"auto",marginRight:(he==null?void 0:he.right)??0};case"left":default:return{marginTop:et,marginBottom:xt,marginLeft:(he==null?void 0:he.left)??0,marginRight:"auto"}}},Se=(oe,he)=>{const Ve=me(he);return Ve<=0?oe:oe==="100%"?`calc(100% - ${Ve}px)`:oe},xe=a,X=h,j=w,B=re(xe,X,r==="desktop"),K=Se(B,e==null?void 0:e.margin),te=B==="100%"?null:{textAlign:M==="left"?"left":M==="right"?"right":"center"},fe=(oe,he,Ve)=>re(he,Ve)==="100%"||oe==="left"?"left":oe==="right"?"right":"center",ze=l!=null||s!=null||f!=null||p!=null||S!=null||k!=null||I!=null||R!=null,ue=(t==null?void 0:t.hoverEffect)??Zt.hoverEffect,Ce=!!(ue!=null&&ue.enabled),le=(ze||Ce)&&o?`ahd-cb-${o}`:"",Ae=le?`${le}-align`:"",ye=v!=null?`height: ${v}px !important;`:S==="auto"?"height: auto !important;":"",Te=_!=null?`height: ${_}px !important;`:k==="auto"||k==null&&S==="auto"?"height: auto !important;":"",Fe=ze?`
238
+ ${ft} { .${le} { width: ${Se(re(c,b),e==null?void 0:e.margin)} !important; ${ye} max-width: 100% !important; } }
239
+ ${De} { .${le} { width: ${Se(re(u,x),e==null?void 0:e.margin)} !important; ${Te} max-width: 100% !important; } }
240
+ ${ft} { .${Ae} { text-align: ${fe(E,c,b)} !important; } }
241
+ ${De} { .${Ae} { text-align: ${fe(P,u,x)} !important; } }
242
+ `.trim():null,He=Ce?`
243
+ .${le} { transition: transform ${ue.duration??500}ms ${ue.easing??"ease-in-out"}; }
244
+ .${le}:hover { transform: scale(${ue.scale??1.05}); }
245
+ `.trim():null,ee=[Fe,He].filter(Boolean).join(`
246
+ `)||null,de=oe=>{if(oe!=null)return typeof oe=="number"?`${oe}px`:`${oe.topLeft}px ${oe.topRight}px ${oe.bottomRight}px ${oe.bottomLeft}px`},Ee=(e==null?void 0:e.borderColor)??null,Ge=(e==null?void 0:e.borderWidth)??null,je=Lx(z(Ee),Ge),kt=Bx(e==null?void 0:e.boxShadow),gt=Px(z((e==null?void 0:e.backgroundColor)??"")),at=(e==null?void 0:e.backgroundSize)==="none",Ze=!at&&(e!=null&&e.backgroundImage)?`url(${e.backgroundImage})`:void 0,_t=Ox(e==null?void 0:e.backgroundColor,Ze),it=_t?{colorScheme:"light"}:void 0,hn=at?void 0:(e==null?void 0:e.backgroundSize)??void 0,lt=(e==null?void 0:e.backgroundRepeat)??"no-repeat",st=Ee&&(Ee.includes("linear-gradient")||Ee.includes("radial-gradient")||Ee.includes("repeating-linear-gradient")),qe=j!=null,Q=qe?{"--ahd-cb-h":`${j}px`}:{},ve=qe?" container-block-has-height":"";if(st){const oe={...je,borderRadius:de(e==null?void 0:e.borderRadius),width:K,maxWidth:"100%",height:qe?`${j}px`:void 0,boxSizing:"border-box",...ae(M,e==null?void 0:e.margin,B==="100%"),...te?{display:"inline-block"}:{},...kt,...Q},he={...gt,...it,backgroundImage:_t,backgroundSize:hn,backgroundRepeat:lt,borderRadius:Dx((e==null?void 0:e.borderRadius)??0,Ge),overflow:y?"auto":"hidden",padding:Bi(e==null?void 0:e.padding),width:"100%",height:qe?"100%":void 0,boxSizing:"border-box"},Ve=`container-block${y?" container-block-overflow":""}${ve}${le?` ${le}`:""}`,et=`container-block-inner${y?" container-block-overflow":""}`,xt=q?{...oe,...J.style,...te?{display:"inline-block"}:{}}:oe,fn=g.jsx(ie,{className:Ve,"aria-label":O,id:H,...J,style:xt,children:g.jsx("div",{className:et,style:he,children:n})});return g.jsxs(g.Fragment,{children:[ee&&g.jsx("style",{dangerouslySetInnerHTML:{__html:ee}}),te?g.jsx("div",{className:Ae,style:te,children:fn}):fn]})}const Ie={...gt,...it,backgroundImage:_t,backgroundSize:hn,backgroundRepeat:lt,...je,borderRadius:de(e==null?void 0:e.borderRadius),padding:Bi(e==null?void 0:e.padding),...ae(M,e==null?void 0:e.margin,B==="100%"),width:K,maxWidth:"100%",height:qe?`${j}px`:void 0,overflow:y?"auto":void 0,boxSizing:"border-box",...y?{}:{display:"flow-root"},...te?{display:"inline-block"}:{},...kt,...Q},bt=`container-block${y?" container-block-overflow":""}${ve}${le?` ${le}`:""}`,Ht=q?{...Ie,...J.style,...te?{display:"inline-block"}:{}}:Ie;if(!n){const oe=g.jsx(ie,{className:bt,"aria-label":O,id:H,...J,style:Ht});return g.jsxs(g.Fragment,{children:[ee&&g.jsx("style",{dangerouslySetInnerHTML:{__html:ee}}),te?g.jsx("div",{className:Ae,style:te,children:oe}):oe]})}const Gt=g.jsx(ie,{className:bt,"aria-label":O,id:H,...J,style:Ht,children:n});return g.jsxs(g.Fragment,{children:[ee&&g.jsx("style",{dangerouslySetInnerHTML:{__html:ee}}),te?g.jsx("div",{className:Ae,style:te,children:Gt}):Gt]})}const Gx=A({style:Fx.shape.style,responsive:We,props:A({childrenIds:ne($()).optional().nullable(),fullWidth:L().optional().nullable(),widthType:N(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:N(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:N(["fixed","fill","fit"]).optional().nullable(),width:m().min(0).optional().nullable(),widthUnit:N(["px","%"]).optional().nullable(),widthTablet:m().min(0).optional().nullable(),widthMobile:m().min(0).optional().nullable(),height:m().min(0).optional().nullable(),heightTablet:G([m().min(0),se("auto")]).optional().nullable(),heightMobile:G([m().min(0),se("auto")]).optional().nullable(),overflow:L().optional().nullable(),alignment:N(["left","center","right"]).optional().nullable(),alignmentTablet:N(["left","center","right"]).optional().nullable(),alignmentMobile:N(["left","center","right"]).optional().nullable(),tag:N(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:N(["_self","_blank"]).optional().nullable(),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),hoverEffect:A({enabled:L(),scale:m().min(1).max(1.5).optional().nullable(),duration:m().min(0).max(3e3).optional().nullable(),easing:N(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable()}).optional().nullable()});function Ps({style:e,props:t,blockId:n}){const o=(t==null?void 0:t.childrenIds)??[];return g.jsx(Hx,{style:e,blockId:n,props:{fullWidth:(t==null?void 0:t.fullWidth)??void 0,widthType:(t==null?void 0:t.widthType)??void 0,widthTypeTablet:(t==null?void 0:t.widthTypeTablet)??void 0,widthTypeMobile:(t==null?void 0:t.widthTypeMobile)??void 0,width:(t==null?void 0:t.width)??void 0,widthUnit:(t==null?void 0:t.widthUnit)??void 0,widthTablet:(t==null?void 0:t.widthTablet)??void 0,widthMobile:(t==null?void 0:t.widthMobile)??void 0,height:(t==null?void 0:t.height)??void 0,heightTablet:(t==null?void 0:t.heightTablet)??void 0,heightMobile:(t==null?void 0:t.heightMobile)??void 0,overflow:(t==null?void 0:t.overflow)??void 0,alignment:(t==null?void 0:t.alignment)??void 0,alignmentTablet:(t==null?void 0:t.alignmentTablet)??void 0,alignmentMobile:(t==null?void 0:t.alignmentMobile)??void 0,tag:(t==null?void 0:t.tag)??void 0,ariaLabel:(t==null?void 0:t.ariaLabel)??void 0,elementId:(t==null?void 0:t.elementId)??void 0,showLink:(t==null?void 0:t.showLink)??void 0,linkHref:(t==null?void 0:t.linkHref)??void 0,linkTarget:(t==null?void 0:t.linkTarget)??void 0,hoverEffect:(t==null?void 0:t.hoverEffect)??void 0},children:o.map(r=>g.jsx(Re,{id:r},r))})}const Ux=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Wx=$().regex(/^rgba?\([^\)]+\)$/i),Zx=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Vx=se("transparent"),Jt=G([Ux,Wx,Zx,Vx]).nullable().optional(),qx=N(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional(),Yx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Wo=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Zo=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Kx=$().regex(/^(auto|cover|contain|inherit|initial|revert-layer|revert|unset|\d+(px|em|rem|%)?(\s+\d+(px|em|rem|%)?)?)$/i,"Invalid CSS background-size value").nullable().optional(),Jx=A({color:Jt,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:L().default(!1)}).partial().optional().nullable(),Xx=A({position:N(["top","top-left","top-right","top-center","bottom","bottom-left","bottom-right","bottom-center","center","left","left-center","right","right-center"]).optional().default("right"),isCaret:L().optional().default(!0),selector:$().optional().default(""),showCloseIcon:L().optional(),iconCloseColor:Jt,closeIconPosition:N(["left","center","right"]).optional(),closeIconPaddingTop:m().optional(),closeIconPaddingLeft:m().optional(),closeIconPaddingRight:m().optional(),bannerSubType:$().optional()}).passthrough().optional().nullable(),Qx=ne(A({id:$(),name:$(),type:$().optional().default("text"),value:$().optional()})).optional().nullable(),ev=A({formFields:Qx,backdropColor:Jt.default(null),borderColor:Jt.default(null),borderRadius:m().optional().nullable(),canvasColor:Jt.default(null),textColor:Jt,fontFamily:qx,childrenIds:ne($()).optional().nullable(),maxWidth:$().default(""),maxHeight:$().default(""),top:$().default(""),left:$().default(""),padding:Wo,margin:Zo,maxWidthTablet:$().optional().nullable(),maxWidthMobile:$().optional().nullable(),maxHeightTablet:$().optional().nullable(),maxHeightMobile:$().optional().nullable(),paddingTablet:Wo,paddingMobile:Wo,marginTablet:Zo,marginMobile:Zo,borderWidth:Yx,boxShadow:Jx,behaviour:Xx,linkHref:$().optional().default(""),backgroundImage:$().default("").nullable().optional(),backgroundSize:Kx,backgroundRepeat:N(["repeat","no-repeat"]).optional().nullable()}),tv=()=>null,nv="INTER";function ov(e){return e||nv}function Vt(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function qn(e,t,n){const o=e??{},r=o[t];if(n==="desktop")return Vt(r)?r:null;const i=o[`${t}Tablet`];if(n==="tablet")return Vt(i)?i:Vt(r)?r:null;const a=o[`${t}Mobile`];return Vt(a)?a:Vt(i)?i:Vt(r)?r:null}function Vo(e,t){return{maxWidth:qn(e,"maxWidth",t)??null,maxHeight:qn(e,"maxHeight",t)??null,padding:qn(e,"padding",t)??null,margin:qn(e,"margin",t)??null}}function rv(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function av(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function qo(e,t){const n=[];return t.maxWidth&&(n.push(`${e.width}{width:${t.maxWidth};max-width:100%;}`),n.push(`${e.table}{max-width:${t.maxWidth};min-width:0;}`)),t.maxHeight&&n.push(`${e.table}{height:${t.maxHeight};}`),t.padding&&n.push(`${e.padding}{padding:${rv(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${av(t.margin)};}`),n.join("")}function iv(e,t,n){const o=`.${e}`,r={width:`${o} .ahd-layout-sizer`,table:`${o} .ahd-layout-table`,padding:`${o} .email-layout-content`,margin:`${o} .email-layout-content`},i=Vo(t,"desktop"),a=qo(r,{...i,maxWidth:i.maxWidth??n??null}),l=qo(r,Vo(t,"tablet")),s=qo(r,Vo(t,"mobile")),c=(u,h)=>h?`@media (max-width:${u}px){${h}}@container ahd-page (max-width:${u}px){${h}}`:"";return[a,c(Oe,l),c(Le,s)].filter(Boolean).join("")}const lv="Made with Page Pilot",sv="https://pagepilot.fabbuilder.com";let cv=0;function uv(e){switch(ov(e)){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}function dv(e){const{borderColor:t,borderWidth:n,borderRadius:o}=e;if(!t)return{};if(t==="transparent")return{border:"none"};const r=t&&(t.includes("linear-gradient")||t.includes("radial-gradient")||t.includes("repeating-linear-gradient")),i=o??0,a=s=>typeof s=="number"?`${s}px`:`${s.topLeft}px ${s.topRight}px ${s.bottomRight}px ${s.bottomLeft}px`;if(((n==null?void 0:n.top)??0)+((n==null?void 0:n.right)??0)+((n==null?void 0:n.bottom)??0)+((n==null?void 0:n.left)??0)===0)return{borderRadius:i?a(i):void 0};if(r){const s=e.canvasColor,c=!s||s==="transparent"?"linear-gradient(transparent, transparent)":s.includes("gradient")?s:`linear-gradient(${s}, ${s})`;return{borderStyle:"solid",borderTopWidth:`${(n==null?void 0:n.top)??0}px`,borderRightWidth:`${(n==null?void 0:n.right)??0}px`,borderBottomWidth:`${(n==null?void 0:n.bottom)??0}px`,borderLeftWidth:`${(n==null?void 0:n.left)??0}px`,borderColor:"transparent",backgroundImage:`${c}, ${t}`,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",borderRadius:i?a(i):void 0}}return{borderTop:`${(n==null?void 0:n.top)||0}px solid ${t}`,borderRight:`${(n==null?void 0:n.right)||0}px solid ${t}`,borderBottom:`${(n==null?void 0:n.bottom)||0}px solid ${t}`,borderLeft:`${(n==null?void 0:n.left)||0}px solid ${t}`,borderRadius:i?a(i):void 0}}function hv(e){return e.includes("gradient")?(e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[])[0]??"#000000":e}function Di(e){if(!e||!e.color)return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e,l=hv(t);return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${l}`}}function fv(e,t,n){return n==="appBanner"&&t?{backgroundColor:"transparent"}:!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function mv(e){switch(e){case"top":return"bottom";case"top-left":return"bottom-right";case"top-right":return"bottom-left";case"bottom":return"top";case"bottom-left":return"top-right";case"bottom-right":return"top-left";case"left":return"right";case"right":return"left";default:return e}}function pv(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function gv(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=pv(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function bv({position:e,color:t}){const r="20px",i={position:"absolute",background:t,pointerEvents:"none",zIndex:2},a="polygon(50% 0, 0 100%, 100% 100%)",l="polygon(0 0, 100% 0, 50% 100%)",s="polygon(100% 0, 100% 100%, 0 50%)",c="polygon(0 0, 0 100%, 100% 50%)";let u;switch(e){case"top":u={top:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:a};break;case"top-left":u={top:-8,left:r,width:16,height:8,clipPath:a};break;case"top-right":u={top:-8,right:r,width:16,height:8,clipPath:a};break;case"bottom":u={bottom:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:l};break;case"bottom-left":u={bottom:-8,left:r,width:16,height:8,clipPath:l};break;case"bottom-right":u={bottom:-8,right:r,width:16,height:8,clipPath:l};break;case"left":u={left:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:s};break;case"right":u={right:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:c};break;default:return null}return g.jsx("div",{"aria-hidden":!0,style:{...i,...u}})}function xv({color:e,position:t,paddingTop:n,paddingLeft:o,paddingRight:r}){const i=e||"#262626",a=t??"right",l=typeof n=="number"?n:2,u=a==="left"?{left:typeof o=="number"?o:2}:a==="center"?{left:"50%",transform:"translateX(-50%)"}:{right:typeof r=="number"?r:2};return g.jsx("div",{role:"button","aria-label":"Close",tabIndex:0,"data-action":"onCloseStep",style:{position:"absolute",top:l,...u,width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",zIndex:11,cursor:"pointer",lineHeight:0,background:"transparent",border:0},children:g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:i,strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{pointerEvents:"none"},children:[g.jsx("line",{x1:"3",y1:"3",x2:"11",y2:"11"}),g.jsx("line",{x1:"11",y1:"3",x2:"3",y2:"11"})]})})}function vv(){const e=z("#8a8a8a")??"#8a8a8a";return g.jsx("div",{className:"ahd-branding-footer",style:{display:"block",width:"100%",textAlign:"left",fontSize:11,color:e,marginTop:8},children:g.jsx("a",{href:sv,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:lv})})}function Sv(e){var xe,X,j,B,K,W,te,fe,ze,ue,Ce,le,Ae,ye,Te,Fe,He,ee;const t=e.childrenIds??[],n=typeof window<"u"&&window.location?window.location.pathname:"",o=n.includes("page")?"page":"",r=n.includes("app-banner"),i=n.includes("demo"),a=n.includes("faq"),l=n.includes("tour"),s=n.includes("tooltip"),c=l||s||i,u=["top-left","top-right","bottom-left","bottom-right","top-center","bottom-center","left-center","right-center","center"],h=Em(),d=(xe=tv())==null?void 0:xe.getState(),f=(B=(j=(X=d==null?void 0:d.appBanner)==null?void 0:X.view)==null?void 0:j.record)==null?void 0:B.type,p=h??f,b=o==="page"||h==="page",x=r&&(p==="floater"||((K=e.behaviour)==null?void 0:K.bannerSubType)==="floater"||u.includes((W=e.behaviour)==null?void 0:W.position)),w=r&&(p==="modal"||((te=e.behaviour)==null?void 0:te.bannerSubType)==="modal"),S=(c||x||w)&&((fe=e.behaviour)==null?void 0:fe.showCloseIcon)!==!1,v=c&&!0,_=r&&e.linkHref?e.linkHref:null,y=Z.useMemo(()=>`ahd-layout-${cv+=1}`,[]),I=iv(y,e,b||a?"100%":r&&!x?"900px":"320px"),R=(r||i)&&!!e.backgroundImage;e.borderRadius;const E=e.borderRadius??0,P=de=>typeof de=="number"?`${de}px`:`${de.topLeft}px ${de.topRight}px ${de.bottomRight}px ${de.bottomLeft}px`,O=(de=>de==null?!1:typeof de=="number"?de>0:(de.topLeft??0)>0||(de.topRight??0)>0||(de.bottomRight??0)>0||(de.bottomLeft??0)>0)(E),H=de=>_?g.jsx("a",{href:_,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:de}):de,D=dv({...e,borderColor:z(e.borderColor)??null}),V=r&&!!((ze=e.boxShadow)!=null&&ze.color)&&!!e.boxShadow.inset,F=r&&!V?Di(e.boxShadow):{},q=V?Di(e.boxShadow):{},Y=mv(((ue=e.behaviour)==null?void 0:ue.position)??"right"),ie=c&&!x&&!w&&((Ce=e.behaviour)==null?void 0:Ce.isCaret)!==!1,J=z(e.canvasColor),re=Sa(e.canvasColor)?{colorScheme:"light"}:void 0,me=gv(J,Y),ae=(((le=e.margin)==null?void 0:le.left)??0)+(((Ae=e.margin)==null?void 0:Ae.right)??0),Se=ae>0?`calc(100% - ${ae}px)`:"100%";return H(g.jsxs("div",{className:y,style:{minHeight:"100%",display:"block",alignItems:"center"},children:[I&&g.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),g.jsx("div",{style:{color:z(e.textColor??"#262626"),fontFamily:uv(e.fontFamily),fontSize:"16px",fontWeight:"400",letterSpacing:"normal",lineHeight:"1.5",margin:"0",minHeight:"100%",width:"100%"},children:g.jsxs("div",{className:"ahd-layout-sizer",style:{position:"relative",margin:"0 auto",...w||x?null:{maxWidth:"100%"}},children:[ie&&g.jsx(bv,{position:Y,color:me}),g.jsxs("div",{style:{position:"relative",borderRadius:P(E),...O?{overflowX:"hidden",overflowY:"visible"}:{overflow:"visible"},...F},children:[V&&g.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:P(E),zIndex:1,...q}}),S&&g.jsx(xv,{color:(ye=e.behaviour)==null?void 0:ye.iconCloseColor,position:(Te=e.behaviour)==null?void 0:Te.closeIconPosition,paddingTop:(Fe=e.behaviour)==null?void 0:Fe.closeIconPaddingTop,paddingLeft:(He=e.behaviour)==null?void 0:He.closeIconPaddingLeft,paddingRight:(ee=e.behaviour)==null?void 0:ee.closeIconPaddingRight}),g.jsx("table",{width:"100%",className:"ahd-layout-table",style:{width:Se,maxWidth:"100%",boxSizing:"border-box",flex:1,margin:e.margin?`${e.margin.top}px ${e.margin.right}px ${e.margin.bottom}px ${e.margin.left}px`:"0 auto",...w||x?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...fv(J,e.backgroundImage,r?"appBanner":""),...re,borderCollapse:"separate",tableLayout:"fixed",...D,borderRadius:P(E),overflow:O?"clip":"visible",...R?{backgroundImage:`url(${e.backgroundImage})`,backgroundSize:e.backgroundSize??"cover",backgroundPosition:"center",backgroundRepeat:e.backgroundRepeat??"no-repeat"}:{}},role:"presentation",cellSpacing:"0",cellPadding:"0",children:g.jsx("tbody",{children:g.jsx("tr",{style:{width:"100%"},children:g.jsxs("td",{className:"email-layout-content",children:[t.map(de=>g.jsx(Re,{id:de},de)),v&&g.jsx(vv,{})]})})})})]})]})})]}))}const wv=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),$v=$().regex(/^rgba?\([^\)]+\)$/i),kv=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),_v=se("transparent"),Yn=G([wv,$v,kv,_v]).nullable().optional(),Cv=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Av=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),yv=N(["left","center","right"]).optional().nullable(),mo={min:1,max:20},po={min:4,max:48},Os=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),Iv=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Rv=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,gn=(e,t,n)=>Math.min(Math.max(e,t),n),Fi=e=>e?Os(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},Nv=A({style:A({backgroundColor:Yn,textAlign:yv,padding:Cv,margin:Av}).optional().nullable(),props:A({stepperType:N(["dots","numeric","both"]).optional().nullable(),totalDots:m().min(mo.min).max(mo.max).optional().nullable(),activeIndex:m().min(1).optional().nullable(),activeColor:Yn,inactiveColor:Yn,dotSize:m().min(po.min).max(po.max).optional().nullable(),dotSpacing:m().min(0).max(40).optional().nullable(),numericColor:Yn,numericFontSize:m().min(8).max(48).optional().nullable(),numericPosition:N(["above","below","left","right"]).optional().nullable()}).optional().nullable()}),ct={stepperType:"dots",totalDots:5,activeIndex:1,activeColor:"#3F73FF",inactiveColor:"#FFFFFF",dotSize:14,dotSpacing:12,numericColor:"#000000",numericFontSize:14,numericPosition:"below"};function Tv({style:e,props:t}){const o=va()==="mobile",i=typeof window<"u"&&window.location.pathname.includes("page")&&o,a=gn((t==null?void 0:t.totalDots)??ct.totalDots,mo.min,mo.max),l=gn((t==null?void 0:t.dotSize)??ct.dotSize,po.min,po.max),s=gn((t==null?void 0:t.dotSpacing)??ct.dotSpacing,0,40),c=(t==null?void 0:t.activeIndex)??ct.activeIndex,u=gn(c,1,a),h=z((t==null?void 0:t.activeColor)??ct.activeColor),d=z((t==null?void 0:t.inactiveColor)??ct.inactiveColor),f=(t==null?void 0:t.stepperType)??ct.stepperType,p=f==="numeric"||f==="both",b=f==="dots"||f==="both",x=(t==null?void 0:t.numericColor)??ct.numericColor,w=z(x),S=gn((t==null?void 0:t.numericFontSize)??ct.numericFontSize,8,48),k=(t==null?void 0:t.numericPosition)??ct.numericPosition,_={...Fi((e==null?void 0:e.backgroundColor)??void 0),padding:Iv(e==null?void 0:e.padding,i),margin:Rv(e==null?void 0:e.margin,i),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},y=p&&b&&(k==="above"||k==="below"),C={display:"inline-flex",flexDirection:y?"column":"row",alignItems:"center",justifyContent:(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center",gap:y?"8px":b?`${s}px`:"0px"},I={display:"inline-flex",gap:`${s}px`,alignItems:"center",flexWrap:"wrap"},R=`${u}/${a}`,E=Os(x),P={fontSize:`${S}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...E?{backgroundImage:w,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:w??void 0}},M=()=>p?g.jsx("span",{style:P,children:R}):null,O=()=>g.jsx("div",{style:I,"aria-hidden":"true",children:Array.from({length:a}).map((H,D)=>{const V=D===u-1,F={width:l,height:l,borderRadius:"50%",border:"2px solid #0000001a",transition:"background 120ms ease, transform 120ms ease",transform:V?"scale(1.1)":"scale(1)",...Fi(V?h:d)};return g.jsx("span",{style:F,"data-active":V?"true":"false"},D)})});return g.jsx("div",{className:"stepper-block",style:_,role:"progressbar","aria-valuenow":u,"aria-valuemin":1,"aria-valuemax":a,"aria-valuetext":`Step ${u} of ${a}`,"aria-label":`Step ${u} of ${a}`,children:g.jsxs("div",{style:C,children:[p&&k==="above"&&M(),p&&k==="left"&&M(),b&&O(),p&&k==="right"&&M(),p&&k==="below"&&M()]})})}const Ev=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Mv=$().regex(/^rgba?\([^\)]+\)$/i),Pv=se("transparent"),Yo=G([Ev,Mv,Pv]).nullable().optional(),Ls=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ov=Ls,Lv=N(["left","center","right"]).optional().nullable(),zv=["disc","circle","square","dash","arrow","check","cross","none"],jv=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],Hi={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},Bv=A({text:$()}),Dv=A({style:A({color:Yo,backgroundColor:Yo,textAlign:Lv,fontSize:m().min(1).max(200).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:G([m(),$()]).optional().nullable(),lineHeight:m().min(1).max(3).optional().nullable(),padding:Ls,margin:Ov}).optional().nullable(),props:A({listType:N(["unordered","ordered"]).optional().nullable(),marker:N([...zv,...jv]).optional().nullable(),numberSuffix:gs(e=>e===""?void 0:e,N([".",")"]).optional().nullable()),startNumber:m().min(0).max(9999).optional().nullable(),markerColor:Yo,markerSize:m().min(1).max(200).optional().nullable(),itemGap:m().min(0).max(64).optional().nullable(),items:ne(Bv).optional().nullable()}).optional().nullable(),responsive:We}),At={listType:"unordered",marker:"disc",numberSuffix:".",startNumber:1,markerColor:null,markerSize:16,itemGap:8,items:[{text:"First list item"},{text:"Second list item"},{text:"Third list item"}]},Gi=(e,t,n)=>Math.min(Math.max(e,t),n),Ui=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Wi=e=>{if(e<=0)return String(e);const t=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];let n="",o=e;for(const[r,i]of t)for(;o>=r;)n+=i,o-=r;return n},Zi=e=>{let t=e,n="";for(;t>0;){const o=(t-1)%26;n=String.fromCharCode(97+o)+n,t=Math.floor((t-1)/26)}return n||"a"},Fv=(e,t,n,o)=>{const r=n+t;switch(e){case"decimal-zero":return`${String(r).padStart(2,"0")}${o}`;case"lower-alpha":return`${Zi(r)}${o}`;case"upper-alpha":return`${Zi(r).toUpperCase()}${o}`;case"lower-roman":return`${Wi(r).toLowerCase()}${o}`;case"upper-roman":return`${Wi(r)}${o}`;case"decimal":default:return`${r}${o}`}};function Hv({style:e,props:t}){var w;const o=((t==null?void 0:t.listType)??At.listType)==="ordered",r=(t==null?void 0:t.marker)??(o?"decimal":At.marker),i=(t==null?void 0:t.numberSuffix)??At.numberSuffix,a=(t==null?void 0:t.startNumber)??At.startNumber,l=(t==null?void 0:t.markerColor)??At.markerColor,s=Gi((t==null?void 0:t.markerSize)??At.markerSize,1,200),c=Gi((t==null?void 0:t.itemGap)??At.itemGap,0,64),u=(w=t==null?void 0:t.items)!=null&&w.length?t.items:At.items.map(S=>({...S})),h=z(e==null?void 0:e.color),d=(e==null?void 0:e.textAlign)??"left",f={backgroundColor:z(e==null?void 0:e.backgroundColor),padding:Ui(e==null?void 0:e.padding),margin:Ui(e==null?void 0:e.margin),width:"100%",boxSizing:"border-box",color:h,fontSize:e!=null&&e.fontSize?`${e.fontSize}px`:void 0,fontFamily:(e==null?void 0:e.fontFamily)??void 0,fontWeight:(e==null?void 0:e.fontWeight)??void 0,lineHeight:(e==null?void 0:e.lineHeight)??1.5},p={textAlign:"left"},b={verticalAlign:"top",paddingRight:"8px",whiteSpace:"nowrap",color:z(l),fontSize:`${s}px`},x=S=>r==="none"?null:o?Fv(r,S,a,i):Hi[r]??Hi.disc;return g.jsx("div",{className:"list-block",style:f,children:g.jsx("table",{role:"presentation",cellPadding:0,cellSpacing:0,style:{borderCollapse:"collapse",width:d==="left"?"100%":"auto",maxWidth:"100%",marginLeft:d==="left"?void 0:"auto",marginRight:d==="center"?"auto":void 0},children:g.jsx("tbody",{children:u.map((S,k)=>{const v=x(k);return g.jsxs("tr",{children:[r!=="none"&&g.jsx("td",{style:b,children:v}),g.jsx("td",{style:{...p,paddingBottom:k<u.length-1?`${c}px`:0,width:d==="left"?"100%":void 0},children:S.text})]},k)})})})})}const Gv=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Uv=$().regex(/^rgba?\([^\)]+\)$/i),Wv=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Zv=se("transparent"),Vv=G([Gv,Uv,Wv,Zv]).nullable().optional(),qv=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Yv=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Rr=A({style:A({backgroundColor:Vv,padding:qv,margin:Yv}).optional().nullable(),props:A({direction:N(["row","column"]).optional().nullable(),directionTablet:N(["row","column"]).optional().nullable(),directionMobile:N(["row","column"]).optional().nullable(),gap:m().optional().nullable(),gapTablet:m().optional().nullable(),gapMobile:m().optional().nullable(),alignment:N(["start","center","end","space-between"]).optional().nullable(),alignmentTablet:N(["start","center","end","space-between"]).optional().nullable(),alignmentMobile:N(["start","center","end","space-between"]).optional().nullable(),wrap:L().optional().nullable(),ariaLabel:$().optional().nullable()}).optional().nullable(),responsive:We}),Kn={direction:"row",gap:12,alignment:"start",wrap:!0},go={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},Kv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Jv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Vi(e,t,n,o){const r=e==="row"?go[t]:"flex-start",i=e==="column"?go[t]:"center";return`flex-direction:${e}!important;justify-content:${r}!important;align-items:${i}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;gap:${o}px!important;`}let Xv=0;function Qv({style:e,buttons:t,props:n}){const o=(n==null?void 0:n.direction)??Kn.direction,r=(n==null?void 0:n.directionTablet)??o,i=(n==null?void 0:n.directionMobile)??r,a=(n==null?void 0:n.gap)??Kn.gap,l=(n==null?void 0:n.gapTablet)??a,s=(n==null?void 0:n.gapMobile)??l,c=(n==null?void 0:n.alignment)??Kn.alignment,u=(n==null?void 0:n.alignmentTablet)??c,h=(n==null?void 0:n.alignmentMobile)??u,d=(n==null?void 0:n.wrap)??Kn.wrap,f=(n==null?void 0:n.ariaLabel)??void 0,p=o,b=c,x=a,w=e==null?void 0:e.margin,S=((w==null?void 0:w.left)??0)+((w==null?void 0:w.right)??0),k={display:"flex",flexDirection:p,gap:`${x}px`,justifyContent:p==="row"?go[b]:"flex-start",alignItems:p==="column"?go[b]:"center",flexWrap:p==="row"&&d?"wrap":"nowrap",background:z(e==null?void 0:e.backgroundColor),padding:Kv(e==null?void 0:e.padding),margin:Jv(e==null?void 0:e.margin),boxSizing:"border-box",width:S>0?`max(0px, calc(100% - ${S}px))`:"100%"},v=Z.useMemo(()=>`ahd-bg-${Xv+=1}`,[]),_=Z.useMemo(()=>{const y=`.${v}`;let C="";return(r!==o||u!==c||l!==a)&&(C+=`@media (max-width:${Oe}px){${y}{${Vi(r,u,d,l)}}}`),(i!==r||h!==u||s!==l)&&(C+=`@media (max-width:${Le}px){${y}{${Vi(i,h,d,s)}}}`),C},[v,o,r,i,c,u,h,a,l,s,d]);return g.jsxs("div",{className:`button-group ${v}`,style:k,role:"group","aria-label":f,children:[_&&g.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),t]})}const e1=Rr.shape.props.unwrap().unwrap().shape,t1=A({style:Rr.shape.style,props:A({...e1,childrenIds:ne($()).optional().nullable()}).optional().nullable(),responsive:Rr.shape.responsive});function n1({style:e,props:t}){const{childrenIds:n,...o}=t??{},r=(n??[]).map(i=>g.jsx(Re,{id:i},i));return g.jsx(Qv,{style:e,props:o,buttons:r})}const o1=A({titleChildrenIds:ne($()).optional().nullable(),contentChildrenIds:ne($()).optional().nullable()}),r1=A({responsive:We,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),borderRadius:G([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),marginBottom:m().optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({items:ne(o1).min(1).max(25).optional().nullable(),iconColor:$().optional().nullable(),iconSize:m().optional().nullable(),defaultOpen:L().optional().nullable(),activeBorderColor:$().optional().nullable()}).optional().nullable()});function a1(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}const qi=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e);function i1(e,t){if(!e)return;const n=Math.max(t.top,t.right,t.bottom,t.left),o=e.split(" ").map(r=>Math.max(0,parseFloat(r)-n));return o.length===1?`${o[0]}px`:o.map(r=>`${r}px`).join(" ")}function l1({style:e,props:t}){const n=Z.useMemo(()=>{const C=t==null?void 0:t.items;return!C||C.length===0?{titleChildrenIds:[],contentChildrenIds:[]}:{titleChildrenIds:C[0].titleChildrenIds??[],contentChildrenIds:C[0].contentChildrenIds??[]}},[t==null?void 0:t.items]),o=Z.useMemo(()=>`email-accordion-${Math.random().toString(36).slice(2,9)}`,[]),r=`${o}-content`,i=e==null?void 0:e.padding,a=e==null?void 0:e.margin,l=((a==null?void 0:a.left)??0)+((a==null?void 0:a.right)??0),s=t==null?void 0:t.activeBorderColor,c=e==null?void 0:e.borderColor,u=z(s),h=z(c),d=z(e==null?void 0:e.backgroundColor),f=z("#ffffff"),p=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},b=`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`,x=a1(e==null?void 0:e.borderRadius),w=qi(c),S=qi(s),k=w||S,v={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",borderRadius:x,margin:a?`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`:void 0,boxShadow:"none"};(e==null?void 0:e.borderRadius)!=null&&(v.overflow="hidden"),k?(v.padding=b,w?v.background=c:c&&(v.borderStyle="solid",v.borderColor=h,v.borderWidth=b)):c&&(v.borderStyle="solid",v.borderColor=h,v.borderWidth=b);const _={background:d??(k?f:void 0),borderRadius:k?i1(x,p):void 0,padding:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,overflow:k&&(e==null?void 0:e.borderRadius)!=null?"hidden":void 0},y=[];return s&&(S?y.push(`#${o}:checked + .email-accordion-root { background:${s}!important; border-style:none!important; padding:${b}!important; }`):y.push(`#${o}:checked + .email-accordion-root { background:none!important; border-style:solid!important; border-color:${u}!important; border-width:${b}!important; ${k?"padding:0!important;":""} }`)),g.jsxs("div",{className:"accordion-block",style:{marginBottom:(e==null?void 0:e.marginBottom)!=null?`${e.marginBottom}px`:"5px"},children:[g.jsx("style",{children:`
247
247
  .email-accordion-root { width:100%; }
248
248
  .email-accordion-toggle { display:none; }
249
249
  .email-accordion-label { display:flex; align-items:center; justify-content:space-between; gap:8px; cursor:pointer; padding:4px 12px; background:transparent; box-shadow:none; outline:none; }
@@ -254,50 +254,50 @@ ${y}
254
254
  .email-accordion-toggle:checked + .email-accordion-root .email-accordion-arrow { transform: rotate(180deg); }
255
255
  ${y.join(`
256
256
  `)}
257
- `}),g.jsx("input",{id:o,className:"email-accordion-toggle",type:"checkbox",role:"switch","aria-label":"Toggle section","aria-controls":r,defaultChecked:(t==null?void 0:t.defaultOpen)??!1}),g.jsx("div",{className:"email-accordion-root",style:w,children:g.jsxs("div",{className:"email-accordion-inner",style:C,children:[g.jsxs("label",{htmlFor:o,className:"email-accordion-label",children:[g.jsx("div",{className:"title",children:n.titleChildrenIds.map(_=>g.jsx(Ae,{id:_},_))}),g.jsx("span",{className:"email-accordion-arrow","aria-hidden":"true",style:{color:j(t==null?void 0:t.iconColor)},children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:(t==null?void 0:t.iconSize)??14,height:(t==null?void 0:t.iconSize)??14,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:g.jsx("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"})})})]}),g.jsx("div",{id:r,className:"email-accordion-content",role:"region",children:n.contentChildrenIds.map(_=>g.jsx(Ae,{id:_},_))})]})})]})}const i1=A({label:$().optional().nullable(),cardChildrenIds:te($()).optional().nullable(),detailChildrenIds:te($()).optional().nullable()}),l1=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:m().optional().nullable(),borderRadius:D([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),cardGap:m().optional().nullable(),equalCardWidth:O().optional().nullable(),cardBgColor:$().optional().nullable(),cardBorderColor:$().optional().nullable(),cardBorderWidth:m().optional().nullable(),cardBorderRadius:m().optional().nullable(),cardPadding:m().optional().nullable(),cardShadow:$().optional().nullable(),cardTextColor:$().optional().nullable(),cardFontSize:m().optional().nullable(),cardFontFamily:$().optional().nullable(),cardFontWeight:$().optional().nullable(),cardTextAlign:N(["left","center","right"]).optional().nullable(),cardHoverBgColor:$().optional().nullable(),cardHoverShadow:$().optional().nullable(),activeCardBgColor:$().optional().nullable(),activeCardBorderColor:$().optional().nullable(),activeCardShadow:$().optional().nullable(),activeCardTextColor:$().optional().nullable(),arrowColor:$().optional().nullable(),arrowActiveColor:$().optional().nullable(),arrowSize:m().optional().nullable(),detailBgColor:$().optional().nullable(),detailBorderColor:$().optional().nullable(),detailBorderWidth:m().optional().nullable(),detailBorderRadius:m().optional().nullable(),detailPadding:m().optional().nullable(),detailShadow:$().optional().nullable(),detailGap:m().optional().nullable(),rightCardWidth:m().optional().nullable(),cardListWidth:m().optional().nullable(),panelGap:m().optional().nullable()}).optional().nullable(),props:A({items:te(i1).min(1).max(10).optional().nullable(),defaultOpenIndex:m().optional().nullable(),accordionEnabled:O().optional().nullable(),detailPosition:N(["bottom","right"]).optional().nullable()}).optional().nullable()});function s1(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function c1({style:e,props:t}){const n=U.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Plan 1",cardChildrenIds:[],detailChildrenIds:[]}],[t==null?void 0:t.items]),o=U.useMemo(()=>`pacc-${Math.random().toString(36).slice(2,9)}`,[]),r=(t==null?void 0:t.accordionEnabled)??!1,i=(t==null?void 0:t.defaultOpenIndex)??null,a=(t==null?void 0:t.detailPosition)??"bottom",l=(e==null?void 0:e.cardGap)??16,s=(e==null?void 0:e.equalCardWidth)??!0,c=j((e==null?void 0:e.cardBgColor)??"#ffffff"),u=j((e==null?void 0:e.cardBorderColor)??"rgba(0,0,0,0.12)"),h=(e==null?void 0:e.cardBorderWidth)??1,d=(e==null?void 0:e.cardBorderRadius)??12,f=(e==null?void 0:e.cardPadding)??16,p=(e==null?void 0:e.cardShadow)??"none",b=j((e==null?void 0:e.cardTextColor)??"inherit"),x=(e==null?void 0:e.cardFontSize)??null,v=(e==null?void 0:e.cardFontFamily)??"inherit",S=(e==null?void 0:e.cardFontWeight)??"inherit",k=(e==null?void 0:e.cardTextAlign)??"left",w=j((e==null?void 0:e.cardHoverBgColor)??null),C=(e==null?void 0:e.cardHoverShadow)??"0 2px 6px rgba(0,0,0,0.07)",y=j(e==null?void 0:e.activeCardBgColor)??c,_=j(e==null?void 0:e.activeCardBorderColor)??u,I=(e==null?void 0:e.activeCardShadow)??p,R=j(e==null?void 0:e.activeCardTextColor)??b,T=j((e==null?void 0:e.arrowColor)??"currentColor"),P=j(e==null?void 0:e.arrowActiveColor)??T,M=(e==null?void 0:e.arrowSize)??13,z=j((e==null?void 0:e.detailBgColor)??"#f8fafc"),F=j((e==null?void 0:e.detailBorderColor)??"rgba(0,0,0,0.08)"),H=(e==null?void 0:e.detailBorderWidth)??1,V=(e==null?void 0:e.detailBorderRadius)??12,q=(e==null?void 0:e.detailPadding)??24,he=(e==null?void 0:e.detailShadow)??"none",ae=(e==null?void 0:e.detailGap)??12,pe=(e==null?void 0:e.rightCardWidth)??280,ee=e==null?void 0:e.padding,se={width:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`${e.borderWidth??1}px solid ${e.borderColor}`:void 0,borderRadius:s1(e==null?void 0:e.borderRadius),padding:ee?`${ee.top}px ${ee.right}px ${ee.bottom}px ${ee.left}px`:void 0},fe=s?`repeat(${n.length}, minmax(0, 1fr))`:`repeat(${n.length}, minmax(0, auto))`,Y=x?`${x}px`:"inherit";if(!r){const K=`
258
- .pacc-grid{display:grid;grid-template-columns:${fe};gap:${l}px;width:100%;box-sizing:border-box}
259
- .pacc-grid-card{background:${c};border:${h}px solid ${u};border-radius:${d}px;padding:${f}px;box-sizing:border-box;box-shadow:${p};color:${b};font-size:${Y};font-family:${v};font-weight:${S};text-align:${k}}
260
- ${w?`.pacc-grid-card:hover{background:${w};box-shadow:${C}}`:`.pacc-grid-card:hover{box-shadow:${C}}`}
257
+ `}),g.jsx("input",{id:o,className:"email-accordion-toggle",type:"checkbox",role:"switch","aria-label":"Toggle section","aria-controls":r,defaultChecked:(t==null?void 0:t.defaultOpen)??!1}),g.jsx("div",{className:"email-accordion-root",style:v,children:g.jsxs("div",{className:"email-accordion-inner",style:_,children:[g.jsxs("label",{htmlFor:o,className:"email-accordion-label",children:[g.jsx("div",{className:"title",children:n.titleChildrenIds.map(C=>g.jsx(Re,{id:C},C))}),g.jsx("span",{className:"email-accordion-arrow","aria-hidden":"true",style:{color:z(t==null?void 0:t.iconColor)},children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:(t==null?void 0:t.iconSize)??14,height:(t==null?void 0:t.iconSize)??14,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:g.jsx("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"})})})]}),g.jsx("div",{id:r,className:"email-accordion-content",role:"region",children:n.contentChildrenIds.map(C=>g.jsx(Re,{id:C},C))})]})})]})}const s1=A({label:$().optional().nullable(),cardChildrenIds:ne($()).optional().nullable(),detailChildrenIds:ne($()).optional().nullable()}),c1=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:m().optional().nullable(),borderRadius:G([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),cardGap:m().optional().nullable(),equalCardWidth:L().optional().nullable(),cardBgColor:$().optional().nullable(),cardBorderColor:$().optional().nullable(),cardBorderWidth:m().optional().nullable(),cardBorderRadius:m().optional().nullable(),cardPadding:m().optional().nullable(),cardShadow:$().optional().nullable(),cardTextColor:$().optional().nullable(),cardFontSize:m().optional().nullable(),cardFontFamily:$().optional().nullable(),cardFontWeight:$().optional().nullable(),cardTextAlign:N(["left","center","right"]).optional().nullable(),cardHoverBgColor:$().optional().nullable(),cardHoverShadow:$().optional().nullable(),activeCardBgColor:$().optional().nullable(),activeCardBorderColor:$().optional().nullable(),activeCardShadow:$().optional().nullable(),activeCardTextColor:$().optional().nullable(),arrowColor:$().optional().nullable(),arrowActiveColor:$().optional().nullable(),arrowSize:m().optional().nullable(),detailBgColor:$().optional().nullable(),detailBorderColor:$().optional().nullable(),detailBorderWidth:m().optional().nullable(),detailBorderRadius:m().optional().nullable(),detailPadding:m().optional().nullable(),detailShadow:$().optional().nullable(),detailGap:m().optional().nullable(),rightCardWidth:m().optional().nullable(),cardListWidth:m().optional().nullable(),panelGap:m().optional().nullable()}).optional().nullable(),props:A({items:ne(s1).min(1).max(10).optional().nullable(),defaultOpenIndex:m().optional().nullable(),accordionEnabled:L().optional().nullable(),detailPosition:N(["bottom","right"]).optional().nullable()}).optional().nullable()});function u1(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function d1({style:e,props:t}){const n=Z.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Plan 1",cardChildrenIds:[],detailChildrenIds:[]}],[t==null?void 0:t.items]),o=Z.useMemo(()=>`pacc-${Math.random().toString(36).slice(2,9)}`,[]),r=(t==null?void 0:t.accordionEnabled)??!1,i=(t==null?void 0:t.defaultOpenIndex)??null,a=(t==null?void 0:t.detailPosition)??"bottom",l=(e==null?void 0:e.cardGap)??16,s=(e==null?void 0:e.equalCardWidth)??!0,c=z((e==null?void 0:e.cardBgColor)??"#ffffff"),u=z((e==null?void 0:e.cardBorderColor)??"rgba(0,0,0,0.12)"),h=(e==null?void 0:e.cardBorderWidth)??1,d=(e==null?void 0:e.cardBorderRadius)??12,f=(e==null?void 0:e.cardPadding)??16,p=(e==null?void 0:e.cardShadow)??"none",b=z((e==null?void 0:e.cardTextColor)??"inherit"),x=(e==null?void 0:e.cardFontSize)??null,w=(e==null?void 0:e.cardFontFamily)??"inherit",S=(e==null?void 0:e.cardFontWeight)??"inherit",k=(e==null?void 0:e.cardTextAlign)??"left",v=z((e==null?void 0:e.cardHoverBgColor)??null),_=(e==null?void 0:e.cardHoverShadow)??"0 2px 6px rgba(0,0,0,0.07)",y=z(e==null?void 0:e.activeCardBgColor)??c,C=z(e==null?void 0:e.activeCardBorderColor)??u,I=(e==null?void 0:e.activeCardShadow)??p,R=z(e==null?void 0:e.activeCardTextColor)??b,E=z((e==null?void 0:e.arrowColor)??"currentColor"),P=z(e==null?void 0:e.arrowActiveColor)??E,M=(e==null?void 0:e.arrowSize)??13,O=z((e==null?void 0:e.detailBgColor)??"#f8fafc"),H=z((e==null?void 0:e.detailBorderColor)??"rgba(0,0,0,0.08)"),D=(e==null?void 0:e.detailBorderWidth)??1,V=(e==null?void 0:e.detailBorderRadius)??12,F=(e==null?void 0:e.detailPadding)??24,q=(e==null?void 0:e.detailShadow)??"none",Y=(e==null?void 0:e.detailGap)??12,ie=(e==null?void 0:e.rightCardWidth)??280,J=e==null?void 0:e.padding,re={width:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`${e.borderWidth??1}px solid ${e.borderColor}`:void 0,borderRadius:u1(e==null?void 0:e.borderRadius),padding:J?`${J.top}px ${J.right}px ${J.bottom}px ${J.left}px`:void 0},me=s?`repeat(${n.length}, minmax(0, 1fr))`:`repeat(${n.length}, minmax(0, auto))`,ae=x?`${x}px`:"inherit";if(!r){const X=`
258
+ .pacc-grid{display:grid;grid-template-columns:${me};gap:${l}px;width:100%;box-sizing:border-box}
259
+ .pacc-grid-card{background:${c};border:${h}px solid ${u};border-radius:${d}px;padding:${f}px;box-sizing:border-box;box-shadow:${p};color:${b};font-size:${ae};font-family:${w};font-weight:${S};text-align:${k}}
260
+ ${v?`.pacc-grid-card:hover{background:${v};box-shadow:${_}}`:`.pacc-grid-card:hover{box-shadow:${_}}`}
261
261
  @media(max-width:640px){.pacc-grid{grid-template-columns:1fr}}
262
- `;return g.jsxs("div",{style:se,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:K}}),g.jsx("div",{className:"pacc-grid",children:n.map((L,B)=>g.jsx("div",{className:"pacc-grid-card",children:(L.cardChildrenIds??[]).map(Z=>g.jsx(Ae,{id:Z},Z))},B))})]})}if(a==="bottom"){const K=n.map((B,Z)=>{const W=`#${o}-cb${Z}:checked ~ .pacc-wrap`;return`${W}{grid-template-columns:1fr}`+n.map((X,ge)=>ge!==Z?`${W} .pacc-item:nth-child(${ge+1}){display:none}`:"").join("")+`${W} .pacc-item:nth-child(${Z+1}){display:block}${W} .pacc-item:nth-child(${Z+1}) .pacc-card{background:${y};border-color:${_};box-shadow:${I};color:${R}}${W} .pacc-item:nth-child(${Z+1}) .pacc-arrow{transform:rotate(180deg);color:${P}}${W} .pacc-item:nth-child(${Z+1}) .pacc-detail{display:block}`}).join(""),L=`
262
+ `;return g.jsxs("div",{style:re,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:X}}),g.jsx("div",{className:"pacc-grid",children:n.map((j,B)=>g.jsx("div",{className:"pacc-grid-card",children:(j.cardChildrenIds??[]).map(K=>g.jsx(Re,{id:K},K))},B))})]})}if(a==="bottom"){const X=n.map((B,K)=>{const W=`#${o}-cb${K}:checked ~ .pacc-wrap`;return`${W}{grid-template-columns:1fr}`+n.map((te,fe)=>fe!==K?`${W} .pacc-item:nth-child(${fe+1}){display:none}`:"").join("")+`${W} .pacc-item:nth-child(${K+1}){display:block}${W} .pacc-item:nth-child(${K+1}) .pacc-card{background:${y};border-color:${C};box-shadow:${I};color:${R}}${W} .pacc-item:nth-child(${K+1}) .pacc-arrow{transform:rotate(180deg);color:${P}}${W} .pacc-item:nth-child(${K+1}) .pacc-detail{display:block}`}).join(""),j=`
263
263
  .pacc-cb{position:absolute!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}
264
- .pacc-wrap{display:grid;grid-template-columns:${fe};gap:${l}px;width:100%;box-sizing:border-box}
264
+ .pacc-wrap{display:grid;grid-template-columns:${me};gap:${l}px;width:100%;box-sizing:border-box}
265
265
  .pacc-item{box-sizing:border-box}
266
- .pacc-card{background:${c};border:${h}px solid ${u};border-radius:${d}px;padding:${f}px;padding-right:${f+28}px;box-sizing:border-box;display:flex;flex-direction:column;position:relative;cursor:pointer;transition:background 180ms ease,border-color 180ms ease,box-shadow 180ms ease;width:100%;text-align:${k};color:${b};font-size:${Y};font-family:${v};font-weight:${S};box-shadow:${p}}
267
- ${w?`.pacc-card:hover{background:${w};box-shadow:${C}}`:`.pacc-card:hover{box-shadow:${C}}`}
268
- .pacc-arrow{position:absolute;top:14px;right:12px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;transition:transform 200ms ease,color 200ms ease;pointer-events:none;color:${T}}
266
+ .pacc-card{background:${c};border:${h}px solid ${u};border-radius:${d}px;padding:${f}px;padding-right:${f+28}px;box-sizing:border-box;display:flex;flex-direction:column;position:relative;cursor:pointer;transition:background 180ms ease,border-color 180ms ease,box-shadow 180ms ease;width:100%;text-align:${k};color:${b};font-size:${ae};font-family:${w};font-weight:${S};box-shadow:${p}}
267
+ ${v?`.pacc-card:hover{background:${v};box-shadow:${_}}`:`.pacc-card:hover{box-shadow:${_}}`}
268
+ .pacc-arrow{position:absolute;top:14px;right:12px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;transition:transform 200ms ease,color 200ms ease;pointer-events:none;color:${E}}
269
269
  .pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${M}px;line-height:1}
270
- .pacc-detail{display:none;margin-top:${ae}px;background:${z};border:${H}px solid ${F};border-radius:${V}px;padding:${q}px;box-sizing:border-box;box-shadow:${he}}
270
+ .pacc-detail{display:none;margin-top:${Y}px;background:${O};border:${D}px solid ${H};border-radius:${V}px;padding:${F}px;box-sizing:border-box;box-shadow:${q}}
271
271
  @media(max-width:640px){.pacc-wrap{grid-template-columns:1fr!important}}
272
- ${K}
273
- `;return g.jsxs("div",{style:se,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:L}}),n.map((B,Z)=>g.jsx("input",{type:"radio",name:o,id:`${o}-cb${Z}`,className:"pacc-cb",defaultChecked:Z===i},Z)),g.jsx("div",{className:"pacc-wrap",children:n.map((B,Z)=>g.jsxs("div",{className:"pacc-item",children:[g.jsxs("label",{htmlFor:`${o}-cb${Z}`,className:"pacc-card",children:[(B.cardChildrenIds??[]).map(W=>g.jsx(Ae,{id:W},W)),g.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:g.jsx("i",{className:"bi bi-chevron-down"})})]}),g.jsx("div",{className:"pacc-detail",children:(B.detailChildrenIds??[]).map(W=>g.jsx(Ae,{id:W},W))})]},Z))})]})}const de=n.map((K,L)=>{const B=`#${o}-cb${L}:checked ~ .pacc-wrap`;return`${B}{grid-template-columns:1fr}`+n.map((Z,W)=>W!==L?`${B} .pacc-item:nth-child(${W+1}){display:none}`:"").join("")+`${B} .pacc-item:nth-child(${L+1}){display:flex;flex-direction:row;gap:${ae}px;align-items:flex-start}${B} .pacc-item:nth-child(${L+1}) .pacc-card{flex-shrink:0;width:${pe}px;background:${y};border-color:${_};box-shadow:${I};color:${R}}${B} .pacc-item:nth-child(${L+1}) .pacc-arrow{transform:rotate(90deg);color:${P}}${B} .pacc-item:nth-child(${L+1}) .pacc-detail{display:block;flex:1;min-width:0}`}).join(""),ve=`
272
+ ${X}
273
+ `;return g.jsxs("div",{style:re,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:j}}),n.map((B,K)=>g.jsx("input",{type:"radio",name:o,id:`${o}-cb${K}`,className:"pacc-cb",defaultChecked:K===i},K)),g.jsx("div",{className:"pacc-wrap",children:n.map((B,K)=>g.jsxs("div",{className:"pacc-item",children:[g.jsxs("label",{htmlFor:`${o}-cb${K}`,className:"pacc-card",children:[(B.cardChildrenIds??[]).map(W=>g.jsx(Re,{id:W},W)),g.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:g.jsx("i",{className:"bi bi-chevron-down"})})]}),g.jsx("div",{className:"pacc-detail",children:(B.detailChildrenIds??[]).map(W=>g.jsx(Re,{id:W},W))})]},K))})]})}const Se=n.map((X,j)=>{const B=`#${o}-cb${j}:checked ~ .pacc-wrap`;return`${B}{grid-template-columns:1fr}`+n.map((K,W)=>W!==j?`${B} .pacc-item:nth-child(${W+1}){display:none}`:"").join("")+`${B} .pacc-item:nth-child(${j+1}){display:flex;flex-direction:row;gap:${Y}px;align-items:flex-start}${B} .pacc-item:nth-child(${j+1}) .pacc-card{flex-shrink:0;width:${ie}px;background:${y};border-color:${C};box-shadow:${I};color:${R}}${B} .pacc-item:nth-child(${j+1}) .pacc-arrow{transform:rotate(90deg);color:${P}}${B} .pacc-item:nth-child(${j+1}) .pacc-detail{display:block;flex:1;min-width:0}`}).join(""),xe=`
274
274
  .pacc-cb{position:absolute!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}
275
- .pacc-wrap{display:grid;grid-template-columns:${fe};gap:${l}px;width:100%;box-sizing:border-box}
275
+ .pacc-wrap{display:grid;grid-template-columns:${me};gap:${l}px;width:100%;box-sizing:border-box}
276
276
  .pacc-item{box-sizing:border-box}
277
- .pacc-card{background:${c};border:${h}px solid ${u};border-radius:${d}px;padding:${f}px;padding-right:${f+28}px;box-sizing:border-box;display:flex;flex-direction:column;position:relative;cursor:pointer;transition:background 180ms ease,border-color 180ms ease,box-shadow 180ms ease;width:100%;text-align:${k};color:${b};font-size:${Y};font-family:${v};font-weight:${S};box-shadow:${p}}
278
- ${w?`.pacc-card:hover{background:${w};box-shadow:${C}}`:`.pacc-card:hover{box-shadow:${C}}`}
279
- .pacc-arrow{position:absolute;top:14px;right:12px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;transition:transform 200ms ease,color 200ms ease;pointer-events:none;color:${T}}
277
+ .pacc-card{background:${c};border:${h}px solid ${u};border-radius:${d}px;padding:${f}px;padding-right:${f+28}px;box-sizing:border-box;display:flex;flex-direction:column;position:relative;cursor:pointer;transition:background 180ms ease,border-color 180ms ease,box-shadow 180ms ease;width:100%;text-align:${k};color:${b};font-size:${ae};font-family:${w};font-weight:${S};box-shadow:${p}}
278
+ ${v?`.pacc-card:hover{background:${v};box-shadow:${_}}`:`.pacc-card:hover{box-shadow:${_}}`}
279
+ .pacc-arrow{position:absolute;top:14px;right:12px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;transition:transform 200ms ease,color 200ms ease;pointer-events:none;color:${E}}
280
280
  .pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${M}px;line-height:1}
281
- .pacc-detail{display:none;background:${z};border:${H}px solid ${F};border-radius:${V}px;padding:${q}px;box-sizing:border-box;box-shadow:${he}}
281
+ .pacc-detail{display:none;background:${O};border:${D}px solid ${H};border-radius:${V}px;padding:${F}px;box-sizing:border-box;box-shadow:${q}}
282
282
  @media(max-width:640px){.pacc-wrap{grid-template-columns:1fr!important}.pacc-item.pacc-item--open{flex-direction:column!important}.pacc-item.pacc-item--open .pacc-card{width:100%!important}}
283
- ${de}
284
- `;return g.jsxs("div",{style:se,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:ve}}),n.map((K,L)=>g.jsx("input",{type:"radio",name:o,id:`${o}-cb${L}`,className:"pacc-cb",defaultChecked:L===i},L)),g.jsx("div",{className:"pacc-wrap",children:n.map((K,L)=>g.jsxs("div",{className:"pacc-item",children:[g.jsxs("label",{htmlFor:`${o}-cb${L}`,className:"pacc-card",children:[(K.cardChildrenIds??[]).map(B=>g.jsx(Ae,{id:B},B)),g.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:g.jsx("i",{className:"bi bi-chevron-right"})})]}),g.jsx("div",{className:"pacc-detail",children:(K.detailChildrenIds??[]).map(B=>g.jsx(Ae,{id:B},B))})]},L))})]})}const u1=160,d1=A({label:$().optional().nullable(),contentChildrenIds:te($()).optional().nullable()}),h1=A({responsive:Ge,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:D([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),tabActiveColor:$().optional().nullable(),tabActiveBgColor:$().optional().nullable(),tabInactiveTextColor:$().optional().nullable(),tabInactiveBgColor:$().optional().nullable(),tabInactiveBorderColor:$().optional().nullable(),tabInactiveBorderWidth:m().optional().nullable(),tabTextColor:$().optional().nullable(),tabBgColor:$().optional().nullable(),tabBorderRadius:m().optional().nullable(),tabGap:m().optional().nullable(),contentGap:m().optional().nullable(),navBorderColor:$().optional().nullable(),navWidth:m().optional().nullable(),fontSize:D([$(),m()]).optional().nullable(),lineHeight:D([$(),m()]).optional().nullable(),activeFontSize:D([$(),m()]).optional().nullable(),showActiveBorder:O().optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable()}).optional().nullable(),props:A({orientation:N(["horizontal","vertical"]).optional().nullable(),orientationTablet:N(["horizontal","vertical"]).optional().nullable(),orientationMobile:N(["horizontal","vertical"]).optional().nullable(),behavior:N(["showSelectedSection","scrollToSelectedSection"]).optional().nullable(),tabsAlign:N(["left","center","right"]).optional().nullable(),dropdown:O().optional().nullable(),dropdownTablet:O().optional().nullable(),dropdownMobile:O().optional().nullable(),activeTabIndex:m().optional().nullable(),stickyNav:O().optional().nullable(),items:te(d1).min(1).max(20).optional().nullable()}).optional().nullable()});function f1(e){if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function m1(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function qi(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const p1={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},g1={display:"inline-block",minWidth:0,maxWidth:"100%",overflowWrap:"break-word",wordBreak:"break-word"};function mt(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function po(e,t=!1){const n=t?"!important":"";return e?mt(e)?`background:${e}${n};background-color:transparent${n}`:`background-color:${e}${n}`:`background-color:transparent${n}`}function go(e,t=!1){const n=t?"!important":"";return mt(e)?`color:transparent${n}`:`color:${e}${n}`}function bo(e,t=!1){const n=t?"!important":"";return mt(e)?`background-image:${e}${n};-webkit-background-clip:text${n};background-clip:text${n};-webkit-text-fill-color:transparent${n};color:transparent${n}`:""}function Ir(e,t,n,o=!1){const r=o?"!important":"";return mt(e)?`border-${n}-style:solid${r};border-${n}-width:${t}${r};border-image-source:${e}${r};border-image-slice:${n==="bottom"?"0 0 1 0 fill":n==="left"?"0 0 0 1 fill":"0 1 0 0 fill"}${r}`:`border-${n}-color:${e}${r}`}function b1(e,t,n=!1){const o=n?"!important":"";return e?mt(e)?`box-sizing:border-box${o};border:${t}px solid transparent${o};border-image-source:${e}${o};border-image-slice:1${o};box-shadow:none${o}`:`box-shadow:inset 0 0 0 ${t}px ${e}${o}`:`box-shadow:none${o}`}function Vt(e,t,n,o,r,i,a,l){const s=mt(l),c=s?Ir(l,n,"bottom"):`border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent)`,u=s?Ir(l,n,"right"):`border-right:${n} solid var(--ahd-tabs-nav-border,transparent)`;if(t==="horizontal")return`${e}{display:block}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;gap:${o};align-items:center;justify-content:${i};width:100%;${c};border-right:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{display:inline-flex;border-bottom:3px solid transparent;border-left:0;margin-bottom:calc(-1 * ${n});margin-right:0}${e} > .ahd-tabs-panels{width:100%;margin-top:${r};margin-left:0}`;const h=`${a??u1}px`,d=`var(--ahd-tabs-nav-width,${h})`,f=`width:var(--ahd-tabs-nav-width,${h});max-width:var(--ahd-tabs-nav-width,${h})`;return`${e}{display:grid;grid-template-columns:${d} minmax(0,1fr);column-gap:${r};align-items:start}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;grid-column:1;grid-row:1;align-self:start;${f};min-width:0;overflow:visible;${u};border-bottom:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{display:flex;border-left:3px solid transparent;border-bottom:0;margin-right:calc(-1 * ${n});margin-bottom:${o};white-space:normal!important;word-break:break-word;overflow-wrap:break-word;min-width:0;max-width:100%;box-sizing:border-box}${e} > .ahd-tabs-panels{grid-column:2;grid-row:1;width:100%;margin-top:0}`}function x1(e,t,n,o,r,i,a,l,s,c,u,h,d,f,p,b,x=1){let v="";for(let C=0;C<p;C++){const y=`${e} #${f}-r${C}:checked ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${C+1})`;v+=`${y}{${po(a,!0)};${go(l,!0)};box-shadow:none!important;font-weight:600!important}${y} > .ahd-tabs-label-text{${bo(l,!0)}}${y}:hover{${po(a,!0)}}`}const S=`${e} > .ahd-tabs-dd-wrap`,k=`${e}.ahd-tabs-dd-open > .ahd-tabs-dd-wrap,${S}:focus-within`,w=s?`${S} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{font-size:${s}!important}`:"";return`${e}{display:block!important}${S}{display:block!important;position:relative!important;width:100%!important}${S} > .ahd-tabs-dd-trigger{display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%;box-sizing:border-box;padding:10px 14px;border:1px solid ${t};border-radius:${o};background:${r};color:${i};font:inherit;text-align:left;cursor:pointer;appearance:none;-webkit-appearance:none}${S} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}`+w+`${S} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{display:inline-block;width:8px;height:8px;flex-shrink:0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-2px;opacity:.7;transition:transform .15s ease}${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{transform:rotate(-135deg);margin-top:2px}${S} > .ahd-tabs-nav{position:absolute!important;top:calc(100% + 4px)!important;left:0!important;right:0!important;z-index:30!important;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;overflow:auto!important;max-height:260px!important;width:auto!important;gap:0!important;border:1px solid ${t}!important;border-radius:${o}!important;background:#fff!important;box-shadow:0 6px 20px rgba(0,0,0,.12)!important;padding:4px!important;align-items:stretch!important;justify-content:flex-start!important;visibility:hidden;opacity:0;pointer-events:none;transform:translateY(-4px);transition:opacity .12s ease,transform .12s ease,visibility .12s}${k} > .ahd-tabs-nav{visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:translateY(0)!important}${S} > .ahd-tabs-nav > .ahd-tabs-label{display:flex!important;justify-content:flex-start!important;width:100%!important;box-sizing:border-box;border:0!important;border-radius:6px!important;margin:0!important;padding:9px 12px!important;${go(c??"inherit",!0)};background:${u??"transparent"}!important;box-shadow:${h}!important`+(b?`;border:${x}px solid transparent!important;border-image-source:${b}!important;border-image-slice:1!important`:"")+`}${S} > .ahd-tabs-nav > .ahd-tabs-label > .ahd-tabs-label-text{${bo(c??"inherit",!0)}}${S} > .ahd-tabs-nav > .ahd-tabs-label + .ahd-tabs-label{margin-top:${d}!important}${S} > .ahd-tabs-nav > .ahd-tabs-label:hover{background:${u??"rgba(0,0,0,.05)"}!important}${e} > .ahd-tabs-panels{position:static!important;width:100%!important;margin:${n} 0 0 0!important;grid-column:auto!important}`+v}function qo(e,t){return`${e} > .ahd-tabs-dd-wrap{display:contents!important;position:static!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:static!important;top:auto!important;z-index:auto!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;max-height:none!important;overflow:visible!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:none!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{border-radius:${t}!important;margin-top:0!important;box-shadow:none!important}`}function v1({style:e,props:t}){const n=(t==null?void 0:t.orientation)??"horizontal",o=(t==null?void 0:t.orientationTablet)??n,r=(t==null?void 0:t.orientationMobile)??"vertical",a=((t==null?void 0:t.behavior)??"showSelectedSection")==="scrollToSelectedSection",l=(t==null?void 0:t.stickyNav)??!1,s=U.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Tab 1",contentChildrenIds:[]}],[t==null?void 0:t.items]),c=U.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),u=j(e==null?void 0:e.tabActiveColor),h=j(e==null?void 0:e.tabActiveBgColor),d=j(e==null?void 0:e.tabInactiveTextColor),f=j(e==null?void 0:e.tabInactiveBgColor),p=j(e==null?void 0:e.tabInactiveBorderColor),b=(e==null?void 0:e.tabInactiveBorderWidth)??1,x=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"0px",v=j(e==null?void 0:e.tabTextColor),S=j((e==null?void 0:e.tabBgColor)??"transparent"),k=j(e==null?void 0:e.navBorderColor),w=k?"2px":"0px",C=(e==null?void 0:e.tabGap)!=null?`${e.tabGap}px`:"0px",y=(e==null?void 0:e.contentGap)!=null?`${e.contentGap}px`:"0px",_=(e==null?void 0:e.navWidth)!=null?e.navWidth:160,I="var(--ahd-tabs-tab-gap,"+C+")",R="var(--ahd-tabs-content-gap,"+y+")",T=(e==null?void 0:e.activeFontSize)!=null?qi(e.activeFontSize):void 0,M=((e==null?void 0:e.showActiveBorder)??!0)&&!h?u||"currentColor":"transparent",z=(t==null?void 0:t.tabsAlign)??"left",F=z==="center"?"center":z==="right"?"flex-end":"flex-start",H=(t==null?void 0:t.dropdown)??!1,V=(t==null?void 0:t.dropdownTablet)??H,q=(t==null?void 0:t.dropdownMobile)??V,he=e==null?void 0:e.padding,ae=e==null?void 0:e.margin,pe=((ae==null?void 0:ae.left)??0)+((ae==null?void 0:ae.right)??0),ee=mt(e==null?void 0:e.borderColor),se=e!=null&&e.borderColor?ee?{border:"1px solid transparent",borderImageSource:e.borderColor,borderImageSlice:1}:{border:`1px solid ${e.borderColor}`}:{},fe={width:pe>0?`calc(100% - ${pe}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,...se,borderRadius:m1(e==null?void 0:e.borderRadius),padding:he?`${he.top}px ${he.right}px ${he.bottom}px ${he.left}px`:void 0,margin:ae?`${ae.top}px ${ae.right}px ${ae.bottom}px ${ae.left}px`:void 0,fontFamily:f1(e==null?void 0:e.fontFamily),fontSize:qi(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,lineHeight:(e==null?void 0:e.lineHeight)??1.5,color:v,"--ahd-tabs-nav-border":k??"transparent"},Y=()=>s.map((L,B)=>g.jsx("input",{type:"radio",id:`${c}-r${B}`,name:c,className:"ahd-tabs-radio",defaultChecked:B===0,style:p1},B)),de=U.useMemo(()=>{const L=`.${c}`,B=u||"currentColor",Z=v||"inherit",W=`${L} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label`,X=`${W} > .ahd-tabs-label-text`,ge=`${L} > .ahd-tabs-panels > .ahd-tabs-panel`,Ue=d??Z;let ce=`${W}{${go(Ue)};${po(f)};${b1(p,b)};border-radius:${x}}${X}{${bo(Ue)}}`+(a?"":`${ge}{display:none}`)+`${L} > .ahd-tabs-dd-wrap{display:contents}${L} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none}${L} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item{display:none}`;s.forEach((Ne,Fe)=>{const Le=`#${c}-r${Fe}:checked`,kt=`${Le} ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${Fe+1})`,gt=`${Le} ~ .ahd-tabs-panels > .ahd-tabs-panel:nth-of-type(${Fe+1})`,at=mt(M),Ze=`${go(B,!0)};${po(h,!0)};box-shadow:none!important`+(at?`;${Ir(M,"3px",n==="vertical"?"left":"bottom",!0)}`:`;border-left-color:var(--ahd-tabs-active-border-color,${M})!important;border-bottom-color:var(--ahd-tabs-active-border-color,${M})!important`);ce+=`${kt}{${Ze}}`,ce+=`${kt} > .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${T??"inherit"})!important;${bo(B,!0)}}`,a||(ce+=`${gt}{display:block!important}`),ce+=`${Le} ~ .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item:nth-of-type(${Fe+1}){display:inline}`}),ce+=Vt(L,n,w,I,R,F,_!=null?String(_):void 0,k??void 0),o!==n&&(ce+=`${Yo}{${Vt(L,o,w,I,R,F,_!=null?String(_):void 0,k??void 0)}}`),r!==o&&(ce+=`${Ko}{${Vt(L,r,w,I,R,F,_!=null?String(_):void 0,k??void 0)}}`);const Te=p||k||"#d0d5dd",ue=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"8px",Ie=j((e==null?void 0:e.tabBgColor)??"#fff")??"#fff",We=v??"inherit",Re=h??"transparent",Be=u??"inherit",De=p?mt(p)?"none":`inset 0 0 0 ${b}px ${p}`:"none",Q=mt(p)?p:void 0,ie=x1(L,Te,R,ue,Ie,We,Re,Be,T,d,f,De,I,c,s.length,Q,b);return l&&(ce+=`${L} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> ${L}){position:sticky;top:0;z-index:50}`),H?(ce+=ie,V||(ce+=`${Yo}{${qo(L,x)}${Vt(L,o,w,I,R,F,_!=null?String(_):void 0,k??void 0)}}`),!q&&V&&(ce+=`${Ko}{${qo(L,x)}${Vt(L,r,w,I,R,F,_!=null?String(_):void 0,k??void 0)}}`)):(V&&(ce+=`${Yo}{${ie}}`),q!==V&&(ce+=`${Ko}{${q?ie:qo(L,x)+Vt(L,r,w,I,R,F,_!=null?String(_):void 0,k??void 0)}}`)),ce},[s,c,u,h,x,v,T,M,n,o,r,a,w,k,_,I,R,F,d,f,p,b,H,V,q,l]),ve=L=>a?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:L===0?void 0:R}:{display:L===0?"block":"none",width:"100%",minWidth:0,overflow:"hidden"},K=n==="vertical"?"ahd-tabs-o-v":"ahd-tabs-o-h";return g.jsxs("div",{className:`${c} ahd-tabs ${K}${l?" ahd-tabs-sticky":""}${a?" ahd-tabs-scroll-sections":""}`,style:fe,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:de}}),Y(),g.jsxs("div",{className:"ahd-tabs-dd-wrap",children:[g.jsxs("button",{type:"button",className:"ahd-tabs-dd-trigger","aria-haspopup":"listbox",tabIndex:0,children:[g.jsx("span",{className:"ahd-tabs-dd-current",children:s.map((L,B)=>g.jsx("span",{className:"ahd-tabs-dd-current-item","data-ahd-tab-index":B,children:L.label??`Tab ${B+1}`},B))}),g.jsx("span",{className:"ahd-tabs-dd-arrow","aria-hidden":"true"})]}),g.jsx("div",{className:"ahd-tabs-nav",style:{background:S,...l?{position:"sticky",top:0}:{}},children:s.map((L,B)=>g.jsx("label",{htmlFor:`${c}-r${B}`,className:"ahd-tabs-label","data-ahd-tab-index":B,tabIndex:-1,style:{alignItems:"center",cursor:"pointer",padding:n==="vertical"?"10px 16px":"10px 18px",whiteSpace:n==="vertical"?"normal":"nowrap",transition:"color .15s ease,border-color .15s ease",userSelect:"none",position:"relative",outline:"none"},children:g.jsx("span",{className:"ahd-tabs-label-text",style:g1,children:L.label??`Tab ${B+1}`})},B))})]}),g.jsx("div",{className:"ahd-tabs-panels",children:s.map((L,B)=>g.jsx("div",{id:`${c}-panel-${B}`,className:"ahd-tabs-panel","data-ahd-tab-index":B,style:ve(B),children:(L.contentChildrenIds??[]).map(Z=>g.jsx(Ae,{id:Z},Z))},B))})]})}const Yo=`@media (max-width:${Pe}px)`,Ko=`@media (max-width:${Oe}px)`,S1=A({contentChildrenIds:te($()).optional().nullable()}),w1=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:D([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),slideGap:m().optional().nullable(),arrowColor:$().optional().nullable(),arrowBgColor:$().optional().nullable(),arrowBorderColor:$().optional().nullable(),arrowSize:m().min(16).max(80).optional().nullable(),dotColor:$().optional().nullable(),dotActiveColor:$().optional().nullable(),dotSize:m().min(4).max(24).optional().nullable()}).optional().nullable(),props:A({slidesPerView:m().min(1).max(6).optional().nullable(),slidesPerViewTablet:m().min(1).max(6).optional().nullable(),slidesPerViewMobile:m().min(1).max(6).optional().nullable(),showArrows:O().optional().nullable(),showDots:O().optional().nullable(),autoplay:O().optional().nullable(),autoplayInterval:m().min(500).max(2e4).optional().nullable(),loop:O().optional().nullable(),transitionMs:m().min(0).max(3e3).optional().nullable(),items:te(S1).min(1).max(20).optional().nullable()}).optional().nullable()});function $1(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}const k1="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",_1="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",Yi=({d:e,size:t=20})=>g.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:g.jsx("path",{d:e})});function C1({style:e,props:t}){const n=U.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],[t==null?void 0:t.items]),o=U.useMemo(()=>`carousel-${Math.random().toString(36).slice(2,9)}`,[]),r=Math.max(1,(t==null?void 0:t.slidesPerView)??1),i=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(r,2)),a=Math.max(1,(t==null?void 0:t.slidesPerViewMobile)??1),l=(t==null?void 0:t.showArrows)??!0,s=(t==null?void 0:t.showDots)??!0,c=(t==null?void 0:t.autoplay)??!1,u=(t==null?void 0:t.autoplayInterval)??4e3,h=(t==null?void 0:t.loop)??!0,d=(t==null?void 0:t.transitionMs)??400,f=(e==null?void 0:e.slideGap)??16,p=j((e==null?void 0:e.arrowColor)??"#262626")??"#262626",b=j((e==null?void 0:e.arrowBgColor)??"#ffffff")??"#ffffff",x=j((e==null?void 0:e.arrowBorderColor)??"rgba(0,0,0,.12)")??"rgba(0,0,0,.12)",v=(e==null?void 0:e.arrowSize)??40,S=j((e==null?void 0:e.dotColor)??"#d4d4d4")??"#d4d4d4",k=j((e==null?void 0:e.dotActiveColor)??"#262626")??"#262626",w=(e==null?void 0:e.dotSize)??8,C=Math.max(12,Math.min(40,Math.round(v*.5))),y=e==null?void 0:e.padding,_=e==null?void 0:e.margin,I=((_==null?void 0:_.left)??0)+((_==null?void 0:_.right)??0),R={width:I>0?`calc(100% - ${I}px)`:"100%",boxSizing:"border-box",position:"relative",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:$1(e==null?void 0:e.borderRadius),padding:y?`${y.top}px ${y.right}px ${y.bottom}px ${y.left}px`:void 0,margin:_?`${_.top}px ${_.right}px ${_.bottom}px ${_.left}px`:void 0},T=U.useMemo(()=>{const F=`.${o}`,H=V=>`calc((100% - ${f*(V-1)}px) / ${V})`;return`${F} .ahd-carousel-viewport{overflow:hidden;width:100%}${F} .ahd-carousel-track{display:flex;gap:var(--ahd-carousel-slide-gap,${f}px);transition:transform ${d}ms ease;will-change:transform}${F} .ahd-carousel-slide{flex:0 0 ${H(r)};min-width:0;box-sizing:border-box}${F} .ahd-carousel-prev svg,${F} .ahd-carousel-next svg{width:var(--ahd-carousel-chevron-size,${C}px);height:var(--ahd-carousel-chevron-size,${C}px)}@media (max-width:${Pe}px){${F} .ahd-carousel-slide{flex-basis:${H(i)}}}@media (max-width:${Oe}px){${F} .ahd-carousel-slide{flex-basis:${H(a)}}}`},[o,f,d,r,i,a,C]),P={appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-arrow-size, ${v}px)`,height:`var(--ahd-carousel-arrow-size, ${v}px)`,minWidth:`var(--ahd-carousel-arrow-size, ${v}px)`,borderRadius:"50%",border:`1px solid ${x}`,backgroundColor:b,backgroundImage:"none",color:p,boxShadow:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,lineHeight:1,padding:0},M=Math.min(r,i,a),z=Math.max(1,n.length-M+1);return g.jsxs("div",{className:`${o} ahd-carousel`,style:R,"data-per-view":r,"data-per-view-tablet":i,"data-per-view-mobile":a,"data-autoplay":c?"1":"0","data-autoplay-interval":u,"data-loop":h?"1":"0",children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:T}}),g.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&g.jsx("button",{type:"button",className:"ahd-carousel-prev",style:P,"aria-label":"Previous slide",children:g.jsx(Yi,{d:k1,size:C})}),g.jsx("div",{className:"ahd-carousel-viewport",children:g.jsx("div",{className:"ahd-carousel-track",children:n.map((F,H)=>g.jsx("div",{className:"ahd-carousel-slide","data-ahd-slide-index":H,children:(F.contentChildrenIds??[]).map(V=>g.jsx(Ae,{id:V},V))},H))})}),l&&g.jsx("button",{type:"button",className:"ahd-carousel-next",style:P,"aria-label":"Next slide",children:g.jsx(Yi,{d:_1,size:C})})]}),s&&z>1&&g.jsx("div",{className:"ahd-carousel-dots",style:{display:"flex",justifyContent:"center",gap:8,marginTop:16},"data-dot-color":S,"data-dot-active-color":k,children:Array.from({length:z}).map((F,H)=>g.jsx("button",{type:"button",className:"ahd-carousel-dot","data-ahd-dot-index":H,"aria-label":`Go to slide ${H+1}`,style:{appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-dot-size, ${w}px)`,height:`var(--ahd-carousel-dot-size, ${w}px)`,minWidth:`var(--ahd-carousel-dot-size, ${w}px)`,padding:0,border:"none",borderRadius:"50%",cursor:"pointer",boxShadow:"none",backgroundColor:H===0?k:S,backgroundImage:"none"}},H))})]})}const A1=A({style:A({starColor:$().optional().nullable(),starEmptyColor:$().optional().nullable(),starSize:m().min(8).max(80).optional().nullable(),starGap:m().min(0).max(40).optional().nullable(),textColor:$().optional().nullable(),fontSize:D([$(),m()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({value:D([m(),$()]).optional().nullable(),max:D([m(),$()]).optional().nullable(),showValue:O().optional().nullable()}).optional().nullable()}),Ki="M12 .587l3.668 7.431 8.2 1.193-5.934 5.787 1.401 8.168L12 18.896l-7.335 3.866 1.401-8.168L.132 9.211l8.2-1.193z";function y1(e){if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function I1(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function R1({fillPct:e,size:t,filledColor:n,emptyColor:o}){return g.jsxs("span",{className:"ahd-rating-star",style:{position:"relative",display:"inline-block",width:`var(--ahd-rating-star-size, ${t}px)`,height:`var(--ahd-rating-star-size, ${t}px)`,lineHeight:0},children:[g.jsx("svg",{viewBox:"0 0 24 24",fill:o,style:{display:"block",width:"100%",height:"100%"},"aria-hidden":"true",children:g.jsx("path",{d:Ki})}),g.jsx("span",{className:"ahd-rating-star-fill",style:{position:"absolute",top:0,left:0,height:"100%",width:`${e}%`,overflow:"hidden",lineHeight:0},children:g.jsx("svg",{viewBox:"0 0 24 24",fill:n,style:{display:"block",width:`var(--ahd-rating-star-size, ${t}px)`,height:`var(--ahd-rating-star-size, ${t}px)`},"aria-hidden":"true",children:g.jsx("path",{d:Ki})})})]})}function N1({style:e,props:t}){const n=U.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),o=(v,S)=>{if(typeof v=="number")return Number.isFinite(v)?v:S;const k=parseFloat(String(v??""));return Number.isFinite(k)?k:S},r=Math.max(1,Math.min(10,Math.round(o(t==null?void 0:t.max,5)))),i=Math.max(0,Math.min(r,o(t==null?void 0:t.value,0))),a=(t==null?void 0:t.showValue)??!0,l=j((e==null?void 0:e.starColor)??"#facc15")??"#facc15",s=j((e==null?void 0:e.starEmptyColor)??"#e5e7eb")??"#e5e7eb",c=(e==null?void 0:e.starSize)??24,u=(e==null?void 0:e.starGap)??4,h=j((e==null?void 0:e.textColor)??"#262626")??"#262626",d=(e==null?void 0:e.textAlign)??"left",f=e==null?void 0:e.padding,p=e==null?void 0:e.margin,b={display:"flex",alignItems:"center",gap:`calc(var(--ahd-rating-star-gap, ${u}px) + 4px)`,justifyContent:d==="center"?"center":d==="right"?"flex-end":"flex-start",flexWrap:"wrap",color:h,fontFamily:y1(e==null?void 0:e.fontFamily),fontSize:I1(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:f?`${f.top}px ${f.right}px ${f.bottom}px ${f.left}px`:void 0,margin:p?`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`:void 0,boxSizing:"border-box"},x=v=>{const S=i-v;return S>=1?100:S>=.5?50:S>0?Math.round(S*100):0};return g.jsxs("div",{className:`${n} ahd-rating rating-block`,style:b,children:[g.jsx("span",{className:"ahd-rating-stars",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-rating-star-gap, ${u}px)`},children:Array.from({length:r}).map((v,S)=>g.jsx(R1,{fillPct:x(S),size:c,filledColor:l,emptyColor:s},S))}),a&&g.jsxs("span",{className:"ahd-rating-value",style:{fontWeight:600},children:[Number.isInteger(i)?i:i.toFixed(1),g.jsxs("span",{style:{opacity:.55},children:["/",r]})]})]})}const T1=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),E1=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),M1=A({style:A({trackColor:$().optional().nullable(),fillColor:$().optional().nullable(),textColor:$().optional().nullable(),fontSize:D([$(),m()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),barHeight:m().min(2).max(60).optional().nullable(),barRadius:m().min(0).max(40).optional().nullable(),circleSize:m().min(40).max(320).optional().nullable(),strokeWidth:m().min(2).max(40).optional().nullable(),stepSize:m().min(4).max(48).optional().nullable(),stepGap:m().min(0).max(40).optional().nullable(),padding:T1,margin:E1}).optional().nullable(),props:A({variant:N(["linear","circular","steps"]).optional().nullable(),value:D([m(),$()]).optional().nullable(),max:D([m(),$()]).optional().nullable(),showLabel:O().optional().nullable(),labelFormat:N(["percent","fraction"]).optional().nullable(),steps:m().min(2).max(20).optional().nullable(),striped:O().optional().nullable(),animated:O().optional().nullable()}).optional().nullable()});function P1(e){if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function O1(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function Ji(e,t){if(typeof e=="number")return Number.isFinite(e)?e:t;const n=parseFloat(String(e??""));return Number.isFinite(n)?n:t}function Xi(e,t,n,o){return o==="fraction"?`${Number.isInteger(t)?t:t.toFixed(1)}/${n}`:`${Math.round(e)}%`}function L1({pct:e,label:t,trackColor:n,fillColor:o,barHeight:r,barRadius:i,striped:a,animated:l,ariaLabel:s,value:c,max:u}){const h=a&&l;return g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,width:"100%"},children:[h&&g.jsx("style",{dangerouslySetInnerHTML:{__html:"@keyframes ahd-progress-stripes{from{background-position:1rem 0}to{background-position:0 0}}.ahd-progress-animated{animation:ahd-progress-stripes 1s linear infinite}@media (prefers-reduced-motion: reduce){.ahd-progress-animated{animation:none}}"}}),g.jsx("div",{className:"ahd-progress-track",role:"progressbar","aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":u,"aria-label":s,style:{width:"100%",height:r,borderRadius:i,backgroundColor:n,overflow:"hidden",boxSizing:"border-box"},children:g.jsx("div",{className:`ahd-progress-fill${a?" ahd-progress-striped":""}${h?" ahd-progress-animated":""}`,style:{width:`${e}%`,height:"100%",borderRadius:i,backgroundColor:o,backgroundImage:a?"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)":void 0,backgroundSize:a?"1rem 1rem":void 0,transition:"width 300ms ease"}})}),t!=null&&g.jsx("span",{children:t})]})}function z1({pct:e,label:t,trackColor:n,fillColor:o,size:r,strokeWidth:i,textColor:a,fontWeight:l,ariaLabel:s,value:c,max:u}){const h=(r-i)/2,d=2*Math.PI*h,f=d*(1-e/100),p=r/2;return g.jsxs("div",{className:"ahd-progress-circular",role:"progressbar","aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":u,"aria-label":s,style:{position:"relative",width:r,height:r,display:"inline-flex"},children:[g.jsxs("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,children:[g.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:n,strokeWidth:i}),g.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:o,strokeWidth:i,strokeLinecap:"round",strokeDasharray:d,strokeDashoffset:f,transform:`rotate(-90 ${p} ${p})`,style:{transition:"stroke-dashoffset 300ms ease"}})]}),t!=null&&g.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:a,fontWeight:l??600},children:t})]})}function j1({steps:e,activeIndex:t,trackColor:n,fillColor:o,stepSize:r,stepGap:i,label:a,ariaLabel:l,value:s,max:c}){return g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[g.jsx("div",{className:"ahd-progress-steps",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":c,"aria-label":l,style:{display:"inline-flex",alignItems:"center",gap:i},children:Array.from({length:e}).map((u,h)=>g.jsx("span",{"data-active":h<t?"true":"false",style:{width:r,height:r,borderRadius:"50%",backgroundColor:h<t?o:n,transition:"background-color 200ms ease",display:"inline-block"}},h))}),a!=null&&g.jsx("span",{children:a})]})}function B1({style:e,props:t}){const n=U.useMemo(()=>`progress-${Math.random().toString(36).slice(2,9)}`,[]),o=(t==null?void 0:t.variant)??"linear",r=Math.max(1,Ji(t==null?void 0:t.max,100)),i=Math.max(0,Math.min(r,Ji(t==null?void 0:t.value,0))),a=i/r*100,l=(t==null?void 0:t.showLabel)??!0,s=(t==null?void 0:t.labelFormat)??"percent",c=l?Xi(a,i,r,s):null,u=`Progress: ${Xi(a,i,r,"percent")}`,h=j((e==null?void 0:e.trackColor)??"#e5e7eb")??"#e5e7eb",d=j((e==null?void 0:e.fillColor)??"#3F73FF")??"#3F73FF",f=j((e==null?void 0:e.textColor)??"#262626")??"#262626",p=(e==null?void 0:e.textAlign)??"left",b=e==null?void 0:e.padding,x=e==null?void 0:e.margin,v={display:"flex",justifyContent:p==="center"?"center":p==="right"?"flex-end":"flex-start",color:f,fontFamily:P1(e==null?void 0:e.fontFamily),fontSize:O1((e==null?void 0:e.fontSize)??13),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,margin:x?`${x.top}px ${x.right}px ${x.bottom}px ${x.left}px`:void 0,boxSizing:"border-box"},S=Math.max(2,Math.min(20,Math.round((t==null?void 0:t.steps)??5))),k=Math.round(a/100*S);return g.jsx("div",{className:`${n} ahd-progress progress-block`,style:v,children:o==="circular"?g.jsx(z1,{pct:a,label:c,trackColor:h,fillColor:d,size:(e==null?void 0:e.circleSize)??96,strokeWidth:(e==null?void 0:e.strokeWidth)??8,textColor:f,fontWeight:(e==null?void 0:e.fontWeight)??void 0,ariaLabel:u,value:i,max:r}):o==="steps"?g.jsx(j1,{steps:S,activeIndex:k,trackColor:h,fillColor:d,stepSize:(e==null?void 0:e.stepSize)??14,stepGap:(e==null?void 0:e.stepGap)??12,label:c,ariaLabel:u,value:i,max:r}):g.jsx(L1,{pct:a,label:c,trackColor:h,fillColor:d,barHeight:(e==null?void 0:e.barHeight)??12,barRadius:(e==null?void 0:e.barRadius)??6,striped:(t==null?void 0:t.striped)??!1,animated:(t==null?void 0:t.animated)??!1,ariaLabel:u,value:i,max:r})})}const D1=A({responsive:Ge,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),borderRadius:D([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),itemGap:m().min(0).max(200).optional().nullable(),viewportHeight:m().min(40).max(1200).optional().nullable()}).optional().nullable(),props:A({direction:N(["left","right","up","down"]).optional().nullable(),speed:m().min(5).max(200).optional().nullable(),pauseOnHover:O().optional().nullable(),repeat:m().min(2).max(6).optional().nullable(),fadeEdges:O().optional().nullable(),verticalAlign:N(["top","middle","bottom"]).optional().nullable(),items:te(A({contentChildrenIds:te($()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),F1=40,H1=32,G1=200,Ls=(e,t)=>typeof e=="number"?Math.max(40,Math.min(1200,e)):t,zs=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,U1=e=>Math.max(2,Math.round(1200/e)),W1=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),js=e=>e==="up"||e==="down",Z1=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",xo=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function V1(e,t){return{speed:zs(t==null?void 0:t.speed,F1),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??H1,viewportHeight:Ls(e==null?void 0:e.viewportHeight,G1)}}function q1(e,t,n){var r,i,a,l,s;const o=e==null?void 0:e[t];return{speed:zs((r=o==null?void 0:o.props)==null?void 0:r.speed,n.speed),pauseOnHover:((i=o==null?void 0:o.props)==null?void 0:i.pauseOnHover)??n.pauseOnHover,fadeEdges:((a=o==null?void 0:o.props)==null?void 0:a.fadeEdges)??n.fadeEdges,itemGap:((l=o==null?void 0:o.style)==null?void 0:l.itemGap)??n.itemGap,viewportHeight:Ls((s=o==null?void 0:o.style)==null?void 0:s.viewportHeight,n.viewportHeight)}}const Y1=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},Qi=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${U1(e.speed)}s;--ahd-mq-height:${e.viewportHeight}px;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,K1=(e,t)=>e.fadeEdges?`-webkit-mask-image:${xo(t)}!important;mask-image:${xo(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function J1({instanceId:e,direction:t,repeat:n,desktop:o,responsive:r,verticalAlign:i}){const a=`.${e}`,l=js(t),s=l?"column":"row",c=t==="right"||t==="down"?"reverse":"normal",u=l?"flex-start":Z1(i),h=100/n,d=l?`@keyframes ${e}-kf{from{transform:translateY(0)}to{transform:translateY(-${h}%)}}`:`@keyframes ${e}-kf{from{transform:translateX(0)}to{transform:translateX(-${h}%)}}`,f=(b,x)=>{if(!Y1(r,x))return"";const v=q1(r,x,o);return`${b}{${a}{${Qi(v)};${K1(v,l)}}}`},p=l?`${a} .ahd-marquee-viewport{height:var(--ahd-mq-height);overflow:hidden;position:relative}`:`${a} .ahd-marquee-viewport{overflow:hidden;position:relative;max-width:100%}`;return d+`${a}{${Qi(o)}}`+p+`${a} .ahd-marquee-track{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);width:${l?"100%":"max-content"};animation:${e}-kf var(--ahd-mq-duration) linear infinite ${c};will-change:transform}${a} .ahd-marquee-group{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);flex:0 0 auto;align-items:${u}}${a} .ahd-marquee-item{flex:0 0 auto;${l?"width:100%":""}}${a}:hover .ahd-marquee-track{animation-play-state:var(--ahd-mq-hover)}`+f(Bt,"tablet")+f(je,"mobile")+`@media (prefers-reduced-motion: reduce){${a} .ahd-marquee-track{animation:none}}`}function X1(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function Q1(e,t){if(!e)return{};const n=(t==null?void 0:t.top)??1,o=(t==null?void 0:t.bottom)??1;return{borderTop:n>0?`${n}px solid ${e}`:void 0,borderBottom:o>0?`${o}px solid ${e}`:void 0}}function eS({style:e,props:t,responsive:n}){const o=U.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),r=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],i=(t==null?void 0:t.direction)??"left",a=W1(t==null?void 0:t.repeat),l=js(i),s=V1(e,t),c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,h=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:h>0?`calc(100% - ${h}px)`:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden",position:"relative",background:(e==null?void 0:e.backgroundColor)??void 0,...Q1(e==null?void 0:e.borderColor,e==null?void 0:e.borderWidth),borderRadius:X1(e==null?void 0:e.borderRadius),padding:c?`${c.top}px ${c.right}px ${c.bottom}px ${c.left}px`:void 0,margin:u?`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`:void 0,...s.fadeEdges?{WebkitMaskImage:xo(l),maskImage:xo(l)}:{}},f=(t==null?void 0:t.verticalAlign)??"middle",p=U.useMemo(()=>J1({instanceId:o,direction:i,repeat:a,desktop:s,responsive:n,verticalAlign:f}),[o,i,a,s.speed,s.pauseOnHover,s.fadeEdges,s.itemGap,s.viewportHeight,n,f]),b=x=>g.jsx("div",{className:"ahd-marquee-group","aria-hidden":x>0?!0:void 0,children:r.map((v,S)=>g.jsx("div",{className:"ahd-marquee-item",children:(v.contentChildrenIds??[]).map(k=>g.jsx(Ae,{id:k},k))},S))},x);return g.jsxs("div",{className:`${o} ahd-marquee`,style:d,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:p}}),g.jsx("div",{className:"ahd-marquee-viewport",children:g.jsx("div",{className:"ahd-marquee-track",children:Array.from({length:a}).map((x,v)=>b(v))})})]})}const tS=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),nS=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),oS=A({style:A({backgroundColor:$().optional().nullable(),textColor:$().optional().nullable(),accentColor:$().optional().nullable(),numberColor:$().optional().nullable(),numberFontWeight:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:D([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:tS,margin:nS}).optional().nullable(),props:A({layout:N(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:$().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:O().default(!0),expiredBehavior:N(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:$().default("Offer has ended"),showConfetti:O().default(!1)}).optional().nullable()});function rS(e){return String(Math.max(0,e)).padStart(2,"0")}function aS({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a,numberColor:l}){const s=[{value:e,label:"Days"},{value:t,label:"Hours"},{value:n,label:"Minutes"},{value:o,label:"Seconds"}];return g.jsx("div",{className:"ahd-timer-digital",style:{display:"flex",gap:12,alignItems:"flex-start",justifyContent:"center"},children:s.map(c=>g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[g.jsx("div",{"data-ahd-timer-unit":c.label.toLowerCase(),style:{minWidth:48,padding:"8px 10px",borderRadius:8,background:i??"#1f1f1f",color:l??"#ffffff",fontVariantNumeric:"tabular-nums",fontSize:22,fontWeight:700,textAlign:"center",lineHeight:1},children:rS(c.value)}),r&&g.jsx("span",{style:{fontSize:11,color:a??"#6b7280",textTransform:"uppercase"},children:c.label})]},c.label))})}function iS(e){return String(Math.max(0,e)).padStart(2,"0")}const Rr=26,el=2*Math.PI*Rr;function lS({value:e,max:t,accentColor:n,numberColor:o,numberFontWeight:r,unit:i}){const a=t>0?Math.min(1,Math.max(0,e/t)):0,l=el*(1-a);return g.jsxs("svg",{"data-ahd-timer-unit":i,"data-ahd-timer-max":t,width:64,height:64,viewBox:"0 0 64 64",children:[g.jsx("circle",{cx:32,cy:32,r:Rr,fill:"none",stroke:"#e5e7eb",strokeWidth:5}),g.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:Rr,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:el,strokeDashoffset:l,transform:"rotate(-90 32 32)",style:{transition:"stroke-dashoffset 1s linear"}}),g.jsx("text",{"data-ahd-timer-text":!0,x:32,y:37,textAnchor:"middle",fontSize:15,fontWeight:r??700,fill:o,children:iS(e)})]})}function sS({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a,numberColor:l,numberFontWeight:s}){const c=i??"#7c3aed",u=l??"#1f1f1f",h=[{value:e,max:30,label:"Days"},{value:t,max:24,label:"Hours"},{value:n,max:60,label:"Minutes"},{value:o,max:60,label:"Seconds"}];return g.jsx("div",{className:"ahd-timer-circular",style:{display:"flex",gap:16,alignItems:"flex-start",justifyContent:"center"},children:h.map(d=>g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[g.jsx(lS,{value:d.value,max:d.max,accentColor:c,numberColor:u,numberFontWeight:s,unit:d.label.toLowerCase()}),r&&g.jsx("span",{style:{fontSize:11,color:a??"#6b7280",textTransform:"uppercase"},children:d.label})]},d.label))})}function Et(e){return String(Math.max(0,e)).padStart(2,"0")}function cS({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a}){const l=[{key:"days",text:r?`${e}d`:Et(e)},{key:"hours",text:r?`${Et(t)}h`:Et(t)},{key:"minutes",text:r?`${Et(n)}m`:Et(n)},{key:"seconds",text:r?`${Et(o)}s`:Et(o)}],s=r?" ":" : ";return g.jsxs("div",{className:"ahd-timer-inline","data-ahd-timer-show-labels":r?"1":"0",style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:16,fontWeight:600,color:a??"#1f1f1f"},children:[g.jsx("span",{style:{color:i??"#7c3aed",marginRight:6},children:"Ends in"}),l.map((c,u)=>g.jsxs(U.Fragment,{children:[u>0&&s,g.jsx("span",{"data-ahd-timer-unit":c.key,children:c.text})]},c.key))]})}function uS(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function dS(e,t=Date.now()){const n=e?new Date(e).getTime():NaN;if(Number.isNaN(n))return{days:0,hours:0,minutes:0,seconds:0,completed:!0};const o=Math.max(0,n-t),r=o<=0,i=Math.floor(o/1e3);return{days:Math.floor(i/86400),hours:Math.floor(i%86400/3600),minutes:Math.floor(i%3600/60),seconds:i%60,completed:r}}function hS({style:e,props:t}){const n=t??{},o=n.layout??"digitalFlip",r=n.showLabels??!0,i=n.expiredBehavior??"showMessage",a=n.expiredMessage||"Offer has ended",l=dS(n.targetDate),s=l.completed,c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,h=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:h>0?`calc(100% - ${h}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:uS(e==null?void 0:e.borderRadius),padding:c?`${c.top}px ${c.right}px ${c.bottom}px ${c.left}px`:"16px",margin:u?`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`:void 0},f={days:l.days,hours:l.hours,minutes:l.minutes,seconds:l.seconds,showLabels:r,accentColor:e==null?void 0:e.accentColor,textColor:e==null?void 0:e.textColor,numberColor:e==null?void 0:e.numberColor,numberFontWeight:e==null?void 0:e.numberFontWeight},p=s&&i==="showMessage",b=s&&i==="hide";return g.jsxs("div",{className:"ahd-timer","data-layout":o,"data-ahd-timer-target-date":n.targetDate,"data-ahd-timer-expired-behavior":i,"data-ahd-timer-expired-message":a,"data-ahd-timer-show-labels":r?"1":"0","data-ahd-timer-confetti":n.showConfetti?"1":"0",style:{...d,display:b?"none":void 0},children:[g.jsx("div",{"data-ahd-timer-message":!0,style:{textAlign:"center",color:(e==null?void 0:e.textColor)??"#1f1f1f",display:p?void 0:"none"},children:a}),g.jsxs("div",{"data-ahd-timer-body":!0,style:{display:p?"none":void 0},children:[o==="digitalFlip"&&g.jsx(aS,{...f}),o==="circularProgress"&&g.jsx(sS,{...f}),o==="textInline"&&g.jsx(cS,{...f})]})]})}const fS=N(["left","center","right","space-between"]),mS=A({contentChildrenIds:te($()).optional().nullable()}),pS=A({childrenIds:te($())}),gS=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:D([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),itemGap:m().min(0).max(120).optional().nullable(),columnsGap:m().min(0).max(120).optional().nullable(),rowsGap:m().min(0).max(120).optional().nullable(),controlGap:m().min(0).max(120).optional().nullable(),controlAlign:fS.optional().nullable(),buttonSize:m().min(20).max(72).optional().nullable(),buttonGap:m().min(0).max(40).optional().nullable(),buttonRadius:m().min(0).max(999).optional().nullable(),buttonBg:$().optional().nullable(),buttonColor:$().optional().nullable(),buttonBorderColor:$().optional().nullable(),activeButtonBg:$().optional().nullable(),activeButtonColor:$().optional().nullable(),activeButtonBorderColor:$().optional().nullable(),arrowColor:$().optional().nullable(),fontSize:m().min(8).max(40).optional().nullable(),fontFamily:$().optional().nullable()}).optional().nullable(),props:A({items:te(mS).min(1).max(50).optional().nullable(),cells:te(pS).optional().nullable(),columnsCount:m().int().min(1).max(12).optional().nullable(),rowsCount:m().int().min(1).max(24).optional().nullable(),columnsCountTablet:m().int().min(1).max(12).optional().nullable(),columnsCountMobile:m().int().min(1).max(12).optional().nullable(),rowsCountTablet:m().int().min(1).max(24).optional().nullable(),rowsCountMobile:m().int().min(1).max(24).optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:N(["left","center","right"]).optional().nullable(),cellsPerPage:m().int().min(1).max(100).optional().nullable(),repeatableEnabled:O().optional().nullable(),pageParam:$().min(1).max(40).optional().nullable(),syncUrl:O().optional().nullable(),showNumbers:O().optional().nullable(),showPrevNext:O().optional().nullable(),showFirstLast:O().optional().nullable(),maxVisiblePages:m().min(0).max(50).optional().nullable(),prevLabel:$().max(24).optional().nullable(),nextLabel:$().max(24).optional().nullable(),firstLabel:$().max(24).optional().nullable(),lastLabel:$().max(24).optional().nullable(),scrollToTopOnChange:O().optional().nullable(),explicitFirstPage:O().optional().nullable()}).optional().nullable()}),Nr={columnsCount:2,rowsCount:2};function Jo(e,t="desktop"){const n=Nr,o=(e==null?void 0:e.columnsCount)??n.columnsCount,r=(e==null?void 0:e.rowsCount)??n.rowsCount,i=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??o:o,a=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??r:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??r:r;let l;Array.isArray(e==null?void 0:e.cells)?l=e.cells:Array.isArray(e==null?void 0:e.items)?l=e.items.map(u=>({childrenIds:Array.isArray(u==null?void 0:u.contentChildrenIds)?u.contentChildrenIds:[]})):l=[];const s=Math.max(1,o*r,i*a,l.length),c=Array.from({length:s},(u,h)=>{var d;return{childrenIds:Array.isArray((d=l[h])==null?void 0:d.childrenIds)?l[h].childrenIds:[]}});return{columnsCount:i,rowsCount:a,cells:c}}function Xo(e,t="desktop"){if((e==null?void 0:e.cellsPerPage)!=null)return Math.max(1,e.cellsPerPage);const n=(e==null?void 0:e.columnsCount)??Nr.columnsCount,o=(e==null?void 0:e.rowsCount)??Nr.rowsCount,r=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??n:n,i=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??o:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??o:o;return Math.max(1,r*i)}function bS(e,t,n){const o=Math.max(1,e),r=Math.min(Math.max(1,n),o*Math.max(1,t));return Math.max(1,Math.ceil(r/o))}function xS(e,t){const n=Math.max(1,t);if(e.length===0)return[[]];const o=[];for(let r=0;r<e.length;r+=n)o.push(e.slice(r,r+n));return o}const vS={pageParam:"page",syncUrl:!0,showNumbers:!0,showPrevNext:!0,showFirstLast:!1,maxVisiblePages:7,scrollToTopOnChange:!0,prevLabel:"‹",nextLabel:"›",firstLabel:"«",lastLabel:"»",itemGap:16,controlGap:24,controlAlign:"center",buttonSize:36,buttonGap:8,buttonRadius:8,buttonBg:"#ffffff",buttonColor:"#262626",buttonBorderColor:"rgba(0,0,0,.12)",activeButtonBg:"#5550ff",activeButtonColor:"#ffffff",activeButtonBorderColor:"#5550ff",arrowColor:"#262626",fontSize:14};function SS({style:e,props:t}){const n=vS;return{pageParam:((t==null?void 0:t.pageParam)??n.pageParam).trim()||n.pageParam,syncUrl:(t==null?void 0:t.syncUrl)??n.syncUrl,showNumbers:(t==null?void 0:t.showNumbers)??n.showNumbers,showPrevNext:(t==null?void 0:t.showPrevNext)??n.showPrevNext,showFirstLast:(t==null?void 0:t.showFirstLast)??n.showFirstLast,maxVisiblePages:(()=>{const o=(t==null?void 0:t.maxVisiblePages)??n.maxVisiblePages;return o<=0?0:Math.max(5,o)})(),scrollToTopOnChange:(t==null?void 0:t.scrollToTopOnChange)??n.scrollToTopOnChange,explicitFirstPage:(t==null?void 0:t.syncUrl)??n.syncUrl,prevLabel:(t==null?void 0:t.prevLabel)??n.prevLabel,nextLabel:(t==null?void 0:t.nextLabel)??n.nextLabel,firstLabel:(t==null?void 0:t.firstLabel)??n.firstLabel,lastLabel:(t==null?void 0:t.lastLabel)??n.lastLabel,itemGap:(e==null?void 0:e.itemGap)??n.itemGap,controlGap:(e==null?void 0:e.controlGap)??n.controlGap,controlAlign:(e==null?void 0:e.controlAlign)??n.controlAlign,buttonSize:(e==null?void 0:e.buttonSize)??n.buttonSize,buttonGap:(e==null?void 0:e.buttonGap)??n.buttonGap,buttonRadius:(e==null?void 0:e.buttonRadius)??n.buttonRadius,buttonBg:(e==null?void 0:e.buttonBg)??n.buttonBg,buttonColor:(e==null?void 0:e.buttonColor)??n.buttonColor,buttonBorderColor:(e==null?void 0:e.buttonBorderColor)??n.buttonBorderColor,activeButtonBg:(e==null?void 0:e.activeButtonBg)??n.activeButtonBg,activeButtonColor:(e==null?void 0:e.activeButtonColor)??n.activeButtonColor,activeButtonBorderColor:(e==null?void 0:e.activeButtonBorderColor)??n.activeButtonBorderColor,arrowColor:(e==null?void 0:e.arrowColor)??n.arrowColor,fontSize:(e==null?void 0:e.fontSize)??n.fontSize,fontFamily:(e==null?void 0:e.fontFamily)??void 0}}function wS(e){return Math.max(1,e)}function $S(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,c)=>c+1);const o=[],r=Math.max(1,n-2),i=Math.floor(r/2);let a=Math.max(2,e-i),l=Math.min(t-1,a+r-1);a=Math.max(2,Math.min(a,l-r+1)),o.push(1),a>2&&o.push("ellipsis");for(let s=a;s<=l;s++)o.push(s);return l<t-1&&o.push("ellipsis"),o.push(t),o}function kS(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function _S({style:e,props:t}){const n=SS({style:e,props:t}),o=Jo(t,"desktop"),r=Jo(t,"tablet"),i=Jo(t,"mobile"),a=Math.max(Xo(t,"desktop"),Xo(t,"tablet"),Xo(t,"mobile")),l=U.useMemo(()=>o.cells.length>=a?o.cells:Array.from({length:a},(_,I)=>o.cells[I]??{childrenIds:[]}),[o.cells,a]),s=U.useMemo(()=>xS(l,a),[l,a]),c=wS(s.length),u=(e==null?void 0:e.columnsGap)??n.itemGap,h=(e==null?void 0:e.rowsGap)??n.itemGap,d=U.useMemo(()=>`pgn-${Math.random().toString(36).slice(2,9)}`,[]),f=U.useMemo(()=>$S(1,c,n.maxVisiblePages),[c,n.maxVisiblePages]),p=e==null?void 0:e.padding,b=e==null?void 0:e.margin,x=((b==null?void 0:b.left)??0)+((b==null?void 0:b.right)??0),v={width:x>0?`calc(100% - ${x}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:kS(e==null?void 0:e.borderRadius),padding:p?`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`:void 0,margin:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,fontFamily:n.fontFamily},S=n.controlAlign==="left"?"flex-start":n.controlAlign==="right"?"flex-end":n.controlAlign==="space-between"?"space-between":"center",k={appearance:"none",WebkitAppearance:"none",minWidth:`var(--ahd-pgn-btn-size, ${n.buttonSize}px)`,height:`var(--ahd-pgn-btn-size, ${n.buttonSize}px)`,padding:"0 8px",borderRadius:`var(--ahd-pgn-btn-radius, ${n.buttonRadius}px)`,border:`1px solid ${n.buttonBorderColor}`,backgroundColor:n.buttonBg,backgroundImage:"none",color:n.buttonColor,fontSize:n.fontSize,lineHeight:1,boxShadow:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxSizing:"border-box"},w={...k,color:n.arrowColor},C=U.useMemo(()=>{const _=T=>`grid-template-columns:repeat(${T.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${bS(T.columnsCount,T.rowsCount,a)},auto)`,I=(T,P)=>{const M=Math.min(Math.max(1,P.columnsCount*P.rowsCount),Math.max(1,a));return M>=a?"":`${T} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${M+1}){display:none}`},R=`.${d}`;return`${R} .ahd-pgn-item{display:grid;${_(o)};column-gap:${u}px;row-gap:${h}px}${R} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+I(R,o)+`@media (max-width:${Pe}px){${R} .ahd-pgn-item{${_(r)}}${R} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+I(R,r)+`}@media (max-width:${Oe}px){${R} .ahd-pgn-item{${_(i)}}${R} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+I(R,i)+"}"},[d,o,r,i,a,u,h,n.itemGap]),y=(_,I,R)=>g.jsx("button",{type:"button",className:`ahd-pgn-btn ${_}`,"data-ahd-page":R,style:w,"aria-label":I,children:I});return g.jsxs("div",{className:`${d} ahd-pagination`,style:v,"data-total-pages":c,"data-page-param":n.pageParam,"data-sync-url":n.syncUrl?"1":"0","data-explicit-first-page":n.explicitFirstPage?"1":"0","data-scroll-top":n.scrollToTopOnChange?"1":"0","data-max-visible":n.maxVisiblePages,"data-btn-bg":n.buttonBg,"data-btn-color":n.buttonColor,"data-btn-border":n.buttonBorderColor,"data-active-bg":n.activeButtonBg,"data-active-color":n.activeButtonColor,"data-active-border":n.activeButtonBorderColor,"data-first-label":n.firstLabel,"data-last-label":n.lastLabel,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:C}}),g.jsx("div",{className:"ahd-pgn-content",style:{display:"flex",flexDirection:"column",gap:n.itemGap},children:s.map((_,I)=>g.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":I,style:I===0?void 0:{display:"none"},children:_.map((R,T)=>g.jsx("div",{className:"ahd-pgn-cell",children:(R.childrenIds??[]).map(P=>g.jsx(Ae,{id:P},P))},T))},I))}),(n.showNumbers||n.showPrevNext||n.showFirstLast)&&g.jsxs("div",{className:"ahd-pgn-control",style:{display:"flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,justifyContent:S,marginTop:`var(--ahd-pgn-control-gap, ${n.controlGap}px)`,flexWrap:"wrap"},"data-show-numbers":n.showNumbers?"1":"0","data-show-prev-next":n.showPrevNext?"1":"0","data-show-first-last":n.showFirstLast?"1":"0",children:[n.showFirstLast&&y("ahd-pgn-first",n.firstLabel,1),n.showPrevNext&&y("ahd-pgn-prev",n.prevLabel,Math.max(1,0)),n.showNumbers&&g.jsx("span",{className:"ahd-pgn-numbers",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,flexWrap:"wrap"},children:f.map((_,I)=>_==="ellipsis"?g.jsx("span",{className:"ahd-pgn-ellipsis",style:{...k,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${I}`):g.jsx("button",{type:"button",className:"ahd-pgn-btn ahd-pgn-number","data-ahd-page":_,"aria-label":`Page ${_}`,"aria-current":_===1?"true":void 0,style:_===1?{...k,backgroundColor:n.activeButtonBg,color:n.activeButtonColor,border:`1px solid ${n.activeButtonBorderColor}`}:k,children:_},_))}),n.showPrevNext&&y("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&y("ahd-pgn-last",n.lastLabel,c)]})]})}const CS=A({responsive:Ge,style:A({padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),tableAlign:N(["left","center","right"]).optional().nullable(),fontSize:m().optional().nullable(),fontFamily:$().optional().nullable(),color:$().optional().nullable(),backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:m().optional().nullable(),cellPadding:m().optional().nullable(),headerBackground:$().optional().nullable(),headerColor:$().optional().nullable(),stripedRowColor:$().optional().nullable(),stripedColColor:$().optional().nullable()}).optional().nullable(),props:A({rows:m().int().min(1).max(50).optional().nullable(),columns:m().int().min(1).max(20).optional().nullable(),hasHeader:O().optional().nullable(),cells:te($()).optional().nullable(),caption:$().optional().nullable(),width:$().optional().nullable(),enableScroll:O().optional().nullable(),enableScrollTablet:O().optional().nullable(),enableScrollMobile:O().optional().nullable()}).optional().nullable()}),ot={rows:3,columns:3,hasHeader:!0,borderColor:"#e5e7eb",borderWidth:2,cellPadding:8,headerBackground:"#f3f4f6",headerColor:"#111827",color:"#262626",fontSize:14,stripedRowColor:"#F8F6F6"};function AS(e){if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Bs(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function Kn(e){return e?Bs(e)?`background: ${e} !important; background-color: transparent !important;`:`background-color: ${e} !important;`:""}function Qo(e){return e?Bs(e)?[`background-image: ${e};`,"-webkit-background-clip: text;","background-clip: text;","-webkit-text-fill-color: transparent;","color: transparent;"].join(" "):`color: ${e};`:""}function yS({style:e,props:t,renderCell:n}){const o=Math.max(1,Math.min(50,(t==null?void 0:t.rows)??ot.rows)),r=Math.max(1,Math.min(20,(t==null?void 0:t.columns)??ot.columns)),i=(t==null?void 0:t.hasHeader)??ot.hasHeader,a=(t==null?void 0:t.cells)??[],l=o*r,s=a.length===l?a:Array.from({length:l},(L,B)=>a[B]??""),c=j((e==null?void 0:e.borderColor)??ot.borderColor),u=(e==null?void 0:e.borderWidth)??ot.borderWidth,h=(e==null?void 0:e.cellPadding)??ot.cellPadding,d=j((e==null?void 0:e.headerBackground)??ot.headerBackground),f=j((e==null?void 0:e.headerColor)??ot.headerColor),p=j((e==null?void 0:e.color)??ot.color),b=(e==null?void 0:e.fontSize)??ot.fontSize,x=j((e==null?void 0:e.backgroundColor)??null),v=j((e==null?void 0:e.stripedRowColor)===void 0?ot.stripedRowColor:e.stripedRowColor),S=j((e==null?void 0:e.stripedColColor)??null),k=`ahd-table-${U.useId().replace(/:/g,"")}`,w=(t==null?void 0:t.width)||"100%",C=w!=="100%",y={padding:va(e==null?void 0:e.padding),margin:Sa(e==null?void 0:e.margin),textAlign:C?(e==null?void 0:e.tableAlign)??"left":void 0,width:0,minWidth:"100%",maxWidth:"100%",height:"fit-content",boxSizing:"border-box"},_=AS(e==null?void 0:e.fontFamily),I={borderCollapse:"collapse",width:"100%",fontSize:b},R={display:C?"inline-block":"block",width:w,maxWidth:"100%",verticalAlign:"top",overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",height:"fit-content"},T={border:`${u}px solid ${c}`,padding:h,verticalAlign:"top"},P={...T,fontWeight:600,textAlign:(e==null?void 0:e.textAlign)??"left"},M=_?`.${k}, .${k} * { font-family: ${_} !important; }`:"",z=`${k}-scroll`,F=(t==null?void 0:t.enableScroll)??!1,H=(t==null?void 0:t.enableScrollTablet)??F,V=(t==null?void 0:t.enableScrollMobile)??F,q=L=>L?`.${z} > .${k} { table-layout: auto; width: max-content !important; min-width: 100%; max-width: none; }`:`.${z} > .${k} { table-layout: fixed; width: 100% !important; max-width: 100%; }
285
- .${z} > .${k} .ahd-table-cell-text { overflow-wrap: anywhere; }`,ae=[q(F),H!==F?`@media (max-width: 1024px) { ${q(H)} }
286
- @container ahd-page (max-width: 1024px) { ${q(H)} }`:"",V!==H?`@media (max-width: 640px) { ${q(V)} }
287
- @container ahd-page (max-width: 640px) { ${q(V)} }`:""].filter(Boolean).join(`
288
- `),pe=`
289
- .${z} {
283
+ ${Se}
284
+ `;return g.jsxs("div",{style:re,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:xe}}),n.map((X,j)=>g.jsx("input",{type:"radio",name:o,id:`${o}-cb${j}`,className:"pacc-cb",defaultChecked:j===i},j)),g.jsx("div",{className:"pacc-wrap",children:n.map((X,j)=>g.jsxs("div",{className:"pacc-item",children:[g.jsxs("label",{htmlFor:`${o}-cb${j}`,className:"pacc-card",children:[(X.cardChildrenIds??[]).map(B=>g.jsx(Re,{id:B},B)),g.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:g.jsx("i",{className:"bi bi-chevron-right"})})]}),g.jsx("div",{className:"pacc-detail",children:(X.detailChildrenIds??[]).map(B=>g.jsx(Re,{id:B},B))})]},j))})]})}const h1=160,f1=A({label:$().optional().nullable(),contentChildrenIds:ne($()).optional().nullable()}),m1=A({responsive:We,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:G([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),tabActiveColor:$().optional().nullable(),tabActiveBgColor:$().optional().nullable(),tabInactiveTextColor:$().optional().nullable(),tabInactiveBgColor:$().optional().nullable(),tabInactiveBorderColor:$().optional().nullable(),tabInactiveBorderWidth:m().optional().nullable(),tabTextColor:$().optional().nullable(),tabBgColor:$().optional().nullable(),tabBorderRadius:m().optional().nullable(),tabGap:m().optional().nullable(),contentGap:m().optional().nullable(),navBorderColor:$().optional().nullable(),navWidth:m().optional().nullable(),fontSize:G([$(),m()]).optional().nullable(),lineHeight:G([$(),m()]).optional().nullable(),activeFontSize:G([$(),m()]).optional().nullable(),showActiveBorder:L().optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable()}).optional().nullable(),props:A({orientation:N(["horizontal","vertical"]).optional().nullable(),orientationTablet:N(["horizontal","vertical"]).optional().nullable(),orientationMobile:N(["horizontal","vertical"]).optional().nullable(),behavior:N(["showSelectedSection","scrollToSelectedSection"]).optional().nullable(),tabsAlign:N(["left","center","right"]).optional().nullable(),dropdown:L().optional().nullable(),dropdownTablet:L().optional().nullable(),dropdownMobile:L().optional().nullable(),activeTabIndex:m().optional().nullable(),stickyNav:L().optional().nullable(),items:ne(f1).min(1).max(20).optional().nullable()}).optional().nullable()});function p1(e){if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function g1(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function Yi(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const b1={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},x1={display:"inline-block",minWidth:0,maxWidth:"100%",overflowWrap:"break-word",wordBreak:"break-word"};function mt(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function bo(e,t=!1){const n=t?"!important":"";return e?mt(e)?`background:${e}${n};background-color:transparent${n}`:`background-color:${e}${n}`:`background-color:transparent${n}`}function xo(e,t=!1){const n=t?"!important":"";return mt(e)?`color:transparent${n}`:`color:${e}${n}`}function vo(e,t=!1){const n=t?"!important":"";return mt(e)?`background-image:${e}${n};-webkit-background-clip:text${n};background-clip:text${n};-webkit-text-fill-color:transparent${n};color:transparent${n}`:""}function Nr(e,t,n,o=!1){const r=o?"!important":"";return mt(e)?`border-${n}-style:solid${r};border-${n}-width:${t}${r};border-image-source:${e}${r};border-image-slice:${n==="bottom"?"0 0 1 0 fill":n==="left"?"0 0 0 1 fill":"0 1 0 0 fill"}${r}`:`border-${n}-color:${e}${r}`}function v1(e,t,n=!1){const o=n?"!important":"";return e?mt(e)?`box-sizing:border-box${o};border:${t}px solid transparent${o};border-image-source:${e}${o};border-image-slice:1${o};box-shadow:none${o}`:`box-shadow:inset 0 0 0 ${t}px ${e}${o}`:`box-shadow:none${o}`}function qt(e,t,n,o,r,i,a,l){const s=mt(l),c=s?Nr(l,n,"bottom"):`border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent)`,u=s?Nr(l,n,"right"):`border-right:${n} solid var(--ahd-tabs-nav-border,transparent)`;if(t==="horizontal")return`${e}{display:block}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;gap:${o};align-items:center;justify-content:${i};width:100%;${c};border-right:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{display:inline-flex;border-bottom:3px solid transparent;border-left:0;margin-bottom:calc(-1 * ${n});margin-right:0}${e} > .ahd-tabs-panels{width:100%;margin-top:${r};margin-left:0}`;const h=`${a??h1}px`,d=`var(--ahd-tabs-nav-width,${h})`,f=`width:var(--ahd-tabs-nav-width,${h});max-width:var(--ahd-tabs-nav-width,${h})`;return`${e}{display:grid;grid-template-columns:${d} minmax(0,1fr);column-gap:${r};align-items:start}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;grid-column:1;grid-row:1;align-self:start;${f};min-width:0;overflow:visible;${u};border-bottom:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{display:flex;border-left:3px solid transparent;border-bottom:0;margin-right:calc(-1 * ${n});margin-bottom:${o};white-space:normal!important;word-break:break-word;overflow-wrap:break-word;min-width:0;max-width:100%;box-sizing:border-box}${e} > .ahd-tabs-panels{grid-column:2;grid-row:1;width:100%;margin-top:0}`}function S1(e,t,n,o,r,i,a,l,s,c,u,h,d,f,p,b,x=1){let w="";for(let _=0;_<p;_++){const y=`${e} #${f}-r${_}:checked ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${_+1})`;w+=`${y}{${bo(a,!0)};${xo(l,!0)};box-shadow:none!important;font-weight:600!important}${y} > .ahd-tabs-label-text{${vo(l,!0)}}${y}:hover{${bo(a,!0)}}`}const S=`${e} > .ahd-tabs-dd-wrap`,k=`${e}.ahd-tabs-dd-open > .ahd-tabs-dd-wrap,${S}:focus-within`,v=s?`${S} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{font-size:${s}!important}`:"";return`${e}{display:block!important}${S}{display:block!important;position:relative!important;width:100%!important}${S} > .ahd-tabs-dd-trigger{display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%;box-sizing:border-box;padding:10px 14px;border:1px solid ${t};border-radius:${o};background:${r};color:${i};font:inherit;text-align:left;cursor:pointer;appearance:none;-webkit-appearance:none}${S} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}`+v+`${S} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{display:inline-block;width:8px;height:8px;flex-shrink:0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-2px;opacity:.7;transition:transform .15s ease}${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{transform:rotate(-135deg);margin-top:2px}${S} > .ahd-tabs-nav{position:absolute!important;top:calc(100% + 4px)!important;left:0!important;right:0!important;z-index:30!important;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;overflow:auto!important;max-height:260px!important;width:auto!important;gap:0!important;border:1px solid ${t}!important;border-radius:${o}!important;background:#fff!important;box-shadow:0 6px 20px rgba(0,0,0,.12)!important;padding:4px!important;align-items:stretch!important;justify-content:flex-start!important;visibility:hidden;opacity:0;pointer-events:none;transform:translateY(-4px);transition:opacity .12s ease,transform .12s ease,visibility .12s}${k} > .ahd-tabs-nav{visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:translateY(0)!important}${S} > .ahd-tabs-nav > .ahd-tabs-label{display:flex!important;justify-content:flex-start!important;width:100%!important;box-sizing:border-box;border:0!important;border-radius:6px!important;margin:0!important;padding:9px 12px!important;${xo(c??"inherit",!0)};background:${u??"transparent"}!important;box-shadow:${h}!important`+(b?`;border:${x}px solid transparent!important;border-image-source:${b}!important;border-image-slice:1!important`:"")+`}${S} > .ahd-tabs-nav > .ahd-tabs-label > .ahd-tabs-label-text{${vo(c??"inherit",!0)}}${S} > .ahd-tabs-nav > .ahd-tabs-label + .ahd-tabs-label{margin-top:${d}!important}${S} > .ahd-tabs-nav > .ahd-tabs-label:hover{background:${u??"rgba(0,0,0,.05)"}!important}${e} > .ahd-tabs-panels{position:static!important;width:100%!important;margin:${n} 0 0 0!important;grid-column:auto!important}`+w}function Ko(e,t){return`${e} > .ahd-tabs-dd-wrap{display:contents!important;position:static!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:static!important;top:auto!important;z-index:auto!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;max-height:none!important;overflow:visible!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:none!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{border-radius:${t}!important;margin-top:0!important;box-shadow:none!important}`}function w1({style:e,props:t}){const n=(t==null?void 0:t.orientation)??"horizontal",o=(t==null?void 0:t.orientationTablet)??n,r=(t==null?void 0:t.orientationMobile)??"vertical",a=((t==null?void 0:t.behavior)??"showSelectedSection")==="scrollToSelectedSection",l=(t==null?void 0:t.stickyNav)??!1,s=Z.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Tab 1",contentChildrenIds:[]}],[t==null?void 0:t.items]),c=Z.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),u=z(e==null?void 0:e.tabActiveColor),h=z(e==null?void 0:e.tabActiveBgColor),d=z(e==null?void 0:e.tabInactiveTextColor),f=z(e==null?void 0:e.tabInactiveBgColor),p=z(e==null?void 0:e.tabInactiveBorderColor),b=(e==null?void 0:e.tabInactiveBorderWidth)??1,x=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"0px",w=z(e==null?void 0:e.tabTextColor),S=z((e==null?void 0:e.tabBgColor)??"transparent"),k=z(e==null?void 0:e.navBorderColor),v=k?"2px":"0px",_=(e==null?void 0:e.tabGap)!=null?`${e.tabGap}px`:"0px",y=(e==null?void 0:e.contentGap)!=null?`${e.contentGap}px`:"0px",C=(e==null?void 0:e.navWidth)!=null?e.navWidth:160,I="var(--ahd-tabs-tab-gap,"+_+")",R="var(--ahd-tabs-content-gap,"+y+")",E=(e==null?void 0:e.activeFontSize)!=null?Yi(e.activeFontSize):void 0,M=((e==null?void 0:e.showActiveBorder)??!0)&&!h?u||"currentColor":"transparent",O=(t==null?void 0:t.tabsAlign)??"left",H=O==="center"?"center":O==="right"?"flex-end":"flex-start",D=(t==null?void 0:t.dropdown)??!1,V=(t==null?void 0:t.dropdownTablet)??D,F=(t==null?void 0:t.dropdownMobile)??V,q=e==null?void 0:e.padding,Y=e==null?void 0:e.margin,ie=((Y==null?void 0:Y.left)??0)+((Y==null?void 0:Y.right)??0),J=mt(e==null?void 0:e.borderColor),re=e!=null&&e.borderColor?J?{border:"1px solid transparent",borderImageSource:e.borderColor,borderImageSlice:1}:{border:`1px solid ${e.borderColor}`}:{},me={width:ie>0?`calc(100% - ${ie}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,...re,borderRadius:g1(e==null?void 0:e.borderRadius),padding:q?`${q.top}px ${q.right}px ${q.bottom}px ${q.left}px`:void 0,margin:Y?`${Y.top}px ${Y.right}px ${Y.bottom}px ${Y.left}px`:void 0,fontFamily:p1(e==null?void 0:e.fontFamily),fontSize:Yi(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,lineHeight:(e==null?void 0:e.lineHeight)??1.5,color:w,"--ahd-tabs-nav-border":k??"transparent"},ae=()=>s.map((j,B)=>g.jsx("input",{type:"radio",id:`${c}-r${B}`,name:c,className:"ahd-tabs-radio",defaultChecked:B===0,style:b1},B)),Se=Z.useMemo(()=>{const j=`.${c}`,B=u||"currentColor",K=w||"inherit",W=`${j} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label`,te=`${W} > .ahd-tabs-label-text`,fe=`${j} > .ahd-tabs-panels > .ahd-tabs-panel`,ze=d??K;let ue=`${W}{${xo(ze)};${bo(f)};${v1(p,b)};border-radius:${x}}${te}{${vo(ze)}}`+(a?"":`${fe}{display:none}`)+`${j} > .ahd-tabs-dd-wrap{display:contents}${j} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none}${j} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item{display:none}`;s.forEach((Ee,Ge)=>{const je=`#${c}-r${Ge}:checked`,kt=`${je} ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${Ge+1})`,gt=`${je} ~ .ahd-tabs-panels > .ahd-tabs-panel:nth-of-type(${Ge+1})`,at=mt(M),Ze=`${xo(B,!0)};${bo(h,!0)};box-shadow:none!important`+(at?`;${Nr(M,"3px",n==="vertical"?"left":"bottom",!0)}`:`;border-left-color:var(--ahd-tabs-active-border-color,${M})!important;border-bottom-color:var(--ahd-tabs-active-border-color,${M})!important`);ue+=`${kt}{${Ze}}`,ue+=`${kt} > .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${E??"inherit"})!important;${vo(B,!0)}}`,a||(ue+=`${gt}{display:block!important}`),ue+=`${je} ~ .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item:nth-of-type(${Ge+1}){display:inline}`}),ue+=qt(j,n,v,I,R,H,C!=null?String(C):void 0,k??void 0),o!==n&&(ue+=`${Jo}{${qt(j,o,v,I,R,H,C!=null?String(C):void 0,k??void 0)}}`),r!==o&&(ue+=`${Xo}{${qt(j,r,v,I,R,H,C!=null?String(C):void 0,k??void 0)}}`);const Ce=p||k||"#d0d5dd",le=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"8px",Ae=z((e==null?void 0:e.tabBgColor)??"#fff")??"#fff",ye=w??"inherit",Te=h??"transparent",Fe=u??"inherit",He=p?mt(p)?"none":`inset 0 0 0 ${b}px ${p}`:"none",ee=mt(p)?p:void 0,de=S1(j,Ce,R,le,Ae,ye,Te,Fe,E,d,f,He,I,c,s.length,ee,b);return l&&(ue+=`${j} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> ${j}){position:sticky;top:0;z-index:50}`),D?(ue+=de,V||(ue+=`${Jo}{${Ko(j,x)}${qt(j,o,v,I,R,H,C!=null?String(C):void 0,k??void 0)}}`),!F&&V&&(ue+=`${Xo}{${Ko(j,x)}${qt(j,r,v,I,R,H,C!=null?String(C):void 0,k??void 0)}}`)):(V&&(ue+=`${Jo}{${de}}`),F!==V&&(ue+=`${Xo}{${F?de:Ko(j,x)+qt(j,r,v,I,R,H,C!=null?String(C):void 0,k??void 0)}}`)),ue},[s,c,u,h,x,w,E,M,n,o,r,a,v,k,C,I,R,H,d,f,p,b,D,V,F,l]),xe=j=>a?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:j===0?void 0:R}:{display:j===0?"block":"none",width:"100%",minWidth:0,overflow:"hidden"},X=n==="vertical"?"ahd-tabs-o-v":"ahd-tabs-o-h";return g.jsxs("div",{className:`${c} ahd-tabs ${X}${l?" ahd-tabs-sticky":""}${a?" ahd-tabs-scroll-sections":""}`,style:me,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:Se}}),ae(),g.jsxs("div",{className:"ahd-tabs-dd-wrap",children:[g.jsxs("button",{type:"button",className:"ahd-tabs-dd-trigger","aria-haspopup":"listbox",tabIndex:0,children:[g.jsx("span",{className:"ahd-tabs-dd-current",children:s.map((j,B)=>g.jsx("span",{className:"ahd-tabs-dd-current-item","data-ahd-tab-index":B,children:j.label??`Tab ${B+1}`},B))}),g.jsx("span",{className:"ahd-tabs-dd-arrow","aria-hidden":"true"})]}),g.jsx("div",{className:"ahd-tabs-nav",style:{background:S,...l?{position:"sticky",top:0}:{}},children:s.map((j,B)=>g.jsx("label",{htmlFor:`${c}-r${B}`,className:"ahd-tabs-label","data-ahd-tab-index":B,tabIndex:-1,style:{alignItems:"center",cursor:"pointer",padding:n==="vertical"?"10px 16px":"10px 18px",whiteSpace:n==="vertical"?"normal":"nowrap",transition:"color .15s ease,border-color .15s ease",userSelect:"none",position:"relative",outline:"none"},children:g.jsx("span",{className:"ahd-tabs-label-text",style:x1,children:j.label??`Tab ${B+1}`})},B))})]}),g.jsx("div",{className:"ahd-tabs-panels",children:s.map((j,B)=>g.jsx("div",{id:`${c}-panel-${B}`,className:"ahd-tabs-panel","data-ahd-tab-index":B,style:xe(B),children:(j.contentChildrenIds??[]).map(K=>g.jsx(Re,{id:K},K))},B))})]})}const Jo=`@media (max-width:${Oe}px)`,Xo=`@media (max-width:${Le}px)`,$1=A({contentChildrenIds:ne($()).optional().nullable()}),k1=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:G([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),slideGap:m().optional().nullable(),arrowColor:$().optional().nullable(),arrowBgColor:$().optional().nullable(),arrowBorderColor:$().optional().nullable(),arrowSize:m().min(16).max(80).optional().nullable(),dotColor:$().optional().nullable(),dotActiveColor:$().optional().nullable(),dotSize:m().min(4).max(24).optional().nullable()}).optional().nullable(),props:A({slidesPerView:m().min(1).max(6).optional().nullable(),slidesPerViewTablet:m().min(1).max(6).optional().nullable(),slidesPerViewMobile:m().min(1).max(6).optional().nullable(),showArrows:L().optional().nullable(),showDots:L().optional().nullable(),autoplay:L().optional().nullable(),autoplayInterval:m().min(500).max(2e4).optional().nullable(),loop:L().optional().nullable(),transitionMs:m().min(0).max(3e3).optional().nullable(),items:ne($1).min(1).max(20).optional().nullable()}).optional().nullable()});function _1(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}const C1="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",A1="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",Ki=({d:e,size:t=20})=>g.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:g.jsx("path",{d:e})});function y1({style:e,props:t}){const n=Z.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],[t==null?void 0:t.items]),o=Z.useMemo(()=>`carousel-${Math.random().toString(36).slice(2,9)}`,[]),r=Math.max(1,(t==null?void 0:t.slidesPerView)??1),i=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(r,2)),a=Math.max(1,(t==null?void 0:t.slidesPerViewMobile)??1),l=(t==null?void 0:t.showArrows)??!0,s=(t==null?void 0:t.showDots)??!0,c=(t==null?void 0:t.autoplay)??!1,u=(t==null?void 0:t.autoplayInterval)??4e3,h=(t==null?void 0:t.loop)??!0,d=(t==null?void 0:t.transitionMs)??400,f=(e==null?void 0:e.slideGap)??16,p=z((e==null?void 0:e.arrowColor)??"#262626")??"#262626",b=z((e==null?void 0:e.arrowBgColor)??"#ffffff")??"#ffffff",x=z((e==null?void 0:e.arrowBorderColor)??"rgba(0,0,0,.12)")??"rgba(0,0,0,.12)",w=(e==null?void 0:e.arrowSize)??40,S=z((e==null?void 0:e.dotColor)??"#d4d4d4")??"#d4d4d4",k=z((e==null?void 0:e.dotActiveColor)??"#262626")??"#262626",v=(e==null?void 0:e.dotSize)??8,_=Math.max(12,Math.min(40,Math.round(w*.5))),y=e==null?void 0:e.padding,C=e==null?void 0:e.margin,I=((C==null?void 0:C.left)??0)+((C==null?void 0:C.right)??0),R={width:I>0?`calc(100% - ${I}px)`:"100%",boxSizing:"border-box",position:"relative",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:_1(e==null?void 0:e.borderRadius),padding:y?`${y.top}px ${y.right}px ${y.bottom}px ${y.left}px`:void 0,margin:C?`${C.top}px ${C.right}px ${C.bottom}px ${C.left}px`:void 0},E=Z.useMemo(()=>{const H=`.${o}`,D=V=>`calc((100% - ${f*(V-1)}px) / ${V})`;return`${H} .ahd-carousel-viewport{overflow:hidden;width:100%}${H} .ahd-carousel-track{display:flex;gap:var(--ahd-carousel-slide-gap,${f}px);transition:transform ${d}ms ease;will-change:transform}${H} .ahd-carousel-slide{flex:0 0 ${D(r)};min-width:0;box-sizing:border-box}${H} .ahd-carousel-prev svg,${H} .ahd-carousel-next svg{width:var(--ahd-carousel-chevron-size,${_}px);height:var(--ahd-carousel-chevron-size,${_}px)}@media (max-width:${Oe}px){${H} .ahd-carousel-slide{flex-basis:${D(i)}}}@media (max-width:${Le}px){${H} .ahd-carousel-slide{flex-basis:${D(a)}}}`},[o,f,d,r,i,a,_]),P={appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-arrow-size, ${w}px)`,height:`var(--ahd-carousel-arrow-size, ${w}px)`,minWidth:`var(--ahd-carousel-arrow-size, ${w}px)`,borderRadius:"50%",border:`1px solid ${x}`,backgroundColor:b,backgroundImage:"none",color:p,boxShadow:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,lineHeight:1,padding:0},M=Math.min(r,i,a),O=Math.max(1,n.length-M+1);return g.jsxs("div",{className:`${o} ahd-carousel`,style:R,"data-per-view":r,"data-per-view-tablet":i,"data-per-view-mobile":a,"data-autoplay":c?"1":"0","data-autoplay-interval":u,"data-loop":h?"1":"0",children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:E}}),g.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&g.jsx("button",{type:"button",className:"ahd-carousel-prev",style:P,"aria-label":"Previous slide",children:g.jsx(Ki,{d:C1,size:_})}),g.jsx("div",{className:"ahd-carousel-viewport",children:g.jsx("div",{className:"ahd-carousel-track",children:n.map((H,D)=>g.jsx("div",{className:"ahd-carousel-slide","data-ahd-slide-index":D,children:(H.contentChildrenIds??[]).map(V=>g.jsx(Re,{id:V},V))},D))})}),l&&g.jsx("button",{type:"button",className:"ahd-carousel-next",style:P,"aria-label":"Next slide",children:g.jsx(Ki,{d:A1,size:_})})]}),s&&O>1&&g.jsx("div",{className:"ahd-carousel-dots",style:{display:"flex",justifyContent:"center",gap:8,marginTop:16},"data-dot-color":S,"data-dot-active-color":k,children:Array.from({length:O}).map((H,D)=>g.jsx("button",{type:"button",className:"ahd-carousel-dot","data-ahd-dot-index":D,"aria-label":`Go to slide ${D+1}`,style:{appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-dot-size, ${v}px)`,height:`var(--ahd-carousel-dot-size, ${v}px)`,minWidth:`var(--ahd-carousel-dot-size, ${v}px)`,padding:0,border:"none",borderRadius:"50%",cursor:"pointer",boxShadow:"none",backgroundColor:D===0?k:S,backgroundImage:"none"}},D))})]})}const I1=A({style:A({starColor:$().optional().nullable(),starEmptyColor:$().optional().nullable(),starSize:m().min(8).max(80).optional().nullable(),starGap:m().min(0).max(40).optional().nullable(),textColor:$().optional().nullable(),fontSize:G([$(),m()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({value:G([m(),$()]).optional().nullable(),max:G([m(),$()]).optional().nullable(),showValue:L().optional().nullable()}).optional().nullable()}),Ji="M12 .587l3.668 7.431 8.2 1.193-5.934 5.787 1.401 8.168L12 18.896l-7.335 3.866 1.401-8.168L.132 9.211l8.2-1.193z";function R1(e){if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function N1(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function T1({fillPct:e,size:t,filledColor:n,emptyColor:o}){return g.jsxs("span",{className:"ahd-rating-star",style:{position:"relative",display:"inline-block",width:`var(--ahd-rating-star-size, ${t}px)`,height:`var(--ahd-rating-star-size, ${t}px)`,lineHeight:0},children:[g.jsx("svg",{viewBox:"0 0 24 24",fill:o,style:{display:"block",width:"100%",height:"100%"},"aria-hidden":"true",children:g.jsx("path",{d:Ji})}),g.jsx("span",{className:"ahd-rating-star-fill",style:{position:"absolute",top:0,left:0,height:"100%",width:`${e}%`,overflow:"hidden",lineHeight:0},children:g.jsx("svg",{viewBox:"0 0 24 24",fill:n,style:{display:"block",width:`var(--ahd-rating-star-size, ${t}px)`,height:`var(--ahd-rating-star-size, ${t}px)`},"aria-hidden":"true",children:g.jsx("path",{d:Ji})})})]})}function E1({style:e,props:t}){const n=Z.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),o=(w,S)=>{if(typeof w=="number")return Number.isFinite(w)?w:S;const k=parseFloat(String(w??""));return Number.isFinite(k)?k:S},r=Math.max(1,Math.min(10,Math.round(o(t==null?void 0:t.max,5)))),i=Math.max(0,Math.min(r,o(t==null?void 0:t.value,0))),a=(t==null?void 0:t.showValue)??!0,l=z((e==null?void 0:e.starColor)??"#facc15")??"#facc15",s=z((e==null?void 0:e.starEmptyColor)??"#e5e7eb")??"#e5e7eb",c=(e==null?void 0:e.starSize)??24,u=(e==null?void 0:e.starGap)??4,h=z((e==null?void 0:e.textColor)??"#262626")??"#262626",d=(e==null?void 0:e.textAlign)??"left",f=e==null?void 0:e.padding,p=e==null?void 0:e.margin,b={display:"flex",alignItems:"center",gap:`calc(var(--ahd-rating-star-gap, ${u}px) + 4px)`,justifyContent:d==="center"?"center":d==="right"?"flex-end":"flex-start",flexWrap:"wrap",color:h,fontFamily:R1(e==null?void 0:e.fontFamily),fontSize:N1(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:f?`${f.top}px ${f.right}px ${f.bottom}px ${f.left}px`:void 0,margin:p?`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`:void 0,boxSizing:"border-box"},x=w=>{const S=i-w;return S>=1?100:S>=.5?50:S>0?Math.round(S*100):0};return g.jsxs("div",{className:`${n} ahd-rating rating-block`,style:b,children:[g.jsx("span",{className:"ahd-rating-stars",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-rating-star-gap, ${u}px)`},children:Array.from({length:r}).map((w,S)=>g.jsx(T1,{fillPct:x(S),size:c,filledColor:l,emptyColor:s},S))}),a&&g.jsxs("span",{className:"ahd-rating-value",style:{fontWeight:600},children:[Number.isInteger(i)?i:i.toFixed(1),g.jsxs("span",{style:{opacity:.55},children:["/",r]})]})]})}const M1=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),P1=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),O1=A({style:A({trackColor:$().optional().nullable(),fillColor:$().optional().nullable(),textColor:$().optional().nullable(),fontSize:G([$(),m()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),barHeight:m().min(2).max(60).optional().nullable(),barRadius:m().min(0).max(40).optional().nullable(),circleSize:m().min(40).max(320).optional().nullable(),strokeWidth:m().min(2).max(40).optional().nullable(),stepSize:m().min(4).max(48).optional().nullable(),stepGap:m().min(0).max(40).optional().nullable(),padding:M1,margin:P1}).optional().nullable(),props:A({variant:N(["linear","circular","steps"]).optional().nullable(),value:G([m(),$()]).optional().nullable(),max:G([m(),$()]).optional().nullable(),showLabel:L().optional().nullable(),labelFormat:N(["percent","fraction"]).optional().nullable(),steps:m().min(2).max(20).optional().nullable(),striped:L().optional().nullable(),animated:L().optional().nullable()}).optional().nullable()});function L1(e){if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function z1(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function Xi(e,t){if(typeof e=="number")return Number.isFinite(e)?e:t;const n=parseFloat(String(e??""));return Number.isFinite(n)?n:t}function Qi(e,t,n,o){return o==="fraction"?`${Number.isInteger(t)?t:t.toFixed(1)}/${n}`:`${Math.round(e)}%`}function j1({pct:e,label:t,trackColor:n,fillColor:o,barHeight:r,barRadius:i,striped:a,animated:l,ariaLabel:s,value:c,max:u}){const h=a&&l;return g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,width:"100%"},children:[h&&g.jsx("style",{dangerouslySetInnerHTML:{__html:"@keyframes ahd-progress-stripes{from{background-position:1rem 0}to{background-position:0 0}}.ahd-progress-animated{animation:ahd-progress-stripes 1s linear infinite}@media (prefers-reduced-motion: reduce){.ahd-progress-animated{animation:none}}"}}),g.jsx("div",{className:"ahd-progress-track",role:"progressbar","aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":u,"aria-label":s,style:{width:"100%",height:r,borderRadius:i,backgroundColor:n,overflow:"hidden",boxSizing:"border-box"},children:g.jsx("div",{className:`ahd-progress-fill${a?" ahd-progress-striped":""}${h?" ahd-progress-animated":""}`,style:{width:`${e}%`,height:"100%",borderRadius:i,backgroundColor:o,backgroundImage:a?"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)":void 0,backgroundSize:a?"1rem 1rem":void 0,transition:"width 300ms ease"}})}),t!=null&&g.jsx("span",{children:t})]})}function B1({pct:e,label:t,trackColor:n,fillColor:o,size:r,strokeWidth:i,textColor:a,fontWeight:l,ariaLabel:s,value:c,max:u}){const h=(r-i)/2,d=2*Math.PI*h,f=d*(1-e/100),p=r/2;return g.jsxs("div",{className:"ahd-progress-circular",role:"progressbar","aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":u,"aria-label":s,style:{position:"relative",width:r,height:r,display:"inline-flex"},children:[g.jsxs("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,children:[g.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:n,strokeWidth:i}),g.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:o,strokeWidth:i,strokeLinecap:"round",strokeDasharray:d,strokeDashoffset:f,transform:`rotate(-90 ${p} ${p})`,style:{transition:"stroke-dashoffset 300ms ease"}})]}),t!=null&&g.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:a,fontWeight:l??600},children:t})]})}function D1({steps:e,activeIndex:t,trackColor:n,fillColor:o,stepSize:r,stepGap:i,label:a,ariaLabel:l,value:s,max:c}){return g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[g.jsx("div",{className:"ahd-progress-steps",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":c,"aria-label":l,style:{display:"inline-flex",alignItems:"center",gap:i},children:Array.from({length:e}).map((u,h)=>g.jsx("span",{"data-active":h<t?"true":"false",style:{width:r,height:r,borderRadius:"50%",backgroundColor:h<t?o:n,transition:"background-color 200ms ease",display:"inline-block"}},h))}),a!=null&&g.jsx("span",{children:a})]})}function F1({style:e,props:t}){const n=Z.useMemo(()=>`progress-${Math.random().toString(36).slice(2,9)}`,[]),o=(t==null?void 0:t.variant)??"linear",r=Math.max(1,Xi(t==null?void 0:t.max,100)),i=Math.max(0,Math.min(r,Xi(t==null?void 0:t.value,0))),a=i/r*100,l=(t==null?void 0:t.showLabel)??!0,s=(t==null?void 0:t.labelFormat)??"percent",c=l?Qi(a,i,r,s):null,u=`Progress: ${Qi(a,i,r,"percent")}`,h=z((e==null?void 0:e.trackColor)??"#e5e7eb")??"#e5e7eb",d=z((e==null?void 0:e.fillColor)??"#3F73FF")??"#3F73FF",f=z((e==null?void 0:e.textColor)??"#262626")??"#262626",p=(e==null?void 0:e.textAlign)??"left",b=e==null?void 0:e.padding,x=e==null?void 0:e.margin,w={display:"flex",justifyContent:p==="center"?"center":p==="right"?"flex-end":"flex-start",color:f,fontFamily:L1(e==null?void 0:e.fontFamily),fontSize:z1((e==null?void 0:e.fontSize)??13),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,margin:x?`${x.top}px ${x.right}px ${x.bottom}px ${x.left}px`:void 0,boxSizing:"border-box"},S=Math.max(2,Math.min(20,Math.round((t==null?void 0:t.steps)??5))),k=Math.round(a/100*S);return g.jsx("div",{className:`${n} ahd-progress progress-block`,style:w,children:o==="circular"?g.jsx(B1,{pct:a,label:c,trackColor:h,fillColor:d,size:(e==null?void 0:e.circleSize)??96,strokeWidth:(e==null?void 0:e.strokeWidth)??8,textColor:f,fontWeight:(e==null?void 0:e.fontWeight)??void 0,ariaLabel:u,value:i,max:r}):o==="steps"?g.jsx(D1,{steps:S,activeIndex:k,trackColor:h,fillColor:d,stepSize:(e==null?void 0:e.stepSize)??14,stepGap:(e==null?void 0:e.stepGap)??12,label:c,ariaLabel:u,value:i,max:r}):g.jsx(j1,{pct:a,label:c,trackColor:h,fillColor:d,barHeight:(e==null?void 0:e.barHeight)??12,barRadius:(e==null?void 0:e.barRadius)??6,striped:(t==null?void 0:t.striped)??!1,animated:(t==null?void 0:t.animated)??!1,ariaLabel:u,value:i,max:r})})}const H1=A({responsive:We,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),borderRadius:G([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),itemGap:m().min(0).max(200).optional().nullable(),viewportHeight:m().min(40).max(1200).optional().nullable()}).optional().nullable(),props:A({direction:N(["left","right","up","down"]).optional().nullable(),speed:m().min(5).max(200).optional().nullable(),pauseOnHover:L().optional().nullable(),repeat:m().min(2).max(6).optional().nullable(),fadeEdges:L().optional().nullable(),verticalAlign:N(["top","middle","bottom"]).optional().nullable(),items:ne(A({contentChildrenIds:ne($()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),G1=40,U1=32,W1=200,zs=(e,t)=>typeof e=="number"?Math.max(40,Math.min(1200,e)):t,js=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,Z1=e=>Math.max(2,Math.round(1200/e)),V1=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),Bs=e=>e==="up"||e==="down",q1=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",So=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function Y1(e,t){return{speed:js(t==null?void 0:t.speed,G1),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??U1,viewportHeight:zs(e==null?void 0:e.viewportHeight,W1)}}function K1(e,t,n){var r,i,a,l,s;const o=e==null?void 0:e[t];return{speed:js((r=o==null?void 0:o.props)==null?void 0:r.speed,n.speed),pauseOnHover:((i=o==null?void 0:o.props)==null?void 0:i.pauseOnHover)??n.pauseOnHover,fadeEdges:((a=o==null?void 0:o.props)==null?void 0:a.fadeEdges)??n.fadeEdges,itemGap:((l=o==null?void 0:o.style)==null?void 0:l.itemGap)??n.itemGap,viewportHeight:zs((s=o==null?void 0:o.style)==null?void 0:s.viewportHeight,n.viewportHeight)}}const J1=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},el=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${Z1(e.speed)}s;--ahd-mq-height:${e.viewportHeight}px;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,X1=(e,t)=>e.fadeEdges?`-webkit-mask-image:${So(t)}!important;mask-image:${So(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function Q1({instanceId:e,direction:t,repeat:n,desktop:o,responsive:r,verticalAlign:i}){const a=`.${e}`,l=Bs(t),s=l?"column":"row",c=t==="right"||t==="down"?"reverse":"normal",u=l?"flex-start":q1(i),h=100/n,d=l?`@keyframes ${e}-kf{from{transform:translateY(0)}to{transform:translateY(-${h}%)}}`:`@keyframes ${e}-kf{from{transform:translateX(0)}to{transform:translateX(-${h}%)}}`,f=(b,x)=>{if(!J1(r,x))return"";const w=K1(r,x,o);return`${b}{${a}{${el(w)};${X1(w,l)}}}`},p=l?`${a} .ahd-marquee-viewport{height:var(--ahd-mq-height);overflow:hidden;position:relative}`:`${a} .ahd-marquee-viewport{overflow:hidden;position:relative;max-width:100%}`;return d+`${a}{${el(o)}}`+p+`${a} .ahd-marquee-track{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);width:${l?"100%":"max-content"};animation:${e}-kf var(--ahd-mq-duration) linear infinite ${c};will-change:transform}${a} .ahd-marquee-group{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);flex:0 0 auto;align-items:${u}}${a} .ahd-marquee-item{flex:0 0 auto;${l?"width:100%":""}}${a}:hover .ahd-marquee-track{animation-play-state:var(--ahd-mq-hover)}`+f(Dt,"tablet")+f(De,"mobile")+`@media (prefers-reduced-motion: reduce){${a} .ahd-marquee-track{animation:none}}`}function eS(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function tS(e,t){if(!e)return{};const n=(t==null?void 0:t.top)??1,o=(t==null?void 0:t.bottom)??1;return{borderTop:n>0?`${n}px solid ${e}`:void 0,borderBottom:o>0?`${o}px solid ${e}`:void 0}}function nS({style:e,props:t,responsive:n}){const o=Z.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),r=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],i=(t==null?void 0:t.direction)??"left",a=V1(t==null?void 0:t.repeat),l=Bs(i),s=Y1(e,t),c=z(e==null?void 0:e.backgroundColor),u=z(e==null?void 0:e.borderColor),h=e==null?void 0:e.padding,d=e==null?void 0:e.margin,f=((d==null?void 0:d.left)??0)+((d==null?void 0:d.right)??0),p={width:f>0?`calc(100% - ${f}px)`:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden",position:"relative",background:c??void 0,...tS(u,e==null?void 0:e.borderWidth),borderRadius:eS(e==null?void 0:e.borderRadius),padding:h?`${h.top}px ${h.right}px ${h.bottom}px ${h.left}px`:void 0,margin:d?`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`:void 0,...s.fadeEdges?{WebkitMaskImage:So(l),maskImage:So(l)}:{}},b=(t==null?void 0:t.verticalAlign)??"middle",x=Z.useMemo(()=>Q1({instanceId:o,direction:i,repeat:a,desktop:s,responsive:n,verticalAlign:b}),[o,i,a,s.speed,s.pauseOnHover,s.fadeEdges,s.itemGap,s.viewportHeight,n,b]),w=S=>g.jsx("div",{className:"ahd-marquee-group","aria-hidden":S>0?!0:void 0,children:r.map((k,v)=>g.jsx("div",{className:"ahd-marquee-item",children:(k.contentChildrenIds??[]).map(_=>g.jsx(Re,{id:_},_))},v))},S);return g.jsxs("div",{className:`${o} ahd-marquee`,style:p,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),g.jsx("div",{className:"ahd-marquee-viewport",children:g.jsx("div",{className:"ahd-marquee-track",children:Array.from({length:a}).map((S,k)=>w(k))})})]})}const oS=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),rS=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),aS=A({style:A({backgroundColor:$().optional().nullable(),textColor:$().optional().nullable(),accentColor:$().optional().nullable(),numberColor:$().optional().nullable(),numberFontWeight:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:G([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:oS,margin:rS}).optional().nullable(),props:A({layout:N(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:$().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:L().default(!0),expiredBehavior:N(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:$().default("Offer has ended"),showConfetti:L().default(!1)}).optional().nullable()});function iS(e){return String(Math.max(0,e)).padStart(2,"0")}function lS({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a,numberColor:l,fallbackInk:s="#1f1f1f",fallbackMuted:c="#6b7280",fallbackOnAccent:u="#ffffff"}){const h=[{value:e,label:"Days"},{value:t,label:"Hours"},{value:n,label:"Minutes"},{value:o,label:"Seconds"}];return g.jsx("div",{className:"ahd-timer-digital",style:{display:"flex",gap:12,alignItems:"flex-start",justifyContent:"center"},children:h.map(d=>g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[g.jsx("div",{"data-ahd-timer-unit":d.label.toLowerCase(),style:{minWidth:48,padding:"8px 10px",borderRadius:8,background:i??s,color:l??u,fontVariantNumeric:"tabular-nums",fontSize:22,fontWeight:700,textAlign:"center",lineHeight:1},children:iS(d.value)}),r&&g.jsx("span",{style:{fontSize:11,color:a??c,textTransform:"uppercase"},children:d.label})]},d.label))})}function sS(e){return String(Math.max(0,e)).padStart(2,"0")}const Tr=26,tl=2*Math.PI*Tr;function cS({value:e,max:t,accentColor:n,numberColor:o,numberFontWeight:r,unit:i,trackColor:a}){const l=t>0?Math.min(1,Math.max(0,e/t)):0,s=tl*(1-l);return g.jsxs("svg",{"data-ahd-timer-unit":i,"data-ahd-timer-max":t,width:64,height:64,viewBox:"0 0 64 64",children:[g.jsx("circle",{cx:32,cy:32,r:Tr,fill:"none",stroke:a,strokeWidth:5}),g.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:Tr,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:tl,strokeDashoffset:s,transform:"rotate(-90 32 32)",style:{transition:"stroke-dashoffset 1s linear"}}),g.jsx("text",{"data-ahd-timer-text":!0,x:32,y:37,textAnchor:"middle",fontSize:15,fontWeight:r??700,fill:o,children:sS(e)})]})}function uS({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a,numberColor:l,numberFontWeight:s,fallbackInk:c="#1f1f1f",fallbackMuted:u="#6b7280",fallbackAccent:h="#7c3aed",fallbackTrack:d="#e5e7eb"}){const f=i??h,p=l??c,b=[{value:e,max:30,label:"Days"},{value:t,max:24,label:"Hours"},{value:n,max:60,label:"Minutes"},{value:o,max:60,label:"Seconds"}];return g.jsx("div",{className:"ahd-timer-circular",style:{display:"flex",gap:16,alignItems:"flex-start",justifyContent:"center"},children:b.map(x=>g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[g.jsx(cS,{value:x.value,max:x.max,accentColor:f,numberColor:p,numberFontWeight:s,unit:x.label.toLowerCase(),trackColor:d}),r&&g.jsx("span",{style:{fontSize:11,color:a??u,textTransform:"uppercase"},children:x.label})]},x.label))})}function Et(e){return String(Math.max(0,e)).padStart(2,"0")}function dS({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a,fallbackInk:l="#1f1f1f",fallbackAccent:s="#7c3aed"}){const c=[{key:"days",text:r?`${e}d`:Et(e)},{key:"hours",text:r?`${Et(t)}h`:Et(t)},{key:"minutes",text:r?`${Et(n)}m`:Et(n)},{key:"seconds",text:r?`${Et(o)}s`:Et(o)}],u=r?" ":" : ";return g.jsxs("div",{className:"ahd-timer-inline","data-ahd-timer-show-labels":r?"1":"0",style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:16,fontWeight:600,color:a??l},children:[g.jsx("span",{style:{color:i??s,marginRight:6},children:"Ends in"}),c.map((h,d)=>g.jsxs(Z.Fragment,{children:[d>0&&u,g.jsx("span",{"data-ahd-timer-unit":h.key,children:h.text})]},h.key))]})}function hS(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function fS(e,t=Date.now()){const n=e?new Date(e).getTime():NaN;if(Number.isNaN(n))return{days:0,hours:0,minutes:0,seconds:0,completed:!0};const o=Math.max(0,n-t),r=o<=0,i=Math.floor(o/1e3);return{days:Math.floor(i/86400),hours:Math.floor(i%86400/3600),minutes:Math.floor(i%3600/60),seconds:i%60,completed:r}}function mS({style:e,props:t}){const n=t??{},o=n.layout??"digitalFlip",r=n.showLabels??!0,i=n.expiredBehavior??"showMessage",a=n.expiredMessage||"Offer has ended",l=fS(n.targetDate),s=l.completed,c=z(e==null?void 0:e.backgroundColor),u=z(e==null?void 0:e.borderColor),h=z(e==null?void 0:e.accentColor),d=z(e==null?void 0:e.textColor),f=z(e==null?void 0:e.numberColor),p=z("#1f1f1f")??"#1f1f1f",b=z("#6b7280")??"#6b7280",x=z("#7c3aed")??"#7c3aed",w=z("#ffffff")??"#ffffff",S=z("#e5e7eb")??"#e5e7eb",k=e==null?void 0:e.padding,v=e==null?void 0:e.margin,_=((v==null?void 0:v.left)??0)+((v==null?void 0:v.right)??0),y={width:_>0?`calc(100% - ${_}px)`:"100%",boxSizing:"border-box",background:c??void 0,border:u?`1px solid ${u}`:void 0,borderRadius:hS(e==null?void 0:e.borderRadius),padding:k?`${k.top}px ${k.right}px ${k.bottom}px ${k.left}px`:"16px",margin:v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:void 0},C={days:l.days,hours:l.hours,minutes:l.minutes,seconds:l.seconds,showLabels:r,accentColor:h,textColor:d,numberColor:f,fallbackInk:p,fallbackMuted:b,fallbackAccent:x,fallbackOnAccent:w,fallbackTrack:S,numberFontWeight:e==null?void 0:e.numberFontWeight},I=s&&i==="showMessage",R=s&&i==="hide";return g.jsxs("div",{className:"ahd-timer","data-layout":o,"data-ahd-timer-target-date":n.targetDate,"data-ahd-timer-expired-behavior":i,"data-ahd-timer-expired-message":a,"data-ahd-timer-show-labels":r?"1":"0","data-ahd-timer-confetti":n.showConfetti?"1":"0",style:{...y,display:R?"none":void 0},children:[g.jsx("div",{"data-ahd-timer-message":!0,style:{textAlign:"center",color:d??p,display:I?void 0:"none"},children:a}),g.jsxs("div",{"data-ahd-timer-body":!0,style:{display:I?"none":void 0},children:[o==="digitalFlip"&&g.jsx(lS,{...C}),o==="circularProgress"&&g.jsx(uS,{...C}),o==="textInline"&&g.jsx(dS,{...C})]})]})}const pS=N(["left","center","right","space-between"]),gS=A({contentChildrenIds:ne($()).optional().nullable()}),bS=A({childrenIds:ne($())}),xS=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:G([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),itemGap:m().min(0).max(120).optional().nullable(),columnsGap:m().min(0).max(120).optional().nullable(),rowsGap:m().min(0).max(120).optional().nullable(),controlGap:m().min(0).max(120).optional().nullable(),controlAlign:pS.optional().nullable(),buttonSize:m().min(20).max(72).optional().nullable(),buttonGap:m().min(0).max(40).optional().nullable(),buttonRadius:m().min(0).max(999).optional().nullable(),buttonBg:$().optional().nullable(),buttonColor:$().optional().nullable(),buttonBorderColor:$().optional().nullable(),activeButtonBg:$().optional().nullable(),activeButtonColor:$().optional().nullable(),activeButtonBorderColor:$().optional().nullable(),arrowColor:$().optional().nullable(),fontSize:m().min(8).max(40).optional().nullable(),fontFamily:$().optional().nullable()}).optional().nullable(),props:A({items:ne(gS).min(1).max(50).optional().nullable(),cells:ne(bS).optional().nullable(),columnsCount:m().int().min(1).max(12).optional().nullable(),rowsCount:m().int().min(1).max(24).optional().nullable(),columnsCountTablet:m().int().min(1).max(12).optional().nullable(),columnsCountMobile:m().int().min(1).max(12).optional().nullable(),rowsCountTablet:m().int().min(1).max(24).optional().nullable(),rowsCountMobile:m().int().min(1).max(24).optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:N(["left","center","right"]).optional().nullable(),cellsPerPage:m().int().min(1).max(100).optional().nullable(),repeatableEnabled:L().optional().nullable(),pageParam:$().min(1).max(40).optional().nullable(),syncUrl:L().optional().nullable(),showNumbers:L().optional().nullable(),showPrevNext:L().optional().nullable(),showFirstLast:L().optional().nullable(),maxVisiblePages:m().min(0).max(50).optional().nullable(),prevLabel:$().max(24).optional().nullable(),nextLabel:$().max(24).optional().nullable(),firstLabel:$().max(24).optional().nullable(),lastLabel:$().max(24).optional().nullable(),scrollToTopOnChange:L().optional().nullable(),explicitFirstPage:L().optional().nullable()}).optional().nullable()}),Er={columnsCount:2,rowsCount:2};function Qo(e,t="desktop"){const n=Er,o=(e==null?void 0:e.columnsCount)??n.columnsCount,r=(e==null?void 0:e.rowsCount)??n.rowsCount,i=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??o:o,a=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??r:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??r:r;let l;Array.isArray(e==null?void 0:e.cells)?l=e.cells:Array.isArray(e==null?void 0:e.items)?l=e.items.map(u=>({childrenIds:Array.isArray(u==null?void 0:u.contentChildrenIds)?u.contentChildrenIds:[]})):l=[];const s=Math.max(1,o*r,i*a,l.length),c=Array.from({length:s},(u,h)=>{var d;return{childrenIds:Array.isArray((d=l[h])==null?void 0:d.childrenIds)?l[h].childrenIds:[]}});return{columnsCount:i,rowsCount:a,cells:c}}function er(e,t="desktop"){if((e==null?void 0:e.cellsPerPage)!=null)return Math.max(1,e.cellsPerPage);const n=(e==null?void 0:e.columnsCount)??Er.columnsCount,o=(e==null?void 0:e.rowsCount)??Er.rowsCount,r=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??n:n,i=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??o:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??o:o;return Math.max(1,r*i)}function vS(e,t,n){const o=Math.max(1,e),r=Math.min(Math.max(1,n),o*Math.max(1,t));return Math.max(1,Math.ceil(r/o))}function SS(e,t){const n=Math.max(1,t);if(e.length===0)return[[]];const o=[];for(let r=0;r<e.length;r+=n)o.push(e.slice(r,r+n));return o}const wS={pageParam:"page",syncUrl:!0,showNumbers:!0,showPrevNext:!0,showFirstLast:!1,maxVisiblePages:7,scrollToTopOnChange:!0,prevLabel:"‹",nextLabel:"›",firstLabel:"«",lastLabel:"»",itemGap:16,controlGap:24,controlAlign:"center",buttonSize:36,buttonGap:8,buttonRadius:8,buttonBg:"#ffffff",buttonColor:"#262626",buttonBorderColor:"rgba(0,0,0,.12)",activeButtonBg:"#5550ff",activeButtonColor:"#ffffff",activeButtonBorderColor:"#5550ff",arrowColor:"#262626",fontSize:14};function $S({style:e,props:t}){const n=wS;return{pageParam:((t==null?void 0:t.pageParam)??n.pageParam).trim()||n.pageParam,syncUrl:(t==null?void 0:t.syncUrl)??n.syncUrl,showNumbers:(t==null?void 0:t.showNumbers)??n.showNumbers,showPrevNext:(t==null?void 0:t.showPrevNext)??n.showPrevNext,showFirstLast:(t==null?void 0:t.showFirstLast)??n.showFirstLast,maxVisiblePages:(()=>{const o=(t==null?void 0:t.maxVisiblePages)??n.maxVisiblePages;return o<=0?0:Math.max(5,o)})(),scrollToTopOnChange:(t==null?void 0:t.scrollToTopOnChange)??n.scrollToTopOnChange,explicitFirstPage:(t==null?void 0:t.syncUrl)??n.syncUrl,prevLabel:(t==null?void 0:t.prevLabel)??n.prevLabel,nextLabel:(t==null?void 0:t.nextLabel)??n.nextLabel,firstLabel:(t==null?void 0:t.firstLabel)??n.firstLabel,lastLabel:(t==null?void 0:t.lastLabel)??n.lastLabel,itemGap:(e==null?void 0:e.itemGap)??n.itemGap,controlGap:(e==null?void 0:e.controlGap)??n.controlGap,controlAlign:(e==null?void 0:e.controlAlign)??n.controlAlign,buttonSize:(e==null?void 0:e.buttonSize)??n.buttonSize,buttonGap:(e==null?void 0:e.buttonGap)??n.buttonGap,buttonRadius:(e==null?void 0:e.buttonRadius)??n.buttonRadius,buttonBg:(e==null?void 0:e.buttonBg)??n.buttonBg,buttonColor:(e==null?void 0:e.buttonColor)??n.buttonColor,buttonBorderColor:(e==null?void 0:e.buttonBorderColor)??n.buttonBorderColor,activeButtonBg:(e==null?void 0:e.activeButtonBg)??n.activeButtonBg,activeButtonColor:(e==null?void 0:e.activeButtonColor)??n.activeButtonColor,activeButtonBorderColor:(e==null?void 0:e.activeButtonBorderColor)??n.activeButtonBorderColor,arrowColor:(e==null?void 0:e.arrowColor)??n.arrowColor,fontSize:(e==null?void 0:e.fontSize)??n.fontSize,fontFamily:(e==null?void 0:e.fontFamily)??void 0}}function kS(e){return Math.max(1,e)}function _S(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,c)=>c+1);const o=[],r=Math.max(1,n-2),i=Math.floor(r/2);let a=Math.max(2,e-i),l=Math.min(t-1,a+r-1);a=Math.max(2,Math.min(a,l-r+1)),o.push(1),a>2&&o.push("ellipsis");for(let s=a;s<=l;s++)o.push(s);return l<t-1&&o.push("ellipsis"),o.push(t),o}function CS(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function AS({style:e,props:t}){const n=$S({style:e,props:t}),o=Qo(t,"desktop"),r=Qo(t,"tablet"),i=Qo(t,"mobile"),a=Math.max(er(t,"desktop"),er(t,"tablet"),er(t,"mobile")),l=Z.useMemo(()=>o.cells.length>=a?o.cells:Array.from({length:a},(F,q)=>o.cells[q]??{childrenIds:[]}),[o.cells,a]),s=Z.useMemo(()=>SS(l,a),[l,a]),c=kS(s.length),u=(e==null?void 0:e.columnsGap)??n.itemGap,h=(e==null?void 0:e.rowsGap)??n.itemGap,d=Z.useMemo(()=>`pgn-${Math.random().toString(36).slice(2,9)}`,[]),f=Z.useMemo(()=>_S(1,c,n.maxVisiblePages),[c,n.maxVisiblePages]),p=ka(),b=p(e==null?void 0:e.backgroundColor),x=p(e==null?void 0:e.borderColor),w=p(n.buttonBg),S=p(n.buttonColor),k=p(n.buttonBorderColor),v=p(n.arrowColor),_=p(n.activeButtonBg),y=p(n.activeButtonColor),C=p(n.activeButtonBorderColor),I=e==null?void 0:e.padding,R=e==null?void 0:e.margin,E=((R==null?void 0:R.left)??0)+((R==null?void 0:R.right)??0),P={width:E>0?`calc(100% - ${E}px)`:"100%",boxSizing:"border-box",background:b??void 0,border:x?`1px solid ${x}`:void 0,borderRadius:CS(e==null?void 0:e.borderRadius),padding:I?`${I.top}px ${I.right}px ${I.bottom}px ${I.left}px`:void 0,margin:R?`${R.top}px ${R.right}px ${R.bottom}px ${R.left}px`:void 0,fontFamily:n.fontFamily},M=n.controlAlign==="left"?"flex-start":n.controlAlign==="right"?"flex-end":n.controlAlign==="space-between"?"space-between":"center",O={appearance:"none",WebkitAppearance:"none",minWidth:`var(--ahd-pgn-btn-size, ${n.buttonSize}px)`,height:`var(--ahd-pgn-btn-size, ${n.buttonSize}px)`,padding:"0 8px",borderRadius:`var(--ahd-pgn-btn-radius, ${n.buttonRadius}px)`,border:`1px solid ${k}`,backgroundColor:w,backgroundImage:"none",color:S,fontSize:n.fontSize,lineHeight:1,boxShadow:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxSizing:"border-box"},H={...O,color:v},D=Z.useMemo(()=>{const F=ie=>`grid-template-columns:repeat(${ie.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${vS(ie.columnsCount,ie.rowsCount,a)},auto)`,q=(ie,J)=>{const re=Math.min(Math.max(1,J.columnsCount*J.rowsCount),Math.max(1,a));return re>=a?"":`${ie} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${re+1}){display:none}`},Y=`.${d}`;return`${Y} .ahd-pgn-item{display:grid;${F(o)};column-gap:${u}px;row-gap:${h}px}${Y} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+q(Y,o)+`@media (max-width:${Oe}px){${Y} .ahd-pgn-item{${F(r)}}${Y} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+q(Y,r)+`}@media (max-width:${Le}px){${Y} .ahd-pgn-item{${F(i)}}${Y} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+q(Y,i)+"}"},[d,o,r,i,a,u,h,n.itemGap]),V=(F,q,Y)=>g.jsx("button",{type:"button",className:`ahd-pgn-btn ${F}`,"data-ahd-page":Y,style:H,"aria-label":q,children:q});return g.jsxs("div",{className:`${d} ahd-pagination`,style:P,"data-total-pages":c,"data-page-param":n.pageParam,"data-sync-url":n.syncUrl?"1":"0","data-explicit-first-page":n.explicitFirstPage?"1":"0","data-scroll-top":n.scrollToTopOnChange?"1":"0","data-max-visible":n.maxVisiblePages,"data-btn-bg":w,"data-btn-color":S,"data-btn-border":k,"data-active-bg":_,"data-active-color":y,"data-active-border":C,"data-first-label":n.firstLabel,"data-last-label":n.lastLabel,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:D}}),g.jsx("div",{className:"ahd-pgn-content",style:{display:"flex",flexDirection:"column",gap:n.itemGap},children:s.map((F,q)=>g.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":q,style:q===0?void 0:{display:"none"},children:F.map((Y,ie)=>g.jsx("div",{className:"ahd-pgn-cell",children:(Y.childrenIds??[]).map(J=>g.jsx(Re,{id:J},J))},ie))},q))}),(n.showNumbers||n.showPrevNext||n.showFirstLast)&&g.jsxs("div",{className:"ahd-pgn-control",style:{display:"flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,justifyContent:M,marginTop:`var(--ahd-pgn-control-gap, ${n.controlGap}px)`,flexWrap:"wrap"},"data-show-numbers":n.showNumbers?"1":"0","data-show-prev-next":n.showPrevNext?"1":"0","data-show-first-last":n.showFirstLast?"1":"0",children:[n.showFirstLast&&V("ahd-pgn-first",n.firstLabel,1),n.showPrevNext&&V("ahd-pgn-prev",n.prevLabel,Math.max(1,0)),n.showNumbers&&g.jsx("span",{className:"ahd-pgn-numbers",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,flexWrap:"wrap"},children:f.map((F,q)=>F==="ellipsis"?g.jsx("span",{className:"ahd-pgn-ellipsis",style:{...O,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${q}`):g.jsx("button",{type:"button",className:"ahd-pgn-btn ahd-pgn-number","data-ahd-page":F,"aria-label":`Page ${F}`,"aria-current":F===1?"true":void 0,style:F===1?{...O,backgroundColor:_,color:y,border:`1px solid ${C}`}:O,children:F},F))}),n.showPrevNext&&V("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&V("ahd-pgn-last",n.lastLabel,c)]})]})}const yS=A({responsive:We,style:A({padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),tableAlign:N(["left","center","right"]).optional().nullable(),fontSize:m().optional().nullable(),fontFamily:$().optional().nullable(),color:$().optional().nullable(),backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:m().optional().nullable(),cellPadding:m().optional().nullable(),headerBackground:$().optional().nullable(),headerColor:$().optional().nullable(),stripedRowColor:$().optional().nullable(),stripedColColor:$().optional().nullable()}).optional().nullable(),props:A({rows:m().int().min(1).max(50).optional().nullable(),columns:m().int().min(1).max(20).optional().nullable(),hasHeader:L().optional().nullable(),cells:ne($()).optional().nullable(),caption:$().optional().nullable(),width:$().optional().nullable(),enableScroll:L().optional().nullable(),enableScrollTablet:L().optional().nullable(),enableScrollMobile:L().optional().nullable()}).optional().nullable()}),ot={rows:3,columns:3,hasHeader:!0,borderColor:"#e5e7eb",borderWidth:2,cellPadding:8,headerBackground:"#f3f4f6",headerColor:"#111827",color:"#262626",fontSize:14,stripedRowColor:"#F8F6F6"};function IS(e){if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Ds(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function Jn(e){return e?Ds(e)?`background: ${e} !important; background-color: transparent !important;`:`background-color: ${e} !important;`:""}function tr(e){return e?Ds(e)?[`background-image: ${e};`,"-webkit-background-clip: text;","background-clip: text;","-webkit-text-fill-color: transparent;","color: transparent;"].join(" "):`color: ${e};`:""}function RS({style:e,props:t,renderCell:n}){const o=Math.max(1,Math.min(50,(t==null?void 0:t.rows)??ot.rows)),r=Math.max(1,Math.min(20,(t==null?void 0:t.columns)??ot.columns)),i=(t==null?void 0:t.hasHeader)??ot.hasHeader,a=(t==null?void 0:t.cells)??[],l=o*r,s=a.length===l?a:Array.from({length:l},(j,B)=>a[B]??""),c=z((e==null?void 0:e.borderColor)??ot.borderColor),u=(e==null?void 0:e.borderWidth)??ot.borderWidth,h=(e==null?void 0:e.cellPadding)??ot.cellPadding,d=z((e==null?void 0:e.headerBackground)??ot.headerBackground),f=z((e==null?void 0:e.headerColor)??ot.headerColor),p=z((e==null?void 0:e.color)??ot.color),b=(e==null?void 0:e.fontSize)??ot.fontSize,x=z((e==null?void 0:e.backgroundColor)??null),w=z((e==null?void 0:e.stripedRowColor)===void 0?ot.stripedRowColor:e.stripedRowColor),S=z((e==null?void 0:e.stripedColColor)??null),k=`ahd-table-${Z.useId().replace(/:/g,"")}`,v=(t==null?void 0:t.width)||"100%",_=v!=="100%",y={padding:wa(e==null?void 0:e.padding),margin:$a(e==null?void 0:e.margin),textAlign:_?(e==null?void 0:e.tableAlign)??"left":void 0,width:0,minWidth:"100%",maxWidth:"100%",height:"fit-content",boxSizing:"border-box"},C=IS(e==null?void 0:e.fontFamily),I={borderCollapse:"collapse",width:"100%",fontSize:b},R={display:_?"inline-block":"block",width:v,maxWidth:"100%",verticalAlign:"top",overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",height:"fit-content"},E={border:`${u}px solid ${c}`,padding:h,verticalAlign:"top"},P={...E,fontWeight:600,textAlign:(e==null?void 0:e.textAlign)??"left"},M=C?`.${k}, .${k} * { font-family: ${C} !important; }`:"",O=`${k}-scroll`,H=(t==null?void 0:t.enableScroll)??!1,D=(t==null?void 0:t.enableScrollTablet)??H,V=(t==null?void 0:t.enableScrollMobile)??H,F=j=>j?`.${O} > .${k} { table-layout: auto; width: max-content !important; min-width: 100%; max-width: none; }`:`.${O} > .${k} { table-layout: fixed; width: 100% !important; max-width: 100%; }
285
+ .${O} > .${k} .ahd-table-cell-text { overflow-wrap: anywhere; }`,Y=[F(H),D!==H?`@media (max-width: 1024px) { ${F(D)} }
286
+ @container ahd-page (max-width: 1024px) { ${F(D)} }`:"",V!==D?`@media (max-width: 640px) { ${F(V)} }
287
+ @container ahd-page (max-width: 640px) { ${F(V)} }`:""].filter(Boolean).join(`
288
+ `),ie=`
289
+ .${O} {
290
290
  overflow-x: auto;
291
291
  -webkit-overflow-scrolling: touch;
292
292
  scrollbar-width: thin;
293
293
  scrollbar-color: #C4C4C4 transparent;
294
294
  }
295
- .${z}::-webkit-scrollbar {
295
+ .${O}::-webkit-scrollbar {
296
296
  width: 6px;
297
297
  height: 6px;
298
298
  background: transparent;
299
299
  }
300
- .${z}::-webkit-scrollbar-track {
300
+ .${O}::-webkit-scrollbar-track {
301
301
  background: transparent;
302
302
  border: 0;
303
303
  box-shadow: none;
@@ -305,13 +305,13 @@ ${y}
305
305
  /* Kill the stepper arrows and the corner square. Without these the
306
306
  platform default chrome (arrow buttons at both ends of the track) still
307
307
  paints around the styled thumb. */
308
- .${z}::-webkit-scrollbar-button {
308
+ .${O}::-webkit-scrollbar-button {
309
309
  display: none;
310
310
  width: 0;
311
311
  height: 0;
312
312
  }
313
- .${z}::-webkit-scrollbar-corner { background: transparent; }
314
- .${z}::-webkit-scrollbar-thumb {
313
+ .${O}::-webkit-scrollbar-corner { background: transparent; }
314
+ .${O}::-webkit-scrollbar-thumb {
315
315
  background-color: #C4C4C4;
316
316
  border-radius: 4px;
317
317
  /* 1px (not the app shell's 2px): on a 6px track a 2px inset on each side
@@ -319,28 +319,28 @@ ${y}
319
319
  border: 1px solid transparent;
320
320
  background-clip: content-box;
321
321
  }
322
- .${z}::-webkit-scrollbar-thumb:hover {
322
+ .${O}::-webkit-scrollbar-thumb:hover {
323
323
  background-color: #A0A0A0;
324
324
  background-clip: content-box;
325
325
  }
326
- ${ae}
327
- `,ee=v?`.${k} > tbody > tr:nth-child(even) > td { ${Kn(v)} }`:"",se=S?`.${k} > tbody > tr > td:nth-child(even) { ${Kn(S)} }`:"",fe=`
328
- .${k} { ${Kn(x)} }
326
+ ${Y}
327
+ `,J=w?`.${k} > tbody > tr:nth-child(even) > td { ${Jn(w)} }`:"",re=S?`.${k} > tbody > tr > td:nth-child(even) { ${Jn(S)} }`:"",me=`
328
+ .${k} { ${Jn(x)} }
329
329
  ${M}
330
- .${k} > tbody > tr > td > .ahd-table-cell-text { ${Qo(p)} display: block; }
331
- .${k} > thead > tr > th { ${Kn(d)} }
332
- .${k} > thead > tr > th > .ahd-table-cell-text { ${Qo(f)} display: block; }
333
- .${k} > caption > .ahd-table-cell-text { ${Qo(p)} display: block; }
334
- ${ee}
335
- ${se}
336
- ${pe}
337
- `,Y=Array.from({length:o},(L,B)=>B),de=Array.from({length:r},(L,B)=>B),ve=L=>L.includes("<"),K=(L,B,Z,W)=>n?n({row:L,col:B,value:Z,isHeader:W}):ve(Z)?g.jsx("span",{dangerouslySetInnerHTML:{__html:Z}}):Z.split(`
338
- `).map((X,ge,Ue)=>g.jsxs(U.Fragment,{children:[X,ge<Ue.length-1?g.jsx("br",{}):null]},ge));return g.jsxs("div",{className:"table-block",style:y,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:fe}}),g.jsx("div",{className:z,style:R,children:g.jsxs("table",{className:k,style:I,role:"table",children:[t!=null&&t.caption?g.jsx("caption",{style:{captionSide:"top",textAlign:"left",padding:"4px 0",fontSize:b-1},children:g.jsx("div",{className:"ahd-table-cell-text",children:t.caption})}):null,i?g.jsx("thead",{children:g.jsx("tr",{children:de.map(L=>g.jsx("th",{scope:"col",style:P,children:g.jsx("div",{className:"ahd-table-cell-text",children:K(0,L,s[L]??"",!0)})},L))})}):null,g.jsx("tbody",{children:Y.slice(i?1:0).map(L=>g.jsx("tr",{children:de.map(B=>g.jsx("td",{style:T,children:g.jsx("div",{className:"ahd-table-cell-text",children:K(L,B,s[L*r+B]??"",!1)})},B))},L))})]})})]})}const tl=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),IS=A({responsive:Ge,style:A({padding:tl,margin:tl,textAlign:N(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({demoId:$().default(""),iframeSrc:$().default(""),width:D([m(),$()]).optional().nullable(),height:D([m(),$()]).optional().nullable(),borderRadius:m().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:m().optional().nullable()}).optional().nullable()}),nl=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,RS=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,er=1440,tr=830,NS=({style:e,props:t})=>{const{demoId:n,iframeSrc:o,width:r,borderRadius:i,borderColor:a,borderWidth:l}=t??{},s={padding:nl(e==null?void 0:e.padding),margin:nl(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"};if(!n||!o)return g.jsx(g.Fragment,{});const c=(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center";return g.jsx("div",{className:"demo-picker-block",style:{...s,display:"flex",justifyContent:c},children:g.jsx("div",{id:"demoAspect",style:{width:`var(--ahd-demo-width,${RS(r,"100%")})`,aspectRatio:`${er} / ${tr}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${i??10}px`,border:a?`${l??1}px solid ${a}`:"none"},children:g.jsx("div",{id:"demoScaler",style:{width:er,height:tr,transformOrigin:"top left"},children:g.jsx("iframe",{src:o,style:{width:er,height:tr,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},o)})})})},Ds=$m(()=>A({id:$().optional(),name:$().optional(),href:$().optional(),menuImage:$().optional(),children:te(Ds).optional()})),nr=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),TS=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),ES=A({menuId:$().default(""),useCustomMenu:O().default(!1),stickyNav:O().default(!1),stickyNavTablet:O().optional().nullable(),stickyNavMobile:O().optional().nullable(),position:N(["left","center","right"]).default("left"),orientation:N(["horizontal","vertical"]).default("horizontal"),menuItems:te(Ds).optional().nullable(),startChildrenIds:te($()).optional().nullable(),endChildrenIds:te($()).optional().nullable(),layout:N(["menu-only","logo-menu","menu-cta","logo-menu-cta"]).default("menu-only"),backgroundColor:$().default("transparent"),textColor:$().default("#000000"),burgerDropdownBackgroundColor:$().optional().nullable(),submenuBackgroundColor:$().optional().nullable(),submenuRadius:m().optional().nullable(),submenuIconSize:m().optional().nullable(),submenuPadding:nr,submenuItemPadding:nr,submenuMinWidth:m().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),padding:$().default("8px 16px"),blockPadding:nr,blockMargin:TS,gap:$().default("16px"),showIcons:O().default(!0),iconSize:$().default("24px")}),MS=A({style:A({}).passthrough().optional().nullable(),responsive:Ge,props:ES.optional().nullable()}),PS={left:"flex-start",center:"center",right:"flex-end"},Fs=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,OS=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,LS=e=>e?e.left+e.right:0,zS=e=>!!e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")),Ca=e=>zS(e)?{backgroundImage:e,backgroundColor:"transparent"}:{backgroundColor:e??void 0},jS=(e,t,n=!1,o,r)=>{const i=LS(r);return{...Ca(e),width:`calc(100% - ${i}px)`,display:"flex",alignItems:"center",gap:"16px",padding:Fs(o),margin:OS(r),justifyContent:n?"space-between":PS[t]||"flex-start"}},or=(e,t=!1)=>({display:"flex",alignItems:"center",flex:t?"1 1 auto":"0 0 auto",justifyContent:e==="start"?"flex-start":e==="end"?"flex-end":"center",minWidth:0}),BS=(e,t,n)=>({listStyle:"none",margin:0,padding:0,display:e==="horizontal"&&t===0?"flex":"block",flexDirection:"row",flexWrap:"wrap",gap:e==="horizontal"&&t===0?n:"0"}),DS={position:"relative"},FS=(e,t,n,o,r,i,a,l)=>({display:"flex",alignItems:"center",gap:e&&t?"8px":"0",color:(l==null?void 0:l.textColor)??n,fontSize:o,fontWeight:(l==null?void 0:l.fontWeight)??r,fontFamily:a||void 0,padding:(l==null?void 0:l.padding)??i,textDecoration:"none",whiteSpace:"nowrap",...Ca(l==null?void 0:l.backgroundColor),...l!=null&&l.borderColor?{borderStyle:"solid",borderColor:l.borderColor,borderWidth:l.borderWidth??1}:void 0,borderRadius:(l==null?void 0:l.borderRadius)!=null?`${l.borderRadius}px`:void 0}),HS=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),GS=e=>({paddingLeft:e===0?"0":"12px"}),US=(e,t,n,o,r)=>({...Ca(e),borderRadius:`${t}px`,border:n?`1px solid ${n}`:void 0,boxShadow:"0 12px 32px color-mix(in srgb, currentColor 18%, transparent)",padding:Fs(o)??"8px",minWidth:`${r??260}px`}),WS=e=>({display:"inline-flex",alignItems:"center",marginLeft:"6px",width:`${e}px`,height:`${e}px`,flexShrink:0}),ZS="M6 9l6 6 6-6",Hs={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},VS=e=>({color:e});function qS(e,t){const n=`.ahd-menu-${e}`,o=(t==null?void 0:t.dropdownBackground)||"#fff",r=t!=null&&t.hasSubmenuItemPadding?"padding-left:32px!important":"padding:10px 16px 10px 32px!important",i=[`${n}{position:relative}`,`${n} .ahd-menu-toggle{position:absolute!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}`,`${n} .ahd-menu-burger{display:none;width:20px;height:16px;cursor:pointer;flex-direction:column;justify-content:space-between;padding:0;margin:8px 12px;background:transparent;border:0}`,`${n} .ahd-menu-burger>span{display:block;height:2px;width:100%;background:currentColor;border-radius:2px;transition:transform .2s ease,opacity .2s ease}`,`${n} .ahd-menu-backdrop{display:none}`,`${n} .ahd-menu-submenu{position:absolute;top:100%;left:0;z-index:120;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease,visibility .15s;pointer-events:none}`,`${n} .ahd-menu-list>li:hover>.ahd-menu-submenu,${n} .ahd-menu-list>li:focus-within>.ahd-menu-submenu{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}`,`${n} .ahd-menu-submenu .ahd-menu-submenu{top:0;left:100%;transform:translateX(4px)}`,`${n} .ahd-menu-submenu li:hover>.ahd-menu-submenu,${n} .ahd-menu-submenu li:focus-within>.ahd-menu-submenu{transform:translateX(0)}`,`${n} .ahd-menu-sublist{display:block!important;width:100%}`,`${n} .ahd-menu-sublist>li>a{display:flex;width:100%;white-space:normal!important;border-radius:6px}`,`${n} .ahd-menu-sublist>li>a:hover{background:color-mix(in srgb,currentColor 10%,transparent)}`,`${n} .ahd-menu-sub-toggle{position:absolute!important;opacity:0!important;width:0!important;height:0!important;margin:0!important;pointer-events:none!important}`,`${n} .ahd-menu-sub-caret{display:none}`,`${n} .ahd-menu-caret{transition:transform .15s ease}`,`${n} li:hover>.ahd-menu-item-row .ahd-menu-caret,${n} li:focus-within>.ahd-menu-item-row .ahd-menu-caret{transform:rotate(180deg)}`].join(""),a=[`${n}{flex-wrap:nowrap!important;align-items:center!important;min-height:48px}`,`${n} .ahd-menu-center{display:none!important}`,`${n} .ahd-menu-start{flex:0 0 auto!important}`,`${n} .ahd-menu-end{flex:0 0 auto!important;margin-left:auto!important}`,`${n} .ahd-menu-burger{display:flex!important;margin-left:0!important;margin-right:0!important;z-index:2}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-backdrop{display:block!important;position:fixed!important;inset:0!important;z-index:90;background:transparent;cursor:default;border:0}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center{display:flex!important;flex-direction:column!important;position:absolute!important;top:100%!important;left:0!important;right:0!important;z-index:100;background:${o};box-shadow:0 6px 16px rgba(0,0,0,.12);width:100%!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list{flex-direction:column!important;width:100%!important;gap:0!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li{width:100%;border-top:1px solid rgba(0,0,0,.08)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li>a{padding:12px 16px!important}`,`${n} .ahd-menu-submenu{position:static!important;opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important;display:none;transition:none}`,`${n} .ahd-menu-sub-toggle:checked~.ahd-menu-submenu{display:block}`,`${n} .ahd-menu-submenu>*{box-shadow:none!important;border:0!important;border-radius:0!important;min-width:0!important;background:transparent!important;padding:0!important}`,`${n} .ahd-menu-submenu{box-shadow:inset 2px 0 0 color-mix(in srgb,currentColor 25%,transparent)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li>a,${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li>.ahd-menu-item-row>.ahd-menu-item-label>a{${r}}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist .ahd-menu-sublist>li>a{padding-left:48px!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li+li{border-top:1px solid color-mix(in srgb,currentColor 12%,transparent)}`,`${n} .ahd-menu-sublist>li{width:100%}`,`${n} .ahd-menu-list>li>.ahd-menu-item-label{display:flex!important;flex:1 1 auto;min-width:0}`,`${n} .ahd-menu-item-row{display:flex;align-items:center;width:100%}`,`${n} .ahd-menu-sub-caret{display:flex!important;align-items:center;justify-content:center;width:44px;align-self:stretch;cursor:pointer;color:currentColor;flex:0 0 auto}`,`${n} .ahd-menu-sub-caret-icon{margin-left:0!important;transition:transform .15s ease}`,`${n} .ahd-menu-sub-toggle:checked~.ahd-menu-item-row .ahd-menu-sub-caret-icon{transform:rotate(180deg)}`,`${n} .ahd-menu-caret{display:none!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(1){transform:translateY(7px) rotate(45deg)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(2){opacity:0}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}`].join(""),l=`(max-width:${Pe}px)`;return i+`@media ${l}{${a}}@container ahd-page ${l}{${a}}`}const YS=(e,t)=>{const n=!!t.stickyNav,o=t.stickyNavTablet??n,r=t.stickyNavMobile??o,i=l=>l?`.ahd-menu-sticky-${e}{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${e}){position:sticky;top:0;z-index:50}`:`.ahd-menu-sticky-${e}{position:static}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${e}){position:static}`;let a=n?i(!0):"";if(o!==n){const l=`(max-width:${Pe}px)`;a+=`@media ${l}{${i(o)}}`,a+=`@container ahd-page ${l}{${i(o)}}`}if(r!==o){const l=`(max-width:${Oe}px)`;a+=`@media ${l}{${i(r)}}`,a+=`@container ahd-page ${l}{${i(r)}}`}return a},KS=e=>{if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Tr=e=>t=>{t.stopPropagation(),t.preventDefault();const n=typeof document<"u"?document.getElementById(e):null;n&&(n.checked=!n.checked)},ol=({size:e,className:t})=>g.jsx("span",{className:t,style:WS(e),"aria-hidden":"true",children:g.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:g.jsx("path",{d:ZS})})}),Er=(e,t,n=0)=>{if(!e||e.length===0)return null;const{textColor:o,fontSize:r,fontWeight:i,padding:a,orientation:l,gap:s,showIcons:c,iconSize:u,toggleId:h,listId:d,fontFamily:f,menuKey:p,submenuBackground:b,submenuRadius:x,submenuBorderColor:v,submenuIconSize:S,submenuPadding:k,submenuItemPadding:w,submenuMinWidth:C}=t,y=n>0&&w?`${w.top}px ${w.right}px ${w.bottom}px ${w.left}px`:a;return g.jsx("ul",{id:n===0?d:void 0,className:n===0?"ahd-menu-list":"ahd-menu-sublist",style:BS(l,n,s),children:e.map((_,I)=>{const R=Array.isArray(_.children)?_.children:[],T=R.length>0,P=`ahd-submenu-${p}-${n}-${_.id||I}`,M=_.name||_.label||"",z=g.jsxs("a",{href:_.href||"#",style:FS(c,!!_.menuImage,o,r,i,y,f,_),children:[c&&_.menuImage&&g.jsx("img",{src:_.menuImage,alt:"","aria-hidden":"true",style:HS(u)}),M,T&&g.jsx(ol,{size:S,className:"ahd-menu-caret"})]}),F=T?g.jsxs("span",{className:"ahd-menu-item-row",children:[g.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:H=>H.stopPropagation(),children:z}),g.jsx("label",{htmlFor:P,className:"ahd-menu-sub-caret","aria-label":`Toggle ${M} submenu`,onClick:Tr(P),children:g.jsx(ol,{size:S,className:"ahd-menu-sub-caret-icon"})})]}):g.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:H=>H.stopPropagation(),children:z});return g.jsxs("li",{style:DS,children:[T&&g.jsx("input",{type:"checkbox",id:P,className:"ahd-menu-sub-toggle","aria-hidden":"true",tabIndex:-1,style:Hs,onClick:H=>H.stopPropagation()}),F,T&&g.jsx("div",{className:"ahd-menu-submenu",style:GS(n),children:g.jsx("div",{style:US(b,x,v,k,C),children:Er(R,{...t,orientation:"vertical"},n+1)})})]},_.id||I)})})},JS=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:o=!1,stickyNavTablet:r,stickyNavMobile:i,menuItems:a,startChildrenIds:l,endChildrenIds:s,layout:c="menu-only",position:u="left",orientation:h="horizontal",backgroundColor:d="transparent",textColor:f="#000000",burgerDropdownBackgroundColor:p,fontSize:b="14px",fontFamily:x,fontWeight:v="400",padding:S="8px 16px",blockPadding:k,blockMargin:w,gap:C="16px",showIcons:y=!0,iconSize:_="24px",borderColor:I,borderWidth:R,borderRadius:T,submenuBackgroundColor:P,submenuRadius:M,submenuIconSize:z,submenuPadding:F,submenuItemPadding:H,submenuMinWidth:V,bare:q}=e??{};if(!(Array.isArray(a)&&a.length>0)||!n&&!t)return g.jsx(g.Fragment,{});const ae=c==="logo-menu"||c==="logo-menu-cta",pe=c==="menu-cta"||c==="logo-menu-cta",ee=ae||pe,se=u==="right"?"end":u==="center"?"center":"start",fe=U.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),Y=t||fe,de=(q==null?void 0:q.toggleId)??`ahd-menu-toggle-${Y}`,ve=(q==null?void 0:q.listId)??`ahd-menu-list-${Y}`,K=KS(x),L=q?q.toggleId.replace(/^ahd-menu-toggle-/,""):Y,B={textColor:f,fontSize:b,fontWeight:v,padding:S,orientation:h,gap:C,showIcons:y,iconSize:_,toggleId:de,listId:ve,fontFamily:K,menuKey:L,submenuBackground:P||p||(d!=="transparent"?d:"#ffffff"),submenuRadius:M??8,submenuBorderColor:I??null,submenuIconSize:z??14,submenuPadding:F??null,submenuItemPadding:H??null,submenuMinWidth:V??null};if(q)return g.jsx(g.Fragment,{children:Er(a,B)});const Z=YS(Y,{stickyNav:o,stickyNavTablet:r,stickyNavMobile:i}),W=qS(Y,{dropdownBackground:p??(d!=="transparent"?d:null),hasSubmenuItemPadding:!!H});return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:W}},Y),Z&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Z}}),g.jsxs("nav",{className:`ahd-menu ahd-menu-${Y} ahd-menu-sticky-${Y}`,"data-block":"menu","data-layout":c,style:{...jS(d,u,ee,k,w),...I?{borderStyle:"solid",borderColor:I,borderWidth:R?`${R.top??1}px ${R.right??1}px ${R.bottom??1}px ${R.left??1}px`:"1px"}:{},...T!=null?{borderRadius:typeof T=="number"?`${T}px`:`${(T==null?void 0:T.topLeft)??0}px ${(T==null?void 0:T.topRight)??0}px ${(T==null?void 0:T.bottomRight)??0}px ${(T==null?void 0:T.bottomLeft)??0}px`}:{}},"aria-label":"Main navigation",children:[g.jsx("input",{type:"checkbox",id:de,className:"ahd-menu-toggle",role:"switch","aria-label":"Toggle main menu","aria-controls":ve,style:Hs,onClick:X=>X.stopPropagation()}),g.jsx("label",{htmlFor:de,className:"ahd-menu-backdrop","aria-hidden":"true",onClick:Tr(de)}),ae&&g.jsx("div",{className:"ahd-menu-start",style:or("start"),children:(l??[]).map(X=>g.jsx(Ae,{id:X},X))}),g.jsx("div",{className:"ahd-menu-center",style:or(se,ee),children:Er(a,B)}),pe&&g.jsx("div",{className:"ahd-menu-end",style:or("end"),children:(s??[]).map(X=>g.jsx(Ae,{id:X},X))}),g.jsxs("label",{htmlFor:de,className:"ahd-menu-burger","aria-hidden":"true",style:VS(f),onClick:Tr(de),children:[g.jsx("span",{}),g.jsx("span",{}),g.jsx("span",{})]})]})]})},XS=A({id:$().optional(),label:$().optional(),href:$().optional(),textColor:$().optional().nullable()}),QS=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),ew=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),tw=A({items:te(XS).optional().nullable(),separator:N(["slash","chevron","dot","pipe","custom"]).default("chevron"),customSeparator:$().optional().nullable(),showHomeIcon:O().default(!1),homeHref:$().default("/"),collapseOnMobile:O().default(!0),currentItemLinked:O().default(!1),textColor:$().default("#595959"),currentItemColor:$().optional().nullable(),separatorColor:$().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),gap:$().default("8px"),blockPadding:QS,blockMargin:ew}),nw=A({style:A({}).passthrough().optional().nullable(),responsive:Ge,props:tw.optional().nullable()}),rr={slash:"/",chevron:"›",dot:"•",pipe:"|"};function ow(e,t){return e==="custom"?t||"›":e&&rr[e]?rr[e]:rr.chevron}function rw(e){const t=`.ahd-breadcrumb-${e}`,n=[`${t} .ahd-breadcrumb-collapsible{display:none!important}`,`${t} .ahd-breadcrumb-ellipsis{display:flex!important}`].join(""),o=`(max-width:${Oe}px)`;return`@media ${o}{${n}}@container ahd-page ${o}{${n}}`}const aw=e=>{if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Gs=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,iw=Gs,lw="M12 3.1 3 10.4V21h6v-6h6v6h6V10.4L12 3.1zm0 2.56 7 5.6V19h-2v-6H9v6H5v-7.74l7-5.6z",sw=({size:e,color:t})=>g.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",style:{display:"block",flex:"0 0 auto"},children:g.jsx("path",{d:lw,fill:t})}),cw=({color:e,fontSize:t})=>g.jsx("span",{"aria-hidden":"true",style:{color:e,fontSize:t},children:"…"}),uw=({props:e,renderLabel:t})=>{const{items:n,separator:o="chevron",customSeparator:r,showHomeIcon:i=!1,homeHref:a="/",collapseOnMobile:l=!0,currentItemLinked:s=!1,textColor:c="#595959",currentItemColor:u,separatorColor:h,fontSize:d="14px",fontFamily:f,fontWeight:p="400",gap:b="8px",blockPadding:x,blockMargin:v}=e??{};if(!(Array.isArray(n)&&n.length>0))return g.jsx(g.Fragment,{});const k=aw(f),w=ow(o,r),C=n.length-1,y=U.useMemo(()=>`b${Math.random().toString(36).slice(2,9)}`,[]),_=l?rw(y):"",I=(R,T,P)=>{const M=(P?u:null)||R.textColor||c,z=!P||s,F={color:M,textDecoration:"none",whiteSpace:"nowrap"};return t?t({item:R,index:T,isLast:P,style:F}):z?g.jsx("a",{href:R.href||"#",style:F,"aria-current":P?"page":void 0,children:R.label||""}):g.jsx("span",{style:F,"aria-current":"page",children:R.label||""})};return g.jsxs(g.Fragment,{children:[_&&g.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),g.jsx("nav",{className:l?`ahd-breadcrumb ahd-breadcrumb-${y}`:"ahd-breadcrumb","aria-label":"Breadcrumb",style:{padding:Gs(x),margin:iw(v)},children:g.jsxs("ol",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",listStyle:"none",margin:0,padding:0,gap:b,fontSize:d,fontFamily:k,fontWeight:p},children:[i&&g.jsxs("li",{className:"ahd-breadcrumb-home",style:{display:"flex",alignItems:"center",gap:b},children:[g.jsx("a",{href:a||"/",style:{display:"flex",color:c},children:g.jsx(sw,{size:parseInt(d,10)||14,color:c})}),g.jsx("span",{"aria-hidden":"true",style:{color:h||c},children:w})]}),n.map((R,T)=>{const P=T===C,M=l&&T!==0&&!P;return g.jsxs("li",{className:M?"ahd-breadcrumb-collapsible":void 0,style:{display:"flex",alignItems:"center",gap:b},children:[I(R,T,P),!P&&g.jsx("span",{"aria-hidden":"true",style:{color:h||c},children:w})]},R.id||T)}),l&&n.length>2&&g.jsxs("li",{className:"ahd-breadcrumb-ellipsis",style:{display:"none",alignItems:"center",gap:b},children:[g.jsx(cw,{color:c,fontSize:d}),g.jsx("span",{"aria-hidden":"true",style:{color:h||c},children:w})]})]})})]})},dw=A({style:A({}).passthrough().optional().nullable(),props:A({formId:$().default(""),formName:$().default(""),iframeSrc:$().default(""),width:$().default("100%"),height:$().default("500px"),heightTablet:$().optional(),heightMobile:$().optional(),autoHeight:O().default(!1),alignment:N(["left","center","right"]).default("left")}).optional().nullable()}),hw=e=>{let t=0;for(let n=0;n<e.length;n+=1)t=t*31+e.charCodeAt(n)|0;return`form-${Math.abs(t).toString(36)}`},fw=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},mw=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},pw=({props:e,style:t})=>{var S,k;const{formId:n,iframeSrc:o,width:r,height:i,heightTablet:a,heightMobile:l,autoHeight:s=!1,alignment:c="left",formName:u}=e??{};if(!n||!o)return g.jsx(g.Fragment,{});const h=c==="center"?"center":c==="right"?"flex-end":"flex-start",d=t??{},f=(((S=d.margin)==null?void 0:S.left)||0)+(((k=d.margin)==null?void 0:k.right)||0),p={display:"flex",justifyContent:h,width:`calc(100% - ${f}px)`,padding:fw(d.padding),margin:mw(d.margin),backgroundColor:d.backgroundColor||void 0,borderRadius:d.borderRadius||void 0},b=hw(`${n}|${o??""}`),x=!s&&(a||l)?`
339
- ${a?`${Bt} { #${b} { height: ${a} !important; } }`:""}
340
- ${l?`${je} { #${b} { height: ${l} !important; } }`:""}
341
- `:"",v=s?`
330
+ .${k} > tbody > tr > td > .ahd-table-cell-text { ${tr(p)} display: block; }
331
+ .${k} > thead > tr > th { ${Jn(d)} }
332
+ .${k} > thead > tr > th > .ahd-table-cell-text { ${tr(f)} display: block; }
333
+ .${k} > caption > .ahd-table-cell-text { ${tr(p)} display: block; }
334
+ ${J}
335
+ ${re}
336
+ ${ie}
337
+ `,ae=Array.from({length:o},(j,B)=>B),Se=Array.from({length:r},(j,B)=>B),xe=j=>j.includes("<"),X=(j,B,K,W)=>n?n({row:j,col:B,value:K,isHeader:W}):xe(K)?g.jsx("span",{dangerouslySetInnerHTML:{__html:K}}):K.split(`
338
+ `).map((te,fe,ze)=>g.jsxs(Z.Fragment,{children:[te,fe<ze.length-1?g.jsx("br",{}):null]},fe));return g.jsxs("div",{className:"table-block",style:y,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:me}}),g.jsx("div",{className:O,style:R,children:g.jsxs("table",{className:k,style:I,role:"table",children:[t!=null&&t.caption?g.jsx("caption",{style:{captionSide:"top",textAlign:"left",padding:"4px 0",fontSize:b-1},children:g.jsx("div",{className:"ahd-table-cell-text",children:t.caption})}):null,i?g.jsx("thead",{children:g.jsx("tr",{children:Se.map(j=>g.jsx("th",{scope:"col",style:P,children:g.jsx("div",{className:"ahd-table-cell-text",children:X(0,j,s[j]??"",!0)})},j))})}):null,g.jsx("tbody",{children:ae.slice(i?1:0).map(j=>g.jsx("tr",{children:Se.map(B=>g.jsx("td",{style:E,children:g.jsx("div",{className:"ahd-table-cell-text",children:X(j,B,s[j*r+B]??"",!1)})},B))},j))})]})})]})}const nl=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),NS=A({responsive:We,style:A({padding:nl,margin:nl,textAlign:N(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({demoId:$().default(""),iframeSrc:$().default(""),width:G([m(),$()]).optional().nullable(),height:G([m(),$()]).optional().nullable(),borderRadius:m().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:m().optional().nullable()}).optional().nullable()}),ol=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,TS=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,nr=1440,or=830,ES=({style:e,props:t})=>{const{demoId:n,iframeSrc:o,width:r,borderRadius:i,borderColor:a,borderWidth:l}=t??{},s={padding:ol(e==null?void 0:e.padding),margin:ol(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"};if(!n||!o)return g.jsx(g.Fragment,{});const c=(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center";return g.jsx("div",{className:"demo-picker-block",style:{...s,display:"flex",justifyContent:c},children:g.jsx("div",{id:"demoAspect",style:{width:`var(--ahd-demo-width,${TS(r,"100%")})`,aspectRatio:`${nr} / ${or}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${i??10}px`,border:a?`${l??1}px solid ${a}`:"none"},children:g.jsx("div",{id:"demoScaler",style:{width:nr,height:or,transformOrigin:"top left"},children:g.jsx("iframe",{src:o,style:{width:nr,height:or,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},o)})})})},Fs=km(()=>A({id:$().optional(),name:$().optional(),href:$().optional(),menuImage:$().optional(),children:ne(Fs).optional()})),rr=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),MS=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),PS=A({menuId:$().default(""),useCustomMenu:L().default(!1),stickyNav:L().default(!1),stickyNavTablet:L().optional().nullable(),stickyNavMobile:L().optional().nullable(),position:N(["left","center","right"]).default("left"),orientation:N(["horizontal","vertical"]).default("horizontal"),menuItems:ne(Fs).optional().nullable(),startChildrenIds:ne($()).optional().nullable(),endChildrenIds:ne($()).optional().nullable(),layout:N(["menu-only","logo-menu","menu-cta","logo-menu-cta"]).default("menu-only"),backgroundColor:$().default("transparent"),textColor:$().default("#000000"),burgerDropdownBackgroundColor:$().optional().nullable(),submenuBackgroundColor:$().optional().nullable(),submenuRadius:m().optional().nullable(),submenuIconSize:m().optional().nullable(),submenuPadding:rr,submenuItemPadding:rr,submenuMinWidth:m().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),padding:$().default("8px 16px"),blockPadding:rr,blockMargin:MS,gap:$().default("16px"),showIcons:L().default(!0),iconSize:$().default("24px")}),OS=A({style:A({}).passthrough().optional().nullable(),responsive:We,props:PS.optional().nullable()}),LS={left:"flex-start",center:"center",right:"flex-end"},Hs=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,zS=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,jS=e=>e?e.left+e.right:0,BS=e=>!!e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")),Aa=e=>BS(e)?{backgroundImage:e,backgroundColor:"transparent"}:{backgroundColor:e??void 0},DS=(e,t,n=!1,o,r)=>{const i=jS(r);return{...Aa(e),width:`calc(100% - ${i}px)`,display:"flex",alignItems:"center",gap:"16px",padding:Hs(o),margin:zS(r),justifyContent:n?"space-between":LS[t]||"flex-start"}},ar=(e,t=!1)=>({display:"flex",alignItems:"center",flex:t?"1 1 auto":"0 0 auto",justifyContent:e==="start"?"flex-start":e==="end"?"flex-end":"center",minWidth:0}),FS=(e,t,n)=>({listStyle:"none",margin:0,padding:0,display:e==="horizontal"&&t===0?"flex":"block",flexDirection:"row",flexWrap:"wrap",gap:e==="horizontal"&&t===0?n:"0"}),HS={position:"relative"},GS=(e,t,n,o,r,i,a,l)=>({display:"flex",alignItems:"center",gap:e&&t?"8px":"0",color:(l==null?void 0:l.textColor)??n,fontSize:o,fontWeight:(l==null?void 0:l.fontWeight)??r,fontFamily:a||void 0,padding:(l==null?void 0:l.padding)??i,textDecoration:"none",whiteSpace:"nowrap",...Aa(l==null?void 0:l.backgroundColor),...l!=null&&l.borderColor?{borderStyle:"solid",borderColor:l.borderColor,borderWidth:l.borderWidth??1}:void 0,borderRadius:(l==null?void 0:l.borderRadius)!=null?`${l.borderRadius}px`:void 0}),US=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),WS=e=>({paddingLeft:e===0?"0":"12px"}),ZS=(e,t,n,o,r)=>({...Aa(e),borderRadius:`${t}px`,border:n?`1px solid ${n}`:void 0,boxShadow:"0 12px 32px color-mix(in srgb, currentColor 18%, transparent)",padding:Hs(o)??"8px",minWidth:`${r??260}px`}),VS=e=>({display:"inline-flex",alignItems:"center",marginLeft:"6px",width:`${e}px`,height:`${e}px`,flexShrink:0}),qS="M6 9l6 6 6-6",Gs={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},YS=e=>({color:e});function KS(e,t){const n=`.ahd-menu-${e}`,o=(t==null?void 0:t.dropdownBackground)||"#fff",r=t!=null&&t.hasSubmenuItemPadding?"padding-left:32px!important":"padding:10px 16px 10px 32px!important",i=[`${n}{position:relative}`,`${n} .ahd-menu-toggle{position:absolute!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}`,`${n} .ahd-menu-burger{display:none;width:20px;height:16px;cursor:pointer;flex-direction:column;justify-content:space-between;padding:0;margin:8px 12px;background:transparent;border:0}`,`${n} .ahd-menu-burger>span{display:block;height:2px;width:100%;background:currentColor;border-radius:2px;transition:transform .2s ease,opacity .2s ease}`,`${n} .ahd-menu-backdrop{display:none}`,`${n} .ahd-menu-submenu{position:absolute;top:100%;left:0;z-index:120;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease,visibility .15s;pointer-events:none}`,`${n} .ahd-menu-list>li:hover>.ahd-menu-submenu,${n} .ahd-menu-list>li:focus-within>.ahd-menu-submenu{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}`,`${n} .ahd-menu-submenu .ahd-menu-submenu{top:0;left:100%;transform:translateX(4px)}`,`${n} .ahd-menu-submenu li:hover>.ahd-menu-submenu,${n} .ahd-menu-submenu li:focus-within>.ahd-menu-submenu{transform:translateX(0)}`,`${n} .ahd-menu-sublist{display:block!important;width:100%}`,`${n} .ahd-menu-sublist>li>a{display:flex;width:100%;white-space:normal!important;border-radius:6px}`,`${n} .ahd-menu-sublist>li>a:hover{background:color-mix(in srgb,currentColor 10%,transparent)}`,`${n} .ahd-menu-sub-toggle{position:absolute!important;opacity:0!important;width:0!important;height:0!important;margin:0!important;pointer-events:none!important}`,`${n} .ahd-menu-sub-caret{display:none}`,`${n} .ahd-menu-caret{transition:transform .15s ease}`,`${n} li:hover>.ahd-menu-item-row .ahd-menu-caret,${n} li:focus-within>.ahd-menu-item-row .ahd-menu-caret{transform:rotate(180deg)}`].join(""),a=[`${n}{flex-wrap:nowrap!important;align-items:center!important;min-height:48px}`,`${n} .ahd-menu-center{display:none!important}`,`${n} .ahd-menu-start{flex:0 0 auto!important}`,`${n} .ahd-menu-end{flex:0 0 auto!important;margin-left:auto!important}`,`${n} .ahd-menu-burger{display:flex!important;margin-left:0!important;margin-right:0!important;z-index:2}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-backdrop{display:block!important;position:fixed!important;inset:0!important;z-index:90;background:transparent;cursor:default;border:0}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center{display:flex!important;flex-direction:column!important;position:absolute!important;top:100%!important;left:0!important;right:0!important;z-index:100;background:${o};box-shadow:0 6px 16px rgba(0,0,0,.12);width:100%!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list{flex-direction:column!important;width:100%!important;gap:0!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li{width:100%;border-top:1px solid rgba(0,0,0,.08)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li>a{padding:12px 16px!important}`,`${n} .ahd-menu-submenu{position:static!important;opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important;display:none;transition:none}`,`${n} .ahd-menu-sub-toggle:checked~.ahd-menu-submenu{display:block}`,`${n} .ahd-menu-submenu>*{box-shadow:none!important;border:0!important;border-radius:0!important;min-width:0!important;background:transparent!important;padding:0!important}`,`${n} .ahd-menu-submenu{box-shadow:inset 2px 0 0 color-mix(in srgb,currentColor 25%,transparent)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li>a,${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li>.ahd-menu-item-row>.ahd-menu-item-label>a{${r}}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist .ahd-menu-sublist>li>a{padding-left:48px!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li+li{border-top:1px solid color-mix(in srgb,currentColor 12%,transparent)}`,`${n} .ahd-menu-sublist>li{width:100%}`,`${n} .ahd-menu-list>li>.ahd-menu-item-label{display:flex!important;flex:1 1 auto;min-width:0}`,`${n} .ahd-menu-item-row{display:flex;align-items:center;width:100%}`,`${n} .ahd-menu-sub-caret{display:flex!important;align-items:center;justify-content:center;width:44px;align-self:stretch;cursor:pointer;color:currentColor;flex:0 0 auto}`,`${n} .ahd-menu-sub-caret-icon{margin-left:0!important;transition:transform .15s ease}`,`${n} .ahd-menu-sub-toggle:checked~.ahd-menu-item-row .ahd-menu-sub-caret-icon{transform:rotate(180deg)}`,`${n} .ahd-menu-caret{display:none!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(1){transform:translateY(7px) rotate(45deg)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(2){opacity:0}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}`].join(""),l=`(max-width:${Oe}px)`;return i+`@media ${l}{${a}}@container ahd-page ${l}{${a}}`}const JS=(e,t)=>{const n=!!t.stickyNav,o=t.stickyNavTablet??n,r=t.stickyNavMobile??o,i=l=>l?`.ahd-menu-sticky-${e}{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${e}){position:sticky;top:0;z-index:50}`:`.ahd-menu-sticky-${e}{position:static}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${e}){position:static}`;let a=n?i(!0):"";if(o!==n){const l=`(max-width:${Oe}px)`;a+=`@media ${l}{${i(o)}}`,a+=`@container ahd-page ${l}{${i(o)}}`}if(r!==o){const l=`(max-width:${Le}px)`;a+=`@media ${l}{${i(r)}}`,a+=`@container ahd-page ${l}{${i(r)}}`}return a},XS=e=>{if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Mr=e=>t=>{t.stopPropagation(),t.preventDefault();const n=typeof document<"u"?document.getElementById(e):null;n&&(n.checked=!n.checked)},rl=({size:e,className:t})=>g.jsx("span",{className:t,style:VS(e),"aria-hidden":"true",children:g.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:g.jsx("path",{d:qS})})}),Pr=(e,t,n=0)=>{if(!e||e.length===0)return null;const{textColor:o,fontSize:r,fontWeight:i,padding:a,orientation:l,gap:s,showIcons:c,iconSize:u,toggleId:h,listId:d,fontFamily:f,menuKey:p,submenuBackground:b,submenuRadius:x,submenuBorderColor:w,submenuIconSize:S,submenuPadding:k,submenuItemPadding:v,submenuMinWidth:_}=t,y=n>0&&v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:a;return g.jsx("ul",{id:n===0?d:void 0,className:n===0?"ahd-menu-list":"ahd-menu-sublist",style:FS(l,n,s),children:e.map((C,I)=>{const R=Array.isArray(C.children)?C.children:[],E=R.length>0,P=`ahd-submenu-${p}-${n}-${C.id||I}`,M=C.name||C.label||"",O=g.jsxs("a",{href:C.href||"#",style:GS(c,!!C.menuImage,o,r,i,y,f,C),children:[c&&C.menuImage&&g.jsx("img",{src:C.menuImage,alt:"","aria-hidden":"true",style:US(u)}),M,E&&g.jsx(rl,{size:S,className:"ahd-menu-caret"})]}),H=E?g.jsxs("span",{className:"ahd-menu-item-row",children:[g.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:D=>D.stopPropagation(),children:O}),g.jsx("label",{htmlFor:P,className:"ahd-menu-sub-caret","aria-label":`Toggle ${M} submenu`,onClick:Mr(P),children:g.jsx(rl,{size:S,className:"ahd-menu-sub-caret-icon"})})]}):g.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:D=>D.stopPropagation(),children:O});return g.jsxs("li",{style:HS,children:[E&&g.jsx("input",{type:"checkbox",id:P,className:"ahd-menu-sub-toggle","aria-hidden":"true",tabIndex:-1,style:Gs,onClick:D=>D.stopPropagation()}),H,E&&g.jsx("div",{className:"ahd-menu-submenu",style:WS(n),children:g.jsx("div",{style:ZS(b,x,w,k,_),children:Pr(R,{...t,orientation:"vertical"},n+1)})})]},C.id||I)})})},QS=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:o=!1,stickyNavTablet:r,stickyNavMobile:i,menuItems:a,startChildrenIds:l,endChildrenIds:s,layout:c="menu-only",position:u="left",orientation:h="horizontal",backgroundColor:d="transparent",textColor:f="#000000",burgerDropdownBackgroundColor:p,fontSize:b="14px",fontFamily:x,fontWeight:w="400",padding:S="8px 16px",blockPadding:k,blockMargin:v,gap:_="16px",showIcons:y=!0,iconSize:C="24px",borderColor:I,borderWidth:R,borderRadius:E,submenuBackgroundColor:P,submenuRadius:M,submenuIconSize:O,submenuPadding:H,submenuItemPadding:D,submenuMinWidth:V,bare:F}=e??{},q=ka(),Y=q(d)??d,ie=q(f)??f,J=q(I),re=q(p),me=q(P),ae=q("#ffffff")??"#ffffff";if(!(Array.isArray(a)&&a.length>0)||!n&&!t)return g.jsx(g.Fragment,{});const xe=c==="logo-menu"||c==="logo-menu-cta",X=c==="menu-cta"||c==="logo-menu-cta",j=xe||X,B=u==="right"?"end":u==="center"?"center":"start",K=Z.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),W=t||K,te=(F==null?void 0:F.toggleId)??`ahd-menu-toggle-${W}`,fe=(F==null?void 0:F.listId)??`ahd-menu-list-${W}`,ze=XS(x),ue=F?F.toggleId.replace(/^ahd-menu-toggle-/,""):W,Ce={textColor:ie,fontSize:b,fontWeight:w,padding:S,orientation:h,gap:_,showIcons:y,iconSize:C,toggleId:te,listId:fe,fontFamily:ze,menuKey:ue,submenuBackground:me||re||(d!=="transparent"?Y:ae),submenuRadius:M??8,submenuBorderColor:J??null,submenuIconSize:O??14,submenuPadding:H??null,submenuItemPadding:D??null,submenuMinWidth:V??null};if(F)return g.jsx(g.Fragment,{children:Pr(a,Ce)});const le=JS(W,{stickyNav:o,stickyNavTablet:r,stickyNavMobile:i}),Ae=KS(W,{dropdownBackground:re??(d!=="transparent"?Y:null),hasSubmenuItemPadding:!!D});return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:Ae}},W),le&&g.jsx("style",{dangerouslySetInnerHTML:{__html:le}}),g.jsxs("nav",{className:`ahd-menu ahd-menu-${W} ahd-menu-sticky-${W}`,"data-block":"menu","data-layout":c,style:{...DS(Y,u,j,k,v),...J?{borderStyle:"solid",borderColor:J,borderWidth:R?`${R.top??1}px ${R.right??1}px ${R.bottom??1}px ${R.left??1}px`:"1px"}:{},...E!=null?{borderRadius:typeof E=="number"?`${E}px`:`${(E==null?void 0:E.topLeft)??0}px ${(E==null?void 0:E.topRight)??0}px ${(E==null?void 0:E.bottomRight)??0}px ${(E==null?void 0:E.bottomLeft)??0}px`}:{}},"aria-label":"Main navigation",children:[g.jsx("input",{type:"checkbox",id:te,className:"ahd-menu-toggle",role:"switch","aria-label":"Toggle main menu","aria-controls":fe,style:Gs,onClick:ye=>ye.stopPropagation()}),g.jsx("label",{htmlFor:te,className:"ahd-menu-backdrop","aria-hidden":"true",onClick:Mr(te)}),xe&&g.jsx("div",{className:"ahd-menu-start",style:ar("start"),children:(l??[]).map(ye=>g.jsx(Re,{id:ye},ye))}),g.jsx("div",{className:"ahd-menu-center",style:ar(B,j),children:Pr(a,Ce)}),X&&g.jsx("div",{className:"ahd-menu-end",style:ar("end"),children:(s??[]).map(ye=>g.jsx(Re,{id:ye},ye))}),g.jsxs("label",{htmlFor:te,className:"ahd-menu-burger","aria-hidden":"true",style:YS(ie),onClick:Mr(te),children:[g.jsx("span",{}),g.jsx("span",{}),g.jsx("span",{})]})]})]})},ew=A({id:$().optional(),label:$().optional(),href:$().optional(),textColor:$().optional().nullable()}),tw=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),nw=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),ow=A({items:ne(ew).optional().nullable(),separator:N(["slash","chevron","dot","pipe","custom"]).default("chevron"),customSeparator:$().optional().nullable(),showHomeIcon:L().default(!1),homeHref:$().default("/"),collapseOnMobile:L().default(!0),currentItemLinked:L().default(!1),textColor:$().default("#595959"),currentItemColor:$().optional().nullable(),separatorColor:$().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),gap:$().default("8px"),blockPadding:tw,blockMargin:nw}),rw=A({style:A({}).passthrough().optional().nullable(),responsive:We,props:ow.optional().nullable()}),ir={slash:"/",chevron:"›",dot:"•",pipe:"|"};function aw(e,t){return e==="custom"?t||"›":e&&ir[e]?ir[e]:ir.chevron}function iw(e){const t=`.ahd-breadcrumb-${e}`,n=[`${t} .ahd-breadcrumb-collapsible{display:none!important}`,`${t} .ahd-breadcrumb-ellipsis{display:flex!important}`].join(""),o=`(max-width:${Le}px)`;return`@media ${o}{${n}}@container ahd-page ${o}{${n}}`}const lw=e=>{if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Us=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,sw=Us,cw="M12 3.1 3 10.4V21h6v-6h6v6h6V10.4L12 3.1zm0 2.56 7 5.6V19h-2v-6H9v6H5v-7.74l7-5.6z",uw=({size:e,color:t})=>g.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",style:{display:"block",flex:"0 0 auto"},children:g.jsx("path",{d:cw,fill:t})}),dw=({color:e,fontSize:t})=>g.jsx("span",{"aria-hidden":"true",style:{color:e,fontSize:t},children:"…"}),hw=({props:e,renderLabel:t})=>{const{items:n,separator:o="chevron",customSeparator:r,showHomeIcon:i=!1,homeHref:a="/",collapseOnMobile:l=!0,currentItemLinked:s=!1,textColor:c="#595959",currentItemColor:u,separatorColor:h,fontSize:d="14px",fontFamily:f,fontWeight:p="400",gap:b="8px",blockPadding:x,blockMargin:w}=e??{},S=ka(),k=S(c),v=S(u),_=S(h);if(!(Array.isArray(n)&&n.length>0))return g.jsx(g.Fragment,{});const C=lw(f),I=aw(o,r),R=n.length-1,E=Z.useMemo(()=>`b${Math.random().toString(36).slice(2,9)}`,[]),P=l?iw(E):"",M=(O,H,D)=>{const V=(D?v:null)||S(O.textColor)||k,F=!D||s,q={color:V,textDecoration:"none",whiteSpace:"nowrap"};return t?t({item:O,index:H,isLast:D,style:q}):F?g.jsx("a",{href:O.href||"#",style:q,"aria-current":D?"page":void 0,children:O.label||""}):g.jsx("span",{style:q,"aria-current":"page",children:O.label||""})};return g.jsxs(g.Fragment,{children:[P&&g.jsx("style",{dangerouslySetInnerHTML:{__html:P}}),g.jsx("nav",{className:l?`ahd-breadcrumb ahd-breadcrumb-${E}`:"ahd-breadcrumb","aria-label":"Breadcrumb",style:{padding:Us(x),margin:sw(w)},children:g.jsxs("ol",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",listStyle:"none",margin:0,padding:0,gap:b,fontSize:d,fontFamily:C,fontWeight:p},children:[i&&g.jsxs("li",{className:"ahd-breadcrumb-home",style:{display:"flex",alignItems:"center",gap:b},children:[g.jsx("a",{href:a||"/",style:{display:"flex",color:k},children:g.jsx(uw,{size:parseInt(d,10)||14,color:k})}),g.jsx("span",{"aria-hidden":"true",style:{color:_||k},children:I})]}),n.map((O,H)=>{const D=H===R,V=l&&H!==0&&!D;return g.jsxs("li",{className:V?"ahd-breadcrumb-collapsible":void 0,style:{display:"flex",alignItems:"center",gap:b},children:[M(O,H,D),!D&&g.jsx("span",{"aria-hidden":"true",style:{color:_||k},children:I})]},O.id||H)}),l&&n.length>2&&g.jsxs("li",{className:"ahd-breadcrumb-ellipsis",style:{display:"none",alignItems:"center",gap:b},children:[g.jsx(dw,{color:k,fontSize:d}),g.jsx("span",{"aria-hidden":"true",style:{color:_||k},children:I})]})]})})]})},fw=A({style:A({}).passthrough().optional().nullable(),props:A({formId:$().default(""),formName:$().default(""),iframeSrc:$().default(""),width:$().default("100%"),height:$().default("500px"),heightTablet:$().optional(),heightMobile:$().optional(),autoHeight:L().default(!1),alignment:N(["left","center","right"]).default("left")}).optional().nullable()}),mw=e=>{let t=0;for(let n=0;n<e.length;n+=1)t=t*31+e.charCodeAt(n)|0;return`form-${Math.abs(t).toString(36)}`},pw=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},gw=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},bw=({props:e,style:t})=>{var k,v;const{formId:n,iframeSrc:o,width:r,height:i,heightTablet:a,heightMobile:l,autoHeight:s=!1,alignment:c="left",formName:u}=e??{};if(!n||!o)return g.jsx(g.Fragment,{});const h=c==="center"?"center":c==="right"?"flex-end":"flex-start",d=t??{},f=(((k=d.margin)==null?void 0:k.left)||0)+(((v=d.margin)==null?void 0:v.right)||0),p=Mm(d.borderRadius),b={display:"flex",justifyContent:h,width:`calc(100% - ${f}px)`,padding:pw(d.padding),margin:gw(d.margin),backgroundColor:d.backgroundColor||void 0,borderRadius:p},x=mw(`${n}|${o??""}`),w=!s&&(a||l)?`
339
+ ${a?`${Dt} { #${x} { height: ${a} !important; } }`:""}
340
+ ${l?`${De} { #${x} { height: ${l} !important; } }`:""}
341
+ `:"",S=s?`
342
342
  (function(){
343
- var el = document.getElementById(${JSON.stringify(b)});
343
+ var el = document.getElementById(${JSON.stringify(x)});
344
344
  if (!el) return;
345
345
  window.addEventListener('message', function(e){
346
346
  var d = e.data;
@@ -351,7 +351,7 @@ ${y}
351
351
  el.style.height = Math.ceil(h) + 'px';
352
352
  });
353
353
  })();
354
- `:"";return g.jsxs(g.Fragment,{children:[x&&g.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),g.jsx("div",{style:p,children:g.jsx("iframe",{id:b,src:o,title:u||"Form",style:{width:r||"100%",height:s?"auto":i||"500px",border:"none",display:"block",borderRadius:d.borderRadius||void 0},scrolling:s?"no":void 0,loading:"lazy"})}),v&&g.jsx("script",{dangerouslySetInnerHTML:{__html:v}})]})},gw=A({style:A({}).passthrough().optional().nullable(),props:A({bannerId:$().default(""),bannerName:$().optional().nullable(),contentDocument:on($(),yn()).optional().nullable(),padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable()}),bw=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},xw=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},vw=({props:e})=>{const{bannerId:t,contentDocument:n,padding:o,margin:r}=e??{};return t?n&&n.root?g.jsx("div",{className:"app-banner-picker-block",style:{...bw(o),...xw(r)},children:g.jsx(En,{document:n,rootBlockId:"root"})}):g.jsx(g.Fragment,{}):g.jsx(g.Fragment,{})},Sw=A({style:A({}).passthrough().optional().nullable(),props:A({faqGroupId:$().default(""),faqGroupName:$().optional().nullable(),contentDocument:on($(),yn()).optional().nullable(),padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable()}),ww=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},$w=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},kw=({props:e})=>{const{faqGroupId:t,contentDocument:n,padding:o,margin:r}=e??{};return t?!n||!n.root?g.jsx(g.Fragment,{}):g.jsx("div",{className:"faq-picker-block",style:{...ww(o),...$w(r)},children:g.jsx(En,{document:n,rootBlockId:"root"})}):g.jsx(g.Fragment,{})},_w=A({style:A({padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({text:$().optional().nullable(),targetId:$().optional().nullable(),backgroundColor:$().optional().nullable(),textColor:$().optional().nullable(),fontSize:m().optional().nullable(),borderRadius:m().optional().nullable(),paddingX:m().optional().nullable(),paddingY:m().optional().nullable(),marginX:m().optional().nullable(),marginY:m().optional().nullable(),displayMode:N(["focus-only","always-visible"]).optional().nullable()}).optional().nullable()}),ut={text:"Skip to main content",targetId:"main-content",backgroundColor:"#000000",textColor:"#ffffff",fontSize:14,borderRadius:4,paddingX:12,paddingY:8,marginX:0,marginY:0};let Cw=0;function Us({style:e,props:t}){var v,S;const n=((v=t==null?void 0:t.text)==null?void 0:v.trim())||ut.text,o=((S=t==null?void 0:t.targetId)==null?void 0:S.trim())||ut.targetId,r=(t==null?void 0:t.backgroundColor)??ut.backgroundColor,i=(t==null?void 0:t.textColor)??ut.textColor,a=(t==null?void 0:t.fontSize)??ut.fontSize,l=(t==null?void 0:t.borderRadius)??ut.borderRadius,s=(t==null?void 0:t.paddingX)??ut.paddingX,c=(t==null?void 0:t.paddingY)??ut.paddingY,u=(t==null?void 0:t.marginX)??ut.marginX,h=(t==null?void 0:t.marginY)??ut.marginY,d="always-visible",f=`skip-link-${++Cw}`,p={padding:va(e==null?void 0:e.padding),margin:Sa(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b=`
354
+ `:"";return g.jsxs(g.Fragment,{children:[w&&g.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),g.jsx("div",{style:b,children:g.jsx("div",{style:{width:r||"100%",borderRadius:p,overflow:p?"hidden":void 0},children:g.jsx("iframe",{id:x,src:o,title:u||"Form",style:{width:"100%",height:s?"auto":i||"500px",border:"none",display:"block"},scrolling:s?"no":void 0,loading:"lazy"})})}),S&&g.jsx("script",{dangerouslySetInnerHTML:{__html:S}})]})},xw=A({style:A({}).passthrough().optional().nullable(),props:A({bannerId:$().default(""),bannerName:$().optional().nullable(),contentDocument:rn($(),In()).optional().nullable(),padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable()}),vw=()=>`<img alt="" src="x:invalid" style="display:none" onerror="${"var s=this;setTimeout(function(){try{var root=s.closest('[data-ahd-tpl-root]')||s.parentNode||document.body;if(!root){s.parentNode&&s.parentNode.removeChild(s);return;}var p=new URLSearchParams(location.search);var els=root.querySelectorAll('[data-ahd-var]');for(var i=0;i<els.length;i++){var el=els[i];var v=p.get(el.getAttribute('data-ahd-var')||'');if(v!==null){el.textContent=v;}}var hs=root.querySelectorAll('[data-ahd-href-tpl]');for(var j=0;j<hs.length;j++){var he=hs[j];var tpl=he.getAttribute('data-ahd-href-tpl')||'';var filled=tpl.replace(/\\{\\{\\s*([a-zA-Z_][a-zA-Z0-9_-]*)\\s*\\}\\}/g,function(m,n){var pv=p.get(n);return pv!==null?encodeURIComponent(pv):m;});he.setAttribute('href',filled);he.removeAttribute('data-ahd-href-tpl');}var ds=root.querySelectorAll('[data-ahd-date]');if(ds.length){var now=new Date();var sod=function(d){return new Date(d.getFullYear(),d.getMonth(),d.getDate()).getTime();};for(var k=0;k<ds.length;k++){var de=ds[k];var iso=de.getAttribute('data-ahd-date')||'';if(!iso)continue;var dt=new Date(iso);if(isNaN(dt.getTime()))continue;var diff=Math.round((sod(dt)-sod(now))/86400000);var lbl;if(diff===0){lbl='Today';}else if(diff===1){lbl='Tomorrow';}else if(diff===-1){lbl='Yesterday';}else if(diff>=-6&&diff<=6){lbl=dt.toLocaleDateString(undefined,{weekday:'short'});}else{var o={month:'short',day:'numeric'};if(dt.getFullYear()!==now.getFullYear()){o.year='numeric';}lbl=dt.toLocaleDateString(undefined,o);}de.textContent=lbl;}}s.parentNode&&s.parentNode.removeChild(s);}catch(e){}},0);".replace(/"/g,"&quot;")}">`,Sw=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="TabsBlock"),ww=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="DemoPicker"),$w=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Carousel"),kw=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Pagination"),_w=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Timer"),Cw=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]),al=e=>Object.values(e??{}).some(t=>{var n,o,r;return Cw.has(t==null?void 0:t.type)&&((r=(o=(n=t==null?void 0:t.data)==null?void 0:n.props)==null?void 0:o.animation)==null?void 0:r.type)&&t.data.props.animation.type!=="none"}),un="https://pagepilot.fabbuilder.com/scripts",Aw=`${un}/pagePilotTabs.js`,yw=`${un}/pagePilotCarousel.js`,Iw=`${un}/pagePilotPagination.js`,Rw=`${un}/pagePilotDemoScale.js`,Nw=`${un}/pagePilotTimer.js`,Tw=`${un}/pagePilotAnimation.js`,Ew=()=>`<img alt="" src="x:invalid" style="display:none" onerror="${"var s=this;setTimeout(function(){try{var d=document.documentElement,b=document.body;if((d&&d.hasAttribute('data-ahd-theme-lock'))||(b&&b.hasAttribute('data-ahd-theme-lock'))){s.parentNode&&s.parentNode.removeChild(s);return;}var ATTRS=['data-theme','data-bs-theme','data-color-mode','data-color-scheme','data-mui-color-scheme','data-mantine-color-scheme','data-colormode','theme'];var DARK_CLS=/(^|\\s)(dark|dark-mode|dark-theme|theme-dark|night|night-mode|is-dark)(\\s|$)/i;var LIGHT_CLS=/(^|\\s)(light|light-mode|light-theme|theme-light|is-light)(\\s|$)/i;var lum=function(v){if(!v)return null;var m=v.replace(/\\s/g,'').match(/^rgba?\\((\\d+),(\\d+),(\\d+)(?:,([0-9.]+))?\\)$/i);if(!m)return null;if(m[4]!==undefined&&parseFloat(m[4])===0)return null;var c=[m[1],m[2],m[3]].map(function(x){x=parseInt(x,10)/255;return x<=0.03928?x/12.92:Math.pow((x+0.055)/1.055,2.4);});return 0.2126*c[0]+0.7152*c[1]+0.0722*c[2];};var resolve=function(){var els=[d,b],i,j,el,v;for(i=0;i<els.length;i++){el=els[i];if(!el)continue;if(el===d&&d.getAttribute('data-ahd-cs')==='1'){continue;}v=el.style&&el.style.colorScheme;if(!v&&window.getComputedStyle){v=getComputedStyle(el).colorScheme;}if(v&&v!=='normal'){var hasD=/dark/i.test(v),hasL=/light/i.test(v);if(hasD&&!hasL)return'dark';if(hasL&&!hasD)return'light';}}for(i=0;i<els.length;i++){el=els[i];if(!el||!el.getAttribute)continue;for(j=0;j<ATTRS.length;j++){v=el.getAttribute(ATTRS[j]);if(!v)continue;if(/dark|night/i.test(v))return'dark';if(/light/i.test(v))return'light';}}for(i=0;i<els.length;i++){el=els[i];if(!el)continue;v=el.className;if(typeof v!=='string')v=(el.getAttribute&&el.getAttribute('class'))||'';if(DARK_CLS.test(v))return'dark';if(LIGHT_CLS.test(v))return'light';}if(window.getComputedStyle){for(i=0;i<els.length;i++){el=els[i];if(!el)continue;var L=lum(getComputedStyle(el).backgroundColor);if(L!==null)return L<0.4?'dark':'light';}}return null;};var apply=function(){var t=resolve();var roots=document.querySelectorAll('[data-ahd-tpl-root]');for(var i=0;i<roots.length;i++){roots[i].setAttribute('data-ahd-theme',t||'auto');}var cs=d.style.colorScheme;if(!cs&&window.getComputedStyle){cs=getComputedStyle(d).colorScheme;}if(!cs||cs==='normal'||d.getAttribute('data-ahd-cs')==='1'){d.style.colorScheme=t||'light dark';d.setAttribute('data-ahd-cs','1');}};apply();if(!window.__ahdThemeObs){window.__ahdThemeObs=1;try{if(window.matchMedia){var mq=matchMedia('(prefers-color-scheme: dark)');var onMq=function(){apply();};if(mq.addEventListener)mq.addEventListener('change',onMq);else if(mq.addListener)mq.addListener(onMq);}if(window.MutationObserver){var o=new MutationObserver(function(){apply();});var opts={attributes:true,attributeFilter:['class','style'].concat(ATTRS)};if(d)o.observe(d,opts);if(b)o.observe(b,opts);}}catch(e2){}}s.parentNode&&s.parentNode.removeChild(s);}catch(e){}},0);".replace(/"/g,"&quot;")}">`,Mw=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},Pw=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},Ow=({props:e})=>{const{bannerId:t,contentDocument:n,padding:o,margin:r}=e??{};return t?n&&n.root?g.jsx("div",{className:"app-banner-picker-block",style:{...Mw(o),...Pw(r)},children:g.jsx(Mn,{document:n,rootBlockId:"root"})}):g.jsx(g.Fragment,{}):g.jsx(g.Fragment,{})},Lw=A({style:A({}).passthrough().optional().nullable(),props:A({faqGroupId:$().default(""),faqGroupName:$().optional().nullable(),contentDocument:rn($(),In()).optional().nullable(),padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable()}),zw=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},jw=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},Bw=({props:e})=>{const{faqGroupId:t,contentDocument:n,padding:o,margin:r}=e??{};return t?!n||!n.root?g.jsx(g.Fragment,{}):g.jsx("div",{className:"faq-picker-block",style:{...zw(o),...jw(r)},children:g.jsx(Mn,{document:n,rootBlockId:"root"})}):g.jsx(g.Fragment,{})},Dw=A({style:A({padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({text:$().optional().nullable(),targetId:$().optional().nullable(),backgroundColor:$().optional().nullable(),textColor:$().optional().nullable(),fontSize:m().optional().nullable(),borderRadius:m().optional().nullable(),paddingX:m().optional().nullable(),paddingY:m().optional().nullable(),marginX:m().optional().nullable(),marginY:m().optional().nullable(),displayMode:N(["focus-only","always-visible"]).optional().nullable()}).optional().nullable()}),ut={text:"Skip to main content",targetId:"main-content",backgroundColor:"#000000",textColor:"#ffffff",fontSize:14,borderRadius:4,paddingX:12,paddingY:8,marginX:0,marginY:0};let Fw=0;function Ws({style:e,props:t}){var w,S;const n=((w=t==null?void 0:t.text)==null?void 0:w.trim())||ut.text,o=((S=t==null?void 0:t.targetId)==null?void 0:S.trim())||ut.targetId,r=(t==null?void 0:t.backgroundColor)??ut.backgroundColor,i=(t==null?void 0:t.textColor)??ut.textColor,a=(t==null?void 0:t.fontSize)??ut.fontSize,l=(t==null?void 0:t.borderRadius)??ut.borderRadius,s=(t==null?void 0:t.paddingX)??ut.paddingX,c=(t==null?void 0:t.paddingY)??ut.paddingY,u=(t==null?void 0:t.marginX)??ut.marginX,h=(t==null?void 0:t.marginY)??ut.marginY,d="always-visible",f=`skip-link-${++Fw}`,p={padding:wa(e==null?void 0:e.padding),margin:$a(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b=`
355
355
  display:inline-block;
356
356
  background:${r};
357
357
  color:${i};
@@ -364,7 +364,7 @@ ${y}
364
364
  line-height:1.2;
365
365
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
366
366
  `,x=`.${f}{${b}}
367
- .${f}:focus-visible{outline:3px solid #000;outline-offset:3px}`;return g.jsxs("div",{className:"skip-link-block",style:p,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),g.jsx("a",{href:`#${o}`,className:f,"data-skip-link":d,children:n})]})}const Aw=A({style:A({padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({renderMode:N(["inline","floating"]).optional().nullable(),position:N(["top-right","top-left","bottom-right","bottom-left"]).optional().nullable(),triggerLabel:$().optional().nullable(),triggerText:$().optional().nullable(),showLabelText:O().optional().nullable(),triggerBg:$().optional().nullable(),triggerColor:$().optional().nullable(),triggerFontSize:m().optional().nullable(),triggerBorderRadius:m().optional().nullable(),triggerPadding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),triggerMargin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),icon:N(["accessibility","universal-access","person","eye","info"]).optional().nullable(),features:A({contrast:O().optional().nullable(),invert:O().optional().nullable(),saturation:O().optional().nullable(),highlightLinks:O().optional().nullable(),textSize:O().optional().nullable(),textSpacing:O().optional().nullable(),lineHeight:O().optional().nullable(),hideImages:O().optional().nullable(),bigCursor:O().optional().nullable(),reset:O().optional().nullable()}).optional().nullable()}).optional().nullable()}),dt={renderMode:"floating",position:"top-right",triggerLabel:"Accessibility tools",triggerBg:"#2563eb",triggerColor:"#ffffff",triggerFontSize:13,triggerBorderRadius:999,triggerPadding:{top:8,right:14,bottom:8,left:14},triggerMargin:{top:0,right:0,bottom:0,left:0},icon:"accessibility"},ar={accessibility:"M12 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2zm-9 2.5c1.38 0 2.5-1.12 2.5-2.5S13.38 6.5 12 6.5 9.5 7.62 9.5 9s1.12 2.5 2.5 2.5z","universal-access":"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm5 5.2l-3.5.8v2l1.2 4.5-1.7.4-1-3.9-1 3.9-1.7-.4L9.5 13v-2L6 10.2l.3-1.5L12 10l5.7-1.3z",person:"M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-3.3 0-8 1.67-8 5v3h16v-3c0-3.33-4.7-5-8-5z",eye:"M12 5c-7 0-11 7-11 7s4 7 11 7 11-7 11-7-4-7-11-7zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-2a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",info:"M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm1 15h-2v-6h2zm0-8h-2V7h2z"};function yw(e){return e&&ar[e]?ar[e]:ar.accessibility}function Iw(e){return`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${yw(e)}"/></svg>`}const Rw={contrast:!0,invert:!0,saturation:!0,highlightLinks:!0,textSize:!0,textSpacing:!0,lineHeight:!0,hideImages:!0,bigCursor:!0,reset:!0};function Nw(e){const t=e??"top-right";return{containerPos:t==="top-right"?"top:16px;right:16px;":t==="top-left"?"top:16px;left:16px;":t==="bottom-right"?"bottom:16px;right:16px;":"bottom:16px;left:16px;"}}function Ws(e){const{containerPos:t}=Nw(e.position);return`
367
+ .${f}:focus-visible{outline:3px solid #000;outline-offset:3px}`;return g.jsxs("div",{className:"skip-link-block",style:p,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),g.jsx("a",{href:`#${o}`,className:f,"data-skip-link":d,children:n})]})}const Hw=A({style:A({padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({renderMode:N(["inline","floating"]).optional().nullable(),position:N(["top-right","top-left","bottom-right","bottom-left"]).optional().nullable(),triggerLabel:$().optional().nullable(),triggerText:$().optional().nullable(),showLabelText:L().optional().nullable(),triggerBg:$().optional().nullable(),triggerColor:$().optional().nullable(),triggerFontSize:m().optional().nullable(),triggerBorderRadius:m().optional().nullable(),triggerPadding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),triggerMargin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),icon:N(["accessibility","universal-access","person","eye","info"]).optional().nullable(),features:A({contrast:L().optional().nullable(),invert:L().optional().nullable(),saturation:L().optional().nullable(),highlightLinks:L().optional().nullable(),textSize:L().optional().nullable(),textSpacing:L().optional().nullable(),lineHeight:L().optional().nullable(),hideImages:L().optional().nullable(),bigCursor:L().optional().nullable(),reset:L().optional().nullable()}).optional().nullable()}).optional().nullable()}),dt={renderMode:"floating",position:"top-right",triggerLabel:"Accessibility tools",triggerBg:"#2563eb",triggerColor:"#ffffff",triggerFontSize:13,triggerBorderRadius:999,triggerPadding:{top:8,right:14,bottom:8,left:14},triggerMargin:{top:0,right:0,bottom:0,left:0},icon:"accessibility"},lr={accessibility:"M12 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2zm-9 2.5c1.38 0 2.5-1.12 2.5-2.5S13.38 6.5 12 6.5 9.5 7.62 9.5 9s1.12 2.5 2.5 2.5z","universal-access":"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm5 5.2l-3.5.8v2l1.2 4.5-1.7.4-1-3.9-1 3.9-1.7-.4L9.5 13v-2L6 10.2l.3-1.5L12 10l5.7-1.3z",person:"M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-3.3 0-8 1.67-8 5v3h16v-3c0-3.33-4.7-5-8-5z",eye:"M12 5c-7 0-11 7-11 7s4 7 11 7 11-7 11-7-4-7-11-7zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-2a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",info:"M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm1 15h-2v-6h2zm0-8h-2V7h2z"};function Gw(e){return e&&lr[e]?lr[e]:lr.accessibility}function Uw(e){return`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${Gw(e)}"/></svg>`}const Ww={contrast:!0,invert:!0,saturation:!0,highlightLinks:!0,textSize:!0,textSpacing:!0,lineHeight:!0,hideImages:!0,bigCursor:!0,reset:!0};function Zw(e){const t=e??"top-right";return{containerPos:t==="top-right"?"top:16px;right:16px;":t==="top-left"?"top:16px;left:16px;":t==="bottom-right"?"bottom:16px;right:16px;":"bottom:16px;left:16px;"}}function Zs(e){const{containerPos:t}=Zw(e.position);return`
368
368
  /* Accessibility Tools widget */
369
369
  .ahd-a11y-widget{position:relative;display:inline-block}
370
370
  .ahd-a11y-widget.ahd-a11y-floating{position:fixed;${t}z-index:99999}
@@ -396,7 +396,7 @@ html.a11y-spacing,html.a11y-spacing *{letter-spacing:0.12em !important;word-spac
396
396
  html.a11y-lineheight,html.a11y-lineheight *{line-height:1.8 !important}
397
397
  html.a11y-hide-images img,html.a11y-hide-images picture,html.a11y-hide-images video{visibility:hidden !important}
398
398
  html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M4 2 L4 26 L10 20 L14 30 L18 28 L14 18 L22 18 Z" fill="black" stroke="white" stroke-width="1.5"/></svg>') 4 2, auto !important}
399
- `.trim()}function Zs(e){const t={...Rw,...e.features??{}},n=(h,d)=>`<button type="button" class="ahd-a11y-btn" data-a11y="${h}" aria-pressed="false">${d}</button>`,o=t.contrast||t.invert||t.saturation?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Color &amp; Contrast</div><div class="ahd-a11y-row">${[t.contrast?n("contrast","High contrast"):"",t.invert?n("invert","Invert colors"):"",t.saturation?n("desat","Grayscale"):""].filter(Boolean).join("")}</div></div>`:"",r=t.textSize||t.textSpacing||t.lineHeight?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Text</div><div class="ahd-a11y-row">${[t.textSize?n("text-sm","A-"):"",t.textSize?n("text-lg","A+"):"",t.textSize?n("text-xl","A++"):"",t.textSpacing?n("spacing","Spacing"):"",t.lineHeight?n("lineheight","Line height"):"",t.highlightLinks?n("highlight-links","Highlight links"):""].filter(Boolean).join("")}</div></div>`:"",i=t.hideImages||t.bigCursor?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Other</div><div class="ahd-a11y-row">${[t.hideImages?n("hide-images","Hide images"):"",t.bigCursor?n("big-cursor","Big cursor"):""].filter(Boolean).join("")}</div></div>`:"",a=t.reset?'<button type="button" class="ahd-a11y-reset" data-a11y-reset>Reset all</button>':"",l=e.renderMode==="floating"?"floating":"inline",s=Iw(e.icon??"accessibility"),c=Em(e.triggerText,e.showLabelText!==!1,"Accessibility"),u=typeof e.triggerLabel=="string"&&e.triggerLabel.trim()||"Accessibility tools";return`
399
+ `.trim()}function Vs(e){const t={...Ww,...e.features??{}},n=(h,d)=>`<button type="button" class="ahd-a11y-btn" data-a11y="${h}" aria-pressed="false">${d}</button>`,o=t.contrast||t.invert||t.saturation?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Color &amp; Contrast</div><div class="ahd-a11y-row">${[t.contrast?n("contrast","High contrast"):"",t.invert?n("invert","Invert colors"):"",t.saturation?n("desat","Grayscale"):""].filter(Boolean).join("")}</div></div>`:"",r=t.textSize||t.textSpacing||t.lineHeight?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Text</div><div class="ahd-a11y-row">${[t.textSize?n("text-sm","A-"):"",t.textSize?n("text-lg","A+"):"",t.textSize?n("text-xl","A++"):"",t.textSpacing?n("spacing","Spacing"):"",t.lineHeight?n("lineheight","Line height"):"",t.highlightLinks?n("highlight-links","Highlight links"):""].filter(Boolean).join("")}</div></div>`:"",i=t.hideImages||t.bigCursor?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Other</div><div class="ahd-a11y-row">${[t.hideImages?n("hide-images","Hide images"):"",t.bigCursor?n("big-cursor","Big cursor"):""].filter(Boolean).join("")}</div></div>`:"",a=t.reset?'<button type="button" class="ahd-a11y-reset" data-a11y-reset>Reset all</button>':"",l=e.renderMode==="floating"?"floating":"inline",s=Uw(e.icon??"accessibility"),c=Pm(e.triggerText,e.showLabelText!==!1,"Accessibility"),u=typeof e.triggerLabel=="string"&&e.triggerLabel.trim()||"Accessibility tools";return`
400
400
  <div class="ahd-a11y-widget ahd-a11y-${l}">
401
401
  <button type="button" class="ahd-a11y-trigger" aria-label="${u}" aria-expanded="false" aria-controls="ahd-a11y-panel">${s}${c!==null?`<span>${c}</span>`:""}</button>
402
402
  <div class="ahd-a11y-panel" id="ahd-a11y-panel" role="dialog" aria-label="Accessibility tools" aria-hidden="true" data-open="false">
@@ -404,7 +404,7 @@ html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,
404
404
  ${o}${r}${i}${a}
405
405
  </div>
406
406
  </div>
407
- `.trim()}function Vs(){return`
407
+ `.trim()}function qs(){return`
408
408
  (function(){
409
409
  var STORAGE_KEY='ahdA11yPrefs';
410
410
  // Classes that are mutually exclusive within their group
@@ -512,20 +512,20 @@ html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,
512
512
  init();
513
513
  }
514
514
  })();
515
- `.trim()}function qs({style:e,props:t}){const n=(t==null?void 0:t.renderMode)??dt.renderMode,o=(t==null?void 0:t.position)??dt.position,r=(t==null?void 0:t.features)??void 0,i=(t==null?void 0:t.triggerBg)??dt.triggerBg,a=(t==null?void 0:t.triggerColor)??dt.triggerColor,l=(t==null?void 0:t.triggerLabel)??dt.triggerLabel,s=(t==null?void 0:t.showLabelText)!==!1,c=(t==null?void 0:t.triggerFontSize)??dt.triggerFontSize,u=(t==null?void 0:t.triggerBorderRadius)??dt.triggerBorderRadius,h=(t==null?void 0:t.triggerPadding)??dt.triggerPadding,d=(t==null?void 0:t.triggerMargin)??dt.triggerMargin,f=(t==null?void 0:t.icon)??dt.icon,p={padding:va(e==null?void 0:e.padding),margin:Sa(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b={position:o,features:r,renderMode:n,triggerText:t==null?void 0:t.triggerText,showLabelText:s,icon:f,triggerLabel:l},x=Ws(b),v=`.ahd-a11y-trigger{background:${i};color:${a};font-size:${c}px;border-radius:${u}px;padding:${h.top}px ${h.right}px ${h.bottom}px ${h.left}px};margin:${d.top}px ${d.right}px ${d.bottom}px ${d.left}px}`,S=Zs(b),k=Vs();return g.jsxs("div",{className:"accessibility-tools-block",style:p,"data-a11y-instance":"1",children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:x+v}}),g.jsx("div",{dangerouslySetInnerHTML:{__html:S}}),g.jsx("script",{dangerouslySetInnerHTML:{__html:k}}),g.jsx("span",{"aria-hidden":"true",style:{display:"none"},children:l})]})}function Tw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mr={exports:{}},Pr={exports:{}},Je={},xe={};xe.__esModule=!0;xe.extend=Ys;xe.indexOf=Lw;xe.escapeExpression=zw;xe.isEmpty=jw;xe.createFrame=Bw;xe.blockParams=Dw;xe.appendContextPath=Fw;var Ew={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},Mw=/[&<>"'`=]/g,Pw=/[&<>"'`=]/;function Ow(e){return Ew[e]}function Ys(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var Aa=Object.prototype.toString;xe.toString=Aa;var Or=function(t){return typeof t=="function"};Or(/x/)&&(xe.isFunction=Or=function(e){return typeof e=="function"&&Aa.call(e)==="[object Function]"});xe.isFunction=Or;var Ks=Array.isArray||function(e){return e&&typeof e=="object"?Aa.call(e)==="[object Array]":!1};xe.isArray=Ks;function Lw(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function zw(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return Pw.test(e)?e.replace(Mw,Ow):e}function jw(e){return!e&&e!==0?!0:!!(Ks(e)&&e.length===0)}function Bw(e){var t=Ys({},e);return t._parent=e,t}function Dw(e,t){return e.path=t,e}function Fw(e,t){return(e?e+".":"")+t}var Lr={exports:{}};(function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function o(r,i){var a=i&&i.loc,l=void 0,s=void 0,c=void 0,u=void 0;a&&(l=a.start.line,s=a.end.line,c=a.start.column,u=a.end.column,r+=" - "+l+":"+c);for(var h=Error.prototype.constructor.call(this,r),d=0;d<n.length;d++)this[n[d]]=h[n[d]];Error.captureStackTrace&&Error.captureStackTrace(this,o);try{a&&(this.lineNumber=l,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:c,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:u,enumerable:!0})):(this.column=c,this.endColumn=u))}catch{}}o.prototype=new Error,t.default=o,e.exports=t.default})(Lr,Lr.exports);var Xe=Lr.exports,Pn={},zr={exports:{}};(function(e,t){t.__esModule=!0;var n=xe;t.default=function(o){o.registerHelper("blockHelperMissing",function(r,i){var a=i.inverse,l=i.fn;if(r===!0)return l(this);if(r===!1||r==null)return a(this);if(n.isArray(r))return r.length>0?(i.ids&&(i.ids=[i.name]),o.helpers.each(r,i)):a(this);if(i.data&&i.ids){var s=n.createFrame(i.data);s.contextPath=n.appendContextPath(i.data.contextPath,i.name),i={data:s}}return l(r,i)})},e.exports=t.default})(zr,zr.exports);var Hw=zr.exports,jr={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var o=xe,r=Xe,i=n(r);t.default=function(a){a.registerHelper("each",function(l,s){if(!s)throw new i.default("Must pass iterator to #each");var c=s.fn,u=s.inverse,h=0,d="",f=void 0,p=void 0;s.data&&s.ids&&(p=o.appendContextPath(s.data.contextPath,s.ids[0])+"."),o.isFunction(l)&&(l=l.call(this)),s.data&&(f=o.createFrame(s.data));function b(w,C,y){f&&(f.key=w,f.index=C,f.first=C===0,f.last=!!y,p&&(f.contextPath=p+w)),d=d+c(l[w],{data:f,blockParams:o.blockParams([l[w],w],[p+w,null])})}if(l&&typeof l=="object")if(o.isArray(l))for(var x=l.length;h<x;h++)h in l&&b(h,h,h===l.length-1);else if(typeof Symbol=="function"&&l[Symbol.iterator]){for(var v=[],S=l[Symbol.iterator](),k=S.next();!k.done;k=S.next())v.push(k.value);l=v;for(var x=l.length;h<x;h++)b(h,h,h===l.length-1)}else(function(){var w=void 0;Object.keys(l).forEach(function(C){w!==void 0&&b(w,h-1),w=C,h++}),w!==void 0&&b(w,h-1,!0)})();return h===0&&(d=u(this)),d})},e.exports=t.default})(jr,jr.exports);var Gw=jr.exports,Br={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var o=Xe,r=n(o);t.default=function(i){i.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new r.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default})(Br,Br.exports);var Uw=Br.exports,Dr={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var o=xe,r=Xe,i=n(r);t.default=function(a){a.registerHelper("if",function(l,s){if(arguments.length!=2)throw new i.default("#if requires exactly one argument");return o.isFunction(l)&&(l=l.call(this)),!s.hash.includeZero&&!l||o.isEmpty(l)?s.inverse(this):s.fn(this)}),a.registerHelper("unless",function(l,s){if(arguments.length!=2)throw new i.default("#unless requires exactly one argument");return a.helpers.if.call(this,l,{fn:s.inverse,inverse:s.fn,hash:s.hash})})},e.exports=t.default})(Dr,Dr.exports);var Ww=Dr.exports,Fr={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("log",function(){for(var o=[void 0],r=arguments[arguments.length-1],i=0;i<arguments.length-1;i++)o.push(arguments[i]);var a=1;r.hash.level!=null?a=r.hash.level:r.data&&r.data.level!=null&&(a=r.data.level),o[0]=a,n.log.apply(n,o)})},e.exports=t.default})(Fr,Fr.exports);var Zw=Fr.exports,Hr={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("lookup",function(o,r,i){return o&&i.lookupProperty(o,r)})},e.exports=t.default})(Hr,Hr.exports);var Vw=Hr.exports,Gr={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var o=xe,r=Xe,i=n(r);t.default=function(a){a.registerHelper("with",function(l,s){if(arguments.length!=2)throw new i.default("#with requires exactly one argument");o.isFunction(l)&&(l=l.call(this));var c=s.fn;if(o.isEmpty(l))return s.inverse(this);var u=s.data;return s.data&&s.ids&&(u=o.createFrame(s.data),u.contextPath=o.appendContextPath(s.data.contextPath,s.ids[0])),c(l,{data:u,blockParams:o.blockParams([l],[u&&u.contextPath])})})},e.exports=t.default})(Gr,Gr.exports);var qw=Gr.exports;Pn.__esModule=!0;Pn.registerDefaultHelpers=c2;Pn.moveHelperToHooks=u2;function Dt(e){return e&&e.__esModule?e:{default:e}}var Yw=Hw,Kw=Dt(Yw),Jw=Gw,Xw=Dt(Jw),Qw=Uw,e2=Dt(Qw),t2=Ww,n2=Dt(t2),o2=Zw,r2=Dt(o2),a2=Vw,i2=Dt(a2),l2=qw,s2=Dt(l2);function c2(e){Kw.default(e),Xw.default(e),e2.default(e),n2.default(e),r2.default(e),i2.default(e),s2.default(e)}function u2(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||(e.helpers[t]=void 0))}var ya={},Ur={exports:{}};(function(e,t){t.__esModule=!0;var n=xe;t.default=function(o){o.registerDecorator("inline",function(r,i,a,l){var s=r;return i.partials||(i.partials={},s=function(c,u){var h=a.partials;a.partials=n.extend({},h,i.partials);var d=r(c,u);return a.partials=h,d}),i.partials[l.args[0]]=l.fn,s})},e.exports=t.default})(Ur,Ur.exports);var d2=Ur.exports;ya.__esModule=!0;ya.registerDefaultDecorators=p2;function h2(e){return e&&e.__esModule?e:{default:e}}var f2=d2,m2=h2(f2);function p2(e){m2.default(e)}var Wr={exports:{}};(function(e,t){t.__esModule=!0;var n=xe,o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(i){if(typeof i=="string"){var a=n.indexOf(o.methodMap,i.toLowerCase());a>=0?i=a:i=parseInt(i,10)}return i},log:function(i){if(i=o.lookupLevel(i),typeof console<"u"&&o.lookupLevel(o.level)<=i){var a=o.methodMap[i];console[a]||(a="log");for(var l=arguments.length,s=Array(l>1?l-1:0),c=1;c<l;c++)s[c-1]=arguments[c];console[a].apply(console,s)}}};t.default=o,e.exports=t.default})(Wr,Wr.exports);var Js=Wr.exports,cn={};cn.__esModule=!0;cn.createProtoAccessControl=v2;cn.resultIsAllowed=S2;cn.resetLoggedProperties=$2;function g2(e){return e&&e.__esModule?e:{default:e}}var rl=xe,b2=Js,x2=g2(b2),vo=Object.create(null);function v2(e){var t=Object.create(null);t.__proto__=!1,rl.extend(t,e.allowedProtoProperties);var n=Object.create(null);return n.constructor=!1,n.__defineGetter__=!1,n.__defineSetter__=!1,n.__lookupGetter__=!1,n.__lookupSetter__=!1,rl.extend(n,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:n,defaultValue:e.allowProtoMethodsByDefault}}}function S2(e,t,n){return al(typeof e=="function"?t.methods:t.properties,n)}function al(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(w2(t),!1)}function w2(e){vo[e]!==!0&&(vo[e]=!0,x2.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
515
+ `.trim()}function Ys({style:e,props:t}){const n=(t==null?void 0:t.renderMode)??dt.renderMode,o=(t==null?void 0:t.position)??dt.position,r=(t==null?void 0:t.features)??void 0,i=(t==null?void 0:t.triggerBg)??dt.triggerBg,a=(t==null?void 0:t.triggerColor)??dt.triggerColor,l=(t==null?void 0:t.triggerLabel)??dt.triggerLabel,s=(t==null?void 0:t.showLabelText)!==!1,c=(t==null?void 0:t.triggerFontSize)??dt.triggerFontSize,u=(t==null?void 0:t.triggerBorderRadius)??dt.triggerBorderRadius,h=(t==null?void 0:t.triggerPadding)??dt.triggerPadding,d=(t==null?void 0:t.triggerMargin)??dt.triggerMargin,f=(t==null?void 0:t.icon)??dt.icon,p={padding:wa(e==null?void 0:e.padding),margin:$a(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b={position:o,features:r,renderMode:n,triggerText:t==null?void 0:t.triggerText,showLabelText:s,icon:f,triggerLabel:l},x=Zs(b),w=`.ahd-a11y-trigger{background:${i};color:${a};font-size:${c}px;border-radius:${u}px;padding:${h.top}px ${h.right}px ${h.bottom}px ${h.left}px};margin:${d.top}px ${d.right}px ${d.bottom}px ${d.left}px}`,S=Vs(b),k=qs();return g.jsxs("div",{className:"accessibility-tools-block",style:p,"data-a11y-instance":"1",children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:x+w}}),g.jsx("div",{dangerouslySetInnerHTML:{__html:S}}),g.jsx("script",{dangerouslySetInnerHTML:{__html:k}}),g.jsx("span",{"aria-hidden":"true",style:{display:"none"},children:l})]})}function Vw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Or={exports:{}},Lr={exports:{}},Je={},be={};be.__esModule=!0;be.extend=Ks;be.indexOf=Xw;be.escapeExpression=Qw;be.isEmpty=e2;be.createFrame=t2;be.blockParams=n2;be.appendContextPath=o2;var qw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},Yw=/[&<>"'`=]/g,Kw=/[&<>"'`=]/;function Jw(e){return qw[e]}function Ks(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var ya=Object.prototype.toString;be.toString=ya;var zr=function(t){return typeof t=="function"};zr(/x/)&&(be.isFunction=zr=function(e){return typeof e=="function"&&ya.call(e)==="[object Function]"});be.isFunction=zr;var Js=Array.isArray||function(e){return e&&typeof e=="object"?ya.call(e)==="[object Array]":!1};be.isArray=Js;function Xw(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function Qw(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return Kw.test(e)?e.replace(Yw,Jw):e}function e2(e){return!e&&e!==0?!0:!!(Js(e)&&e.length===0)}function t2(e){var t=Ks({},e);return t._parent=e,t}function n2(e,t){return e.path=t,e}function o2(e,t){return(e?e+".":"")+t}var jr={exports:{}};(function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function o(r,i){var a=i&&i.loc,l=void 0,s=void 0,c=void 0,u=void 0;a&&(l=a.start.line,s=a.end.line,c=a.start.column,u=a.end.column,r+=" - "+l+":"+c);for(var h=Error.prototype.constructor.call(this,r),d=0;d<n.length;d++)this[n[d]]=h[n[d]];Error.captureStackTrace&&Error.captureStackTrace(this,o);try{a&&(this.lineNumber=l,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:c,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:u,enumerable:!0})):(this.column=c,this.endColumn=u))}catch{}}o.prototype=new Error,t.default=o,e.exports=t.default})(jr,jr.exports);var Xe=jr.exports,On={},Br={exports:{}};(function(e,t){t.__esModule=!0;var n=be;t.default=function(o){o.registerHelper("blockHelperMissing",function(r,i){var a=i.inverse,l=i.fn;if(r===!0)return l(this);if(r===!1||r==null)return a(this);if(n.isArray(r))return r.length>0?(i.ids&&(i.ids=[i.name]),o.helpers.each(r,i)):a(this);if(i.data&&i.ids){var s=n.createFrame(i.data);s.contextPath=n.appendContextPath(i.data.contextPath,i.name),i={data:s}}return l(r,i)})},e.exports=t.default})(Br,Br.exports);var r2=Br.exports,Dr={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var o=be,r=Xe,i=n(r);t.default=function(a){a.registerHelper("each",function(l,s){if(!s)throw new i.default("Must pass iterator to #each");var c=s.fn,u=s.inverse,h=0,d="",f=void 0,p=void 0;s.data&&s.ids&&(p=o.appendContextPath(s.data.contextPath,s.ids[0])+"."),o.isFunction(l)&&(l=l.call(this)),s.data&&(f=o.createFrame(s.data));function b(v,_,y){f&&(f.key=v,f.index=_,f.first=_===0,f.last=!!y,p&&(f.contextPath=p+v)),d=d+c(l[v],{data:f,blockParams:o.blockParams([l[v],v],[p+v,null])})}if(l&&typeof l=="object")if(o.isArray(l))for(var x=l.length;h<x;h++)h in l&&b(h,h,h===l.length-1);else if(typeof Symbol=="function"&&l[Symbol.iterator]){for(var w=[],S=l[Symbol.iterator](),k=S.next();!k.done;k=S.next())w.push(k.value);l=w;for(var x=l.length;h<x;h++)b(h,h,h===l.length-1)}else(function(){var v=void 0;Object.keys(l).forEach(function(_){v!==void 0&&b(v,h-1),v=_,h++}),v!==void 0&&b(v,h-1,!0)})();return h===0&&(d=u(this)),d})},e.exports=t.default})(Dr,Dr.exports);var a2=Dr.exports,Fr={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var o=Xe,r=n(o);t.default=function(i){i.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new r.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default})(Fr,Fr.exports);var i2=Fr.exports,Hr={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var o=be,r=Xe,i=n(r);t.default=function(a){a.registerHelper("if",function(l,s){if(arguments.length!=2)throw new i.default("#if requires exactly one argument");return o.isFunction(l)&&(l=l.call(this)),!s.hash.includeZero&&!l||o.isEmpty(l)?s.inverse(this):s.fn(this)}),a.registerHelper("unless",function(l,s){if(arguments.length!=2)throw new i.default("#unless requires exactly one argument");return a.helpers.if.call(this,l,{fn:s.inverse,inverse:s.fn,hash:s.hash})})},e.exports=t.default})(Hr,Hr.exports);var l2=Hr.exports,Gr={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("log",function(){for(var o=[void 0],r=arguments[arguments.length-1],i=0;i<arguments.length-1;i++)o.push(arguments[i]);var a=1;r.hash.level!=null?a=r.hash.level:r.data&&r.data.level!=null&&(a=r.data.level),o[0]=a,n.log.apply(n,o)})},e.exports=t.default})(Gr,Gr.exports);var s2=Gr.exports,Ur={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("lookup",function(o,r,i){return o&&i.lookupProperty(o,r)})},e.exports=t.default})(Ur,Ur.exports);var c2=Ur.exports,Wr={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var o=be,r=Xe,i=n(r);t.default=function(a){a.registerHelper("with",function(l,s){if(arguments.length!=2)throw new i.default("#with requires exactly one argument");o.isFunction(l)&&(l=l.call(this));var c=s.fn;if(o.isEmpty(l))return s.inverse(this);var u=s.data;return s.data&&s.ids&&(u=o.createFrame(s.data),u.contextPath=o.appendContextPath(s.data.contextPath,s.ids[0])),c(l,{data:u,blockParams:o.blockParams([l],[u&&u.contextPath])})})},e.exports=t.default})(Wr,Wr.exports);var u2=Wr.exports;On.__esModule=!0;On.registerDefaultHelpers=C2;On.moveHelperToHooks=A2;function Ft(e){return e&&e.__esModule?e:{default:e}}var d2=r2,h2=Ft(d2),f2=a2,m2=Ft(f2),p2=i2,g2=Ft(p2),b2=l2,x2=Ft(b2),v2=s2,S2=Ft(v2),w2=c2,$2=Ft(w2),k2=u2,_2=Ft(k2);function C2(e){h2.default(e),m2.default(e),g2.default(e),x2.default(e),S2.default(e),$2.default(e),_2.default(e)}function A2(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||(e.helpers[t]=void 0))}var Ia={},Zr={exports:{}};(function(e,t){t.__esModule=!0;var n=be;t.default=function(o){o.registerDecorator("inline",function(r,i,a,l){var s=r;return i.partials||(i.partials={},s=function(c,u){var h=a.partials;a.partials=n.extend({},h,i.partials);var d=r(c,u);return a.partials=h,d}),i.partials[l.args[0]]=l.fn,s})},e.exports=t.default})(Zr,Zr.exports);var y2=Zr.exports;Ia.__esModule=!0;Ia.registerDefaultDecorators=T2;function I2(e){return e&&e.__esModule?e:{default:e}}var R2=y2,N2=I2(R2);function T2(e){N2.default(e)}var Vr={exports:{}};(function(e,t){t.__esModule=!0;var n=be,o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(i){if(typeof i=="string"){var a=n.indexOf(o.methodMap,i.toLowerCase());a>=0?i=a:i=parseInt(i,10)}return i},log:function(i){if(i=o.lookupLevel(i),typeof console<"u"&&o.lookupLevel(o.level)<=i){var a=o.methodMap[i];console[a]||(a="log");for(var l=arguments.length,s=Array(l>1?l-1:0),c=1;c<l;c++)s[c-1]=arguments[c];console[a].apply(console,s)}}};t.default=o,e.exports=t.default})(Vr,Vr.exports);var Xs=Vr.exports,dn={};dn.__esModule=!0;dn.createProtoAccessControl=O2;dn.resultIsAllowed=L2;dn.resetLoggedProperties=j2;function E2(e){return e&&e.__esModule?e:{default:e}}var il=be,M2=Xs,P2=E2(M2),wo=Object.create(null);function O2(e){var t=Object.create(null);t.__proto__=!1,il.extend(t,e.allowedProtoProperties);var n=Object.create(null);return n.constructor=!1,n.__defineGetter__=!1,n.__defineSetter__=!1,n.__lookupGetter__=!1,n.__lookupSetter__=!1,il.extend(n,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:n,defaultValue:e.allowProtoMethodsByDefault}}}function L2(e,t,n){return ll(typeof e=="function"?t.methods:t.properties,n)}function ll(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(z2(t),!1)}function z2(e){wo[e]!==!0&&(wo[e]=!0,P2.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
516
516
  You can add a runtime option to disable the check or this warning:
517
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function $2(){Object.keys(vo).forEach(function(e){delete vo[e]})}Je.__esModule=!0;Je.HandlebarsEnvironment=Zr;function Xs(e){return e&&e.__esModule?e:{default:e}}var Pt=xe,k2=Xe,ir=Xs(k2),_2=Pn,C2=ya,A2=Js,So=Xs(A2),y2=cn,I2="4.7.9";Je.VERSION=I2;var R2=8;Je.COMPILER_REVISION=R2;var N2=7;Je.LAST_COMPATIBLE_COMPILER_REVISION=N2;var T2={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Je.REVISION_CHANGES=T2;var lr="[object Object]";function Zr(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},_2.registerDefaultHelpers(this),C2.registerDefaultDecorators(this)}Zr.prototype={constructor:Zr,logger:So.default,log:So.default.log,registerHelper:function(t,n){if(Pt.toString.call(t)===lr){if(n)throw new ir.default("Arg not supported with multiple helpers");Pt.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if(Pt.toString.call(t)===lr)Pt.extend(this.partials,t);else{if(typeof n>"u")throw new ir.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=n}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,n){if(Pt.toString.call(t)===lr){if(n)throw new ir.default("Arg not supported with multiple decorators");Pt.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){y2.resetLoggedProperties()}};var E2=So.default.log;Je.log=E2;Je.createFrame=Pt.createFrame;Je.logger=So.default;var Vr={exports:{}};(function(e,t){t.__esModule=!0;function n(o){this.string=o}n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default})(Vr,Vr.exports);var M2=Vr.exports,Tt={},Ia={};Ia.__esModule=!0;Ia.wrapHelper=P2;function P2(e,t){if(typeof e!="function")return e;var n=function(){var r=arguments[arguments.length-1];return arguments[arguments.length-1]=t(r),e.apply(this,arguments)};return n}Tt.__esModule=!0;Tt.checkRevision=D2;Tt.template=F2;Tt.wrapProgram=ro;Tt.resolvePartial=H2;Tt.invokePartial=G2;Tt.noop=Qs;function O2(e){return e&&e.__esModule?e:{default:e}}function L2(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var z2=xe,Jt=L2(z2),j2=Xe,vt=O2(j2),St=Je,il=Pn,B2=Ia,ll=cn;function D2(e){var t=e&&e[0]||1,n=St.COMPILER_REVISION;if(!(t>=St.LAST_COMPATIBLE_COMPILER_REVISION&&t<=St.COMPILER_REVISION))if(t<St.LAST_COMPATIBLE_COMPILER_REVISION){var o=St.REVISION_CHANGES[n],r=St.REVISION_CHANGES[t];throw new vt.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+o+") or downgrade your runtime to an older version ("+r+").")}else throw new vt.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}function F2(e,t){if(!t)throw new vt.default("No environment passed to template");if(!e||!e.main)throw new vt.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&e.compiler[0]===7;function o(a,l,s){s.hash&&(l=Jt.extend({},l,s.hash),s.ids&&(s.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,l,s),s.hooks=this.hooks,s.protoAccessControl=this.protoAccessControl;var c=t.VM.invokePartial.call(this,a,l,s);if(c==null&&t.compile&&(s.partials[s.name]=t.compile(a,e.compilerOptions,t),c=s.partials[s.name](l,s)),c!=null){if(s.indent){for(var u=c.split(`
517
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function j2(){Object.keys(wo).forEach(function(e){delete wo[e]})}Je.__esModule=!0;Je.HandlebarsEnvironment=qr;function Qs(e){return e&&e.__esModule?e:{default:e}}var Pt=be,B2=Xe,sr=Qs(B2),D2=On,F2=Ia,H2=Xs,$o=Qs(H2),G2=dn,U2="4.7.9";Je.VERSION=U2;var W2=8;Je.COMPILER_REVISION=W2;var Z2=7;Je.LAST_COMPATIBLE_COMPILER_REVISION=Z2;var V2={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Je.REVISION_CHANGES=V2;var cr="[object Object]";function qr(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},D2.registerDefaultHelpers(this),F2.registerDefaultDecorators(this)}qr.prototype={constructor:qr,logger:$o.default,log:$o.default.log,registerHelper:function(t,n){if(Pt.toString.call(t)===cr){if(n)throw new sr.default("Arg not supported with multiple helpers");Pt.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if(Pt.toString.call(t)===cr)Pt.extend(this.partials,t);else{if(typeof n>"u")throw new sr.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=n}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,n){if(Pt.toString.call(t)===cr){if(n)throw new sr.default("Arg not supported with multiple decorators");Pt.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){G2.resetLoggedProperties()}};var q2=$o.default.log;Je.log=q2;Je.createFrame=Pt.createFrame;Je.logger=$o.default;var Yr={exports:{}};(function(e,t){t.__esModule=!0;function n(o){this.string=o}n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default})(Yr,Yr.exports);var Y2=Yr.exports,Tt={},Ra={};Ra.__esModule=!0;Ra.wrapHelper=K2;function K2(e,t){if(typeof e!="function")return e;var n=function(){var r=arguments[arguments.length-1];return arguments[arguments.length-1]=t(r),e.apply(this,arguments)};return n}Tt.__esModule=!0;Tt.checkRevision=n$;Tt.template=o$;Tt.wrapProgram=io;Tt.resolvePartial=r$;Tt.invokePartial=a$;Tt.noop=ec;function J2(e){return e&&e.__esModule?e:{default:e}}function X2(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var Q2=be,Xt=X2(Q2),e$=Xe,vt=J2(e$),St=Je,sl=On,t$=Ra,cl=dn;function n$(e){var t=e&&e[0]||1,n=St.COMPILER_REVISION;if(!(t>=St.LAST_COMPATIBLE_COMPILER_REVISION&&t<=St.COMPILER_REVISION))if(t<St.LAST_COMPATIBLE_COMPILER_REVISION){var o=St.REVISION_CHANGES[n],r=St.REVISION_CHANGES[t];throw new vt.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+o+") or downgrade your runtime to an older version ("+r+").")}else throw new vt.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}function o$(e,t){if(!t)throw new vt.default("No environment passed to template");if(!e||!e.main)throw new vt.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&e.compiler[0]===7;function o(a,l,s){s.hash&&(l=Xt.extend({},l,s.hash),s.ids&&(s.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,l,s),s.hooks=this.hooks,s.protoAccessControl=this.protoAccessControl;var c=t.VM.invokePartial.call(this,a,l,s);if(c==null&&t.compile&&(s.partials[s.name]=t.compile(a,e.compilerOptions,t),c=s.partials[s.name](l,s)),c!=null){if(s.indent){for(var u=c.split(`
518
518
  `),h=0,d=u.length;h<d&&!(!u[h]&&h+1===d);h++)u[h]=s.indent+u[h];c=u.join(`
519
- `)}return c}else throw new vt.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var r={strict:function(l,s,c){if(!l||!(s in l))throw new vt.default('"'+s+'" not defined in '+l,{loc:c});return r.lookupProperty(l,s)},lookupProperty:function(l,s){var c=l[s];if(c==null||Object.prototype.hasOwnProperty.call(l,s)||ll.resultIsAllowed(c,r.protoAccessControl,s))return c},lookup:function(l,s){for(var c=l.length,u=0;u<c;u++){var h=l[u]&&r.lookupProperty(l[u],s);if(h!=null)return h}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:Jt.escapeExpression,invokePartial:o,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,c,u,h){var d=this.programs[l],f=this.fn(l);return s||h||u||c?d=ro(this,l,f,s,c,u,h):d||(d=this.programs[l]=ro(this,l,f)),d},data:function(l,s){for(;l&&s--;)l=l._parent;return l},mergeIfNeeded:function(l,s){var c=l||s;return l&&s&&l!==s&&(c=Jt.extend({},s,l)),c},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(a){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],s=l.data;i._setup(l),!l.partial&&e.useData&&(s=U2(a,s));var c=void 0,u=e.useBlockParams?[]:void 0;e.useDepths&&(l.depths?c=a!=l.depths[0]?[a].concat(l.depths):l.depths:c=[a]);function h(d){return""+e.main(r,d,r.helpers,r.partials,s,u,c)}return h=ec(e.main,h,r,l.depths||[],s,u),h(a,l)}return i.isTop=!0,i._setup=function(a){if(a.partial)r.protoAccessControl=a.protoAccessControl,r.helpers=a.helpers,r.partials=a.partials,r.decorators=a.decorators,r.hooks=a.hooks;else{var l={};sl(l,t.helpers,r),sl(l,a.helpers,r),r.helpers=l,e.usePartial&&(r.partials=r.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=Jt.extend({},t.decorators,a.decorators)),r.hooks={},r.protoAccessControl=ll.createProtoAccessControl(a);var s=a.allowCallsToHelperMissing||n;il.moveHelperToHooks(r,"helperMissing",s),il.moveHelperToHooks(r,"blockHelperMissing",s)}},i._child=function(a,l,s,c){if(e.useBlockParams&&!s)throw new vt.default("must pass block params");if(e.useDepths&&!c)throw new vt.default("must pass parent depths");return ro(r,a,e[a],l,0,s,c)},i}function ro(e,t,n,o,r,i,a){function l(s){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=a;return a&&s!=a[0]&&!(s===e.nullContext&&a[0]===null)&&(u=[s].concat(a)),n(e,s,e.helpers,e.partials,c.data||o,i&&[c.blockParams].concat(i),u)}return l=ec(n,l,e,a,o,i),l.program=t,l.depth=a?a.length:0,l.blockParams=r||0,l}function H2(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=ao(n.partials,e)):n.name==="@partial-block"?e=ao(n.data,"partial-block"):e=ao(n.partials,n.name),e}function G2(e,t,n){var o=ao(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var r=void 0;if(n.fn&&n.fn!==Qs&&function(){n.data=St.createFrame(n.data);var i=n.fn;r=n.data["partial-block"]=function(l){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return s.data=St.createFrame(s.data),s.data["partial-block"]=o,i(l,s)},i.partials&&(n.partials=Jt.extend({},n.partials,i.partials))}(),e===void 0&&r&&(e=r),e===void 0)throw new vt.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function Qs(){return""}function ao(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function U2(e,t){return(!t||!("root"in t))&&(t=t?St.createFrame(t):{},t.root=e),t}function ec(e,t,n,o,r,i){if(e.decorator){var a={};t=e.decorator(t,a,n,o&&o[0],r,i,o),Jt.extend(t,a)}return t}function sl(e,t,n){t&&Object.keys(t).forEach(function(o){var r=t[o];e[o]=W2(r,n)})}function W2(e,t){var n=t.lookupProperty;return B2.wrapHelper(e,function(o){return o.lookupProperty=n,o})}var qr={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var o=globalThis.Handlebars;n.noConflict=function(){return globalThis.Handlebars===n&&(globalThis.Handlebars=o),n}},e.exports=t.default})(qr,qr.exports);var tc=qr.exports;(function(e,t){t.__esModule=!0;function n(S){return S&&S.__esModule?S:{default:S}}function o(S){if(S&&S.__esModule)return S;var k={};if(S!=null)for(var w in S)Object.prototype.hasOwnProperty.call(S,w)&&(k[w]=S[w]);return k.default=S,k}var r=Je,i=o(r),a=M2,l=n(a),s=Xe,c=n(s),u=xe,h=o(u),d=Tt,f=o(d),p=tc,b=n(p);function x(){var S=new i.HandlebarsEnvironment;return h.extend(S,i),S.SafeString=l.default,S.Exception=c.default,S.Utils=h,S.escapeExpression=h.escapeExpression,S.VM=f,S.template=function(k){return f.template(k,S)},S}var v=x();v.create=x,b.default(v),v.default=v,t.default=v,e.exports=t.default})(Pr,Pr.exports);var Z2=Pr.exports,Yr={exports:{}};(function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(r){return r.type==="SubExpression"||(r.type==="MustacheStatement"||r.type==="BlockStatement")&&!!(r.params&&r.params.length||r.hash)},scopedId:function(r){return/^\.|this\b/.test(r.original)},simpleId:function(r){return r.parts.length===1&&!n.helpers.scopedId(r)&&!r.depth}}};t.default=n,e.exports=t.default})(Yr,Yr.exports);var nc=Yr.exports,On={},Kr={exports:{}};(function(e,t){t.__esModule=!0;var n=function(){var o={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(l,s,c,u,h,d,f){var p=d.length-1;switch(h){case 1:return d[p-1];case 2:this.$=u.prepareProgram(d[p]);break;case 3:this.$=d[p];break;case 4:this.$=d[p];break;case 5:this.$=d[p];break;case 6:this.$=d[p];break;case 7:this.$=d[p];break;case 8:this.$=d[p];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(d[p]),strip:u.stripFlags(d[p],d[p]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[p],value:d[p],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(d[p-2],d[p-1],d[p],this._$);break;case 12:this.$={path:d[p-3],params:d[p-2],hash:d[p-1]};break;case 13:this.$=u.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!1,this._$);break;case 14:this.$=u.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!0,this._$);break;case 15:this.$={open:d[p-5],path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:u.stripFlags(d[p-5],d[p])};break;case 16:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:u.stripFlags(d[p-5],d[p])};break;case 17:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:u.stripFlags(d[p-5],d[p])};break;case 18:this.$={strip:u.stripFlags(d[p-1],d[p-1]),program:d[p]};break;case 19:var b=u.prepareBlock(d[p-2],d[p-1],d[p],d[p],!1,this._$),x=u.prepareProgram([b],d[p-1].loc);x.chained=!0,this.$={strip:d[p-2].strip,program:x,chain:!0};break;case 20:this.$=d[p];break;case 21:this.$={path:d[p-1],strip:u.stripFlags(d[p-2],d[p])};break;case 22:this.$=u.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],u.stripFlags(d[p-4],d[p]),this._$);break;case 23:this.$=u.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],u.stripFlags(d[p-4],d[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[p-3],params:d[p-2],hash:d[p-1],indent:"",strip:u.stripFlags(d[p-4],d[p]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(d[p-2],d[p-1],d[p],this._$);break;case 26:this.$={path:d[p-3],params:d[p-2],hash:d[p-1],strip:u.stripFlags(d[p-4],d[p])};break;case 27:this.$=d[p];break;case 28:this.$=d[p];break;case 29:this.$={type:"SubExpression",path:d[p-3],params:d[p-2],hash:d[p-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[p],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(d[p-2]),value:d[p],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(d[p-1]);break;case 33:this.$=d[p];break;case 34:this.$=d[p];break;case 35:this.$={type:"StringLiteral",value:d[p],original:d[p],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[p]),original:Number(d[p]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[p]==="true",original:d[p]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=d[p];break;case 41:this.$=d[p];break;case 42:this.$=u.preparePath(!0,d[p],this._$);break;case 43:this.$=u.preparePath(!1,d[p],this._$);break;case 44:d[p-2].push({part:u.id(d[p]),original:d[p],separator:d[p-1]}),this.$=d[p-2];break;case 45:this.$=[{part:u.id(d[p]),original:d[p]}];break;case 46:this.$=[];break;case 47:d[p-1].push(d[p]);break;case 48:this.$=[];break;case 49:d[p-1].push(d[p]);break;case 50:this.$=[];break;case 51:d[p-1].push(d[p]);break;case 58:this.$=[];break;case 59:d[p-1].push(d[p]);break;case 64:this.$=[];break;case 65:d[p-1].push(d[p]);break;case 70:this.$=[];break;case 71:d[p-1].push(d[p]);break;case 78:this.$=[];break;case 79:d[p-1].push(d[p]);break;case 82:this.$=[];break;case 83:d[p-1].push(d[p]);break;case 86:this.$=[];break;case 87:d[p-1].push(d[p]);break;case 90:this.$=[];break;case 91:d[p-1].push(d[p]);break;case 94:this.$=[];break;case 95:d[p-1].push(d[p]);break;case 98:this.$=[d[p]];break;case 99:d[p-1].push(d[p]);break;case 100:this.$=[d[p]];break;case 101:d[p-1].push(d[p]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(l,s){throw new Error(l)},parse:function(l){var s=this,c=[0],u=[null],h=[],d=this.table,f="",p=0,b=0;this.lexer.setInput(l),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var x=this.lexer.yylloc;h.push(x);var v=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function S(){var z;return z=s.lexer.lex()||1,typeof z!="number"&&(z=s.symbols_[z]||z),z}for(var k,w,C,y,_={},I,R,T,P;;){if(w=c[c.length-1],this.defaultActions[w]?C=this.defaultActions[w]:((k===null||typeof k>"u")&&(k=S()),C=d[w]&&d[w][k]),typeof C>"u"||!C.length||!C[0]){var M="";{P=[];for(I in d[w])this.terminals_[I]&&I>2&&P.push("'"+this.terminals_[I]+"'");this.lexer.showPosition?M="Parse error on line "+(p+1)+`:
519
+ `)}return c}else throw new vt.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var r={strict:function(l,s,c){if(!l||!(s in l))throw new vt.default('"'+s+'" not defined in '+l,{loc:c});return r.lookupProperty(l,s)},lookupProperty:function(l,s){var c=l[s];if(c==null||Object.prototype.hasOwnProperty.call(l,s)||cl.resultIsAllowed(c,r.protoAccessControl,s))return c},lookup:function(l,s){for(var c=l.length,u=0;u<c;u++){var h=l[u]&&r.lookupProperty(l[u],s);if(h!=null)return h}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:Xt.escapeExpression,invokePartial:o,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,c,u,h){var d=this.programs[l],f=this.fn(l);return s||h||u||c?d=io(this,l,f,s,c,u,h):d||(d=this.programs[l]=io(this,l,f)),d},data:function(l,s){for(;l&&s--;)l=l._parent;return l},mergeIfNeeded:function(l,s){var c=l||s;return l&&s&&l!==s&&(c=Xt.extend({},s,l)),c},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(a){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],s=l.data;i._setup(l),!l.partial&&e.useData&&(s=i$(a,s));var c=void 0,u=e.useBlockParams?[]:void 0;e.useDepths&&(l.depths?c=a!=l.depths[0]?[a].concat(l.depths):l.depths:c=[a]);function h(d){return""+e.main(r,d,r.helpers,r.partials,s,u,c)}return h=tc(e.main,h,r,l.depths||[],s,u),h(a,l)}return i.isTop=!0,i._setup=function(a){if(a.partial)r.protoAccessControl=a.protoAccessControl,r.helpers=a.helpers,r.partials=a.partials,r.decorators=a.decorators,r.hooks=a.hooks;else{var l={};ul(l,t.helpers,r),ul(l,a.helpers,r),r.helpers=l,e.usePartial&&(r.partials=r.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=Xt.extend({},t.decorators,a.decorators)),r.hooks={},r.protoAccessControl=cl.createProtoAccessControl(a);var s=a.allowCallsToHelperMissing||n;sl.moveHelperToHooks(r,"helperMissing",s),sl.moveHelperToHooks(r,"blockHelperMissing",s)}},i._child=function(a,l,s,c){if(e.useBlockParams&&!s)throw new vt.default("must pass block params");if(e.useDepths&&!c)throw new vt.default("must pass parent depths");return io(r,a,e[a],l,0,s,c)},i}function io(e,t,n,o,r,i,a){function l(s){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=a;return a&&s!=a[0]&&!(s===e.nullContext&&a[0]===null)&&(u=[s].concat(a)),n(e,s,e.helpers,e.partials,c.data||o,i&&[c.blockParams].concat(i),u)}return l=tc(n,l,e,a,o,i),l.program=t,l.depth=a?a.length:0,l.blockParams=r||0,l}function r$(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=lo(n.partials,e)):n.name==="@partial-block"?e=lo(n.data,"partial-block"):e=lo(n.partials,n.name),e}function a$(e,t,n){var o=lo(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var r=void 0;if(n.fn&&n.fn!==ec&&function(){n.data=St.createFrame(n.data);var i=n.fn;r=n.data["partial-block"]=function(l){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return s.data=St.createFrame(s.data),s.data["partial-block"]=o,i(l,s)},i.partials&&(n.partials=Xt.extend({},n.partials,i.partials))}(),e===void 0&&r&&(e=r),e===void 0)throw new vt.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function ec(){return""}function lo(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function i$(e,t){return(!t||!("root"in t))&&(t=t?St.createFrame(t):{},t.root=e),t}function tc(e,t,n,o,r,i){if(e.decorator){var a={};t=e.decorator(t,a,n,o&&o[0],r,i,o),Xt.extend(t,a)}return t}function ul(e,t,n){t&&Object.keys(t).forEach(function(o){var r=t[o];e[o]=l$(r,n)})}function l$(e,t){var n=t.lookupProperty;return t$.wrapHelper(e,function(o){return o.lookupProperty=n,o})}var Kr={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var o=globalThis.Handlebars;n.noConflict=function(){return globalThis.Handlebars===n&&(globalThis.Handlebars=o),n}},e.exports=t.default})(Kr,Kr.exports);var nc=Kr.exports;(function(e,t){t.__esModule=!0;function n(S){return S&&S.__esModule?S:{default:S}}function o(S){if(S&&S.__esModule)return S;var k={};if(S!=null)for(var v in S)Object.prototype.hasOwnProperty.call(S,v)&&(k[v]=S[v]);return k.default=S,k}var r=Je,i=o(r),a=Y2,l=n(a),s=Xe,c=n(s),u=be,h=o(u),d=Tt,f=o(d),p=nc,b=n(p);function x(){var S=new i.HandlebarsEnvironment;return h.extend(S,i),S.SafeString=l.default,S.Exception=c.default,S.Utils=h,S.escapeExpression=h.escapeExpression,S.VM=f,S.template=function(k){return f.template(k,S)},S}var w=x();w.create=x,b.default(w),w.default=w,t.default=w,e.exports=t.default})(Lr,Lr.exports);var s$=Lr.exports,Jr={exports:{}};(function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(r){return r.type==="SubExpression"||(r.type==="MustacheStatement"||r.type==="BlockStatement")&&!!(r.params&&r.params.length||r.hash)},scopedId:function(r){return/^\.|this\b/.test(r.original)},simpleId:function(r){return r.parts.length===1&&!n.helpers.scopedId(r)&&!r.depth}}};t.default=n,e.exports=t.default})(Jr,Jr.exports);var oc=Jr.exports,Ln={},Xr={exports:{}};(function(e,t){t.__esModule=!0;var n=function(){var o={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(l,s,c,u,h,d,f){var p=d.length-1;switch(h){case 1:return d[p-1];case 2:this.$=u.prepareProgram(d[p]);break;case 3:this.$=d[p];break;case 4:this.$=d[p];break;case 5:this.$=d[p];break;case 6:this.$=d[p];break;case 7:this.$=d[p];break;case 8:this.$=d[p];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(d[p]),strip:u.stripFlags(d[p],d[p]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[p],value:d[p],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(d[p-2],d[p-1],d[p],this._$);break;case 12:this.$={path:d[p-3],params:d[p-2],hash:d[p-1]};break;case 13:this.$=u.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!1,this._$);break;case 14:this.$=u.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!0,this._$);break;case 15:this.$={open:d[p-5],path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:u.stripFlags(d[p-5],d[p])};break;case 16:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:u.stripFlags(d[p-5],d[p])};break;case 17:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:u.stripFlags(d[p-5],d[p])};break;case 18:this.$={strip:u.stripFlags(d[p-1],d[p-1]),program:d[p]};break;case 19:var b=u.prepareBlock(d[p-2],d[p-1],d[p],d[p],!1,this._$),x=u.prepareProgram([b],d[p-1].loc);x.chained=!0,this.$={strip:d[p-2].strip,program:x,chain:!0};break;case 20:this.$=d[p];break;case 21:this.$={path:d[p-1],strip:u.stripFlags(d[p-2],d[p])};break;case 22:this.$=u.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],u.stripFlags(d[p-4],d[p]),this._$);break;case 23:this.$=u.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],u.stripFlags(d[p-4],d[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[p-3],params:d[p-2],hash:d[p-1],indent:"",strip:u.stripFlags(d[p-4],d[p]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(d[p-2],d[p-1],d[p],this._$);break;case 26:this.$={path:d[p-3],params:d[p-2],hash:d[p-1],strip:u.stripFlags(d[p-4],d[p])};break;case 27:this.$=d[p];break;case 28:this.$=d[p];break;case 29:this.$={type:"SubExpression",path:d[p-3],params:d[p-2],hash:d[p-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[p],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(d[p-2]),value:d[p],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(d[p-1]);break;case 33:this.$=d[p];break;case 34:this.$=d[p];break;case 35:this.$={type:"StringLiteral",value:d[p],original:d[p],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[p]),original:Number(d[p]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[p]==="true",original:d[p]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=d[p];break;case 41:this.$=d[p];break;case 42:this.$=u.preparePath(!0,d[p],this._$);break;case 43:this.$=u.preparePath(!1,d[p],this._$);break;case 44:d[p-2].push({part:u.id(d[p]),original:d[p],separator:d[p-1]}),this.$=d[p-2];break;case 45:this.$=[{part:u.id(d[p]),original:d[p]}];break;case 46:this.$=[];break;case 47:d[p-1].push(d[p]);break;case 48:this.$=[];break;case 49:d[p-1].push(d[p]);break;case 50:this.$=[];break;case 51:d[p-1].push(d[p]);break;case 58:this.$=[];break;case 59:d[p-1].push(d[p]);break;case 64:this.$=[];break;case 65:d[p-1].push(d[p]);break;case 70:this.$=[];break;case 71:d[p-1].push(d[p]);break;case 78:this.$=[];break;case 79:d[p-1].push(d[p]);break;case 82:this.$=[];break;case 83:d[p-1].push(d[p]);break;case 86:this.$=[];break;case 87:d[p-1].push(d[p]);break;case 90:this.$=[];break;case 91:d[p-1].push(d[p]);break;case 94:this.$=[];break;case 95:d[p-1].push(d[p]);break;case 98:this.$=[d[p]];break;case 99:d[p-1].push(d[p]);break;case 100:this.$=[d[p]];break;case 101:d[p-1].push(d[p]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(l,s){throw new Error(l)},parse:function(l){var s=this,c=[0],u=[null],h=[],d=this.table,f="",p=0,b=0;this.lexer.setInput(l),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var x=this.lexer.yylloc;h.push(x);var w=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function S(){var O;return O=s.lexer.lex()||1,typeof O!="number"&&(O=s.symbols_[O]||O),O}for(var k,v,_,y,C={},I,R,E,P;;){if(v=c[c.length-1],this.defaultActions[v]?_=this.defaultActions[v]:((k===null||typeof k>"u")&&(k=S()),_=d[v]&&d[v][k]),typeof _>"u"||!_.length||!_[0]){var M="";{P=[];for(I in d[v])this.terminals_[I]&&I>2&&P.push("'"+this.terminals_[I]+"'");this.lexer.showPosition?M="Parse error on line "+(p+1)+`:
520
520
  `+this.lexer.showPosition()+`
521
- Expecting `+P.join(", ")+", got '"+(this.terminals_[k]||k)+"'":M="Parse error on line "+(p+1)+": Unexpected "+(k==1?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(M,{text:this.lexer.match,token:this.terminals_[k]||k,line:this.lexer.yylineno,loc:x,expected:P})}}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+k);switch(C[0]){case 1:c.push(k),u.push(this.lexer.yytext),h.push(this.lexer.yylloc),c.push(C[1]),k=null,b=this.lexer.yyleng,f=this.lexer.yytext,p=this.lexer.yylineno,x=this.lexer.yylloc;break;case 2:if(R=this.productions_[C[1]][1],_.$=u[u.length-R],_._$={first_line:h[h.length-(R||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(R||1)].first_column,last_column:h[h.length-1].last_column},v&&(_._$.range=[h[h.length-(R||1)].range[0],h[h.length-1].range[1]]),y=this.performAction.call(_,f,b,p,this.yy,C[1],u,h),typeof y<"u")return y;R&&(c=c.slice(0,-1*R*2),u=u.slice(0,-1*R),h=h.slice(0,-1*R)),c.push(this.productions_[C[1]][0]),u.push(_.$),h.push(_._$),T=d[c[c.length-2]][c[c.length-1]],c.push(T);break;case 3:return!0}}return!0}},r=function(){var a={EOF:1,parseError:function(s,c){if(this.yy.parser)this.yy.parser.parseError(s,c);else throw new Error(s)},setInput:function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var c=s.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var c=s.length,u=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c-1),this.offset-=c;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===h.length?this.yylloc.first_column:0)+h[h.length-u.length].length-u[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-c]),this},more:function(){return this._more=!0,this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),c=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
521
+ Expecting `+P.join(", ")+", got '"+(this.terminals_[k]||k)+"'":M="Parse error on line "+(p+1)+": Unexpected "+(k==1?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(M,{text:this.lexer.match,token:this.terminals_[k]||k,line:this.lexer.yylineno,loc:x,expected:P})}}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+k);switch(_[0]){case 1:c.push(k),u.push(this.lexer.yytext),h.push(this.lexer.yylloc),c.push(_[1]),k=null,b=this.lexer.yyleng,f=this.lexer.yytext,p=this.lexer.yylineno,x=this.lexer.yylloc;break;case 2:if(R=this.productions_[_[1]][1],C.$=u[u.length-R],C._$={first_line:h[h.length-(R||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(R||1)].first_column,last_column:h[h.length-1].last_column},w&&(C._$.range=[h[h.length-(R||1)].range[0],h[h.length-1].range[1]]),y=this.performAction.call(C,f,b,p,this.yy,_[1],u,h),typeof y<"u")return y;R&&(c=c.slice(0,-1*R*2),u=u.slice(0,-1*R),h=h.slice(0,-1*R)),c.push(this.productions_[_[1]][0]),u.push(C.$),h.push(C._$),E=d[c[c.length-2]][c[c.length-1]],c.push(E);break;case 3:return!0}}return!0}},r=function(){var a={EOF:1,parseError:function(s,c){if(this.yy.parser)this.yy.parser.parseError(s,c);else throw new Error(s)},setInput:function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var c=s.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var c=s.length,u=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c-1),this.offset-=c;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===h.length?this.yylloc.first_column:0)+h[h.length-u.length].length-u[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-c]),this},more:function(){return this._more=!0,this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),c=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
522
522
  `+c+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,c,u,h,d;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),p=0;p<f.length&&(u=this._input.match(this.rules[f[p]]),!(u&&(!c||u[0].length>c[0].length)&&(c=u,h=p,!this.options.flex)));p++);return c?(d=c[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],s=this.performAction.call(this,this.yy,this,f[h],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
523
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return typeof s<"u"?s:this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(s){this.begin(s)}};return a.options={},a.performAction=function(s,c,u,h){function d(f,p){return c.yytext=c.yytext.substring(f,c.yyleng-p+f)}switch(u){case 0:if(c.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):c.yytext.slice(-1)==="\\"?(d(0,1),this.begin("emu")):this.begin("mu"),c.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(d(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(c.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return c.yytext=d(1,2).replace(/\\"/g,'"'),80;case 32:return c.yytext=d(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return c.yytext=c.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},a.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],a.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},a}();o.lexer=r;function i(){this.yy={}}return i.prototype=o,o.Parser=i,new i}();t.default=n,e.exports=t.default})(Kr,Kr.exports);var V2=Kr.exports,Jr={exports:{}},Xr={exports:{}};(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var o=Xe,r=n(o);function i(){this.parents=[]}i.prototype={constructor:i,mutating:!1,acceptKey:function(u,h){var d=this.accept(u[h]);if(this.mutating){if(d&&!i.prototype[d.type])throw new r.default('Unexpected node type "'+d.type+'" found when accepting '+h+" on "+u.type);u[h]=d}},acceptRequired:function(u,h){if(this.acceptKey(u,h),!u[h])throw new r.default(u.type+" requires "+h)},acceptArray:function(u){for(var h=0,d=u.length;h<d;h++)this.acceptKey(u,h),u[h]||(u.splice(h,1),h--,d--)},accept:function(u){if(u){if(!this[u.type])throw new r.default("Unknown type: "+u.type,u);this.current&&this.parents.unshift(this.current),this.current=u;var h=this[u.type](u);if(this.current=this.parents.shift(),!this.mutating||h)return h;if(h!==!1)return u}},Program:function(u){this.acceptArray(u.body)},MustacheStatement:a,Decorator:a,BlockStatement:l,DecoratorBlock:l,PartialStatement:s,PartialBlockStatement:function(u){s.call(this,u),this.acceptKey(u,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:a,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(u){this.acceptArray(u.pairs)},HashPair:function(u){this.acceptRequired(u,"value")}};function a(c){this.acceptRequired(c,"path"),this.acceptArray(c.params),this.acceptKey(c,"hash")}function l(c){a.call(this,c),this.acceptKey(c,"program"),this.acceptKey(c,"inverse")}function s(c){this.acceptRequired(c,"name"),this.acceptArray(c.params),this.acceptKey(c,"hash")}t.default=i,e.exports=t.default})(Xr,Xr.exports);var oc=Xr.exports;(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var o=oc,r=n(o);function i(){var u=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=u}i.prototype=new r.default,i.prototype.Program=function(u){var h=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var f=u.body,p=0,b=f.length;p<b;p++){var x=f[p],v=this.accept(x);if(v){var S=a(f,p,d),k=l(f,p,d),w=v.openStandalone&&S,C=v.closeStandalone&&k,y=v.inlineStandalone&&S&&k;v.close&&s(f,p,!0),v.open&&c(f,p,!0),h&&y&&(s(f,p),c(f,p)&&x.type==="PartialStatement"&&(x.indent=/([ \t]+$)/.exec(f[p-1].original)[1])),h&&w&&(s((x.program||x.inverse).body),c(f,p)),h&&C&&(s(f,p),c((x.inverse||x.program).body))}}return u},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(u){this.accept(u.program),this.accept(u.inverse);var h=u.program||u.inverse,d=u.program&&u.inverse,f=d,p=d;if(d&&d.chained)for(f=d.body[0].program;p.chained;)p=p.body[p.body.length-1].program;var b={open:u.openStrip.open,close:u.closeStrip.close,openStandalone:l(h.body),closeStandalone:a((f||h).body)};if(u.openStrip.close&&s(h.body,null,!0),d){var x=u.inverseStrip;x.open&&c(h.body,null,!0),x.close&&s(f.body,null,!0),u.closeStrip.open&&c(p.body,null,!0),!this.options.ignoreStandalone&&a(h.body)&&l(f.body)&&(c(h.body),s(f.body))}else u.closeStrip.open&&c(h.body,null,!0);return b},i.prototype.Decorator=i.prototype.MustacheStatement=function(u){return u.strip},i.prototype.PartialStatement=i.prototype.CommentStatement=function(u){var h=u.strip||{};return{inlineStandalone:!0,open:h.open,close:h.close}};function a(u,h,d){h===void 0&&(h=u.length);var f=u[h-1],p=u[h-2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(f.original)}function l(u,h,d){h===void 0&&(h=-1);var f=u[h+1],p=u[h+2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(f.original)}function s(u,h,d){var f=u[h==null?0:h+1];if(!(!f||f.type!=="ContentStatement"||!d&&f.rightStripped)){var p=f.value;f.value=f.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),f.rightStripped=f.value!==p}}function c(u,h,d){var f=u[h==null?u.length-1:h-1];if(!(!f||f.type!=="ContentStatement"||!d&&f.leftStripped)){var p=f.value;return f.value=f.value.replace(d?/\s+$/:/[ \t]+$/,""),f.leftStripped=f.value!==p,f.leftStripped}}t.default=i,e.exports=t.default})(Jr,Jr.exports);var q2=Jr.exports,Qe={};Qe.__esModule=!0;Qe.SourceLocation=J2;Qe.id=X2;Qe.stripFlags=Q2;Qe.stripComment=e$;Qe.preparePath=t$;Qe.prepareMustache=n$;Qe.prepareRawBlock=o$;Qe.prepareBlock=r$;Qe.prepareProgram=a$;Qe.preparePartialBlock=i$;function Y2(e){return e&&e.__esModule?e:{default:e}}var K2=Xe,Ra=Y2(K2);function Na(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new Ra.default(e.path.original+" doesn't match "+t,n)}}function J2(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}function X2(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function Q2(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function e$(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function t$(e,t,n){n=this.locInfo(n);for(var o=e?"@":"",r=[],i=0,a=0,l=t.length;a<l;a++){var s=t[a].part,c=t[a].original!==s;if(o+=(t[a].separator||"")+s,!c&&(s===".."||s==="."||s==="this")){if(r.length>0)throw new Ra.default("Invalid path: "+o,{loc:n});s===".."&&i++}else r.push(s)}return{type:"PathExpression",data:e,depth:i,parts:r,original:o,loc:n}}function n$(e,t,n,o,r,i){var a=o.charAt(3)||o.charAt(2),l=a!=="{"&&a!=="&",s=/\*/.test(o);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:r,loc:this.locInfo(i)}}function o$(e,t,n,o){Na(e,n),o=this.locInfo(o);var r={type:"Program",body:t,strip:{},loc:o};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:r,openStrip:{},inverseStrip:{},closeStrip:{},loc:o}}function r$(e,t,n,o,r,i){o&&o.path&&Na(e,o);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(a)throw new Ra.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=o.strip),s=n.strip,l=n.program}return r&&(r=l,l=t,t=r),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:s,closeStrip:o&&o.strip,loc:this.locInfo(i)}}function a$(e,t){if(!t&&e.length){var n=e[0].loc,o=e[e.length-1].loc;n&&o&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:o.end.line,column:o.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function i$(e,t,n,o){return Na(e,n),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(o)}}On.__esModule=!0;On.parseWithoutProcessing=rc;On.parse=p$;function l$(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function Ta(e){return e&&e.__esModule?e:{default:e}}var s$=V2,Qr=Ta(s$),c$=q2,u$=Ta(c$),d$=Qe,h$=l$(d$),f$=Xe,gn=Ta(f$),m$=xe;On.parser=Qr.default;var io={};m$.extend(io,h$);function rc(e,t){if(e.type==="Program")return g$(e),e;Qr.default.yy=io,io.locInfo=function(o){return new io.SourceLocation(t&&t.srcName,o)};var n=Qr.default.parse(e);return n}function p$(e,t){var n=rc(e,t),o=new u$.default(t);return o.accept(n)}function g$(e){ea(e)}function ea(e){if(e!=null){if(Array.isArray(e)){e.forEach(ea);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!b$(e.depth))throw new gn.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new gn.default("Invalid AST: PathExpression.parts must be an array");for(var t=0;t<e.parts.length;t++)if(typeof e.parts[t]!="string")throw new gn.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new gn.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new gn.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(n){n!=="loc"&&ea(e[n])})}}}function b$(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var Ln={};Ln.__esModule=!0;Ln.Compiler=ta;Ln.precompile=w$;Ln.compile=$$;function ac(e){return e&&e.__esModule?e:{default:e}}var x$=Xe,_n=ac(x$),Nn=xe,v$=nc,bn=ac(v$),S$=[].slice;function ta(){}ta.prototype={compiler:ta,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var o=0;o<n;o++){var r=this.opcodes[o],i=t.opcodes[o];if(r.opcode!==i.opcode||!ic(r.args,i.args))return!1}n=this.children.length;for(var o=0;o<n;o++)if(!this.children[o].equals(t.children[o]))return!1;return!0},guid:0,compile:function(t,n){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=n,this.stringParams=n.stringParams,this.trackIds=n.trackIds,n.blockParams=n.blockParams||[],n.knownHelpers=Nn.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},n.knownHelpers),this.accept(t)},compileProgram:function(t){var n=new this.compiler,o=n.compile(t,this.options),r=this.guid++;return this.usePartial=this.usePartial||o.usePartial,this.children[r]=o,this.useDepths=this.useDepths||o.useDepths,r},accept:function(t){if(!this[t.type])throw new _n.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var n=this[t.type](t);return this.sourceNode.shift(),n},Program:function(t){this.options.blockParams.unshift(t.blockParams);for(var n=t.body,o=n.length,r=0;r<o;r++)this.accept(n[r]);return this.options.blockParams.shift(),this.isSimple=o===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){cl(t);var n=t.program,o=t.inverse;n=n&&this.compileProgram(n),o=o&&this.compileProgram(o);var r=this.classifySexpr(t);r==="helper"?this.helperSexpr(t,n,o):r==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",n),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,n,o),this.opcode("pushProgram",n),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var n=t.program&&this.compileProgram(t.program),o=this.setupFullMustacheParams(t,n,void 0),r=t.path;this.useDecorators=!0,this.opcode("registerDecorator",o.length,r.original)},PartialStatement:function(t){this.usePartial=!0;var n=t.program;n&&(n=this.compileProgram(t.program));var o=t.params;if(o.length>1)throw new _n.default("Unsupported number of partial arguments: "+o.length,t);o.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):o.push({type:"PathExpression",parts:[],depth:0}));var r=t.name.original,i=t.name.type==="SubExpression";i&&this.accept(t.name),this.setupFullMustacheParams(t,n,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",i,r,a),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){cl(t);var n=this.classifySexpr(t);n==="simple"?this.simpleSexpr(t):n==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,n,o){var r=t.path,i=r.parts[0],a=n!=null||o!=null;this.opcode("getContext",r.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",o),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",i,a)},simpleSexpr:function(t){var n=t.path;n.strict=!0,this.accept(n),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,n,o){var r=this.setupFullMustacheParams(t,n,o),i=t.path,a=i.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",r.length,a);else{if(this.options.knownHelpersOnly)throw new _n.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",r.length,i.original,bn.default.helpers.simpleId(i))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],o=bn.default.helpers.scopedId(t),r=!t.depth&&!o&&this.blockParamIndex(n);r?this.opcode("lookupBlockParam",r,t.parts):n?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,o):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var n=t.pairs,o=0,r=n.length;for(this.opcode("pushHash");o<r;o++)this.pushParam(n[o].value);for(;o--;)this.opcode("assignToHash",n[o].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:S$.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var n=bn.default.helpers.simpleId(t.path),o=n&&!!this.blockParamIndex(t.path.parts[0]),r=!o&&bn.default.helpers.helperExpression(t),i=!o&&(r||n);if(i&&!r){var a=t.path.parts[0],l=this.options;l.knownHelpers[a]?r=!0:l.knownHelpersOnly&&(i=!1)}return r?"helper":i?"ambiguous":"simple"},pushParams:function(t){for(var n=0,o=t.length;n<o;n++)this.pushParam(t[n])},pushParam:function(t){var n=t.value!=null?t.value:t.original||"";if(this.stringParams)n.replace&&(n=n.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",n,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var o=void 0;if(t.parts&&!bn.default.helpers.scopedId(t)&&!t.depth&&(o=this.blockParamIndex(t.parts[0])),o){var r=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",o,r)}else n=t.original||n,n.replace&&(n=n.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,n)}this.accept(t)}},setupFullMustacheParams:function(t,n,o,r){var i=t.params;return this.pushParams(i),this.opcode("pushProgram",n),this.opcode("pushProgram",o),t.hash?this.accept(t.hash):this.opcode("emptyHash",r),i},blockParamIndex:function(t){for(var n=0,o=this.options.blockParams.length;n<o;n++){var r=this.options.blockParams[n],i=r&&Nn.indexOf(r,t);if(r&&i>=0)return[n,i]}}};function w$(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new _n.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=n.parse(e,t),r=new n.Compiler().compile(o,t);return new n.JavaScriptCompiler().compile(r,t)}function $$(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new _n.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Nn.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=void 0;function r(){var a=n.parse(e,t),l=new n.Compiler().compile(a,t),s=new n.JavaScriptCompiler().compile(l,t,void 0,!0);return n.template(s)}function i(a,l){return o||(o=r()),o.call(this,a,l)}return i._setup=function(a){return o||(o=r()),o._setup(a)},i._child=function(a,l,s,c){return o||(o=r()),o._child(a,l,s,c)},i}function ic(e,t){if(e===t)return!0;if(Nn.isArray(e)&&Nn.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!ic(e[n],t[n]))return!1;return!0}}function cl(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}var na={exports:{}},oa={exports:{}},xn={},sr={},Jn={},Xn={},ul;function k$(){if(ul)return Xn;ul=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Xn.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Xn.decode=function(t){var n=65,o=90,r=97,i=122,a=48,l=57,s=43,c=47,u=26,h=52;return n<=t&&t<=o?t-n:r<=t&&t<=i?t-r+u:a<=t&&t<=l?t-a+h:t==s?62:t==c?63:-1},Xn}var dl;function lc(){if(dl)return Jn;dl=1;var e=k$(),t=5,n=1<<t,o=n-1,r=n;function i(l){return l<0?(-l<<1)+1:(l<<1)+0}function a(l){var s=(l&1)===1,c=l>>1;return s?-c:c}return Jn.encode=function(s){var c="",u,h=i(s);do u=h&o,h>>>=t,h>0&&(u|=r),c+=e.encode(u);while(h>0);return c},Jn.decode=function(s,c,u){var h=s.length,d=0,f=0,p,b;do{if(c>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(b=e.decode(s.charCodeAt(c++)),b===-1)throw new Error("Invalid base64 digit: "+s.charAt(c-1));p=!!(b&r),b&=o,d=d+(b<<f),f+=t}while(p);u.value=a(d),u.rest=c},Jn}var cr={},hl;function zn(){return hl||(hl=1,function(e){function t(w,C,y){if(C in w)return w[C];if(arguments.length===3)return y;throw new Error('"'+C+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,o=/^data:.+\,.+$/;function r(w){var C=w.match(n);return C?{scheme:C[1],auth:C[2],host:C[3],port:C[4],path:C[5]}:null}e.urlParse=r;function i(w){var C="";return w.scheme&&(C+=w.scheme+":"),C+="//",w.auth&&(C+=w.auth+"@"),w.host&&(C+=w.host),w.port&&(C+=":"+w.port),w.path&&(C+=w.path),C}e.urlGenerate=i;function a(w){var C=w,y=r(w);if(y){if(!y.path)return w;C=y.path}for(var _=e.isAbsolute(C),I=C.split(/\/+/),R,T=0,P=I.length-1;P>=0;P--)R=I[P],R==="."?I.splice(P,1):R===".."?T++:T>0&&(R===""?(I.splice(P+1,T),T=0):(I.splice(P,2),T--));return C=I.join("/"),C===""&&(C=_?"/":"."),y?(y.path=C,i(y)):C}e.normalize=a;function l(w,C){w===""&&(w="."),C===""&&(C=".");var y=r(C),_=r(w);if(_&&(w=_.path||"/"),y&&!y.scheme)return _&&(y.scheme=_.scheme),i(y);if(y||C.match(o))return C;if(_&&!_.host&&!_.path)return _.host=C,i(_);var I=C.charAt(0)==="/"?C:a(w.replace(/\/+$/,"")+"/"+C);return _?(_.path=I,i(_)):I}e.join=l,e.isAbsolute=function(w){return w.charAt(0)==="/"||n.test(w)};function s(w,C){w===""&&(w="."),w=w.replace(/\/$/,"");for(var y=0;C.indexOf(w+"/")!==0;){var _=w.lastIndexOf("/");if(_<0||(w=w.slice(0,_),w.match(/^([^\/]+:\/)?\/*$/)))return C;++y}return Array(y+1).join("../")+C.substr(w.length+1)}e.relative=s;var c=function(){var w=Object.create(null);return!("__proto__"in w)}();function u(w){return w}function h(w){return f(w)?"$"+w:w}e.toSetString=c?u:h;function d(w){return f(w)?w.slice(1):w}e.fromSetString=c?u:d;function f(w){if(!w)return!1;var C=w.length;if(C<9||w.charCodeAt(C-1)!==95||w.charCodeAt(C-2)!==95||w.charCodeAt(C-3)!==111||w.charCodeAt(C-4)!==116||w.charCodeAt(C-5)!==111||w.charCodeAt(C-6)!==114||w.charCodeAt(C-7)!==112||w.charCodeAt(C-8)!==95||w.charCodeAt(C-9)!==95)return!1;for(var y=C-10;y>=0;y--)if(w.charCodeAt(y)!==36)return!1;return!0}function p(w,C,y){var _=x(w.source,C.source);return _!==0||(_=w.originalLine-C.originalLine,_!==0)||(_=w.originalColumn-C.originalColumn,_!==0||y)||(_=w.generatedColumn-C.generatedColumn,_!==0)||(_=w.generatedLine-C.generatedLine,_!==0)?_:x(w.name,C.name)}e.compareByOriginalPositions=p;function b(w,C,y){var _=w.generatedLine-C.generatedLine;return _!==0||(_=w.generatedColumn-C.generatedColumn,_!==0||y)||(_=x(w.source,C.source),_!==0)||(_=w.originalLine-C.originalLine,_!==0)||(_=w.originalColumn-C.originalColumn,_!==0)?_:x(w.name,C.name)}e.compareByGeneratedPositionsDeflated=b;function x(w,C){return w===C?0:w===null?1:C===null?-1:w>C?1:-1}function v(w,C){var y=w.generatedLine-C.generatedLine;return y!==0||(y=w.generatedColumn-C.generatedColumn,y!==0)||(y=x(w.source,C.source),y!==0)||(y=w.originalLine-C.originalLine,y!==0)||(y=w.originalColumn-C.originalColumn,y!==0)?y:x(w.name,C.name)}e.compareByGeneratedPositionsInflated=v;function S(w){return JSON.parse(w.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=S;function k(w,C,y){if(C=C||"",w&&(w[w.length-1]!=="/"&&C[0]!=="/"&&(w+="/"),C=w+C),y){var _=r(y);if(!_)throw new Error("sourceMapURL could not be parsed");if(_.path){var I=_.path.lastIndexOf("/");I>=0&&(_.path=_.path.substring(0,I+1))}C=l(i(_),C)}return a(C)}e.computeSourceURL=k}(cr)),cr}var ur={},fl;function sc(){if(fl)return ur;fl=1;var e=zn(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function o(){this._array=[],this._set=n?new Map:Object.create(null)}return o.fromArray=function(i,a){for(var l=new o,s=0,c=i.length;s<c;s++)l.add(i[s],a);return l},o.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(i,a){var l=n?i:e.toSetString(i),s=n?this.has(i):t.call(this._set,l),c=this._array.length;(!s||a)&&this._array.push(i),s||(n?this._set.set(i,c):this._set[l]=c)},o.prototype.has=function(i){if(n)return this._set.has(i);var a=e.toSetString(i);return t.call(this._set,a)},o.prototype.indexOf=function(i){if(n){var a=this._set.get(i);if(a>=0)return a}else{var l=e.toSetString(i);if(t.call(this._set,l))return this._set[l]}throw new Error('"'+i+'" is not in the set.')},o.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},o.prototype.toArray=function(){return this._array.slice()},ur.ArraySet=o,ur}var dr={},ml;function _$(){if(ml)return dr;ml=1;var e=zn();function t(o,r){var i=o.generatedLine,a=r.generatedLine,l=o.generatedColumn,s=r.generatedColumn;return a>i||a==i&&s>=l||e.compareByGeneratedPositionsInflated(o,r)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(r,i){this._array.forEach(r,i)},n.prototype.add=function(r){t(this._last,r)?(this._last=r,this._array.push(r)):(this._sorted=!1,this._array.push(r))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},dr.MappingList=n,dr}var pl;function cc(){if(pl)return sr;pl=1;var e=lc(),t=zn(),n=sc().ArraySet,o=_$().MappingList;function r(i){i||(i={}),this._file=t.getArg(i,"file",null),this._sourceRoot=t.getArg(i,"sourceRoot",null),this._skipValidation=t.getArg(i,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new o,this._sourcesContents=null}return r.prototype._version=3,r.fromSourceMap=function(a){var l=a.sourceRoot,s=new r({file:a.file,sourceRoot:l});return a.eachMapping(function(c){var u={generated:{line:c.generatedLine,column:c.generatedColumn}};c.source!=null&&(u.source=c.source,l!=null&&(u.source=t.relative(l,u.source)),u.original={line:c.originalLine,column:c.originalColumn},c.name!=null&&(u.name=c.name)),s.addMapping(u)}),a.sources.forEach(function(c){var u=c;l!==null&&(u=t.relative(l,c)),s._sources.has(u)||s._sources.add(u);var h=a.sourceContentFor(c);h!=null&&s.setSourceContent(c,h)}),s},r.prototype.addMapping=function(a){var l=t.getArg(a,"generated"),s=t.getArg(a,"original",null),c=t.getArg(a,"source",null),u=t.getArg(a,"name",null);this._skipValidation||this._validateMapping(l,s,c,u),c!=null&&(c=String(c),this._sources.has(c)||this._sources.add(c)),u!=null&&(u=String(u),this._names.has(u)||this._names.add(u)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:s!=null&&s.line,originalColumn:s!=null&&s.column,source:c,name:u})},r.prototype.setSourceContent=function(a,l){var s=a;this._sourceRoot!=null&&(s=t.relative(this._sourceRoot,s)),l!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(s)]=l):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(s)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},r.prototype.applySourceMap=function(a,l,s){var c=l;if(l==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);c=a.file}var u=this._sourceRoot;u!=null&&(c=t.relative(u,c));var h=new n,d=new n;this._mappings.unsortedForEach(function(f){if(f.source===c&&f.originalLine!=null){var p=a.originalPositionFor({line:f.originalLine,column:f.originalColumn});p.source!=null&&(f.source=p.source,s!=null&&(f.source=t.join(s,f.source)),u!=null&&(f.source=t.relative(u,f.source)),f.originalLine=p.line,f.originalColumn=p.column,p.name!=null&&(f.name=p.name))}var b=f.source;b!=null&&!h.has(b)&&h.add(b);var x=f.name;x!=null&&!d.has(x)&&d.add(x)},this),this._sources=h,this._names=d,a.sources.forEach(function(f){var p=a.sourceContentFor(f);p!=null&&(s!=null&&(f=t.join(s,f)),u!=null&&(f=t.relative(u,f)),this.setSourceContent(f,p))},this)},r.prototype._validateMapping=function(a,l,s,c){if(l&&typeof l.line!="number"&&typeof l.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!l&&!s&&!c)){if(a&&"line"in a&&"column"in a&&l&&"line"in l&&"column"in l&&a.line>0&&a.column>=0&&l.line>0&&l.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:s,original:l,name:c}))}},r.prototype._serializeMappings=function(){for(var a=0,l=1,s=0,c=0,u=0,h=0,d="",f,p,b,x,v=this._mappings.toArray(),S=0,k=v.length;S<k;S++){if(p=v[S],f="",p.generatedLine!==l)for(a=0;p.generatedLine!==l;)f+=";",l++;else if(S>0){if(!t.compareByGeneratedPositionsInflated(p,v[S-1]))continue;f+=","}f+=e.encode(p.generatedColumn-a),a=p.generatedColumn,p.source!=null&&(x=this._sources.indexOf(p.source),f+=e.encode(x-h),h=x,f+=e.encode(p.originalLine-1-c),c=p.originalLine-1,f+=e.encode(p.originalColumn-s),s=p.originalColumn,p.name!=null&&(b=this._names.indexOf(p.name),f+=e.encode(b-u),u=b)),d+=f}return d},r.prototype._generateSourcesContent=function(a,l){return a.map(function(s){if(!this._sourcesContents)return null;l!=null&&(s=t.relative(l,s));var c=t.toSetString(s);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},r.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},sr.SourceMapGenerator=r,sr}var vn={},hr={},gl;function C$(){return gl||(gl=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,o,r,i,a,l){var s=Math.floor((o-n)/2)+n,c=a(r,i[s],!0);return c===0?s:c>0?o-s>1?t(s,o,r,i,a,l):l==e.LEAST_UPPER_BOUND?o<i.length?o:-1:s:s-n>1?t(n,s,r,i,a,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(o,r,i,a){if(r.length===0)return-1;var l=t(-1,r.length,o,r,i,a||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&i(r[l],r[l-1],!0)===0;)--l;return l}}(hr)),hr}var fr={},bl;function A$(){if(bl)return fr;bl=1;function e(o,r,i){var a=o[r];o[r]=o[i],o[i]=a}function t(o,r){return Math.round(o+Math.random()*(r-o))}function n(o,r,i,a){if(i<a){var l=t(i,a),s=i-1;e(o,l,a);for(var c=o[a],u=i;u<a;u++)r(o[u],c)<=0&&(s+=1,e(o,s,u));e(o,s+1,u);var h=s+1;n(o,r,i,h-1),n(o,r,h+1,a)}}return fr.quickSort=function(o,r){n(o,r,0,o.length-1)},fr}var xl;function y$(){if(xl)return vn;xl=1;var e=zn(),t=C$(),n=sc().ArraySet,o=lc(),r=A$().quickSort;function i(c,u){var h=c;return typeof c=="string"&&(h=e.parseSourceMapInput(c)),h.sections!=null?new s(h,u):new a(h,u)}i.fromSourceMap=function(c,u){return a.fromSourceMap(c,u)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(u,h){var d=u.charAt(h);return d===";"||d===","},i.prototype._parseMappings=function(u,h){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2,i.prototype.eachMapping=function(u,h,d){var f=h||null,p=d||i.GENERATED_ORDER,b;switch(p){case i.GENERATED_ORDER:b=this._generatedMappings;break;case i.ORIGINAL_ORDER:b=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var x=this.sourceRoot;b.map(function(v){var S=v.source===null?null:this._sources.at(v.source);return S=e.computeSourceURL(x,S,this._sourceMapURL),{source:S,generatedLine:v.generatedLine,generatedColumn:v.generatedColumn,originalLine:v.originalLine,originalColumn:v.originalColumn,name:v.name===null?null:this._names.at(v.name)}},this).forEach(u,f)},i.prototype.allGeneratedPositionsFor=function(u){var h=e.getArg(u,"line"),d={source:e.getArg(u,"source"),originalLine:h,originalColumn:e.getArg(u,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var f=[],p=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(p>=0){var b=this._originalMappings[p];if(u.column===void 0)for(var x=b.originalLine;b&&b.originalLine===x;)f.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p];else for(var v=b.originalColumn;b&&b.originalLine===h&&b.originalColumn==v;)f.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p]}return f},vn.SourceMapConsumer=i;function a(c,u){var h=c;typeof c=="string"&&(h=e.parseSourceMapInput(c));var d=e.getArg(h,"version"),f=e.getArg(h,"sources"),p=e.getArg(h,"names",[]),b=e.getArg(h,"sourceRoot",null),x=e.getArg(h,"sourcesContent",null),v=e.getArg(h,"mappings"),S=e.getArg(h,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);b&&(b=e.normalize(b)),f=f.map(String).map(e.normalize).map(function(k){return b&&e.isAbsolute(b)&&e.isAbsolute(k)?e.relative(b,k):k}),this._names=n.fromArray(p.map(String),!0),this._sources=n.fromArray(f,!0),this._absoluteSources=this._sources.toArray().map(function(k){return e.computeSourceURL(b,k,u)}),this.sourceRoot=b,this.sourcesContent=x,this._mappings=v,this._sourceMapURL=u,this.file=S}a.prototype=Object.create(i.prototype),a.prototype.consumer=i,a.prototype._findSourceIndex=function(c){var u=c;if(this.sourceRoot!=null&&(u=e.relative(this.sourceRoot,u)),this._sources.has(u))return this._sources.indexOf(u);var h;for(h=0;h<this._absoluteSources.length;++h)if(this._absoluteSources[h]==c)return h;return-1},a.fromSourceMap=function(u,h){var d=Object.create(a.prototype),f=d._names=n.fromArray(u._names.toArray(),!0),p=d._sources=n.fromArray(u._sources.toArray(),!0);d.sourceRoot=u._sourceRoot,d.sourcesContent=u._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=u._file,d._sourceMapURL=h,d._absoluteSources=d._sources.toArray().map(function(y){return e.computeSourceURL(d.sourceRoot,y,h)});for(var b=u._mappings.toArray().slice(),x=d.__generatedMappings=[],v=d.__originalMappings=[],S=0,k=b.length;S<k;S++){var w=b[S],C=new l;C.generatedLine=w.generatedLine,C.generatedColumn=w.generatedColumn,w.source&&(C.source=p.indexOf(w.source),C.originalLine=w.originalLine,C.originalColumn=w.originalColumn,w.name&&(C.name=f.indexOf(w.name)),v.push(C)),x.push(C)}return r(d.__originalMappings,e.compareByOriginalPositions),d},a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}a.prototype._parseMappings=function(u,h){for(var d=1,f=0,p=0,b=0,x=0,v=0,S=u.length,k=0,w={},C={},y=[],_=[],I,R,T,P,M;k<S;)if(u.charAt(k)===";")d++,k++,f=0;else if(u.charAt(k)===",")k++;else{for(I=new l,I.generatedLine=d,P=k;P<S&&!this._charIsMappingSeparator(u,P);P++);if(R=u.slice(k,P),T=w[R],T)k+=R.length;else{for(T=[];k<P;)o.decode(u,k,C),M=C.value,k=C.rest,T.push(M);if(T.length===2)throw new Error("Found a source, but no line and column");if(T.length===3)throw new Error("Found a source and line, but no column");w[R]=T}I.generatedColumn=f+T[0],f=I.generatedColumn,T.length>1&&(I.source=x+T[1],x+=T[1],I.originalLine=p+T[2],p=I.originalLine,I.originalLine+=1,I.originalColumn=b+T[3],b=I.originalColumn,T.length>4&&(I.name=v+T[4],v+=T[4])),_.push(I),typeof I.originalLine=="number"&&y.push(I)}r(_,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,r(y,e.compareByOriginalPositions),this.__originalMappings=y},a.prototype._findMapping=function(u,h,d,f,p,b){if(u[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+u[d]);if(u[f]<0)throw new TypeError("Column must be greater than or equal to 0, got "+u[f]);return t.search(u,h,p,b)},a.prototype.computeColumnSpans=function(){for(var u=0;u<this._generatedMappings.length;++u){var h=this._generatedMappings[u];if(u+1<this._generatedMappings.length){var d=this._generatedMappings[u+1];if(h.generatedLine===d.generatedLine){h.lastGeneratedColumn=d.generatedColumn-1;continue}}h.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(u){var h={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=this._findMapping(h,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(d>=0){var f=this._generatedMappings[d];if(f.generatedLine===h.generatedLine){var p=e.getArg(f,"source",null);p!==null&&(p=this._sources.at(p),p=e.computeSourceURL(this.sourceRoot,p,this._sourceMapURL));var b=e.getArg(f,"name",null);return b!==null&&(b=this._names.at(b)),{source:p,line:e.getArg(f,"originalLine",null),column:e.getArg(f,"originalColumn",null),name:b}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(u){return u==null}):!1},a.prototype.sourceContentFor=function(u,h){if(!this.sourcesContent)return null;var d=this._findSourceIndex(u);if(d>=0)return this.sourcesContent[d];var f=u;this.sourceRoot!=null&&(f=e.relative(this.sourceRoot,f));var p;if(this.sourceRoot!=null&&(p=e.urlParse(this.sourceRoot))){var b=f.replace(/^file:\/\//,"");if(p.scheme=="file"&&this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];if((!p.path||p.path=="/")&&this._sources.has("/"+f))return this.sourcesContent[this._sources.indexOf("/"+f)]}if(h)return null;throw new Error('"'+f+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(u){var h=e.getArg(u,"source");if(h=this._findSourceIndex(h),h<0)return{line:null,column:null,lastColumn:null};var d={source:h,originalLine:e.getArg(u,"line"),originalColumn:e.getArg(u,"column")},f=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(f>=0){var p=this._originalMappings[f];if(p.source===d.source)return{line:e.getArg(p,"generatedLine",null),column:e.getArg(p,"generatedColumn",null),lastColumn:e.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},vn.BasicSourceMapConsumer=a;function s(c,u){var h=c;typeof c=="string"&&(h=e.parseSourceMapInput(c));var d=e.getArg(h,"version"),f=e.getArg(h,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new n,this._names=new n;var p={line:-1,column:0};this._sections=f.map(function(b){if(b.url)throw new Error("Support for url field in sections not implemented.");var x=e.getArg(b,"offset"),v=e.getArg(x,"line"),S=e.getArg(x,"column");if(v<p.line||v===p.line&&S<p.column)throw new Error("Section offsets must be ordered and non-overlapping.");return p=x,{generatedOffset:{generatedLine:v+1,generatedColumn:S+1},consumer:new i(e.getArg(b,"map"),u)}})}return s.prototype=Object.create(i.prototype),s.prototype.constructor=i,s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){for(var c=[],u=0;u<this._sections.length;u++)for(var h=0;h<this._sections[u].consumer.sources.length;h++)c.push(this._sections[u].consumer.sources[h]);return c}}),s.prototype.originalPositionFor=function(u){var h={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=t.search(h,this._sections,function(p,b){var x=p.generatedLine-b.generatedOffset.generatedLine;return x||p.generatedColumn-b.generatedOffset.generatedColumn}),f=this._sections[d];return f?f.consumer.originalPositionFor({line:h.generatedLine-(f.generatedOffset.generatedLine-1),column:h.generatedColumn-(f.generatedOffset.generatedLine===h.generatedLine?f.generatedOffset.generatedColumn-1:0),bias:u.bias}):{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(u){return u.consumer.hasContentsOfAllSources()})},s.prototype.sourceContentFor=function(u,h){for(var d=0;d<this._sections.length;d++){var f=this._sections[d],p=f.consumer.sourceContentFor(u,!0);if(p)return p}if(h)return null;throw new Error('"'+u+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(u){for(var h=0;h<this._sections.length;h++){var d=this._sections[h];if(d.consumer._findSourceIndex(e.getArg(u,"source"))!==-1){var f=d.consumer.generatedPositionFor(u);if(f){var p={line:f.line+(d.generatedOffset.generatedLine-1),column:f.column+(d.generatedOffset.generatedLine===f.line?d.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},s.prototype._parseMappings=function(u,h){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var f=this._sections[d],p=f.consumer._generatedMappings,b=0;b<p.length;b++){var x=p[b],v=f.consumer._sources.at(x.source);v=e.computeSourceURL(f.consumer.sourceRoot,v,this._sourceMapURL),this._sources.add(v),v=this._sources.indexOf(v);var S=null;x.name&&(S=f.consumer._names.at(x.name),this._names.add(S),S=this._names.indexOf(S));var k={source:v,generatedLine:x.generatedLine+(f.generatedOffset.generatedLine-1),generatedColumn:x.generatedColumn+(f.generatedOffset.generatedLine===x.generatedLine?f.generatedOffset.generatedColumn-1:0),originalLine:x.originalLine,originalColumn:x.originalColumn,name:S};this.__generatedMappings.push(k),typeof k.originalLine=="number"&&this.__originalMappings.push(k)}r(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),r(this.__originalMappings,e.compareByOriginalPositions)},vn.IndexedSourceMapConsumer=s,vn}var mr={},vl;function I$(){if(vl)return mr;vl=1;var e=cc().SourceMapGenerator,t=zn(),n=/(\r?\n)/,o=10,r="$$$isSourceNode$$$";function i(a,l,s,c,u){this.children=[],this.sourceContents={},this.line=a??null,this.column=l??null,this.source=s??null,this.name=u??null,this[r]=!0,c!=null&&this.add(c)}return i.fromStringWithSourceMap=function(l,s,c){var u=new i,h=l.split(n),d=0,f=function(){var S=w(),k=w()||"";return S+k;function w(){return d<h.length?h[d++]:void 0}},p=1,b=0,x=null;return s.eachMapping(function(S){if(x!==null)if(p<S.generatedLine)v(x,f()),p++,b=0;else{var k=h[d]||"",w=k.substr(0,S.generatedColumn-b);h[d]=k.substr(S.generatedColumn-b),b=S.generatedColumn,v(x,w),x=S;return}for(;p<S.generatedLine;)u.add(f()),p++;if(b<S.generatedColumn){var k=h[d]||"";u.add(k.substr(0,S.generatedColumn)),h[d]=k.substr(S.generatedColumn),b=S.generatedColumn}x=S},this),d<h.length&&(x&&v(x,f()),u.add(h.splice(d).join(""))),s.sources.forEach(function(S){var k=s.sourceContentFor(S);k!=null&&(c!=null&&(S=t.join(c,S)),u.setSourceContent(S,k))}),u;function v(S,k){if(S===null||S.source===void 0)u.add(k);else{var w=c?t.join(c,S.source):S.source;u.add(new i(S.originalLine,S.originalColumn,w,k,S.name))}}},i.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(s){this.add(s)},this);else if(l[r]||typeof l=="string")l&&this.children.push(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.prepend=function(l){if(Array.isArray(l))for(var s=l.length-1;s>=0;s--)this.prepend(l[s]);else if(l[r]||typeof l=="string")this.children.unshift(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.walk=function(l){for(var s,c=0,u=this.children.length;c<u;c++)s=this.children[c],s[r]?s.walk(l):s!==""&&l(s,{source:this.source,line:this.line,column:this.column,name:this.name})},i.prototype.join=function(l){var s,c,u=this.children.length;if(u>0){for(s=[],c=0;c<u-1;c++)s.push(this.children[c]),s.push(l);s.push(this.children[c]),this.children=s}return this},i.prototype.replaceRight=function(l,s){var c=this.children[this.children.length-1];return c[r]?c.replaceRight(l,s):typeof c=="string"?this.children[this.children.length-1]=c.replace(l,s):this.children.push("".replace(l,s)),this},i.prototype.setSourceContent=function(l,s){this.sourceContents[t.toSetString(l)]=s},i.prototype.walkSourceContents=function(l){for(var s=0,c=this.children.length;s<c;s++)this.children[s][r]&&this.children[s].walkSourceContents(l);for(var u=Object.keys(this.sourceContents),s=0,c=u.length;s<c;s++)l(t.fromSetString(u[s]),this.sourceContents[u[s]])},i.prototype.toString=function(){var l="";return this.walk(function(s){l+=s}),l},i.prototype.toStringWithSourceMap=function(l){var s={code:"",line:1,column:0},c=new e(l),u=!1,h=null,d=null,f=null,p=null;return this.walk(function(b,x){s.code+=b,x.source!==null&&x.line!==null&&x.column!==null?((h!==x.source||d!==x.line||f!==x.column||p!==x.name)&&c.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name}),h=x.source,d=x.line,f=x.column,p=x.name,u=!0):u&&(c.addMapping({generated:{line:s.line,column:s.column}}),h=null,u=!1);for(var v=0,S=b.length;v<S;v++)b.charCodeAt(v)===o?(s.line++,s.column=0,v+1===S?(h=null,u=!1):u&&c.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name})):s.column++}),this.walkSourceContents(function(b,x){c.setSourceContent(b,x)}),{code:s.code,map:c}},mr.SourceNode=i,mr}var Sl;function R$(){return Sl||(Sl=1,xn.SourceMapGenerator=cc().SourceMapGenerator,xn.SourceMapConsumer=y$().SourceMapConsumer,xn.SourceNode=I$().SourceNode),xn}(function(e,t){t.__esModule=!0;var n=xe,o=void 0;try{var r=R$();o=r.SourceNode}catch{}o||(o=function(l,s,c,u){this.src="",u&&this.add(u)},o.prototype={add:function(s){n.isArray(s)&&(s=s.join("")),this.src+=s},prepend:function(s){n.isArray(s)&&(s=s.join("")),this.src=s+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function i(l,s,c){if(n.isArray(l)){for(var u=[],h=0,d=l.length;h<d;h++)u.push(s.wrap(l[h],c));return u}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function a(l){this.srcFile=l,this.source=[]}a.prototype={isEmpty:function(){return!this.source.length},prepend:function(s,c){this.source.unshift(this.wrap(s,c))},push:function(s,c){this.source.push(this.wrap(s,c))},merge:function(){var s=this.empty();return this.each(function(c){s.add([" ",c,`
524
- `])}),s},each:function(s){for(var c=0,u=this.source.length;c<u;c++)s(this.source[c])},empty:function(){var s=this.currentLocation||{start:{}};return new o(s.start.line,s.start.column,this.srcFile)},wrap:function(s){var c=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return s instanceof o?s:(s=i(s,this,c),new o(c.start.line,c.start.column,this.srcFile,s))},functionCall:function(s,c,u){return u=this.generateList(u),this.wrap([s,c?"."+c+"(":"(",u,")"])},quotedString:function(s){return'"'+(s+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(s){var c=this,u=[];Object.keys(s).forEach(function(d){var f=i(s[d],c);f!=="undefined"&&u.push([c.quotedString(d),":",f])});var h=this.generateList(u);return h.prepend("{"),h.add("}"),h},generateList:function(s){for(var c=this.empty(),u=0,h=s.length;u<h;u++)u&&c.add(","),c.add(i(s[u],this));return c},generateArray:function(s){var c=this.generateList(s);return c.prepend("["),c.add("]"),c}},t.default=a,e.exports=t.default})(oa,oa.exports);var N$=oa.exports;(function(e,t){t.__esModule=!0;function n(d){return d&&d.__esModule?d:{default:d}}var o=Je,r=Xe,i=n(r),a=xe,l=N$,s=n(l);function c(d){this.value=d}function u(){}u.prototype={nameLookup:function(f,p){return this.internalNameLookup(f,p)},depthedLookup:function(f){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(f),")"]},compilerInfo:function(){var f=o.COMPILER_REVISION,p=o.REVISION_CHANGES[f];return[f,p]},appendToBuffer:function(f,p,b){return a.isArray(f)||(f=[f]),f=this.source.wrap(f,p),this.environment.isSimple?["return ",f,";"]:b?["buffer += ",f,";"]:(f.appendToBuffer=!0,f)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(f,p){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",f,",",JSON.stringify(p),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(f,p,b,x){this.environment=f,this.options=p,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!x,this.name=this.environment.name,this.isChild=!!b,this.context=b||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(f,p),this.useDepths=this.useDepths||f.useDepths||f.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||f.useBlockParams;var v=f.opcodes,S=void 0,k=void 0,w=void 0,C=void 0;for(w=0,C=v.length;w<C;w++)S=v[w],this.source.currentLocation=S.loc,k=k||S.loc,this[S.opcode].apply(this,S.args);if(this.source.currentLocation=k,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new i.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
523
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return typeof s<"u"?s:this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(s){this.begin(s)}};return a.options={},a.performAction=function(s,c,u,h){function d(f,p){return c.yytext=c.yytext.substring(f,c.yyleng-p+f)}switch(u){case 0:if(c.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):c.yytext.slice(-1)==="\\"?(d(0,1),this.begin("emu")):this.begin("mu"),c.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(d(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(c.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return c.yytext=d(1,2).replace(/\\"/g,'"'),80;case 32:return c.yytext=d(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return c.yytext=c.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},a.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],a.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},a}();o.lexer=r;function i(){this.yy={}}return i.prototype=o,o.Parser=i,new i}();t.default=n,e.exports=t.default})(Xr,Xr.exports);var c$=Xr.exports,Qr={exports:{}},ea={exports:{}};(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var o=Xe,r=n(o);function i(){this.parents=[]}i.prototype={constructor:i,mutating:!1,acceptKey:function(u,h){var d=this.accept(u[h]);if(this.mutating){if(d&&!i.prototype[d.type])throw new r.default('Unexpected node type "'+d.type+'" found when accepting '+h+" on "+u.type);u[h]=d}},acceptRequired:function(u,h){if(this.acceptKey(u,h),!u[h])throw new r.default(u.type+" requires "+h)},acceptArray:function(u){for(var h=0,d=u.length;h<d;h++)this.acceptKey(u,h),u[h]||(u.splice(h,1),h--,d--)},accept:function(u){if(u){if(!this[u.type])throw new r.default("Unknown type: "+u.type,u);this.current&&this.parents.unshift(this.current),this.current=u;var h=this[u.type](u);if(this.current=this.parents.shift(),!this.mutating||h)return h;if(h!==!1)return u}},Program:function(u){this.acceptArray(u.body)},MustacheStatement:a,Decorator:a,BlockStatement:l,DecoratorBlock:l,PartialStatement:s,PartialBlockStatement:function(u){s.call(this,u),this.acceptKey(u,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:a,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(u){this.acceptArray(u.pairs)},HashPair:function(u){this.acceptRequired(u,"value")}};function a(c){this.acceptRequired(c,"path"),this.acceptArray(c.params),this.acceptKey(c,"hash")}function l(c){a.call(this,c),this.acceptKey(c,"program"),this.acceptKey(c,"inverse")}function s(c){this.acceptRequired(c,"name"),this.acceptArray(c.params),this.acceptKey(c,"hash")}t.default=i,e.exports=t.default})(ea,ea.exports);var rc=ea.exports;(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var o=rc,r=n(o);function i(){var u=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=u}i.prototype=new r.default,i.prototype.Program=function(u){var h=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var f=u.body,p=0,b=f.length;p<b;p++){var x=f[p],w=this.accept(x);if(w){var S=a(f,p,d),k=l(f,p,d),v=w.openStandalone&&S,_=w.closeStandalone&&k,y=w.inlineStandalone&&S&&k;w.close&&s(f,p,!0),w.open&&c(f,p,!0),h&&y&&(s(f,p),c(f,p)&&x.type==="PartialStatement"&&(x.indent=/([ \t]+$)/.exec(f[p-1].original)[1])),h&&v&&(s((x.program||x.inverse).body),c(f,p)),h&&_&&(s(f,p),c((x.inverse||x.program).body))}}return u},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(u){this.accept(u.program),this.accept(u.inverse);var h=u.program||u.inverse,d=u.program&&u.inverse,f=d,p=d;if(d&&d.chained)for(f=d.body[0].program;p.chained;)p=p.body[p.body.length-1].program;var b={open:u.openStrip.open,close:u.closeStrip.close,openStandalone:l(h.body),closeStandalone:a((f||h).body)};if(u.openStrip.close&&s(h.body,null,!0),d){var x=u.inverseStrip;x.open&&c(h.body,null,!0),x.close&&s(f.body,null,!0),u.closeStrip.open&&c(p.body,null,!0),!this.options.ignoreStandalone&&a(h.body)&&l(f.body)&&(c(h.body),s(f.body))}else u.closeStrip.open&&c(h.body,null,!0);return b},i.prototype.Decorator=i.prototype.MustacheStatement=function(u){return u.strip},i.prototype.PartialStatement=i.prototype.CommentStatement=function(u){var h=u.strip||{};return{inlineStandalone:!0,open:h.open,close:h.close}};function a(u,h,d){h===void 0&&(h=u.length);var f=u[h-1],p=u[h-2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(f.original)}function l(u,h,d){h===void 0&&(h=-1);var f=u[h+1],p=u[h+2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(f.original)}function s(u,h,d){var f=u[h==null?0:h+1];if(!(!f||f.type!=="ContentStatement"||!d&&f.rightStripped)){var p=f.value;f.value=f.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),f.rightStripped=f.value!==p}}function c(u,h,d){var f=u[h==null?u.length-1:h-1];if(!(!f||f.type!=="ContentStatement"||!d&&f.leftStripped)){var p=f.value;return f.value=f.value.replace(d?/\s+$/:/[ \t]+$/,""),f.leftStripped=f.value!==p,f.leftStripped}}t.default=i,e.exports=t.default})(Qr,Qr.exports);var u$=Qr.exports,Qe={};Qe.__esModule=!0;Qe.SourceLocation=f$;Qe.id=m$;Qe.stripFlags=p$;Qe.stripComment=g$;Qe.preparePath=b$;Qe.prepareMustache=x$;Qe.prepareRawBlock=v$;Qe.prepareBlock=S$;Qe.prepareProgram=w$;Qe.preparePartialBlock=$$;function d$(e){return e&&e.__esModule?e:{default:e}}var h$=Xe,Na=d$(h$);function Ta(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new Na.default(e.path.original+" doesn't match "+t,n)}}function f$(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}function m$(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function p$(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function g$(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function b$(e,t,n){n=this.locInfo(n);for(var o=e?"@":"",r=[],i=0,a=0,l=t.length;a<l;a++){var s=t[a].part,c=t[a].original!==s;if(o+=(t[a].separator||"")+s,!c&&(s===".."||s==="."||s==="this")){if(r.length>0)throw new Na.default("Invalid path: "+o,{loc:n});s===".."&&i++}else r.push(s)}return{type:"PathExpression",data:e,depth:i,parts:r,original:o,loc:n}}function x$(e,t,n,o,r,i){var a=o.charAt(3)||o.charAt(2),l=a!=="{"&&a!=="&",s=/\*/.test(o);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:r,loc:this.locInfo(i)}}function v$(e,t,n,o){Ta(e,n),o=this.locInfo(o);var r={type:"Program",body:t,strip:{},loc:o};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:r,openStrip:{},inverseStrip:{},closeStrip:{},loc:o}}function S$(e,t,n,o,r,i){o&&o.path&&Ta(e,o);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(a)throw new Na.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=o.strip),s=n.strip,l=n.program}return r&&(r=l,l=t,t=r),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:s,closeStrip:o&&o.strip,loc:this.locInfo(i)}}function w$(e,t){if(!t&&e.length){var n=e[0].loc,o=e[e.length-1].loc;n&&o&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:o.end.line,column:o.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function $$(e,t,n,o){return Ta(e,n),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(o)}}Ln.__esModule=!0;Ln.parseWithoutProcessing=ac;Ln.parse=T$;function k$(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function Ea(e){return e&&e.__esModule?e:{default:e}}var _$=c$,ta=Ea(_$),C$=u$,A$=Ea(C$),y$=Qe,I$=k$(y$),R$=Xe,bn=Ea(R$),N$=be;Ln.parser=ta.default;var so={};N$.extend(so,I$);function ac(e,t){if(e.type==="Program")return E$(e),e;ta.default.yy=so,so.locInfo=function(o){return new so.SourceLocation(t&&t.srcName,o)};var n=ta.default.parse(e);return n}function T$(e,t){var n=ac(e,t),o=new A$.default(t);return o.accept(n)}function E$(e){na(e)}function na(e){if(e!=null){if(Array.isArray(e)){e.forEach(na);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!M$(e.depth))throw new bn.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new bn.default("Invalid AST: PathExpression.parts must be an array");for(var t=0;t<e.parts.length;t++)if(typeof e.parts[t]!="string")throw new bn.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new bn.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new bn.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(n){n!=="loc"&&na(e[n])})}}}function M$(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var zn={};zn.__esModule=!0;zn.Compiler=oa;zn.precompile=z$;zn.compile=j$;function ic(e){return e&&e.__esModule?e:{default:e}}var P$=Xe,Cn=ic(P$),Tn=be,O$=oc,xn=ic(O$),L$=[].slice;function oa(){}oa.prototype={compiler:oa,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var o=0;o<n;o++){var r=this.opcodes[o],i=t.opcodes[o];if(r.opcode!==i.opcode||!lc(r.args,i.args))return!1}n=this.children.length;for(var o=0;o<n;o++)if(!this.children[o].equals(t.children[o]))return!1;return!0},guid:0,compile:function(t,n){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=n,this.stringParams=n.stringParams,this.trackIds=n.trackIds,n.blockParams=n.blockParams||[],n.knownHelpers=Tn.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},n.knownHelpers),this.accept(t)},compileProgram:function(t){var n=new this.compiler,o=n.compile(t,this.options),r=this.guid++;return this.usePartial=this.usePartial||o.usePartial,this.children[r]=o,this.useDepths=this.useDepths||o.useDepths,r},accept:function(t){if(!this[t.type])throw new Cn.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var n=this[t.type](t);return this.sourceNode.shift(),n},Program:function(t){this.options.blockParams.unshift(t.blockParams);for(var n=t.body,o=n.length,r=0;r<o;r++)this.accept(n[r]);return this.options.blockParams.shift(),this.isSimple=o===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){dl(t);var n=t.program,o=t.inverse;n=n&&this.compileProgram(n),o=o&&this.compileProgram(o);var r=this.classifySexpr(t);r==="helper"?this.helperSexpr(t,n,o):r==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",n),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,n,o),this.opcode("pushProgram",n),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var n=t.program&&this.compileProgram(t.program),o=this.setupFullMustacheParams(t,n,void 0),r=t.path;this.useDecorators=!0,this.opcode("registerDecorator",o.length,r.original)},PartialStatement:function(t){this.usePartial=!0;var n=t.program;n&&(n=this.compileProgram(t.program));var o=t.params;if(o.length>1)throw new Cn.default("Unsupported number of partial arguments: "+o.length,t);o.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):o.push({type:"PathExpression",parts:[],depth:0}));var r=t.name.original,i=t.name.type==="SubExpression";i&&this.accept(t.name),this.setupFullMustacheParams(t,n,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",i,r,a),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){dl(t);var n=this.classifySexpr(t);n==="simple"?this.simpleSexpr(t):n==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,n,o){var r=t.path,i=r.parts[0],a=n!=null||o!=null;this.opcode("getContext",r.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",o),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",i,a)},simpleSexpr:function(t){var n=t.path;n.strict=!0,this.accept(n),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,n,o){var r=this.setupFullMustacheParams(t,n,o),i=t.path,a=i.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",r.length,a);else{if(this.options.knownHelpersOnly)throw new Cn.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",r.length,i.original,xn.default.helpers.simpleId(i))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],o=xn.default.helpers.scopedId(t),r=!t.depth&&!o&&this.blockParamIndex(n);r?this.opcode("lookupBlockParam",r,t.parts):n?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,o):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var n=t.pairs,o=0,r=n.length;for(this.opcode("pushHash");o<r;o++)this.pushParam(n[o].value);for(;o--;)this.opcode("assignToHash",n[o].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:L$.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var n=xn.default.helpers.simpleId(t.path),o=n&&!!this.blockParamIndex(t.path.parts[0]),r=!o&&xn.default.helpers.helperExpression(t),i=!o&&(r||n);if(i&&!r){var a=t.path.parts[0],l=this.options;l.knownHelpers[a]?r=!0:l.knownHelpersOnly&&(i=!1)}return r?"helper":i?"ambiguous":"simple"},pushParams:function(t){for(var n=0,o=t.length;n<o;n++)this.pushParam(t[n])},pushParam:function(t){var n=t.value!=null?t.value:t.original||"";if(this.stringParams)n.replace&&(n=n.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",n,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var o=void 0;if(t.parts&&!xn.default.helpers.scopedId(t)&&!t.depth&&(o=this.blockParamIndex(t.parts[0])),o){var r=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",o,r)}else n=t.original||n,n.replace&&(n=n.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,n)}this.accept(t)}},setupFullMustacheParams:function(t,n,o,r){var i=t.params;return this.pushParams(i),this.opcode("pushProgram",n),this.opcode("pushProgram",o),t.hash?this.accept(t.hash):this.opcode("emptyHash",r),i},blockParamIndex:function(t){for(var n=0,o=this.options.blockParams.length;n<o;n++){var r=this.options.blockParams[n],i=r&&Tn.indexOf(r,t);if(r&&i>=0)return[n,i]}}};function z$(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Cn.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=n.parse(e,t),r=new n.Compiler().compile(o,t);return new n.JavaScriptCompiler().compile(r,t)}function j$(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Cn.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Tn.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=void 0;function r(){var a=n.parse(e,t),l=new n.Compiler().compile(a,t),s=new n.JavaScriptCompiler().compile(l,t,void 0,!0);return n.template(s)}function i(a,l){return o||(o=r()),o.call(this,a,l)}return i._setup=function(a){return o||(o=r()),o._setup(a)},i._child=function(a,l,s,c){return o||(o=r()),o._child(a,l,s,c)},i}function lc(e,t){if(e===t)return!0;if(Tn.isArray(e)&&Tn.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!lc(e[n],t[n]))return!1;return!0}}function dl(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}var ra={exports:{}},aa={exports:{}},vn={},ur={},Xn={},Qn={},hl;function B$(){if(hl)return Qn;hl=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Qn.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Qn.decode=function(t){var n=65,o=90,r=97,i=122,a=48,l=57,s=43,c=47,u=26,h=52;return n<=t&&t<=o?t-n:r<=t&&t<=i?t-r+u:a<=t&&t<=l?t-a+h:t==s?62:t==c?63:-1},Qn}var fl;function sc(){if(fl)return Xn;fl=1;var e=B$(),t=5,n=1<<t,o=n-1,r=n;function i(l){return l<0?(-l<<1)+1:(l<<1)+0}function a(l){var s=(l&1)===1,c=l>>1;return s?-c:c}return Xn.encode=function(s){var c="",u,h=i(s);do u=h&o,h>>>=t,h>0&&(u|=r),c+=e.encode(u);while(h>0);return c},Xn.decode=function(s,c,u){var h=s.length,d=0,f=0,p,b;do{if(c>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(b=e.decode(s.charCodeAt(c++)),b===-1)throw new Error("Invalid base64 digit: "+s.charAt(c-1));p=!!(b&r),b&=o,d=d+(b<<f),f+=t}while(p);u.value=a(d),u.rest=c},Xn}var dr={},ml;function jn(){return ml||(ml=1,function(e){function t(v,_,y){if(_ in v)return v[_];if(arguments.length===3)return y;throw new Error('"'+_+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,o=/^data:.+\,.+$/;function r(v){var _=v.match(n);return _?{scheme:_[1],auth:_[2],host:_[3],port:_[4],path:_[5]}:null}e.urlParse=r;function i(v){var _="";return v.scheme&&(_+=v.scheme+":"),_+="//",v.auth&&(_+=v.auth+"@"),v.host&&(_+=v.host),v.port&&(_+=":"+v.port),v.path&&(_+=v.path),_}e.urlGenerate=i;function a(v){var _=v,y=r(v);if(y){if(!y.path)return v;_=y.path}for(var C=e.isAbsolute(_),I=_.split(/\/+/),R,E=0,P=I.length-1;P>=0;P--)R=I[P],R==="."?I.splice(P,1):R===".."?E++:E>0&&(R===""?(I.splice(P+1,E),E=0):(I.splice(P,2),E--));return _=I.join("/"),_===""&&(_=C?"/":"."),y?(y.path=_,i(y)):_}e.normalize=a;function l(v,_){v===""&&(v="."),_===""&&(_=".");var y=r(_),C=r(v);if(C&&(v=C.path||"/"),y&&!y.scheme)return C&&(y.scheme=C.scheme),i(y);if(y||_.match(o))return _;if(C&&!C.host&&!C.path)return C.host=_,i(C);var I=_.charAt(0)==="/"?_:a(v.replace(/\/+$/,"")+"/"+_);return C?(C.path=I,i(C)):I}e.join=l,e.isAbsolute=function(v){return v.charAt(0)==="/"||n.test(v)};function s(v,_){v===""&&(v="."),v=v.replace(/\/$/,"");for(var y=0;_.indexOf(v+"/")!==0;){var C=v.lastIndexOf("/");if(C<0||(v=v.slice(0,C),v.match(/^([^\/]+:\/)?\/*$/)))return _;++y}return Array(y+1).join("../")+_.substr(v.length+1)}e.relative=s;var c=function(){var v=Object.create(null);return!("__proto__"in v)}();function u(v){return v}function h(v){return f(v)?"$"+v:v}e.toSetString=c?u:h;function d(v){return f(v)?v.slice(1):v}e.fromSetString=c?u:d;function f(v){if(!v)return!1;var _=v.length;if(_<9||v.charCodeAt(_-1)!==95||v.charCodeAt(_-2)!==95||v.charCodeAt(_-3)!==111||v.charCodeAt(_-4)!==116||v.charCodeAt(_-5)!==111||v.charCodeAt(_-6)!==114||v.charCodeAt(_-7)!==112||v.charCodeAt(_-8)!==95||v.charCodeAt(_-9)!==95)return!1;for(var y=_-10;y>=0;y--)if(v.charCodeAt(y)!==36)return!1;return!0}function p(v,_,y){var C=x(v.source,_.source);return C!==0||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0||y)||(C=v.generatedColumn-_.generatedColumn,C!==0)||(C=v.generatedLine-_.generatedLine,C!==0)?C:x(v.name,_.name)}e.compareByOriginalPositions=p;function b(v,_,y){var C=v.generatedLine-_.generatedLine;return C!==0||(C=v.generatedColumn-_.generatedColumn,C!==0||y)||(C=x(v.source,_.source),C!==0)||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0)?C:x(v.name,_.name)}e.compareByGeneratedPositionsDeflated=b;function x(v,_){return v===_?0:v===null?1:_===null?-1:v>_?1:-1}function w(v,_){var y=v.generatedLine-_.generatedLine;return y!==0||(y=v.generatedColumn-_.generatedColumn,y!==0)||(y=x(v.source,_.source),y!==0)||(y=v.originalLine-_.originalLine,y!==0)||(y=v.originalColumn-_.originalColumn,y!==0)?y:x(v.name,_.name)}e.compareByGeneratedPositionsInflated=w;function S(v){return JSON.parse(v.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=S;function k(v,_,y){if(_=_||"",v&&(v[v.length-1]!=="/"&&_[0]!=="/"&&(v+="/"),_=v+_),y){var C=r(y);if(!C)throw new Error("sourceMapURL could not be parsed");if(C.path){var I=C.path.lastIndexOf("/");I>=0&&(C.path=C.path.substring(0,I+1))}_=l(i(C),_)}return a(_)}e.computeSourceURL=k}(dr)),dr}var hr={},pl;function cc(){if(pl)return hr;pl=1;var e=jn(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function o(){this._array=[],this._set=n?new Map:Object.create(null)}return o.fromArray=function(i,a){for(var l=new o,s=0,c=i.length;s<c;s++)l.add(i[s],a);return l},o.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(i,a){var l=n?i:e.toSetString(i),s=n?this.has(i):t.call(this._set,l),c=this._array.length;(!s||a)&&this._array.push(i),s||(n?this._set.set(i,c):this._set[l]=c)},o.prototype.has=function(i){if(n)return this._set.has(i);var a=e.toSetString(i);return t.call(this._set,a)},o.prototype.indexOf=function(i){if(n){var a=this._set.get(i);if(a>=0)return a}else{var l=e.toSetString(i);if(t.call(this._set,l))return this._set[l]}throw new Error('"'+i+'" is not in the set.')},o.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},o.prototype.toArray=function(){return this._array.slice()},hr.ArraySet=o,hr}var fr={},gl;function D$(){if(gl)return fr;gl=1;var e=jn();function t(o,r){var i=o.generatedLine,a=r.generatedLine,l=o.generatedColumn,s=r.generatedColumn;return a>i||a==i&&s>=l||e.compareByGeneratedPositionsInflated(o,r)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(r,i){this._array.forEach(r,i)},n.prototype.add=function(r){t(this._last,r)?(this._last=r,this._array.push(r)):(this._sorted=!1,this._array.push(r))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},fr.MappingList=n,fr}var bl;function uc(){if(bl)return ur;bl=1;var e=sc(),t=jn(),n=cc().ArraySet,o=D$().MappingList;function r(i){i||(i={}),this._file=t.getArg(i,"file",null),this._sourceRoot=t.getArg(i,"sourceRoot",null),this._skipValidation=t.getArg(i,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new o,this._sourcesContents=null}return r.prototype._version=3,r.fromSourceMap=function(a){var l=a.sourceRoot,s=new r({file:a.file,sourceRoot:l});return a.eachMapping(function(c){var u={generated:{line:c.generatedLine,column:c.generatedColumn}};c.source!=null&&(u.source=c.source,l!=null&&(u.source=t.relative(l,u.source)),u.original={line:c.originalLine,column:c.originalColumn},c.name!=null&&(u.name=c.name)),s.addMapping(u)}),a.sources.forEach(function(c){var u=c;l!==null&&(u=t.relative(l,c)),s._sources.has(u)||s._sources.add(u);var h=a.sourceContentFor(c);h!=null&&s.setSourceContent(c,h)}),s},r.prototype.addMapping=function(a){var l=t.getArg(a,"generated"),s=t.getArg(a,"original",null),c=t.getArg(a,"source",null),u=t.getArg(a,"name",null);this._skipValidation||this._validateMapping(l,s,c,u),c!=null&&(c=String(c),this._sources.has(c)||this._sources.add(c)),u!=null&&(u=String(u),this._names.has(u)||this._names.add(u)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:s!=null&&s.line,originalColumn:s!=null&&s.column,source:c,name:u})},r.prototype.setSourceContent=function(a,l){var s=a;this._sourceRoot!=null&&(s=t.relative(this._sourceRoot,s)),l!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(s)]=l):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(s)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},r.prototype.applySourceMap=function(a,l,s){var c=l;if(l==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);c=a.file}var u=this._sourceRoot;u!=null&&(c=t.relative(u,c));var h=new n,d=new n;this._mappings.unsortedForEach(function(f){if(f.source===c&&f.originalLine!=null){var p=a.originalPositionFor({line:f.originalLine,column:f.originalColumn});p.source!=null&&(f.source=p.source,s!=null&&(f.source=t.join(s,f.source)),u!=null&&(f.source=t.relative(u,f.source)),f.originalLine=p.line,f.originalColumn=p.column,p.name!=null&&(f.name=p.name))}var b=f.source;b!=null&&!h.has(b)&&h.add(b);var x=f.name;x!=null&&!d.has(x)&&d.add(x)},this),this._sources=h,this._names=d,a.sources.forEach(function(f){var p=a.sourceContentFor(f);p!=null&&(s!=null&&(f=t.join(s,f)),u!=null&&(f=t.relative(u,f)),this.setSourceContent(f,p))},this)},r.prototype._validateMapping=function(a,l,s,c){if(l&&typeof l.line!="number"&&typeof l.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!l&&!s&&!c)){if(a&&"line"in a&&"column"in a&&l&&"line"in l&&"column"in l&&a.line>0&&a.column>=0&&l.line>0&&l.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:s,original:l,name:c}))}},r.prototype._serializeMappings=function(){for(var a=0,l=1,s=0,c=0,u=0,h=0,d="",f,p,b,x,w=this._mappings.toArray(),S=0,k=w.length;S<k;S++){if(p=w[S],f="",p.generatedLine!==l)for(a=0;p.generatedLine!==l;)f+=";",l++;else if(S>0){if(!t.compareByGeneratedPositionsInflated(p,w[S-1]))continue;f+=","}f+=e.encode(p.generatedColumn-a),a=p.generatedColumn,p.source!=null&&(x=this._sources.indexOf(p.source),f+=e.encode(x-h),h=x,f+=e.encode(p.originalLine-1-c),c=p.originalLine-1,f+=e.encode(p.originalColumn-s),s=p.originalColumn,p.name!=null&&(b=this._names.indexOf(p.name),f+=e.encode(b-u),u=b)),d+=f}return d},r.prototype._generateSourcesContent=function(a,l){return a.map(function(s){if(!this._sourcesContents)return null;l!=null&&(s=t.relative(l,s));var c=t.toSetString(s);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},r.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},ur.SourceMapGenerator=r,ur}var Sn={},mr={},xl;function F$(){return xl||(xl=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,o,r,i,a,l){var s=Math.floor((o-n)/2)+n,c=a(r,i[s],!0);return c===0?s:c>0?o-s>1?t(s,o,r,i,a,l):l==e.LEAST_UPPER_BOUND?o<i.length?o:-1:s:s-n>1?t(n,s,r,i,a,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(o,r,i,a){if(r.length===0)return-1;var l=t(-1,r.length,o,r,i,a||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&i(r[l],r[l-1],!0)===0;)--l;return l}}(mr)),mr}var pr={},vl;function H$(){if(vl)return pr;vl=1;function e(o,r,i){var a=o[r];o[r]=o[i],o[i]=a}function t(o,r){return Math.round(o+Math.random()*(r-o))}function n(o,r,i,a){if(i<a){var l=t(i,a),s=i-1;e(o,l,a);for(var c=o[a],u=i;u<a;u++)r(o[u],c)<=0&&(s+=1,e(o,s,u));e(o,s+1,u);var h=s+1;n(o,r,i,h-1),n(o,r,h+1,a)}}return pr.quickSort=function(o,r){n(o,r,0,o.length-1)},pr}var Sl;function G$(){if(Sl)return Sn;Sl=1;var e=jn(),t=F$(),n=cc().ArraySet,o=sc(),r=H$().quickSort;function i(c,u){var h=c;return typeof c=="string"&&(h=e.parseSourceMapInput(c)),h.sections!=null?new s(h,u):new a(h,u)}i.fromSourceMap=function(c,u){return a.fromSourceMap(c,u)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(u,h){var d=u.charAt(h);return d===";"||d===","},i.prototype._parseMappings=function(u,h){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2,i.prototype.eachMapping=function(u,h,d){var f=h||null,p=d||i.GENERATED_ORDER,b;switch(p){case i.GENERATED_ORDER:b=this._generatedMappings;break;case i.ORIGINAL_ORDER:b=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var x=this.sourceRoot;b.map(function(w){var S=w.source===null?null:this._sources.at(w.source);return S=e.computeSourceURL(x,S,this._sourceMapURL),{source:S,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:this._names.at(w.name)}},this).forEach(u,f)},i.prototype.allGeneratedPositionsFor=function(u){var h=e.getArg(u,"line"),d={source:e.getArg(u,"source"),originalLine:h,originalColumn:e.getArg(u,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var f=[],p=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(p>=0){var b=this._originalMappings[p];if(u.column===void 0)for(var x=b.originalLine;b&&b.originalLine===x;)f.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p];else for(var w=b.originalColumn;b&&b.originalLine===h&&b.originalColumn==w;)f.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p]}return f},Sn.SourceMapConsumer=i;function a(c,u){var h=c;typeof c=="string"&&(h=e.parseSourceMapInput(c));var d=e.getArg(h,"version"),f=e.getArg(h,"sources"),p=e.getArg(h,"names",[]),b=e.getArg(h,"sourceRoot",null),x=e.getArg(h,"sourcesContent",null),w=e.getArg(h,"mappings"),S=e.getArg(h,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);b&&(b=e.normalize(b)),f=f.map(String).map(e.normalize).map(function(k){return b&&e.isAbsolute(b)&&e.isAbsolute(k)?e.relative(b,k):k}),this._names=n.fromArray(p.map(String),!0),this._sources=n.fromArray(f,!0),this._absoluteSources=this._sources.toArray().map(function(k){return e.computeSourceURL(b,k,u)}),this.sourceRoot=b,this.sourcesContent=x,this._mappings=w,this._sourceMapURL=u,this.file=S}a.prototype=Object.create(i.prototype),a.prototype.consumer=i,a.prototype._findSourceIndex=function(c){var u=c;if(this.sourceRoot!=null&&(u=e.relative(this.sourceRoot,u)),this._sources.has(u))return this._sources.indexOf(u);var h;for(h=0;h<this._absoluteSources.length;++h)if(this._absoluteSources[h]==c)return h;return-1},a.fromSourceMap=function(u,h){var d=Object.create(a.prototype),f=d._names=n.fromArray(u._names.toArray(),!0),p=d._sources=n.fromArray(u._sources.toArray(),!0);d.sourceRoot=u._sourceRoot,d.sourcesContent=u._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=u._file,d._sourceMapURL=h,d._absoluteSources=d._sources.toArray().map(function(y){return e.computeSourceURL(d.sourceRoot,y,h)});for(var b=u._mappings.toArray().slice(),x=d.__generatedMappings=[],w=d.__originalMappings=[],S=0,k=b.length;S<k;S++){var v=b[S],_=new l;_.generatedLine=v.generatedLine,_.generatedColumn=v.generatedColumn,v.source&&(_.source=p.indexOf(v.source),_.originalLine=v.originalLine,_.originalColumn=v.originalColumn,v.name&&(_.name=f.indexOf(v.name)),w.push(_)),x.push(_)}return r(d.__originalMappings,e.compareByOriginalPositions),d},a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}a.prototype._parseMappings=function(u,h){for(var d=1,f=0,p=0,b=0,x=0,w=0,S=u.length,k=0,v={},_={},y=[],C=[],I,R,E,P,M;k<S;)if(u.charAt(k)===";")d++,k++,f=0;else if(u.charAt(k)===",")k++;else{for(I=new l,I.generatedLine=d,P=k;P<S&&!this._charIsMappingSeparator(u,P);P++);if(R=u.slice(k,P),E=v[R],E)k+=R.length;else{for(E=[];k<P;)o.decode(u,k,_),M=_.value,k=_.rest,E.push(M);if(E.length===2)throw new Error("Found a source, but no line and column");if(E.length===3)throw new Error("Found a source and line, but no column");v[R]=E}I.generatedColumn=f+E[0],f=I.generatedColumn,E.length>1&&(I.source=x+E[1],x+=E[1],I.originalLine=p+E[2],p=I.originalLine,I.originalLine+=1,I.originalColumn=b+E[3],b=I.originalColumn,E.length>4&&(I.name=w+E[4],w+=E[4])),C.push(I),typeof I.originalLine=="number"&&y.push(I)}r(C,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=C,r(y,e.compareByOriginalPositions),this.__originalMappings=y},a.prototype._findMapping=function(u,h,d,f,p,b){if(u[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+u[d]);if(u[f]<0)throw new TypeError("Column must be greater than or equal to 0, got "+u[f]);return t.search(u,h,p,b)},a.prototype.computeColumnSpans=function(){for(var u=0;u<this._generatedMappings.length;++u){var h=this._generatedMappings[u];if(u+1<this._generatedMappings.length){var d=this._generatedMappings[u+1];if(h.generatedLine===d.generatedLine){h.lastGeneratedColumn=d.generatedColumn-1;continue}}h.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(u){var h={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=this._findMapping(h,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(d>=0){var f=this._generatedMappings[d];if(f.generatedLine===h.generatedLine){var p=e.getArg(f,"source",null);p!==null&&(p=this._sources.at(p),p=e.computeSourceURL(this.sourceRoot,p,this._sourceMapURL));var b=e.getArg(f,"name",null);return b!==null&&(b=this._names.at(b)),{source:p,line:e.getArg(f,"originalLine",null),column:e.getArg(f,"originalColumn",null),name:b}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(u){return u==null}):!1},a.prototype.sourceContentFor=function(u,h){if(!this.sourcesContent)return null;var d=this._findSourceIndex(u);if(d>=0)return this.sourcesContent[d];var f=u;this.sourceRoot!=null&&(f=e.relative(this.sourceRoot,f));var p;if(this.sourceRoot!=null&&(p=e.urlParse(this.sourceRoot))){var b=f.replace(/^file:\/\//,"");if(p.scheme=="file"&&this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];if((!p.path||p.path=="/")&&this._sources.has("/"+f))return this.sourcesContent[this._sources.indexOf("/"+f)]}if(h)return null;throw new Error('"'+f+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(u){var h=e.getArg(u,"source");if(h=this._findSourceIndex(h),h<0)return{line:null,column:null,lastColumn:null};var d={source:h,originalLine:e.getArg(u,"line"),originalColumn:e.getArg(u,"column")},f=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(f>=0){var p=this._originalMappings[f];if(p.source===d.source)return{line:e.getArg(p,"generatedLine",null),column:e.getArg(p,"generatedColumn",null),lastColumn:e.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Sn.BasicSourceMapConsumer=a;function s(c,u){var h=c;typeof c=="string"&&(h=e.parseSourceMapInput(c));var d=e.getArg(h,"version"),f=e.getArg(h,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new n,this._names=new n;var p={line:-1,column:0};this._sections=f.map(function(b){if(b.url)throw new Error("Support for url field in sections not implemented.");var x=e.getArg(b,"offset"),w=e.getArg(x,"line"),S=e.getArg(x,"column");if(w<p.line||w===p.line&&S<p.column)throw new Error("Section offsets must be ordered and non-overlapping.");return p=x,{generatedOffset:{generatedLine:w+1,generatedColumn:S+1},consumer:new i(e.getArg(b,"map"),u)}})}return s.prototype=Object.create(i.prototype),s.prototype.constructor=i,s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){for(var c=[],u=0;u<this._sections.length;u++)for(var h=0;h<this._sections[u].consumer.sources.length;h++)c.push(this._sections[u].consumer.sources[h]);return c}}),s.prototype.originalPositionFor=function(u){var h={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=t.search(h,this._sections,function(p,b){var x=p.generatedLine-b.generatedOffset.generatedLine;return x||p.generatedColumn-b.generatedOffset.generatedColumn}),f=this._sections[d];return f?f.consumer.originalPositionFor({line:h.generatedLine-(f.generatedOffset.generatedLine-1),column:h.generatedColumn-(f.generatedOffset.generatedLine===h.generatedLine?f.generatedOffset.generatedColumn-1:0),bias:u.bias}):{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(u){return u.consumer.hasContentsOfAllSources()})},s.prototype.sourceContentFor=function(u,h){for(var d=0;d<this._sections.length;d++){var f=this._sections[d],p=f.consumer.sourceContentFor(u,!0);if(p)return p}if(h)return null;throw new Error('"'+u+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(u){for(var h=0;h<this._sections.length;h++){var d=this._sections[h];if(d.consumer._findSourceIndex(e.getArg(u,"source"))!==-1){var f=d.consumer.generatedPositionFor(u);if(f){var p={line:f.line+(d.generatedOffset.generatedLine-1),column:f.column+(d.generatedOffset.generatedLine===f.line?d.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},s.prototype._parseMappings=function(u,h){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var f=this._sections[d],p=f.consumer._generatedMappings,b=0;b<p.length;b++){var x=p[b],w=f.consumer._sources.at(x.source);w=e.computeSourceURL(f.consumer.sourceRoot,w,this._sourceMapURL),this._sources.add(w),w=this._sources.indexOf(w);var S=null;x.name&&(S=f.consumer._names.at(x.name),this._names.add(S),S=this._names.indexOf(S));var k={source:w,generatedLine:x.generatedLine+(f.generatedOffset.generatedLine-1),generatedColumn:x.generatedColumn+(f.generatedOffset.generatedLine===x.generatedLine?f.generatedOffset.generatedColumn-1:0),originalLine:x.originalLine,originalColumn:x.originalColumn,name:S};this.__generatedMappings.push(k),typeof k.originalLine=="number"&&this.__originalMappings.push(k)}r(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),r(this.__originalMappings,e.compareByOriginalPositions)},Sn.IndexedSourceMapConsumer=s,Sn}var gr={},wl;function U$(){if(wl)return gr;wl=1;var e=uc().SourceMapGenerator,t=jn(),n=/(\r?\n)/,o=10,r="$$$isSourceNode$$$";function i(a,l,s,c,u){this.children=[],this.sourceContents={},this.line=a??null,this.column=l??null,this.source=s??null,this.name=u??null,this[r]=!0,c!=null&&this.add(c)}return i.fromStringWithSourceMap=function(l,s,c){var u=new i,h=l.split(n),d=0,f=function(){var S=v(),k=v()||"";return S+k;function v(){return d<h.length?h[d++]:void 0}},p=1,b=0,x=null;return s.eachMapping(function(S){if(x!==null)if(p<S.generatedLine)w(x,f()),p++,b=0;else{var k=h[d]||"",v=k.substr(0,S.generatedColumn-b);h[d]=k.substr(S.generatedColumn-b),b=S.generatedColumn,w(x,v),x=S;return}for(;p<S.generatedLine;)u.add(f()),p++;if(b<S.generatedColumn){var k=h[d]||"";u.add(k.substr(0,S.generatedColumn)),h[d]=k.substr(S.generatedColumn),b=S.generatedColumn}x=S},this),d<h.length&&(x&&w(x,f()),u.add(h.splice(d).join(""))),s.sources.forEach(function(S){var k=s.sourceContentFor(S);k!=null&&(c!=null&&(S=t.join(c,S)),u.setSourceContent(S,k))}),u;function w(S,k){if(S===null||S.source===void 0)u.add(k);else{var v=c?t.join(c,S.source):S.source;u.add(new i(S.originalLine,S.originalColumn,v,k,S.name))}}},i.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(s){this.add(s)},this);else if(l[r]||typeof l=="string")l&&this.children.push(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.prepend=function(l){if(Array.isArray(l))for(var s=l.length-1;s>=0;s--)this.prepend(l[s]);else if(l[r]||typeof l=="string")this.children.unshift(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.walk=function(l){for(var s,c=0,u=this.children.length;c<u;c++)s=this.children[c],s[r]?s.walk(l):s!==""&&l(s,{source:this.source,line:this.line,column:this.column,name:this.name})},i.prototype.join=function(l){var s,c,u=this.children.length;if(u>0){for(s=[],c=0;c<u-1;c++)s.push(this.children[c]),s.push(l);s.push(this.children[c]),this.children=s}return this},i.prototype.replaceRight=function(l,s){var c=this.children[this.children.length-1];return c[r]?c.replaceRight(l,s):typeof c=="string"?this.children[this.children.length-1]=c.replace(l,s):this.children.push("".replace(l,s)),this},i.prototype.setSourceContent=function(l,s){this.sourceContents[t.toSetString(l)]=s},i.prototype.walkSourceContents=function(l){for(var s=0,c=this.children.length;s<c;s++)this.children[s][r]&&this.children[s].walkSourceContents(l);for(var u=Object.keys(this.sourceContents),s=0,c=u.length;s<c;s++)l(t.fromSetString(u[s]),this.sourceContents[u[s]])},i.prototype.toString=function(){var l="";return this.walk(function(s){l+=s}),l},i.prototype.toStringWithSourceMap=function(l){var s={code:"",line:1,column:0},c=new e(l),u=!1,h=null,d=null,f=null,p=null;return this.walk(function(b,x){s.code+=b,x.source!==null&&x.line!==null&&x.column!==null?((h!==x.source||d!==x.line||f!==x.column||p!==x.name)&&c.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name}),h=x.source,d=x.line,f=x.column,p=x.name,u=!0):u&&(c.addMapping({generated:{line:s.line,column:s.column}}),h=null,u=!1);for(var w=0,S=b.length;w<S;w++)b.charCodeAt(w)===o?(s.line++,s.column=0,w+1===S?(h=null,u=!1):u&&c.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name})):s.column++}),this.walkSourceContents(function(b,x){c.setSourceContent(b,x)}),{code:s.code,map:c}},gr.SourceNode=i,gr}var $l;function W$(){return $l||($l=1,vn.SourceMapGenerator=uc().SourceMapGenerator,vn.SourceMapConsumer=G$().SourceMapConsumer,vn.SourceNode=U$().SourceNode),vn}(function(e,t){t.__esModule=!0;var n=be,o=void 0;try{var r=W$();o=r.SourceNode}catch{}o||(o=function(l,s,c,u){this.src="",u&&this.add(u)},o.prototype={add:function(s){n.isArray(s)&&(s=s.join("")),this.src+=s},prepend:function(s){n.isArray(s)&&(s=s.join("")),this.src=s+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function i(l,s,c){if(n.isArray(l)){for(var u=[],h=0,d=l.length;h<d;h++)u.push(s.wrap(l[h],c));return u}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function a(l){this.srcFile=l,this.source=[]}a.prototype={isEmpty:function(){return!this.source.length},prepend:function(s,c){this.source.unshift(this.wrap(s,c))},push:function(s,c){this.source.push(this.wrap(s,c))},merge:function(){var s=this.empty();return this.each(function(c){s.add([" ",c,`
524
+ `])}),s},each:function(s){for(var c=0,u=this.source.length;c<u;c++)s(this.source[c])},empty:function(){var s=this.currentLocation||{start:{}};return new o(s.start.line,s.start.column,this.srcFile)},wrap:function(s){var c=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return s instanceof o?s:(s=i(s,this,c),new o(c.start.line,c.start.column,this.srcFile,s))},functionCall:function(s,c,u){return u=this.generateList(u),this.wrap([s,c?"."+c+"(":"(",u,")"])},quotedString:function(s){return'"'+(s+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(s){var c=this,u=[];Object.keys(s).forEach(function(d){var f=i(s[d],c);f!=="undefined"&&u.push([c.quotedString(d),":",f])});var h=this.generateList(u);return h.prepend("{"),h.add("}"),h},generateList:function(s){for(var c=this.empty(),u=0,h=s.length;u<h;u++)u&&c.add(","),c.add(i(s[u],this));return c},generateArray:function(s){var c=this.generateList(s);return c.prepend("["),c.add("]"),c}},t.default=a,e.exports=t.default})(aa,aa.exports);var Z$=aa.exports;(function(e,t){t.__esModule=!0;function n(d){return d&&d.__esModule?d:{default:d}}var o=Je,r=Xe,i=n(r),a=be,l=Z$,s=n(l);function c(d){this.value=d}function u(){}u.prototype={nameLookup:function(f,p){return this.internalNameLookup(f,p)},depthedLookup:function(f){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(f),")"]},compilerInfo:function(){var f=o.COMPILER_REVISION,p=o.REVISION_CHANGES[f];return[f,p]},appendToBuffer:function(f,p,b){return a.isArray(f)||(f=[f]),f=this.source.wrap(f,p),this.environment.isSimple?["return ",f,";"]:b?["buffer += ",f,";"]:(f.appendToBuffer=!0,f)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(f,p){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",f,",",JSON.stringify(p),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(f,p,b,x){this.environment=f,this.options=p,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!x,this.name=this.environment.name,this.isChild=!!b,this.context=b||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(f,p),this.useDepths=this.useDepths||f.useDepths||f.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||f.useBlockParams;var w=f.opcodes,S=void 0,k=void 0,v=void 0,_=void 0;for(v=0,_=w.length;v<_;v++)S=w[v],this.source.currentLocation=S.loc,k=k||S.loc,this[S.opcode].apply(this,S.args);if(this.source.currentLocation=k,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new i.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
525
525
  `]),this.decorators.push("return fn;"),x?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
526
526
  `),this.decorators.push(`}
527
- `),this.decorators=this.decorators.merge()));var y=this.createFunctionContext(x);if(this.isChild)return y;var _={compiler:this.compilerInfo(),main:y};this.decorators&&(_.main_d=this.decorators,_.useDecorators=!0);var I=this.context,R=I.programs,T=I.decorators;for(w=0,C=R.length;w<C;w++)_[w]=R[w],T[w]&&(_[w+"_d"]=T[w],_.useDecorators=!0);return this.environment.usePartial&&(_.usePartial=!0),this.options.data&&(_.useData=!0),this.useDepths&&(_.useDepths=!0),this.useBlockParams&&(_.useBlockParams=!0),this.options.compat&&(_.compat=!0),x?_.compilerOptions=this.options:(_.compiler=JSON.stringify(_.compiler),this.source.currentLocation={start:{line:1,column:0}},_=this.objectLiteral(_),p.srcName?(_=_.toStringWithSourceMap({file:p.destName}),_.map=_.map&&_.map.toString()):_=_.toString()),_},preamble:function(){this.lastContext=0,this.source=new s.default(this.options.srcName),this.decorators=new s.default(this.options.srcName)},createFunctionContext:function(f){var p=this,b="",x=this.stackVars.concat(this.registers.list);x.length>0&&(b+=", "+x.join(", "));var v=0;Object.keys(this.aliases).forEach(function(w){var C=p.aliases[w];C.children&&C.referenceCount>1&&(b+=", alias"+ ++v+"="+w,C.children[0]="alias"+v)}),this.lookupPropertyFunctionIsUsed&&(b+=", "+this.lookupPropertyFunctionVarDeclaration());var S=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&S.push("blockParams"),this.useDepths&&S.push("depths");var k=this.mergeSource(b);return f?(S.push(k),Function.apply(this,S)):this.source.wrap(["function(",S.join(","),`) {
528
- `,k,"}"])},mergeSource:function(f){var p=this.environment.isSimple,b=!this.forceBuffer,x=void 0,v=void 0,S=void 0,k=void 0;return this.source.each(function(w){w.appendToBuffer?(S?w.prepend(" + "):S=w,k=w):(S&&(v?S.prepend("buffer += "):x=!0,k.add(";"),S=k=void 0),v=!0,p||(b=!1))}),b?S?(S.prepend("return "),k.add(";")):v||this.source.push('return "";'):(f+=", buffer = "+(x?"":this.initializeBuffer()),S?(S.prepend("return buffer + "),k.add(";")):this.source.push("return buffer;")),f&&this.source.prepend("var "+f.substring(2)+(x?"":`;
527
+ `),this.decorators=this.decorators.merge()));var y=this.createFunctionContext(x);if(this.isChild)return y;var C={compiler:this.compilerInfo(),main:y};this.decorators&&(C.main_d=this.decorators,C.useDecorators=!0);var I=this.context,R=I.programs,E=I.decorators;for(v=0,_=R.length;v<_;v++)C[v]=R[v],E[v]&&(C[v+"_d"]=E[v],C.useDecorators=!0);return this.environment.usePartial&&(C.usePartial=!0),this.options.data&&(C.useData=!0),this.useDepths&&(C.useDepths=!0),this.useBlockParams&&(C.useBlockParams=!0),this.options.compat&&(C.compat=!0),x?C.compilerOptions=this.options:(C.compiler=JSON.stringify(C.compiler),this.source.currentLocation={start:{line:1,column:0}},C=this.objectLiteral(C),p.srcName?(C=C.toStringWithSourceMap({file:p.destName}),C.map=C.map&&C.map.toString()):C=C.toString()),C},preamble:function(){this.lastContext=0,this.source=new s.default(this.options.srcName),this.decorators=new s.default(this.options.srcName)},createFunctionContext:function(f){var p=this,b="",x=this.stackVars.concat(this.registers.list);x.length>0&&(b+=", "+x.join(", "));var w=0;Object.keys(this.aliases).forEach(function(v){var _=p.aliases[v];_.children&&_.referenceCount>1&&(b+=", alias"+ ++w+"="+v,_.children[0]="alias"+w)}),this.lookupPropertyFunctionIsUsed&&(b+=", "+this.lookupPropertyFunctionVarDeclaration());var S=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&S.push("blockParams"),this.useDepths&&S.push("depths");var k=this.mergeSource(b);return f?(S.push(k),Function.apply(this,S)):this.source.wrap(["function(",S.join(","),`) {
528
+ `,k,"}"])},mergeSource:function(f){var p=this.environment.isSimple,b=!this.forceBuffer,x=void 0,w=void 0,S=void 0,k=void 0;return this.source.each(function(v){v.appendToBuffer?(S?v.prepend(" + "):S=v,k=v):(S&&(w?S.prepend("buffer += "):x=!0,k.add(";"),S=k=void 0),w=!0,p||(b=!1))}),b?S?(S.prepend("return "),k.add(";")):w||this.source.push('return "";'):(f+=", buffer = "+(x?"":this.initializeBuffer()),S?(S.prepend("return buffer + "),k.add(";")):this.source.push("return buffer;")),f&&this.source.prepend("var "+f.substring(2)+(x?"":`;
529
529
  `)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
530
530
  lookupProperty = container.lookupProperty || function(parent, propertyName) {
531
531
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -533,10 +533,10 @@ Expecting `+P.join(", ")+", got '"+(this.terminals_[k]||k)+"'":M="Parse error on
533
533
  }
534
534
  return undefined
535
535
  }
536
- `.trim()},blockValue:function(f){var p=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs(f,0,b);var x=this.popStack();b.splice(1,0,x),this.push(this.source.functionCall(p,"call",b))},ambiguousBlockValue:function(){var f=this.aliasable("container.hooks.blockHelperMissing"),p=[this.contextName(0)];this.setupHelperArgs("",0,p,!0),this.flushInline();var b=this.topStack();p.splice(1,0,b),this.pushSource(["if (!",this.lastHelper,") { ",b," = ",this.source.functionCall(f,"call",p),"}"])},appendContent:function(f){this.pendingContent?f=this.pendingContent+f:this.pendingLocation=this.source.currentLocation,this.pendingContent=f},append:function(){if(this.isInline())this.replaceStack(function(p){return[" != null ? ",p,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var f=this.popStack();this.pushSource(["if (",f," != null) { ",this.appendToBuffer(f,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(f){this.lastContext=f},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(f,p,b,x){var v=0;!x&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(f[v++])):this.pushContext(),this.resolvePath("context",f,v,p,b)},lookupBlockParam:function(f,p){this.useBlockParams=!0,this.push(["blockParams[",f[0],"][",f[1],"]"]),this.resolvePath("context",p,1)},lookupData:function(f,p,b){f?this.pushStackLiteral("container.data(data, "+f+")"):this.pushStackLiteral("data"),this.resolvePath("data",p,0,!0,b)},resolvePath:function(f,p,b,x,v){var S=this;if(this.options.strict||this.options.assumeObjects){this.push(h(this.options.strict&&v,this,p,b,f));return}for(var k=p.length,w=function(y){S.replaceStack(function(_){var I=S.nameLookup(_,p[y],f);return x?[" && ",I]:[" != null ? ",I," : ",_]})},C=b;C<k;C++)w(C)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(f,p){this.pushContext(),this.pushString(p),p!=="SubExpression"&&(typeof f=="string"?this.pushString(f):this.pushStackLiteral(f))},emptyHash:function(f){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(f?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var f=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(f.ids)),this.stringParams&&(this.push(this.objectLiteral(f.contexts)),this.push(this.objectLiteral(f.types))),this.push(this.objectLiteral(f.values))},pushString:function(f){this.pushStackLiteral(this.quotedString(f))},pushLiteral:function(f){this.pushStackLiteral(f)},pushProgram:function(f){f!=null?this.pushStackLiteral(this.programExpression(f)):this.pushStackLiteral(null)},registerDecorator:function(f,p){var b=this.nameLookup("decorators",p,"decorator"),x=this.setupHelperArgs(p,f);this.decorators.push(["var decorator = ",b,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+p+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",x])," || fn;"])},invokeHelper:function(f,p,b){var x=this.popStack(),v=this.setupHelper(f,p),S=[];b&&S.push(v.name),S.push(x),this.options.strict||S.push(this.aliasable("container.hooks.helperMissing"));var k=["(",this.itemsSeparatedBy(S,"||"),")"],w=this.source.functionCall(k,"call",v.callParams);this.push(w)},itemsSeparatedBy:function(f,p){var b=[];b.push(f[0]);for(var x=1;x<f.length;x++)b.push(p,f[x]);return b},invokeKnownHelper:function(f,p){var b=this.setupHelper(f,p);this.push(this.source.functionCall(b.name,"call",b.callParams))},invokeAmbiguous:function(f,p){this.useRegister("helper");var b=this.popStack();this.emptyHash();var x=this.setupHelper(0,f,p),v=this.lastHelper=this.nameLookup("helpers",f,"helper"),S=["(","(helper = ",v," || ",b,")"];this.options.strict||(S[0]="(helper = ",S.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",S,x.paramsInit?["),(",x.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",x.callParams)," : helper))"])},invokePartial:function(f,p,b){var x=[],v=this.setupParams(p,1,x);f&&(p=this.popStack(),delete v.name),b&&(v.indent=JSON.stringify(b)),v.helpers="helpers",v.partials="partials",v.decorators="container.decorators",f?x.unshift(p):x.unshift(this.nameLookup("partials",p,"partial")),this.options.compat&&(v.depths="depths"),v=this.objectLiteral(v),x.push(v),this.push(this.source.functionCall("container.invokePartial","",x))},assignToHash:function(f){var p=this.popStack(),b=void 0,x=void 0,v=void 0;this.trackIds&&(v=this.popStack()),this.stringParams&&(x=this.popStack(),b=this.popStack());var S=this.hash;b&&(S.contexts[f]=b),x&&(S.types[f]=x),v&&(S.ids[f]=v),S.values[f]=p},pushId:function(f,p,b){f==="BlockParam"?this.pushStackLiteral("blockParams["+p[0]+"].path["+p[1]+"]"+(b?" + "+JSON.stringify("."+b):"")):f==="PathExpression"?this.pushString(p):f==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:u,compileChildren:function(f,p){for(var b=f.children,x=void 0,v=void 0,S=0,k=b.length;S<k;S++){x=b[S],v=new this.compiler;var w=this.matchExistingProgram(x);if(w==null){var C=this.context.programs.push("")-1;x.index=C,x.name="program"+C,this.context.programs[C]=v.compile(x,p,this.context,!this.precompile),this.context.decorators[C]=v.decorators,this.context.environments[C]=x,this.useDepths=this.useDepths||v.useDepths,this.useBlockParams=this.useBlockParams||v.useBlockParams,x.useDepths=this.useDepths,x.useBlockParams=this.useBlockParams}else x.index=w.index,x.name="program"+w.index,this.useDepths=this.useDepths||w.useDepths,this.useBlockParams=this.useBlockParams||w.useBlockParams}},matchExistingProgram:function(f){for(var p=0,b=this.context.environments.length;p<b;p++){var x=this.context.environments[p];if(x&&x.equals(f))return x}},programExpression:function(f){var p=this.environment.children[f],b=[p.index,"data",p.blockParams];return(this.useBlockParams||this.useDepths)&&b.push("blockParams"),this.useDepths&&b.push("depths"),"container.program("+b.join(", ")+")"},useRegister:function(f){this.registers[f]||(this.registers[f]=!0,this.registers.list.push(f))},push:function(f){return f instanceof c||(f=this.source.wrap(f)),this.inlineStack.push(f),f},pushStackLiteral:function(f){this.push(new c(f))},pushSource:function(f){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),f&&this.source.push(f)},replaceStack:function(f){var p=["("],b=void 0,x=void 0,v=void 0;if(!this.isInline())throw new i.default("replaceStack on non-inline");var S=this.popStack(!0);if(S instanceof c)b=[S.value],p=["(",b],v=!0;else{x=!0;var k=this.incrStack();p=["((",this.push(k)," = ",S,")"],b=this.topStack()}var w=f.call(this,b);v||this.popStack(),x&&this.stackSlot--,this.push(p.concat(w,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var f=this.inlineStack;this.inlineStack=[];for(var p=0,b=f.length;p<b;p++){var x=f[p];if(x instanceof c)this.compileStack.push(x);else{var v=this.incrStack();this.pushSource([v," = ",x,";"]),this.compileStack.push(v)}}},isInline:function(){return this.inlineStack.length},popStack:function(f){var p=this.isInline(),b=(p?this.inlineStack:this.compileStack).pop();if(!f&&b instanceof c)return b.value;if(!p){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return b},topStack:function(){var f=this.isInline()?this.inlineStack:this.compileStack,p=f[f.length-1];return p instanceof c?p.value:p},contextName:function(f){return this.useDepths&&f?"depths["+f+"]":"depth"+f},quotedString:function(f){return this.source.quotedString(f)},objectLiteral:function(f){return this.source.objectLiteral(f)},aliasable:function(f){var p=this.aliases[f];return p?(p.referenceCount++,p):(p=this.aliases[f]=this.source.wrap(f),p.aliasable=!0,p.referenceCount=1,p)},setupHelper:function(f,p,b){var x=[],v=this.setupHelperArgs(p,f,x,b),S=this.nameLookup("helpers",p,"helper"),k=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:x,paramsInit:v,name:S,callParams:[k].concat(x)}},setupParams:function(f,p,b){var x={},v=[],S=[],k=[],w=!b,C=void 0;w&&(b=[]),x.name=this.quotedString(f),x.hash=this.popStack(),this.trackIds&&(x.hashIds=this.popStack()),this.stringParams&&(x.hashTypes=this.popStack(),x.hashContexts=this.popStack());var y=this.popStack(),_=this.popStack();(_||y)&&(x.fn=_||"container.noop",x.inverse=y||"container.noop");for(var I=p;I--;)C=this.popStack(),b[I]=C,this.trackIds&&(k[I]=this.popStack()),this.stringParams&&(S[I]=this.popStack(),v[I]=this.popStack());return w&&(x.args=this.source.generateArray(b)),this.trackIds&&(x.ids=this.source.generateArray(k)),this.stringParams&&(x.types=this.source.generateArray(S),x.contexts=this.source.generateArray(v)),this.options.data&&(x.data="data"),this.useBlockParams&&(x.blockParams="blockParams"),x},setupHelperArgs:function(f,p,b,x){var v=this.setupParams(f,p,b);return v.loc=JSON.stringify(this.source.currentLocation),v=this.objectLiteral(v),x?(this.useRegister("options"),b.push("options"),["options=",v]):b?(b.push(v),""):v}},function(){for(var d="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),f=u.RESERVED_WORDS={},p=0,b=d.length;p<b;p++)f[d[p]]=!0}(),u.isValidJavaScriptVariableName=function(d){return!u.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function h(d,f,p,b,x){var v=f.popStack(),S=p.length;d&&S--;for(var k=b;k<S;k++)v=f.nameLookup(v,p[k],x);return d?[f.aliasable("container.strict"),"(",v,", ",f.quotedString(p[S]),", ",JSON.stringify(f.source.currentLocation)," )"]:v}t.default=u,e.exports=t.default})(na,na.exports);var T$=na.exports;(function(e,t){t.__esModule=!0;function n(S){return S&&S.__esModule?S:{default:S}}var o=Z2,r=n(o),i=nc,a=n(i),l=On,s=Ln,c=T$,u=n(c),h=oc,d=n(h),f=tc,p=n(f),b=r.default.create;function x(){var S=b();return S.compile=function(k,w){return s.compile(k,w,S)},S.precompile=function(k,w){return s.precompile(k,w,S)},S.AST=a.default,S.Compiler=s.Compiler,S.JavaScriptCompiler=u.default,S.Parser=l.parser,S.parse=l.parse,S.parseWithoutProcessing=l.parseWithoutProcessing,S}var v=x();v.create=x,p.default(v),v.Visitor=d.default,v.default=v,t.default=v,e.exports=t.default})(Mr,Mr.exports);var E$=Mr.exports;const M$=Tw(E$);function Ea(e,t){const n=[],o=new Set,r=i=>{var l,s,c,u,h,d,f,p,b,x;if(o.has(i)||!e[i])return;o.add(i),n.push(i);const a=e[i];switch(a.type){case"Container":case"ButtonGroup":(((l=a.data.props)==null?void 0:l.childrenIds)||[]).forEach(r);break;case"ColumnsContainer":case"FlexColumns":(((s=a.data.props)==null?void 0:s.columns)||[]).forEach(v=>(v.childrenIds||[]).forEach(r));break;case"Grid":(((c=a.data.props)==null?void 0:c.cells)||[]).forEach(v=>(v.childrenIds||[]).forEach(r));break;case"Accordion":(((u=a.data.props)==null?void 0:u.items)||[]).forEach(v=>{(v.titleChildrenIds||[]).forEach(r),(v.contentChildrenIds||[]).forEach(r)});break;case"TabsBlock":case"Carousel":case"Marquee":(((h=a.data.props)==null?void 0:h.items)||[]).forEach(v=>{(v.contentChildrenIds||[]).forEach(r)});break;case"Pagination":(((d=a.data.props)==null?void 0:d.cells)||[]).forEach(v=>(v.childrenIds||[]).forEach(r)),(((f=a.data.props)==null?void 0:f.items)||[]).forEach(v=>{(v.contentChildrenIds||[]).forEach(r)});break;case"PricingAccordion":(((p=a.data.props)==null?void 0:p.items)||[]).forEach(v=>{(v.cardChildrenIds||[]).forEach(r),(v.detailChildrenIds||[]).forEach(r)});break;case"MenuPicker":(((b=a.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(r),(((x=a.data.props)==null?void 0:x.endChildrenIds)||[]).forEach(r);break;case"EmailLayout":(a.data.childrenIds||[]).forEach(r);break}};return r(t),n}const wo="relative",Tn="24h",P$=864e5;function Ma(e){if(e==null||e==="")return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t}function wl(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function O$(e,t){const n=Ma(e);if(!n)return"";const o=(t==null?void 0:t.now)??new Date,r=t==null?void 0:t.locale,i=Math.round((wl(n).getTime()-wl(o).getTime())/P$);if(i===0)return"Today";if(i===1)return"Tomorrow";if(i===-1)return"Yesterday";if(i>=-6&&i<=6)return n.toLocaleDateString(r,{weekday:"short"});const a=n.getFullYear()===o.getFullYear();return n.toLocaleDateString(r,{month:"short",day:"numeric",...a?{}:{year:"numeric"}})}function pr(e){const t=e%100;if(t>=11&&t<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`;default:return`${e}th`}}function L$(e,t){const o=new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"short",day:"numeric",weekday:"long"}).formatToParts(e),r=i=>{var a;return((a=o.find(l=>l.type===i))==null?void 0:a.value)??""};return{year:Number(r("year")),month:new Date(`${r("month")} 1, 2000`).getMonth(),day:Number(r("day")),weekday:r("weekday")}}const z$=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ra(e){return e<10?`0${e}`:String(e)}function aa(e,t=wo,n){if(t==="relative")return O$(e,{now:n==null?void 0:n.now,locale:n==null?void 0:n.locale});const o=Ma(e);if(!o)return"";const{year:r,month:i,day:a,weekday:l}=L$(o,n==null?void 0:n.tz),s=z$[i],c=String(r),u=ra(i+1),h=ra(a);switch(t){case"do-mmm-yyyy":return`${pr(a)} ${s} ${c}`;case"mmm-d-yyyy":return`${s} ${a}, ${c}`;case"d-mmm-yyyy":return`${a} ${s} ${c}`;case"dd-mm-yyyy":return`${h}/${u}/${c}`;case"mm-dd-yyyy":return`${u}/${h}/${c}`;case"yyyy-mm-dd":return`${c}-${u}-${h}`;case"do-mmm":return`${pr(a)} ${s}`;case"full":return`${l}, ${a} ${new Date(2e3,i,1).toLocaleDateString("en-US",{month:"long"})} ${c}`;default:return`${pr(a)} ${s} ${c}`}}function $o(e,t=Tn,n){const o=Ma(e);if(!o)return"";const i=new Intl.DateTimeFormat("en-US",{timeZone:n==null?void 0:n.tz,hour:"numeric",minute:"2-digit",hour12:t==="12h"}).formatToParts(o),a=c=>{var u;return((u=i.find(h=>h.type===c))==null?void 0:u.value)??""};if(t==="12h"){const c=a("hour"),u=a("minute"),h=a("dayPeriod").toUpperCase();return`${c}:${u} ${h}`}const l=ra(Number(a("hour"))%24),s=a("minute");return`${l}:${s}`}function uc(e,t){const n=new Map;if(!e||!Array.isArray(t))return n;const o=e;for(const r of t){if((r==null?void 0:r.type)!=="array"||!r.sourceBlockId)continue;(Array.isArray(r.value)?r.value:[]).forEach((a,l)=>{var c;const s=l===0?r.sourceBlockId:(c=r.rowIds)==null?void 0:c[l-1];if(!(!s||!o[s]))for(const u of Ea(o,s))n.set(u,a||{})})}return n}const j$={Text:["text"],Heading:["text"],Button:["text","url"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Progress:["value","max"],Container:["linkHref"]};function B$(e){return e?j$[e]:void 0}const ia=M$.create();ia.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new ia.SafeString(`{{${t.name}}}`)});const $l=new Map;function D$(e){let t=$l.get(e);return t||(t=ia.compile(e,{noEscape:!0,strict:!1}),$l.set(e,t)),t}function dc(e){const t={};for(const n of e)if(!(!n||!n.id)){if(n.type==="array"){if(!Array.isArray(n.value)||n.value.length===0)continue;const o=new Map;for(const i of n.itemFields??[])((i==null?void 0:i.type)==="date"||(i==null?void 0:i.type)==="time"||(i==null?void 0:i.type)==="datetime")&&i.id&&o.set(i.id,i);const r=n.value.map(i=>{const a={};if(i&&typeof i=="object")for(const l of Object.keys(i)){const s=i[l];if(s==null||s==="")continue;const c=o.get(l);if((c==null?void 0:c.type)==="datetime"){const u=lo(l,String(s),o,"date"),h=lo(l,String(s),o,"time"),d={date:u,time:h};Object.defineProperty(d,"toString",{value:()=>[u,h].filter(Boolean).join(" "),enumerable:!1}),a[l]=d}else a[l]=c?lo(l,String(s),o):s}return a});Object.defineProperty(r,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=r;continue}if(n.type==="datetime"){const o=n.id,r=typeof n.value=="string"?n.value:"";if(!r){const c={date:`{{${o}.date}}`,time:`{{${o}.time}}`};Object.defineProperty(c,"toString",{value:()=>`{{${o}}}`,enumerable:!1}),t[o]=c;continue}const i=n.dateFormat??wo,a=i==="relative"?$r(o,r):aa(r,i,{tz:n.dateTz}),l=$o(r,n.timeFormat??Tn,{tz:n.dateTz}),s={date:a,time:l};Object.defineProperty(s,"toString",{value:()=>[a,l].filter(Boolean).join(" "),enumerable:!1}),t[o]=s;continue}if(!(typeof n.value!="string"||n.value==="")){if(n.type==="date"){const o=n.dateFormat??wo;t[n.id]=o==="relative"?$r(n.id,n.value):aa(n.value,o,{tz:n.dateTz});continue}if(n.type==="time"){t[n.id]=$o(n.value,n.timeFormat??Tn,{tz:n.dateTz});continue}t[n.id]=n.value}}return t}function Pa(e){var n,o;const t=(o=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:o.formFields;return Array.isArray(t)?t:[]}const F$=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function H$(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let o=0;return{masked:e.replace(F$,(i,a)=>{const l=t[a];if(Array.isArray(l)&&l.length>0)return i;const c="HB_EACH_"+o+++"_";return n.set(c,i),c}),restore:n}}const hc=/\{\{\s*this\.([\w]+)(?:\.(date|time))?\s*\}\}/g;function G$(e){const t=new Map;if(!Array.isArray(e))return t;for(const n of e)if(!((n==null?void 0:n.type)!=="array"||!Array.isArray(n.itemFields)))for(const o of n.itemFields)((o==null?void 0:o.type)==="date"||(o==null?void 0:o.type)==="time"||(o==null?void 0:o.type)==="datetime")&&o.id&&!t.has(o.id)&&t.set(o.id,o);return t}function kl(e,t,n){const o=n.dateFormat??wo;return o==="relative"?$r(e,t):aa(t,o,{tz:n.dateTz})}function lo(e,t,n,o){const r=n.get(e);if(!r)return t;if(r.type==="time")return $o(t,r.timeFormat??Tn,{tz:r.dateTz});if(r.type==="datetime"){const i=$o(t,r.timeFormat??Tn,{tz:r.dateTz});if(o==="time")return i;const a=kl(e,t,r);return o==="date"?a:[a,i].filter(Boolean).join(" ")}return kl(e,t,r)}function U$(e,t,n){return e.replace(hc,(o,r,i)=>{const a=t==null?void 0:t[r];return a==null||a===""?o:n?lo(r,String(a),n,i):String(a)})}function Sn(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let o=e;if(n&&(o=U$(o,n,G$(t)),o.indexOf("{{")===-1)||!t||t.length===0)return o;try{const r=t&&t.length>0?dc(t):{},{masked:i,restore:a}=H$(o,r),l=new Map;let s=i;if(i.indexOf("{{")!==-1&&i.indexOf("#each")===-1){let u=0;s=i.replace(hc,h=>{const d="HB_THIS_"+u+++"_";return l.set(d,h),d})}let c=D$(s)(r);for(const[u,h]of l)c=c.split(u).join(h);if(a.size>0)for(const[u,h]of a)c=c.split(u).join(h);return c}catch{return o}}function fc(e,t,n,o){var l,s,c,u,h,d,f,p,b;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="TabsBlock"){const x=(s=(l=e.data)==null?void 0:l.props)==null?void 0:s.items;if(!Array.isArray(x)||x.length===0)return e;let v=null;return x.forEach((S,k)=>{const w=S==null?void 0:S.label;if(typeof w!="string"||w.indexOf("{{")===-1)return;const C=Array.isArray(S==null?void 0:S.contentChildrenIds)?S.contentChildrenIds[0]:void 0,y=C&&o?o.get(C):n,_=Sn(w,t,y??null);_!==w&&(v||(v=x.map(I=>({...I}))),v[k]={...v[k],label:_})}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="List"){const x=(u=(c=e.data)==null?void 0:c.props)==null?void 0:u.items;if(!Array.isArray(x)||x.length===0)return e;let v=null;return x.forEach((S,k)=>{const w=S==null?void 0:S.text;if(typeof w!="string"||w.indexOf("{{")===-1)return;const C=Sn(w,t,n);C!==w&&(v||(v=x.map(y=>({...y}))),v[k]={...v[k],text:C})}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="Breadcrumb"){const x=(d=(h=e.data)==null?void 0:h.props)==null?void 0:d.items;if(!Array.isArray(x)||x.length===0)return e;let v=null;return x.forEach((S,k)=>{for(const w of["label","href"]){const C=S==null?void 0:S[w];if(typeof C!="string"||C.indexOf("{{")===-1)continue;const y=Sn(C,t,n);y!==C&&(v||(v=x.map(_=>({..._}))),v[k]={...v[k],[w]:y})}}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="Table"){const x=(p=(f=e.data)==null?void 0:f.props)==null?void 0:p.cells;if(!Array.isArray(x)||x.length===0)return e;let v=null;return x.forEach((S,k)=>{if(typeof S!="string"||S.indexOf("{{")===-1)return;const w=Sn(S,t,n);w!==S&&(v||(v=[...x]),v[k]=w)}),v?{...e,data:{...e.data,props:{...e.data.props,cells:v}}}:e}const r=B$(e.type);if(!r)return e;const i=(b=e.data)==null?void 0:b.props;if(!i)return e;let a=null;for(const x of r){const v=i[x];if(typeof v!="string"||v.indexOf("{{")===-1)continue;const S=Sn(v,t,n);S!==v&&(a||(a={...i}),a[x]=S)}return a?{...e,data:{...e.data,props:a}}:e}function Oa(e,t){var l;if(!e)return e;const n=t??Pa(e);let o={...e},r=!1;const i=uc(e,n);if(n&&n.length>0&&(Object.keys(dc(n)).length>0||i.size>0))for(const s of Object.keys(o)){const c=o[s],u=fc(c,n,i.get(s),i);u!==c&&(o[s]=u,r=!0)}const a=o.root;if(((l=a==null?void 0:a.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...c}=a.data;o.root={...a,data:c},r=!0}return r?o:e}const _l=Object.fromEntries(pt.map(e=>[e.key,e.value]));function zt(e){return!!e&&typeof e=="object"&&"top"in e&&"left"in e}function La(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function W$(e,t){const n=e.borderColor??(t==null?void 0:t.borderColor)??null;if(!n)return"";if(n==="transparent")return"border:none!important";const o=zt(e.borderWidth)?e.borderWidth:zt(t==null?void 0:t.borderWidth)?t==null?void 0:t.borderWidth:null;return La(n)?`padding:${(o==null?void 0:o.top)??0}px ${(o==null?void 0:o.right)??0}px ${(o==null?void 0:o.bottom)??0}px ${(o==null?void 0:o.left)??0}px!important`:[`border-top:${(o==null?void 0:o.top)??0}px solid ${n}!important`,`border-right:${(o==null?void 0:o.right)??0}px solid ${n}!important`,`border-bottom:${(o==null?void 0:o.bottom)??0}px solid ${n}!important`,`border-left:${(o==null?void 0:o.left)??0}px solid ${n}!important`].join(";")}function Z$(e,t,n){const o=t.borderColor??(n==null?void 0:n.borderColor)??null;if(!o||!La(o))return"";const r=t.padding;if(!zt(r))return"";const i=`padding:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`;return`${e}>.container-block>.container-block-inner{${i}}`}function V$(e,t){const n=[],o=e.borderColor!==void 0||e.borderWidth!==void 0,r=La((t==null?void 0:t.borderColor)??"");if(o||e.padding!==void 0&&r){const a=W$(e,t);a&&n.push(a)}const i=e.backgroundSize==="none";i&&n.push("background-image:none!important");for(const a of Object.keys(e)){const l=e[a];if(l!=null)switch(a){case"borderColor":case"borderWidth":break;case"fontSize":n.push(`font-size:${l}px!important`);break;case"fontFamily":_l[l]&&n.push(`font-family:${_l[l]}!important`);break;case"fontWeight":n.push(`font-weight:${l}!important`);break;case"fontStyle":n.push(`font-style:${l}!important`);break;case"textDecoration":n.push(`text-decoration:${l}!important`);break;case"lineHeight":n.push(`line-height:${l}!important`);break;case"textAlign":n.push(`text-align:${l}!important`);break;case"buttonTextAlign":n.push(`justify-content:${l==="center"?"center":l==="right"?"flex-end":"flex-start"}!important`);break;case"padding":zt(l)&&!r&&n.push(`padding:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"margin":zt(l)&&n.push(`margin:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"marginBottom":n.push(`margin-bottom:${l}px!important`);break;case"width":n.push(`width:${typeof l=="number"?`${l}px`:l}!important`);break;case"height":n.push(`height:${typeof l=="number"?`${l}px`:l}!important`);break;case"backgroundImage":n.push(l&&!i?`background-image:url("${String(l).replace(/"/g,'\\"')}")!important`:"background-image:none!important");break;case"backgroundSize":i||n.push(`background-size:${l}!important`);break;case"backgroundRepeat":n.push(`background-repeat:${l}!important`);break;case"activeFontSize":n.push(`--ahd-tabs-active-font-size:${typeof l=="number"?`${l}px`:l}`);break;case"showActiveBorder":n.push(`--ahd-tabs-active-border-color:${l?"currentColor":"transparent"}`);break;case"tabGap":n.push(`--ahd-tabs-tab-gap:${l}px`);break;case"contentGap":n.push(`--ahd-tabs-content-gap:${l}px`);break;case"navWidth":n.push(`--ahd-tabs-nav-width:${l}px`);break;case"starSize":n.push(`--ahd-rating-star-size:${l}px`);break;case"starGap":n.push(`--ahd-rating-star-gap:${l}px`);break;case"arrowSize":n.push(`--ahd-carousel-arrow-size:${l}px`),n.push(`--ahd-carousel-chevron-size:${Math.max(12,Math.min(40,Math.round(Number(l)*.5)))}px`);break;case"dotSize":n.push(`--ahd-carousel-dot-size:${l}px`);break;case"slideGap":n.push(`--ahd-carousel-slide-gap:${l}px`);break;case"buttonSize":n.push(`--ahd-pgn-btn-size:${l}px`);break;case"buttonGap":n.push(`--ahd-pgn-btn-gap:${l}px`);break;case"buttonRadius":n.push(`--ahd-pgn-btn-radius:${l}px`);break;case"controlGap":n.push(`--ahd-pgn-control-gap:${l}px`);break;case"borderRadius":if(typeof l=="number")n.push(`border-radius:${l}px!important`);else if(l&&typeof l=="object"){const{topLeft:s=0,topRight:c=0,bottomRight:u=0,bottomLeft:h=0}=l;n.push(`border-radius:${s}px ${c}px ${u}px ${h}px!important`)}else n.push(`border-radius:${l}!important`);break}}return n.join(";")}function q$(e){const t=[];for(const n of Object.keys(e)){const o=e[n];if(o!=null)switch(n){case"lineHeight":t.push(`--ahd-divider-thickness:${o}px!important`);break;case"height":{const r=typeof o=="number"?`${o}px`:o;t.push(`height:${r}!important`),t.push(`--ahd-iframe-height:${r}`),t.push(`--ahd-calendly-height:${r}`),t.push(`--ahd-demo-height:${r}`);break}case"width":{const r=typeof o=="number"?`${o}px`:o;t.push(`--ahd-iframe-width:${r}`),t.push(`--ahd-calendly-width:${r}`),t.push(`--ahd-demo-width:${r}`);break}case"blockPadding":zt(o)&&t.push(`padding:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break;case"blockMargin":zt(o)&&t.push(`margin:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break}}return t.join(";")}function Y$(e){return`${e}>.text-block>div,${e}>.heading-block-wrapper>.heading-block`}function K$(e){if(e==null)return"";const t=Number(e);return t>0?"display:-webkit-box!important;-webkit-line-clamp:"+t+"!important;-webkit-box-orient:vertical!important;overflow:hidden!important":"display:block!important;overflow:visible!important"}function Cl(e,t){if(!t)return null;const n=e??{},o={};for(const r of Object.keys(t)){const i=t[r],a=n[r],l=!!i&&typeof i=="object"&&!Array.isArray(i)&&!!a&&typeof a=="object"&&!Array.isArray(a);o[r]=l?{...a,...i}:i}return o}function J$(e,t,n,o){if(!t)return"";const r=`#${e}`,i=Q$(r),a=Y$(r),l=[],s=(u,h)=>{const d=Cl(n,h==null?void 0:h.style),f=Cl(o,h==null?void 0:h.props),p=[d?V$(d,n):"",f?q$(f):""].filter(Boolean).join(";"),b=d?Z$(r,d,n):"",x=[p?`${i}{${p}}`:"",b,h!=null&&h.hidden?`${r}{display:none}`:""].filter(Boolean).join("");if(x&&l.push(`${u}{${x}}`),h!=null&&h.style&&"lineClamp"in h.style){const v=K$(d==null?void 0:d.lineClamp);v&&l.push(`${u}{${a}{${v}}}`)}};s(Bt,t.tablet),s(`@media (max-width:${Oe}px)`,t.mobile);const c=tk(e,t,n,o);return c&&l.push(c),l.join("")}function X$(e,t){return t?e?{...e,...t}:t:e}function la(e,t){return(t==null?void 0:t.blockMargin)??(e==null?void 0:e.margin)??(t==null?void 0:t.margin)??null}function Al(e,t,n){const o=la(e,t),r=la(n==null?void 0:n.style,n==null?void 0:n.props);return X$(o,r)}function gr(e){const t=((e==null?void 0:e.left)??0)+((e==null?void 0:e.right)??0);return t>0?`calc(100% - ${t}px)`:"100%"}function Q$(e){return[`${e}>.text-block`,`${e}>.button-block`,`${e}>.button-group`,`${e}>.heading-block-wrapper`,`${e}>.heading-block-wrapper>.heading-block`,`${e}>.image-block`,`${e}>.logo-block`,`${e}>.avatar-block`,`${e}>.container-block`,`${e}>.flex-columns-block`,`${e}>.grid-block`,`${e}>.video-block`,`${e}>.youtube-url-block`,`${e}>.divider-block`,`${e}>.mdx-block`,`${e}>.quill-block`,`${e}>.html-block`,`${e}>.stepper-block`,`${e}>.list-block`,`${e}>.rating-block`,`${e}>.table-block`,`${e}>.table-block table`,`${e}>.spacer-block`,`${e}>.accordion-block`,`${e}>.columns-container`,`${e}>.ahd-carousel`,`${e}>.ahd-marquee`,`${e}>.ahd-pagination`,`${e}>.ahd-tabs`,`${e}>.calendly-block`,`${e}>.iframe-block`,`${e}>.demo-picker-block`,`${e}>.ahd-menu`].join(",")}function ek(e){return[`${e}>.text-block`,`${e}>.button-block`,`${e}>.button-group`,`${e}>.heading-block-wrapper`,`${e}>.heading-block-wrapper>.heading-block`,`${e}>.image-block`,`${e}>.logo-block`,`${e}>.avatar-block`,`${e}>.container-block`,`${e}>.flex-columns-block`,`${e}>.grid-block`,`${e}>.video-block`,`${e}>.youtube-url-block`,`${e}>.divider-block`,`${e}>.mdx-block`,`${e}>.quill-block`,`${e}>.html-block`,`${e}>.stepper-block`,`${e}>.list-block`,`${e}>.rating-block`,`${e}>.table-block`,`${e}>.table-block table`,`${e}>.spacer-block`,`${e}>.accordion-block`,`${e}>.columns-container`,`${e}>.ahd-carousel`,`${e}>.ahd-marquee`,`${e}>.ahd-pagination`,`${e}>.ahd-tabs`,`${e}>.calendly-block`,`${e}>.iframe-block`,`${e}>.demo-picker-block`,`${e}>.forms-picker-block`,`${e}>.ahd-timer`,`${e}>.ahd-menu`].join(",")}function tk(e,t,n,o){if(!t)return"";const r=`#${e}`,i=ek(r),a=la(n,o),l=gr(a),s=gr(Al(n,o,t.tablet)),c=gr(Al(n,o,t.mobile));return s===l&&c===l?"":`
537
- ${Bt} { ${i} { width: ${s} !important; max-width: 100% !important; } }
538
- @media (max-width:${Oe}px) { ${i} { width: ${c} !important; max-width: 100% !important; } }
539
- `.trim()}const nk=e=>{var o,r;const t=!!((o=e==null?void 0:e.props)!=null&&o.decorative),n=((r=e==null?void 0:e.props)==null?void 0:r.alt)??"";return t?g.jsx("div",{"aria-hidden":"true",role:"presentation",style:{display:"contents"},children:g.jsx(Si,{...e,props:{...(e==null?void 0:e.props)??{},alt:""}})}):g.jsx(Si,{...e,props:{...(e==null?void 0:e.props)??{},alt:n}})},ok=({props:e})=>g.jsx("div",{"aria-hidden":"true",className:"spacer-block",style:{height:(e==null?void 0:e.height)??zb.height}}),rk=xv,mc=U.createContext({}),yl=U.createContext(!1),ak=typeof window<"u"?U.useLayoutEffect:U.useEffect;function pc(e){var n,o;const t=(o=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:o.formFields;return Array.isArray(t)?t:[]}const Il=new WeakMap;function ik(e){if(!e||typeof e!="object")return new Map;let t=Il.get(e);return t||(t=uc(e,pc(e)),Il.set(e,t)),t}const gc=U.createContext({});function lk(){return U.useContext(mc)}function sk(){return U.useContext(gc)}const bc={ColumnsContainer:{schema:K0,Component:X0},FlexColumns:{schema:Q0,Component:ix},Grid:{schema:bx,Component:wx},ButtonGroup:{schema:Qv,Component:e1},Container:{schema:Fx,Component:Ms},EmailLayout:{schema:Xx,Component:rk},Accordion:{schema:n1,Component:a1},PricingAccordion:{schema:l1,Component:c1},TabsBlock:{schema:h1,Component:v1},Carousel:{schema:w1,Component:C1},Rating:{schema:A1,Component:N1},Progress:{schema:M1,Component:B1},Marquee:{schema:D1,Component:eS},Timer:{schema:oS,Component:hS},Pagination:{schema:gS,Component:_S},Table:{schema:CS,Component:yS},DemoPicker:{schema:IS,Component:e=>g.jsx(NS,{...e})},MenuPicker:{schema:MS,Component:e=>g.jsx(JS,{...e})},Breadcrumb:{schema:nw,Component:uw},FormsPicker:{schema:dw,Component:e=>g.jsx(pw,{...e})},AppBannerPicker:{schema:gw,Component:e=>g.jsx(vw,{...e})},FaqPicker:{schema:Sw,Component:e=>g.jsx(kw,{...e})},Avatar:{schema:Nm,Component:nk},Button:{schema:Pp,Component:Op},Divider:{schema:Up,Component:Wp},Heading:{schema:ng,Component:og},Html:{schema:Eg,Component:Og},Image:{schema:Jg,Component:Qg},Logo:{schema:pb,Component:bb},Video:{schema:Tb,Component:Ob},IFrame:{schema:x0,Component:w0},Calendly:{schema:_0,Component:y0},YouTubeUrl:{schema:f0,Component:p0},Spacer:{schema:Lb,Component:ok},SkipLink:{schema:_w,Component:Us},AccessibilityTools:{schema:Aw,Component:qs},Stepper:{schema:Iv,Component:Rv},List:{schema:jv,Component:Dv},Text:{schema:i0,Component:s0}},xc=M0(bc),ck=on($(),xc),uk=E0(bc);function Ae({id:e}){var w,C,y,_,I,R,T;const t=lk(),{staticRender:n,injectElementIds:o,mainBlockId:r,hoistedSkipLinkId:i,hoistedA11yToolsId:a}=sk(),l=t[e];if(i&&e===i&&(l==null?void 0:l.type)==="SkipLink"||a&&e===a&&(l==null?void 0:l.type)==="AccessibilityTools")return null;const s=r&&e===r&&(l==null?void 0:l.type)==="Container"?{...l,data:{...l.data,props:{...((w=l.data)==null?void 0:w.props)??{},elementId:"main-content"}}}:l,c=pc(t),u=ik(t),h=u.get(e),d=fc(s,c,h,u),f=(d==null?void 0:d.type)==="Container"?g.jsx(Ms,{...d.data,blockId:e}):g.jsx(uk,{...d});if(e==="root")return f;const p=!!((C=d==null?void 0:d.data)!=null&&C.hidden),x=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]).has(d==null?void 0:d.type)?(_=(y=d==null?void 0:d.data)==null?void 0:y.props)==null?void 0:_.animation:null,v=x&&x.type&&x.type!=="none"?{"data-animate-type":x.type,"data-animate-trigger":x.trigger??"load","data-animate-speed":x.speed??"medium","data-animate-delay":x.delay??0,...x.disableOnMobile?{"data-animate-disable-mobile":"true"}:{}}:{},S=n&&o?`ahd-${e}`:e,k=J$(S,(I=d==null?void 0:d.data)==null?void 0:I.responsive,(R=d==null?void 0:d.data)==null?void 0:R.style,(T=d==null?void 0:d.data)==null?void 0:T.props);return n&&o?g.jsxs("div",{id:S,className:"ahd-block-wrapper",style:p?{display:"none"}:void 0,...v,children:[k?g.jsx("style",{dangerouslySetInnerHTML:{__html:k}}):null,f]}):g.jsxs("div",{id:e,style:{scrollMarginTop:"80px",...p?{display:"none"}:null},...v,children:[k?g.jsx("style",{dangerouslySetInnerHTML:{__html:k}}):null,f]})}function En({document:e,rootBlockId:t,staticRender:n,injectElementIds:o,isBanner:r,mainBlockId:i,hoistedSkipLinkId:a,hoistedA11yToolsId:l}){const s=U.useMemo(()=>({staticRender:!!n,injectElementIds:!!o,isBanner:!!r,mainBlockId:i,hoistedSkipLinkId:a,hoistedA11yToolsId:l}),[n,o,r,i,a,l]),c=U.useContext(yl),u=U.useRef(null);return ak(()=>{n||c||u.current&&(xp(u.current),vp(u.current))},[n,c,e,t]),g.jsx("div",{ref:u,style:{display:"contents"},children:g.jsx(mc.Provider,{value:e,children:g.jsx(gc.Provider,{value:s,children:g.jsx(yl.Provider,{value:!0,children:g.jsx(Ae,{id:t})})})})})}function dk(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="SkipLink")return t}function hk(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="AccessibilityTools")return t}function fk(e,t){const n=new Set;function o(r){var s,c,u,h;if(n.has(r))return;n.add(r);const i=e[r];if(!i)return;if(i.type==="Container"&&((c=(s=i.data)==null?void 0:s.props)==null?void 0:c.tag)==="main")return r;const a=((u=i.data)==null?void 0:u.props)??{},l=[];Array.isArray(a.childrenIds)&&l.push(a.childrenIds),Array.isArray((h=i.data)==null?void 0:h.childrenIds)&&l.push(i.data.childrenIds),Array.isArray(a.columns)&&a.columns.forEach(d=>{Array.isArray(d==null?void 0:d.childrenIds)&&l.push(d.childrenIds)});for(const d of l)for(const f of d){const p=o(f);if(p)return p}}return o(t)}const mk=()=>`<img alt="" src="x:invalid" style="display:none" onerror="${"var s=this;setTimeout(function(){try{var root=s.closest('[data-ahd-tpl-root]')||s.parentNode||document.body;if(!root){s.parentNode&&s.parentNode.removeChild(s);return;}var p=new URLSearchParams(location.search);var els=root.querySelectorAll('[data-ahd-var]');for(var i=0;i<els.length;i++){var el=els[i];var v=p.get(el.getAttribute('data-ahd-var')||'');if(v!==null){el.textContent=v;}}var hs=root.querySelectorAll('[data-ahd-href-tpl]');for(var j=0;j<hs.length;j++){var he=hs[j];var tpl=he.getAttribute('data-ahd-href-tpl')||'';var filled=tpl.replace(/\\{\\{\\s*([a-zA-Z_][a-zA-Z0-9_-]*)\\s*\\}\\}/g,function(m,n){var pv=p.get(n);return pv!==null?encodeURIComponent(pv):m;});he.setAttribute('href',filled);he.removeAttribute('data-ahd-href-tpl');}var ds=root.querySelectorAll('[data-ahd-date]');if(ds.length){var now=new Date();var sod=function(d){return new Date(d.getFullYear(),d.getMonth(),d.getDate()).getTime();};for(var k=0;k<ds.length;k++){var de=ds[k];var iso=de.getAttribute('data-ahd-date')||'';if(!iso)continue;var dt=new Date(iso);if(isNaN(dt.getTime()))continue;var diff=Math.round((sod(dt)-sod(now))/86400000);var lbl;if(diff===0){lbl='Today';}else if(diff===1){lbl='Tomorrow';}else if(diff===-1){lbl='Yesterday';}else if(diff>=-6&&diff<=6){lbl=dt.toLocaleDateString(undefined,{weekday:'short'});}else{var o={month:'short',day:'numeric'};if(dt.getFullYear()!==now.getFullYear()){o.year='numeric';}lbl=dt.toLocaleDateString(undefined,o);}de.textContent=lbl;}}s.parentNode&&s.parentNode.removeChild(s);}catch(e){}},0);".replace(/"/g,"&quot;")}">`,pk=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="TabsBlock"),gk=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="DemoPicker"),bk=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Carousel"),xk=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Pagination"),vk=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Timer"),Sk=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]),Rl=e=>Object.values(e??{}).some(t=>{var n,o,r;return Sk.has(t==null?void 0:t.type)&&((r=(o=(n=t==null?void 0:t.data)==null?void 0:n.props)==null?void 0:o.animation)==null?void 0:r.type)&&t.data.props.animation.type!=="none"}),un="https://pagepilot.fabbuilder.com/scripts",wk=`${un}/pagePilotTabs.js`,$k=`${un}/pagePilotCarousel.js`,kk=`${un}/pagePilotPagination.js`,_k=`${un}/pagePilotDemoScale.js`,Ck=`${un}/pagePilotTimer.js`,Ak=`${un}/pagePilotAnimation.js`,yk=()=>`<img alt="" src="x:invalid" style="display:none" onerror="${"var s=this;setTimeout(function(){try{var d=document.documentElement;var cs=d.style.colorScheme;if(!cs&&window.getComputedStyle){cs=getComputedStyle(d).colorScheme;}if((!cs||cs==='normal')&&!d.hasAttribute('data-theme')){d.style.colorScheme='light dark';}s.parentNode&&s.parentNode.removeChild(s);}catch(e){}},0);".replace(/"/g,"&quot;")}">`,Ik=`
536
+ `.trim()},blockValue:function(f){var p=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs(f,0,b);var x=this.popStack();b.splice(1,0,x),this.push(this.source.functionCall(p,"call",b))},ambiguousBlockValue:function(){var f=this.aliasable("container.hooks.blockHelperMissing"),p=[this.contextName(0)];this.setupHelperArgs("",0,p,!0),this.flushInline();var b=this.topStack();p.splice(1,0,b),this.pushSource(["if (!",this.lastHelper,") { ",b," = ",this.source.functionCall(f,"call",p),"}"])},appendContent:function(f){this.pendingContent?f=this.pendingContent+f:this.pendingLocation=this.source.currentLocation,this.pendingContent=f},append:function(){if(this.isInline())this.replaceStack(function(p){return[" != null ? ",p,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var f=this.popStack();this.pushSource(["if (",f," != null) { ",this.appendToBuffer(f,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(f){this.lastContext=f},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(f,p,b,x){var w=0;!x&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(f[w++])):this.pushContext(),this.resolvePath("context",f,w,p,b)},lookupBlockParam:function(f,p){this.useBlockParams=!0,this.push(["blockParams[",f[0],"][",f[1],"]"]),this.resolvePath("context",p,1)},lookupData:function(f,p,b){f?this.pushStackLiteral("container.data(data, "+f+")"):this.pushStackLiteral("data"),this.resolvePath("data",p,0,!0,b)},resolvePath:function(f,p,b,x,w){var S=this;if(this.options.strict||this.options.assumeObjects){this.push(h(this.options.strict&&w,this,p,b,f));return}for(var k=p.length,v=function(y){S.replaceStack(function(C){var I=S.nameLookup(C,p[y],f);return x?[" && ",I]:[" != null ? ",I," : ",C]})},_=b;_<k;_++)v(_)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(f,p){this.pushContext(),this.pushString(p),p!=="SubExpression"&&(typeof f=="string"?this.pushString(f):this.pushStackLiteral(f))},emptyHash:function(f){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(f?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var f=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(f.ids)),this.stringParams&&(this.push(this.objectLiteral(f.contexts)),this.push(this.objectLiteral(f.types))),this.push(this.objectLiteral(f.values))},pushString:function(f){this.pushStackLiteral(this.quotedString(f))},pushLiteral:function(f){this.pushStackLiteral(f)},pushProgram:function(f){f!=null?this.pushStackLiteral(this.programExpression(f)):this.pushStackLiteral(null)},registerDecorator:function(f,p){var b=this.nameLookup("decorators",p,"decorator"),x=this.setupHelperArgs(p,f);this.decorators.push(["var decorator = ",b,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+p+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",x])," || fn;"])},invokeHelper:function(f,p,b){var x=this.popStack(),w=this.setupHelper(f,p),S=[];b&&S.push(w.name),S.push(x),this.options.strict||S.push(this.aliasable("container.hooks.helperMissing"));var k=["(",this.itemsSeparatedBy(S,"||"),")"],v=this.source.functionCall(k,"call",w.callParams);this.push(v)},itemsSeparatedBy:function(f,p){var b=[];b.push(f[0]);for(var x=1;x<f.length;x++)b.push(p,f[x]);return b},invokeKnownHelper:function(f,p){var b=this.setupHelper(f,p);this.push(this.source.functionCall(b.name,"call",b.callParams))},invokeAmbiguous:function(f,p){this.useRegister("helper");var b=this.popStack();this.emptyHash();var x=this.setupHelper(0,f,p),w=this.lastHelper=this.nameLookup("helpers",f,"helper"),S=["(","(helper = ",w," || ",b,")"];this.options.strict||(S[0]="(helper = ",S.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",S,x.paramsInit?["),(",x.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",x.callParams)," : helper))"])},invokePartial:function(f,p,b){var x=[],w=this.setupParams(p,1,x);f&&(p=this.popStack(),delete w.name),b&&(w.indent=JSON.stringify(b)),w.helpers="helpers",w.partials="partials",w.decorators="container.decorators",f?x.unshift(p):x.unshift(this.nameLookup("partials",p,"partial")),this.options.compat&&(w.depths="depths"),w=this.objectLiteral(w),x.push(w),this.push(this.source.functionCall("container.invokePartial","",x))},assignToHash:function(f){var p=this.popStack(),b=void 0,x=void 0,w=void 0;this.trackIds&&(w=this.popStack()),this.stringParams&&(x=this.popStack(),b=this.popStack());var S=this.hash;b&&(S.contexts[f]=b),x&&(S.types[f]=x),w&&(S.ids[f]=w),S.values[f]=p},pushId:function(f,p,b){f==="BlockParam"?this.pushStackLiteral("blockParams["+p[0]+"].path["+p[1]+"]"+(b?" + "+JSON.stringify("."+b):"")):f==="PathExpression"?this.pushString(p):f==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:u,compileChildren:function(f,p){for(var b=f.children,x=void 0,w=void 0,S=0,k=b.length;S<k;S++){x=b[S],w=new this.compiler;var v=this.matchExistingProgram(x);if(v==null){var _=this.context.programs.push("")-1;x.index=_,x.name="program"+_,this.context.programs[_]=w.compile(x,p,this.context,!this.precompile),this.context.decorators[_]=w.decorators,this.context.environments[_]=x,this.useDepths=this.useDepths||w.useDepths,this.useBlockParams=this.useBlockParams||w.useBlockParams,x.useDepths=this.useDepths,x.useBlockParams=this.useBlockParams}else x.index=v.index,x.name="program"+v.index,this.useDepths=this.useDepths||v.useDepths,this.useBlockParams=this.useBlockParams||v.useBlockParams}},matchExistingProgram:function(f){for(var p=0,b=this.context.environments.length;p<b;p++){var x=this.context.environments[p];if(x&&x.equals(f))return x}},programExpression:function(f){var p=this.environment.children[f],b=[p.index,"data",p.blockParams];return(this.useBlockParams||this.useDepths)&&b.push("blockParams"),this.useDepths&&b.push("depths"),"container.program("+b.join(", ")+")"},useRegister:function(f){this.registers[f]||(this.registers[f]=!0,this.registers.list.push(f))},push:function(f){return f instanceof c||(f=this.source.wrap(f)),this.inlineStack.push(f),f},pushStackLiteral:function(f){this.push(new c(f))},pushSource:function(f){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),f&&this.source.push(f)},replaceStack:function(f){var p=["("],b=void 0,x=void 0,w=void 0;if(!this.isInline())throw new i.default("replaceStack on non-inline");var S=this.popStack(!0);if(S instanceof c)b=[S.value],p=["(",b],w=!0;else{x=!0;var k=this.incrStack();p=["((",this.push(k)," = ",S,")"],b=this.topStack()}var v=f.call(this,b);w||this.popStack(),x&&this.stackSlot--,this.push(p.concat(v,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var f=this.inlineStack;this.inlineStack=[];for(var p=0,b=f.length;p<b;p++){var x=f[p];if(x instanceof c)this.compileStack.push(x);else{var w=this.incrStack();this.pushSource([w," = ",x,";"]),this.compileStack.push(w)}}},isInline:function(){return this.inlineStack.length},popStack:function(f){var p=this.isInline(),b=(p?this.inlineStack:this.compileStack).pop();if(!f&&b instanceof c)return b.value;if(!p){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return b},topStack:function(){var f=this.isInline()?this.inlineStack:this.compileStack,p=f[f.length-1];return p instanceof c?p.value:p},contextName:function(f){return this.useDepths&&f?"depths["+f+"]":"depth"+f},quotedString:function(f){return this.source.quotedString(f)},objectLiteral:function(f){return this.source.objectLiteral(f)},aliasable:function(f){var p=this.aliases[f];return p?(p.referenceCount++,p):(p=this.aliases[f]=this.source.wrap(f),p.aliasable=!0,p.referenceCount=1,p)},setupHelper:function(f,p,b){var x=[],w=this.setupHelperArgs(p,f,x,b),S=this.nameLookup("helpers",p,"helper"),k=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:x,paramsInit:w,name:S,callParams:[k].concat(x)}},setupParams:function(f,p,b){var x={},w=[],S=[],k=[],v=!b,_=void 0;v&&(b=[]),x.name=this.quotedString(f),x.hash=this.popStack(),this.trackIds&&(x.hashIds=this.popStack()),this.stringParams&&(x.hashTypes=this.popStack(),x.hashContexts=this.popStack());var y=this.popStack(),C=this.popStack();(C||y)&&(x.fn=C||"container.noop",x.inverse=y||"container.noop");for(var I=p;I--;)_=this.popStack(),b[I]=_,this.trackIds&&(k[I]=this.popStack()),this.stringParams&&(S[I]=this.popStack(),w[I]=this.popStack());return v&&(x.args=this.source.generateArray(b)),this.trackIds&&(x.ids=this.source.generateArray(k)),this.stringParams&&(x.types=this.source.generateArray(S),x.contexts=this.source.generateArray(w)),this.options.data&&(x.data="data"),this.useBlockParams&&(x.blockParams="blockParams"),x},setupHelperArgs:function(f,p,b,x){var w=this.setupParams(f,p,b);return w.loc=JSON.stringify(this.source.currentLocation),w=this.objectLiteral(w),x?(this.useRegister("options"),b.push("options"),["options=",w]):b?(b.push(w),""):w}},function(){for(var d="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),f=u.RESERVED_WORDS={},p=0,b=d.length;p<b;p++)f[d[p]]=!0}(),u.isValidJavaScriptVariableName=function(d){return!u.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function h(d,f,p,b,x){var w=f.popStack(),S=p.length;d&&S--;for(var k=b;k<S;k++)w=f.nameLookup(w,p[k],x);return d?[f.aliasable("container.strict"),"(",w,", ",f.quotedString(p[S]),", ",JSON.stringify(f.source.currentLocation)," )"]:w}t.default=u,e.exports=t.default})(ra,ra.exports);var V$=ra.exports;(function(e,t){t.__esModule=!0;function n(S){return S&&S.__esModule?S:{default:S}}var o=s$,r=n(o),i=oc,a=n(i),l=Ln,s=zn,c=V$,u=n(c),h=rc,d=n(h),f=nc,p=n(f),b=r.default.create;function x(){var S=b();return S.compile=function(k,v){return s.compile(k,v,S)},S.precompile=function(k,v){return s.precompile(k,v,S)},S.AST=a.default,S.Compiler=s.Compiler,S.JavaScriptCompiler=u.default,S.Parser=l.parser,S.parse=l.parse,S.parseWithoutProcessing=l.parseWithoutProcessing,S}var w=x();w.create=x,p.default(w),w.Visitor=d.default,w.default=w,t.default=w,e.exports=t.default})(Or,Or.exports);var q$=Or.exports;const Y$=Vw(q$);function Ma(e,t){const n=[],o=new Set,r=i=>{var l,s,c,u,h,d,f,p,b,x;if(o.has(i)||!e[i])return;o.add(i),n.push(i);const a=e[i];switch(a.type){case"Container":case"ButtonGroup":(((l=a.data.props)==null?void 0:l.childrenIds)||[]).forEach(r);break;case"ColumnsContainer":case"FlexColumns":(((s=a.data.props)==null?void 0:s.columns)||[]).forEach(w=>(w.childrenIds||[]).forEach(r));break;case"Grid":(((c=a.data.props)==null?void 0:c.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(r));break;case"Accordion":(((u=a.data.props)==null?void 0:u.items)||[]).forEach(w=>{(w.titleChildrenIds||[]).forEach(r),(w.contentChildrenIds||[]).forEach(r)});break;case"TabsBlock":case"Carousel":case"Marquee":(((h=a.data.props)==null?void 0:h.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(r)});break;case"Pagination":(((d=a.data.props)==null?void 0:d.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(r)),(((f=a.data.props)==null?void 0:f.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(r)});break;case"PricingAccordion":(((p=a.data.props)==null?void 0:p.items)||[]).forEach(w=>{(w.cardChildrenIds||[]).forEach(r),(w.detailChildrenIds||[]).forEach(r)});break;case"MenuPicker":(((b=a.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(r),(((x=a.data.props)==null?void 0:x.endChildrenIds)||[]).forEach(r);break;case"EmailLayout":(a.data.childrenIds||[]).forEach(r);break}};return r(t),n}const ko="relative",En="24h",K$=864e5;function Pa(e){if(e==null||e==="")return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t}function kl(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function J$(e,t){const n=Pa(e);if(!n)return"";const o=(t==null?void 0:t.now)??new Date,r=t==null?void 0:t.locale,i=Math.round((kl(n).getTime()-kl(o).getTime())/K$);if(i===0)return"Today";if(i===1)return"Tomorrow";if(i===-1)return"Yesterday";if(i>=-6&&i<=6)return n.toLocaleDateString(r,{weekday:"short"});const a=n.getFullYear()===o.getFullYear();return n.toLocaleDateString(r,{month:"short",day:"numeric",...a?{}:{year:"numeric"}})}function br(e){const t=e%100;if(t>=11&&t<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`;default:return`${e}th`}}function X$(e,t){const o=new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"short",day:"numeric",weekday:"long"}).formatToParts(e),r=i=>{var a;return((a=o.find(l=>l.type===i))==null?void 0:a.value)??""};return{year:Number(r("year")),month:new Date(`${r("month")} 1, 2000`).getMonth(),day:Number(r("day")),weekday:r("weekday")}}const Q$=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ia(e){return e<10?`0${e}`:String(e)}function la(e,t=ko,n){if(t==="relative")return J$(e,{now:n==null?void 0:n.now,locale:n==null?void 0:n.locale});const o=Pa(e);if(!o)return"";const{year:r,month:i,day:a,weekday:l}=X$(o,n==null?void 0:n.tz),s=Q$[i],c=String(r),u=ia(i+1),h=ia(a);switch(t){case"do-mmm-yyyy":return`${br(a)} ${s} ${c}`;case"mmm-d-yyyy":return`${s} ${a}, ${c}`;case"d-mmm-yyyy":return`${a} ${s} ${c}`;case"dd-mm-yyyy":return`${h}/${u}/${c}`;case"mm-dd-yyyy":return`${u}/${h}/${c}`;case"yyyy-mm-dd":return`${c}-${u}-${h}`;case"do-mmm":return`${br(a)} ${s}`;case"full":return`${l}, ${a} ${new Date(2e3,i,1).toLocaleDateString("en-US",{month:"long"})} ${c}`;default:return`${br(a)} ${s} ${c}`}}function _o(e,t=En,n){const o=Pa(e);if(!o)return"";const i=new Intl.DateTimeFormat("en-US",{timeZone:n==null?void 0:n.tz,hour:"numeric",minute:"2-digit",hour12:t==="12h"}).formatToParts(o),a=c=>{var u;return((u=i.find(h=>h.type===c))==null?void 0:u.value)??""};if(t==="12h"){const c=a("hour"),u=a("minute"),h=a("dayPeriod").toUpperCase();return`${c}:${u} ${h}`}const l=ia(Number(a("hour"))%24),s=a("minute");return`${l}:${s}`}function dc(e,t){const n=new Map;if(!e||!Array.isArray(t))return n;const o=e;for(const r of t){if((r==null?void 0:r.type)!=="array"||!r.sourceBlockId)continue;(Array.isArray(r.value)?r.value:[]).forEach((a,l)=>{var c;const s=l===0?r.sourceBlockId:(c=r.rowIds)==null?void 0:c[l-1];if(!(!s||!o[s]))for(const u of Ma(o,s))n.set(u,a||{})})}return n}const ek={Text:["text"],Heading:["text"],Button:["text","url"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Progress:["value","max"],Container:["linkHref"]};function tk(e){return e?ek[e]:void 0}const sa=Y$.create();sa.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new sa.SafeString(`{{${t.name}}}`)});const _l=new Map;function nk(e){let t=_l.get(e);return t||(t=sa.compile(e,{noEscape:!0,strict:!1}),_l.set(e,t)),t}function hc(e){const t={};for(const n of e)if(!(!n||!n.id)){if(n.type==="array"){if(!Array.isArray(n.value)||n.value.length===0)continue;const o=new Map;for(const i of n.itemFields??[])((i==null?void 0:i.type)==="date"||(i==null?void 0:i.type)==="time"||(i==null?void 0:i.type)==="datetime")&&i.id&&o.set(i.id,i);const r=n.value.map(i=>{const a={};if(i&&typeof i=="object")for(const l of Object.keys(i)){const s=i[l];if(s==null||s==="")continue;const c=o.get(l);if((c==null?void 0:c.type)==="datetime"){const u=co(l,String(s),o,"date"),h=co(l,String(s),o,"time"),d={date:u,time:h};Object.defineProperty(d,"toString",{value:()=>[u,h].filter(Boolean).join(" "),enumerable:!1}),a[l]=d}else a[l]=c?co(l,String(s),o):s}return a});Object.defineProperty(r,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=r;continue}if(n.type==="datetime"){const o=n.id,r=typeof n.value=="string"?n.value:"";if(!r){const c={date:`{{${o}.date}}`,time:`{{${o}.time}}`};Object.defineProperty(c,"toString",{value:()=>`{{${o}}}`,enumerable:!1}),t[o]=c;continue}const i=n.dateFormat??ko,a=i==="relative"?_r(o,r):la(r,i,{tz:n.dateTz}),l=_o(r,n.timeFormat??En,{tz:n.dateTz}),s={date:a,time:l};Object.defineProperty(s,"toString",{value:()=>[a,l].filter(Boolean).join(" "),enumerable:!1}),t[o]=s;continue}if(!(typeof n.value!="string"||n.value==="")){if(n.type==="date"){const o=n.dateFormat??ko;t[n.id]=o==="relative"?_r(n.id,n.value):la(n.value,o,{tz:n.dateTz});continue}if(n.type==="time"){t[n.id]=_o(n.value,n.timeFormat??En,{tz:n.dateTz});continue}t[n.id]=n.value}}return t}function Oa(e){var n,o;const t=(o=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:o.formFields;return Array.isArray(t)?t:[]}const ok=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function rk(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let o=0;return{masked:e.replace(ok,(i,a)=>{const l=t[a];if(Array.isArray(l)&&l.length>0)return i;const c="HB_EACH_"+o+++"_";return n.set(c,i),c}),restore:n}}const fc=/\{\{\s*this\.([\w]+)(?:\.(date|time))?\s*\}\}/g;function ak(e){const t=new Map;if(!Array.isArray(e))return t;for(const n of e)if(!((n==null?void 0:n.type)!=="array"||!Array.isArray(n.itemFields)))for(const o of n.itemFields)((o==null?void 0:o.type)==="date"||(o==null?void 0:o.type)==="time"||(o==null?void 0:o.type)==="datetime")&&o.id&&!t.has(o.id)&&t.set(o.id,o);return t}function Cl(e,t,n){const o=n.dateFormat??ko;return o==="relative"?_r(e,t):la(t,o,{tz:n.dateTz})}function co(e,t,n,o){const r=n.get(e);if(!r)return t;if(r.type==="time")return _o(t,r.timeFormat??En,{tz:r.dateTz});if(r.type==="datetime"){const i=_o(t,r.timeFormat??En,{tz:r.dateTz});if(o==="time")return i;const a=Cl(e,t,r);return o==="date"?a:[a,i].filter(Boolean).join(" ")}return Cl(e,t,r)}function ik(e,t,n){return e.replace(fc,(o,r,i)=>{const a=t==null?void 0:t[r];return a==null||a===""?o:n?co(r,String(a),n,i):String(a)})}function wn(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let o=e;if(n&&(o=ik(o,n,ak(t)),o.indexOf("{{")===-1)||!t||t.length===0)return o;try{const r=t&&t.length>0?hc(t):{},{masked:i,restore:a}=rk(o,r),l=new Map;let s=i;if(i.indexOf("{{")!==-1&&i.indexOf("#each")===-1){let u=0;s=i.replace(fc,h=>{const d="HB_THIS_"+u+++"_";return l.set(d,h),d})}let c=nk(s)(r);for(const[u,h]of l)c=c.split(u).join(h);if(a.size>0)for(const[u,h]of a)c=c.split(u).join(h);return c}catch{return o}}function mc(e,t,n,o){var l,s,c,u,h,d,f,p,b;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="TabsBlock"){const x=(s=(l=e.data)==null?void 0:l.props)==null?void 0:s.items;if(!Array.isArray(x)||x.length===0)return e;let w=null;return x.forEach((S,k)=>{const v=S==null?void 0:S.label;if(typeof v!="string"||v.indexOf("{{")===-1)return;const _=Array.isArray(S==null?void 0:S.contentChildrenIds)?S.contentChildrenIds[0]:void 0,y=_&&o?o.get(_):n,C=wn(v,t,y??null);C!==v&&(w||(w=x.map(I=>({...I}))),w[k]={...w[k],label:C})}),w?{...e,data:{...e.data,props:{...e.data.props,items:w}}}:e}if(e.type==="List"){const x=(u=(c=e.data)==null?void 0:c.props)==null?void 0:u.items;if(!Array.isArray(x)||x.length===0)return e;let w=null;return x.forEach((S,k)=>{const v=S==null?void 0:S.text;if(typeof v!="string"||v.indexOf("{{")===-1)return;const _=wn(v,t,n);_!==v&&(w||(w=x.map(y=>({...y}))),w[k]={...w[k],text:_})}),w?{...e,data:{...e.data,props:{...e.data.props,items:w}}}:e}if(e.type==="Breadcrumb"){const x=(d=(h=e.data)==null?void 0:h.props)==null?void 0:d.items;if(!Array.isArray(x)||x.length===0)return e;let w=null;return x.forEach((S,k)=>{for(const v of["label","href"]){const _=S==null?void 0:S[v];if(typeof _!="string"||_.indexOf("{{")===-1)continue;const y=wn(_,t,n);y!==_&&(w||(w=x.map(C=>({...C}))),w[k]={...w[k],[v]:y})}}),w?{...e,data:{...e.data,props:{...e.data.props,items:w}}}:e}if(e.type==="Table"){const x=(p=(f=e.data)==null?void 0:f.props)==null?void 0:p.cells;if(!Array.isArray(x)||x.length===0)return e;let w=null;return x.forEach((S,k)=>{if(typeof S!="string"||S.indexOf("{{")===-1)return;const v=wn(S,t,n);v!==S&&(w||(w=[...x]),w[k]=v)}),w?{...e,data:{...e.data,props:{...e.data.props,cells:w}}}:e}const r=tk(e.type);if(!r)return e;const i=(b=e.data)==null?void 0:b.props;if(!i)return e;let a=null;for(const x of r){const w=i[x];if(typeof w!="string"||w.indexOf("{{")===-1)continue;const S=wn(w,t,n);S!==w&&(a||(a={...i}),a[x]=S)}return a?{...e,data:{...e.data,props:a}}:e}function La(e,t){var l;if(!e)return e;const n=t??Oa(e);let o={...e},r=!1;const i=dc(e,n);if(n&&n.length>0&&(Object.keys(hc(n)).length>0||i.size>0))for(const s of Object.keys(o)){const c=o[s],u=mc(c,n,i.get(s),i);u!==c&&(o[s]=u,r=!0)}const a=o.root;if(((l=a==null?void 0:a.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...c}=a.data;o.root={...a,data:c},r=!0}return r?o:e}const Al=Object.fromEntries(pt.map(e=>[e.key,e.value]));function jt(e){return!!e&&typeof e=="object"&&"top"in e&&"left"in e}function za(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function lk(e,t){const n=e.borderColor??(t==null?void 0:t.borderColor)??null;if(!n)return"";if(n==="transparent")return"border:none!important";const o=jt(e.borderWidth)?e.borderWidth:jt(t==null?void 0:t.borderWidth)?t==null?void 0:t.borderWidth:null;return za(n)?`padding:${(o==null?void 0:o.top)??0}px ${(o==null?void 0:o.right)??0}px ${(o==null?void 0:o.bottom)??0}px ${(o==null?void 0:o.left)??0}px!important`:[`border-top:${(o==null?void 0:o.top)??0}px solid ${n}!important`,`border-right:${(o==null?void 0:o.right)??0}px solid ${n}!important`,`border-bottom:${(o==null?void 0:o.bottom)??0}px solid ${n}!important`,`border-left:${(o==null?void 0:o.left)??0}px solid ${n}!important`].join(";")}function sk(e,t,n){const o=t.borderColor??(n==null?void 0:n.borderColor)??null;if(!o||!za(o))return"";const r=t.padding;if(!jt(r))return"";const i=`padding:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`;return`${e}>.container-block>.container-block-inner{${i}}`}function ck(e,t){const n=[],o=e.borderColor!==void 0||e.borderWidth!==void 0,r=za((t==null?void 0:t.borderColor)??"");if(o||e.padding!==void 0&&r){const a=lk(e,t);a&&n.push(a)}const i=e.backgroundSize==="none";i&&n.push("background-image:none!important");for(const a of Object.keys(e)){const l=e[a];if(l!=null)switch(a){case"borderColor":case"borderWidth":break;case"fontSize":n.push(`font-size:${l}px!important`);break;case"fontFamily":Al[l]&&n.push(`font-family:${Al[l]}!important`);break;case"fontWeight":n.push(`font-weight:${l}!important`);break;case"fontStyle":n.push(`font-style:${l}!important`);break;case"textDecoration":n.push(`text-decoration:${l}!important`);break;case"lineHeight":n.push(`line-height:${l}!important`);break;case"textAlign":n.push(`text-align:${l}!important`);break;case"buttonTextAlign":n.push(`justify-content:${l==="center"?"center":l==="right"?"flex-end":"flex-start"}!important`);break;case"padding":jt(l)&&!r&&n.push(`padding:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"margin":jt(l)&&n.push(`margin:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"marginBottom":n.push(`margin-bottom:${l}px!important`);break;case"width":n.push(`width:${typeof l=="number"?`${l}px`:l}!important`);break;case"height":n.push(`height:${typeof l=="number"?`${l}px`:l}!important`);break;case"backgroundImage":n.push(l&&!i?`background-image:url("${String(l).replace(/"/g,'\\"')}")!important`:"background-image:none!important");break;case"backgroundSize":i||n.push(`background-size:${l}!important`);break;case"backgroundRepeat":n.push(`background-repeat:${l}!important`);break;case"activeFontSize":n.push(`--ahd-tabs-active-font-size:${typeof l=="number"?`${l}px`:l}`);break;case"showActiveBorder":n.push(`--ahd-tabs-active-border-color:${l?"currentColor":"transparent"}`);break;case"tabGap":n.push(`--ahd-tabs-tab-gap:${l}px`);break;case"contentGap":n.push(`--ahd-tabs-content-gap:${l}px`);break;case"navWidth":n.push(`--ahd-tabs-nav-width:${l}px`);break;case"starSize":n.push(`--ahd-rating-star-size:${l}px`);break;case"starGap":n.push(`--ahd-rating-star-gap:${l}px`);break;case"arrowSize":n.push(`--ahd-carousel-arrow-size:${l}px`),n.push(`--ahd-carousel-chevron-size:${Math.max(12,Math.min(40,Math.round(Number(l)*.5)))}px`);break;case"dotSize":n.push(`--ahd-carousel-dot-size:${l}px`);break;case"slideGap":n.push(`--ahd-carousel-slide-gap:${l}px`);break;case"buttonSize":n.push(`--ahd-pgn-btn-size:${l}px`);break;case"buttonGap":n.push(`--ahd-pgn-btn-gap:${l}px`);break;case"buttonRadius":n.push(`--ahd-pgn-btn-radius:${l}px`);break;case"controlGap":n.push(`--ahd-pgn-control-gap:${l}px`);break;case"borderRadius":if(typeof l=="number")n.push(`border-radius:${l}px!important`);else if(l&&typeof l=="object"){const{topLeft:s=0,topRight:c=0,bottomRight:u=0,bottomLeft:h=0}=l;n.push(`border-radius:${s}px ${c}px ${u}px ${h}px!important`)}else n.push(`border-radius:${l}!important`);break}}return n.join(";")}function uk(e){const t=[];for(const n of Object.keys(e)){const o=e[n];if(o!=null)switch(n){case"lineHeight":t.push(`--ahd-divider-thickness:${o}px!important`);break;case"height":{const r=typeof o=="number"?`${o}px`:o;t.push(`height:${r}!important`),t.push(`--ahd-iframe-height:${r}`),t.push(`--ahd-calendly-height:${r}`),t.push(`--ahd-demo-height:${r}`);break}case"width":{const r=typeof o=="number"?`${o}px`:o;t.push(`--ahd-iframe-width:${r}`),t.push(`--ahd-calendly-width:${r}`),t.push(`--ahd-demo-width:${r}`);break}case"blockPadding":jt(o)&&t.push(`padding:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break;case"blockMargin":jt(o)&&t.push(`margin:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break}}return t.join(";")}function dk(e){return`${e}>.text-block>div,${e}>.heading-block-wrapper>.heading-block`}function hk(e){if(e==null)return"";const t=Number(e);return t>0?"display:-webkit-box!important;-webkit-line-clamp:"+t+"!important;-webkit-box-orient:vertical!important;overflow:hidden!important":"display:block!important;overflow:visible!important"}function yl(e,t){if(!t)return null;const n=e??{},o={};for(const r of Object.keys(t)){const i=t[r],a=n[r],l=!!i&&typeof i=="object"&&!Array.isArray(i)&&!!a&&typeof a=="object"&&!Array.isArray(a);o[r]=l?{...a,...i}:i}return o}function fk(e,t,n,o){if(!t)return"";const r=`#${e}`,i=pk(r),a=dk(r),l=[],s=(u,h)=>{const d=yl(n,h==null?void 0:h.style),f=yl(o,h==null?void 0:h.props),p=[d?ck(d,n):"",f?uk(f):""].filter(Boolean).join(";"),b=d?sk(r,d,n):"",x=[p?`${i}{${p}}`:"",b,h!=null&&h.hidden?`${r}{display:none}`:""].filter(Boolean).join("");if(x&&l.push(`${u}{${x}}`),h!=null&&h.style&&"lineClamp"in h.style){const w=hk(d==null?void 0:d.lineClamp);w&&l.push(`${u}{${a}{${w}}}`)}};s(Dt,t.tablet),s(`@media (max-width:${Le}px)`,t.mobile);const c=bk(e,t,n,o);return c&&l.push(c),l.join("")}function mk(e,t){return t?e?{...e,...t}:t:e}function ca(e,t){return(t==null?void 0:t.blockMargin)??(e==null?void 0:e.margin)??(t==null?void 0:t.margin)??null}function Il(e,t,n){const o=ca(e,t),r=ca(n==null?void 0:n.style,n==null?void 0:n.props);return mk(o,r)}function xr(e){const t=((e==null?void 0:e.left)??0)+((e==null?void 0:e.right)??0);return t>0?`calc(100% - ${t}px)`:"100%"}function pk(e){return[`${e}>.text-block`,`${e}>.button-block`,`${e}>.button-group`,`${e}>.heading-block-wrapper`,`${e}>.heading-block-wrapper>.heading-block`,`${e}>.image-block`,`${e}>.logo-block`,`${e}>.avatar-block`,`${e}>.container-block`,`${e}>.flex-columns-block`,`${e}>.grid-block`,`${e}>.video-block`,`${e}>.youtube-url-block`,`${e}>.divider-block`,`${e}>.mdx-block`,`${e}>.quill-block`,`${e}>.html-block`,`${e}>.stepper-block`,`${e}>.list-block`,`${e}>.rating-block`,`${e}>.table-block`,`${e}>.table-block table`,`${e}>.spacer-block`,`${e}>.accordion-block`,`${e}>.columns-container`,`${e}>.ahd-carousel`,`${e}>.ahd-marquee`,`${e}>.ahd-pagination`,`${e}>.ahd-tabs`,`${e}>.calendly-block`,`${e}>.iframe-block`,`${e}>.demo-picker-block`,`${e}>.ahd-menu`].join(",")}function gk(e){return[`${e}>.text-block`,`${e}>.button-block`,`${e}>.button-group`,`${e}>.heading-block-wrapper`,`${e}>.heading-block-wrapper>.heading-block`,`${e}>.image-block`,`${e}>.logo-block`,`${e}>.avatar-block`,`${e}>.container-block`,`${e}>.flex-columns-block`,`${e}>.grid-block`,`${e}>.video-block`,`${e}>.youtube-url-block`,`${e}>.divider-block`,`${e}>.mdx-block`,`${e}>.quill-block`,`${e}>.html-block`,`${e}>.stepper-block`,`${e}>.list-block`,`${e}>.rating-block`,`${e}>.table-block`,`${e}>.table-block table`,`${e}>.spacer-block`,`${e}>.accordion-block`,`${e}>.columns-container`,`${e}>.ahd-carousel`,`${e}>.ahd-marquee`,`${e}>.ahd-pagination`,`${e}>.ahd-tabs`,`${e}>.calendly-block`,`${e}>.iframe-block`,`${e}>.demo-picker-block`,`${e}>.forms-picker-block`,`${e}>.ahd-timer`,`${e}>.ahd-menu`].join(",")}function bk(e,t,n,o){if(!t)return"";const r=`#${e}`,i=gk(r),a=ca(n,o),l=xr(a),s=xr(Il(n,o,t.tablet)),c=xr(Il(n,o,t.mobile));return s===l&&c===l?"":`
537
+ ${Dt} { ${i} { width: ${s} !important; max-width: 100% !important; } }
538
+ @media (max-width:${Le}px) { ${i} { width: ${c} !important; max-width: 100% !important; } }
539
+ `.trim()}const xk=e=>{var o,r;const t=!!((o=e==null?void 0:e.props)!=null&&o.decorative),n=((r=e==null?void 0:e.props)==null?void 0:r.alt)??"";return t?g.jsx("div",{"aria-hidden":"true",role:"presentation",style:{display:"contents"},children:g.jsx(wi,{...e,props:{...(e==null?void 0:e.props)??{},alt:""}})}):g.jsx(wi,{...e,props:{...(e==null?void 0:e.props)??{},alt:n}})},vk=({props:e})=>g.jsx("div",{"aria-hidden":"true",className:"spacer-block",style:{height:(e==null?void 0:e.height)??Bb.height}}),Sk=Sv,pc=Z.createContext({}),Rl=Z.createContext(!1),wk=typeof window<"u"?Z.useLayoutEffect:Z.useEffect;function gc(e){var n,o;const t=(o=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:o.formFields;return Array.isArray(t)?t:[]}const Nl=new WeakMap;function $k(e){if(!e||typeof e!="object")return new Map;let t=Nl.get(e);return t||(t=dc(e,gc(e)),Nl.set(e,t)),t}const bc=Z.createContext({});function kk(){return Z.useContext(pc)}function _k(){return Z.useContext(bc)}const xc={ColumnsContainer:{schema:X0,Component:ex},FlexColumns:{schema:tx,Component:sx},Grid:{schema:vx,Component:kx},ButtonGroup:{schema:t1,Component:n1},Container:{schema:Gx,Component:Ps},EmailLayout:{schema:ev,Component:Sk},Accordion:{schema:r1,Component:l1},PricingAccordion:{schema:c1,Component:d1},TabsBlock:{schema:m1,Component:w1},Carousel:{schema:k1,Component:y1},Rating:{schema:I1,Component:E1},Progress:{schema:O1,Component:F1},Marquee:{schema:H1,Component:nS},Timer:{schema:aS,Component:mS},Pagination:{schema:xS,Component:AS},Table:{schema:yS,Component:RS},DemoPicker:{schema:NS,Component:e=>g.jsx(ES,{...e})},MenuPicker:{schema:OS,Component:e=>g.jsx(QS,{...e})},Breadcrumb:{schema:rw,Component:hw},FormsPicker:{schema:fw,Component:e=>g.jsx(bw,{...e})},AppBannerPicker:{schema:xw,Component:e=>g.jsx(Ow,{...e})},FaqPicker:{schema:Lw,Component:e=>g.jsx(Bw,{...e})},Avatar:{schema:Tm,Component:xk},Button:{schema:Lp,Component:zp},Divider:{schema:Zp,Component:Vp},Heading:{schema:rg,Component:ag},Html:{schema:Pg,Component:zg},Image:{schema:Qg,Component:tb},Logo:{schema:bb,Component:vb},Video:{schema:Mb,Component:zb},IFrame:{schema:S0,Component:k0},Calendly:{schema:A0,Component:R0},YouTubeUrl:{schema:p0,Component:b0},Spacer:{schema:jb,Component:vk},SkipLink:{schema:Dw,Component:Ws},AccessibilityTools:{schema:Hw,Component:Ys},Stepper:{schema:Nv,Component:Tv},List:{schema:Dv,Component:Hv},Text:{schema:s0,Component:u0}},vc=O0(xc),Ck=rn($(),vc),Ak=P0(xc);function Re({id:e}){var v,_,y,C,I,R,E;const t=kk(),{staticRender:n,injectElementIds:o,mainBlockId:r,hoistedSkipLinkId:i,hoistedA11yToolsId:a}=_k(),l=t[e];if(i&&e===i&&(l==null?void 0:l.type)==="SkipLink"||a&&e===a&&(l==null?void 0:l.type)==="AccessibilityTools")return null;const s=r&&e===r&&(l==null?void 0:l.type)==="Container"?{...l,data:{...l.data,props:{...((v=l.data)==null?void 0:v.props)??{},elementId:"main-content"}}}:l,c=gc(t),u=$k(t),h=u.get(e),d=mc(s,c,h,u),f=(d==null?void 0:d.type)==="Container"?g.jsx(Ps,{...d.data,blockId:e}):g.jsx(Ak,{...d});if(e==="root")return f;const p=!!((_=d==null?void 0:d.data)!=null&&_.hidden),x=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]).has(d==null?void 0:d.type)?(C=(y=d==null?void 0:d.data)==null?void 0:y.props)==null?void 0:C.animation:null,w=x&&x.type&&x.type!=="none"?{"data-animate-type":x.type,"data-animate-trigger":x.trigger??"load","data-animate-speed":x.speed??"medium","data-animate-delay":x.delay??0,...x.disableOnMobile?{"data-animate-disable-mobile":"true"}:{}}:{},S=n&&o?`ahd-${e}`:e,k=fk(S,(I=d==null?void 0:d.data)==null?void 0:I.responsive,(R=d==null?void 0:d.data)==null?void 0:R.style,(E=d==null?void 0:d.data)==null?void 0:E.props);return n&&o?g.jsxs("div",{id:S,className:"ahd-block-wrapper",style:p?{display:"none"}:void 0,...w,children:[k?g.jsx("style",{dangerouslySetInnerHTML:{__html:k}}):null,f]}):g.jsxs("div",{id:e,style:{scrollMarginTop:"80px",...p?{display:"none"}:null},...w,children:[k?g.jsx("style",{dangerouslySetInnerHTML:{__html:k}}):null,f]})}function Mn({document:e,rootBlockId:t,staticRender:n,injectElementIds:o,isBanner:r,mainBlockId:i,hoistedSkipLinkId:a,hoistedA11yToolsId:l}){const s=Z.useMemo(()=>({staticRender:!!n,injectElementIds:!!o,isBanner:!!r,mainBlockId:i,hoistedSkipLinkId:a,hoistedA11yToolsId:l}),[n,o,r,i,a,l]),c=Z.useContext(Rl),u=Z.useRef(null);return wk(()=>{n||c||u.current&&(Sp(u.current),wp(u.current))},[n,c,e,t]),g.jsx("div",{ref:u,style:{display:"contents"},children:g.jsx(pc.Provider,{value:e,children:g.jsx(bc.Provider,{value:s,children:g.jsx(Rl.Provider,{value:!0,children:g.jsx(Re,{id:t})})})})})}function yk(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="SkipLink")return t}function Ik(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="AccessibilityTools")return t}function Rk(e,t){const n=new Set;function o(r){var s,c,u,h;if(n.has(r))return;n.add(r);const i=e[r];if(!i)return;if(i.type==="Container"&&((c=(s=i.data)==null?void 0:s.props)==null?void 0:c.tag)==="main")return r;const a=((u=i.data)==null?void 0:u.props)??{},l=[];Array.isArray(a.childrenIds)&&l.push(a.childrenIds),Array.isArray((h=i.data)==null?void 0:h.childrenIds)&&l.push(i.data.childrenIds),Array.isArray(a.columns)&&a.columns.forEach(d=>{Array.isArray(d==null?void 0:d.childrenIds)&&l.push(d.childrenIds)});for(const d of l)for(const f of d){const p=o(f);if(p)return p}}return o(t)}const Nk=`
540
540
  @keyframes ahd-anim-fade-in { from { opacity: 0; } to { opacity: 1; } }
541
541
  @keyframes ahd-anim-slide-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
542
542
  @keyframes ahd-anim-slide-right { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@@ -549,8 +549,8 @@ ${Bt} { ${i} { width: ${s} !important; max-width: 100% !important; } }
549
549
  80% { transform: translateY(-2px); }
550
550
  100% { opacity: 1; transform: translateY(0); }
551
551
  }
552
- `.trim(),vc=`
553
- ${Ik}
552
+ `.trim(),Sc=`
553
+ ${Nk}
554
554
 
555
555
  /* Elements that animate on scroll/hover/click start hidden so there is no
556
556
  flash of the final state before the trigger fires. Load-triggered elements
@@ -570,7 +570,7 @@ html.ahd-anim-ready [data-animate-type]:not([data-animate-trigger="load"]):not(.
570
570
  animation-fill-mode: both;
571
571
  animation-timing-function: ease-out;
572
572
  }
573
- `.trim(),Rk=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{}:;,>~+])\s*/g,"$1").replace(/\s+/g," ").replace(/;}/g,"}").trim(),Nk=(e,t=!1)=>Rk(`
573
+ `.trim(),Tk=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{}:;,>~+])\s*/g,"$1").replace(/\s+/g," ").replace(/;}/g,"}").trim(),Ek=(e,t=!1)=>Tk(`
574
574
 
575
575
  @import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css');
576
576
 
@@ -644,6 +644,11 @@ ${t?`.ahd-page-container {
644
644
 
645
645
  .ahd-page-root {
646
646
  all: initial;
647
+ /* "all: initial" also resets the inherited color-scheme to "normal", which
648
+ would force every light-dark() token below this node to its light value
649
+ even though the [data-ahd-theme] wrapper above asked for "light dark".
650
+ Re-inherit it so the theme scope actually reaches the blocks. */
651
+ color-scheme: inherit;
647
652
  display: block;
648
653
  box-sizing: border-box;
649
654
  font-family: Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif;
@@ -726,11 +731,23 @@ ${t?`.ahd-page-container {
726
731
  background-color: light-dark(#ffffff, #121212);
727
732
  }
728
733
 
734
+ /* light-dark() above resolves against the OS. When the runtime in
735
+ pageScripts.ts pins the fragment to the HOST page's theme instead, these
736
+ explicit scopes take over — they are what make a dark host site render this
737
+ dark while the OS sits on light. Plain values, so no light-dark() support
738
+ is required once a theme is pinned. */
739
+ [data-ahd-theme="light"] .ahd-page-root .container-block-inner {
740
+ background-color: #ffffff;
741
+ }
742
+ [data-ahd-theme="dark"] .ahd-page-root .container-block-inner {
743
+ background-color: #121212;
744
+ }
745
+
729
746
  /* Padding is authored per device (Desktop/Tablet/Mobile tabs) and published as
730
747
  scoped @media CSS per block — see Reader/responsiveCss.ts. These breakpoints
731
748
  therefore carry only overflow/sizing guards; they must NOT clamp padding, or
732
749
  they would override the value the author explicitly set for the device. */
733
- @media (max-width: ${Pe}px) {
750
+ @media (max-width: ${Oe}px) {
734
751
  .ahd-page-root .container-block {
735
752
  max-width: 100% !important;
736
753
  }
@@ -778,7 +795,7 @@ ${t?`.ahd-page-container {
778
795
  }
779
796
 
780
797
 
781
- @media (max-width: ${Oe}px) {
798
+ @media (max-width: ${Le}px) {
782
799
  /* The page's own padding is authored per device on the Style tab (see
783
800
  EmailLayout's emailLayoutResponsive.ts, which emits scoped @media CSS for it)
784
801
  and must NOT be force-zeroed here — a blanket rule at this selector beat the
@@ -837,7 +854,7 @@ ${t?`.ahd-page-container {
837
854
 
838
855
  /* Layout-content zeroing only — the block's OWN padding is authored per device
839
856
  and must not be clamped here. */
840
- @media (max-width: ${Pe}px) {
857
+ @media (max-width: ${Oe}px) {
841
858
  .ahd-page-root .email-layout-content:has(.faq-picker-block) {
842
859
  padding: 0 !important;
843
860
  }
@@ -846,13 +863,13 @@ ${t?`.ahd-page-container {
846
863
  }
847
864
  }
848
865
 
849
- @container ahd-page (max-width: ${Pe}px) {
866
+ @container ahd-page (max-width: ${Oe}px) {
850
867
  .ahd-page-root .email-layout-content:has(.faq-picker-block) {
851
868
  padding: 0 !important;
852
869
  }
853
870
  }
854
871
 
855
- @media (max-width: ${Pe}px) {
872
+ @media (max-width: ${Oe}px) {
856
873
  .ahd-page-root .email-layout-content:has(.app-banner-picker-block) {
857
874
  padding: 0 !important;
858
875
  }
@@ -861,7 +878,7 @@ ${t?`.ahd-page-container {
861
878
  }
862
879
  }
863
880
 
864
- @container ahd-page (max-width: ${Pe}px) {
881
+ @container ahd-page (max-width: ${Oe}px) {
865
882
  .ahd-page-root .email-layout-content:has(.app-banner-picker-block) {
866
883
  padding: 0 !important;
867
884
  }
@@ -930,23 +947,23 @@ table[style*="maxHeight"] {
930
947
  table-layout: fixed !important;
931
948
  }
932
949
 
933
- ${vc}
950
+ ${Sc}
934
951
 
935
- `),Tk=[{key:"inherit",label:"Inherit",value:"inherit"},{key:"MODERN_SANS",label:"Modern sans",value:'"Modern Sans", "Inter", "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif'},{key:"BOOK_SANS",label:"Book sans",value:'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif'},{key:"ORGANIC_SANS",label:"Organic sans",value:'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif'},{key:"GEOMETRIC_SANS",label:"Geometric sans",value:'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif'},{key:"HEAVY_SANS",label:"Heavy sans",value:'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif'},{key:"ROUNDED_SANS",label:"Rounded sans",value:'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif'},{key:"MODERN_SERIF",label:"Modern serif",value:'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif'},{key:"BOOK_SERIF",label:"Book serif",value:'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif'},{key:"MONOSPACE",label:"Monospace",value:'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'},{key:"ROBOTO",label:"Roboto",value:'Roboto, "Helvetica Neue", Arial, sans-serif'},{key:"OPEN_SANS",label:"Open Sans",value:'"Open Sans", "Helvetica Neue", Arial, sans-serif'},{key:"LATO",label:"Lato",value:'Lato, "Helvetica Neue", Arial, sans-serif'},{key:"POPPINS",label:"Poppins",value:'Poppins, "Helvetica Neue", Arial, sans-serif'},{key:"INTER",label:"Inter",value:'Inter, "Helvetica Neue", Arial, sans-serif'},{key:"MONTSERRAT",label:"Montserrat",value:'Montserrat, "Helvetica Neue", Arial, sans-serif'},{key:"RALEWAY",label:"Raleway",value:'Raleway, "Helvetica Neue", Arial, sans-serif'},{key:"NUNITO",label:"Nunito",value:'Nunito, "Helvetica Neue", Arial, sans-serif'},{key:"PLAYFAIR_DISPLAY",label:"Playfair Display",value:'"Playfair Display", Georgia, serif'},{key:"MERRIWEATHER",label:"Merriweather",value:"Merriweather, Georgia, serif"},{key:"PT_SANS",label:"PT Sans",value:'"PT Sans", "Helvetica Neue", Arial, sans-serif'},{key:"OSWALD",label:"Oswald",value:'Oswald, "Helvetica Neue", Arial, sans-serif'},{key:"SOURCE_SANS_PRO",label:"Source Sans Pro",value:'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif'},{key:"RUBIK",label:"Rubik",value:'Rubik, "Helvetica Neue", Arial, sans-serif'},{key:"WORK_SANS",label:"Work Sans",value:'"Work Sans", "Helvetica Neue", Arial, sans-serif'},{key:"NOTO_SANS",label:"Noto Sans",value:'"Noto Sans", "Helvetica Neue", Arial, sans-serif'},{key:"DANCING_SCRIPT",label:"Dancing Script",value:'"Dancing Script", cursive, sans-serif'},{key:"PACIFICO",label:"Pacifico",value:"Pacifico, cursive, sans-serif"},{key:"LOBSTER",label:"Lobster",value:"Lobster, cursive, sans-serif"},{key:"BEBAS_NEUE",label:"Bebas Neue",value:'"Bebas Neue", cursive, sans-serif'}],Ek={Inter:[400,500,600,700],Roboto:[400,500,700],"Open Sans":[400,500,600,700],Lato:[400,700],Poppins:[400,500,600,700],Montserrat:[400,500,600,700],Raleway:[400,500,600,700],Nunito:[400,500,600,700],"Playfair Display":[400,500,600,700],Merriweather:[400,700],"PT Sans":[400,700],Oswald:[400,500,600,700],"Source Sans Pro":[400,600,700],Rubik:[400,500,600,700],"Work Sans":[400,500,600,700],"Noto Sans":[400,500,600,700],"Titillium Web":[400,600,700],"Dancing Script":[400,500,600,700],Pacifico:[400],Lobster:[400],"Bebas Neue":[400],"Permanent Marker":[400],"Great Vibes":[400],"Libre Baskerville":[400,700],"EB Garamond":[400,500,700],Lora:[400,500,700]},Mk=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`},Pk=`https://fonts.googleapis.com/css2?${Object.entries(Ek).map(([e,t])=>`family=${Mk(e,t)}`).join("&")}&display=swap`,Sc=Tk.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));Sc.map(e=>e.css);const Ok=e=>e.replace(/"/g,'\\"');Sc.map(e=>{const t=Ok(e.css);return`
952
+ `),Mk=[{key:"inherit",label:"Inherit",value:"inherit"},{key:"MODERN_SANS",label:"Modern sans",value:'"Modern Sans", "Inter", "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif'},{key:"BOOK_SANS",label:"Book sans",value:'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif'},{key:"ORGANIC_SANS",label:"Organic sans",value:'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif'},{key:"GEOMETRIC_SANS",label:"Geometric sans",value:'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif'},{key:"HEAVY_SANS",label:"Heavy sans",value:'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif'},{key:"ROUNDED_SANS",label:"Rounded sans",value:'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif'},{key:"MODERN_SERIF",label:"Modern serif",value:'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif'},{key:"BOOK_SERIF",label:"Book serif",value:'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif'},{key:"MONOSPACE",label:"Monospace",value:'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'},{key:"ROBOTO",label:"Roboto",value:'Roboto, "Helvetica Neue", Arial, sans-serif'},{key:"OPEN_SANS",label:"Open Sans",value:'"Open Sans", "Helvetica Neue", Arial, sans-serif'},{key:"LATO",label:"Lato",value:'Lato, "Helvetica Neue", Arial, sans-serif'},{key:"POPPINS",label:"Poppins",value:'Poppins, "Helvetica Neue", Arial, sans-serif'},{key:"INTER",label:"Inter",value:'Inter, "Helvetica Neue", Arial, sans-serif'},{key:"MONTSERRAT",label:"Montserrat",value:'Montserrat, "Helvetica Neue", Arial, sans-serif'},{key:"RALEWAY",label:"Raleway",value:'Raleway, "Helvetica Neue", Arial, sans-serif'},{key:"NUNITO",label:"Nunito",value:'Nunito, "Helvetica Neue", Arial, sans-serif'},{key:"PLAYFAIR_DISPLAY",label:"Playfair Display",value:'"Playfair Display", Georgia, serif'},{key:"MERRIWEATHER",label:"Merriweather",value:"Merriweather, Georgia, serif"},{key:"PT_SANS",label:"PT Sans",value:'"PT Sans", "Helvetica Neue", Arial, sans-serif'},{key:"OSWALD",label:"Oswald",value:'Oswald, "Helvetica Neue", Arial, sans-serif'},{key:"SOURCE_SANS_PRO",label:"Source Sans Pro",value:'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif'},{key:"RUBIK",label:"Rubik",value:'Rubik, "Helvetica Neue", Arial, sans-serif'},{key:"WORK_SANS",label:"Work Sans",value:'"Work Sans", "Helvetica Neue", Arial, sans-serif'},{key:"NOTO_SANS",label:"Noto Sans",value:'"Noto Sans", "Helvetica Neue", Arial, sans-serif'},{key:"DANCING_SCRIPT",label:"Dancing Script",value:'"Dancing Script", cursive, sans-serif'},{key:"PACIFICO",label:"Pacifico",value:"Pacifico, cursive, sans-serif"},{key:"LOBSTER",label:"Lobster",value:"Lobster, cursive, sans-serif"},{key:"BEBAS_NEUE",label:"Bebas Neue",value:'"Bebas Neue", cursive, sans-serif'}],Pk={Inter:[400,500,600,700],Roboto:[400,500,700],"Open Sans":[400,500,600,700],Lato:[400,700],Poppins:[400,500,600,700],Montserrat:[400,500,600,700],Raleway:[400,500,600,700],Nunito:[400,500,600,700],"Playfair Display":[400,500,600,700],Merriweather:[400,700],"PT Sans":[400,700],Oswald:[400,500,600,700],"Source Sans Pro":[400,600,700],Rubik:[400,500,600,700],"Work Sans":[400,500,600,700],"Noto Sans":[400,500,600,700],"Titillium Web":[400,600,700],"Dancing Script":[400,500,600,700],Pacifico:[400],Lobster:[400],"Bebas Neue":[400],"Permanent Marker":[400],"Great Vibes":[400],"Libre Baskerville":[400,700],"EB Garamond":[400,500,700],Lora:[400,500,700]},Ok=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`},Lk=`https://fonts.googleapis.com/css2?${Object.entries(Pk).map(([e,t])=>`family=${Ok(e,t)}`).join("&")}&display=swap`,wc=Mk.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));wc.map(e=>e.css);const zk=e=>e.replace(/"/g,'\\"');wc.map(e=>{const t=zk(e.css);return`
936
953
  .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
937
954
  .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
938
955
  content: '${e.label}';
939
956
  font-family: ${e.css};
940
957
  }`}).join(`
941
- `);const Lk=e=>{let t=0;const n=e.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(o,r,i)=>{t++;const a=String(i).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};:,])\s*/g,"$1").trim();return`<style${r}>${a}</style>`});return console.log("[renderToStaticMarkup] minified",t,"style block(s)"),n};function za(e,{rootBlockId:t,seo:n,injectElementIds:o,minifyCss:r,lang:i,skipLink:a,accessibilityTools:l,includePageCSS:s,headHtml:c,bodyBottomHtml:u,isBanner:h,injectTabsScrollSyncScript:d=!0,injectCarouselScript:f=!0,injectPaginationScript:p=!0,injectFontAssets:b=!0,injectTimerScript:x=!0,injectAnimationScript:v=!0}){var ve;const S=((ve=e==null?void 0:e[t])==null?void 0:ve.data)??{};i??S.lang;const k=a??S.skipLink??void 0,w=l??S.accessibilityTools??void 0,C=Object.values(e??{}).some(K=>(K==null?void 0:K.type)==="SkipLink"),y=Object.values(e??{}).some(K=>(K==null?void 0:K.type)==="AccessibilityTools");!C&&(k==null||k.enabled);const _=!y&&!!(w!=null&&w.enabled),I=_?Ws(w):"",R=_?Zs(w):"",T=_?Vs():"",P=d&&pk(e),M=f&&bk(e),z=p&&xk(e),F=x&&vk(e),H=gk(e),V=v&&Rl(e),q=Rl(e),he=Bm(),ae=g.jsx(Fm,{value:he,children:g.jsxs("div",{style:{margin:0,padding:0},"data-ahd-tpl-root":"true",[wa]:Po,children:[s&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Nk(void 0,!1)}}),I&&g.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),q&&g.jsx("style",{dangerouslySetInnerHTML:{__html:vc}}),b&&g.jsx("link",{rel:"stylesheet",href:Pk}),g.jsx("style",{children:`.gc-tooltip * {
958
+ `);const jk=e=>{let t=0;const n=e.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(o,r,i)=>{t++;const a=String(i).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};:,])\s*/g,"$1").trim();return`<style${r}>${a}</style>`});return console.log("[renderToStaticMarkup] minified",t,"style block(s)"),n};function ja(e,{rootBlockId:t,seo:n,injectElementIds:o,minifyCss:r,lang:i,skipLink:a,accessibilityTools:l,includePageCSS:s,headHtml:c,bodyBottomHtml:u,isBanner:h,injectTabsScrollSyncScript:d=!0,injectCarouselScript:f=!0,injectPaginationScript:p=!0,injectFontAssets:b=!0,injectTimerScript:x=!0,injectAnimationScript:w=!0}){var xe;const S=((xe=e==null?void 0:e[t])==null?void 0:xe.data)??{};i??S.lang;const k=a??S.skipLink??void 0,v=l??S.accessibilityTools??void 0,_=Object.values(e??{}).some(X=>(X==null?void 0:X.type)==="SkipLink"),y=Object.values(e??{}).some(X=>(X==null?void 0:X.type)==="AccessibilityTools");!_&&(k==null||k.enabled);const C=!y&&!!(v!=null&&v.enabled),I=C?Zs(v):"",R=C?Vs(v):"",E=C?qs():"",P=d&&Sw(e),M=f&&$w(e),O=p&&kw(e),H=x&&_w(e),D=ww(e),V=w&&al(e),F=al(e),q=Fm(),Y=g.jsx(Gm,{value:q,children:g.jsxs("div",{style:{margin:0,padding:0},"data-ahd-tpl-root":"true",[zt]:to,children:[s&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Ek(void 0,!1)}}),I&&g.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),F&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Sc}}),b&&g.jsx("link",{rel:"stylesheet",href:Lk}),g.jsx("style",{children:`.gc-tooltip * {
942
959
  margin: 0;
943
960
  padding: 0;
944
961
  box-sizing: border-box;
945
962
  }
946
963
  .gc-tooltip .gc-close { display: none !important; }
947
- .gc-tooltip .gc-copyright { display: none !important; }`}),g.jsx("style",{dangerouslySetInnerHTML:{__html:_a}}),R&&g.jsx("div",{dangerouslySetInnerHTML:{__html:R}}),T&&g.jsx("script",{dangerouslySetInnerHTML:{__html:T}}),(()=>{const K=dk(e),L=hk(e),B=fk(e,t),Z=K?e[K]:null,W=L?e[L]:null,X=B?g.jsx(En,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!h,mainBlockId:B,hoistedSkipLinkId:K,hoistedA11yToolsId:L}):g.jsx("main",{id:"main-content",tabIndex:-1,children:g.jsx(En,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!h,hoistedSkipLinkId:K,hoistedA11yToolsId:L})});return g.jsxs(g.Fragment,{children:[Z&&g.jsx(Us,{...Z.data??{}}),h?X:g.jsx("div",{className:"ahd-page-root",children:X}),W&&g.jsx(qs,{...W.data??{}})]})})(),P&&g.jsx("script",{src:wk,defer:!0}),M&&g.jsx("script",{src:$k,defer:!0}),z&&g.jsx("script",{src:kk,defer:!0}),F&&g.jsx("script",{src:Ck,defer:!0}),H&&g.jsx("script",{src:_k,defer:!0}),V&&g.jsx("script",{src:Ak,defer:!0})]})}),pe=Tc.renderToStaticMarkup(ae),ee=he.css(Po)||Dm(Po),se=ee?pe.replace(/^(\s*<div\b[^>]*>)/,`$1<style>${ee}</style>`):pe;let fe=r?Lk(se):se;const Y=yk()+mk(),de=fe.lastIndexOf("</div>");return fe=de!==-1?fe.slice(0,de)+Y+fe.slice(de):fe+Y,c&&(fe=fe.replace("</head>",`${c}</head>`)),u&&(fe=fe.replace("</body>",`${u}</body>`)),fe}function Nl(e){return((e==null?void 0:e.sectionType)||"internal")==="external"}function zk(e,t={}){var r;if(!e)return"";const n=t.rootBlockId??"root",o=((r=e==null?void 0:e[n])==null?void 0:r.data)??{};try{return za(e,{rootBlockId:n,injectElementIds:!0,minifyCss:!0,includePageCSS:!0,lang:o.lang,skipLink:o.skipLink,accessibilityTools:o.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectAnimationScript:t.injectAnimationScript,injectFontAssets:t.injectFontAssets,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner,seo:t.seo})}catch(i){return console.error("[PagePilotEditor] renderToStaticMarkup failed:",i),""}}function br(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function jk(e,t={}){var v,S,k;const n=t.includeExternalSections??!0,o=t.wrapInDocumentShell??!0,r=[],i=e.map(w=>{var _;if(Nl(w))return n&&r.push(String((w==null?void 0:w.content)??"")),w;const C=(_=w==null?void 0:w.contentMetadata)==null?void 0:_.document;if(!C)return w!=null&&w.content&&r.push(String(w.content)),w;const y=zk(C,t);return y&&r.push(y),{...w,content:y,contentMetadata:{...w.contentMetadata??{},document:C}}}),a=r.join(`
948
- `);if(!o)return{html:a,sectionHtml:r,flushedSections:i};const l=e.find(w=>!Nl(w)),s=((k=(S=(v=l==null?void 0:l.contentMetadata)==null?void 0:v.document)==null?void 0:S.root)==null?void 0:k.data)??{},c=t.lang||s.lang||"en",u=t.canvasColor||s.canvasColor||"#FFFFFF",h=t.fontFamily||(typeof s.fontFamily=="string"?s.fontFamily:"Inter, system-ui, sans-serif"),d=t.seoTitle?`<title>${br(t.seoTitle)}</title>`:"",f=t.seoDescription?`<meta name="description" content="${br(t.seoDescription)}" />`:"",p=t.extraHead??"",b=t.extraBodyBottom??"";return{html:`<!doctype html>
949
- <html lang="${br(c)}">
964
+ .gc-tooltip .gc-copyright { display: none !important; }`}),g.jsx("style",{dangerouslySetInnerHTML:{__html:Ca}}),R&&g.jsx("div",{dangerouslySetInnerHTML:{__html:R}}),E&&g.jsx("script",{dangerouslySetInnerHTML:{__html:E}}),(()=>{const X=yk(e),j=Ik(e),B=Rk(e,t),K=X?e[X]:null,W=j?e[j]:null,te=B?g.jsx(Mn,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!h,mainBlockId:B,hoistedSkipLinkId:X,hoistedA11yToolsId:j}):g.jsx("main",{id:"main-content",tabIndex:-1,children:g.jsx(Mn,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!h,hoistedSkipLinkId:X,hoistedA11yToolsId:j})});return g.jsxs(g.Fragment,{children:[K&&g.jsx(Ws,{...K.data??{}}),h?te:g.jsx("div",{className:"ahd-page-root",children:te}),W&&g.jsx(Ys,{...W.data??{}})]})})(),P&&g.jsx("script",{src:Aw,defer:!0}),M&&g.jsx("script",{src:yw,defer:!0}),O&&g.jsx("script",{src:Iw,defer:!0}),H&&g.jsx("script",{src:Nw,defer:!0}),D&&g.jsx("script",{src:Rw,defer:!0}),V&&g.jsx("script",{src:Tw,defer:!0})]})}),ie=Ec.renderToStaticMarkup(Y),J=q.css(to)||Hm(to),re=J?ie.replace(/^(\s*<div\b[^>]*>)/,`$1<style>${J}</style>`):ie;let me=r?jk(re):re;const ae=Ew()+vw(),Se=me.lastIndexOf("</div>");return me=Se!==-1?me.slice(0,Se)+ae+me.slice(Se):me+ae,c&&(me=me.replace("</head>",`${c}</head>`)),u&&(me=me.replace("</body>",`${u}</body>`)),me}function Tl(e){return((e==null?void 0:e.sectionType)||"internal")==="external"}function Bk(e,t={}){var r;if(!e)return"";const n=t.rootBlockId??"root",o=((r=e==null?void 0:e[n])==null?void 0:r.data)??{};try{return ja(e,{rootBlockId:n,injectElementIds:!0,minifyCss:!0,includePageCSS:!0,lang:o.lang,skipLink:o.skipLink,accessibilityTools:o.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectAnimationScript:t.injectAnimationScript,injectFontAssets:t.injectFontAssets,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner,seo:t.seo})}catch(i){return console.error("[PagePilotEditor] renderToStaticMarkup failed:",i),""}}function vr(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Dk(e,t={}){var w,S,k;const n=t.includeExternalSections??!0,o=t.wrapInDocumentShell??!0,r=[],i=e.map(v=>{var C;if(Tl(v))return n&&r.push(String((v==null?void 0:v.content)??"")),v;const _=(C=v==null?void 0:v.contentMetadata)==null?void 0:C.document;if(!_)return v!=null&&v.content&&r.push(String(v.content)),v;const y=Bk(_,t);return y&&r.push(y),{...v,content:y,contentMetadata:{...v.contentMetadata??{},document:_}}}),a=r.join(`
965
+ `);if(!o)return{html:a,sectionHtml:r,flushedSections:i};const l=e.find(v=>!Tl(v)),s=((k=(S=(w=l==null?void 0:l.contentMetadata)==null?void 0:w.document)==null?void 0:S.root)==null?void 0:k.data)??{},c=t.lang||s.lang||"en",u=t.canvasColor||s.canvasColor||"#FFFFFF",h=t.fontFamily||(typeof s.fontFamily=="string"?s.fontFamily:"Inter, system-ui, sans-serif"),d=t.seoTitle?`<title>${vr(t.seoTitle)}</title>`:"",f=t.seoDescription?`<meta name="description" content="${vr(t.seoDescription)}" />`:"",p=t.extraHead??"",b=t.extraBodyBottom??"";return{html:`<!doctype html>
966
+ <html lang="${vr(c)}">
950
967
  <head>
951
968
  <meta charset="utf-8" />
952
969
  <meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -963,4 +980,4 @@ ${p}
963
980
  ${a}
964
981
  ${b}
965
982
  </body>
966
- </html>`,sectionHtml:r,flushedSections:i}}function Bk(e){var i,a,l,s,c,u,h,d,f,p,b;if(!e)return[];const t=e.configuration??{},n=(a=(i=t==null?void 0:t.root)==null?void 0:i.data)==null?void 0:a.formFields;if(Array.isArray(n)&&n.length>0)return n;if(t!=null&&t.isIndividualBlock&&Array.isArray(t.formFields)&&t.formFields.length>0)return t.formFields;const o=Array.isArray(t==null?void 0:t.steps)?t.steps:Array.isArray(t==null?void 0:t.slides)?t.slides:null;if(o){const x=new Set,v=[];for(const S of o){const k=(u=(c=(s=(l=S==null?void 0:S.contentMetadata)==null?void 0:l.document)==null?void 0:s.root)==null?void 0:c.data)==null?void 0:u.formFields;if(Array.isArray(k))for(const w of k)!(w!=null&&w.id)||x.has(w.id)||(x.add(w.id),v.push(w))}if(v.length>0)return v}const r=(b=(p=(f=(d=(h=t==null?void 0:t.step)==null?void 0:h.contentMetadata)==null?void 0:d.document)==null?void 0:f.root)==null?void 0:p.data)==null?void 0:b.formFields;return Array.isArray(r)&&r.length>0?r:Array.isArray(e.formFields)?e.formFields:[]}function Dk(e){var n,o,r,i,a,l,s;if(!e||typeof e!="object")return null;const t=e.configuration;if(!t||typeof t!="object")return null;if(t.root)return t;if(t.isIndividualBlock&&typeof t.rootBlockId=="string"&&t.blocks&&typeof t.blocks=="object"&&t.blocks[t.rootBlockId]){const c=Array.isArray(t.formFields)?t.formFields:[];return{...t.blocks,root:{type:"EmailLayout",data:{backdropColor:"#FFFFFF",canvasColor:"#FFFFFF",textColor:"#262626",fontFamily:"MODERN_SANS",childrenIds:[t.rootBlockId],maxWidth:"100%",formFields:c}}}}return(r=(o=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:o.document)!=null&&r.root?t.content.contentMetadata.document:(a=(i=t.contentMetadata)==null?void 0:i.document)!=null&&a.root?t.contentMetadata.document:(s=(l=e.contentMetadata)==null?void 0:l.document)!=null&&s.root?e.contentMetadata.document:null}function Tl(e,t){return t.split(".").map(n=>n.trim()).filter(Boolean).reduce((n,o)=>n==null?n:n[o],e)}function ja(e,t){if(t){const n=Tl(e,t);if(Array.isArray(n))return n;const o=ja(e);if(o){const r=o.map(i=>Tl(i,t)).filter(i=>i&&typeof i=="object");if(r.length>0)return r}}if(Array.isArray(e))return e;if(e&&typeof e=="object"){for(const n of["data","rows","results","items","records"])if(Array.isArray(e[n]))return e[n]}return null}function Fk(e,t){if(!t||t.length===0){const o={};for(const[r,i]of Object.entries(e))i!=null&&(o[r]=String(i));return o}const n={};for(const o of t){const r=e[o.id];r!=null&&r!==""&&(n[o.id]=String(r))}return e.id!==void 0&&n.id===void 0&&(n.id=String(e.id)),n}async function Hk(e,t,n,o){if(typeof AbortController>"u")return n(e,t);const r=new AbortController,i=setTimeout(()=>r.abort(),o);try{return await n(e,{...t,signal:r.signal})}finally{clearTimeout(i)}}async function wc(e,t={}){var h;const n=Array.isArray(e)?e:[],o=n.filter(d=>{var f,p;return((f=d==null?void 0:d.dataSource)==null?void 0:f.type)==="api"&&((p=d==null?void 0:d.dataSource)==null?void 0:p.apiUrl)});if(o.length===0)return{fields:n,attempted:0,refreshed:0,errors:{}};const r=t.fetchFn??(typeof fetch<"u"?fetch:void 0);if(!r){const d=new Error("[pagepilot-visual-editor] refreshApiDataSources: global fetch is not available — pass `fetchFn`.");for(const f of o)(h=t.onError)==null||h.call(t,f,d);return{fields:n,attempted:o.length,refreshed:0,errors:Object.fromEntries(o.map(f=>[f.id,d.message]))}}const i=t.timeoutMs??1e4,a={};let l=0;const s=await Promise.all(o.map(async d=>{var x;const{apiUrl:f,apiMethod:p="GET",apiItemPath:b}=d.dataSource;try{const v=await Hk(f,{method:p,headers:{Accept:"application/json",...t.headers}},r,i);if(!v.ok)throw new Error(`GET ${f} → HTTP ${v.status}`);const S=await v.json(),k=ja(S,b);if(!k)throw new Error(`GET ${f} → response had no array of rows`);const w=k.map(C=>Fk(C,d.itemFields));return l+=1,{id:d.id,value:w}}catch(v){const S=v instanceof Error?v:new Error(String(v));return a[d.id]=S.message,(x=t.onError)==null||x.call(t,d,S),null}}));if(l===0)return{fields:n,attempted:o.length,refreshed:0,errors:a};const c=new Map(s.filter(Boolean).map(d=>[d.id,d.value]));return{fields:n.map(d=>c.has(d.id)?{...d,value:c.get(d.id)}:d),attempted:o.length,refreshed:l,errors:a}}async function $c(e,t={}){var o,r;const n=(r=(o=e==null?void 0:e.root)==null?void 0:o.data)==null?void 0:r.formFields;return wc(Array.isArray(n)?n:[],t)}function kc(e,t){if(!e)return t();wi(e);try{return t()}finally{wi(null)}}function Gk(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function Uk(e){const t=e;return!!(t.pagePath&&t.baseUrl&&t.tenantId)}function Wk(e){const t=e;return!!(t.templateId&&t.baseUrl)}function Zk(e){if(!e||typeof e!="object")return e;const t=Pa(e);return!t||t.length===0?e:Oa(e,t)}async function El(e,t){if(!e||typeof e!="object")return{document:e,apiRefresh:null};const n=Pa(e);if(!n||n.length===0)return{document:e,apiRefresh:null};let o=n,r=null;return t.refreshApiDataSources&&(r=await $c(e,{fetchFn:t.fetchFn,headers:t.apiDataSourceHeaders,timeoutMs:t.apiDataSourceTimeoutMs,onError:t.onApiDataSourceError}),o=r.fields),{document:Oa(e,o),apiRefresh:r}}const Vk=new Set(["ColumnsContainer","FlexColumns","Grid","ButtonGroup","Container","EmailLayout","Accordion","PricingAccordion","TabsBlock","Carousel","Rating","Marquee","Timer","Pagination","Table","DemoPicker","MenuPicker","FormsPicker","AppBannerPicker","FaqPicker","Avatar","Button","Divider","Heading","Html","Image","Logo","Video","IFrame","Calendly","YouTubeUrl","Spacer","SkipLink","AccessibilityTools","Stepper","List","Text"]);function qk(e){var o,r,i;const t=((o=e==null?void 0:e.data)==null?void 0:o.props)??{};return{type:"Text",data:{props:{text:typeof t.html=="string"&&t.html||typeof t.text=="string"&&t.text||typeof t.markdown=="string"&&t.markdown||""},style:((r=e==null?void 0:e.data)==null?void 0:r.style)??{},hidden:(i=e==null?void 0:e.data)==null?void 0:i.hidden}}}function _c(e){if(!e||typeof e!="object")return e;let t=!1;const n={};for(const[o,r]of Object.entries(e)){const i=r==null?void 0:r.type;i&&!Vk.has(i)?(n[o]=qk(r),t=!0,console.warn(`[pagepilot-visual-editor] renderToStaticHtml: block "${o}" has unsupported type "${i}" — coerced to Text.`)):n[o]=r}return t?n:e}function Ba(e,t){var a;if(!e)return"";const n=t.rootBlockId??"root",o=Zk(e),r=_c(o),i=((a=r==null?void 0:r[n])==null?void 0:a.data)??{};return kc(t.recordType,()=>za(r,{rootBlockId:n,injectElementIds:t.injectElementIds??!0,minifyCss:t.minifyCss??!0,includePageCSS:t.includePageCSS??!0,lang:t.lang??i.lang,skipLink:t.skipLink??i.skipLink,accessibilityTools:t.accessibilityTools??i.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,seo:t.seo,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner}))}function Da(e){const t=e.fetchFn??(typeof fetch<"u"?fetch:void 0);if(!t)throw new Error("[pagepilot-visual-editor] renderToStaticHtml: global fetch is not available — pass `fetchFn`.");return t}function Fa(e){const t={"Content-Type":"application/json"};return e.authToken&&(t.Authorization=`Bearer ${e.authToken}`),t}async function Ha(e,t,n){const o=await n(e,t);if(!o.ok){const r=await o.text().catch(()=>"");return{ok:!1,body:null,status:o.status,text:r}}return{ok:!0,body:await o.json(),status:o.status,text:""}}async function Cc(e,t,n){var c;const{wrapInDocumentShell:o=!0,headHtml:r,bodyBottomHtml:i}=n,a=Array.isArray(t==null?void 0:t.sections)?t.sections:[];if(a.length===0){const{document:u}=await El(((c=t==null?void 0:t.contentMetadata)==null?void 0:c.document)??e,n);return Ba(u,{...n,recordType:n.recordType??"page"})}const l=await Promise.all(a.map(async u=>{var p;const h=(p=u==null?void 0:u.contentMetadata)==null?void 0:p.document;if(!h)return u;const{document:d}=await El(h,n),f=_c(d);return{...u,contentMetadata:{...u.contentMetadata??{},document:f}}})),{html:s}=kc(n.recordType??"page",()=>jk(l,{rootBlockId:n.rootBlockId,injectTabsScrollSyncScript:n.injectTabsScrollSyncScript,injectCarouselScript:n.injectCarouselScript,injectFontAssets:n.injectFontAssets,isBanner:n.isBanner,seo:n.seo,wrapInDocumentShell:o,seoTitle:(t==null?void 0:t.metaTitle)??(t==null?void 0:t.title)??(t==null?void 0:t.name),seoDescription:t==null?void 0:t.metaDescription,lang:n.lang??(t==null?void 0:t.lang),extraHead:r??(t==null?void 0:t.head)??"",extraBodyBottom:i??(t==null?void 0:t.bodyBottom)??""}));return s}async function Yk(e,t){const{baseUrl:n,tenantId:o,pageId:r}=t,a=`${n.replace(/\/+$/,"")}/tenant/${o}/page/${r}`,l=Da(t),s=await Ha(a,{method:"GET",headers:Fa(t)},l);if(!s.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${a} → ${s.status}${s.text?`: ${s.text}`:""}`);return Cc(e,s.body,{...t,fetchFn:l})}async function Kk(e,t){var d,f;const{baseUrl:n,tenantId:o,pagePath:r,cache:i=!1,update:a=!0}=t,s=`${n.replace(/\/+$/,"")}/tenant/${o}/pagebypath/${encodeURIComponent(r)}?cache=${i}&update=${a}`,c=Da(t),u=await Ha(s,{method:"GET",headers:Fa(t)},c);if(!u.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${s} → ${u.status}${u.text?`: ${u.text}`:""}`);const h=((d=u.body)==null?void 0:d.data)??((f=u.body)==null?void 0:f.payload)??u.body;return Cc(e,h,{...t,fetchFn:c})}async function Jk(e){const{baseUrl:t,tenantId:n,templateId:o,isGlobal:r=!1}=e,i=t.replace(/\/+$/,""),a=Da(e),l=r?`${i}/global-template/${o}`:`${i}/tenant/${n}/template/${o}`,s=r?{"Content-Type":"application/json"}:Fa(e),c=await Ha(l,{method:"GET",headers:s},a);if(c.ok)return c.body;throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${l} → ${c.status}${c.text?`: ${c.text}`:""}`)}function Xk(e,t){if(!t)return e;const n=new Map;for(const r of e)r!=null&&r.id&&n.set(r.id,r);if(Array.isArray(t)){for(const r of t){if(!(r!=null&&r.id))continue;const a={...n.get(r.id)??{id:r.id,name:r.id,type:"text"},...r};n.set(r.id,a)}return Array.from(n.values())}const o=Object.entries(t).filter(([,r])=>r!=null);if(o.length===0)return e;for(const[r,i]of o){const a=String(i),l=n.get(r);l?n.set(r,{...l,value:a}):n.set(r,{id:r,name:r,type:"text",value:a})}return Array.from(n.values())}async function Qk(e,t){const n=await Jk(t),o=Dk(n)??(e&&Object.keys(e).length>0?e:null);if(!o)return"";const r=Bk(n),i=Xk(r,t.variables),a=Oa(o,i);return Ba(a,t)}function e_(e,t){return Wk(t)?Qk(e,t):Uk(t)?Kk(e,t):Gk(t)?Yk(e,t):Ba(e,t)}function t_(){return`block-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}function n_(e,t){e.data&&(Array.isArray(e.data.childrenIds)&&(e.data.childrenIds=e.data.childrenIds.map(n=>t[n]??n)),e.data.props&&(Array.isArray(e.data.props.childrenIds)&&(e.data.props.childrenIds=e.data.props.childrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.startChildrenIds)&&(e.data.props.startChildrenIds=e.data.props.startChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.endChildrenIds)&&(e.data.props.endChildrenIds=e.data.props.endChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.columns)&&(e.data.props.columns=e.data.props.columns.map(n=>({...n,childrenIds:(n.childrenIds||[]).map(o=>t[o]??o)}))),Array.isArray(e.data.props.cells)&&(e.data.props.cells=e.data.props.cells.map(n=>n===null||typeof n!="object"?n:{...n,childrenIds:(n.childrenIds||[]).map(o=>t[o]??o)})),Array.isArray(e.data.props.items)&&(e.data.props.items=e.data.props.items.map(n=>({...n,...n.titleChildrenIds!==void 0?{titleChildrenIds:(n.titleChildrenIds||[]).map(o=>t[o]??o)}:{},...n.contentChildrenIds!==void 0?{contentChildrenIds:(n.contentChildrenIds||[]).map(o=>t[o]??o)}:{},...n.cardChildrenIds!==void 0?{cardChildrenIds:(n.cardChildrenIds||[]).map(o=>t[o]??o)}:{},...n.detailChildrenIds!==void 0?{detailChildrenIds:(n.detailChildrenIds||[]).map(o=>t[o]??o)}:{}})))))}function Ot(e,t){const n=Ea(e,t),o={};n.forEach(i=>{o[i]=t_()});const r={};return n.forEach(i=>{const a=JSON.parse(JSON.stringify(e[i]));n_(a,o),r[o[i]]=a}),{newBlocks:r,idMap:o,newRootId:o[t]}}function o_(e,t,n){var o,r,i,a;for(const[l,s]of Object.entries(e)){if(!s||typeof s!="object")continue;const c=s;if(c.data&&Array.isArray(c.data.childrenIds)&&c.data.childrenIds.includes(t)){const u=c.data.childrenIds.indexOf(t),h=[...c.data.childrenIds];return h.splice(u+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,childrenIds:h}}}}if(c.data&&c.data.props&&Array.isArray(c.data.props.childrenIds)&&c.data.props.childrenIds.includes(t)){const u=c.data.props.childrenIds.indexOf(t),h=[...c.data.props.childrenIds];return h.splice(u+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,childrenIds:h}}}}}if(c.data&&c.data.props&&Array.isArray(c.data.props.columns)){const u=c.data.props.columns;for(let h=0;h<u.length;h++){const d=u[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=u.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,columns:p}}}}}}}if(c.data&&c.data.props&&Array.isArray(c.data.props.cells)){const u=c.data.props.cells;for(let h=0;h<u.length;h++){const d=u[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=u.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,cells:p}}}}}}}if(c.type==="PricingAccordion"&&((o=c.data)!=null&&o.props)&&Array.isArray(c.data.props.items)){const u=c.data.props.items;for(let h=0;h<u.length;h++){const d=Array.isArray(u[h].cardChildrenIds)?u[h].cardChildrenIds:[],f=Array.isArray(u[h].detailChildrenIds)?u[h].detailChildrenIds:[];for(const[p,b]of[[d,"cardChildrenIds"],[f,"detailChildrenIds"]])if(p.includes(t)){const x=p.indexOf(t),v=u.map(S=>({...S,cardChildrenIds:Array.isArray(S.cardChildrenIds)?[...S.cardChildrenIds]:[],detailChildrenIds:Array.isArray(S.detailChildrenIds)?[...S.detailChildrenIds]:[]}));return v[h][b].splice(x+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:v}}}}}}}if((c.type==="TabsBlock"||c.type==="VerticalAccordion"||c.type==="Carousel"||c.type==="Marquee"||c.type==="Pagination")&&((r=c.data)!=null&&r.props)&&Array.isArray(c.data.props.items)){const u=c.data.props.items;for(let h=0;h<u.length;h++){const d=Array.isArray(u[h].contentChildrenIds)?u[h].contentChildrenIds:[];if(d.includes(t)){const f=d.indexOf(t),p=u.map(b=>({...b,contentChildrenIds:Array.isArray(b.contentChildrenIds)?[...b.contentChildrenIds]:[]}));return p[h].contentChildrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:p}}}}}}}if(c.type==="MenuPicker"&&((i=c.data)!=null&&i.props))for(const u of["startChildrenIds","endChildrenIds"]){const h=Array.isArray(c.data.props[u])?c.data.props[u]:[];if(h.includes(t)){const d=h.indexOf(t),f=[...h];return f.splice(d+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,[u]:f}}}}}}if(c.type==="Accordion"&&((a=c.data)!=null&&a.props)&&Array.isArray(c.data.props.items)){const u=c.data.props.items;for(let h=0;h<u.length;h++){const d=u[h],f=Array.isArray(d.titleChildrenIds)?d.titleChildrenIds:[],p=Array.isArray(d.contentChildrenIds)?d.contentChildrenIds:[];if(f.includes(t)){const b=f.indexOf(t),x=u.map(v=>({...v,titleChildrenIds:Array.isArray(v.titleChildrenIds)?[...v.titleChildrenIds]:[],contentChildrenIds:Array.isArray(v.contentChildrenIds)?[...v.contentChildrenIds]:[]}));return x[h].titleChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:x}}}}}if(p.includes(t)){const b=p.indexOf(t),x=u.map(v=>({...v,titleChildrenIds:Array.isArray(v.titleChildrenIds)?[...v.titleChildrenIds]:[],contentChildrenIds:Array.isArray(v.contentChildrenIds)?[...v.contentChildrenIds]:[]}));return x[h].contentChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:x}}}}}}}}return null}function r_(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){if((a==null?void 0:a.type)!=="FlexColumns")continue;const l=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.columns;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((r=l[s])==null?void 0:r.childrenIds)&&l[s].childrenIds.includes(t))return{flexId:i,columnIndex:s}}}return null}function a_(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){const l=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.cells;if(!((a==null?void 0:a.type)!=="Grid"||!Array.isArray(l))){for(let s=0;s<l.length;s++)if(Array.isArray((r=l[s])==null?void 0:r.childrenIds)&&l[s].childrenIds.includes(t))return{gridId:i,cellIndex:s}}}return null}function i_(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){if((a==null?void 0:a.type)!=="Pagination")continue;const l=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.cells;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((r=l[s])==null?void 0:r.childrenIds)&&l[s].childrenIds.includes(t))return{paginationId:i,cellIndex:s}}}return null}function l_(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){const l=a==null?void 0:a.type;if(l!=="Carousel"&&l!=="Marquee"&&l!=="TabsBlock")continue;const s=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.items;if(Array.isArray(s)){for(let c=0;c<s.length;c++)if(Array.isArray((r=s[c])==null?void 0:r.contentChildrenIds)&&s[c].contentChildrenIds.includes(t))return{parentId:i,itemIndex:c,parentType:l}}}return null}function Ml(e,t,n){var d,f,p;if(!e[t])return null;const o=e[t];if((o==null?void 0:o.type)==="TabsBlock"){const x=Array.isArray((f=(d=o.data)==null?void 0:d.props)==null?void 0:f.items)?o.data.props.items:[];if(x.length>=10)return null;const v=x[0]??{},S=Array.isArray(v.contentChildrenIds)?v.contentChildrenIds:[];let k={...e};const w=[];let C=null;for(const I of S){if(!k[I])continue;const{newBlocks:R,newRootId:T}=Ot(k,I);k={...k,...R},w.push(T),C||(C=T)}const y=C??t,_=[...x,{label:v.label??`Tab ${x.length+1}`,contentChildrenIds:w}];return k={...k,[t]:{...o,data:{...o.data,props:{...o.data.props,items:_}}}},{updatedDocument:k,newRootId:y}}const r=a_(e,n);if(r){const b=e[r.gridId],x=b.data.props??{},v=x.columnsCount??2,S=x.rowsCount??2,k=Array.isArray(x.cells)?x.cells:[],C=k.some(M=>(M==null?void 0:M.colStart)!=null||(M==null?void 0:M.rowStart)!=null||(M==null?void 0:M.colSpan)!=null||(M==null?void 0:M.rowSpan)!=null)?k.length:v*S,y=Array.from({length:C},(M,z)=>k[z]??{childrenIds:[]});let _=y.findIndex((M,z)=>z>r.cellIndex&&(!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0));if(_===-1&&(_=y.findIndex(M=>!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0)),_===-1)return null;const{newBlocks:I,newRootId:R}=Ot(e,t),T=y.map((M,z)=>z===_?{...M,childrenIds:[...(M==null?void 0:M.childrenIds)??[],R]}:M);return{updatedDocument:{...e,...I,[r.gridId]:{...b,data:{...b.data,props:{...b.data.props,cells:T}}}},newRootId:R}}const i=i_(e,n);if(i){const b=e[i.paginationId],x=b.data.props??{},v=x.columnsCount??2,S=x.rowsCount??2,k=Array.isArray(x.cells)?x.cells:[],w=Math.max(v*S,k.length),C=Array.from({length:w},(P,M)=>k[M]??{childrenIds:[]});let y=C.findIndex((P,M)=>M>i.cellIndex&&(!Array.isArray(P==null?void 0:P.childrenIds)||P.childrenIds.length===0));y===-1&&(y=C.findIndex(P=>!Array.isArray(P==null?void 0:P.childrenIds)||P.childrenIds.length===0)),y===-1&&(C.push({childrenIds:[]}),y=C.length-1);const{newBlocks:_,newRootId:I}=Ot(e,t),R=C.map((P,M)=>M===y?{...P,childrenIds:[...(P==null?void 0:P.childrenIds)??[],I]}:P);return{updatedDocument:{...e,..._,[i.paginationId]:{...b,data:{...b.data,props:{...b.data.props,cells:R}}}},newRootId:I}}const a=r_(e,n);if(a){const b=e[a.flexId],x=b.data.props??{},v=x.columnsCount??2,S=Array.isArray(x.columns)?x.columns:[],k=Array.from({length:v},(R,T)=>S[T]??{childrenIds:[]});let w=k.findIndex((R,T)=>T>a.columnIndex&&(!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0));if(w===-1&&(w=k.findIndex(R=>!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0)),w===-1)return null;const{newBlocks:C,newRootId:y}=Ot(e,t),_=k.map((R,T)=>T===w?{...R,childrenIds:[...(R==null?void 0:R.childrenIds)??[],y]}:R);return{updatedDocument:{...e,...C,[a.flexId]:{...b,data:{...b.data,props:{...b.data.props,columns:_}}}},newRootId:y}}const l=l_(e,n);if(l){let b=e[l.parentId],x=Array.isArray((p=b.data.props)==null?void 0:p.items)?b.data.props.items:[],v=e,S=x.findIndex((_,I)=>I>l.itemIndex&&(!Array.isArray(_==null?void 0:_.contentChildrenIds)||_.contentChildrenIds.length===0));if(S===-1&&(S=x.findIndex(_=>!Array.isArray(_==null?void 0:_.contentChildrenIds)||_.contentChildrenIds.length===0)),S===-1)if(l.parentType==="TabsBlock"&&x.length<10){const _=[...x,{label:`Tab ${x.length+1}`,contentChildrenIds:[]}];v={...v,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:_}}}},b=v[l.parentId],x=_,S=x.length-1}else return null;const{newBlocks:k,newRootId:w}=Ot(v,t),C=x.map((_,I)=>I===S?{..._,...l.parentType==="TabsBlock"&&!(_!=null&&_.label)?{label:`Tab ${I+1}`}:{},contentChildrenIds:[...(_==null?void 0:_.contentChildrenIds)??[],w]}:_);return{updatedDocument:{...v,...k,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:C}}}},newRootId:w}}const{newBlocks:s,newRootId:c}=Ot(e,t),u={...e,...s},h=o_(u,n,c);return h&&(u[h.parentId]=h.updatedParent),{updatedDocument:u,newRootId:c}}function Ac(e,t){const n=r=>Array.isArray(r)?r.filter(i=>!t.has(i)):r,o={};for(const[r,i]of Object.entries(e)){if(t.has(r))continue;const a=i;if(!(a!=null&&a.data)){o[r]=a;continue}const l={...a.data};if(Array.isArray(l.childrenIds)&&(l.childrenIds=n(l.childrenIds)),l.props){const s={...l.props};Array.isArray(s.childrenIds)&&(s.childrenIds=n(s.childrenIds)),Array.isArray(s.startChildrenIds)&&(s.startChildrenIds=n(s.startChildrenIds)),Array.isArray(s.endChildrenIds)&&(s.endChildrenIds=n(s.endChildrenIds)),Array.isArray(s.columns)&&(s.columns=s.columns.map(c=>({...c,childrenIds:n(c.childrenIds)}))),Array.isArray(s.cells)&&(s.cells=s.cells.map(c=>c===null||typeof c!="object"?c:{...c,childrenIds:n(c.childrenIds)})),Array.isArray(s.items)&&(s.items=s.items.map(c=>({...c,...c.titleChildrenIds!==void 0?{titleChildrenIds:n(c.titleChildrenIds)}:{},...c.contentChildrenIds!==void 0?{contentChildrenIds:n(c.contentChildrenIds)}:{},...c.cardChildrenIds!==void 0?{cardChildrenIds:n(c.cardChildrenIds)}:{},...c.detailChildrenIds!==void 0?{detailChildrenIds:n(c.detailChildrenIds)}:{}}))),l.props=s}o[r]={...a,data:l}}return o}function s_(e){var o;const t=e==null?void 0:e.type,n=((o=e==null?void 0:e.data)==null?void 0:o.props)??{};if(t==="Grid"){const r=n.columnsCount??2,i=n.rowsCount??2,a=Array.isArray(n.cells)?n.cells:[],s=a.some(u=>(u==null?void 0:u.colStart)!=null||(u==null?void 0:u.rowStart)!=null||(u==null?void 0:u.colSpan)!=null||(u==null?void 0:u.rowSpan)!=null)?a.length:r*i,c=Array.from({length:s},(u,h)=>{var d;return{childrenIds:Array.isArray((d=a[h])==null?void 0:d.childrenIds)?a[h].childrenIds:[]}});return{slotCount:s,slots:c}}if(t==="FlexColumns"){const r=n.columnsCount??(Array.isArray(n.columns)?n.columns.length:2),i=Array.isArray(n.columns)?n.columns:[],a=Array.from({length:r},(l,s)=>{var c;return{childrenIds:Array.isArray((c=i[s])==null?void 0:c.childrenIds)?i[s].childrenIds:[]}});return{slotCount:r,slots:a}}if(t==="Carousel"||t==="Marquee"){const r=Array.isArray(n.items)?n.items:[],i=r.length,a=r.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:i,slots:a}}if(t==="TabsBlock"){const r=Array.isArray(n.items)?n.items:[],i=r.length,a=r.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:i,slots:a}}if(t==="Pagination"){const r=n.columnsCount??2,i=n.rowsCount??2,a=Array.isArray(n.cells)?n.cells:[],l=Math.max(r*i,a.length),s=Array.from({length:l},(c,u)=>{var h;return{childrenIds:Array.isArray((h=a[u])==null?void 0:h.childrenIds)?a[u].childrenIds:[]}});return{slotCount:l,slots:s}}return null}function jn(e){return e==="Grid"||e==="FlexColumns"||e==="Carousel"||e==="Marquee"||e==="Pagination"||e==="TabsBlock"}const Qn=new WeakMap;function Ro(e,t){const n=e[t];if(!n||typeof n!="object")return null;const o=Qn.get(n);if(o!==void 0)return o&&o.containerId===t?o:o&&{...o,containerId:t};if(!jn(n.type))return Qn.set(n,null),null;const r=s_(n);if(!r)return Qn.set(n,null),null;const{slotCount:i,slots:a}=r,l=a.findIndex(u=>u.childrenIds.length>0),s=a.filter(u=>u.childrenIds.length===0).length,c={containerId:t,type:n.type,slotCount:i,slots:a,firstFilledSlot:l,emptySlotCount:s};return Qn.set(n,c),c}function sa(e,t){for(const[n,o]of Object.entries(e)){if(!jn(o==null?void 0:o.type))continue;const r=Ro(e,n);if(r!=null&&r.slots.some(i=>i.childrenIds.includes(t)))return n}return null}function yc(e,t,n,o){var c;const r=e[t];if(!r||!jn(r.type))return e;const i=((c=r.data)==null?void 0:c.props)??{};if(r.type==="Grid"){let u=i.columnsCount??2,h=i.rowsCount??2;if(u*h>=n)return e;o==="columns"?u=Math.max(u,Math.ceil(n/Math.max(1,h))):h=Math.max(h,Math.ceil(n/Math.max(1,u)));const d=u*h,f=Array.isArray(i.cells)?i.cells:[],p=Array.from({length:d},(b,x)=>f[x]??{childrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,columnsCount:u,rowsCount:h,cells:p}}}}}if(r.type==="Carousel"){const h=Array.isArray(i.items)?i.items:[];if(h.length>=n)return e;const d=Math.min(n,20),f=Array.from({length:d},(p,b)=>h[b]??{contentChildrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,items:f}}}}}if(r.type==="Marquee"){const h=Array.isArray(i.items)?i.items:[];if(h.length>=n)return e;const d=Math.min(n,30),f=Array.from({length:d},(p,b)=>h[b]??{contentChildrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,items:f}}}}}if(r.type==="TabsBlock"){const h=Array.isArray(i.items)?i.items:[];if(h.length>=n)return e;const d=Math.min(n,10),f=Array.from({length:d},(p,b)=>h[b]??{label:`Tab ${b+1}`,contentChildrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,items:f}}}}}if(r.type==="Pagination"){const u=i.columnsCount??2,h=i.rowsCount??2,d=Array.isArray(i.cells)?i.cells:[];if(Math.max(u*h,d.length)>=n)return e;const p=Array.from({length:n},(b,x)=>d[x]??{childrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,cells:p}}}}}if((i.columnsCount??(Array.isArray(i.columns)?i.columns.length:2))>=n)return e;const l=Array.isArray(i.columns)?i.columns:[],s=Array.from({length:n},(u,h)=>l[h]??{childrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,columnsCount:n,columns:s}}}}}function Ic(e,t,n){var c;const o=e[t];if(!o||!jn(o.type))return e;const r=Ro(e,t);if(!r)return e;let i=-1;r.slots.forEach((u,h)=>{u.childrenIds.length>0&&(i=h)});const a=Math.max(n,i+1,1);if(a>=r.slotCount)return e;const l=((c=o.data)==null?void 0:c.props)??{};if(o.type==="Pagination"){const u=(l.columnsCount??2)*(l.rowsCount??2),h=Math.max(a,u);if(h>=r.slotCount)return e;const d=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,cells:d.slice(0,h)}}}}}if(o.type==="Carousel"||o.type==="Marquee"||o.type==="TabsBlock"){const u=Array.isArray(l.items)?l.items:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,items:u.slice(0,a)}}}}}if(o.type==="Grid"){const u=l.columnsCount??2,h=l.rowsCount??2,d=Math.max(1,Math.ceil(a/Math.max(1,u)));if(d>=h)return e;const f=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,rowsCount:d,cells:f.slice(0,u*d)}}}}}const s=Array.isArray(l.columns)?l.columns:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,columnsCount:a,columns:s.slice(0,a)}}}}}function c_(e,t,n,o="columns"){const r=t==null?void 0:t.sourceBlockId;if(!r||!e[r])return null;const i=Math.max(1,n);let a=e,l=Array.isArray(t.rowIds)?[...t.rowIds]:[],s=1+l.length;if(s===i)return{document:a,sourceBlockId:r,rowIds:l,achievedRowCount:s,capacityLimited:!1};if(s<i){let h=!1;for(;s<i;){const d=l.length>0?l[l.length-1]:r;let f=Ml(a,r,d);if(!f){const p=sa(a,r);if(!p){h=!0;break}const b=Ro(a,p),x=((b==null?void 0:b.slotCount)??0)+(i-s),v=yc(a,p,x,o);if(v===a){h=!0;break}if(a=v,f=Ml(a,r,d),!f){h=!0;break}}a=f.updatedDocument,l=[...l,f.newRootId],s=1+l.length}return{document:a,sourceBlockId:r,rowIds:l,achievedRowCount:s,capacityLimited:h}}const c=i,u=l.slice(c-1);if(u.length>0){const h=new Set;for(const f of u)for(const p of Ea(a,f))h.add(p);a=Ac(a,h);const d=sa(a,r);d&&(a=Ic(a,d,c)),l=l.slice(0,c-1),s=1+l.length}return{document:a,sourceBlockId:r,rowIds:l,achievedRowCount:s,capacityLimited:!1}}exports.Reader=En;exports.ReaderBlock=Ae;exports.ReaderBlockSchema=xc;exports.ReaderDocumentSchema=ck;exports.cloneSubtree=Ot;exports.extractApiRows=ja;exports.findRepeatableContainerOf=sa;exports.getRepeatableContainerInfo=Ro;exports.growContainerToFit=yc;exports.isRepeatableContainerType=jn;exports.reconcileRepeatFieldRowCount=c_;exports.refreshApiDataSources=wc;exports.refreshDocumentApiDataSources=$c;exports.removeSubtree=Ac;exports.renderToStaticHtml=e_;exports.renderToStaticMarkup=za;exports.shrinkContainerToFit=Ic;
983
+ </html>`,sectionHtml:r,flushedSections:i}}function Fk(e){var i,a,l,s,c,u,h,d,f,p,b;if(!e)return[];const t=e.configuration??{},n=(a=(i=t==null?void 0:t.root)==null?void 0:i.data)==null?void 0:a.formFields;if(Array.isArray(n)&&n.length>0)return n;if(t!=null&&t.isIndividualBlock&&Array.isArray(t.formFields)&&t.formFields.length>0)return t.formFields;const o=Array.isArray(t==null?void 0:t.steps)?t.steps:Array.isArray(t==null?void 0:t.slides)?t.slides:null;if(o){const x=new Set,w=[];for(const S of o){const k=(u=(c=(s=(l=S==null?void 0:S.contentMetadata)==null?void 0:l.document)==null?void 0:s.root)==null?void 0:c.data)==null?void 0:u.formFields;if(Array.isArray(k))for(const v of k)!(v!=null&&v.id)||x.has(v.id)||(x.add(v.id),w.push(v))}if(w.length>0)return w}const r=(b=(p=(f=(d=(h=t==null?void 0:t.step)==null?void 0:h.contentMetadata)==null?void 0:d.document)==null?void 0:f.root)==null?void 0:p.data)==null?void 0:b.formFields;return Array.isArray(r)&&r.length>0?r:Array.isArray(e.formFields)?e.formFields:[]}function Hk(e){var n,o,r,i,a,l,s;if(!e||typeof e!="object")return null;const t=e.configuration;if(!t||typeof t!="object")return null;if(t.root)return t;if(t.isIndividualBlock&&typeof t.rootBlockId=="string"&&t.blocks&&typeof t.blocks=="object"&&t.blocks[t.rootBlockId]){const c=Array.isArray(t.formFields)?t.formFields:[];return{...t.blocks,root:{type:"EmailLayout",data:{backdropColor:"#FFFFFF",canvasColor:"#FFFFFF",textColor:"#262626",fontFamily:"MODERN_SANS",childrenIds:[t.rootBlockId],maxWidth:"100%",formFields:c}}}}return(r=(o=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:o.document)!=null&&r.root?t.content.contentMetadata.document:(a=(i=t.contentMetadata)==null?void 0:i.document)!=null&&a.root?t.contentMetadata.document:(s=(l=e.contentMetadata)==null?void 0:l.document)!=null&&s.root?e.contentMetadata.document:null}function El(e,t){return t.split(".").map(n=>n.trim()).filter(Boolean).reduce((n,o)=>n==null?n:n[o],e)}function Ba(e,t){if(t){const n=El(e,t);if(Array.isArray(n))return n;const o=Ba(e);if(o){const r=o.map(i=>El(i,t)).filter(i=>i&&typeof i=="object");if(r.length>0)return r}}if(Array.isArray(e))return e;if(e&&typeof e=="object"){for(const n of["data","rows","results","items","records"])if(Array.isArray(e[n]))return e[n]}return null}function Gk(e,t){if(!t||t.length===0){const o={};for(const[r,i]of Object.entries(e))i!=null&&(o[r]=String(i));return o}const n={};for(const o of t){const r=e[o.id];r!=null&&r!==""&&(n[o.id]=String(r))}return e.id!==void 0&&n.id===void 0&&(n.id=String(e.id)),n}async function Uk(e,t,n,o){if(typeof AbortController>"u")return n(e,t);const r=new AbortController,i=setTimeout(()=>r.abort(),o);try{return await n(e,{...t,signal:r.signal})}finally{clearTimeout(i)}}async function $c(e,t={}){var h;const n=Array.isArray(e)?e:[],o=n.filter(d=>{var f,p;return((f=d==null?void 0:d.dataSource)==null?void 0:f.type)==="api"&&((p=d==null?void 0:d.dataSource)==null?void 0:p.apiUrl)});if(o.length===0)return{fields:n,attempted:0,refreshed:0,errors:{}};const r=t.fetchFn??(typeof fetch<"u"?fetch:void 0);if(!r){const d=new Error("[pagepilot-visual-editor] refreshApiDataSources: global fetch is not available — pass `fetchFn`.");for(const f of o)(h=t.onError)==null||h.call(t,f,d);return{fields:n,attempted:o.length,refreshed:0,errors:Object.fromEntries(o.map(f=>[f.id,d.message]))}}const i=t.timeoutMs??1e4,a={};let l=0;const s=await Promise.all(o.map(async d=>{var x;const{apiUrl:f,apiMethod:p="GET",apiItemPath:b}=d.dataSource;try{const w=await Uk(f,{method:p,headers:{Accept:"application/json",...t.headers}},r,i);if(!w.ok)throw new Error(`GET ${f} → HTTP ${w.status}`);const S=await w.json(),k=Ba(S,b);if(!k)throw new Error(`GET ${f} → response had no array of rows`);const v=k.map(_=>Gk(_,d.itemFields));return l+=1,{id:d.id,value:v}}catch(w){const S=w instanceof Error?w:new Error(String(w));return a[d.id]=S.message,(x=t.onError)==null||x.call(t,d,S),null}}));if(l===0)return{fields:n,attempted:o.length,refreshed:0,errors:a};const c=new Map(s.filter(Boolean).map(d=>[d.id,d.value]));return{fields:n.map(d=>c.has(d.id)?{...d,value:c.get(d.id)}:d),attempted:o.length,refreshed:l,errors:a}}async function kc(e,t={}){var o,r;const n=(r=(o=e==null?void 0:e.root)==null?void 0:o.data)==null?void 0:r.formFields;return $c(Array.isArray(n)?n:[],t)}function _c(e,t){if(!e)return t();$i(e);try{return t()}finally{$i(null)}}function Wk(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function Zk(e){const t=e;return!!(t.pagePath&&t.baseUrl&&t.tenantId)}function Vk(e){const t=e;return!!(t.templateId&&t.baseUrl)}function qk(e){if(!e||typeof e!="object")return e;const t=Oa(e);return!t||t.length===0?e:La(e,t)}async function Ml(e,t){if(!e||typeof e!="object")return{document:e,apiRefresh:null};const n=Oa(e);if(!n||n.length===0)return{document:e,apiRefresh:null};let o=n,r=null;return t.refreshApiDataSources&&(r=await kc(e,{fetchFn:t.fetchFn,headers:t.apiDataSourceHeaders,timeoutMs:t.apiDataSourceTimeoutMs,onError:t.onApiDataSourceError}),o=r.fields),{document:La(e,o),apiRefresh:r}}const Yk=new Set(["ColumnsContainer","FlexColumns","Grid","ButtonGroup","Container","EmailLayout","Accordion","PricingAccordion","TabsBlock","Carousel","Rating","Marquee","Timer","Pagination","Table","DemoPicker","MenuPicker","FormsPicker","AppBannerPicker","FaqPicker","Avatar","Button","Divider","Heading","Html","Image","Logo","Video","IFrame","Calendly","YouTubeUrl","Spacer","SkipLink","AccessibilityTools","Stepper","List","Text"]);function Kk(e){var o,r,i;const t=((o=e==null?void 0:e.data)==null?void 0:o.props)??{};return{type:"Text",data:{props:{text:typeof t.html=="string"&&t.html||typeof t.text=="string"&&t.text||typeof t.markdown=="string"&&t.markdown||""},style:((r=e==null?void 0:e.data)==null?void 0:r.style)??{},hidden:(i=e==null?void 0:e.data)==null?void 0:i.hidden}}}function Cc(e){if(!e||typeof e!="object")return e;let t=!1;const n={};for(const[o,r]of Object.entries(e)){const i=r==null?void 0:r.type;i&&!Yk.has(i)?(n[o]=Kk(r),t=!0,console.warn(`[pagepilot-visual-editor] renderToStaticHtml: block "${o}" has unsupported type "${i}" — coerced to Text.`)):n[o]=r}return t?n:e}function Da(e,t){var a;if(!e)return"";const n=t.rootBlockId??"root",o=qk(e),r=Cc(o),i=((a=r==null?void 0:r[n])==null?void 0:a.data)??{};return _c(t.recordType,()=>ja(r,{rootBlockId:n,injectElementIds:t.injectElementIds??!0,minifyCss:t.minifyCss??!0,includePageCSS:t.includePageCSS??!0,lang:t.lang??i.lang,skipLink:t.skipLink??i.skipLink,accessibilityTools:t.accessibilityTools??i.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,seo:t.seo,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner}))}function Fa(e){const t=e.fetchFn??(typeof fetch<"u"?fetch:void 0);if(!t)throw new Error("[pagepilot-visual-editor] renderToStaticHtml: global fetch is not available — pass `fetchFn`.");return t}function Ha(e){const t={"Content-Type":"application/json"};return e.authToken&&(t.Authorization=`Bearer ${e.authToken}`),t}async function Ga(e,t,n){const o=await n(e,t);if(!o.ok){const r=await o.text().catch(()=>"");return{ok:!1,body:null,status:o.status,text:r}}return{ok:!0,body:await o.json(),status:o.status,text:""}}async function Ac(e,t,n){var c;const{wrapInDocumentShell:o=!0,headHtml:r,bodyBottomHtml:i}=n,a=Array.isArray(t==null?void 0:t.sections)?t.sections:[];if(a.length===0){const{document:u}=await Ml(((c=t==null?void 0:t.contentMetadata)==null?void 0:c.document)??e,n);return Da(u,{...n,recordType:n.recordType??"page"})}const l=await Promise.all(a.map(async u=>{var p;const h=(p=u==null?void 0:u.contentMetadata)==null?void 0:p.document;if(!h)return u;const{document:d}=await Ml(h,n),f=Cc(d);return{...u,contentMetadata:{...u.contentMetadata??{},document:f}}})),{html:s}=_c(n.recordType??"page",()=>Dk(l,{rootBlockId:n.rootBlockId,injectTabsScrollSyncScript:n.injectTabsScrollSyncScript,injectCarouselScript:n.injectCarouselScript,injectFontAssets:n.injectFontAssets,isBanner:n.isBanner,seo:n.seo,wrapInDocumentShell:o,seoTitle:(t==null?void 0:t.metaTitle)??(t==null?void 0:t.title)??(t==null?void 0:t.name),seoDescription:t==null?void 0:t.metaDescription,lang:n.lang??(t==null?void 0:t.lang),extraHead:r??(t==null?void 0:t.head)??"",extraBodyBottom:i??(t==null?void 0:t.bodyBottom)??""}));return s}async function Jk(e,t){const{baseUrl:n,tenantId:o,pageId:r}=t,a=`${n.replace(/\/+$/,"")}/tenant/${o}/page/${r}`,l=Fa(t),s=await Ga(a,{method:"GET",headers:Ha(t)},l);if(!s.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${a} → ${s.status}${s.text?`: ${s.text}`:""}`);return Ac(e,s.body,{...t,fetchFn:l})}async function Xk(e,t){var d,f;const{baseUrl:n,tenantId:o,pagePath:r,cache:i=!1,update:a=!0}=t,s=`${n.replace(/\/+$/,"")}/tenant/${o}/pagebypath/${encodeURIComponent(r)}?cache=${i}&update=${a}`,c=Fa(t),u=await Ga(s,{method:"GET",headers:Ha(t)},c);if(!u.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${s} → ${u.status}${u.text?`: ${u.text}`:""}`);const h=((d=u.body)==null?void 0:d.data)??((f=u.body)==null?void 0:f.payload)??u.body;return Ac(e,h,{...t,fetchFn:c})}async function Qk(e){const{baseUrl:t,tenantId:n,templateId:o,isGlobal:r=!1}=e,i=t.replace(/\/+$/,""),a=Fa(e),l=r?`${i}/global-template/${o}`:`${i}/tenant/${n}/template/${o}`,s=r?{"Content-Type":"application/json"}:Ha(e),c=await Ga(l,{method:"GET",headers:s},a);if(c.ok)return c.body;throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${l} → ${c.status}${c.text?`: ${c.text}`:""}`)}function e_(e,t){if(!t)return e;const n=new Map;for(const r of e)r!=null&&r.id&&n.set(r.id,r);if(Array.isArray(t)){for(const r of t){if(!(r!=null&&r.id))continue;const a={...n.get(r.id)??{id:r.id,name:r.id,type:"text"},...r};n.set(r.id,a)}return Array.from(n.values())}const o=Object.entries(t).filter(([,r])=>r!=null);if(o.length===0)return e;for(const[r,i]of o){const a=String(i),l=n.get(r);l?n.set(r,{...l,value:a}):n.set(r,{id:r,name:r,type:"text",value:a})}return Array.from(n.values())}async function t_(e,t){const n=await Qk(t),o=Hk(n)??(e&&Object.keys(e).length>0?e:null);if(!o)return"";const r=Fk(n),i=e_(r,t.variables),a=La(o,i);return Da(a,t)}function n_(e,t){return Vk(t)?t_(e,t):Zk(t)?Xk(e,t):Wk(t)?Jk(e,t):Da(e,t)}function o_(){return`block-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}function r_(e,t){e.data&&(Array.isArray(e.data.childrenIds)&&(e.data.childrenIds=e.data.childrenIds.map(n=>t[n]??n)),e.data.props&&(Array.isArray(e.data.props.childrenIds)&&(e.data.props.childrenIds=e.data.props.childrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.startChildrenIds)&&(e.data.props.startChildrenIds=e.data.props.startChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.endChildrenIds)&&(e.data.props.endChildrenIds=e.data.props.endChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.columns)&&(e.data.props.columns=e.data.props.columns.map(n=>({...n,childrenIds:(n.childrenIds||[]).map(o=>t[o]??o)}))),Array.isArray(e.data.props.cells)&&(e.data.props.cells=e.data.props.cells.map(n=>n===null||typeof n!="object"?n:{...n,childrenIds:(n.childrenIds||[]).map(o=>t[o]??o)})),Array.isArray(e.data.props.items)&&(e.data.props.items=e.data.props.items.map(n=>({...n,...n.titleChildrenIds!==void 0?{titleChildrenIds:(n.titleChildrenIds||[]).map(o=>t[o]??o)}:{},...n.contentChildrenIds!==void 0?{contentChildrenIds:(n.contentChildrenIds||[]).map(o=>t[o]??o)}:{},...n.cardChildrenIds!==void 0?{cardChildrenIds:(n.cardChildrenIds||[]).map(o=>t[o]??o)}:{},...n.detailChildrenIds!==void 0?{detailChildrenIds:(n.detailChildrenIds||[]).map(o=>t[o]??o)}:{}})))))}function Ot(e,t){const n=Ma(e,t),o={};n.forEach(i=>{o[i]=o_()});const r={};return n.forEach(i=>{const a=JSON.parse(JSON.stringify(e[i]));r_(a,o),r[o[i]]=a}),{newBlocks:r,idMap:o,newRootId:o[t]}}function a_(e,t,n){var o,r,i,a;for(const[l,s]of Object.entries(e)){if(!s||typeof s!="object")continue;const c=s;if(c.data&&Array.isArray(c.data.childrenIds)&&c.data.childrenIds.includes(t)){const u=c.data.childrenIds.indexOf(t),h=[...c.data.childrenIds];return h.splice(u+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,childrenIds:h}}}}if(c.data&&c.data.props&&Array.isArray(c.data.props.childrenIds)&&c.data.props.childrenIds.includes(t)){const u=c.data.props.childrenIds.indexOf(t),h=[...c.data.props.childrenIds];return h.splice(u+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,childrenIds:h}}}}}if(c.data&&c.data.props&&Array.isArray(c.data.props.columns)){const u=c.data.props.columns;for(let h=0;h<u.length;h++){const d=u[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=u.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,columns:p}}}}}}}if(c.data&&c.data.props&&Array.isArray(c.data.props.cells)){const u=c.data.props.cells;for(let h=0;h<u.length;h++){const d=u[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=u.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,cells:p}}}}}}}if(c.type==="PricingAccordion"&&((o=c.data)!=null&&o.props)&&Array.isArray(c.data.props.items)){const u=c.data.props.items;for(let h=0;h<u.length;h++){const d=Array.isArray(u[h].cardChildrenIds)?u[h].cardChildrenIds:[],f=Array.isArray(u[h].detailChildrenIds)?u[h].detailChildrenIds:[];for(const[p,b]of[[d,"cardChildrenIds"],[f,"detailChildrenIds"]])if(p.includes(t)){const x=p.indexOf(t),w=u.map(S=>({...S,cardChildrenIds:Array.isArray(S.cardChildrenIds)?[...S.cardChildrenIds]:[],detailChildrenIds:Array.isArray(S.detailChildrenIds)?[...S.detailChildrenIds]:[]}));return w[h][b].splice(x+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:w}}}}}}}if((c.type==="TabsBlock"||c.type==="VerticalAccordion"||c.type==="Carousel"||c.type==="Marquee"||c.type==="Pagination")&&((r=c.data)!=null&&r.props)&&Array.isArray(c.data.props.items)){const u=c.data.props.items;for(let h=0;h<u.length;h++){const d=Array.isArray(u[h].contentChildrenIds)?u[h].contentChildrenIds:[];if(d.includes(t)){const f=d.indexOf(t),p=u.map(b=>({...b,contentChildrenIds:Array.isArray(b.contentChildrenIds)?[...b.contentChildrenIds]:[]}));return p[h].contentChildrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:p}}}}}}}if(c.type==="MenuPicker"&&((i=c.data)!=null&&i.props))for(const u of["startChildrenIds","endChildrenIds"]){const h=Array.isArray(c.data.props[u])?c.data.props[u]:[];if(h.includes(t)){const d=h.indexOf(t),f=[...h];return f.splice(d+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,[u]:f}}}}}}if(c.type==="Accordion"&&((a=c.data)!=null&&a.props)&&Array.isArray(c.data.props.items)){const u=c.data.props.items;for(let h=0;h<u.length;h++){const d=u[h],f=Array.isArray(d.titleChildrenIds)?d.titleChildrenIds:[],p=Array.isArray(d.contentChildrenIds)?d.contentChildrenIds:[];if(f.includes(t)){const b=f.indexOf(t),x=u.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[h].titleChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:x}}}}}if(p.includes(t)){const b=p.indexOf(t),x=u.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[h].contentChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:x}}}}}}}}return null}function i_(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){if((a==null?void 0:a.type)!=="FlexColumns")continue;const l=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.columns;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((r=l[s])==null?void 0:r.childrenIds)&&l[s].childrenIds.includes(t))return{flexId:i,columnIndex:s}}}return null}function l_(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){const l=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.cells;if(!((a==null?void 0:a.type)!=="Grid"||!Array.isArray(l))){for(let s=0;s<l.length;s++)if(Array.isArray((r=l[s])==null?void 0:r.childrenIds)&&l[s].childrenIds.includes(t))return{gridId:i,cellIndex:s}}}return null}function s_(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){if((a==null?void 0:a.type)!=="Pagination")continue;const l=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.cells;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((r=l[s])==null?void 0:r.childrenIds)&&l[s].childrenIds.includes(t))return{paginationId:i,cellIndex:s}}}return null}function c_(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){const l=a==null?void 0:a.type;if(l!=="Carousel"&&l!=="Marquee"&&l!=="TabsBlock")continue;const s=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.items;if(Array.isArray(s)){for(let c=0;c<s.length;c++)if(Array.isArray((r=s[c])==null?void 0:r.contentChildrenIds)&&s[c].contentChildrenIds.includes(t))return{parentId:i,itemIndex:c,parentType:l}}}return null}function Pl(e,t,n){var d,f,p;if(!e[t])return null;const o=e[t];if((o==null?void 0:o.type)==="TabsBlock"){const x=Array.isArray((f=(d=o.data)==null?void 0:d.props)==null?void 0:f.items)?o.data.props.items:[];if(x.length>=10)return null;const w=x[0]??{},S=Array.isArray(w.contentChildrenIds)?w.contentChildrenIds:[];let k={...e};const v=[];let _=null;for(const I of S){if(!k[I])continue;const{newBlocks:R,newRootId:E}=Ot(k,I);k={...k,...R},v.push(E),_||(_=E)}const y=_??t,C=[...x,{label:w.label??`Tab ${x.length+1}`,contentChildrenIds:v}];return k={...k,[t]:{...o,data:{...o.data,props:{...o.data.props,items:C}}}},{updatedDocument:k,newRootId:y}}const r=l_(e,n);if(r){const b=e[r.gridId],x=b.data.props??{},w=x.columnsCount??2,S=x.rowsCount??2,k=Array.isArray(x.cells)?x.cells:[],_=k.some(M=>(M==null?void 0:M.colStart)!=null||(M==null?void 0:M.rowStart)!=null||(M==null?void 0:M.colSpan)!=null||(M==null?void 0:M.rowSpan)!=null)?k.length:w*S,y=Array.from({length:_},(M,O)=>k[O]??{childrenIds:[]});let C=y.findIndex((M,O)=>O>r.cellIndex&&(!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0));if(C===-1&&(C=y.findIndex(M=>!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0)),C===-1)return null;const{newBlocks:I,newRootId:R}=Ot(e,t),E=y.map((M,O)=>O===C?{...M,childrenIds:[...(M==null?void 0:M.childrenIds)??[],R]}:M);return{updatedDocument:{...e,...I,[r.gridId]:{...b,data:{...b.data,props:{...b.data.props,cells:E}}}},newRootId:R}}const i=s_(e,n);if(i){const b=e[i.paginationId],x=b.data.props??{},w=x.columnsCount??2,S=x.rowsCount??2,k=Array.isArray(x.cells)?x.cells:[],v=Math.max(w*S,k.length),_=Array.from({length:v},(P,M)=>k[M]??{childrenIds:[]});let y=_.findIndex((P,M)=>M>i.cellIndex&&(!Array.isArray(P==null?void 0:P.childrenIds)||P.childrenIds.length===0));y===-1&&(y=_.findIndex(P=>!Array.isArray(P==null?void 0:P.childrenIds)||P.childrenIds.length===0)),y===-1&&(_.push({childrenIds:[]}),y=_.length-1);const{newBlocks:C,newRootId:I}=Ot(e,t),R=_.map((P,M)=>M===y?{...P,childrenIds:[...(P==null?void 0:P.childrenIds)??[],I]}:P);return{updatedDocument:{...e,...C,[i.paginationId]:{...b,data:{...b.data,props:{...b.data.props,cells:R}}}},newRootId:I}}const a=i_(e,n);if(a){const b=e[a.flexId],x=b.data.props??{},w=x.columnsCount??2,S=Array.isArray(x.columns)?x.columns:[],k=Array.from({length:w},(R,E)=>S[E]??{childrenIds:[]});let v=k.findIndex((R,E)=>E>a.columnIndex&&(!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0));if(v===-1&&(v=k.findIndex(R=>!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0)),v===-1)return null;const{newBlocks:_,newRootId:y}=Ot(e,t),C=k.map((R,E)=>E===v?{...R,childrenIds:[...(R==null?void 0:R.childrenIds)??[],y]}:R);return{updatedDocument:{...e,..._,[a.flexId]:{...b,data:{...b.data,props:{...b.data.props,columns:C}}}},newRootId:y}}const l=c_(e,n);if(l){let b=e[l.parentId],x=Array.isArray((p=b.data.props)==null?void 0:p.items)?b.data.props.items:[],w=e,S=x.findIndex((C,I)=>I>l.itemIndex&&(!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0));if(S===-1&&(S=x.findIndex(C=>!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0)),S===-1)if(l.parentType==="TabsBlock"&&x.length<10){const C=[...x,{label:`Tab ${x.length+1}`,contentChildrenIds:[]}];w={...w,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:C}}}},b=w[l.parentId],x=C,S=x.length-1}else return null;const{newBlocks:k,newRootId:v}=Ot(w,t),_=x.map((C,I)=>I===S?{...C,...l.parentType==="TabsBlock"&&!(C!=null&&C.label)?{label:`Tab ${I+1}`}:{},contentChildrenIds:[...(C==null?void 0:C.contentChildrenIds)??[],v]}:C);return{updatedDocument:{...w,...k,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:_}}}},newRootId:v}}const{newBlocks:s,newRootId:c}=Ot(e,t),u={...e,...s},h=a_(u,n,c);return h&&(u[h.parentId]=h.updatedParent),{updatedDocument:u,newRootId:c}}function yc(e,t){const n=r=>Array.isArray(r)?r.filter(i=>!t.has(i)):r,o={};for(const[r,i]of Object.entries(e)){if(t.has(r))continue;const a=i;if(!(a!=null&&a.data)){o[r]=a;continue}const l={...a.data};if(Array.isArray(l.childrenIds)&&(l.childrenIds=n(l.childrenIds)),l.props){const s={...l.props};Array.isArray(s.childrenIds)&&(s.childrenIds=n(s.childrenIds)),Array.isArray(s.startChildrenIds)&&(s.startChildrenIds=n(s.startChildrenIds)),Array.isArray(s.endChildrenIds)&&(s.endChildrenIds=n(s.endChildrenIds)),Array.isArray(s.columns)&&(s.columns=s.columns.map(c=>({...c,childrenIds:n(c.childrenIds)}))),Array.isArray(s.cells)&&(s.cells=s.cells.map(c=>c===null||typeof c!="object"?c:{...c,childrenIds:n(c.childrenIds)})),Array.isArray(s.items)&&(s.items=s.items.map(c=>({...c,...c.titleChildrenIds!==void 0?{titleChildrenIds:n(c.titleChildrenIds)}:{},...c.contentChildrenIds!==void 0?{contentChildrenIds:n(c.contentChildrenIds)}:{},...c.cardChildrenIds!==void 0?{cardChildrenIds:n(c.cardChildrenIds)}:{},...c.detailChildrenIds!==void 0?{detailChildrenIds:n(c.detailChildrenIds)}:{}}))),l.props=s}o[r]={...a,data:l}}return o}function u_(e){var o;const t=e==null?void 0:e.type,n=((o=e==null?void 0:e.data)==null?void 0:o.props)??{};if(t==="Grid"){const r=n.columnsCount??2,i=n.rowsCount??2,a=Array.isArray(n.cells)?n.cells:[],s=a.some(u=>(u==null?void 0:u.colStart)!=null||(u==null?void 0:u.rowStart)!=null||(u==null?void 0:u.colSpan)!=null||(u==null?void 0:u.rowSpan)!=null)?a.length:r*i,c=Array.from({length:s},(u,h)=>{var d;return{childrenIds:Array.isArray((d=a[h])==null?void 0:d.childrenIds)?a[h].childrenIds:[]}});return{slotCount:s,slots:c}}if(t==="FlexColumns"){const r=n.columnsCount??(Array.isArray(n.columns)?n.columns.length:2),i=Array.isArray(n.columns)?n.columns:[],a=Array.from({length:r},(l,s)=>{var c;return{childrenIds:Array.isArray((c=i[s])==null?void 0:c.childrenIds)?i[s].childrenIds:[]}});return{slotCount:r,slots:a}}if(t==="Carousel"||t==="Marquee"){const r=Array.isArray(n.items)?n.items:[],i=r.length,a=r.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:i,slots:a}}if(t==="TabsBlock"){const r=Array.isArray(n.items)?n.items:[],i=r.length,a=r.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:i,slots:a}}if(t==="Pagination"){const r=n.columnsCount??2,i=n.rowsCount??2,a=Array.isArray(n.cells)?n.cells:[],l=Math.max(r*i,a.length),s=Array.from({length:l},(c,u)=>{var h;return{childrenIds:Array.isArray((h=a[u])==null?void 0:h.childrenIds)?a[u].childrenIds:[]}});return{slotCount:l,slots:s}}return null}function Bn(e){return e==="Grid"||e==="FlexColumns"||e==="Carousel"||e==="Marquee"||e==="Pagination"||e==="TabsBlock"}const eo=new WeakMap;function Eo(e,t){const n=e[t];if(!n||typeof n!="object")return null;const o=eo.get(n);if(o!==void 0)return o&&o.containerId===t?o:o&&{...o,containerId:t};if(!Bn(n.type))return eo.set(n,null),null;const r=u_(n);if(!r)return eo.set(n,null),null;const{slotCount:i,slots:a}=r,l=a.findIndex(u=>u.childrenIds.length>0),s=a.filter(u=>u.childrenIds.length===0).length,c={containerId:t,type:n.type,slotCount:i,slots:a,firstFilledSlot:l,emptySlotCount:s};return eo.set(n,c),c}function ua(e,t){for(const[n,o]of Object.entries(e)){if(!Bn(o==null?void 0:o.type))continue;const r=Eo(e,n);if(r!=null&&r.slots.some(i=>i.childrenIds.includes(t)))return n}return null}function Ic(e,t,n,o){var c;const r=e[t];if(!r||!Bn(r.type))return e;const i=((c=r.data)==null?void 0:c.props)??{};if(r.type==="Grid"){let u=i.columnsCount??2,h=i.rowsCount??2;if(u*h>=n)return e;o==="columns"?u=Math.max(u,Math.ceil(n/Math.max(1,h))):h=Math.max(h,Math.ceil(n/Math.max(1,u)));const d=u*h,f=Array.isArray(i.cells)?i.cells:[],p=Array.from({length:d},(b,x)=>f[x]??{childrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,columnsCount:u,rowsCount:h,cells:p}}}}}if(r.type==="Carousel"){const h=Array.isArray(i.items)?i.items:[];if(h.length>=n)return e;const d=Math.min(n,20),f=Array.from({length:d},(p,b)=>h[b]??{contentChildrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,items:f}}}}}if(r.type==="Marquee"){const h=Array.isArray(i.items)?i.items:[];if(h.length>=n)return e;const d=Math.min(n,30),f=Array.from({length:d},(p,b)=>h[b]??{contentChildrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,items:f}}}}}if(r.type==="TabsBlock"){const h=Array.isArray(i.items)?i.items:[];if(h.length>=n)return e;const d=Math.min(n,10),f=Array.from({length:d},(p,b)=>h[b]??{label:`Tab ${b+1}`,contentChildrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,items:f}}}}}if(r.type==="Pagination"){const u=i.columnsCount??2,h=i.rowsCount??2,d=Array.isArray(i.cells)?i.cells:[];if(Math.max(u*h,d.length)>=n)return e;const p=Array.from({length:n},(b,x)=>d[x]??{childrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,cells:p}}}}}if((i.columnsCount??(Array.isArray(i.columns)?i.columns.length:2))>=n)return e;const l=Array.isArray(i.columns)?i.columns:[],s=Array.from({length:n},(u,h)=>l[h]??{childrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,columnsCount:n,columns:s}}}}}function Rc(e,t,n){var c;const o=e[t];if(!o||!Bn(o.type))return e;const r=Eo(e,t);if(!r)return e;let i=-1;r.slots.forEach((u,h)=>{u.childrenIds.length>0&&(i=h)});const a=Math.max(n,i+1,1);if(a>=r.slotCount)return e;const l=((c=o.data)==null?void 0:c.props)??{};if(o.type==="Pagination"){const u=(l.columnsCount??2)*(l.rowsCount??2),h=Math.max(a,u);if(h>=r.slotCount)return e;const d=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,cells:d.slice(0,h)}}}}}if(o.type==="Carousel"||o.type==="Marquee"||o.type==="TabsBlock"){const u=Array.isArray(l.items)?l.items:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,items:u.slice(0,a)}}}}}if(o.type==="Grid"){const u=l.columnsCount??2,h=l.rowsCount??2,d=Math.max(1,Math.ceil(a/Math.max(1,u)));if(d>=h)return e;const f=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,rowsCount:d,cells:f.slice(0,u*d)}}}}}const s=Array.isArray(l.columns)?l.columns:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,columnsCount:a,columns:s.slice(0,a)}}}}}function d_(e,t,n,o="columns"){const r=t==null?void 0:t.sourceBlockId;if(!r||!e[r])return null;const i=Math.max(1,n);let a=e,l=Array.isArray(t.rowIds)?[...t.rowIds]:[],s=1+l.length;if(s===i)return{document:a,sourceBlockId:r,rowIds:l,achievedRowCount:s,capacityLimited:!1};if(s<i){let h=!1;for(;s<i;){const d=l.length>0?l[l.length-1]:r;let f=Pl(a,r,d);if(!f){const p=ua(a,r);if(!p){h=!0;break}const b=Eo(a,p),x=((b==null?void 0:b.slotCount)??0)+(i-s),w=Ic(a,p,x,o);if(w===a){h=!0;break}if(a=w,f=Pl(a,r,d),!f){h=!0;break}}a=f.updatedDocument,l=[...l,f.newRootId],s=1+l.length}return{document:a,sourceBlockId:r,rowIds:l,achievedRowCount:s,capacityLimited:h}}const c=i,u=l.slice(c-1);if(u.length>0){const h=new Set;for(const f of u)for(const p of Ma(a,f))h.add(p);a=yc(a,h);const d=ua(a,r);d&&(a=Rc(a,d,c)),l=l.slice(0,c-1),s=1+l.length}return{document:a,sourceBlockId:r,rowIds:l,achievedRowCount:s,capacityLimited:!1}}exports.Reader=Mn;exports.ReaderBlock=Re;exports.ReaderBlockSchema=vc;exports.ReaderDocumentSchema=Ck;exports.cloneSubtree=Ot;exports.extractApiRows=Ba;exports.findRepeatableContainerOf=ua;exports.getRepeatableContainerInfo=Eo;exports.growContainerToFit=Ic;exports.isRepeatableContainerType=Bn;exports.reconcileRepeatFieldRowCount=d_;exports.refreshApiDataSources=$c;exports.refreshDocumentApiDataSources=kc;exports.removeSubtree=yc;exports.renderToStaticHtml=n_;exports.renderToStaticMarkup=ja;exports.shrinkContainerToFit=Rc;