pagepilot-visual-editor 1.0.20 → 1.0.21
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/blocks-internal/block-heading/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-list/src/index.d.ts +2 -2
- package/dist/editor-sample/App/shared/SectionsDropdown.d.ts +2 -1
- package/dist/editor-sample/documents/editor/core.d.ts +2 -2
- package/dist/{index-BN4p7EFp.js → index-CLGLU96X.js} +18783 -18651
- package/dist/{index-DfVeQ93g.cjs → index-Ci34MwoG.cjs} +244 -244
- package/dist/{index-dsyOMM7U.js → index-DgssDf3D.js} +1 -1
- package/dist/{index-DQy-fuUn.cjs → index-Nc4V-gjH.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/render.cjs +26 -26
- package/dist/render.js +534 -528
- package/dist/{xlsx-CIEMtIud.cjs → xlsx-ClXWKp_Y.cjs} +1 -1
- package/dist/{xlsx-DxZt4s27.js → xlsx-DDFfTrgN.js} +1 -1
- package/package.json +1 -1
package/dist/render.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),rs=require("react-dom/server"),G=require("react");var Ga;function E(e,t,n){function o(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:r,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);const c=r.prototype,u=Object.keys(c);for(let p=0;p<u.length;p++){const d=u[p];d in l||(l[d]=c[d].bind(l))}}const a=(n==null?void 0:n.Parent)??Object;class i extends a{}Object.defineProperty(i,"name",{value:e});function r(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(r,"init",{value:o}),Object.defineProperty(r,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(r,"name",{value:e}),r}class Mt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ki extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Ga=globalThis).__zod_globalConfig??(Ga.__zod_globalConfig={});const ka=globalThis.__zod_globalConfig;function at(e){return ka}function _i(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,a])=>t.indexOf(+o)===-1).map(([o,a])=>a)}function Bo(e,t){return typeof t=="bigint"?t.toString():t}function Un(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function _a(e){return e==null}function $a(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function is(e,t){const n=e/t,o=Math.round(n),a=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<a?0:n-o}const Ua=Symbol("evaluating");function K(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==Ua)return o===void 0&&(o=Ua,o=n()),o},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function wt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function pt(...e){const t={};for(const n of e){const o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function Za(e){return JSON.stringify(e)}function ls(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const $i="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function nn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const ss=Un(()=>{var e;if(ka.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 Pt(e){if(nn(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(nn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Ci(e){return Pt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const cs=new Set(["string","number","symbol"]);function Ot(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function mt(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 z(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 us(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const ds={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 hs(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=pt(e._zod.def,{get shape(){const r={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(r[l]=n.shape[l])}return wt(this,"shape",r),r},checks:[]});return mt(e,i)}function fs(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=pt(e._zod.def,{get shape(){const r={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete r[l]}return wt(this,"shape",r),r},checks:[]});return mt(e,i)}function ps(e,t){if(!Pt(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 r in t)if(Object.getOwnPropertyDescriptor(i,r)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const a=pt(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return wt(this,"shape",i),i}});return mt(e,a)}function ms(e,t){if(!Pt(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=pt(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return wt(this,"shape",o),o}});return mt(e,n)}function gs(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=pt(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t._zod.def.shape};return wt(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return mt(e,n)}function bs(e,t,n){const a=t._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const r=pt(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 wt(this,"shape",s),s},checks:[]});return mt(t,r)}function vs(e,t,n){const o=pt(t._zod.def,{get shape(){const a=t._zod.def.shape,i={...a};if(n)for(const r in n){if(!(r in i))throw new Error(`Unrecognized key: "${r}"`);n[r]&&(i[r]=new e({type:"nonoptional",innerType:a[r]}))}else for(const r in a)i[r]=new e({type:"nonoptional",innerType:a[r]});return wt(this,"shape",i),i}});return mt(t,o)}function Rt(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 xs(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 ht(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function vn(e){return typeof e=="string"?e:e==null?void 0:e.message}function rt(e,t,n){var s,c,u,p,d,h;const o=e.message?e.message:vn((u=(c=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:c.error)==null?void 0:u.call(c,e))??vn((p=t==null?void 0:t.error)==null?void 0:p.call(t,e))??vn((d=n.customError)==null?void 0:d.call(n,e))??vn((h=n.localeError)==null?void 0:h.call(n,e))??"Invalid input",{inst:a,continue:i,input:r,...l}=e;return l.path??(l.path=[]),l.message=o,t!=null&&t.reportInput&&(l.input=r),l}function Ca(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function on(...e){const[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}const Ai=(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,Bo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},yi=E("$ZodError",Ai),Ni=E("$ZodError",Ai,{Parent:Error});function Ss(e,t=n=>n.message){const n={},o=[];for(const a of e.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):o.push(t(a));return{formErrors:o,fieldErrors:n}}function ws(e,t=n=>n.message){const n={_errors:[]},o=(a,i=[])=>{for(const r of a.issues)if(r.code==="invalid_union"&&r.errors.length)r.errors.map(l=>o({issues:l},[...i,...r.path]));else if(r.code==="invalid_key")o({issues:r.issues},[...i,...r.path]);else if(r.code==="invalid_element")o({issues:r.issues},[...i,...r.path]);else{const l=[...i,...r.path];if(l.length===0)n._errors.push(t(r));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(r))):s[u]=s[u]||{_errors:[]},s=s[u],c++}}}};return o(e),n}const Aa=e=>(t,n,o,a)=>{const i=o?{...o,async:!1}:{async:!1},r=t._zod.run({value:n,issues:[]},i);if(r instanceof Promise)throw new Mt;if(r.issues.length){const l=new((a==null?void 0:a.Err)??e)(r.issues.map(s=>rt(s,i,at())));throw $i(l,a==null?void 0:a.callee),l}return r.value},ya=e=>async(t,n,o,a)=>{const i=o?{...o,async:!0}:{async:!0};let r=t._zod.run({value:n,issues:[]},i);if(r instanceof Promise&&(r=await r),r.issues.length){const l=new((a==null?void 0:a.Err)??e)(r.issues.map(s=>rt(s,i,at())));throw $i(l,a==null?void 0:a.callee),l}return r.value},Zn=e=>(t,n,o)=>{const a=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise)throw new Mt;return i.issues.length?{success:!1,error:new(e??yi)(i.issues.map(r=>rt(r,a,at())))}:{success:!0,data:i.value}},ks=Zn(Ni),Wn=e=>async(t,n,o)=>{const a=o?{...o,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},a);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(r=>rt(r,a,at())))}:{success:!0,data:i.value}},_s=Wn(Ni),$s=e=>(t,n,o)=>{const a=o?{...o,direction:"backward"}:{direction:"backward"};return Aa(e)(t,n,a)},Cs=e=>(t,n,o)=>Aa(e)(t,n,o),As=e=>async(t,n,o)=>{const a=o?{...o,direction:"backward"}:{direction:"backward"};return ya(e)(t,n,a)},ys=e=>async(t,n,o)=>ya(e)(t,n,o),Ns=e=>(t,n,o)=>{const a=o?{...o,direction:"backward"}:{direction:"backward"};return Zn(e)(t,n,a)},Rs=e=>(t,n,o)=>Zn(e)(t,n,o),Es=e=>async(t,n,o)=>{const a=o?{...o,direction:"backward"}:{direction:"backward"};return Wn(e)(t,n,a)},Is=e=>async(t,n,o)=>Wn(e)(t,n,o),Ms=/^[cC][0-9a-z]{6,}$/,Ts=/^[0-9a-z]+$/,Ps=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Os=/^[0-9a-vA-V]{20}$/,Ls=/^[A-Za-z0-9]{27}$/,zs=/^[a-zA-Z0-9_-]{21}$/,js=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Bs=/^([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})$/,Wa=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)$/,Ds=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Hs="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Fs(){return new RegExp(Hs,"u")}const Gs=/^(?:(?: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])$/,Us=/^(([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}|:))$/,Zs=/^((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])$/,Ws=/^(([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])$/,qs=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ri=/^[A-Za-z0-9_-]*$/,Vs=/^https?$/,Ys=/^\+[1-9]\d{6,14}$/,Ei="(?:(?:\\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])))",Ks=new RegExp(`^${Ei}$`);function Ii(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 Js(e){return new RegExp(`^${Ii(e)}$`)}function Xs(e){const t=Ii({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(`^${Ei}T(?:${o})$`)}const Qs=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}$`)},ec=/^-?\d+$/,Mi=/^-?\d+(?:\.\d+)?$/,tc=/^(?:true|false)$/i,nc=/^[^A-Z]*$/,oc=/^[^a-z]*$/,Re=E("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Ti={number:"number",bigint:"bigint",object:"date"},Pi=E("$ZodCheckLessThan",(e,t)=>{Re.init(e,t);const n=Ti[typeof t.value];e._zod.onattach.push(o=>{const a=o._zod.bag,i=(t.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?a.maximum=t.value:a.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})}}),Oi=E("$ZodCheckGreaterThan",(e,t)=>{Re.init(e,t);const n=Ti[typeof t.value];e._zod.onattach.push(o=>{const a=o._zod.bag,i=(t.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?a.minimum=t.value:a.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})}}),ac=E("$ZodCheckMultipleOf",(e,t)=>{Re.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):is(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})}}),rc=E("$ZodCheckNumberFormat",(e,t)=>{var r;Re.init(e,t),t.format=t.format||"float64";const n=(r=t.format)==null?void 0:r.includes("int"),o=n?"int":"number",[a,i]=ds[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=a,s.maximum=i,n&&(s.pattern=ec)}),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<a&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:a,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})}}),ic=E("$ZodCheckMaxLength",(e,t)=>{var n;Re.init(e,t),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!_a(a)&&a.length!==void 0}),e._zod.onattach.push(o=>{const a=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const a=o.value;if(a.length<=t.maximum)return;const r=Ca(a);o.issues.push({origin:r,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),lc=E("$ZodCheckMinLength",(e,t)=>{var n;Re.init(e,t),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!_a(a)&&a.length!==void 0}),e._zod.onattach.push(o=>{const a=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const a=o.value;if(a.length>=t.minimum)return;const r=Ca(a);o.issues.push({origin:r,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),sc=E("$ZodCheckLengthEquals",(e,t)=>{var n;Re.init(e,t),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!_a(a)&&a.length!==void 0}),e._zod.onattach.push(o=>{const a=o._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=o=>{const a=o.value,i=a.length;if(i===t.length)return;const r=Ca(a),l=i>t.length;o.issues.push({origin:r,...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})}}),qn=E("$ZodCheckStringFormat",(e,t)=>{var n,o;Re.init(e,t),e._zod.onattach.push(a=>{const i=a._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=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),cc=E("$ZodCheckRegex",(e,t)=>{qn.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})}}),uc=E("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=nc),qn.init(e,t)}),dc=E("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=oc),qn.init(e,t)}),hc=E("$ZodCheckIncludes",(e,t)=>{Re.init(e,t);const n=Ot(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(a=>{const i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),fc=E("$ZodCheckStartsWith",(e,t)=>{Re.init(e,t);const n=new RegExp(`^${Ot(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.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})}}),pc=E("$ZodCheckEndsWith",(e,t)=>{Re.init(e,t);const n=new RegExp(`.*${Ot(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.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})}}),mc=E("$ZodCheckOverwrite",(e,t)=>{Re.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class gc{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"),is=require("react-dom/server"),G=require("react");var Ga;function E(e,t,n){function o(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:r,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);const c=r.prototype,u=Object.keys(c);for(let p=0;p<u.length;p++){const d=u[p];d in l||(l[d]=c[d].bind(l))}}const a=(n==null?void 0:n.Parent)??Object;class i extends a{}Object.defineProperty(i,"name",{value:e});function r(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(r,"init",{value:o}),Object.defineProperty(r,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(r,"name",{value:e}),r}class Mt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ki extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Ga=globalThis).__zod_globalConfig??(Ga.__zod_globalConfig={});const ka=globalThis.__zod_globalConfig;function at(e){return ka}function _i(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,a])=>t.indexOf(+o)===-1).map(([o,a])=>a)}function Bo(e,t){return typeof t=="bigint"?t.toString():t}function Un(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function _a(e){return e==null}function $a(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function ls(e,t){const n=e/t,o=Math.round(n),a=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<a?0:n-o}const Ua=Symbol("evaluating");function K(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==Ua)return o===void 0&&(o=Ua,o=n()),o},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function wt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function pt(...e){const t={};for(const n of e){const o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function Za(e){return JSON.stringify(e)}function ss(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const $i="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function nn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const cs=Un(()=>{var e;if(ka.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 Pt(e){if(nn(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(nn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Ci(e){return Pt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const us=new Set(["string","number","symbol"]);function Ot(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function mt(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 z(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 ds(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const hs={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 fs(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=pt(e._zod.def,{get shape(){const r={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(r[l]=n.shape[l])}return wt(this,"shape",r),r},checks:[]});return mt(e,i)}function ps(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=pt(e._zod.def,{get shape(){const r={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete r[l]}return wt(this,"shape",r),r},checks:[]});return mt(e,i)}function ms(e,t){if(!Pt(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 r in t)if(Object.getOwnPropertyDescriptor(i,r)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const a=pt(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return wt(this,"shape",i),i}});return mt(e,a)}function gs(e,t){if(!Pt(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=pt(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return wt(this,"shape",o),o}});return mt(e,n)}function bs(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=pt(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t._zod.def.shape};return wt(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return mt(e,n)}function vs(e,t,n){const a=t._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const r=pt(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 wt(this,"shape",s),s},checks:[]});return mt(t,r)}function xs(e,t,n){const o=pt(t._zod.def,{get shape(){const a=t._zod.def.shape,i={...a};if(n)for(const r in n){if(!(r in i))throw new Error(`Unrecognized key: "${r}"`);n[r]&&(i[r]=new e({type:"nonoptional",innerType:a[r]}))}else for(const r in a)i[r]=new e({type:"nonoptional",innerType:a[r]});return wt(this,"shape",i),i}});return mt(t,o)}function Rt(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 Ss(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 ht(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function vn(e){return typeof e=="string"?e:e==null?void 0:e.message}function rt(e,t,n){var s,c,u,p,d,h;const o=e.message?e.message:vn((u=(c=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:c.error)==null?void 0:u.call(c,e))??vn((p=t==null?void 0:t.error)==null?void 0:p.call(t,e))??vn((d=n.customError)==null?void 0:d.call(n,e))??vn((h=n.localeError)==null?void 0:h.call(n,e))??"Invalid input",{inst:a,continue:i,input:r,...l}=e;return l.path??(l.path=[]),l.message=o,t!=null&&t.reportInput&&(l.input=r),l}function Ca(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function on(...e){const[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}const Ai=(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,Bo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},yi=E("$ZodError",Ai),Ni=E("$ZodError",Ai,{Parent:Error});function ws(e,t=n=>n.message){const n={},o=[];for(const a of e.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):o.push(t(a));return{formErrors:o,fieldErrors:n}}function ks(e,t=n=>n.message){const n={_errors:[]},o=(a,i=[])=>{for(const r of a.issues)if(r.code==="invalid_union"&&r.errors.length)r.errors.map(l=>o({issues:l},[...i,...r.path]));else if(r.code==="invalid_key")o({issues:r.issues},[...i,...r.path]);else if(r.code==="invalid_element")o({issues:r.issues},[...i,...r.path]);else{const l=[...i,...r.path];if(l.length===0)n._errors.push(t(r));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(r))):s[u]=s[u]||{_errors:[]},s=s[u],c++}}}};return o(e),n}const Aa=e=>(t,n,o,a)=>{const i=o?{...o,async:!1}:{async:!1},r=t._zod.run({value:n,issues:[]},i);if(r instanceof Promise)throw new Mt;if(r.issues.length){const l=new((a==null?void 0:a.Err)??e)(r.issues.map(s=>rt(s,i,at())));throw $i(l,a==null?void 0:a.callee),l}return r.value},ya=e=>async(t,n,o,a)=>{const i=o?{...o,async:!0}:{async:!0};let r=t._zod.run({value:n,issues:[]},i);if(r instanceof Promise&&(r=await r),r.issues.length){const l=new((a==null?void 0:a.Err)??e)(r.issues.map(s=>rt(s,i,at())));throw $i(l,a==null?void 0:a.callee),l}return r.value},Zn=e=>(t,n,o)=>{const a=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise)throw new Mt;return i.issues.length?{success:!1,error:new(e??yi)(i.issues.map(r=>rt(r,a,at())))}:{success:!0,data:i.value}},_s=Zn(Ni),Wn=e=>async(t,n,o)=>{const a=o?{...o,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},a);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(r=>rt(r,a,at())))}:{success:!0,data:i.value}},$s=Wn(Ni),Cs=e=>(t,n,o)=>{const a=o?{...o,direction:"backward"}:{direction:"backward"};return Aa(e)(t,n,a)},As=e=>(t,n,o)=>Aa(e)(t,n,o),ys=e=>async(t,n,o)=>{const a=o?{...o,direction:"backward"}:{direction:"backward"};return ya(e)(t,n,a)},Ns=e=>async(t,n,o)=>ya(e)(t,n,o),Rs=e=>(t,n,o)=>{const a=o?{...o,direction:"backward"}:{direction:"backward"};return Zn(e)(t,n,a)},Es=e=>(t,n,o)=>Zn(e)(t,n,o),Is=e=>async(t,n,o)=>{const a=o?{...o,direction:"backward"}:{direction:"backward"};return Wn(e)(t,n,a)},Ms=e=>async(t,n,o)=>Wn(e)(t,n,o),Ts=/^[cC][0-9a-z]{6,}$/,Ps=/^[0-9a-z]+$/,Os=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ls=/^[0-9a-vA-V]{20}$/,zs=/^[A-Za-z0-9]{27}$/,js=/^[a-zA-Z0-9_-]{21}$/,Bs=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Ds=/^([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})$/,Wa=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)$/,Hs=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Fs="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Gs(){return new RegExp(Fs,"u")}const Us=/^(?:(?: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])$/,Zs=/^(([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}|:))$/,Ws=/^((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])$/,qs=/^(([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])$/,Vs=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ri=/^[A-Za-z0-9_-]*$/,Ys=/^https?$/,Ks=/^\+[1-9]\d{6,14}$/,Ei="(?:(?:\\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])))",Js=new RegExp(`^${Ei}$`);function Ii(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 Xs(e){return new RegExp(`^${Ii(e)}$`)}function Qs(e){const t=Ii({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(`^${Ei}T(?:${o})$`)}const ec=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}$`)},tc=/^-?\d+$/,Mi=/^-?\d+(?:\.\d+)?$/,nc=/^(?:true|false)$/i,oc=/^[^A-Z]*$/,ac=/^[^a-z]*$/,Re=E("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Ti={number:"number",bigint:"bigint",object:"date"},Pi=E("$ZodCheckLessThan",(e,t)=>{Re.init(e,t);const n=Ti[typeof t.value];e._zod.onattach.push(o=>{const a=o._zod.bag,i=(t.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?a.maximum=t.value:a.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})}}),Oi=E("$ZodCheckGreaterThan",(e,t)=>{Re.init(e,t);const n=Ti[typeof t.value];e._zod.onattach.push(o=>{const a=o._zod.bag,i=(t.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?a.minimum=t.value:a.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})}}),rc=E("$ZodCheckMultipleOf",(e,t)=>{Re.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):ls(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})}}),ic=E("$ZodCheckNumberFormat",(e,t)=>{var r;Re.init(e,t),t.format=t.format||"float64";const n=(r=t.format)==null?void 0:r.includes("int"),o=n?"int":"number",[a,i]=hs[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=a,s.maximum=i,n&&(s.pattern=tc)}),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<a&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:a,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})}}),lc=E("$ZodCheckMaxLength",(e,t)=>{var n;Re.init(e,t),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!_a(a)&&a.length!==void 0}),e._zod.onattach.push(o=>{const a=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const a=o.value;if(a.length<=t.maximum)return;const r=Ca(a);o.issues.push({origin:r,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),sc=E("$ZodCheckMinLength",(e,t)=>{var n;Re.init(e,t),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!_a(a)&&a.length!==void 0}),e._zod.onattach.push(o=>{const a=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const a=o.value;if(a.length>=t.minimum)return;const r=Ca(a);o.issues.push({origin:r,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),cc=E("$ZodCheckLengthEquals",(e,t)=>{var n;Re.init(e,t),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!_a(a)&&a.length!==void 0}),e._zod.onattach.push(o=>{const a=o._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=o=>{const a=o.value,i=a.length;if(i===t.length)return;const r=Ca(a),l=i>t.length;o.issues.push({origin:r,...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})}}),qn=E("$ZodCheckStringFormat",(e,t)=>{var n,o;Re.init(e,t),e._zod.onattach.push(a=>{const i=a._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=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),uc=E("$ZodCheckRegex",(e,t)=>{qn.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})}}),dc=E("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=oc),qn.init(e,t)}),hc=E("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ac),qn.init(e,t)}),fc=E("$ZodCheckIncludes",(e,t)=>{Re.init(e,t);const n=Ot(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(a=>{const i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),pc=E("$ZodCheckStartsWith",(e,t)=>{Re.init(e,t);const n=new RegExp(`^${Ot(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.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})}}),mc=E("$ZodCheckEndsWith",(e,t)=>{Re.init(e,t);const n=new RegExp(`.*${Ot(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.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})}}),gc=E("$ZodCheckOverwrite",(e,t)=>{Re.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class bc{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(r=>r),a=Math.min(...o.map(r=>r.length-r.trimStart().length)),i=o.map(r=>r.slice(a)).map(r=>" ".repeat(this.indent*2)+r);for(const r of i)this.content.push(r)}compile(){const t=Function,n=this==null?void 0:this.args,a=[...((this==null?void 0:this.content)??[""]).map(i=>` ${i}`)];return new t(...n,a.join(`
|
|
3
|
-
`))}}const bc={major:4,minor:4,patch:3},se=E("$ZodType",(e,t)=>{var a;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=bc;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const i of o)for(const r of i._zod.onattach)r(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),(a=e._zod.deferred)==null||a.push(()=>{e._zod.run=e._zod.parse});else{const i=(l,s,c)=>{let u=Rt(l),p;for(const d of s){if(d._zod.def.when){if(xs(l)||!d._zod.def.when(l))continue}else if(u)continue;const h=l.issues.length,m=d._zod.check(l);if(m instanceof Promise&&(c==null?void 0:c.async)===!1)throw new Mt;if(p||m instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await m,l.issues.length!==h&&(u||(u=Rt(l,h)))});else{if(l.issues.length===h)continue;u||(u=Rt(l,h))}}return p?p.then(()=>l):l},r=(l,s,c)=>{if(Rt(l))return l.aborted=!0,l;const u=i(s,o,c);if(u instanceof Promise){if(c.async===!1)throw new Mt;return u.then(p=>e._zod.parse(p,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(p=>r(p,l,s)):r(u,l,s)}const c=e._zod.parse(l,s);if(c instanceof Promise){if(s.async===!1)throw new Mt;return c.then(u=>i(u,o,s))}return i(c,o,s)}}K(e,"~standard",()=>({validate:i=>{var r;try{const l=ks(e,i);return l.success?{value:l.data}:{issues:(r=l.error)==null?void 0:r.issues}}catch{return _s(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}))}),Na=E("$ZodString",(e,t)=>{var n;se.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Qs(e._zod.bag),e._zod.parse=(o,a)=>{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}}),he=E("$ZodStringFormat",(e,t)=>{qn.init(e,t),Na.init(e,t)}),vc=E("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Bs),he.init(e,t)}),xc=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=Wa(o))}else t.pattern??(t.pattern=Wa());he.init(e,t)}),Sc=E("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ds),he.init(e,t)}),wc=E("$ZodURL",(e,t)=>{he.init(e,t),e._zod.check=n=>{var o;try{const a=n.value.trim();if(!t.normalize&&((o=t.protocol)==null?void 0:o.source)===Vs.source&&!/^https?:\/\//i.test(a)){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(a);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=a;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),kc=E("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Fs()),he.init(e,t)}),_c=E("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=zs),he.init(e,t)}),$c=E("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ms),he.init(e,t)}),Cc=E("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Ts),he.init(e,t)}),Ac=E("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Ps),he.init(e,t)}),yc=E("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Os),he.init(e,t)}),Nc=E("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Ls),he.init(e,t)}),Rc=E("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Xs(t)),he.init(e,t)}),Ec=E("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Ks),he.init(e,t)}),Ic=E("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Js(t)),he.init(e,t)}),Mc=E("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=js),he.init(e,t)}),Tc=E("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Gs),he.init(e,t),e._zod.bag.format="ipv4"}),Pc=E("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Us),he.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})}}}),Oc=E("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Zs),he.init(e,t)}),Lc=E("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ws),he.init(e,t),e._zod.check=n=>{const o=n.value.split("/");try{if(o.length!==2)throw new Error;const[a,i]=o;if(!i)throw new Error;const r=Number(i);if(`${r}`!==i)throw new Error;if(r<0||r>128)throw new Error;new URL(`http://[${a}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Li(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const zc=E("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=qs),he.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Li(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function jc(e){if(!Ri.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Li(n)}const Bc=E("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ri),he.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{jc(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Dc=E("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Ys),he.init(e,t)});function Hc(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[o]=n;if(!o)return!1;const a=JSON.parse(atob(o));return!("typ"in a&&(a==null?void 0:a.typ)!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}const Fc=E("$ZodJWT",(e,t)=>{he.init(e,t),e._zod.check=n=>{Hc(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),zi=E("$ZodNumber",(e,t)=>{se.init(e,t),e._zod.pattern=e._zod.bag.pattern??Mi,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const a=n.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return n;const i=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:a,inst:e,...i?{received:i}:{}}),n}}),Gc=E("$ZodNumberFormat",(e,t)=>{rc.init(e,t),zi.init(e,t)}),Uc=E("$ZodBoolean",(e,t)=>{se.init(e,t),e._zod.pattern=tc,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}const a=n.value;return typeof a=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:e}),n}}),Zc=E("$ZodAny",(e,t)=>{se.init(e,t),e._zod.parse=n=>n}),Wc=E("$ZodUnknown",(e,t)=>{se.init(e,t),e._zod.parse=n=>n}),qc=E("$ZodNever",(e,t)=>{se.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function qa(e,t,n){e.issues.length&&t.issues.push(...ht(n,e.issues)),t.value[n]=e.value}const Vc=E("$ZodArray",(e,t)=>{se.init(e,t),e._zod.parse=(n,o)=>{const a=n.value;if(!Array.isArray(a))return n.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),n;n.value=Array(a.length);const i=[];for(let r=0;r<a.length;r++){const l=a[r],s=t.element._zod.run({value:l,issues:[]},o);s instanceof Promise?i.push(s.then(c=>qa(c,n,r))):qa(s,n,r)}return i.length?Promise.all(i).then(()=>n):n}});function Pn(e,t,n,o,a,i){const r=n in o;if(e.issues.length){if(a&&i&&!r)return;t.issues.push(...ht(n,e.issues))}if(!r&&!a){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?r&&(t.value[n]=void 0):t.value[n]=e.value}function ji(e){var o,a,i,r;const t=Object.keys(e.shape);for(const l of t)if(!((r=(i=(a=(o=e.shape)==null?void 0:o[l])==null?void 0:a._zod)==null?void 0:i.traits)!=null&&r.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=us(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Bi(e,t,n,o,a,i){const r=[],l=a.keySet,s=a.catchall._zod,c=s.def.type,u=s.optin==="optional",p=s.optout==="optional";for(const d in t){if(d==="__proto__"||l.has(d))continue;if(c==="never"){r.push(d);continue}const h=s.run({value:t[d],issues:[]},o);h instanceof Promise?e.push(h.then(m=>Pn(m,n,d,t,u,p))):Pn(h,n,d,t,u,p)}return r.length&&n.issues.push({code:"unrecognized_keys",keys:r,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const Yc=E("$ZodObject",(e,t)=>{se.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=Un(()=>ji(t));K(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 p of u.values)s[c].add(p)}}return s});const a=nn,i=t.catchall;let r;e._zod.parse=(l,s)=>{r??(r=o.value);const c=l.value;if(!a(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;l.value={};const u=[],p=r.shape;for(const d of r.keys){const h=p[d],m=h._zod.optin==="optional",b=h._zod.optout==="optional",v=h._zod.run({value:c[d],issues:[]},s);v instanceof Promise?u.push(v.then(k=>Pn(k,l,d,c,m,b))):Pn(v,l,d,c,m,b)}return i?Bi(u,c,l,s,o.value,e):u.length?Promise.all(u).then(()=>l):l}}),Kc=E("$ZodObjectJIT",(e,t)=>{Yc.init(e,t);const n=e._zod.parse,o=Un(()=>ji(t)),a=d=>{var $,w;const h=new gc(["shape","payload","ctx"]),m=o.value,b=_=>{const N=Za(_);return`shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`};h.write("const input = payload.value;");const v=Object.create(null);let k=0;for(const _ of m.keys)v[_]=`key_${k++}`;h.write("const newResult = {};");for(const _ of m.keys){const N=v[_],A=Za(_),y=d[_],R=(($=y==null?void 0:y._zod)==null?void 0:$.optin)==="optional",M=((w=y==null?void 0:y._zod)==null?void 0:w.optout)==="optional";h.write(`const ${N} = ${b(_)};`),R&&M?h.write(`
|
|
3
|
+
`))}}const vc={major:4,minor:4,patch:3},se=E("$ZodType",(e,t)=>{var a;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=vc;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const i of o)for(const r of i._zod.onattach)r(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),(a=e._zod.deferred)==null||a.push(()=>{e._zod.run=e._zod.parse});else{const i=(l,s,c)=>{let u=Rt(l),p;for(const d of s){if(d._zod.def.when){if(Ss(l)||!d._zod.def.when(l))continue}else if(u)continue;const h=l.issues.length,m=d._zod.check(l);if(m instanceof Promise&&(c==null?void 0:c.async)===!1)throw new Mt;if(p||m instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await m,l.issues.length!==h&&(u||(u=Rt(l,h)))});else{if(l.issues.length===h)continue;u||(u=Rt(l,h))}}return p?p.then(()=>l):l},r=(l,s,c)=>{if(Rt(l))return l.aborted=!0,l;const u=i(s,o,c);if(u instanceof Promise){if(c.async===!1)throw new Mt;return u.then(p=>e._zod.parse(p,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(p=>r(p,l,s)):r(u,l,s)}const c=e._zod.parse(l,s);if(c instanceof Promise){if(s.async===!1)throw new Mt;return c.then(u=>i(u,o,s))}return i(c,o,s)}}K(e,"~standard",()=>({validate:i=>{var r;try{const l=_s(e,i);return l.success?{value:l.data}:{issues:(r=l.error)==null?void 0:r.issues}}catch{return $s(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}))}),Na=E("$ZodString",(e,t)=>{var n;se.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??ec(e._zod.bag),e._zod.parse=(o,a)=>{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}}),he=E("$ZodStringFormat",(e,t)=>{qn.init(e,t),Na.init(e,t)}),xc=E("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Ds),he.init(e,t)}),Sc=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=Wa(o))}else t.pattern??(t.pattern=Wa());he.init(e,t)}),wc=E("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Hs),he.init(e,t)}),kc=E("$ZodURL",(e,t)=>{he.init(e,t),e._zod.check=n=>{var o;try{const a=n.value.trim();if(!t.normalize&&((o=t.protocol)==null?void 0:o.source)===Ys.source&&!/^https?:\/\//i.test(a)){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(a);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=a;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),_c=E("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Gs()),he.init(e,t)}),$c=E("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=js),he.init(e,t)}),Cc=E("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ts),he.init(e,t)}),Ac=E("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Ps),he.init(e,t)}),yc=E("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Os),he.init(e,t)}),Nc=E("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Ls),he.init(e,t)}),Rc=E("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=zs),he.init(e,t)}),Ec=E("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Qs(t)),he.init(e,t)}),Ic=E("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Js),he.init(e,t)}),Mc=E("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Xs(t)),he.init(e,t)}),Tc=E("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Bs),he.init(e,t)}),Pc=E("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Us),he.init(e,t),e._zod.bag.format="ipv4"}),Oc=E("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Zs),he.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})}}}),Lc=E("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ws),he.init(e,t)}),zc=E("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=qs),he.init(e,t),e._zod.check=n=>{const o=n.value.split("/");try{if(o.length!==2)throw new Error;const[a,i]=o;if(!i)throw new Error;const r=Number(i);if(`${r}`!==i)throw new Error;if(r<0||r>128)throw new Error;new URL(`http://[${a}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Li(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const jc=E("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Vs),he.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Li(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Bc(e){if(!Ri.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Li(n)}const Dc=E("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ri),he.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Bc(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Hc=E("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Ks),he.init(e,t)});function Fc(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[o]=n;if(!o)return!1;const a=JSON.parse(atob(o));return!("typ"in a&&(a==null?void 0:a.typ)!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}const Gc=E("$ZodJWT",(e,t)=>{he.init(e,t),e._zod.check=n=>{Fc(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),zi=E("$ZodNumber",(e,t)=>{se.init(e,t),e._zod.pattern=e._zod.bag.pattern??Mi,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const a=n.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return n;const i=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:a,inst:e,...i?{received:i}:{}}),n}}),Uc=E("$ZodNumberFormat",(e,t)=>{ic.init(e,t),zi.init(e,t)}),Zc=E("$ZodBoolean",(e,t)=>{se.init(e,t),e._zod.pattern=nc,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}const a=n.value;return typeof a=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:e}),n}}),Wc=E("$ZodAny",(e,t)=>{se.init(e,t),e._zod.parse=n=>n}),qc=E("$ZodUnknown",(e,t)=>{se.init(e,t),e._zod.parse=n=>n}),Vc=E("$ZodNever",(e,t)=>{se.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function qa(e,t,n){e.issues.length&&t.issues.push(...ht(n,e.issues)),t.value[n]=e.value}const Yc=E("$ZodArray",(e,t)=>{se.init(e,t),e._zod.parse=(n,o)=>{const a=n.value;if(!Array.isArray(a))return n.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),n;n.value=Array(a.length);const i=[];for(let r=0;r<a.length;r++){const l=a[r],s=t.element._zod.run({value:l,issues:[]},o);s instanceof Promise?i.push(s.then(c=>qa(c,n,r))):qa(s,n,r)}return i.length?Promise.all(i).then(()=>n):n}});function Pn(e,t,n,o,a,i){const r=n in o;if(e.issues.length){if(a&&i&&!r)return;t.issues.push(...ht(n,e.issues))}if(!r&&!a){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?r&&(t.value[n]=void 0):t.value[n]=e.value}function ji(e){var o,a,i,r;const t=Object.keys(e.shape);for(const l of t)if(!((r=(i=(a=(o=e.shape)==null?void 0:o[l])==null?void 0:a._zod)==null?void 0:i.traits)!=null&&r.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=ds(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Bi(e,t,n,o,a,i){const r=[],l=a.keySet,s=a.catchall._zod,c=s.def.type,u=s.optin==="optional",p=s.optout==="optional";for(const d in t){if(d==="__proto__"||l.has(d))continue;if(c==="never"){r.push(d);continue}const h=s.run({value:t[d],issues:[]},o);h instanceof Promise?e.push(h.then(m=>Pn(m,n,d,t,u,p))):Pn(h,n,d,t,u,p)}return r.length&&n.issues.push({code:"unrecognized_keys",keys:r,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const Kc=E("$ZodObject",(e,t)=>{se.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=Un(()=>ji(t));K(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 p of u.values)s[c].add(p)}}return s});const a=nn,i=t.catchall;let r;e._zod.parse=(l,s)=>{r??(r=o.value);const c=l.value;if(!a(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;l.value={};const u=[],p=r.shape;for(const d of r.keys){const h=p[d],m=h._zod.optin==="optional",b=h._zod.optout==="optional",v=h._zod.run({value:c[d],issues:[]},s);v instanceof Promise?u.push(v.then(k=>Pn(k,l,d,c,m,b))):Pn(v,l,d,c,m,b)}return i?Bi(u,c,l,s,o.value,e):u.length?Promise.all(u).then(()=>l):l}}),Jc=E("$ZodObjectJIT",(e,t)=>{Kc.init(e,t);const n=e._zod.parse,o=Un(()=>ji(t)),a=d=>{var $,w;const h=new bc(["shape","payload","ctx"]),m=o.value,b=_=>{const N=Za(_);return`shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`};h.write("const input = payload.value;");const v=Object.create(null);let k=0;for(const _ of m.keys)v[_]=`key_${k++}`;h.write("const newResult = {};");for(const _ of m.keys){const N=v[_],A=Za(_),y=d[_],R=(($=y==null?void 0:y._zod)==null?void 0:$.optin)==="optional",M=((w=y==null?void 0:y._zod)==null?void 0:w.optout)==="optional";h.write(`const ${N} = ${b(_)};`),R&&M?h.write(`
|
|
4
4
|
if (${N}.issues.length) {
|
|
5
5
|
if (${A} in input) {
|
|
6
6
|
payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
`)}h.write("payload.value = newResult;"),h.write("return payload;");const S=h.compile();return(_,N)=>S(d,_,N)};let i;const r=nn,l=!ka.jitless,c=l&&ss.value,u=t.catchall;let p;e._zod.parse=(d,h)=>{p??(p=o.value);const m=d.value;return r(m)?l&&c&&(h==null?void 0:h.async)===!1&&h.jitless!==!0?(i||(i=a(t.shape)),d=i(d,h),u?Bi([],m,d,h,p,e):d):n(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),d)}});function Va(e,t,n,o){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const a=e.filter(i=>!Rt(i));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(r=>rt(r,o,at())))}),t)}const Di=E("$ZodUnion",(e,t)=>{se.init(e,t),K(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),K(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),K(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),K(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${o.map(a=>$a(a.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,a)=>{if(n)return n(o,a);let i=!1;const r=[];for(const l of t.options){const s=l._zod.run({value:o.value,issues:[]},a);if(s instanceof Promise)r.push(s),i=!0;else{if(s.issues.length===0)return s;r.push(s)}}return i?Promise.all(r).then(l=>Va(l,o,e,a)):Va(r,o,e,a)}}),Jc=E("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Di.init(e,t);const n=e._zod.parse;K(e._zod,"propValues",()=>{const a={};for(const i of t.options){const r=i._zod.propValues;if(!r||Object.keys(r).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[l,s]of Object.entries(r)){a[l]||(a[l]=new Set);for(const c of s)a[l].add(c)}}return a});const o=Un(()=>{var r;const a=t.options,i=new Map;for(const l of a){const s=(r=l._zod.propValues)==null?void 0:r[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=(a,i)=>{const r=a.value;if(!nn(r))return a.issues.push({code:"invalid_type",expected:"object",input:r,inst:e}),a;const l=o.value.get(r==null?void 0:r[t.discriminator]);return l?l._zod.run(a,i):t.unionFallback||i.direction==="backward"?n(a,i):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:r,path:[t.discriminator],inst:e}),a)}}),Xc=E("$ZodIntersection",(e,t)=>{se.init(e,t),e._zod.parse=(n,o)=>{const a=n.value,i=t.left._zod.run({value:a,issues:[]},o),r=t.right._zod.run({value:a,issues:[]},o);return i instanceof Promise||r instanceof Promise?Promise.all([i,r]).then(([s,c])=>Ya(n,s,c)):Ya(n,i,r)}});function Do(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(Pt(e)&&Pt(t)){const n=Object.keys(t),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),a={...e,...t};for(const i of o){const r=Do(e[i],t[i]);if(!r.valid)return{valid:!1,mergeErrorPath:[i,...r.mergeErrorPath]};a[i]=r.data}return{valid:!0,data:a}}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 a=e[o],i=t[o],r=Do(a,i);if(!r.valid)return{valid:!1,mergeErrorPath:[o,...r.mergeErrorPath]};n.push(r.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ya(e,t,n){const o=new Map;let a;for(const l of t.issues)if(l.code==="unrecognized_keys"){a??(a=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&&a&&e.issues.push({...a,keys:i}),Rt(e))return e;const r=Do(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const Qc=E("$ZodTuple",(e,t)=>{se.init(e,t);const n=t.items;e._zod.parse=(o,a)=>{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 r=[],l=Ka(n,"optin"),s=Ka(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 p=n[u]._zod.run({value:i[u],issues:[]},a);p instanceof Promise?r.push(p.then(d=>{c[u]=d})):c[u]=p}if(t.rest){let u=n.length-1;const p=i.slice(n.length);for(const d of p){u++;const h=t.rest._zod.run({value:d,issues:[]},a);h instanceof Promise?r.push(h.then(m=>Ja(m,o,u))):Ja(h,o,u)}}return r.length?Promise.all(r).then(()=>Xa(c,o,n,i,s)):Xa(c,o,n,i,s)}});function Ka(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function Ja(e,t,n){e.issues.length&&t.issues.push(...ht(n,e.issues)),t.value[n]=e.value}function Xa(e,t,n,o,a){for(let i=0;i<n.length;i++){const r=e[i],l=i<o.length;if(r.issues.length){if(!l&&i>=a){t.value.length=i;break}t.issues.push(...ht(i,r.issues))}t.value[i]=r.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 eu=E("$ZodRecord",(e,t)=>{se.init(e,t),e._zod.parse=(n,o)=>{const a=n.value;if(!Pt(a))return n.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),n;const i=[],r=t.keyType._zod.values;if(r){n.value={};const l=new Set;for(const c of r)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(h=>rt(h,o,at())),input:c,path:[c],inst:e});continue}const p=u.value,d=t.valueType._zod.run({value:a[c],issues:[]},o);d instanceof Promise?i.push(d.then(h=>{h.issues.length&&n.issues.push(...ht(c,h.issues)),n.value[p]=h.value})):(d.issues.length&&n.issues.push(...ht(c,d.issues)),n.value[p]=d.value)}let s;for(const c in a)l.has(c)||(s=s??[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(a)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(a,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"&&Mi.test(l)&&s.issues.length){const p=t.keyType._zod.run({value:Number(l),issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(s=p)}if(s.issues.length){t.mode==="loose"?n.value[l]=a[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(p=>rt(p,o,at())),input:l,path:[l],inst:e});continue}const u=t.valueType._zod.run({value:a[l],issues:[]},o);u instanceof Promise?i.push(u.then(p=>{p.issues.length&&n.issues.push(...ht(l,p.issues)),n.value[s.value]=p.value})):(u.issues.length&&n.issues.push(...ht(l,u.issues)),n.value[s.value]=u.value)}}return i.length?Promise.all(i).then(()=>n):n}}),tu=E("$ZodEnum",(e,t)=>{se.init(e,t);const n=_i(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(a=>cs.has(typeof a)).map(a=>typeof a=="string"?Ot(a):a.toString()).join("|")})$`),e._zod.parse=(a,i)=>{const r=a.value;return o.has(r)||a.issues.push({code:"invalid_value",values:n,input:r,inst:e}),a}}),nu=E("$ZodLiteral",(e,t)=>{if(se.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"?Ot(o):o?Ot(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,a)=>{const i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),ou=E("$ZodTransform",(e,t)=>{se.init(e,t),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ki(e.constructor.name);const a=t.transform(n.value,n);if(o.async)return(a instanceof Promise?a:Promise.resolve(a)).then(r=>(n.value=r,n.fallback=!0,n));if(a instanceof Promise)throw new Mt;return n.value=a,n.fallback=!0,n}});function Qa(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Hi=E("$ZodOptional",(e,t)=>{se.init(e,t),e._zod.optin="optional",e._zod.optout="optional",K(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),K(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${$a(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){const a=n.value,i=t.innerType._zod.run(n,o);return i instanceof Promise?i.then(r=>Qa(r,a)):Qa(i,a)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),au=E("$ZodExactOptional",(e,t)=>{Hi.init(e,t),K(e._zod,"values",()=>t.innerType._zod.values),K(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),ru=E("$ZodNullable",(e,t)=>{se.init(e,t),K(e._zod,"optin",()=>t.innerType._zod.optin),K(e._zod,"optout",()=>t.innerType._zod.optout),K(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${$a(n.source)}|null)$`):void 0}),K(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)}),iu=E("$ZodDefault",(e,t)=>{se.init(e,t),e._zod.optin="optional",K(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 a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(i=>er(i,t)):er(a,t)}});function er(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const lu=E("$ZodPrefault",(e,t)=>{se.init(e,t),e._zod.optin="optional",K(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))}),su=E("$ZodNonOptional",(e,t)=>{se.init(e,t),K(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 a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(i=>tr(i,e)):tr(a,e)}});function tr(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 cu=E("$ZodCatch",(e,t)=>{se.init(e,t),e._zod.optin="optional",K(e._zod,"optout",()=>t.innerType._zod.optout),K(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(r=>rt(r,o,at()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(i=>rt(i,o,at()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Fi=E("$ZodPipe",(e,t)=>{se.init(e,t),K(e._zod,"values",()=>t.in._zod.values),K(e._zod,"optin",()=>t.in._zod.optin),K(e._zod,"optout",()=>t.out._zod.optout),K(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(r=>xn(r,t.in,o)):xn(i,t.in,o)}const a=t.in._zod.run(n,o);return a instanceof Promise?a.then(i=>xn(i,t.out,o)):xn(a,t.out,o)}});function xn(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 uu=E("$ZodPreprocess",(e,t)=>{Fi.init(e,t)}),du=E("$ZodReadonly",(e,t)=>{se.init(e,t),K(e._zod,"propValues",()=>t.innerType._zod.propValues),K(e._zod,"values",()=>t.innerType._zod.values),K(e._zod,"optin",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optin}),K(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 a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(nr):nr(a)}});function nr(e){return e.value=Object.freeze(e.value),e}const hu=E("$ZodLazy",(e,t)=>{se.init(e,t),K(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),K(e._zod,"pattern",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.pattern}),K(e._zod,"propValues",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.propValues}),K(e._zod,"optin",()=>{var n,o;return((o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.optin)??void 0}),K(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)}),fu=E("$ZodCustom",(e,t)=>{Re.init(e,t),se.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{const o=n.value,a=t.fn(o);if(a instanceof Promise)return a.then(i=>or(i,n,o,e));or(a,n,o,e)}});function or(e,t,n,o){if(!e){const a={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(a.params=o._zod.def.params),t.issues.push(on(a))}}var ar;class pu{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 a={...o,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function mu(){return new pu}(ar=globalThis).__zod_globalRegistry??(ar.__zod_globalRegistry=mu());const Xt=globalThis.__zod_globalRegistry;function gu(e,t){return new e({type:"string",...z(t)})}function bu(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...z(t)})}function rr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...z(t)})}function vu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...z(t)})}function xu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...z(t)})}function Su(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...z(t)})}function wu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...z(t)})}function ku(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...z(t)})}function _u(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...z(t)})}function $u(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...z(t)})}function Cu(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...z(t)})}function Au(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...z(t)})}function yu(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...z(t)})}function Nu(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...z(t)})}function Ru(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...z(t)})}function Eu(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...z(t)})}function Iu(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...z(t)})}function Mu(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...z(t)})}function Tu(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...z(t)})}function Pu(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...z(t)})}function Ou(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...z(t)})}function Lu(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...z(t)})}function zu(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...z(t)})}function ju(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...z(t)})}function Bu(e,t){return new e({type:"string",format:"date",check:"string_format",...z(t)})}function Du(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...z(t)})}function Hu(e,t){return new e({type:"string",format:"duration",check:"string_format",...z(t)})}function Fu(e,t){return new e({type:"number",checks:[],...z(t)})}function Gu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...z(t)})}function Uu(e,t){return new e({type:"boolean",...z(t)})}function Zu(e){return new e({type:"any"})}function Wu(e){return new e({type:"unknown"})}function qu(e,t){return new e({type:"never",...z(t)})}function ir(e,t){return new Pi({check:"less_than",...z(t),value:e,inclusive:!1})}function eo(e,t){return new Pi({check:"less_than",...z(t),value:e,inclusive:!0})}function lr(e,t){return new Oi({check:"greater_than",...z(t),value:e,inclusive:!1})}function to(e,t){return new Oi({check:"greater_than",...z(t),value:e,inclusive:!0})}function sr(e,t){return new ac({check:"multiple_of",...z(t),value:e})}function Gi(e,t){return new ic({check:"max_length",...z(t),maximum:e})}function On(e,t){return new lc({check:"min_length",...z(t),minimum:e})}function Ui(e,t){return new sc({check:"length_equals",...z(t),length:e})}function Vu(e,t){return new cc({check:"string_format",format:"regex",...z(t),pattern:e})}function Yu(e){return new uc({check:"string_format",format:"lowercase",...z(e)})}function Ku(e){return new dc({check:"string_format",format:"uppercase",...z(e)})}function Ju(e,t){return new hc({check:"string_format",format:"includes",...z(t),includes:e})}function Xu(e,t){return new fc({check:"string_format",format:"starts_with",...z(t),prefix:e})}function Qu(e,t){return new pc({check:"string_format",format:"ends_with",...z(t),suffix:e})}function Bt(e){return new mc({check:"overwrite",tx:e})}function ed(e){return Bt(t=>t.normalize(e))}function td(){return Bt(e=>e.trim())}function nd(){return Bt(e=>e.toLowerCase())}function od(){return Bt(e=>e.toUpperCase())}function ad(){return Bt(e=>ls(e))}function rd(e,t,n){return new e({type:"array",element:t,...z(n)})}function id(e,t,n){return new e({type:"custom",check:"custom",fn:t,...z(n)})}function ld(e,t){const n=sd(o=>(o.addIssue=a=>{if(typeof a=="string")o.issues.push(on(a,o.value,n._zod.def));else{const i=a;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(on(i))}},e(o.value,o)),t);return n}function sd(e,t){const n=new Re({check:"custom",...z(t)});return n._zod.check=e,n}function Zi(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)??Xt,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 fe(e,t,n={path:[],schemaPath:[]}){var u,p;var o;const a=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const r={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,r);const l=(p=(u=e._zod).toJSONSchema)==null?void 0:p.call(u);if(l)r.schema=l;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,r.schema,d);else{const m=r.schema,b=t.processors[a.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);b(e,t,m,d)}const h=e._zod.parent;h&&(r.ref||(r.ref=h),fe(h,t,d),t.seen.get(h).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(r.schema,s),t.io==="input"&&Ce(e)&&(delete r.schema.examples,delete r.schema.default),t.io==="input"&&"_prefault"in r.schema&&((o=r.schema).default??(o.default=r.schema._prefault)),delete r.schema._prefault,t.seen.get(e).schema}function Wi(e,t){var r,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 p=(r=e.metadataRegistry.get(u[0]))==null?void 0:r.id;if(p){const d=o.get(p);if(d&&d!==u[0])throw new Error(`Duplicate schema id "${p}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(p,u[0])}}const a=u=>{var b;const p=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const v=(b=e.external.registry.get(u[0]))==null?void 0:b.id,k=e.external.uri??($=>$);if(v)return{ref:k(v)};const S=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=S,{defId:S,ref:`${k("__shared")}#/${p}/${S}`}}if(u[1]===n)return{ref:"#"};const h=`#/${p}/`,m=u[1].schema.id??`__schema${e.counter++}`;return{defId:m,ref:h+m}},i=u=>{if(u[1].schema.$ref)return;const p=u[1],{ref:d,defId:h}=a(u);p.def={...p.schema},h&&(p.defId=h);const m=p.schema;for(const b in m)delete m[b];m.$ref=d};if(e.cycles==="throw")for(const u of e.seen.entries()){const p=u[1];if(p.cycle)throw new Error(`Cycle detected: #/${(l=p.cycle)==null?void 0:l.join("/")}/<root>
|
|
62
|
+
`)}h.write("payload.value = newResult;"),h.write("return payload;");const S=h.compile();return(_,N)=>S(d,_,N)};let i;const r=nn,l=!ka.jitless,c=l&&cs.value,u=t.catchall;let p;e._zod.parse=(d,h)=>{p??(p=o.value);const m=d.value;return r(m)?l&&c&&(h==null?void 0:h.async)===!1&&h.jitless!==!0?(i||(i=a(t.shape)),d=i(d,h),u?Bi([],m,d,h,p,e):d):n(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),d)}});function Va(e,t,n,o){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const a=e.filter(i=>!Rt(i));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(r=>rt(r,o,at())))}),t)}const Di=E("$ZodUnion",(e,t)=>{se.init(e,t),K(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),K(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),K(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),K(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${o.map(a=>$a(a.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,a)=>{if(n)return n(o,a);let i=!1;const r=[];for(const l of t.options){const s=l._zod.run({value:o.value,issues:[]},a);if(s instanceof Promise)r.push(s),i=!0;else{if(s.issues.length===0)return s;r.push(s)}}return i?Promise.all(r).then(l=>Va(l,o,e,a)):Va(r,o,e,a)}}),Xc=E("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Di.init(e,t);const n=e._zod.parse;K(e._zod,"propValues",()=>{const a={};for(const i of t.options){const r=i._zod.propValues;if(!r||Object.keys(r).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[l,s]of Object.entries(r)){a[l]||(a[l]=new Set);for(const c of s)a[l].add(c)}}return a});const o=Un(()=>{var r;const a=t.options,i=new Map;for(const l of a){const s=(r=l._zod.propValues)==null?void 0:r[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=(a,i)=>{const r=a.value;if(!nn(r))return a.issues.push({code:"invalid_type",expected:"object",input:r,inst:e}),a;const l=o.value.get(r==null?void 0:r[t.discriminator]);return l?l._zod.run(a,i):t.unionFallback||i.direction==="backward"?n(a,i):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:r,path:[t.discriminator],inst:e}),a)}}),Qc=E("$ZodIntersection",(e,t)=>{se.init(e,t),e._zod.parse=(n,o)=>{const a=n.value,i=t.left._zod.run({value:a,issues:[]},o),r=t.right._zod.run({value:a,issues:[]},o);return i instanceof Promise||r instanceof Promise?Promise.all([i,r]).then(([s,c])=>Ya(n,s,c)):Ya(n,i,r)}});function Do(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(Pt(e)&&Pt(t)){const n=Object.keys(t),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),a={...e,...t};for(const i of o){const r=Do(e[i],t[i]);if(!r.valid)return{valid:!1,mergeErrorPath:[i,...r.mergeErrorPath]};a[i]=r.data}return{valid:!0,data:a}}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 a=e[o],i=t[o],r=Do(a,i);if(!r.valid)return{valid:!1,mergeErrorPath:[o,...r.mergeErrorPath]};n.push(r.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ya(e,t,n){const o=new Map;let a;for(const l of t.issues)if(l.code==="unrecognized_keys"){a??(a=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&&a&&e.issues.push({...a,keys:i}),Rt(e))return e;const r=Do(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const eu=E("$ZodTuple",(e,t)=>{se.init(e,t);const n=t.items;e._zod.parse=(o,a)=>{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 r=[],l=Ka(n,"optin"),s=Ka(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 p=n[u]._zod.run({value:i[u],issues:[]},a);p instanceof Promise?r.push(p.then(d=>{c[u]=d})):c[u]=p}if(t.rest){let u=n.length-1;const p=i.slice(n.length);for(const d of p){u++;const h=t.rest._zod.run({value:d,issues:[]},a);h instanceof Promise?r.push(h.then(m=>Ja(m,o,u))):Ja(h,o,u)}}return r.length?Promise.all(r).then(()=>Xa(c,o,n,i,s)):Xa(c,o,n,i,s)}});function Ka(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function Ja(e,t,n){e.issues.length&&t.issues.push(...ht(n,e.issues)),t.value[n]=e.value}function Xa(e,t,n,o,a){for(let i=0;i<n.length;i++){const r=e[i],l=i<o.length;if(r.issues.length){if(!l&&i>=a){t.value.length=i;break}t.issues.push(...ht(i,r.issues))}t.value[i]=r.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 tu=E("$ZodRecord",(e,t)=>{se.init(e,t),e._zod.parse=(n,o)=>{const a=n.value;if(!Pt(a))return n.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),n;const i=[],r=t.keyType._zod.values;if(r){n.value={};const l=new Set;for(const c of r)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(h=>rt(h,o,at())),input:c,path:[c],inst:e});continue}const p=u.value,d=t.valueType._zod.run({value:a[c],issues:[]},o);d instanceof Promise?i.push(d.then(h=>{h.issues.length&&n.issues.push(...ht(c,h.issues)),n.value[p]=h.value})):(d.issues.length&&n.issues.push(...ht(c,d.issues)),n.value[p]=d.value)}let s;for(const c in a)l.has(c)||(s=s??[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(a)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(a,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"&&Mi.test(l)&&s.issues.length){const p=t.keyType._zod.run({value:Number(l),issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(s=p)}if(s.issues.length){t.mode==="loose"?n.value[l]=a[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(p=>rt(p,o,at())),input:l,path:[l],inst:e});continue}const u=t.valueType._zod.run({value:a[l],issues:[]},o);u instanceof Promise?i.push(u.then(p=>{p.issues.length&&n.issues.push(...ht(l,p.issues)),n.value[s.value]=p.value})):(u.issues.length&&n.issues.push(...ht(l,u.issues)),n.value[s.value]=u.value)}}return i.length?Promise.all(i).then(()=>n):n}}),nu=E("$ZodEnum",(e,t)=>{se.init(e,t);const n=_i(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(a=>us.has(typeof a)).map(a=>typeof a=="string"?Ot(a):a.toString()).join("|")})$`),e._zod.parse=(a,i)=>{const r=a.value;return o.has(r)||a.issues.push({code:"invalid_value",values:n,input:r,inst:e}),a}}),ou=E("$ZodLiteral",(e,t)=>{if(se.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"?Ot(o):o?Ot(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,a)=>{const i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),au=E("$ZodTransform",(e,t)=>{se.init(e,t),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ki(e.constructor.name);const a=t.transform(n.value,n);if(o.async)return(a instanceof Promise?a:Promise.resolve(a)).then(r=>(n.value=r,n.fallback=!0,n));if(a instanceof Promise)throw new Mt;return n.value=a,n.fallback=!0,n}});function Qa(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Hi=E("$ZodOptional",(e,t)=>{se.init(e,t),e._zod.optin="optional",e._zod.optout="optional",K(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),K(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${$a(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){const a=n.value,i=t.innerType._zod.run(n,o);return i instanceof Promise?i.then(r=>Qa(r,a)):Qa(i,a)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),ru=E("$ZodExactOptional",(e,t)=>{Hi.init(e,t),K(e._zod,"values",()=>t.innerType._zod.values),K(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),iu=E("$ZodNullable",(e,t)=>{se.init(e,t),K(e._zod,"optin",()=>t.innerType._zod.optin),K(e._zod,"optout",()=>t.innerType._zod.optout),K(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${$a(n.source)}|null)$`):void 0}),K(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)}),lu=E("$ZodDefault",(e,t)=>{se.init(e,t),e._zod.optin="optional",K(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 a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(i=>er(i,t)):er(a,t)}});function er(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const su=E("$ZodPrefault",(e,t)=>{se.init(e,t),e._zod.optin="optional",K(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))}),cu=E("$ZodNonOptional",(e,t)=>{se.init(e,t),K(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 a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(i=>tr(i,e)):tr(a,e)}});function tr(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 uu=E("$ZodCatch",(e,t)=>{se.init(e,t),e._zod.optin="optional",K(e._zod,"optout",()=>t.innerType._zod.optout),K(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(r=>rt(r,o,at()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(i=>rt(i,o,at()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Fi=E("$ZodPipe",(e,t)=>{se.init(e,t),K(e._zod,"values",()=>t.in._zod.values),K(e._zod,"optin",()=>t.in._zod.optin),K(e._zod,"optout",()=>t.out._zod.optout),K(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(r=>xn(r,t.in,o)):xn(i,t.in,o)}const a=t.in._zod.run(n,o);return a instanceof Promise?a.then(i=>xn(i,t.out,o)):xn(a,t.out,o)}});function xn(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 du=E("$ZodPreprocess",(e,t)=>{Fi.init(e,t)}),hu=E("$ZodReadonly",(e,t)=>{se.init(e,t),K(e._zod,"propValues",()=>t.innerType._zod.propValues),K(e._zod,"values",()=>t.innerType._zod.values),K(e._zod,"optin",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optin}),K(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 a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(nr):nr(a)}});function nr(e){return e.value=Object.freeze(e.value),e}const fu=E("$ZodLazy",(e,t)=>{se.init(e,t),K(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),K(e._zod,"pattern",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.pattern}),K(e._zod,"propValues",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.propValues}),K(e._zod,"optin",()=>{var n,o;return((o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.optin)??void 0}),K(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)}),pu=E("$ZodCustom",(e,t)=>{Re.init(e,t),se.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{const o=n.value,a=t.fn(o);if(a instanceof Promise)return a.then(i=>or(i,n,o,e));or(a,n,o,e)}});function or(e,t,n,o){if(!e){const a={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(a.params=o._zod.def.params),t.issues.push(on(a))}}var ar;class mu{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 a={...o,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function gu(){return new mu}(ar=globalThis).__zod_globalRegistry??(ar.__zod_globalRegistry=gu());const Xt=globalThis.__zod_globalRegistry;function bu(e,t){return new e({type:"string",...z(t)})}function vu(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...z(t)})}function rr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...z(t)})}function xu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...z(t)})}function Su(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...z(t)})}function wu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...z(t)})}function ku(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...z(t)})}function _u(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...z(t)})}function $u(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...z(t)})}function Cu(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...z(t)})}function Au(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...z(t)})}function yu(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...z(t)})}function Nu(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...z(t)})}function Ru(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...z(t)})}function Eu(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...z(t)})}function Iu(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...z(t)})}function Mu(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...z(t)})}function Tu(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...z(t)})}function Pu(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...z(t)})}function Ou(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...z(t)})}function Lu(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...z(t)})}function zu(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...z(t)})}function ju(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...z(t)})}function Bu(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...z(t)})}function Du(e,t){return new e({type:"string",format:"date",check:"string_format",...z(t)})}function Hu(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...z(t)})}function Fu(e,t){return new e({type:"string",format:"duration",check:"string_format",...z(t)})}function Gu(e,t){return new e({type:"number",checks:[],...z(t)})}function Uu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...z(t)})}function Zu(e,t){return new e({type:"boolean",...z(t)})}function Wu(e){return new e({type:"any"})}function qu(e){return new e({type:"unknown"})}function Vu(e,t){return new e({type:"never",...z(t)})}function ir(e,t){return new Pi({check:"less_than",...z(t),value:e,inclusive:!1})}function eo(e,t){return new Pi({check:"less_than",...z(t),value:e,inclusive:!0})}function lr(e,t){return new Oi({check:"greater_than",...z(t),value:e,inclusive:!1})}function to(e,t){return new Oi({check:"greater_than",...z(t),value:e,inclusive:!0})}function sr(e,t){return new rc({check:"multiple_of",...z(t),value:e})}function Gi(e,t){return new lc({check:"max_length",...z(t),maximum:e})}function On(e,t){return new sc({check:"min_length",...z(t),minimum:e})}function Ui(e,t){return new cc({check:"length_equals",...z(t),length:e})}function Yu(e,t){return new uc({check:"string_format",format:"regex",...z(t),pattern:e})}function Ku(e){return new dc({check:"string_format",format:"lowercase",...z(e)})}function Ju(e){return new hc({check:"string_format",format:"uppercase",...z(e)})}function Xu(e,t){return new fc({check:"string_format",format:"includes",...z(t),includes:e})}function Qu(e,t){return new pc({check:"string_format",format:"starts_with",...z(t),prefix:e})}function ed(e,t){return new mc({check:"string_format",format:"ends_with",...z(t),suffix:e})}function Bt(e){return new gc({check:"overwrite",tx:e})}function td(e){return Bt(t=>t.normalize(e))}function nd(){return Bt(e=>e.trim())}function od(){return Bt(e=>e.toLowerCase())}function ad(){return Bt(e=>e.toUpperCase())}function rd(){return Bt(e=>ss(e))}function id(e,t,n){return new e({type:"array",element:t,...z(n)})}function ld(e,t,n){return new e({type:"custom",check:"custom",fn:t,...z(n)})}function sd(e,t){const n=cd(o=>(o.addIssue=a=>{if(typeof a=="string")o.issues.push(on(a,o.value,n._zod.def));else{const i=a;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(on(i))}},e(o.value,o)),t);return n}function cd(e,t){const n=new Re({check:"custom",...z(t)});return n._zod.check=e,n}function Zi(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)??Xt,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 fe(e,t,n={path:[],schemaPath:[]}){var u,p;var o;const a=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const r={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,r);const l=(p=(u=e._zod).toJSONSchema)==null?void 0:p.call(u);if(l)r.schema=l;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,r.schema,d);else{const m=r.schema,b=t.processors[a.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);b(e,t,m,d)}const h=e._zod.parent;h&&(r.ref||(r.ref=h),fe(h,t,d),t.seen.get(h).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(r.schema,s),t.io==="input"&&Ce(e)&&(delete r.schema.examples,delete r.schema.default),t.io==="input"&&"_prefault"in r.schema&&((o=r.schema).default??(o.default=r.schema._prefault)),delete r.schema._prefault,t.seen.get(e).schema}function Wi(e,t){var r,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 p=(r=e.metadataRegistry.get(u[0]))==null?void 0:r.id;if(p){const d=o.get(p);if(d&&d!==u[0])throw new Error(`Duplicate schema id "${p}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(p,u[0])}}const a=u=>{var b;const p=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const v=(b=e.external.registry.get(u[0]))==null?void 0:b.id,k=e.external.uri??($=>$);if(v)return{ref:k(v)};const S=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=S,{defId:S,ref:`${k("__shared")}#/${p}/${S}`}}if(u[1]===n)return{ref:"#"};const h=`#/${p}/`,m=u[1].schema.id??`__schema${e.counter++}`;return{defId:m,ref:h+m}},i=u=>{if(u[1].schema.$ref)return;const p=u[1],{ref:d,defId:h}=a(u);p.def={...p.schema},h&&(p.defId=h);const m=p.schema;for(const b in m)delete m[b];m.$ref=d};if(e.cycles==="throw")for(const u of e.seen.entries()){const p=u[1];if(p.cycle)throw new Error(`Cycle detected: #/${(l=p.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 p=u[1];if(t===u[0]){i(u);continue}if(e.external){const h=(s=e.external.registry.get(u[0]))==null?void 0:s.id;if(t!==u[0]&&h){i(u);continue}}if((c=e.metadataRegistry.get(u[0]))==null?void 0:c.id){i(u);continue}if(p.cycle){i(u);continue}if(p.count>1&&e.reused==="ref"){i(u);continue}}}function qi(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=p=>{const d=e.seen.get(p);if(d.ref===null)return;const h=d.def??d.schema,m={...h},b=d.ref;if(d.ref=null,b){o(b);const k=e.seen.get(b),S=k.schema;if(S.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(S)):Object.assign(h,S),Object.assign(h,m),p._zod.parent===b)for(const w in h)w==="$ref"||w==="allOf"||w in m||delete h[w];if(S.$ref&&k.def)for(const w in h)w==="$ref"||w==="allOf"||w in k.def&&JSON.stringify(h[w])===JSON.stringify(k.def[w])&&delete h[w]}const v=p._zod.parent;if(v&&v!==b){o(v);const k=e.seen.get(v);if(k!=null&&k.schema.$ref&&(h.$ref=k.schema.$ref,k.def))for(const S in h)S==="$ref"||S==="allOf"||S in k.def&&JSON.stringify(h[S])===JSON.stringify(k.def[S])&&delete h[S]}e.override({zodSchema:p,jsonSchema:h,path:d.path??[]})};for(const p of[...e.seen.entries()].reverse())o(p[0]);const a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,(l=e.external)!=null&&l.uri){const p=(s=e.external.registry.get(t))==null?void 0:s.id;if(!p)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(p)}Object.assign(a,n.def??n.schema);const i=(c=e.metadataRegistry.get(t))==null?void 0:c.id;i!==void 0&&a.id===i&&delete a.id;const r=((u=e.external)==null?void 0:u.defs)??{};for(const p of e.seen.entries()){const d=p[1];d.def&&d.defId&&(d.def.id===d.defId&&delete d.def.id,r[d.defId]=d.def)}e.external||Object.keys(r).length>0&&(e.target==="draft-2020-12"?a.$defs=r:a.definitions=r);try{const p=JSON.parse(JSON.stringify(a));return Object.defineProperty(p,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ln(t,"input",e.processors),output:Ln(t,"output",e.processors)}},enumerable:!1,writable:!1}),p}catch{throw new Error("Error converting schema to JSON.")}}function Ce(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 Ce(o.element,n);if(o.type==="set")return Ce(o.valueType,n);if(o.type==="lazy")return Ce(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 Ce(o.innerType,n);if(o.type==="intersection")return Ce(o.left,n)||Ce(o.right,n);if(o.type==="record"||o.type==="map")return Ce(o.keyType,n)||Ce(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Ce(o.in,n)||Ce(o.out,n);if(o.type==="object"){for(const a in o.shape)if(Ce(o.shape[a],n))return!0;return!1}if(o.type==="union"){for(const a of o.options)if(Ce(a,n))return!0;return!1}if(o.type==="tuple"){for(const a of o.items)if(Ce(a,n))return!0;return!!(o.rest&&Ce(o.rest,n))}return!1}const cd=(e,t={})=>n=>{const o=Zi({...n,processors:t});return fe(e,o),Wi(o,e),qi(o,e)},Ln=(e,t,n={})=>o=>{const{libraryOptions:a,target:i}=o??{},r=Zi({...a??{},target:i,io:t,processors:n});return fe(e,r),Wi(r,e),qi(r,e)},ud={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},dd=(e,t,n,o)=>{const a=n;a.type="string";const{minimum:i,maximum:r,format:l,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(a.minLength=i),typeof r=="number"&&(a.maxLength=r),l&&(a.format=ud[l]??l,a.format===""&&delete a.format,l==="time"&&delete a.format),c&&(a.contentEncoding=c),s&&s.size>0){const u=[...s];u.length===1?a.pattern=u[0].source:u.length>1&&(a.allOf=[...u.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},hd=(e,t,n,o)=>{const a=n,{minimum:i,maximum:r,format:l,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof l=="string"&&l.includes("int")?a.type="integer":a.type="number";const p=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),d=typeof c=="number"&&c<=(r??Number.POSITIVE_INFINITY),h=t.target==="draft-04"||t.target==="openapi-3.0";p?h?(a.minimum=u,a.exclusiveMinimum=!0):a.exclusiveMinimum=u:typeof i=="number"&&(a.minimum=i),d?h?(a.maximum=c,a.exclusiveMaximum=!0):a.exclusiveMaximum=c:typeof r=="number"&&(a.maximum=r),typeof s=="number"&&(a.multipleOf=s)},fd=(e,t,n,o)=>{n.type="boolean"},pd=(e,t,n,o)=>{n.not={}},md=(e,t,n,o)=>{},gd=(e,t,n,o)=>{},bd=(e,t,n,o)=>{const a=e._zod.def,i=_i(a.entries);i.every(r=>typeof r=="number")&&(n.type="number"),i.every(r=>typeof r=="string")&&(n.type="string"),n.enum=i},vd=(e,t,n,o)=>{const a=e._zod.def,i=[];for(const r of a.values)if(r===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof r=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(r))}else i.push(r);if(i.length!==0)if(i.length===1){const r=i[0];n.type=r===null?"null":typeof r,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[r]:n.const=r}else i.every(r=>typeof r=="number")&&(n.type="number"),i.every(r=>typeof r=="string")&&(n.type="string"),i.every(r=>typeof r=="boolean")&&(n.type="boolean"),i.every(r=>r===null)&&(n.type="null"),n.enum=i},xd=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Sd=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},wd=(e,t,n,o)=>{const a=n,i=e._zod.def,{minimum:r,maximum:l}=e._zod.bag;typeof r=="number"&&(a.minItems=r),typeof l=="number"&&(a.maxItems=l),a.type="array",a.items=fe(i.element,t,{...o,path:[...o.path,"items"]})},kd=(e,t,n,o)=>{var c;const a=n,i=e._zod.def;a.type="object",a.properties={};const r=i.shape;for(const u in r)a.properties[u]=fe(r[u],t,{...o,path:[...o.path,"properties",u]});const l=new Set(Object.keys(r)),s=new Set([...l].filter(u=>{const p=i.shape[u]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));s.size>0&&(a.required=Array.from(s)),((c=i.catchall)==null?void 0:c._zod.def.type)==="never"?a.additionalProperties=!1:i.catchall?i.catchall&&(a.additionalProperties=fe(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},_d=(e,t,n,o)=>{const a=e._zod.def,i=a.inclusive===!1,r=a.options.map((l,s)=>fe(l,t,{...o,path:[...o.path,i?"oneOf":"anyOf",s]}));i?n.oneOf=r:n.anyOf=r},$d=(e,t,n,o)=>{const a=e._zod.def,i=fe(a.left,t,{...o,path:[...o.path,"allOf",0]}),r=fe(a.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(r)?r.allOf:[r]];n.allOf=s},Cd=(e,t,n,o)=>{const a=n,i=e._zod.def;a.type="array";const r=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,h)=>fe(d,t,{...o,path:[...o.path,r,h]})),c=i.rest?fe(i.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(a.prefixItems=s,c&&(a.items=c)):t.target==="openapi-3.0"?(a.items={anyOf:s},c&&a.items.anyOf.push(c),a.minItems=s.length,c||(a.maxItems=s.length)):(a.items=s,c&&(a.additionalItems=c));const{minimum:u,maximum:p}=e._zod.bag;typeof u=="number"&&(a.minItems=u),typeof p=="number"&&(a.maxItems=p)},Ad=(e,t,n,o)=>{const a=n,i=e._zod.def;a.type="object";const r=i.keyType,l=r._zod.bag,s=l==null?void 0:l.patterns;if(i.mode==="loose"&&s&&s.size>0){const u=fe(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});a.patternProperties={};for(const p of s)a.patternProperties[p.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=fe(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),a.additionalProperties=fe(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});const c=r._zod.values;if(c){const u=[...c].filter(p=>typeof p=="string"||typeof p=="number");u.length>0&&(a.required=u)}},yd=(e,t,n,o)=>{const a=e._zod.def,i=fe(a.innerType,t,o),r=t.seen.get(e);t.target==="openapi-3.0"?(r.ref=a.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},Nd=(e,t,n,o)=>{const a=e._zod.def;fe(a.innerType,t,o);const i=t.seen.get(e);i.ref=a.innerType},Rd=(e,t,n,o)=>{const a=e._zod.def;fe(a.innerType,t,o);const i=t.seen.get(e);i.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},Ed=(e,t,n,o)=>{const a=e._zod.def;fe(a.innerType,t,o);const i=t.seen.get(e);i.ref=a.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},Id=(e,t,n,o)=>{const a=e._zod.def;fe(a.innerType,t,o);const i=t.seen.get(e);i.ref=a.innerType;let r;try{r=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=r},Md=(e,t,n,o)=>{const a=e._zod.def,i=a.in._zod.traits.has("$ZodTransform"),r=t.io==="input"?i?a.out:a.in:a.out;fe(r,t,o);const l=t.seen.get(e);l.ref=r},Td=(e,t,n,o)=>{const a=e._zod.def;fe(a.innerType,t,o);const i=t.seen.get(e);i.ref=a.innerType,n.readOnly=!0},Vi=(e,t,n,o)=>{const a=e._zod.def;fe(a.innerType,t,o);const i=t.seen.get(e);i.ref=a.innerType},Pd=(e,t,n,o)=>{const a=e._zod.innerType;fe(a,t,o);const i=t.seen.get(e);i.ref=a},Od=E("ZodISODateTime",(e,t)=>{Rc.init(e,t),pe.init(e,t)});function Ld(e){return ju(Od,e)}const zd=E("ZodISODate",(e,t)=>{Ec.init(e,t),pe.init(e,t)});function jd(e){return Bu(zd,e)}const Bd=E("ZodISOTime",(e,t)=>{Ic.init(e,t),pe.init(e,t)});function Dd(e){return Du(Bd,e)}const Hd=E("ZodISODuration",(e,t)=>{Mc.init(e,t),pe.init(e,t)});function Fd(e){return Hu(Hd,e)}const Gd=(e,t)=>{yi.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>ws(e,n)},flatten:{value:n=>Ss(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Bo,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Bo,2)}},isEmpty:{get(){return e.issues.length===0}}})},ze=E("ZodError",Gd,{Parent:Error}),Ud=Aa(ze),Zd=ya(ze),Wd=Zn(ze),qd=Wn(ze),Vd=$s(ze),Yd=Cs(ze),Kd=As(ze),Jd=ys(ze),Xd=Ns(ze),Qd=Rs(ze),eh=Es(ze),th=Is(ze),cr=new WeakMap;function cn(e,t,n){const o=Object.getPrototypeOf(e);let a=cr.get(o);if(a||(a=new Set,cr.set(o,a)),!a.has(t)){a.add(t);for(const i in n){const r=n[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){const l=r.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 ce=E("ZodType",(e,t)=>(se.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ln(e,"input"),output:Ln(e,"output")}}),e.toJSONSchema=cd(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>Ud(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Wd(e,n,o),e.parseAsync=async(n,o)=>Zd(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>qd(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Vd(e,n,o),e.decode=(n,o)=>Yd(e,n,o),e.encodeAsync=async(n,o)=>Kd(e,n,o),e.decodeAsync=async(n,o)=>Jd(e,n,o),e.safeEncode=(n,o)=>Xd(e,n,o),e.safeDecode=(n,o)=>Qd(e,n,o),e.safeEncodeAsync=async(n,o)=>eh(e,n,o),e.safeDecodeAsync=async(n,o)=>th(e,n,o),cn(e,"ZodType",{check(...n){const o=this.def;return this.clone(pt(o,{checks:[...o.checks??[],...n.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return mt(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(Jh(n,o))},superRefine(n,o){return this.check(Xh(n,o))},overwrite(n){return this.check(Bt(n))},optional(){return pr(this)},exactOptional(){return Lh(this)},nullable(){return mr(this)},nullish(){return pr(mr(this))},nonoptional(n){return Fh(this,n)},array(){return W(this)},or(n){return D([this,n])},and(n){return Ih(this,n)},transform(n){return gr(this,Qi(n))},default(n){return Bh(this,n)},prefault(n){return Hh(this,n)},catch(n){return Uh(this,n)},pipe(n){return gr(this,n)},readonly(){return qh(this)},describe(n){const o=this.clone();return Xt.add(o,{description:n}),o},meta(...n){if(n.length===0)return Xt.get(this);const o=this.clone();return Xt.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=Xt.get(e))==null?void 0:n.description},configurable:!0}),e)),Yi=E("_ZodString",(e,t)=>{Na.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,a,i)=>dd(e,o,a);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,cn(e,"_ZodString",{regex(...o){return this.check(Vu(...o))},includes(...o){return this.check(Ju(...o))},startsWith(...o){return this.check(Xu(...o))},endsWith(...o){return this.check(Qu(...o))},min(...o){return this.check(On(...o))},max(...o){return this.check(Gi(...o))},length(...o){return this.check(Ui(...o))},nonempty(...o){return this.check(On(1,...o))},lowercase(o){return this.check(Yu(o))},uppercase(o){return this.check(Ku(o))},trim(){return this.check(td())},normalize(...o){return this.check(ed(...o))},toLowerCase(){return this.check(nd())},toUpperCase(){return this.check(od())},slugify(){return this.check(ad())}})}),nh=E("ZodString",(e,t)=>{Na.init(e,t),Yi.init(e,t),e.email=n=>e.check(bu(oh,n)),e.url=n=>e.check(ku(ah,n)),e.jwt=n=>e.check(zu(xh,n)),e.emoji=n=>e.check(_u(rh,n)),e.guid=n=>e.check(rr(ur,n)),e.uuid=n=>e.check(vu(Sn,n)),e.uuidv4=n=>e.check(xu(Sn,n)),e.uuidv6=n=>e.check(Su(Sn,n)),e.uuidv7=n=>e.check(wu(Sn,n)),e.nanoid=n=>e.check($u(ih,n)),e.guid=n=>e.check(rr(ur,n)),e.cuid=n=>e.check(Cu(lh,n)),e.cuid2=n=>e.check(Au(sh,n)),e.ulid=n=>e.check(yu(ch,n)),e.base64=n=>e.check(Pu(gh,n)),e.base64url=n=>e.check(Ou(bh,n)),e.xid=n=>e.check(Nu(uh,n)),e.ksuid=n=>e.check(Ru(dh,n)),e.ipv4=n=>e.check(Eu(hh,n)),e.ipv6=n=>e.check(Iu(fh,n)),e.cidrv4=n=>e.check(Mu(ph,n)),e.cidrv6=n=>e.check(Tu(mh,n)),e.e164=n=>e.check(Lu(vh,n)),e.datetime=n=>e.check(Ld(n)),e.date=n=>e.check(jd(n)),e.time=n=>e.check(Dd(n)),e.duration=n=>e.check(Fd(n))});function x(e){return gu(nh,e)}const pe=E("ZodStringFormat",(e,t)=>{he.init(e,t),Yi.init(e,t)}),oh=E("ZodEmail",(e,t)=>{Sc.init(e,t),pe.init(e,t)}),ur=E("ZodGUID",(e,t)=>{vc.init(e,t),pe.init(e,t)}),Sn=E("ZodUUID",(e,t)=>{xc.init(e,t),pe.init(e,t)}),ah=E("ZodURL",(e,t)=>{wc.init(e,t),pe.init(e,t)}),rh=E("ZodEmoji",(e,t)=>{kc.init(e,t),pe.init(e,t)}),ih=E("ZodNanoID",(e,t)=>{_c.init(e,t),pe.init(e,t)}),lh=E("ZodCUID",(e,t)=>{$c.init(e,t),pe.init(e,t)}),sh=E("ZodCUID2",(e,t)=>{Cc.init(e,t),pe.init(e,t)}),ch=E("ZodULID",(e,t)=>{Ac.init(e,t),pe.init(e,t)}),uh=E("ZodXID",(e,t)=>{yc.init(e,t),pe.init(e,t)}),dh=E("ZodKSUID",(e,t)=>{Nc.init(e,t),pe.init(e,t)}),hh=E("ZodIPv4",(e,t)=>{Tc.init(e,t),pe.init(e,t)}),fh=E("ZodIPv6",(e,t)=>{Pc.init(e,t),pe.init(e,t)}),ph=E("ZodCIDRv4",(e,t)=>{Oc.init(e,t),pe.init(e,t)}),mh=E("ZodCIDRv6",(e,t)=>{Lc.init(e,t),pe.init(e,t)}),gh=E("ZodBase64",(e,t)=>{zc.init(e,t),pe.init(e,t)}),bh=E("ZodBase64URL",(e,t)=>{Bc.init(e,t),pe.init(e,t)}),vh=E("ZodE164",(e,t)=>{Dc.init(e,t),pe.init(e,t)}),xh=E("ZodJWT",(e,t)=>{Fc.init(e,t),pe.init(e,t)}),Ki=E("ZodNumber",(e,t)=>{zi.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,a,i)=>hd(e,o,a),cn(e,"ZodNumber",{gt(o,a){return this.check(lr(o,a))},gte(o,a){return this.check(to(o,a))},min(o,a){return this.check(to(o,a))},lt(o,a){return this.check(ir(o,a))},lte(o,a){return this.check(eo(o,a))},max(o,a){return this.check(eo(o,a))},int(o){return this.check(dr(o))},safe(o){return this.check(dr(o))},positive(o){return this.check(lr(0,o))},nonnegative(o){return this.check(to(0,o))},negative(o){return this.check(ir(0,o))},nonpositive(o){return this.check(eo(0,o))},multipleOf(o,a){return this.check(sr(o,a))},step(o,a){return this.check(sr(o,a))},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 f(e){return Fu(Ki,e)}const Sh=E("ZodNumberFormat",(e,t)=>{Gc.init(e,t),Ki.init(e,t)});function dr(e){return Gu(Sh,e)}const wh=E("ZodBoolean",(e,t)=>{Uc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>fd(e,n,o)});function P(e){return Uu(wh,e)}const kh=E("ZodAny",(e,t)=>{Zc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>md()});function an(){return Zu(kh)}const _h=E("ZodUnknown",(e,t)=>{Wc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>gd()});function hr(){return Wu(_h)}const $h=E("ZodNever",(e,t)=>{qc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>pd(e,n,o)});function Ch(e){return qu($h,e)}const Ah=E("ZodArray",(e,t)=>{Vc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>wd(e,n,o,a),e.element=t.element,cn(e,"ZodArray",{min(n,o){return this.check(On(n,o))},nonempty(n){return this.check(On(1,n))},max(n,o){return this.check(Gi(n,o))},length(n,o){return this.check(Ui(n,o))},unwrap(){return this.element}})});function W(e,t){return rd(Ah,e,t)}const yh=E("ZodObject",(e,t)=>{Kc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>kd(e,n,o,a),K(e,"shape",()=>t.shape),cn(e,"ZodObject",{keyof(){return I(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:hr()})},loose(){return this.clone({...this._zod.def,catchall:hr()})},strict(){return this.clone({...this._zod.def,catchall:Ch()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return ps(this,n)},safeExtend(n){return ms(this,n)},merge(n){return gs(this,n)},pick(n){return hs(this,n)},omit(n){return fs(this,n)},partial(...n){return bs(el,this,n[0])},required(...n){return vs(tl,this,n[0])}})});function C(e,t){const n={type:"object",shape:e??{},...z(t)};return new yh(n)}const Ji=E("ZodUnion",(e,t)=>{Di.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>_d(e,n,o,a),e.options=t.options});function D(e,t){return new Ji({type:"union",options:e,...z(t)})}const Nh=E("ZodDiscriminatedUnion",(e,t)=>{Ji.init(e,t),Jc.init(e,t)});function Rh(e,t,n){return new Nh({type:"union",options:t,discriminator:e,...z(n)})}const Eh=E("ZodIntersection",(e,t)=>{Xc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>$d(e,n,o,a)});function Ih(e,t){return new Eh({type:"intersection",left:e,right:t})}const Mh=E("ZodTuple",(e,t)=>{Qc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Cd(e,n,o,a),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Xi(e,t,n){const o=t instanceof se,a=o?n:t,i=o?t:null;return new Mh({type:"tuple",items:e,rest:i,...z(a)})}const fr=E("ZodRecord",(e,t)=>{eu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ad(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType});function Lt(e,t,n){return!t||!t._zod?new fr({type:"record",keyType:x(),valueType:e,...z(t)}):new fr({type:"record",keyType:e,valueType:t,...z(n)})}const Ho=E("ZodEnum",(e,t)=>{tu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,a,i)=>bd(e,o,a),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(o,a)=>{const i={};for(const r of o)if(n.has(r))i[r]=t.entries[r];else throw new Error(`Key ${r} not found in enum`);return new Ho({...t,checks:[],...z(a),entries:i})},e.exclude=(o,a)=>{const i={...t.entries};for(const r of o)if(n.has(r))delete i[r];else throw new Error(`Key ${r} not found in enum`);return new Ho({...t,checks:[],...z(a),entries:i})}});function I(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Ho({type:"enum",entries:n,...z(t)})}const Th=E("ZodLiteral",(e,t)=>{nu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>vd(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 re(e,t){return new Th({type:"literal",values:Array.isArray(e)?e:[e],...z(t)})}const Ph=E("ZodTransform",(e,t)=>{ou.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Sd(e,n),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ki(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(on(i,n.value,t));else{const r=i;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=e),n.issues.push(on(r))}};const a=t.transform(n.value,n);return a instanceof Promise?a.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=a,n.fallback=!0,n)}});function Qi(e){return new Ph({type:"transform",transform:e})}const el=E("ZodOptional",(e,t)=>{Hi.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Vi(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function pr(e){return new el({type:"optional",innerType:e})}const Oh=E("ZodExactOptional",(e,t)=>{au.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Vi(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Lh(e){return new Oh({type:"optional",innerType:e})}const zh=E("ZodNullable",(e,t)=>{ru.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>yd(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function mr(e){return new zh({type:"nullable",innerType:e})}const jh=E("ZodDefault",(e,t)=>{iu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Rd(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Bh(e,t){return new jh({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Ci(t)}})}const Dh=E("ZodPrefault",(e,t)=>{lu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ed(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Hh(e,t){return new Dh({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Ci(t)}})}const tl=E("ZodNonOptional",(e,t)=>{su.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Nd(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Fh(e,t){return new tl({type:"nonoptional",innerType:e,...z(t)})}const Gh=E("ZodCatch",(e,t)=>{cu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Id(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Uh(e,t){return new Gh({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const nl=E("ZodPipe",(e,t)=>{Fi.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Md(e,n,o,a),e.in=t.in,e.out=t.out});function gr(e,t){return new nl({type:"pipe",in:e,out:t})}const Zh=E("ZodPreprocess",(e,t)=>{nl.init(e,t),uu.init(e,t)}),Wh=E("ZodReadonly",(e,t)=>{du.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Td(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function qh(e){return new Wh({type:"readonly",innerType:e})}const Vh=E("ZodLazy",(e,t)=>{hu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Pd(e,n,o,a),e.unwrap=()=>e._zod.def.getter()});function Yh(e){return new Vh({type:"lazy",getter:e})}const Kh=E("ZodCustom",(e,t)=>{fu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>xd(e,n)});function Jh(e,t={}){return id(Kh,e,t)}function Xh(e,t){return ld(e,t)}function Qh(e,t){return new Zh({type:"pipe",in:Qi(e),out:t})}var ef=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),tf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,br=C({style:C({textAlign:I(["left","center","right"]).optional().nullable(),padding:ef}).optional().nullable(),props:C({size:f().gt(0).optional().nullable(),shape:I(["circle","square","rounded"]).optional().nullable(),imageUrl:x().optional().nullable(),alt:x().optional().nullable()}).optional().nullable()});function nf(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var wn={size:64,imageUrl:"",alt:"",shape:"square"};function vr({style:e,props:t}){var n,o,a,i,r;const l=(n=t==null?void 0:t.size)!=null?n:wn.size,s=(o=t==null?void 0:t.imageUrl)!=null?o:wn.imageUrl,c=(a=t==null?void 0:t.alt)!=null?a:wn.alt,u=(i=t==null?void 0:t.shape)!=null?i:wn.shape,p={textAlign:(r=e==null?void 0:e.textAlign)!=null?r:void 0,padding:tf(e==null?void 0:e.padding)};return G.createElement("div",{style:p},G.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:nf(u,l)}}))}const un=C({type:I(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:I(["load","scroll","hover","click"]),speed:I(["slow","medium","fast"]),delay:f().min(0).max(1e4).optional().nullable(),disableOnMobile:P().optional().nullable()}).optional().nullable(),of=br.extend({props:br.shape.props.unwrap().unwrap().extend({decorative:P().optional().nullable(),animation:un}).optional().nullable()}),Qt={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},Ra=Object.values(Qt);function ol(){return"desktop"}const je=1024,Ae=640,ot=`@media (max-width: ${je}px)`,Oe=`@media (max-width: ${Ae}px)`,dn=`@media (min-width: ${Ae+1}px) and (max-width: ${je}px)`,Vn=C({color:x().optional().nullable(),offsetX:f().default(0),offsetY:f().default(0),blur:f().default(0),spread:f().default(0),inset:P().default(!1)}).partial().optional().nullable();function af(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 Yn(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:a=0,spread:i=0,inset:r=!1}=e;return{boxShadow:`${r?"inset ":""}${n}px ${o}px ${a}px ${i}px ${af(t)}`}}const Te=C({tablet:Lt(x(),an()).optional().nullable(),mobile:Lt(x(),an()).optional().nullable()}).optional().nullable(),rf=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"})})},lf=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"})})},sf=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"})})},cf=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"})})},uf=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"})})},df=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"})})},hf=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"})})},ff=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"})})},pf=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"})})},mf=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"})})},gf=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"})})},bf=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"})})},vf=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"})})},xf=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"})})},Sf=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"})})},wf=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"})})},kf=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"})})},_f=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 ut(e,t={fontSize:16}){if(!e)return null;switch(e){case"arrow-left":return g.jsx(rf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return g.jsx(uf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return g.jsx(mf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return g.jsx(df,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return g.jsx(lf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return g.jsx(sf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return g.jsx(cf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return g.jsx(hf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return g.jsx(ff,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return g.jsx(pf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return g.jsx(vf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return g.jsx(Sf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return g.jsx(kf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down":return g.jsx(gf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left-double":return g.jsx(xf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return g.jsx(wf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return g.jsx(_f,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return g.jsx(bf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const $f=I(["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 no(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 Cf=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Af=x().regex(/^rgba?\([^\)]+\)$/i),yf=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Nf=re("transparent"),At=D([Cf,Af,yf,Nf]).nullable().optional(),Rf=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Ef=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),If=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Mf=D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),Tf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Pf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Of=C({style:C({backgroundColor:At,fontSize:f().min(0).optional().nullable(),fontFamily:$f,fontWeight:I(["bold","normal",...Ra]).optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable(),buttonTextAlign:I(["left","center","right"]).optional().nullable(),padding:Rf,margin:Ef}).optional().nullable(),props:C({buttonBackground:At,hoverBackground:At,hoverTextColor:At,borderRadius:Mf,borderWidth:If,borderColor:At,buttonTextColor:At,fullWidth:P().optional().nullable(),widthType:I(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:I(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:I(["fixed","fill","fit"]).optional().nullable(),width:f().min(0).optional().nullable(),widthUnit:I(["px","%"]).optional().nullable(),widthTablet:f().min(0).optional().nullable(),widthMobile:f().min(0).optional().nullable(),size:I(["x-small","small","large","medium"]).optional().nullable(),sizeTablet:I(["x-small","small","large","medium"]).optional().nullable(),sizeMobile:I(["x-small","small","large","medium"]).optional().nullable(),text:x().optional().nullable(),url:x().optional().nullable(),action:I(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:P().optional().nullable(),customAction:x().optional().nullable(),actionPayload:Lt(x(),an()).optional().nullable(),iconEnabled:P().optional().nullable(),iconName:x().optional().nullable(),iconAlignment:I(["left","right"]).optional().nullable(),ariaLabel:x().optional().nullable(),goToStep:x().optional().nullable(),postMessageEvent:x().optional().nullable(),animation:un,boxShadow:Vn}).optional().nullable(),responsive:Te});function xr(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 ge={text:"",url:"",fullWidth:!1,widthType:"fit",width:200,widthUnit:"px",size:"medium",borderRadius:4,borderColor:"",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:"",boxShadow:null};function Lf({style:e,props:t}){const o=`bh-${G.useId().replace(/:/g,"")}`,a=(t==null?void 0:t.text)??ge.text,i=(t==null?void 0:t.url)??ge.url,r=(t==null?void 0:t.fullWidth)??ge.fullWidth,l=(t==null?void 0:t.widthType)??ge.widthType,s=(t==null?void 0:t.width)??ge.width,c=(t==null?void 0:t.widthUnit)??ge.widthUnit,u=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,d=u??s,h=p??d,m=(t==null?void 0:t.widthTypeTablet)??l,b=(t==null?void 0:t.widthTypeMobile)??m,v=(t==null?void 0:t.size)??ge.size,k=(t==null?void 0:t.sizeTablet)??v,S=(t==null?void 0:t.sizeMobile)??k,$=l,w=s,_=(t==null?void 0:t.buttonTextColor)??ge.buttonTextColor,N=(t==null?void 0:t.buttonBackground)??ge.buttonBackground,A=(t==null?void 0:t.iconEnabled)??ge.iconEnabled,y=(t==null?void 0:t.iconName)??ge.iconName,R=(t==null?void 0:t.iconAlignment)??ge.iconAlignment,M=(t==null?void 0:t.ariaLabel)??null,T=typeof a=="string"&&a.trim().length>0,L=M&&M.trim().length>0?M:!T&&A&&y?y:void 0,H=(t==null?void 0:t.action)??ge.action,F=(t==null?void 0:t.openInNewTab)??ge.openInNewTab,O=((t==null?void 0:t.customAction)??ge.customAction)||H,q=(t==null?void 0:t.actionPayload)??ge.actionPayload,B=(t==null?void 0:t.goToStep)??ge.goToStep,Y=(t==null?void 0:t.postMessageEvent)??ge.postMessageEvent,de=q||(O==="goToStep"?{goToStep:B||""}:null)||(O==="postMessageEvent"?{postMessageEvent:Y||""}:null),oe=de?JSON.stringify(de):void 0,ee=(t==null?void 0:t.borderRadius)??ge.borderRadius,Z=(t==null?void 0:t.borderWidth)??ge.borderWidth,J=(t==null?void 0:t.borderColor)??ge.borderColor,Ee=(t==null?void 0:t.boxShadow)??ge.boxShadow,we=Yn(Ee),me=(t==null?void 0:t.hoverBackground)??null,ne=(t==null?void 0:t.hoverTextColor)??null,V=xr(v),U=_e=>typeof _e=="number"?`${_e}px`:`${_e.topLeft}px ${_e.topRight}px ${_e.bottomRight}px ${_e.bottomLeft}px`,X=(_e,ct)=>{if(typeof _e=="number")return`${Math.max(0,_e-ct)}px`;const Xn=Math.max(0,(_e.topLeft||0)-ct),Qn=Math.max(0,(_e.topRight||0)-ct),$t=Math.max(0,(_e.bottomRight||0)-ct),Ct=Math.max(0,(_e.bottomLeft||0)-ct);return`${Xn}px ${Qn}px ${$t}px ${Ct}px`},ye=J&&(J.includes("linear-gradient")||J.includes("radial-gradient")||J.includes("repeating-linear-gradient")),te=Z&&((Z.top??0)>0||(Z.right??0)>0||(Z.bottom??0)>0||(Z.left??0)>0),Q={top:(Z==null?void 0:Z.top)??0,right:(Z==null?void 0:Z.right)??0,bottom:(Z==null?void 0:Z.bottom)??0,left:(Z==null?void 0:Z.left)??0},Pe=(()=>{if(r)return"100%";switch($){case"fill":return"100%";case"fixed":return`${w}${c}`;case"fit":default:return"auto"}})(),ke=(e==null?void 0:e.buttonTextAlign)??(e==null?void 0:e.textAlign)??"center",it=ke==="center"?"center":ke==="right"?"flex-end":"flex-start",bt=()=>!J||J==="transparent"||!te?{border:"none"}:ye?{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:`${J} `,borderRadius:"0px"}:{borderTop:`${Q.top}px solid ${J}`,borderRight:`${Q.right}px solid ${J}`,borderBottom:`${Q.bottom}px solid ${J}`,borderLeft:`${Q.left}px solid ${J}`},Ne=N&&(N.includes("linear-gradient")||N.includes("radial-gradient")||N.includes("repeating-linear-gradient")),Se=_&&(_.includes("linear-gradient")||_.includes("radial-gradient")||_.includes("repeating-linear-gradient")),ie=(e==null?void 0:e.backgroundColor)&&(e.backgroundColor.includes("linear-gradient")||e.backgroundColor.includes("radial-gradient")||e.backgroundColor.includes("repeating-linear-gradient")),be={backgroundColor:ie?void 0:(e==null?void 0:e.backgroundColor)??void 0,backgroundImage:ie?(e==null?void 0:e.backgroundColor)??void 0:void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:Tf(e==null?void 0:e.padding),margin:Pf(e==null?void 0:e.margin)},Ie=bt(),lt=Se?{backgroundImage:_,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:_||void 0},Fe=Se?"transparent":Ne?void 0:N,st=Se?void 0:Ne?N:void 0,Me=(e==null?void 0:e.fontSize)??16,_t=`${Me}px`,Gt={fontSize:_t,fontFamily:no(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??Qt.REGULAR,backgroundColor:Fe,backgroundImage:st,borderRadius:ye?"0px":U(ee),...Ie,...ye&&te?{}:we,display:Pe==="100%"?"block":"inline-block",width:Pe,padding:`${V[0]}px ${V[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:it,lineHeight:"normal"},gn=ye&&te?g.jsx("div",{style:{display:Pe==="100%"?"block":"inline-block",padding:`${Q.top}px ${Q.right}px ${Q.bottom}px ${Q.left}px`,background:J,borderRadius:U(ee),width:Pe,boxSizing:"border-box",...we},children:g.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:X(ee,Math.max(Q.top,Q.right,Q.bottom,Q.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??Qt.REGULAR,fontFamily:no(e==null?void 0:e.fontFamily),backgroundImage:st??(Ne?N:"#fffff"),backgroundColor:Fe??(Ne?"#ffffff":N),textAlign:ke,textDecoration:"none",fontSize:_t,padding:`${V[0]}px ${V[1]}px`,boxSizing:"border-box",lineHeight:"normal"},"data-action":O,"data-action-payload":oe,"data-goto-step":O==="goToStep"&&B?B:void 0,"data-post-message-event":O==="postMessageEvent"&&Y?Y:void 0,type:"button","aria-label":L,children:[A&&y&&R==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":O,children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null,g.jsx("span",{style:{...lt,pointerEvents:"none"},"data-action":O,children:a}),A&&y&&R==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":O,children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null]})}):g.jsxs("button",{style:{cursor:"pointer",...Ie,...we,borderRadius:U(ee),width:Pe,fontWeight:(e==null?void 0:e.fontWeight)??Qt.REGULAR,fontFamily:no(e==null?void 0:e.fontFamily),backgroundColor:Fe??(Ne?"":N),backgroundImage:st??(Ne?N:""),textAlign:ke,textDecoration:"none",fontSize:_t,padding:`${V[0]}px ${V[1]}px`,boxSizing:"border-box",lineHeight:"normal"},"data-action":O,"data-action-payload":oe,"data-goto-step":O==="goToStep"&&B?B:void 0,"data-post-message-event":O==="postMessageEvent"&&Y?Y:void 0,type:"button","aria-label":L,children:[A&&y&&R==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":O,children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null,g.jsx("span",{style:{...lt,pointerEvents:"none"},"data-action":O,children:a}),A&&y&&R==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":O,children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null]}),ae=[];me&&ae.push(`background-color: ${me} !important; background-image: none !important;`),ne&&ae.push(`color: ${ne} !important;`);const le=ae.length>0?`#${o} a:hover, #${o} button:hover { ${ae.join(" ")} transition: background-color 150ms ease, color 150ms ease; } #${o} a:hover span, #${o} button:hover span { ${ne?`color: ${ne} !important; -webkit-text-fill-color: ${ne} !important;`:""} }`:null,Ge=(_e,ct,Xn,Qn)=>{const $t=[],Ct=r||ct==="fill"?"100%":ct==="fixed"?`${Xn}${c}`:"auto";$t.push(`width: ${Ct} !important;`,"max-width: 100% !important;"),$t.push(`display: ${Ct==="100%"?"block":"inline-block"} !important;`);const[Fa,as]=xr(Qn);return $t.push(`padding: ${Fa}px ${as}px !important;`),`${_e} { #${o} a, #${o} button { ${$t.join(" ")} } #${o} > div { width: ${Ct} !important; max-width: 100% !important; display: ${Ct==="100%"?"block":"inline-block"} !important; } }`},Qe=m!==l||k!==v||m==="fixed"&&d!==s,et=b!==l||S!==v||b==="fixed"&&h!==s,bn=Qe||et?[Qe?Ge(ot,m,d,k):"",et?Ge(Oe,b,h,S):""].filter(Boolean).join(`
|
|
65
|
-
`):null;if(H!=="link")return g.jsxs("div",{id:o,className:"button-block",style:be,children:[le&&g.jsx("style",{children:le}),bn&&g.jsx("style",{children:bn}),gn]});const os=ye&&te?g.jsx("div",{style:{display:Pe==="100%"?"block":"inline-block",padding:`${Q.top}px ${Q.right}px ${Q.bottom}px ${Q.left}px`,background:J,borderRadius:U(ee),width:Pe,boxSizing:"border-box",...we},children:g.jsxs("a",{href:i,style:{...Gt,border:"none",borderRadius:X(ee,Math.max(Q.top,Q.right,Q.bottom,Q.left)),width:"100%",display:"inline-flex",alignItems:"center",justifyContent:it},target:F?"_blank":void 0,rel:F?"noopener noreferrer":void 0,"aria-label":L,children:[A&&y&&R==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null,g.jsx("span",{style:{...lt,pointerEvents:"none"},children:a}),A&&y&&R==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null]})}):g.jsxs("a",{href:i,style:{...Gt,borderRadius:U(ee),display:"inline-flex",alignItems:"center",justifyContent:it},target:F?"_blank":void 0,rel:F?"noopener noreferrer":void 0,"aria-label":L,children:[A&&y&&R==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null,g.jsx("span",{style:{...lt,pointerEvents:"none"},children:a}),A&&y&&R==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null]});return g.jsxs("div",{id:o,className:"button-block",style:be,children:[le&&g.jsx("style",{children:le}),bn&&g.jsx("style",{children:bn}),os]})}const zf=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),jf=x().regex(/^rgba?\([^\)]+\)$/i),Bf=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Df=re("transparent"),Sr=D([zf,jf,Bf,Df]).nullable().optional(),Hf=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Ff=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Gf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Uf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Zf=C({style:C({backgroundColor:Sr,padding:Hf,margin:Ff}).optional().nullable(),props:C({lineColor:Sr,lineHeight:f().optional().nullable()}).optional().nullable()}),wr={lineHeight:1,lineColor:"#333333"};function Wf({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??wr.lineHeight,o=(t==null?void 0:t.lineColor)??wr.lineColor,a={padding:Gf(e==null?void 0:e.padding),margin:Uf(e==null?void 0:e.margin),backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,"--ahd-divider-thickness":`${n}px`};return g.jsx("div",{className:"divider-block",style:a,children:g.jsx("hr",{style:{width:"100%",border:"none",borderTopStyle:"solid",borderTopColor:o,borderTopWidth:`var(--ahd-divider-thickness, ${n}px)`,margin:0}})})}const qf=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Vf=x().regex(/^rgba?\([^\)]+\)$/i),Yf=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Kf=re("transparent"),oo=D([qf,Vf,Yf,Kf]).nullable().optional(),Jf=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Xf=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Qf=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,tp=I(["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 np(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 op=C({props:C({text:x().optional().nullable(),level:I(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:I(["text","link"]).optional().nullable(),url:x().optional().nullable(),openInNewTab:P().optional().nullable()}).optional().nullable(),style:C({color:oo,textColor:oo,backgroundColor:oo,fontFamily:tp,fontSize:f().optional().nullable(),lineClamp:f().int().gte(0).optional().nullable(),fontWeight:I(["bold","normal",...Ra]).optional().nullable(),fontStyle:I(["italic","normal"]).optional().nullable(),textDecoration:I(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable(),padding:Jf,margin:Xf}).optional().nullable()}),Ut={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};function ap({props:e,style:t}){const n=(e==null?void 0:e.level)??Ut.level,o=(e==null?void 0:e.text)??Ut.text,a=(e==null?void 0:e.linkType)??Ut.linkType,i=(e==null?void 0:e.url)??Ut.url,r=(e==null?void 0:e.openInNewTab)??Ut.openInNewTab,l=a==="link"&&i,s=(t==null?void 0:t.fontSize)??rp(n),c=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),u=c&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(c),p=(t==null?void 0:t.textDecoration)??"none",d=u&&(p==="underline"||p==="underline line-through"),h=u&&(p==="line-through"||p==="underline line-through"),m=t==null?void 0:t.lineClamp,b=!!(m&&m>0),v=b?{display:"-webkit-box",WebkitLineClamp:m,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},k={fontWeight:(t==null?void 0:t.fontWeight)??Qt.REGULAR,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:u?"none":p,margin:0,fontFamily:np(t==null?void 0:t.fontFamily),fontSize:s,...v},S=u?{lineHeight:"normal ",backgroundImage:c,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",position:"relative",...b?{}:{display:"inline-block"},...d?{paddingBottom:"0.08em"}:{}}:{color:c??void 0},$={position:"absolute",left:0,right:0,height:"0.08em",backgroundImage:c??void 0,pointerEvents:"none"},w={...$,bottom:0},_={...$,top:"50%",transform:"translateY(-50%)"},N=(t==null?void 0:t.backgroundColor)??void 0,A=typeof N=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(N),y={padding:Qf(t==null?void 0:t.padding),margin:ep(t==null?void 0:t.margin),display:"block",width:"100%",boxSizing:"border-box",textAlign:(t==null?void 0:t.textAlign)??void 0,wordBreak:"break-word",overflowWrap:"break-word",...A?{backgroundImage:N,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:N}},R=n,M=g.jsx(R,{className:"heading-block",style:k,children:g.jsxs("span",{style:S,children:[o,d?g.jsx("span",{style:w}):null,h?g.jsx("span",{style:_}):null]})});return g.jsx("div",{className:"heading-block-wrapper",style:y,children:l?g.jsx("a",{href:i,target:r?"_blank":void 0,rel:r?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!u&&c?c:void 0},children:M}):M})}function rp(e){switch(e){case"h1":return 32;case"h2":return 24;case"h3":return 20;case"h4":return 18;case"h5":return 16;case"h6":return 14}}var al="comm",rl="rule",il="decl",ip="@import",lp="@namespace",sp="@keyframes",cp="@layer",up=Math.abs,en=String.fromCharCode;function ll(e){return e.trim()}function Fo(e,t,n){return e.replace(t,n)}function Tt(e,t){return e.charCodeAt(t)|0}function zt(e,t,n){return e.slice(t,n)}function Je(e){return e.length}function dp(e){return e.length}function kn(e,t){return t.push(e),e}var Kn=1,jt=1,sl=0,Le=0,xe=0,Dt="";function Ea(e,t,n,o,a,i,r,l){return{value:e,root:t,parent:n,type:o,props:a,children:i,line:Kn,column:jt,length:r,return:"",siblings:l}}function hp(){return xe}function fp(){return xe=Le>0?Tt(Dt,--Le):0,jt--,xe===10&&(jt=1,Kn--),xe}function We(){return xe=Le<sl?Tt(Dt,Le++):0,jt++,xe===10&&(jt=1,Kn++),xe}function ft(){return Tt(Dt,Le)}function Rn(){return Le}function Jn(e,t){return zt(Dt,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 pp(e){return Kn=jt=1,sl=Je(Dt=e),Le=0,[]}function mp(e){return Dt="",e}function ao(e){return ll(Jn(Le-1,Go(e===91?e+2:e===40?e+1:e)))}function gp(e){for(;(xe=ft())&&xe<33;)We();return rn(e)>2||rn(xe)>3?"":" "}function bp(e,t){for(;--t&&We()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Jn(e,Rn()+(t<6&&ft()==32&&We()==32))}function Go(e){for(;We();)switch(xe){case e:return Le;case 34:case 39:e!==34&&e!==39&&Go(xe);break;case 40:e===41&&Go(e);break;case 92:We();break}return Le}function vp(e,t){for(;We()&&e+xe!==57;)if(e+xe===84&&ft()===47)break;return"/*"+Jn(t,Le-1)+"*"+en(e===47?e:We())}function xp(e){for(;!rn(ft());)We();return Jn(e,Le)}function Sp(e){return mp(En("",null,null,null,[""],e=pp(e),0,[0],e))}function En(e,t,n,o,a,i,r,l,s){for(var c=0,u=0,p=r,d=0,h=0,m=0,b=1,v=1,k=1,S=0,$=0,w="",_=a,N=i,A=o,y=w;v;)switch(m=$,$=We()){case 40:m!=108&&Tt(y,p-1)==58?(S++,y+="("):y+=ao($);break;case 41:S--,y+=")";break;case 34:case 39:case 91:y+=ao($);break;case 9:case 10:case 13:case 32:if(S>0){y+=en($);break}y+=gp(m);break;case 92:y+=bp(Rn()-1,7);continue;case 47:switch(ft()){case 42:case 47:kn(wp(vp(We(),Rn()),t,n,s),s),(rn(m||1)==5||rn(ft()||1)==5)&&Je(y)&&zt(y,-1,void 0)!==" "&&(y+=" ");break;default:y+="/"}break;case 123*b:l[c++]=Je(y)*k;case 125*b:case 59:case 0:if(S>0&&$){y+=en($);break}switch($){case 0:case 125:v=0;case 59+u:k==-1&&(y=Fo(y,/\f/g,"")),h>0&&(Je(y)-p||b===0)&&kn(h>32?_r(y+";",o,n,p-1,s):_r(Fo(y," ","")+";",o,n,p-2,s),s);break;case 59:y+=";";default:if(kn(A=kr(y,t,n,c,u,a,l,w,_=[],N=[],p,i),i),$===123)if(u===0)En(y,t,A,A,_,i,p,l,N);else{switch(d){case 99:if(Tt(y,3)===110)break;case 108:if(Tt(y,2)===97)break;default:u=0;case 100:case 109:case 115:}u?En(e,A,A,o&&kn(kr(e,A,A,0,0,a,l,w,a,_=[],p,N),N),a,N,p,l,o?_:N):En(y,A,A,A,[""],N,0,l,N)}}c=u=h=0,b=k=1,w=y="",p=r;break;case 58:p=1+Je(y),h=m;default:if(b<1){if($==123)--b;else if($==125&&b++==0&&fp()==125)continue}switch(y+=en($),$*b){case 38:k=u>0?1:(y+="\f",-1);break;case 44:if(S>0)break;l[c++]=(Je(y)-1)*k,k=1;break;case 64:ft()===45&&(y+=ao(We())),d=ft(),u=p=Je(w=y+=xp(Rn())),$++;break;case 45:m===45&&Je(y)==2&&(b=0)}}return i}function kr(e,t,n,o,a,i,r,l,s,c,u,p){for(var d=a-1,h=a===0?i:[""],m=dp(h),b=0,v=0,k=0;b<o;++b)for(var S=0,$=zt(e,d+1,d=up(v=r[b])),w=e;S<m;++S)(w=ll(v>0?h[S]+" "+$:Fo($,/&\f/g,h[S])))&&(s[k++]=w);return Ea(e,t,n,a===0?rl:l,s,c,u,p)}function wp(e,t,n,o){return Ea(e,t,n,al,en(hp()),zt(e,2,-2),0,o)}function _r(e,t,n,o,a){return Ea(e,t,n,il,zt(e,0,o),zt(e,o+1,-1),o,a)}function Uo(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function kp(e,t,n,o){switch(e.type){case cp:if(e.children.length)break;case ip:case lp:case il:return e.return=e.return||e.value;case al:return"";case sp:return e.return=e.value+"{"+Uo(e.children,o)+"}";case rl:if(!Je(e.value=e.props.join(",")))return""}return Je(n=Uo(e.children,o))?e.return=e.value+"{"+n+"}":""}const _p=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),$p=x().regex(/^rgba?\([^\)]+\)$/i),Cp=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Ap=re("transparent"),$r=D([_p,$p,Cp,Ap]).nullable().optional(),yp=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Np=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Rp=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ep=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ip=I(["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 Mp(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 Tp=C({style:C({color:$r,backgroundColor:$r,fontFamily:Ip,fontSize:f().min(0).optional().nullable(),textAlign:I(["left","right","center"]).optional().nullable(),padding:yp,margin:Np}).optional().nullable(),props:C({contents:x().optional().nullable()}).optional().nullable()}),Pp=/<style[^>]*>([\s\S]*?)<\/style>/gi;function Op(e,t){let n="";const o=e.replace(Pp,(i,r)=>(n+=r,""));if(!n.trim())return{markup:o,css:""};const a=Uo(Sp(`[${t}]{${n}}`),kp);return{markup:o,css:a}}function Lp({style:e,props:t}){const n=t==null?void 0:t.contents,[o,a]=G.useState(!1),r=`data-html-scope-${G.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=G.useMemo(()=>n?Op(n,r):{markup:"",css:""},[n,r]),c={color:(e==null?void 0:e.color)??void 0,backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,fontFamily:Mp(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:Rp(e==null?void 0:e.padding),margin:Ep(e==null?void 0:e.margin)},u=G.useRef(null);G.useEffect(()=>{const b=u.current;if(!b)return;b.querySelectorAll("iframe").forEach(k=>{try{k.style.pointerEvents=o?"auto":"none"}catch{}})},[n,o]);const p=b=>{o||a(!0)},d=()=>{a(!1)},h=`[${r}] pre,[${r}] 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:h}})});const m=`<style>${h}${s}</style>${l}`;return g.jsx("div",{ref:u,className:"html-block",style:c,onClick:p,onBlur:d,tabIndex:0,[r]:"",dangerouslySetInnerHTML:{__html:m}})}const Ia=C({enabled:P(),scale:f().min(1).max(1.5).optional().nullable(),duration:f().min(0).max(3e3).optional().nullable(),easing:I(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable(),zp=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),jp=x().regex(/^rgba?\([^\)]+\)$/i),Bp=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Dp=re("transparent"),Hp=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Fp=D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),ro=D([zp,jp,Bp,Dp]).nullable().optional(),Gp=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Up=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Zp(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 Wp(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)||1}px ${(t==null?void 0:t.right)||1}px ${(t==null?void 0:t.bottom)||1}px ${(t==null?void 0:t.left)||1}px`}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}:{}}const qp=C({style:C({padding:Hp,backgroundColor:ro.default(null),textAlign:I(["center","left","right"]).optional().nullable()}).optional().nullable(),props:C({width:f().optional().nullable(),widthUnit:I(["px","%"]).optional().nullable(),widthTablet:f().positive().optional().nullable(),widthMobile:f().positive().optional().nullable(),height:f().optional().nullable(),heightTablet:f().positive().optional().nullable(),heightMobile:f().positive().optional().nullable(),widthType:I(["fixed","fill","fit"]).optional().nullable(),url:x().optional().nullable(),urlTablet:x().optional().nullable(),urlMobile:x().optional().nullable(),alt:x().optional().nullable(),decorative:P().optional().nullable(),linkHref:x().optional().nullable(),contentAlignment:I(["top","middle","bottom"]).optional().nullable(),borderRadius:Fp,borderColor:ro.default(null),borderWidth:Gp,rotation:f().min(0).max(360).optional().nullable(),rotationTablet:f().min(0).max(360).optional().nullable(),rotationMobile:f().min(0).max(360).optional().nullable(),iconName:x().optional().nullable(),iconFillColor:ro.default(null),animation:un,hoverEffect:Ia,boxShadow:Vn}).optional().nullable()}),$e={widthType:"fit",width:300,widthUnit:"px",height:null,url:"",alt:"",decorative:!1,linkHref:null,contentAlignment:"middle",borderRadius:0,borderColor:null,borderWidth:null,rotation:0,hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"},boxShadow:null};let Vp=0;function Yp({style:e,props:t}){const n=G.useMemo(()=>`ahd-img-${++Vp}`,[]),o=(e==null?void 0:e.textAlign)??void 0,a=o==="center"?"center":o==="right"?"flex-end":"flex-start",i={padding:Up(e==null?void 0:e.padding),...Zp(e==null?void 0:e.backgroundColor),display:"flex",justifyContent:a,width:"100%",boxSizing:"border-box"},r=(t==null?void 0:t.linkHref)??$e.linkHref,l=(t==null?void 0:t.widthType)??$e.widthType,s=(t==null?void 0:t.width)??$e.width,c=(t==null?void 0:t.widthUnit)??$e.widthUnit,u=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,d=u??s,h=p??d,m=(t==null?void 0:t.height)??$e.height,b=(t==null?void 0:t.heightTablet)??null,v=(t==null?void 0:t.heightMobile)??null,k=b??m,S=v??k,$=m,w=(t==null?void 0:t.url)??$e.url,_=(t==null?void 0:t.urlTablet)??null,N=(t==null?void 0:t.urlMobile)??null,A=!r&&((t==null?void 0:t.decorative)??$e.decorative),y=A?"":(t==null?void 0:t.alt)??$e.alt,R=A?{role:"presentation","aria-hidden":!0}:{},M=(t==null?void 0:t.contentAlignment)??$e.contentAlignment,T=(t==null?void 0:t.borderRadius)??$e.borderRadius,L=(t==null?void 0:t.borderColor)??$e.borderColor,H=(t==null?void 0:t.borderWidth)??$e.borderWidth,F=(t==null?void 0:t.boxShadow)??$e.boxShadow,j=Yn(F),O=(t==null?void 0:t.rotation)??$e.rotation,q=(t==null?void 0:t.rotationTablet)??null,B=(t==null?void 0:t.rotationMobile)??null,Y=q??O,de=B??Y,oe=ie=>{const be=ie*Math.PI/180,Ie=ie%180!==0?1/(Math.abs(Math.cos(be))+Math.abs(Math.sin(be))):1;return`rotate(${ie}deg) scale(${Ie})`},ee=O,Z=ee?{transform:oe(ee),transformOrigin:"center"}:{},Ee=q!=null||B!=null?`
|
|
64
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const p=u[1];if(t===u[0]){i(u);continue}if(e.external){const h=(s=e.external.registry.get(u[0]))==null?void 0:s.id;if(t!==u[0]&&h){i(u);continue}}if((c=e.metadataRegistry.get(u[0]))==null?void 0:c.id){i(u);continue}if(p.cycle){i(u);continue}if(p.count>1&&e.reused==="ref"){i(u);continue}}}function qi(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=p=>{const d=e.seen.get(p);if(d.ref===null)return;const h=d.def??d.schema,m={...h},b=d.ref;if(d.ref=null,b){o(b);const k=e.seen.get(b),S=k.schema;if(S.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(S)):Object.assign(h,S),Object.assign(h,m),p._zod.parent===b)for(const w in h)w==="$ref"||w==="allOf"||w in m||delete h[w];if(S.$ref&&k.def)for(const w in h)w==="$ref"||w==="allOf"||w in k.def&&JSON.stringify(h[w])===JSON.stringify(k.def[w])&&delete h[w]}const v=p._zod.parent;if(v&&v!==b){o(v);const k=e.seen.get(v);if(k!=null&&k.schema.$ref&&(h.$ref=k.schema.$ref,k.def))for(const S in h)S==="$ref"||S==="allOf"||S in k.def&&JSON.stringify(h[S])===JSON.stringify(k.def[S])&&delete h[S]}e.override({zodSchema:p,jsonSchema:h,path:d.path??[]})};for(const p of[...e.seen.entries()].reverse())o(p[0]);const a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,(l=e.external)!=null&&l.uri){const p=(s=e.external.registry.get(t))==null?void 0:s.id;if(!p)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(p)}Object.assign(a,n.def??n.schema);const i=(c=e.metadataRegistry.get(t))==null?void 0:c.id;i!==void 0&&a.id===i&&delete a.id;const r=((u=e.external)==null?void 0:u.defs)??{};for(const p of e.seen.entries()){const d=p[1];d.def&&d.defId&&(d.def.id===d.defId&&delete d.def.id,r[d.defId]=d.def)}e.external||Object.keys(r).length>0&&(e.target==="draft-2020-12"?a.$defs=r:a.definitions=r);try{const p=JSON.parse(JSON.stringify(a));return Object.defineProperty(p,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ln(t,"input",e.processors),output:Ln(t,"output",e.processors)}},enumerable:!1,writable:!1}),p}catch{throw new Error("Error converting schema to JSON.")}}function Ce(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 Ce(o.element,n);if(o.type==="set")return Ce(o.valueType,n);if(o.type==="lazy")return Ce(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 Ce(o.innerType,n);if(o.type==="intersection")return Ce(o.left,n)||Ce(o.right,n);if(o.type==="record"||o.type==="map")return Ce(o.keyType,n)||Ce(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Ce(o.in,n)||Ce(o.out,n);if(o.type==="object"){for(const a in o.shape)if(Ce(o.shape[a],n))return!0;return!1}if(o.type==="union"){for(const a of o.options)if(Ce(a,n))return!0;return!1}if(o.type==="tuple"){for(const a of o.items)if(Ce(a,n))return!0;return!!(o.rest&&Ce(o.rest,n))}return!1}const ud=(e,t={})=>n=>{const o=Zi({...n,processors:t});return fe(e,o),Wi(o,e),qi(o,e)},Ln=(e,t,n={})=>o=>{const{libraryOptions:a,target:i}=o??{},r=Zi({...a??{},target:i,io:t,processors:n});return fe(e,r),Wi(r,e),qi(r,e)},dd={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},hd=(e,t,n,o)=>{const a=n;a.type="string";const{minimum:i,maximum:r,format:l,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(a.minLength=i),typeof r=="number"&&(a.maxLength=r),l&&(a.format=dd[l]??l,a.format===""&&delete a.format,l==="time"&&delete a.format),c&&(a.contentEncoding=c),s&&s.size>0){const u=[...s];u.length===1?a.pattern=u[0].source:u.length>1&&(a.allOf=[...u.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},fd=(e,t,n,o)=>{const a=n,{minimum:i,maximum:r,format:l,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof l=="string"&&l.includes("int")?a.type="integer":a.type="number";const p=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),d=typeof c=="number"&&c<=(r??Number.POSITIVE_INFINITY),h=t.target==="draft-04"||t.target==="openapi-3.0";p?h?(a.minimum=u,a.exclusiveMinimum=!0):a.exclusiveMinimum=u:typeof i=="number"&&(a.minimum=i),d?h?(a.maximum=c,a.exclusiveMaximum=!0):a.exclusiveMaximum=c:typeof r=="number"&&(a.maximum=r),typeof s=="number"&&(a.multipleOf=s)},pd=(e,t,n,o)=>{n.type="boolean"},md=(e,t,n,o)=>{n.not={}},gd=(e,t,n,o)=>{},bd=(e,t,n,o)=>{},vd=(e,t,n,o)=>{const a=e._zod.def,i=_i(a.entries);i.every(r=>typeof r=="number")&&(n.type="number"),i.every(r=>typeof r=="string")&&(n.type="string"),n.enum=i},xd=(e,t,n,o)=>{const a=e._zod.def,i=[];for(const r of a.values)if(r===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof r=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(r))}else i.push(r);if(i.length!==0)if(i.length===1){const r=i[0];n.type=r===null?"null":typeof r,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[r]:n.const=r}else i.every(r=>typeof r=="number")&&(n.type="number"),i.every(r=>typeof r=="string")&&(n.type="string"),i.every(r=>typeof r=="boolean")&&(n.type="boolean"),i.every(r=>r===null)&&(n.type="null"),n.enum=i},Sd=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},wd=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},kd=(e,t,n,o)=>{const a=n,i=e._zod.def,{minimum:r,maximum:l}=e._zod.bag;typeof r=="number"&&(a.minItems=r),typeof l=="number"&&(a.maxItems=l),a.type="array",a.items=fe(i.element,t,{...o,path:[...o.path,"items"]})},_d=(e,t,n,o)=>{var c;const a=n,i=e._zod.def;a.type="object",a.properties={};const r=i.shape;for(const u in r)a.properties[u]=fe(r[u],t,{...o,path:[...o.path,"properties",u]});const l=new Set(Object.keys(r)),s=new Set([...l].filter(u=>{const p=i.shape[u]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));s.size>0&&(a.required=Array.from(s)),((c=i.catchall)==null?void 0:c._zod.def.type)==="never"?a.additionalProperties=!1:i.catchall?i.catchall&&(a.additionalProperties=fe(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},$d=(e,t,n,o)=>{const a=e._zod.def,i=a.inclusive===!1,r=a.options.map((l,s)=>fe(l,t,{...o,path:[...o.path,i?"oneOf":"anyOf",s]}));i?n.oneOf=r:n.anyOf=r},Cd=(e,t,n,o)=>{const a=e._zod.def,i=fe(a.left,t,{...o,path:[...o.path,"allOf",0]}),r=fe(a.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(r)?r.allOf:[r]];n.allOf=s},Ad=(e,t,n,o)=>{const a=n,i=e._zod.def;a.type="array";const r=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,h)=>fe(d,t,{...o,path:[...o.path,r,h]})),c=i.rest?fe(i.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(a.prefixItems=s,c&&(a.items=c)):t.target==="openapi-3.0"?(a.items={anyOf:s},c&&a.items.anyOf.push(c),a.minItems=s.length,c||(a.maxItems=s.length)):(a.items=s,c&&(a.additionalItems=c));const{minimum:u,maximum:p}=e._zod.bag;typeof u=="number"&&(a.minItems=u),typeof p=="number"&&(a.maxItems=p)},yd=(e,t,n,o)=>{const a=n,i=e._zod.def;a.type="object";const r=i.keyType,l=r._zod.bag,s=l==null?void 0:l.patterns;if(i.mode==="loose"&&s&&s.size>0){const u=fe(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});a.patternProperties={};for(const p of s)a.patternProperties[p.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=fe(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),a.additionalProperties=fe(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});const c=r._zod.values;if(c){const u=[...c].filter(p=>typeof p=="string"||typeof p=="number");u.length>0&&(a.required=u)}},Nd=(e,t,n,o)=>{const a=e._zod.def,i=fe(a.innerType,t,o),r=t.seen.get(e);t.target==="openapi-3.0"?(r.ref=a.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},Rd=(e,t,n,o)=>{const a=e._zod.def;fe(a.innerType,t,o);const i=t.seen.get(e);i.ref=a.innerType},Ed=(e,t,n,o)=>{const a=e._zod.def;fe(a.innerType,t,o);const i=t.seen.get(e);i.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},Id=(e,t,n,o)=>{const a=e._zod.def;fe(a.innerType,t,o);const i=t.seen.get(e);i.ref=a.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},Md=(e,t,n,o)=>{const a=e._zod.def;fe(a.innerType,t,o);const i=t.seen.get(e);i.ref=a.innerType;let r;try{r=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=r},Td=(e,t,n,o)=>{const a=e._zod.def,i=a.in._zod.traits.has("$ZodTransform"),r=t.io==="input"?i?a.out:a.in:a.out;fe(r,t,o);const l=t.seen.get(e);l.ref=r},Pd=(e,t,n,o)=>{const a=e._zod.def;fe(a.innerType,t,o);const i=t.seen.get(e);i.ref=a.innerType,n.readOnly=!0},Vi=(e,t,n,o)=>{const a=e._zod.def;fe(a.innerType,t,o);const i=t.seen.get(e);i.ref=a.innerType},Od=(e,t,n,o)=>{const a=e._zod.innerType;fe(a,t,o);const i=t.seen.get(e);i.ref=a},Ld=E("ZodISODateTime",(e,t)=>{Ec.init(e,t),pe.init(e,t)});function zd(e){return Bu(Ld,e)}const jd=E("ZodISODate",(e,t)=>{Ic.init(e,t),pe.init(e,t)});function Bd(e){return Du(jd,e)}const Dd=E("ZodISOTime",(e,t)=>{Mc.init(e,t),pe.init(e,t)});function Hd(e){return Hu(Dd,e)}const Fd=E("ZodISODuration",(e,t)=>{Tc.init(e,t),pe.init(e,t)});function Gd(e){return Fu(Fd,e)}const Ud=(e,t)=>{yi.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>ks(e,n)},flatten:{value:n=>ws(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Bo,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Bo,2)}},isEmpty:{get(){return e.issues.length===0}}})},ze=E("ZodError",Ud,{Parent:Error}),Zd=Aa(ze),Wd=ya(ze),qd=Zn(ze),Vd=Wn(ze),Yd=Cs(ze),Kd=As(ze),Jd=ys(ze),Xd=Ns(ze),Qd=Rs(ze),eh=Es(ze),th=Is(ze),nh=Ms(ze),cr=new WeakMap;function cn(e,t,n){const o=Object.getPrototypeOf(e);let a=cr.get(o);if(a||(a=new Set,cr.set(o,a)),!a.has(t)){a.add(t);for(const i in n){const r=n[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){const l=r.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 ce=E("ZodType",(e,t)=>(se.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ln(e,"input"),output:Ln(e,"output")}}),e.toJSONSchema=ud(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>Zd(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>qd(e,n,o),e.parseAsync=async(n,o)=>Wd(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Vd(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Yd(e,n,o),e.decode=(n,o)=>Kd(e,n,o),e.encodeAsync=async(n,o)=>Jd(e,n,o),e.decodeAsync=async(n,o)=>Xd(e,n,o),e.safeEncode=(n,o)=>Qd(e,n,o),e.safeDecode=(n,o)=>eh(e,n,o),e.safeEncodeAsync=async(n,o)=>th(e,n,o),e.safeDecodeAsync=async(n,o)=>nh(e,n,o),cn(e,"ZodType",{check(...n){const o=this.def;return this.clone(pt(o,{checks:[...o.checks??[],...n.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return mt(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(Xh(n,o))},superRefine(n,o){return this.check(Qh(n,o))},overwrite(n){return this.check(Bt(n))},optional(){return pr(this)},exactOptional(){return zh(this)},nullable(){return mr(this)},nullish(){return pr(mr(this))},nonoptional(n){return Gh(this,n)},array(){return W(this)},or(n){return D([this,n])},and(n){return Mh(this,n)},transform(n){return gr(this,Qi(n))},default(n){return Dh(this,n)},prefault(n){return Fh(this,n)},catch(n){return Zh(this,n)},pipe(n){return gr(this,n)},readonly(){return Vh(this)},describe(n){const o=this.clone();return Xt.add(o,{description:n}),o},meta(...n){if(n.length===0)return Xt.get(this);const o=this.clone();return Xt.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=Xt.get(e))==null?void 0:n.description},configurable:!0}),e)),Yi=E("_ZodString",(e,t)=>{Na.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,a,i)=>hd(e,o,a);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,cn(e,"_ZodString",{regex(...o){return this.check(Yu(...o))},includes(...o){return this.check(Xu(...o))},startsWith(...o){return this.check(Qu(...o))},endsWith(...o){return this.check(ed(...o))},min(...o){return this.check(On(...o))},max(...o){return this.check(Gi(...o))},length(...o){return this.check(Ui(...o))},nonempty(...o){return this.check(On(1,...o))},lowercase(o){return this.check(Ku(o))},uppercase(o){return this.check(Ju(o))},trim(){return this.check(nd())},normalize(...o){return this.check(td(...o))},toLowerCase(){return this.check(od())},toUpperCase(){return this.check(ad())},slugify(){return this.check(rd())}})}),oh=E("ZodString",(e,t)=>{Na.init(e,t),Yi.init(e,t),e.email=n=>e.check(vu(ah,n)),e.url=n=>e.check(_u(rh,n)),e.jwt=n=>e.check(ju(Sh,n)),e.emoji=n=>e.check($u(ih,n)),e.guid=n=>e.check(rr(ur,n)),e.uuid=n=>e.check(xu(Sn,n)),e.uuidv4=n=>e.check(Su(Sn,n)),e.uuidv6=n=>e.check(wu(Sn,n)),e.uuidv7=n=>e.check(ku(Sn,n)),e.nanoid=n=>e.check(Cu(lh,n)),e.guid=n=>e.check(rr(ur,n)),e.cuid=n=>e.check(Au(sh,n)),e.cuid2=n=>e.check(yu(ch,n)),e.ulid=n=>e.check(Nu(uh,n)),e.base64=n=>e.check(Ou(bh,n)),e.base64url=n=>e.check(Lu(vh,n)),e.xid=n=>e.check(Ru(dh,n)),e.ksuid=n=>e.check(Eu(hh,n)),e.ipv4=n=>e.check(Iu(fh,n)),e.ipv6=n=>e.check(Mu(ph,n)),e.cidrv4=n=>e.check(Tu(mh,n)),e.cidrv6=n=>e.check(Pu(gh,n)),e.e164=n=>e.check(zu(xh,n)),e.datetime=n=>e.check(zd(n)),e.date=n=>e.check(Bd(n)),e.time=n=>e.check(Hd(n)),e.duration=n=>e.check(Gd(n))});function x(e){return bu(oh,e)}const pe=E("ZodStringFormat",(e,t)=>{he.init(e,t),Yi.init(e,t)}),ah=E("ZodEmail",(e,t)=>{wc.init(e,t),pe.init(e,t)}),ur=E("ZodGUID",(e,t)=>{xc.init(e,t),pe.init(e,t)}),Sn=E("ZodUUID",(e,t)=>{Sc.init(e,t),pe.init(e,t)}),rh=E("ZodURL",(e,t)=>{kc.init(e,t),pe.init(e,t)}),ih=E("ZodEmoji",(e,t)=>{_c.init(e,t),pe.init(e,t)}),lh=E("ZodNanoID",(e,t)=>{$c.init(e,t),pe.init(e,t)}),sh=E("ZodCUID",(e,t)=>{Cc.init(e,t),pe.init(e,t)}),ch=E("ZodCUID2",(e,t)=>{Ac.init(e,t),pe.init(e,t)}),uh=E("ZodULID",(e,t)=>{yc.init(e,t),pe.init(e,t)}),dh=E("ZodXID",(e,t)=>{Nc.init(e,t),pe.init(e,t)}),hh=E("ZodKSUID",(e,t)=>{Rc.init(e,t),pe.init(e,t)}),fh=E("ZodIPv4",(e,t)=>{Pc.init(e,t),pe.init(e,t)}),ph=E("ZodIPv6",(e,t)=>{Oc.init(e,t),pe.init(e,t)}),mh=E("ZodCIDRv4",(e,t)=>{Lc.init(e,t),pe.init(e,t)}),gh=E("ZodCIDRv6",(e,t)=>{zc.init(e,t),pe.init(e,t)}),bh=E("ZodBase64",(e,t)=>{jc.init(e,t),pe.init(e,t)}),vh=E("ZodBase64URL",(e,t)=>{Dc.init(e,t),pe.init(e,t)}),xh=E("ZodE164",(e,t)=>{Hc.init(e,t),pe.init(e,t)}),Sh=E("ZodJWT",(e,t)=>{Gc.init(e,t),pe.init(e,t)}),Ki=E("ZodNumber",(e,t)=>{zi.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,a,i)=>fd(e,o,a),cn(e,"ZodNumber",{gt(o,a){return this.check(lr(o,a))},gte(o,a){return this.check(to(o,a))},min(o,a){return this.check(to(o,a))},lt(o,a){return this.check(ir(o,a))},lte(o,a){return this.check(eo(o,a))},max(o,a){return this.check(eo(o,a))},int(o){return this.check(dr(o))},safe(o){return this.check(dr(o))},positive(o){return this.check(lr(0,o))},nonnegative(o){return this.check(to(0,o))},negative(o){return this.check(ir(0,o))},nonpositive(o){return this.check(eo(0,o))},multipleOf(o,a){return this.check(sr(o,a))},step(o,a){return this.check(sr(o,a))},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 f(e){return Gu(Ki,e)}const wh=E("ZodNumberFormat",(e,t)=>{Uc.init(e,t),Ki.init(e,t)});function dr(e){return Uu(wh,e)}const kh=E("ZodBoolean",(e,t)=>{Zc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>pd(e,n,o)});function P(e){return Zu(kh,e)}const _h=E("ZodAny",(e,t)=>{Wc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>gd()});function an(){return Wu(_h)}const $h=E("ZodUnknown",(e,t)=>{qc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>bd()});function hr(){return qu($h)}const Ch=E("ZodNever",(e,t)=>{Vc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>md(e,n,o)});function Ah(e){return Vu(Ch,e)}const yh=E("ZodArray",(e,t)=>{Yc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>kd(e,n,o,a),e.element=t.element,cn(e,"ZodArray",{min(n,o){return this.check(On(n,o))},nonempty(n){return this.check(On(1,n))},max(n,o){return this.check(Gi(n,o))},length(n,o){return this.check(Ui(n,o))},unwrap(){return this.element}})});function W(e,t){return id(yh,e,t)}const Nh=E("ZodObject",(e,t)=>{Jc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>_d(e,n,o,a),K(e,"shape",()=>t.shape),cn(e,"ZodObject",{keyof(){return I(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:hr()})},loose(){return this.clone({...this._zod.def,catchall:hr()})},strict(){return this.clone({...this._zod.def,catchall:Ah()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return ms(this,n)},safeExtend(n){return gs(this,n)},merge(n){return bs(this,n)},pick(n){return fs(this,n)},omit(n){return ps(this,n)},partial(...n){return vs(el,this,n[0])},required(...n){return xs(tl,this,n[0])}})});function C(e,t){const n={type:"object",shape:e??{},...z(t)};return new Nh(n)}const Ji=E("ZodUnion",(e,t)=>{Di.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>$d(e,n,o,a),e.options=t.options});function D(e,t){return new Ji({type:"union",options:e,...z(t)})}const Rh=E("ZodDiscriminatedUnion",(e,t)=>{Ji.init(e,t),Xc.init(e,t)});function Eh(e,t,n){return new Rh({type:"union",options:t,discriminator:e,...z(n)})}const Ih=E("ZodIntersection",(e,t)=>{Qc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Cd(e,n,o,a)});function Mh(e,t){return new Ih({type:"intersection",left:e,right:t})}const Th=E("ZodTuple",(e,t)=>{eu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ad(e,n,o,a),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Xi(e,t,n){const o=t instanceof se,a=o?n:t,i=o?t:null;return new Th({type:"tuple",items:e,rest:i,...z(a)})}const fr=E("ZodRecord",(e,t)=>{tu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>yd(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType});function Lt(e,t,n){return!t||!t._zod?new fr({type:"record",keyType:x(),valueType:e,...z(t)}):new fr({type:"record",keyType:e,valueType:t,...z(n)})}const Ho=E("ZodEnum",(e,t)=>{nu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,a,i)=>vd(e,o,a),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(o,a)=>{const i={};for(const r of o)if(n.has(r))i[r]=t.entries[r];else throw new Error(`Key ${r} not found in enum`);return new Ho({...t,checks:[],...z(a),entries:i})},e.exclude=(o,a)=>{const i={...t.entries};for(const r of o)if(n.has(r))delete i[r];else throw new Error(`Key ${r} not found in enum`);return new Ho({...t,checks:[],...z(a),entries:i})}});function I(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Ho({type:"enum",entries:n,...z(t)})}const Ph=E("ZodLiteral",(e,t)=>{ou.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>xd(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 re(e,t){return new Ph({type:"literal",values:Array.isArray(e)?e:[e],...z(t)})}const Oh=E("ZodTransform",(e,t)=>{au.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>wd(e,n),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ki(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(on(i,n.value,t));else{const r=i;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=e),n.issues.push(on(r))}};const a=t.transform(n.value,n);return a instanceof Promise?a.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=a,n.fallback=!0,n)}});function Qi(e){return new Oh({type:"transform",transform:e})}const el=E("ZodOptional",(e,t)=>{Hi.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Vi(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function pr(e){return new el({type:"optional",innerType:e})}const Lh=E("ZodExactOptional",(e,t)=>{ru.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Vi(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function zh(e){return new Lh({type:"optional",innerType:e})}const jh=E("ZodNullable",(e,t)=>{iu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Nd(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function mr(e){return new jh({type:"nullable",innerType:e})}const Bh=E("ZodDefault",(e,t)=>{lu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ed(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Dh(e,t){return new Bh({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Ci(t)}})}const Hh=E("ZodPrefault",(e,t)=>{su.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Id(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Fh(e,t){return new Hh({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Ci(t)}})}const tl=E("ZodNonOptional",(e,t)=>{cu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Rd(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Gh(e,t){return new tl({type:"nonoptional",innerType:e,...z(t)})}const Uh=E("ZodCatch",(e,t)=>{uu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Md(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Zh(e,t){return new Uh({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const nl=E("ZodPipe",(e,t)=>{Fi.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Td(e,n,o,a),e.in=t.in,e.out=t.out});function gr(e,t){return new nl({type:"pipe",in:e,out:t})}const Wh=E("ZodPreprocess",(e,t)=>{nl.init(e,t),du.init(e,t)}),qh=E("ZodReadonly",(e,t)=>{hu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Pd(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Vh(e){return new qh({type:"readonly",innerType:e})}const Yh=E("ZodLazy",(e,t)=>{fu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Od(e,n,o,a),e.unwrap=()=>e._zod.def.getter()});function Kh(e){return new Yh({type:"lazy",getter:e})}const Jh=E("ZodCustom",(e,t)=>{pu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Sd(e,n)});function Xh(e,t={}){return ld(Jh,e,t)}function Qh(e,t){return sd(e,t)}function ol(e,t){return new Wh({type:"pipe",in:Qi(e),out:t})}var ef=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),tf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,br=C({style:C({textAlign:I(["left","center","right"]).optional().nullable(),padding:ef}).optional().nullable(),props:C({size:f().gt(0).optional().nullable(),shape:I(["circle","square","rounded"]).optional().nullable(),imageUrl:x().optional().nullable(),alt:x().optional().nullable()}).optional().nullable()});function nf(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var wn={size:64,imageUrl:"",alt:"",shape:"square"};function vr({style:e,props:t}){var n,o,a,i,r;const l=(n=t==null?void 0:t.size)!=null?n:wn.size,s=(o=t==null?void 0:t.imageUrl)!=null?o:wn.imageUrl,c=(a=t==null?void 0:t.alt)!=null?a:wn.alt,u=(i=t==null?void 0:t.shape)!=null?i:wn.shape,p={textAlign:(r=e==null?void 0:e.textAlign)!=null?r:void 0,padding:tf(e==null?void 0:e.padding)};return G.createElement("div",{style:p},G.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:nf(u,l)}}))}const un=C({type:I(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:I(["load","scroll","hover","click"]),speed:I(["slow","medium","fast"]),delay:f().min(0).max(1e4).optional().nullable(),disableOnMobile:P().optional().nullable()}).optional().nullable(),of=br.extend({props:br.shape.props.unwrap().unwrap().extend({decorative:P().optional().nullable(),animation:un}).optional().nullable()}),Qt={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},Ra=Object.values(Qt);function al(){return"desktop"}const je=1024,Ae=640,ot=`@media (max-width: ${je}px)`,Oe=`@media (max-width: ${Ae}px)`,dn=`@media (min-width: ${Ae+1}px) and (max-width: ${je}px)`,Vn=C({color:x().optional().nullable(),offsetX:f().default(0),offsetY:f().default(0),blur:f().default(0),spread:f().default(0),inset:P().default(!1)}).partial().optional().nullable();function af(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 Yn(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:a=0,spread:i=0,inset:r=!1}=e;return{boxShadow:`${r?"inset ":""}${n}px ${o}px ${a}px ${i}px ${af(t)}`}}const Te=C({tablet:Lt(x(),an()).optional().nullable(),mobile:Lt(x(),an()).optional().nullable()}).optional().nullable(),rf=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"})})},lf=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"})})},sf=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"})})},cf=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"})})},uf=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"})})},df=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"})})},hf=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"})})},ff=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"})})},pf=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"})})},mf=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"})})},gf=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"})})},bf=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"})})},vf=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"})})},xf=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"})})},Sf=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"})})},wf=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"})})},kf=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"})})},_f=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 ut(e,t={fontSize:16}){if(!e)return null;switch(e){case"arrow-left":return g.jsx(rf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return g.jsx(uf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return g.jsx(mf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return g.jsx(df,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return g.jsx(lf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return g.jsx(sf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return g.jsx(cf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return g.jsx(hf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return g.jsx(ff,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return g.jsx(pf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return g.jsx(vf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return g.jsx(Sf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return g.jsx(kf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down":return g.jsx(gf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left-double":return g.jsx(xf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return g.jsx(wf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return g.jsx(_f,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return g.jsx(bf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const $f=I(["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 no(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 Cf=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Af=x().regex(/^rgba?\([^\)]+\)$/i),yf=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Nf=re("transparent"),At=D([Cf,Af,yf,Nf]).nullable().optional(),Rf=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Ef=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),If=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Mf=D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),Tf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Pf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Of=C({style:C({backgroundColor:At,fontSize:f().min(0).optional().nullable(),fontFamily:$f,fontWeight:I(["bold","normal",...Ra]).optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable(),buttonTextAlign:I(["left","center","right"]).optional().nullable(),padding:Rf,margin:Ef}).optional().nullable(),props:C({buttonBackground:At,hoverBackground:At,hoverTextColor:At,borderRadius:Mf,borderWidth:If,borderColor:At,buttonTextColor:At,fullWidth:P().optional().nullable(),widthType:I(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:I(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:I(["fixed","fill","fit"]).optional().nullable(),width:f().min(0).optional().nullable(),widthUnit:I(["px","%"]).optional().nullable(),widthTablet:f().min(0).optional().nullable(),widthMobile:f().min(0).optional().nullable(),size:I(["x-small","small","large","medium"]).optional().nullable(),sizeTablet:I(["x-small","small","large","medium"]).optional().nullable(),sizeMobile:I(["x-small","small","large","medium"]).optional().nullable(),text:x().optional().nullable(),url:x().optional().nullable(),action:I(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:P().optional().nullable(),customAction:x().optional().nullable(),actionPayload:Lt(x(),an()).optional().nullable(),iconEnabled:P().optional().nullable(),iconName:x().optional().nullable(),iconAlignment:I(["left","right"]).optional().nullable(),ariaLabel:x().optional().nullable(),goToStep:x().optional().nullable(),postMessageEvent:x().optional().nullable(),animation:un,boxShadow:Vn}).optional().nullable(),responsive:Te});function xr(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 ge={text:"",url:"",fullWidth:!1,widthType:"fit",width:200,widthUnit:"px",size:"medium",borderRadius:4,borderColor:"",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:"",boxShadow:null};function Lf({style:e,props:t}){const o=`bh-${G.useId().replace(/:/g,"")}`,a=(t==null?void 0:t.text)??ge.text,i=(t==null?void 0:t.url)??ge.url,r=(t==null?void 0:t.fullWidth)??ge.fullWidth,l=(t==null?void 0:t.widthType)??ge.widthType,s=(t==null?void 0:t.width)??ge.width,c=(t==null?void 0:t.widthUnit)??ge.widthUnit,u=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,d=u??s,h=p??d,m=(t==null?void 0:t.widthTypeTablet)??l,b=(t==null?void 0:t.widthTypeMobile)??m,v=(t==null?void 0:t.size)??ge.size,k=(t==null?void 0:t.sizeTablet)??v,S=(t==null?void 0:t.sizeMobile)??k,$=l,w=s,_=(t==null?void 0:t.buttonTextColor)??ge.buttonTextColor,N=(t==null?void 0:t.buttonBackground)??ge.buttonBackground,A=(t==null?void 0:t.iconEnabled)??ge.iconEnabled,y=(t==null?void 0:t.iconName)??ge.iconName,R=(t==null?void 0:t.iconAlignment)??ge.iconAlignment,M=(t==null?void 0:t.ariaLabel)??null,T=typeof a=="string"&&a.trim().length>0,L=M&&M.trim().length>0?M:!T&&A&&y?y:void 0,H=(t==null?void 0:t.action)??ge.action,F=(t==null?void 0:t.openInNewTab)??ge.openInNewTab,O=((t==null?void 0:t.customAction)??ge.customAction)||H,q=(t==null?void 0:t.actionPayload)??ge.actionPayload,B=(t==null?void 0:t.goToStep)??ge.goToStep,Y=(t==null?void 0:t.postMessageEvent)??ge.postMessageEvent,de=q||(O==="goToStep"?{goToStep:B||""}:null)||(O==="postMessageEvent"?{postMessageEvent:Y||""}:null),oe=de?JSON.stringify(de):void 0,ee=(t==null?void 0:t.borderRadius)??ge.borderRadius,Z=(t==null?void 0:t.borderWidth)??ge.borderWidth,J=(t==null?void 0:t.borderColor)??ge.borderColor,Ee=(t==null?void 0:t.boxShadow)??ge.boxShadow,we=Yn(Ee),me=(t==null?void 0:t.hoverBackground)??null,ne=(t==null?void 0:t.hoverTextColor)??null,V=xr(v),U=_e=>typeof _e=="number"?`${_e}px`:`${_e.topLeft}px ${_e.topRight}px ${_e.bottomRight}px ${_e.bottomLeft}px`,X=(_e,ct)=>{if(typeof _e=="number")return`${Math.max(0,_e-ct)}px`;const Xn=Math.max(0,(_e.topLeft||0)-ct),Qn=Math.max(0,(_e.topRight||0)-ct),$t=Math.max(0,(_e.bottomRight||0)-ct),Ct=Math.max(0,(_e.bottomLeft||0)-ct);return`${Xn}px ${Qn}px ${$t}px ${Ct}px`},ye=J&&(J.includes("linear-gradient")||J.includes("radial-gradient")||J.includes("repeating-linear-gradient")),te=Z&&((Z.top??0)>0||(Z.right??0)>0||(Z.bottom??0)>0||(Z.left??0)>0),Q={top:(Z==null?void 0:Z.top)??0,right:(Z==null?void 0:Z.right)??0,bottom:(Z==null?void 0:Z.bottom)??0,left:(Z==null?void 0:Z.left)??0},Pe=(()=>{if(r)return"100%";switch($){case"fill":return"100%";case"fixed":return`${w}${c}`;case"fit":default:return"auto"}})(),ke=(e==null?void 0:e.buttonTextAlign)??(e==null?void 0:e.textAlign)??"center",it=ke==="center"?"center":ke==="right"?"flex-end":"flex-start",bt=()=>!J||J==="transparent"||!te?{border:"none"}:ye?{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:`${J} `,borderRadius:"0px"}:{borderTop:`${Q.top}px solid ${J}`,borderRight:`${Q.right}px solid ${J}`,borderBottom:`${Q.bottom}px solid ${J}`,borderLeft:`${Q.left}px solid ${J}`},Ne=N&&(N.includes("linear-gradient")||N.includes("radial-gradient")||N.includes("repeating-linear-gradient")),Se=_&&(_.includes("linear-gradient")||_.includes("radial-gradient")||_.includes("repeating-linear-gradient")),ie=(e==null?void 0:e.backgroundColor)&&(e.backgroundColor.includes("linear-gradient")||e.backgroundColor.includes("radial-gradient")||e.backgroundColor.includes("repeating-linear-gradient")),be={backgroundColor:ie?void 0:(e==null?void 0:e.backgroundColor)??void 0,backgroundImage:ie?(e==null?void 0:e.backgroundColor)??void 0:void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:Tf(e==null?void 0:e.padding),margin:Pf(e==null?void 0:e.margin)},Ie=bt(),lt=Se?{backgroundImage:_,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:_||void 0},Fe=Se?"transparent":Ne?void 0:N,st=Se?void 0:Ne?N:void 0,Me=(e==null?void 0:e.fontSize)??16,_t=`${Me}px`,Gt={fontSize:_t,fontFamily:no(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??Qt.REGULAR,backgroundColor:Fe,backgroundImage:st,borderRadius:ye?"0px":U(ee),...Ie,...ye&&te?{}:we,display:Pe==="100%"?"block":"inline-block",width:Pe,padding:`${V[0]}px ${V[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:it,lineHeight:"normal"},gn=ye&&te?g.jsx("div",{style:{display:Pe==="100%"?"block":"inline-block",padding:`${Q.top}px ${Q.right}px ${Q.bottom}px ${Q.left}px`,background:J,borderRadius:U(ee),width:Pe,boxSizing:"border-box",...we},children:g.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:X(ee,Math.max(Q.top,Q.right,Q.bottom,Q.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??Qt.REGULAR,fontFamily:no(e==null?void 0:e.fontFamily),backgroundImage:st??(Ne?N:"#fffff"),backgroundColor:Fe??(Ne?"#ffffff":N),textAlign:ke,textDecoration:"none",fontSize:_t,padding:`${V[0]}px ${V[1]}px`,boxSizing:"border-box",lineHeight:"normal"},"data-action":O,"data-action-payload":oe,"data-goto-step":O==="goToStep"&&B?B:void 0,"data-post-message-event":O==="postMessageEvent"&&Y?Y:void 0,type:"button","aria-label":L,children:[A&&y&&R==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":O,children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null,g.jsx("span",{style:{...lt,pointerEvents:"none"},"data-action":O,children:a}),A&&y&&R==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":O,children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null]})}):g.jsxs("button",{style:{cursor:"pointer",...Ie,...we,borderRadius:U(ee),width:Pe,fontWeight:(e==null?void 0:e.fontWeight)??Qt.REGULAR,fontFamily:no(e==null?void 0:e.fontFamily),backgroundColor:Fe??(Ne?"":N),backgroundImage:st??(Ne?N:""),textAlign:ke,textDecoration:"none",fontSize:_t,padding:`${V[0]}px ${V[1]}px`,boxSizing:"border-box",lineHeight:"normal"},"data-action":O,"data-action-payload":oe,"data-goto-step":O==="goToStep"&&B?B:void 0,"data-post-message-event":O==="postMessageEvent"&&Y?Y:void 0,type:"button","aria-label":L,children:[A&&y&&R==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":O,children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null,g.jsx("span",{style:{...lt,pointerEvents:"none"},"data-action":O,children:a}),A&&y&&R==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":O,children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null]}),ae=[];me&&ae.push(`background-color: ${me} !important; background-image: none !important;`),ne&&ae.push(`color: ${ne} !important;`);const le=ae.length>0?`#${o} a:hover, #${o} button:hover { ${ae.join(" ")} transition: background-color 150ms ease, color 150ms ease; } #${o} a:hover span, #${o} button:hover span { ${ne?`color: ${ne} !important; -webkit-text-fill-color: ${ne} !important;`:""} }`:null,Ge=(_e,ct,Xn,Qn)=>{const $t=[],Ct=r||ct==="fill"?"100%":ct==="fixed"?`${Xn}${c}`:"auto";$t.push(`width: ${Ct} !important;`,"max-width: 100% !important;"),$t.push(`display: ${Ct==="100%"?"block":"inline-block"} !important;`);const[Fa,rs]=xr(Qn);return $t.push(`padding: ${Fa}px ${rs}px !important;`),`${_e} { #${o} a, #${o} button { ${$t.join(" ")} } #${o} > div { width: ${Ct} !important; max-width: 100% !important; display: ${Ct==="100%"?"block":"inline-block"} !important; } }`},Qe=m!==l||k!==v||m==="fixed"&&d!==s,et=b!==l||S!==v||b==="fixed"&&h!==s,bn=Qe||et?[Qe?Ge(ot,m,d,k):"",et?Ge(Oe,b,h,S):""].filter(Boolean).join(`
|
|
65
|
+
`):null;if(H!=="link")return g.jsxs("div",{id:o,className:"button-block",style:be,children:[le&&g.jsx("style",{children:le}),bn&&g.jsx("style",{children:bn}),gn]});const as=ye&&te?g.jsx("div",{style:{display:Pe==="100%"?"block":"inline-block",padding:`${Q.top}px ${Q.right}px ${Q.bottom}px ${Q.left}px`,background:J,borderRadius:U(ee),width:Pe,boxSizing:"border-box",...we},children:g.jsxs("a",{href:i,style:{...Gt,border:"none",borderRadius:X(ee,Math.max(Q.top,Q.right,Q.bottom,Q.left)),width:"100%",display:"inline-flex",alignItems:"center",justifyContent:it},target:F?"_blank":void 0,rel:F?"noopener noreferrer":void 0,"aria-label":L,children:[A&&y&&R==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null,g.jsx("span",{style:{...lt,pointerEvents:"none"},children:a}),A&&y&&R==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null]})}):g.jsxs("a",{href:i,style:{...Gt,borderRadius:U(ee),display:"inline-flex",alignItems:"center",justifyContent:it},target:F?"_blank":void 0,rel:F?"noopener noreferrer":void 0,"aria-label":L,children:[A&&y&&R==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null,g.jsx("span",{style:{...lt,pointerEvents:"none"},children:a}),A&&y&&R==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null]});return g.jsxs("div",{id:o,className:"button-block",style:be,children:[le&&g.jsx("style",{children:le}),bn&&g.jsx("style",{children:bn}),as]})}const zf=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),jf=x().regex(/^rgba?\([^\)]+\)$/i),Bf=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Df=re("transparent"),Sr=D([zf,jf,Bf,Df]).nullable().optional(),Hf=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Ff=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Gf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Uf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Zf=C({style:C({backgroundColor:Sr,padding:Hf,margin:Ff}).optional().nullable(),props:C({lineColor:Sr,lineHeight:f().optional().nullable()}).optional().nullable()}),wr={lineHeight:1,lineColor:"#333333"};function Wf({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??wr.lineHeight,o=(t==null?void 0:t.lineColor)??wr.lineColor,a={padding:Gf(e==null?void 0:e.padding),margin:Uf(e==null?void 0:e.margin),backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,"--ahd-divider-thickness":`${n}px`};return g.jsx("div",{className:"divider-block",style:a,children:g.jsx("hr",{style:{width:"100%",border:"none",borderTopStyle:"solid",borderTopColor:o,borderTopWidth:`var(--ahd-divider-thickness, ${n}px)`,margin:0}})})}const qf=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Vf=x().regex(/^rgba?\([^\)]+\)$/i),Yf=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Kf=re("transparent"),oo=D([qf,Vf,Yf,Kf]).nullable().optional(),Jf=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Xf=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Qf=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,tp=I(["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 np(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 op=C({props:C({text:x().optional().nullable(),level:I(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:I(["text","link"]).optional().nullable(),url:x().optional().nullable(),openInNewTab:P().optional().nullable()}).optional().nullable(),style:C({color:oo,textColor:oo,backgroundColor:oo,fontFamily:tp,fontSize:f().optional().nullable(),lineClamp:f().int().gte(0).optional().nullable(),fontWeight:I(["bold","normal",...Ra]).optional().nullable(),fontStyle:I(["italic","normal"]).optional().nullable(),textDecoration:I(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable(),padding:Jf,margin:Xf}).optional().nullable()}),Ut={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};function ap({props:e,style:t}){const n=(e==null?void 0:e.level)??Ut.level,o=(e==null?void 0:e.text)??Ut.text,a=(e==null?void 0:e.linkType)??Ut.linkType,i=(e==null?void 0:e.url)??Ut.url,r=(e==null?void 0:e.openInNewTab)??Ut.openInNewTab,l=a==="link"&&i,s=(t==null?void 0:t.fontSize)??rp(n),c=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),u=c&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(c),p=(t==null?void 0:t.textDecoration)??"none",d=u&&(p==="underline"||p==="underline line-through"),h=u&&(p==="line-through"||p==="underline line-through"),m=t==null?void 0:t.lineClamp,b=!!(m&&m>0),v=b?{display:"-webkit-box",WebkitLineClamp:m,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},k={fontWeight:(t==null?void 0:t.fontWeight)??Qt.BOLD,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:u?"none":p,margin:0,fontFamily:np(t==null?void 0:t.fontFamily),fontSize:s,...v},S=u?{lineHeight:"normal ",backgroundImage:c,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",position:"relative",...b?{}:{display:"inline-block"},...d?{paddingBottom:"0.08em"}:{}}:{color:c??void 0},$={position:"absolute",left:0,right:0,height:"0.08em",backgroundImage:c??void 0,pointerEvents:"none"},w={...$,bottom:0},_={...$,top:"50%",transform:"translateY(-50%)"},N=(t==null?void 0:t.backgroundColor)??void 0,A=typeof N=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(N),y={padding:Qf(t==null?void 0:t.padding),margin:ep(t==null?void 0:t.margin),display:"block",width:"100%",boxSizing:"border-box",textAlign:(t==null?void 0:t.textAlign)??void 0,wordBreak:"break-word",overflowWrap:"break-word",...A?{backgroundImage:N,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:N}},R=n,M=g.jsx(R,{className:"heading-block",style:k,children:g.jsxs("span",{style:S,children:[o,d?g.jsx("span",{style:w}):null,h?g.jsx("span",{style:_}):null]})});return g.jsx("div",{className:"heading-block-wrapper",style:y,children:l?g.jsx("a",{href:i,target:r?"_blank":void 0,rel:r?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!u&&c?c:void 0},children:M}):M})}function rp(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 rl="comm",il="rule",ll="decl",ip="@import",lp="@namespace",sp="@keyframes",cp="@layer",up=Math.abs,en=String.fromCharCode;function sl(e){return e.trim()}function Fo(e,t,n){return e.replace(t,n)}function Tt(e,t){return e.charCodeAt(t)|0}function zt(e,t,n){return e.slice(t,n)}function Je(e){return e.length}function dp(e){return e.length}function kn(e,t){return t.push(e),e}var Kn=1,jt=1,cl=0,Le=0,xe=0,Dt="";function Ea(e,t,n,o,a,i,r,l){return{value:e,root:t,parent:n,type:o,props:a,children:i,line:Kn,column:jt,length:r,return:"",siblings:l}}function hp(){return xe}function fp(){return xe=Le>0?Tt(Dt,--Le):0,jt--,xe===10&&(jt=1,Kn--),xe}function We(){return xe=Le<cl?Tt(Dt,Le++):0,jt++,xe===10&&(jt=1,Kn++),xe}function ft(){return Tt(Dt,Le)}function Rn(){return Le}function Jn(e,t){return zt(Dt,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 pp(e){return Kn=jt=1,cl=Je(Dt=e),Le=0,[]}function mp(e){return Dt="",e}function ao(e){return sl(Jn(Le-1,Go(e===91?e+2:e===40?e+1:e)))}function gp(e){for(;(xe=ft())&&xe<33;)We();return rn(e)>2||rn(xe)>3?"":" "}function bp(e,t){for(;--t&&We()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Jn(e,Rn()+(t<6&&ft()==32&&We()==32))}function Go(e){for(;We();)switch(xe){case e:return Le;case 34:case 39:e!==34&&e!==39&&Go(xe);break;case 40:e===41&&Go(e);break;case 92:We();break}return Le}function vp(e,t){for(;We()&&e+xe!==57;)if(e+xe===84&&ft()===47)break;return"/*"+Jn(t,Le-1)+"*"+en(e===47?e:We())}function xp(e){for(;!rn(ft());)We();return Jn(e,Le)}function Sp(e){return mp(En("",null,null,null,[""],e=pp(e),0,[0],e))}function En(e,t,n,o,a,i,r,l,s){for(var c=0,u=0,p=r,d=0,h=0,m=0,b=1,v=1,k=1,S=0,$=0,w="",_=a,N=i,A=o,y=w;v;)switch(m=$,$=We()){case 40:m!=108&&Tt(y,p-1)==58?(S++,y+="("):y+=ao($);break;case 41:S--,y+=")";break;case 34:case 39:case 91:y+=ao($);break;case 9:case 10:case 13:case 32:if(S>0){y+=en($);break}y+=gp(m);break;case 92:y+=bp(Rn()-1,7);continue;case 47:switch(ft()){case 42:case 47:kn(wp(vp(We(),Rn()),t,n,s),s),(rn(m||1)==5||rn(ft()||1)==5)&&Je(y)&&zt(y,-1,void 0)!==" "&&(y+=" ");break;default:y+="/"}break;case 123*b:l[c++]=Je(y)*k;case 125*b:case 59:case 0:if(S>0&&$){y+=en($);break}switch($){case 0:case 125:v=0;case 59+u:k==-1&&(y=Fo(y,/\f/g,"")),h>0&&(Je(y)-p||b===0)&&kn(h>32?_r(y+";",o,n,p-1,s):_r(Fo(y," ","")+";",o,n,p-2,s),s);break;case 59:y+=";";default:if(kn(A=kr(y,t,n,c,u,a,l,w,_=[],N=[],p,i),i),$===123)if(u===0)En(y,t,A,A,_,i,p,l,N);else{switch(d){case 99:if(Tt(y,3)===110)break;case 108:if(Tt(y,2)===97)break;default:u=0;case 100:case 109:case 115:}u?En(e,A,A,o&&kn(kr(e,A,A,0,0,a,l,w,a,_=[],p,N),N),a,N,p,l,o?_:N):En(y,A,A,A,[""],N,0,l,N)}}c=u=h=0,b=k=1,w=y="",p=r;break;case 58:p=1+Je(y),h=m;default:if(b<1){if($==123)--b;else if($==125&&b++==0&&fp()==125)continue}switch(y+=en($),$*b){case 38:k=u>0?1:(y+="\f",-1);break;case 44:if(S>0)break;l[c++]=(Je(y)-1)*k,k=1;break;case 64:ft()===45&&(y+=ao(We())),d=ft(),u=p=Je(w=y+=xp(Rn())),$++;break;case 45:m===45&&Je(y)==2&&(b=0)}}return i}function kr(e,t,n,o,a,i,r,l,s,c,u,p){for(var d=a-1,h=a===0?i:[""],m=dp(h),b=0,v=0,k=0;b<o;++b)for(var S=0,$=zt(e,d+1,d=up(v=r[b])),w=e;S<m;++S)(w=sl(v>0?h[S]+" "+$:Fo($,/&\f/g,h[S])))&&(s[k++]=w);return Ea(e,t,n,a===0?il:l,s,c,u,p)}function wp(e,t,n,o){return Ea(e,t,n,rl,en(hp()),zt(e,2,-2),0,o)}function _r(e,t,n,o,a){return Ea(e,t,n,ll,zt(e,0,o),zt(e,o+1,-1),o,a)}function Uo(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function kp(e,t,n,o){switch(e.type){case cp:if(e.children.length)break;case ip:case lp:case ll:return e.return=e.return||e.value;case rl:return"";case sp:return e.return=e.value+"{"+Uo(e.children,o)+"}";case il:if(!Je(e.value=e.props.join(",")))return""}return Je(n=Uo(e.children,o))?e.return=e.value+"{"+n+"}":""}const _p=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),$p=x().regex(/^rgba?\([^\)]+\)$/i),Cp=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Ap=re("transparent"),$r=D([_p,$p,Cp,Ap]).nullable().optional(),yp=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Np=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Rp=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ep=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ip=I(["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 Mp(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 Tp=C({style:C({color:$r,backgroundColor:$r,fontFamily:Ip,fontSize:f().min(0).optional().nullable(),textAlign:I(["left","right","center"]).optional().nullable(),padding:yp,margin:Np}).optional().nullable(),props:C({contents:x().optional().nullable()}).optional().nullable()}),Pp=/<style[^>]*>([\s\S]*?)<\/style>/gi;function Op(e,t){let n="";const o=e.replace(Pp,(i,r)=>(n+=r,""));if(!n.trim())return{markup:o,css:""};const a=Uo(Sp(`[${t}]{${n}}`),kp);return{markup:o,css:a}}function Lp({style:e,props:t}){const n=t==null?void 0:t.contents,[o,a]=G.useState(!1),r=`data-html-scope-${G.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=G.useMemo(()=>n?Op(n,r):{markup:"",css:""},[n,r]),c={color:(e==null?void 0:e.color)??void 0,backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,fontFamily:Mp(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:Rp(e==null?void 0:e.padding),margin:Ep(e==null?void 0:e.margin)},u=G.useRef(null);G.useEffect(()=>{const b=u.current;if(!b)return;b.querySelectorAll("iframe").forEach(k=>{try{k.style.pointerEvents=o?"auto":"none"}catch{}})},[n,o]);const p=b=>{o||a(!0)},d=()=>{a(!1)},h=`[${r}] pre,[${r}] 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:h}})});const m=`<style>${h}${s}</style>${l}`;return g.jsx("div",{ref:u,className:"html-block",style:c,onClick:p,onBlur:d,tabIndex:0,[r]:"",dangerouslySetInnerHTML:{__html:m}})}const Ia=C({enabled:P(),scale:f().min(1).max(1.5).optional().nullable(),duration:f().min(0).max(3e3).optional().nullable(),easing:I(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable(),zp=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),jp=x().regex(/^rgba?\([^\)]+\)$/i),Bp=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Dp=re("transparent"),Hp=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Fp=D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),ro=D([zp,jp,Bp,Dp]).nullable().optional(),Gp=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Up=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Zp(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 Wp(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)||1}px ${(t==null?void 0:t.right)||1}px ${(t==null?void 0:t.bottom)||1}px ${(t==null?void 0:t.left)||1}px`}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}:{}}const qp=C({style:C({padding:Hp,backgroundColor:ro.default(null),textAlign:I(["center","left","right"]).optional().nullable()}).optional().nullable(),props:C({width:f().optional().nullable(),widthUnit:I(["px","%"]).optional().nullable(),widthTablet:f().positive().optional().nullable(),widthMobile:f().positive().optional().nullable(),height:f().optional().nullable(),heightTablet:f().positive().optional().nullable(),heightMobile:f().positive().optional().nullable(),widthType:I(["fixed","fill","fit"]).optional().nullable(),url:x().optional().nullable(),urlTablet:x().optional().nullable(),urlMobile:x().optional().nullable(),alt:x().optional().nullable(),decorative:P().optional().nullable(),linkHref:x().optional().nullable(),contentAlignment:I(["top","middle","bottom"]).optional().nullable(),borderRadius:Fp,borderColor:ro.default(null),borderWidth:Gp,rotation:f().min(0).max(360).optional().nullable(),rotationTablet:f().min(0).max(360).optional().nullable(),rotationMobile:f().min(0).max(360).optional().nullable(),iconName:x().optional().nullable(),iconFillColor:ro.default(null),animation:un,hoverEffect:Ia,boxShadow:Vn}).optional().nullable()}),$e={widthType:"fit",width:300,widthUnit:"px",height:null,url:"",alt:"",decorative:!1,linkHref:null,contentAlignment:"middle",borderRadius:0,borderColor:null,borderWidth:null,rotation:0,hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"},boxShadow:null};let Vp=0;function Yp({style:e,props:t}){const n=G.useMemo(()=>`ahd-img-${++Vp}`,[]),o=(e==null?void 0:e.textAlign)??void 0,a=o==="center"?"center":o==="right"?"flex-end":"flex-start",i={padding:Up(e==null?void 0:e.padding),...Zp(e==null?void 0:e.backgroundColor),display:"flex",justifyContent:a,width:"100%",boxSizing:"border-box"},r=(t==null?void 0:t.linkHref)??$e.linkHref,l=(t==null?void 0:t.widthType)??$e.widthType,s=(t==null?void 0:t.width)??$e.width,c=(t==null?void 0:t.widthUnit)??$e.widthUnit,u=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,d=u??s,h=p??d,m=(t==null?void 0:t.height)??$e.height,b=(t==null?void 0:t.heightTablet)??null,v=(t==null?void 0:t.heightMobile)??null,k=b??m,S=v??k,$=m,w=(t==null?void 0:t.url)??$e.url,_=(t==null?void 0:t.urlTablet)??null,N=(t==null?void 0:t.urlMobile)??null,A=!r&&((t==null?void 0:t.decorative)??$e.decorative),y=A?"":(t==null?void 0:t.alt)??$e.alt,R=A?{role:"presentation","aria-hidden":!0}:{},M=(t==null?void 0:t.contentAlignment)??$e.contentAlignment,T=(t==null?void 0:t.borderRadius)??$e.borderRadius,L=(t==null?void 0:t.borderColor)??$e.borderColor,H=(t==null?void 0:t.borderWidth)??$e.borderWidth,F=(t==null?void 0:t.boxShadow)??$e.boxShadow,j=Yn(F),O=(t==null?void 0:t.rotation)??$e.rotation,q=(t==null?void 0:t.rotationTablet)??null,B=(t==null?void 0:t.rotationMobile)??null,Y=q??O,de=B??Y,oe=ie=>{const be=ie*Math.PI/180,Ie=ie%180!==0?1/(Math.abs(Math.cos(be))+Math.abs(Math.sin(be))):1;return`rotate(${ie}deg) scale(${Ie})`},ee=O,Z=ee?{transform:oe(ee),transformOrigin:"center"}:{},Ee=q!=null||B!=null?`
|
|
66
66
|
${ot} { .${n} img, .${n} > div { transform: ${oe(Y)} !important; transform-origin: center !important; } }
|
|
67
67
|
${Oe} { .${n} img, .${n} > div { transform: ${oe(de)} !important; transform-origin: center !important; } }
|
|
68
68
|
`.trim():null,we=Wp(L,H),me=ie=>typeof ie=="number"?`${ie}px`:`${ie.topLeft}px ${ie.topRight}px ${ie.bottomRight}px ${ie.bottomLeft}px`,ne=(ie,be)=>{const Ie=Math.max((be==null?void 0:be.top)||0,(be==null?void 0:be.right)||0,(be==null?void 0:be.bottom)||0,(be==null?void 0:be.left)||0);if(typeof ie=="number")return`${Math.max(0,ie-Ie)}px`;const Ft=Math.max(0,(ie.topLeft||0)-Ie),lt=Math.max(0,(ie.topRight||0)-Ie),Fe=Math.max(0,(ie.bottomRight||0)-Ie),st=Math.max(0,(ie.bottomLeft||0)-Ie);return`${Ft}px ${lt}px ${Fe}px ${st}px`},U=(()=>{switch(l){case"fill":return"100%";case"fixed":return s;case"fit":default:return}})(),X=l==="fixed"?`${s}${c}`:void 0,ye=w,te=l==="fixed"?`
|
|
@@ -182,7 +182,7 @@ ul[data-mll="bullet-arrow"] ul ul > li::before { content: "▪"; }
|
|
|
182
182
|
${Em}`}),g.jsx("div",{dangerouslySetInnerHTML:{__html:i}})]})}const Um=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Zm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Wm=C({style:C({padding:Um,backgroundColor:x().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:I(["center","left","right"]).optional().nullable()}).optional().nullable(),props:C({width:f().optional().nullable(),height:f().optional().nullable(),widthTablet:D([f(),x()]).optional().nullable(),widthMobile:D([f(),x()]).optional().nullable(),heightTablet:D([f(),x()]).optional().nullable(),heightMobile:D([f(),x()]).optional().nullable(),url:x().optional().nullable(),alt:x().optional().nullable(),linkHref:x().optional().nullable(),contentAlignment:I(["top","middle","bottom"]).optional().nullable()}).optional().nullable()});let qm=0;function Vm({style:e,props:t}){const n=`ahd-youtube-url-${++qm}`,o={padding:Zm(e==null?void 0:e.padding),backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0},a=(t==null?void 0:t.linkHref)??null,i=(t==null?void 0:t.width)??void 0,r=(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,p=l??i,d=s??p,h=c??r,m=u??h,b=i,v=r,k=w=>w==null?void 0:typeof w=="number"?`${w}px`:w,S=`
|
|
183
183
|
${ot} { .${n} video { ${k(p)?`width: ${k(p)} !important;`:""} ${k(h)?`height: ${k(h)} !important;`:""} max-width: 100% !important; } }
|
|
184
184
|
${Oe} { .${n} video { ${k(d)?`width: ${k(d)} !important;`:""} ${k(m)?`height: ${k(m)} !important;`:""} max-width: 100% !important; } }
|
|
185
|
-
`.trim(),$=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:v,style:{width:b,height:v,outline:"none",border:"none",textDecoration:"none",verticalAlign:(t==null?void 0:t.contentAlignment)??"middle",display:"inline-block",maxWidth:"100%"}});return a?g.jsxs("div",{className:`youtube-url-block ${n}`,style:o,children:[S&&g.jsx("style",{dangerouslySetInnerHTML:{__html:S}}),g.jsx("a",{href:a,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:$})]}):g.jsxs("div",{className:`youtube-url-block ${n}`,style:o,children:[S&&g.jsx("style",{dangerouslySetInnerHTML:{__html:S}}),$]})}const Ym=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Km=C({responsive:Te,style:C({padding:Ym,textAlign:I(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({src:x().optional().nullable(),width:x().optional().nullable(),height:x().optional().nullable(),title:x().optional().nullable(),allowFullscreen:P().optional().nullable()}).optional().nullable()}),Jm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Xm({style:e,props:t}){const n=(t==null?void 0:t.src)??"",o=(t==null?void 0:t.width)??"100%",a=t==null?void 0:t.height,i=!a||/^\s*(0|0px|100vh)\s*$/i.test(a)?"800px":a,r=(t==null?void 0:t.title)??"Embedded content",l=(t==null?void 0:t.allowFullscreen)??!0,s=G.useRef(null),c={padding:Jm(e==null?void 0:e.padding),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"},u={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:c,children:g.jsx("iframe",{ref:s,src:n,title:r,style:u,allowFullScreen:l})}):g.jsx("div",{className:"iframe-block",style:{...c,backgroundColor:"#F5F5F5",padding:"24px",textAlign:"center",color:"#888",fontSize:"14px"},children:"IFrame — enter a URL in the panel"})}const Qm=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),eg=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),tg=C({responsive:Te,style:C({padding:Qm,margin:eg,textAlign:I(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({src:x().optional().nullable(),width:x().optional().nullable(),height:x().optional().nullable(),title:x().optional().nullable(),allowFullscreen:P().optional().nullable()}).optional().nullable()}),ng=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:a=0}=e;return`${t}px ${n}px ${o}px ${a}px`},og=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:a=0}=e;return`${t}px ${n}px ${o}px ${a}px`},ag=({props:e,style:t})=>{var u,p;const{src:n,width:o,height:a,title:i,allowFullscreen:r=!0}=e??{};if(!n)return g.jsx(g.Fragment,{});const l=(((u=t==null?void 0:t.margin)==null?void 0:u.left)??0)+(((p=t==null?void 0:t.margin)==null?void 0:p.right)??0),s=t??{},c={width:l>0?`calc(100% - ${l}px)`:"100%",padding:ng(s.padding),margin:og(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:r??!0,style:{width:`var(--ahd-calendly-width,${o||"100%"})`,height:`var(--ahd-calendly-height,${a||"800px"})`,border:"none",display:"inline-block",verticalAlign:"top"},loading:"lazy"})})};var rg=Object.defineProperty,Ar=Object.getOwnPropertySymbols,ig=Object.prototype.hasOwnProperty,lg=Object.prototype.propertyIsEnumerable,yr=(e,t,n)=>t in e?rg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sg=(e,t)=>{for(var n in t||(t={}))ig.call(t,n)&&yr(e,n,t[n]);if(Ar)for(var n of Ar(t))lg.call(t,n)&&yr(e,n,t[n]);return e};function cg(e){return function({type:n,data:o}){const a=e[n].Component;return G.createElement(a,sg({},o))}}function ug(e){const t=Object.keys(e).map(n=>C({type:re(n),data:e[n].schema}));return
|
|
185
|
+
`.trim(),$=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:v,style:{width:b,height:v,outline:"none",border:"none",textDecoration:"none",verticalAlign:(t==null?void 0:t.contentAlignment)??"middle",display:"inline-block",maxWidth:"100%"}});return a?g.jsxs("div",{className:`youtube-url-block ${n}`,style:o,children:[S&&g.jsx("style",{dangerouslySetInnerHTML:{__html:S}}),g.jsx("a",{href:a,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:$})]}):g.jsxs("div",{className:`youtube-url-block ${n}`,style:o,children:[S&&g.jsx("style",{dangerouslySetInnerHTML:{__html:S}}),$]})}const Ym=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Km=C({responsive:Te,style:C({padding:Ym,textAlign:I(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({src:x().optional().nullable(),width:x().optional().nullable(),height:x().optional().nullable(),title:x().optional().nullable(),allowFullscreen:P().optional().nullable()}).optional().nullable()}),Jm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Xm({style:e,props:t}){const n=(t==null?void 0:t.src)??"",o=(t==null?void 0:t.width)??"100%",a=t==null?void 0:t.height,i=!a||/^\s*(0|0px|100vh)\s*$/i.test(a)?"800px":a,r=(t==null?void 0:t.title)??"Embedded content",l=(t==null?void 0:t.allowFullscreen)??!0,s=G.useRef(null),c={padding:Jm(e==null?void 0:e.padding),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"},u={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:c,children:g.jsx("iframe",{ref:s,src:n,title:r,style:u,allowFullScreen:l})}):g.jsx("div",{className:"iframe-block",style:{...c,backgroundColor:"#F5F5F5",padding:"24px",textAlign:"center",color:"#888",fontSize:"14px"},children:"IFrame — enter a URL in the panel"})}const Qm=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),eg=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),tg=C({responsive:Te,style:C({padding:Qm,margin:eg,textAlign:I(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({src:x().optional().nullable(),width:x().optional().nullable(),height:x().optional().nullable(),title:x().optional().nullable(),allowFullscreen:P().optional().nullable()}).optional().nullable()}),ng=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:a=0}=e;return`${t}px ${n}px ${o}px ${a}px`},og=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:a=0}=e;return`${t}px ${n}px ${o}px ${a}px`},ag=({props:e,style:t})=>{var u,p;const{src:n,width:o,height:a,title:i,allowFullscreen:r=!0}=e??{};if(!n)return g.jsx(g.Fragment,{});const l=(((u=t==null?void 0:t.margin)==null?void 0:u.left)??0)+(((p=t==null?void 0:t.margin)==null?void 0:p.right)??0),s=t??{},c={width:l>0?`calc(100% - ${l}px)`:"100%",padding:ng(s.padding),margin:og(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:r??!0,style:{width:`var(--ahd-calendly-width,${o||"100%"})`,height:`var(--ahd-calendly-height,${a||"800px"})`,border:"none",display:"inline-block",verticalAlign:"top"},loading:"lazy"})})};var rg=Object.defineProperty,Ar=Object.getOwnPropertySymbols,ig=Object.prototype.hasOwnProperty,lg=Object.prototype.propertyIsEnumerable,yr=(e,t,n)=>t in e?rg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sg=(e,t)=>{for(var n in t||(t={}))ig.call(t,n)&&yr(e,n,t[n]);if(Ar)for(var n of Ar(t))lg.call(t,n)&&yr(e,n,t[n]);return e};function cg(e){return function({type:n,data:o}){const a=e[n].Component;return G.createElement(a,sg({},o))}}function ug(e){const t=Object.keys(e).map(n=>C({type:re(n),data:e[n].schema}));return Eh("type",t).transform(n=>n)}const dg=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),hg=x().regex(/^rgba?\([^\)]+\)$/i),fg=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),pg=re("transparent"),mg=D([dg,hg,fg,pg]).nullable().optional(),gg=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),bg=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),lo=Xi([f().optional().nullish(),f().optional().nullish(),f().optional().nullish(),f().optional().nullish(),f().optional().nullish()]).optional().nullable(),so=I(["fixed","fill","fit"]).optional().nullable(),vg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,xg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,ul=C({style:C({backgroundColor:mg,padding:gg,margin:bg}).optional().nullable(),props:C({widthType:so,widthTypeTablet:so,widthTypeMobile:so,fixedWidths:lo,fixedWidthsTablet:lo,fixedWidthsMobile:lo,columnsCount:D([re(2),re(3),re(4),re(5)]).optional().nullable(),columnsGap:f().optional().nullable(),columnsGapTablet:f().optional().nullable(),columnsGapMobile:f().optional().nullable(),columnsDirection:I(["horizontal","vertical"]).optional().nullable(),columnsDirectionTablet:I(["horizontal","vertical"]).optional().nullable(),columnsDirectionMobile:I(["horizontal","vertical"]).optional().nullable(),contentAlignment:I(["top","middle","bottom"]).optional().nullable(),contentAlignmentTablet:I(["top","middle","bottom"]).optional().nullable(),contentAlignmentMobile:I(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),St={columnsCount:2,columnsGap:0,columnsDirection:"horizontal",contentAlignment:"middle",widthType:"fill"};function Nr(e){return`${e} table, ${e} tbody, ${e} tr, ${e} td { display: block !important; width: 100% !important; }
|
|
186
186
|
${e} table { table-layout: auto !important; }
|
|
187
187
|
${e} td { box-sizing: border-box; padding-left: 0 !important; padding-right: 0 !important; vertical-align: top !important; }
|
|
188
188
|
${e} td + td { margin-top: var(--columns-gap, 0px) !important; }`}function Rr(e){return`${e} table { display: table !important; table-layout: fixed !important; }
|
|
@@ -203,7 +203,7 @@ ${e} td + td { margin-top: 0 !important; }`}function Er(e,t,n,o,a,i){const r=[];
|
|
|
203
203
|
${t.mobileVertical?"":Er(n,t.columnsCount,t.mobileGap,t.mobileWidthType,t.mobileFixedWidths)}
|
|
204
204
|
${o(t.mobileAlign,t.mobileVertical)}
|
|
205
205
|
}
|
|
206
|
-
`.trim()}let wg=0;function kg({style:e,columns:t,props:n}){const o=(n==null?void 0:n.widthType)??St.widthType,a=(n==null?void 0:n.widthTypeTablet)??o,i=(n==null?void 0:n.widthTypeMobile)??a,r=n==null?void 0:n.fixedWidths,l=(n==null?void 0:n.fixedWidthsTablet)??r,s=(n==null?void 0:n.fixedWidthsMobile)??l,c=(n==null?void 0:n.columnsGap)??St.columnsGap,u=(n==null?void 0:n.columnsGapTablet)??c,p=(n==null?void 0:n.columnsGapMobile)??u,d=(n==null?void 0:n.columnsDirection)??St.columnsDirection,h=(n==null?void 0:n.columnsDirectionTablet)??d,m=(n==null?void 0:n.columnsDirectionMobile)??h,b=(n==null?void 0:n.contentAlignment)??St.contentAlignment,v=(n==null?void 0:n.contentAlignmentTablet)??b,k=(n==null?void 0:n.contentAlignmentMobile)??v,S=(n==null?void 0:n.columnsCount)??St.columnsCount,$=o,w=r,_=c,N=d,y={widthType:$,columnsCount:S,columnsGap:_,columnsDirection:N,contentAlignment:b,fixedWidths:w},R=N==="vertical",M=G.useMemo(()=>`ahd-cc-${wg+=1}`,[]),T=Sg(M,{tabletVertical:h==="vertical",mobileVertical:m==="vertical",columnsCount:S,tabletGap:u,mobileGap:p,tabletWidthType:a,mobileWidthType:i,tabletFixedWidths:l,mobileFixedWidths:s,tabletAlign:v,mobileAlign:k}),L={background:(e==null?void 0:e.backgroundColor)??void 0,padding:vg(e==null?void 0:e.padding),margin:xg(e==null?void 0:e.margin),"--columns-gap":`${_}px`};return g.jsxs("div",{className:`columns-container ${M}${R?" is-stacked":""}`,style:L,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:T}}),g.jsx("table",{role:"presentation","aria-hidden":"false",align:"center",width:"100%",cellPadding:"0",border:0,style:{tableLayout:R||$==="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(Wt,{index:0,props:y,columns:t}),g.jsx(Wt,{index:1,props:y,columns:t}),g.jsx(Wt,{index:2,props:y,columns:t}),g.jsx(Wt,{index:3,props:y,columns:t}),g.jsx(Wt,{index:4,props:y,columns:t})]})})})]})}function Wt({index:e,props:t,columns:n}){var p;const o=(t==null?void 0:t.columnsCount)??St.columnsCount;if(e>=o)return null;const a=t.columnsDirection==="vertical",i=a?0:_g(e,t),r=a?0:$g(e,t),l=(p=t.fixedWidths)==null?void 0:p[e],s={boxSizing:a?"border-box":"content-box",verticalAlign:a?"top":(t==null?void 0:t.contentAlignment)??St.contentAlignment,paddingLeft:i?`${i}px`:0,paddingRight:r?`${r}px`:0,width:t.widthType==="fixed"&&!a&&l!=null?`${l}px`:void 0,...a?{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 _g(e,{columnsGap:t}){return e===0?0:t/2}function $g(e,{columnsGap:t,columnsCount:n}){return e===n-1?0:t/2}const Cg=
|
|
206
|
+
`.trim()}let wg=0;function kg({style:e,columns:t,props:n}){const o=(n==null?void 0:n.widthType)??St.widthType,a=(n==null?void 0:n.widthTypeTablet)??o,i=(n==null?void 0:n.widthTypeMobile)??a,r=n==null?void 0:n.fixedWidths,l=(n==null?void 0:n.fixedWidthsTablet)??r,s=(n==null?void 0:n.fixedWidthsMobile)??l,c=(n==null?void 0:n.columnsGap)??St.columnsGap,u=(n==null?void 0:n.columnsGapTablet)??c,p=(n==null?void 0:n.columnsGapMobile)??u,d=(n==null?void 0:n.columnsDirection)??St.columnsDirection,h=(n==null?void 0:n.columnsDirectionTablet)??d,m=(n==null?void 0:n.columnsDirectionMobile)??h,b=(n==null?void 0:n.contentAlignment)??St.contentAlignment,v=(n==null?void 0:n.contentAlignmentTablet)??b,k=(n==null?void 0:n.contentAlignmentMobile)??v,S=(n==null?void 0:n.columnsCount)??St.columnsCount,$=o,w=r,_=c,N=d,y={widthType:$,columnsCount:S,columnsGap:_,columnsDirection:N,contentAlignment:b,fixedWidths:w},R=N==="vertical",M=G.useMemo(()=>`ahd-cc-${wg+=1}`,[]),T=Sg(M,{tabletVertical:h==="vertical",mobileVertical:m==="vertical",columnsCount:S,tabletGap:u,mobileGap:p,tabletWidthType:a,mobileWidthType:i,tabletFixedWidths:l,mobileFixedWidths:s,tabletAlign:v,mobileAlign:k}),L={background:(e==null?void 0:e.backgroundColor)??void 0,padding:vg(e==null?void 0:e.padding),margin:xg(e==null?void 0:e.margin),"--columns-gap":`${_}px`};return g.jsxs("div",{className:`columns-container ${M}${R?" is-stacked":""}`,style:L,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:T}}),g.jsx("table",{role:"presentation","aria-hidden":"false",align:"center",width:"100%",cellPadding:"0",border:0,style:{tableLayout:R||$==="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(Wt,{index:0,props:y,columns:t}),g.jsx(Wt,{index:1,props:y,columns:t}),g.jsx(Wt,{index:2,props:y,columns:t}),g.jsx(Wt,{index:3,props:y,columns:t}),g.jsx(Wt,{index:4,props:y,columns:t})]})})})]})}function Wt({index:e,props:t,columns:n}){var p;const o=(t==null?void 0:t.columnsCount)??St.columnsCount;if(e>=o)return null;const a=t.columnsDirection==="vertical",i=a?0:_g(e,t),r=a?0:$g(e,t),l=(p=t.fixedWidths)==null?void 0:p[e],s={boxSizing:a?"border-box":"content-box",verticalAlign:a?"top":(t==null?void 0:t.contentAlignment)??St.contentAlignment,paddingLeft:i?`${i}px`:0,paddingRight:r?`${r}px`:0,width:t.widthType==="fixed"&&!a&&l!=null?`${l}px`:void 0,...a?{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 _g(e,{columnsGap:t}){return e===0?0:t/2}function $g(e,{columnsGap:t,columnsCount:n}){return e===n-1?0:t/2}const Cg=ul.shape.props.unwrap().unwrap().shape,Ag=ul.shape.style.unwrap().unwrap().shape,yg=C({style:C({...Ag,borderRadius:D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),borderColor:x().optional().nullable(),borderWidth:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable()}).optional().nullable(),props:C({...Cg,columns:Xi([C({childrenIds:W(x())}),C({childrenIds:W(x())}),C({childrenIds:W(x())})])}).optional().nullable()});function Ng(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function Rg({style:e,props:t}){const{columns:n,...o}=t??{};let a;n&&(a=n.map(d=>((d==null?void 0:d.childrenIds)??[]).map(h=>g.jsx(ve,{id:h},h))));const{borderRadius:i,borderColor:r,borderWidth:l,...s}=e??{},c={};if(i!=null&&(c.borderRadius=Ng(i)),r){const d=l??{top:1,right:1,bottom:1,left:1};c.borderStyle="solid",c.borderColor=r,c.borderWidth=`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`}c.overflow="hidden";const u=i!=null||!!r,p=g.jsx(kg,{props:o,columns:a,style:s});return u?g.jsx("div",{style:c,children:p}):g.jsx(g.Fragment,{children:p})}const Eg=C({style:C({backgroundColor:x().optional().nullable(),padding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),margin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),borderRadius:D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),borderColor:x().optional().nullable(),borderWidth:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable()}).optional().nullable(),props:C({columnsCount:f().int().min(2).optional().nullable(),columnsGap:f().optional().nullable(),columnsGapTablet:f().optional().nullable(),columnsGapMobile:f().optional().nullable(),wrap:P().optional().nullable(),desktopLayout:I(["wrap","row"]).optional().nullable(),mobileLayout:I(["wrap","row"]).optional().nullable(),tabletLayout:I(["wrap","row"]).optional().nullable(),columnShrink:W(P()).optional().nullable(),columnShrinkTablet:W(P()).optional().nullable(),columnShrinkMobile:W(P()).optional().nullable(),equalColumns:P().optional().nullable(),columns:W(C({childrenIds:W(x())})).optional().nullable(),align:I(["flex-start","center","flex-end","stretch"]).optional().nullable(),justify:I(["flex-start","center","flex-end","space-between","space-around"]).optional().nullable(),reverseColumns:P().optional().nullable(),repeatableEnabled:P().optional().nullable()}).optional().nullable()});function Ig(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function Mg(e){var a,i;const t=e??{},n=(((a=t.margin)==null?void 0:a.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 r=t.padding;o.padding=`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`}if(t.margin){const r=t.margin;o.margin=`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`}if(t.borderRadius!=null&&(o.borderRadius=Ig(t.borderRadius),o.overflow="hidden"),t.borderColor){const r=t.borderWidth??{top:1,right:1,bottom:1,left:1};o.borderStyle="solid",o.borderColor=t.borderColor,o.borderWidth=`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`}return o}function co(e,t,n){const o=e??{},a=o.desktopLayout??(o.wrap?"wrap":"row"),i=o.tabletLayout??a,r=o.mobileLayout??"wrap",l=o.columnShrink??[],s=o.columnShrinkTablet??l,c=o.columnShrinkMobile??s,u=o.columnsGap??16,p=o.columnsGapTablet??u,d=o.columnsGapMobile??p,h={desktop:{layout:a,shrink:l,gap:u},tablet:{layout:i,shrink:s,gap:p},mobile:{layout:r,shrink:c,gap:d}}[t];return{layout:h.layout,gap:h.gap,shrink:Array.from({length:n},(m,b)=>h.shrink[b]===!0),equalColumns:o.equalColumns===!0,reverseColumns:o.reverseColumns===!0}}function Tg(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 Pg(e,{shrink:t,equalColumns:n}){return t[e]?"shrink":n?"equal":"plain"}function uo(e,t,n,o){const{layout:a,reverseColumns:i,gap:r}=n,l=d=>d.map(h=>`${t}:nth-child(${h+1})`).join(", "),s=Array.from({length:o},(d,h)=>h);if(a==="wrap")return[`${e} { flex-direction: column; flex-wrap: nowrap; gap: ${r}px; }`,`${l(s)} { flex: 0 0 100%; width: 100%; max-width: 100%; }`].join(`
|
|
207
207
|
`);const u=[`${e} { flex-direction: ${i?"row-reverse":"row"}; flex-wrap: nowrap; gap: ${r}px; }`],p=new Map;for(const d of s){const h=Pg(d,n);p.set(h,[...p.get(h)??[],d])}for(const[d,h]of p)u.push(`${l(h)} { ${Tg(d)} max-width: 100%; }`);return u.join(`
|
|
208
208
|
`)}function Og(e,t){const{columnsCount:n,desktop:o,tablet:a,mobile:i}=t,r=`.${e}.flex-columns-block > .fc-row`,l=`${r} > .fc-col`,s=[`${r} { 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(`
|
|
209
209
|
`),u=[o,a,i].some(d=>d.shrink.some(Boolean))?[o,a,i].flatMap(d=>d.shrink.map((h,m)=>h?m:-1).filter(h=>h>=0)).filter((d,h,m)=>m.indexOf(d)===h).map(d=>{const h=`${l}:nth-child(${d+1})`;return`${h} > *, ${h} .container-block { width: auto; max-width: 100%; }`}).join(`
|
|
@@ -220,14 +220,14 @@ ${h}
|
|
|
220
220
|
@media (max-width: ${je}px) { .${h} > .grid-block-inner { grid-template-columns: repeat(${o}, minmax(0, 1fr)); } }
|
|
221
221
|
@media (max-width: ${Ae}px) { .${h} > .grid-block-inner { grid-template-columns: repeat(${a}, minmax(0, 1fr)); } }
|
|
222
222
|
${N}
|
|
223
|
-
`.trim(),y=()=>({minWidth:0,boxSizing:"border-box"});return g.jsxs("div",{className:`grid-block ${h}`,style:$,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:A}}),g.jsx("div",{className:"grid-block-inner",style:_,children:m.map((R,M)=>g.jsx("div",{className:`grid-cell ${h}-cell-${M}`,style:y(),children:R.childrenIds.map(T=>g.jsx(ve,{id:T},T))},M))})]})}const Qg=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),eb=x().regex(/^rgba?\([^\)]+\)$/i),tb=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),nb=re("transparent"),Ir=
|
|
223
|
+
`.trim(),y=()=>({minWidth:0,boxSizing:"border-box"});return g.jsxs("div",{className:`grid-block ${h}`,style:$,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:A}}),g.jsx("div",{className:"grid-block-inner",style:_,children:m.map((R,M)=>g.jsx("div",{className:`grid-cell ${h}-cell-${M}`,style:y(),children:R.childrenIds.map(T=>g.jsx(ve,{id:T},T))},M))})]})}const Qg=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),eb=x().regex(/^rgba?\([^\)]+\)$/i),tb=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),nb=re("transparent"),Ir=ol(e=>typeof e=="string"?e.trim():e,D([Qg,eb,tb,nb]).nullable().optional()),ob=x().url().regex(/^https?:\/\//,"URL must start with http:// or https://").nullable().optional(),ab=x().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(),rb=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),ib=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),lb=D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),sb=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Mr=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function dl(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function cb(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:dl(e)?{backgroundColor:"transparent"}:{backgroundColor:e}}function ub(e,t){const n=e&&dl(e)?e:void 0;return n&&t?`${n}, ${t}`:n??t}function db(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)||1}px ${(t==null?void 0:t.right)||1}px ${(t==null?void 0:t.bottom)||1}px ${(t==null?void 0:t.left)||1}px`}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}:{}}function hb(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),a=Math.max(0,(e.topRight||0)-n),i=Math.max(0,(e.bottomRight||0)-n),r=Math.max(0,(e.bottomLeft||0)-n);return`${o}px ${a}px ${i}px ${r}px`}const fb=C({style:C({backgroundColor:Ir,backgroundImage:ob,backgroundSize:ab,backgroundRepeat:I(["repeat","no-repeat"]).optional().nullable(),borderColor:Ir,borderRadius:lb,padding:rb,margin:ib,borderWidth:sb,boxShadow:Vn}).optional().nullable(),props:C({fullWidth:P().optional().nullable(),widthType:I(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:I(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:I(["fixed","fill","fit"]).optional().nullable(),width:f().min(0).optional().nullable(),widthUnit:I(["px","%"]).optional().nullable(),widthTablet:f().min(0).optional().nullable(),widthMobile:f().min(0).optional().nullable(),height:f().min(0).optional().nullable(),heightTablet:f().min(0).optional().nullable(),heightMobile:f().min(0).optional().nullable(),overflow:P().optional().nullable(),alignment:I(["left","center","right"]).optional().nullable(),alignmentTablet:I(["left","center","right"]).optional().nullable(),alignmentMobile:I(["left","center","right"]).optional().nullable(),tag:I(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:x().optional().nullable(),elementId:x().optional().nullable(),showLink:P().optional().nullable(),linkHref:x().optional().nullable(),linkTarget:I(["_self","_blank"]).optional().nullable(),hoverEffect:Ia}).optional().nullable()}),yt={fullWidth:!1,widthType:"fill",width:300,widthUnit:"px",alignment:"left",hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};let pb=0;function mb({style:e,props:t,children:n}){const o=al(),a=(t==null?void 0:t.fullWidth)??yt.fullWidth,i=(t==null?void 0:t.widthType)??yt.widthType,r=(t==null?void 0:t.widthTypeTablet)??null,l=(t==null?void 0:t.widthTypeMobile)??null,s=r??i,c=l??s,u=(t==null?void 0:t.width)??yt.width,p=(t==null?void 0:t.widthUnit)??yt.widthUnit,d=(t==null?void 0:t.widthTablet)??null,h=(t==null?void 0:t.widthMobile)??null,m=d??u,b=h??m,v=(t==null?void 0:t.height)??null,k=(t==null?void 0:t.heightTablet)??null,S=(t==null?void 0:t.heightMobile)??null,$=k??v,w=S??$,_=(t==null?void 0:t.overflow)===!0,N=(t==null?void 0:t.alignment)??yt.alignment,A=(t==null?void 0:t.alignmentTablet)??null,y=(t==null?void 0:t.alignmentMobile)??null,R=N,M=(t==null?void 0:t.ariaLabel)??void 0,T=(t==null?void 0:t.elementId)??void 0,L=!!(t!=null&&t.showLink),H=(t==null?void 0:t.linkHref)??null,F=typeof H=="string"?H.trim():H,j=L&&typeof F=="string"&&F.length>0,O=(t==null?void 0:t.linkTarget)??"_blank",q=j?"a":(t==null?void 0:t.tag)??"div",B=j?{href:F,target:O,...O==="_blank"?{rel:"noopener noreferrer"}:{},style:{textDecoration:"none",color:"inherit",display:"block"}}:{},Y=(ae,le,Ge=!1)=>{if(Ge&&a)return"100%";switch(ae){case"fill":return"100%";case"fixed":return`${le}${p}`;case"fit":default:return"auto"}},de=ae=>((ae==null?void 0:ae.left)??0)+((ae==null?void 0:ae.right)??0),oe=(ae,le,Ge)=>{const Qe=(le==null?void 0:le.top)??0,et=(le==null?void 0:le.bottom)??0;if(Ge)return{marginTop:Qe,marginBottom:et,marginLeft:(le==null?void 0:le.left)??0,marginRight:(le==null?void 0:le.right)??0};switch(ae){case"center":return{marginTop:Qe,marginBottom:et,marginLeft:"auto",marginRight:"auto"};case"right":return{marginTop:Qe,marginBottom:et,marginLeft:"auto",marginRight:(le==null?void 0:le.right)??0};case"left":default:return{marginTop:Qe,marginBottom:et,marginLeft:(le==null?void 0:le.left)??0,marginRight:"auto"}}},ee=(ae,le)=>{const Ge=de(le);return Ge<=0?ae:ae==="100%"?`calc(100% - ${Ge}px)`:ae},Z=i,J=u,Ee=v,we=Y(Z,J,o==="desktop"),me=ee(we,e==null?void 0:e.margin),ne=r!=null||l!=null||d!=null||h!=null||k!=null||S!=null||A!=null||y!=null,V=(t==null?void 0:t.hoverEffect)??yt.hoverEffect,U=!!(V!=null&&V.enabled),X=ne||U?`ahd-cb-${++pb}`:"",ye=ne?`
|
|
224
224
|
${ot} { .${X} { width: ${ee(Y(s,m),e==null?void 0:e.margin)} !important; ${$!=null?`height: ${$}px !important;`:""} max-width: 100% !important; } }
|
|
225
225
|
${Oe} { .${X} { width: ${ee(Y(c,b),e==null?void 0:e.margin)} !important; ${w!=null?`height: ${w}px !important;`:""} max-width: 100% !important; } }
|
|
226
226
|
`.trim():null,te=U?`
|
|
227
227
|
.${X} { transition: transform ${V.duration??500}ms ${V.easing??"ease-in-out"}; }
|
|
228
228
|
.${X}:hover { transform: scale(${V.scale??1.05}); }
|
|
229
229
|
`.trim():null,Q=[ye,te].filter(Boolean).join(`
|
|
230
|
-
`)||null,qe=Yn(e==null?void 0:e.boxShadow),Pe=ae=>{if(ae!=null)return typeof ae=="number"?`${ae}px`:`${ae.topLeft}px ${ae.topRight}px ${ae.bottomRight}px ${ae.bottomLeft}px`},ke=(e==null?void 0:e.borderColor)??null,it=(e==null?void 0:e.borderWidth)??null,bt=db(ke,it),Ne=cb((e==null?void 0:e.backgroundColor)??""),Se=(e==null?void 0:e.backgroundSize)==="none",ie=!Se&&(e!=null&&e.backgroundImage)?`url(${e.backgroundImage})`:void 0,be=ub(e==null?void 0:e.backgroundColor,ie),Ie=Se?void 0:(e==null?void 0:e.backgroundSize)??void 0,Ft=(e==null?void 0:e.backgroundRepeat)??"no-repeat",lt=ke&&(ke.includes("linear-gradient")||ke.includes("radial-gradient")||ke.includes("repeating-linear-gradient")),Fe=Ee!=null,st=Fe?{"--ahd-cb-h":`${Ee}px`}:{},Me=Fe?" container-block-has-height":"";if(lt){const ae={...bt,borderRadius:Pe(e==null?void 0:e.borderRadius),width:me,maxWidth:"100%",height:Fe?`${Ee}px`:void 0,boxSizing:"border-box",...oe(R,e==null?void 0:e.margin,we==="100%"),...qe,...st},le={...Ne,backgroundImage:be,backgroundSize:Ie,backgroundRepeat:Ft,borderRadius:hb((e==null?void 0:e.borderRadius)??0,it),overflow:_?"auto":"hidden",padding:Mr(e==null?void 0:e.padding),width:"100%",height:Fe?"100%":void 0,boxSizing:"border-box"},Ge=`container-block${_?" container-block-overflow":""}${Me}${X?` ${X}`:""}`,Qe=`container-block-inner${_?" container-block-overflow":""}`,et=j?{...ae,...B.style}:ae;return g.jsxs(g.Fragment,{children:[Q&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),g.jsx(q,{className:Ge,"aria-label":M,id:T,...B,style:et,children:g.jsx("div",{className:Qe,style:le,children:n})})]})}const _t={...Ne,backgroundImage:be,backgroundSize:Ie,backgroundRepeat:Ft,...bt,borderRadius:Pe(e==null?void 0:e.borderRadius),padding:Mr(e==null?void 0:e.padding),...oe(R,e==null?void 0:e.margin,we==="100%"),width:me,maxWidth:"100%",height:Fe?`${Ee}px`:void 0,overflow:_?"auto":void 0,boxSizing:"border-box",..._?{}:{display:"flow-root"},...qe,...st},Gt=`container-block${_?" container-block-overflow":""}${Me}${X?` ${X}`:""}`,gn=j?{..._t,...B.style}:_t;return n?g.jsxs(g.Fragment,{children:[Q&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),g.jsx(q,{className:Gt,"aria-label":M,id:T,...B,style:gn,children:n})]}):g.jsxs(g.Fragment,{children:[Q&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),g.jsx(q,{className:Gt,"aria-label":M,id:T,...B,style:gn})]})}const gb=C({style:fb.shape.style,responsive:Te,props:C({childrenIds:W(x()).optional().nullable(),fullWidth:P().optional().nullable(),widthType:I(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:I(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:I(["fixed","fill","fit"]).optional().nullable(),width:f().min(0).optional().nullable(),widthUnit:I(["px","%"]).optional().nullable(),widthTablet:f().min(0).optional().nullable(),widthMobile:f().min(0).optional().nullable(),height:f().min(0).optional().nullable(),heightTablet:f().min(0).optional().nullable(),heightMobile:f().min(0).optional().nullable(),overflow:P().optional().nullable(),alignment:I(["left","center","right"]).optional().nullable(),alignmentTablet:I(["left","center","right"]).optional().nullable(),alignmentMobile:I(["left","center","right"]).optional().nullable(),tag:I(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:x().optional().nullable(),elementId:x().optional().nullable(),showLink:P().optional().nullable(),linkHref:x().optional().nullable(),linkTarget:I(["_self","_blank"]).optional().nullable(),animation:un,hoverEffect:Ia}).optional().nullable()});function bb({style:e,props:t}){const n=(t==null?void 0:t.childrenIds)??[];return g.jsx(mb,{style:e,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:n.map(o=>g.jsx(ve,{id:o},o))})}const vb=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),xb=x().regex(/^rgba?\([^\)]+\)$/i),Sb=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),wb=re("transparent"),Et=D([vb,xb,Sb,wb]).nullable().optional(),kb=I(["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(),_b=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),ho=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),fo=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),$b=x().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(),Cb=C({color:Et,offsetX:f().default(0),offsetY:f().default(0),blur:f().default(0),spread:f().default(0),inset:P().default(!1)}).partial().optional().nullable(),Ab=C({position:I(["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:P().optional().default(!0),selector:x().optional().default(""),showCloseIcon:P().optional(),iconCloseColor:Et,closeIconPosition:I(["left","center","right"]).optional(),closeIconPaddingTop:f().optional(),closeIconPaddingLeft:f().optional(),closeIconPaddingRight:f().optional(),bannerSubType:x().optional()}).passthrough().optional().nullable(),yb=W(C({id:x(),name:x(),type:x().optional().default("text"),value:x().optional()})).optional().nullable(),Nb=C({formFields:yb,backdropColor:Et.default(null),borderColor:Et.default(null),borderRadius:f().optional().nullable(),canvasColor:Et.default(null),textColor:Et,fontFamily:kb,childrenIds:W(x()).optional().nullable(),maxWidth:x().default(""),maxHeight:x().default(""),top:x().default(""),left:x().default(""),padding:ho,margin:fo,maxWidthTablet:x().optional().nullable(),maxWidthMobile:x().optional().nullable(),maxHeightTablet:x().optional().nullable(),maxHeightMobile:x().optional().nullable(),paddingTablet:ho,paddingMobile:ho,marginTablet:fo,marginMobile:fo,borderWidth:_b,boxShadow:Cb,behaviour:Ab,linkHref:x().optional().default(""),backgroundImage:x().default("").nullable().optional(),backgroundSize:$b,backgroundRepeat:I(["repeat","no-repeat"]).optional().nullable()});function Nt(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function _n(e,t,n){const o=e??{},a=o[t];if(n==="desktop")return Nt(a)?a:null;const i=o[`${t}Tablet`];if(n==="tablet")return Nt(i)?i:Nt(a)?a:null;const r=o[`${t}Mobile`];return Nt(r)?r:Nt(i)?i:Nt(a)?a:null}function po(e,t){return{maxWidth:_n(e,"maxWidth",t)??null,maxHeight:_n(e,"maxHeight",t)??null,padding:_n(e,"padding",t)??null,margin:_n(e,"margin",t)??null}}function Rb(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function Eb(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function mo(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:${Rb(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${Eb(t.margin)};}`),n.join("")}function Ib(e,t,n){const o=`.${e}`,a={width:`${o} .ahd-layout-sizer`,table:`${o} .ahd-layout-table`,padding:`${o} .email-layout-content`,margin:`${o} .email-layout-content`},i=po(t,"desktop"),r=mo(a,{...i,maxWidth:i.maxWidth??n??null}),l=mo(a,po(t,"tablet")),s=mo(a,po(t,"mobile")),c=(u,p)=>p?`@media (max-width:${u}px){${p}}@container ahd-page (max-width:${u}px){${p}}`:"";return[r,c(je,l),c(Ae,s)].filter(Boolean).join("")}const Mb="Made with Page Pilot",Tb="https://pagepilot.fabbuilder.com";let Pb=0;function Ob(e){switch(e??"MODERN_SANS"){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 Lb(e){const{borderColor:t,borderWidth:n,borderRadius:o}=e;if(!t)return{};if(t==="transparent")return{border:"none"};const a=t&&(t.includes("linear-gradient")||t.includes("radial-gradient")||t.includes("repeating-linear-gradient")),i=o??0,r=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?r(i):void 0};if(a){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?r(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?r(i):void 0}}function zb(e){return e.includes("gradient")?(e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[])[0]??"#000000":e}function Tr(e){if(!e||!e.color)return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:a=0,spread:i=0,inset:r=!1}=e,l=zb(t);return{boxShadow:`${r?"inset ":""}${n}px ${o}px ${a}px ${i}px ${l}`}}function jb(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 Bb(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 Db(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function Hb(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=Db(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function Fb({position:e,color:t}){const a="20px",i={position:"absolute",background:t,pointerEvents:"none",zIndex:2},r="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:r};break;case"top-left":u={top:-8,left:a,width:16,height:8,clipPath:r};break;case"top-right":u={top:-8,right:a,width:16,height:8,clipPath:r};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:a,width:16,height:8,clipPath:l};break;case"bottom-right":u={bottom:-8,right:a,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 Gb({color:e,position:t,paddingTop:n,paddingLeft:o,paddingRight:a}){const i=e||"#262626",r=t??"right",l=typeof n=="number"?n:2,u=r==="left"?{left:typeof o=="number"?o:2}:r==="center"?{left:"50%",transform:"translateX(-50%)"}:{right:typeof a=="number"?a: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 Ub(){return g.jsx("div",{className:"ahd-branding-footer",style:{display:"block",width:"100%",textAlign:"left",fontSize:11,color:"#8a8a8a",marginTop:8},children:g.jsx("a",{href:Tb,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:Mb})})}function Zb(e){var Y,de,oe,ee,Z,J,Ee,we,me,ne,V,U,X,ye;const t=e.childrenIds??[],n=typeof window<"u"&&window.location?window.location.pathname:"",o=n.includes("page")?"page":"",a=n.includes("app-banner"),i=n.includes("demo"),r=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"],p=a&&(((Y=e.behaviour)==null?void 0:Y.bannerSubType)==="floater"||u.includes((de=e.behaviour)==null?void 0:de.position)),d=a&&((oe=e.behaviour)==null?void 0:oe.bannerSubType)==="modal",h=(c||p||d)&&((ee=e.behaviour)==null?void 0:ee.showCloseIcon)!==!1,b=c&&!0,v=a&&e.linkHref?e.linkHref:null,k=G.useMemo(()=>`ahd-layout-${Pb+=1}`,[]),$=Ib(k,e,o==="page"||r?"100%":a&&!p?"900px":"320px"),w=(a||i)&&!!e.backgroundImage;e.borderRadius;const _=e.borderRadius??0,N=te=>typeof te=="number"?`${te}px`:`${te.topLeft}px ${te.topRight}px ${te.bottomRight}px ${te.bottomLeft}px`,y=(te=>te==null?!1:typeof te=="number"?te>0:(te.topLeft??0)>0||(te.topRight??0)>0||(te.bottomRight??0)>0||(te.bottomLeft??0)>0)(_),R=te=>v?g.jsx("a",{href:v,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:te}):te,M=Lb(e),T=a&&!!((Z=e.boxShadow)!=null&&Z.color)&&!!e.boxShadow.inset,L=a&&!T?Tr(e.boxShadow):{},H=T?Tr(e.boxShadow):{},F=Bb(((J=e.behaviour)==null?void 0:J.position)??"right"),j=c&&!p&&!d&&((Ee=e.behaviour)==null?void 0:Ee.isCaret)!==!1,O=Hb(e.canvasColor,F),q=(((we=e.margin)==null?void 0:we.left)??0)+(((me=e.margin)==null?void 0:me.right)??0),B=q>0?`calc(100% - ${q}px)`:"100%";return R(g.jsxs("div",{className:k,style:{minHeight:"100%",display:"block",alignItems:"center"},children:[$&&g.jsx("style",{dangerouslySetInnerHTML:{__html:$}}),g.jsx("div",{style:{color:e.textColor??"#262626",fontFamily:Ob(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",...d||p?null:{maxWidth:"100%"}},children:[j&&g.jsx(Fb,{position:F,color:O}),g.jsxs("div",{style:{position:"relative",borderRadius:N(_),...y?{overflowX:"hidden",overflowY:"visible"}:{overflow:"visible"},...L},children:[T&&g.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:N(_),zIndex:1,...H}}),h&&g.jsx(Gb,{color:(ne=e.behaviour)==null?void 0:ne.iconCloseColor,position:(V=e.behaviour)==null?void 0:V.closeIconPosition,paddingTop:(U=e.behaviour)==null?void 0:U.closeIconPaddingTop,paddingLeft:(X=e.behaviour)==null?void 0:X.closeIconPaddingLeft,paddingRight:(ye=e.behaviour)==null?void 0:ye.closeIconPaddingRight}),g.jsx("table",{width:"100%",className:"ahd-layout-table",style:{width:B,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",...d||p?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...jb(e.canvasColor,e.backgroundImage,a?"appBanner":""),borderCollapse:"separate",tableLayout:"fixed",...M,borderRadius:N(_),overflow:y?"clip":"visible",...w?{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(te=>g.jsx(ve,{id:te},te)),b&&g.jsx(Ub,{})]})})})})]})]})})]}))}const Wb=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),qb=x().regex(/^rgba?\([^\)]+\)$/i),Vb=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Yb=re("transparent"),$n=D([Wb,qb,Vb,Yb]).nullable().optional(),Kb=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Jb=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Xb=I(["left","center","right"]).optional().nullable(),zn={min:1,max:20},jn={min:4,max:48},dl=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),Qb=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,e0=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,qt=(e,t,n)=>Math.min(Math.max(e,t),n),Pr=e=>e?dl(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},t0=C({style:C({backgroundColor:$n,textAlign:Xb,padding:Kb,margin:Jb}).optional().nullable(),props:C({stepperType:I(["dots","numeric","both"]).optional().nullable(),totalDots:f().min(zn.min).max(zn.max).optional().nullable(),activeIndex:f().min(1).optional().nullable(),activeColor:$n,inactiveColor:$n,dotSize:f().min(jn.min).max(jn.max).optional().nullable(),dotSpacing:f().min(0).max(40).optional().nullable(),numericColor:$n,numericFontSize:f().min(8).max(48).optional().nullable(),numericPosition:I(["above","below","left","right"]).optional().nullable()}).optional().nullable()}),Ve={stepperType:"dots",totalDots:5,activeIndex:1,activeColor:"#3F73FF",inactiveColor:"#FFFFFF",dotSize:14,dotSpacing:12,numericColor:"#000000",numericFontSize:14,numericPosition:"below"};function n0({style:e,props:t}){const o=ol()==="mobile",i=typeof window<"u"&&window.location.pathname.includes("page")&&o,r=qt((t==null?void 0:t.totalDots)??Ve.totalDots,zn.min,zn.max),l=qt((t==null?void 0:t.dotSize)??Ve.dotSize,jn.min,jn.max),s=qt((t==null?void 0:t.dotSpacing)??Ve.dotSpacing,0,40),c=(t==null?void 0:t.activeIndex)??Ve.activeIndex,u=qt(c,1,r),p=(t==null?void 0:t.activeColor)??Ve.activeColor,d=(t==null?void 0:t.inactiveColor)??Ve.inactiveColor,h=(t==null?void 0:t.stepperType)??Ve.stepperType,m=h==="numeric"||h==="both",b=h==="dots"||h==="both",v=(t==null?void 0:t.numericColor)??Ve.numericColor,k=qt((t==null?void 0:t.numericFontSize)??Ve.numericFontSize,8,48),S=(t==null?void 0:t.numericPosition)??Ve.numericPosition,w={...Pr((e==null?void 0:e.backgroundColor)??void 0),padding:Qb(e==null?void 0:e.padding,i),margin:e0(e==null?void 0:e.margin,i),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},_=m&&b&&(S==="above"||S==="below"),N={display:"inline-flex",flexDirection:_?"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:_?"8px":b?`${s}px`:"0px"},A={display:"inline-flex",gap:`${s}px`,alignItems:"center",flexWrap:"wrap"},y=`${u}/${r}`,R=dl(v),M={fontSize:`${k}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...R?{backgroundImage:v,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:v??void 0}},T=()=>m?g.jsx("span",{style:M,children:y}):null,L=()=>g.jsx("div",{style:A,"aria-hidden":"true",children:Array.from({length:r}).map((H,F)=>{const j=F===u-1,O={width:l,height:l,borderRadius:"50%",border:"2px solid #0000001a",transition:"background 120ms ease, transform 120ms ease",transform:j?"scale(1.1)":"scale(1)",...Pr(j?p:d)};return g.jsx("span",{style:O,"data-active":j?"true":"false"},F)})});return g.jsx("div",{className:"stepper-block",style:w,role:"progressbar","aria-valuenow":u,"aria-valuemin":1,"aria-valuemax":r,"aria-valuetext":`Step ${u} of ${r}`,"aria-label":`Step ${u} of ${r}`,children:g.jsxs("div",{style:N,children:[m&&S==="above"&&T(),m&&S==="left"&&T(),b&&L(),m&&S==="right"&&T(),m&&S==="below"&&T()]})})}const o0=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),a0=x().regex(/^rgba?\([^\)]+\)$/i),r0=re("transparent"),go=D([o0,a0,r0]).nullable().optional(),hl=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),i0=hl,l0=I(["left","center","right"]).optional().nullable(),s0=["disc","circle","square","dash","arrow","check","cross","none"],c0=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],Or={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},u0=C({text:x()}),d0=C({style:C({color:go,backgroundColor:go,textAlign:l0,fontSize:f().min(8).max(72).optional().nullable(),fontFamily:x().optional().nullable(),fontWeight:D([f(),x()]).optional().nullable(),lineHeight:f().min(1).max(3).optional().nullable(),padding:hl,margin:i0}).optional().nullable(),props:C({listType:I(["unordered","ordered"]).optional().nullable(),marker:I([...s0,...c0]).optional().nullable(),numberSuffix:I([".",")"]).optional().nullable(),startNumber:f().min(0).max(9999).optional().nullable(),markerColor:go,markerSize:f().min(8).max(72).optional().nullable(),itemGap:f().min(0).max(64).optional().nullable(),items:W(u0).optional().nullable()}).optional().nullable(),responsive:Te}),dt={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"}]},Lr=(e,t,n)=>Math.min(Math.max(e,t),n),zr=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,jr=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[a,i]of t)for(;o>=a;)n+=i,o-=a;return n},Br=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"},h0=(e,t,n,o)=>{const a=n+t;switch(e){case"decimal-zero":return`${String(a).padStart(2,"0")}${o}`;case"lower-alpha":return`${Br(a)}${o}`;case"upper-alpha":return`${Br(a).toUpperCase()}${o}`;case"lower-roman":return`${jr(a).toLowerCase()}${o}`;case"upper-roman":return`${jr(a)}${o}`;case"decimal":default:return`${a}${o}`}};function f0({style:e,props:t}){var v;const o=((t==null?void 0:t.listType)??dt.listType)==="ordered",a=(t==null?void 0:t.marker)??(o?"decimal":dt.marker),i=(t==null?void 0:t.numberSuffix)??dt.numberSuffix,r=(t==null?void 0:t.startNumber)??dt.startNumber,l=(t==null?void 0:t.markerColor)??dt.markerColor,s=Lr((t==null?void 0:t.markerSize)??dt.markerSize,8,72),c=Lr((t==null?void 0:t.itemGap)??dt.itemGap,0,64),u=(v=t==null?void 0:t.items)!=null&&v.length?t.items:dt.items.map(k=>({...k})),p=(e==null?void 0:e.color)??void 0,d={backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,padding:zr(e==null?void 0:e.padding),margin:zr(e==null?void 0:e.margin),width:"100%",boxSizing:"border-box"},h={color:p,textAlign:(e==null?void 0:e.textAlign)??"left",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},m={verticalAlign:"top",paddingRight:"8px",whiteSpace:"nowrap",color:l??p,fontSize:`${s}px`,lineHeight:(e==null?void 0:e.lineHeight)??1.5},b=k=>a==="none"?null:o?h0(a,k,r,i):Or[a]??Or.disc;return g.jsx("div",{className:"list-block",style:d,children:g.jsx("table",{role:"presentation",cellPadding:0,cellSpacing:0,style:{borderCollapse:"collapse",width:"100%"},children:g.jsx("tbody",{children:u.map((k,S)=>{const $=b(S);return g.jsxs("tr",{children:[a!=="none"&&g.jsx("td",{style:m,children:$}),g.jsx("td",{style:{...h,paddingBottom:S<u.length-1?`${c}px`:0,width:"100%"},children:k.text})]},S)})})})})}const p0=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),m0=x().regex(/^rgba?\([^\)]+\)$/i),g0=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),b0=re("transparent"),v0=D([p0,m0,g0,b0]).nullable().optional(),x0=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Zo=C({style:C({backgroundColor:v0,padding:x0}).optional().nullable(),props:C({direction:I(["row","column"]).optional().nullable(),directionTablet:I(["row","column"]).optional().nullable(),directionMobile:I(["row","column"]).optional().nullable(),gap:f().optional().nullable(),gapTablet:f().optional().nullable(),gapMobile:f().optional().nullable(),alignment:I(["start","center","end","space-between"]).optional().nullable(),alignmentTablet:I(["start","center","end","space-between"]).optional().nullable(),alignmentMobile:I(["start","center","end","space-between"]).optional().nullable(),wrap:P().optional().nullable(),ariaLabel:x().optional().nullable()}).optional().nullable(),responsive:Te}),Cn={direction:"row",gap:12,alignment:"start",wrap:!0},Bn={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},S0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Dr(e,t,n,o){const a=e==="row"?Bn[t]:"flex-start",i=e==="column"?Bn[t]:"center";return`flex-direction:${e}!important;justify-content:${a}!important;align-items:${i}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;gap:${o}px!important;`}let w0=0;function k0({style:e,buttons:t,props:n}){const o=(n==null?void 0:n.direction)??Cn.direction,a=(n==null?void 0:n.directionTablet)??o,i=(n==null?void 0:n.directionMobile)??a,r=(n==null?void 0:n.gap)??Cn.gap,l=(n==null?void 0:n.gapTablet)??r,s=(n==null?void 0:n.gapMobile)??l,c=(n==null?void 0:n.alignment)??Cn.alignment,u=(n==null?void 0:n.alignmentTablet)??c,p=(n==null?void 0:n.alignmentMobile)??u,d=(n==null?void 0:n.wrap)??Cn.wrap,h=(n==null?void 0:n.ariaLabel)??void 0,m=o,b=c,k={display:"flex",flexDirection:m,gap:`${r}px`,justifyContent:m==="row"?Bn[b]:"flex-start",alignItems:m==="column"?Bn[b]:"center",flexWrap:m==="row"&&d?"wrap":"nowrap",background:(e==null?void 0:e.backgroundColor)??void 0,padding:S0(e==null?void 0:e.padding),boxSizing:"border-box",width:"100%"},S=G.useMemo(()=>`ahd-bg-${w0+=1}`,[]),$=G.useMemo(()=>{const w=`.${S}`;let _="";return(a!==o||u!==c||l!==r)&&(_+=`@media (max-width:${je}px){${w}{${Dr(a,u,d,l)}}}`),(i!==a||p!==u||s!==l)&&(_+=`@media (max-width:${Ae}px){${w}{${Dr(i,p,d,s)}}}`),_},[S,o,a,i,c,u,p,r,l,s,d]);return g.jsxs("div",{className:`button-group ${S}`,style:k,role:"group","aria-label":h,children:[$&&g.jsx("style",{dangerouslySetInnerHTML:{__html:$}}),t]})}const _0=Zo.shape.props.unwrap().unwrap().shape,$0=C({style:Zo.shape.style,props:C({..._0,childrenIds:W(x()).optional().nullable()}).optional().nullable(),responsive:Zo.shape.responsive});function C0({style:e,props:t}){const{childrenIds:n,...o}=t??{},a=(n??[]).map(i=>g.jsx(ve,{id:i},i));return g.jsx(k0,{style:e,props:o,buttons:a})}const A0=C({titleChildrenIds:W(x()).optional().nullable(),contentChildrenIds:W(x()).optional().nullable()}),y0=C({responsive:Te,style:C({backgroundColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderWidth:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),borderRadius:D([f(),x(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),marginBottom:f().optional().nullable(),padding:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),margin:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable()}).optional().nullable(),props:C({items:W(A0).min(1).max(25).optional().nullable(),iconColor:x().optional().nullable(),iconSize:f().optional().nullable(),defaultOpen:P().optional().nullable(),activeBorderColor:x().optional().nullable()}).optional().nullable()});function N0(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 Hr=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e);function R0(e,t){if(!e)return;const n=Math.max(t.top,t.right,t.bottom,t.left),o=e.split(" ").map(a=>Math.max(0,parseFloat(a)-n));return o.length===1?`${o[0]}px`:o.map(a=>`${a}px`).join(" ")}function E0({style:e,props:t}){const n=G.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=G.useMemo(()=>`email-accordion-${Math.random().toString(36).slice(2,9)}`,[]),a=`${o}-content`,i=e==null?void 0:e.padding,r=e==null?void 0:e.margin,l=((r==null?void 0:r.left)??0)+((r==null?void 0:r.right)??0),s=t==null?void 0:t.activeBorderColor,c=e==null?void 0:e.borderColor,u=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},p=`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`,d=N0(e==null?void 0:e.borderRadius),h=Hr(c),m=Hr(s),b=h||m,v={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",borderRadius:d,margin:r?`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`:void 0,boxShadow:"none"};(e==null?void 0:e.borderRadius)!=null&&(v.overflow="hidden"),b?(v.padding=p,h?v.background=c:c&&(v.borderStyle="solid",v.borderColor=c,v.borderWidth=p)):c&&(v.borderStyle="solid",v.borderColor=c,v.borderWidth=p);const k={background:(e==null?void 0:e.backgroundColor)??(b?"#ffffff":void 0),borderRadius:b?R0(d,u):void 0,padding:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,overflow:b&&(e==null?void 0:e.borderRadius)!=null?"hidden":void 0},S=[];return s&&(m?S.push(`#${o}:checked + .email-accordion-root { background:${s}; border-style:none; padding:${p}; }`):S.push(`#${o}:checked + .email-accordion-root { background:none; border-style:solid; border-color:${s}; border-width:${p}; ${b?"padding:0;":""} }`)),g.jsxs("div",{className:"accordion-block",style:{marginBottom:(e==null?void 0:e.marginBottom)!=null?`${e.marginBottom}px`:"5px"},children:[g.jsx("style",{children:`
|
|
230
|
+
`)||null,qe=Yn(e==null?void 0:e.boxShadow),Pe=ae=>{if(ae!=null)return typeof ae=="number"?`${ae}px`:`${ae.topLeft}px ${ae.topRight}px ${ae.bottomRight}px ${ae.bottomLeft}px`},ke=(e==null?void 0:e.borderColor)??null,it=(e==null?void 0:e.borderWidth)??null,bt=db(ke,it),Ne=cb((e==null?void 0:e.backgroundColor)??""),Se=(e==null?void 0:e.backgroundSize)==="none",ie=!Se&&(e!=null&&e.backgroundImage)?`url(${e.backgroundImage})`:void 0,be=ub(e==null?void 0:e.backgroundColor,ie),Ie=Se?void 0:(e==null?void 0:e.backgroundSize)??void 0,Ft=(e==null?void 0:e.backgroundRepeat)??"no-repeat",lt=ke&&(ke.includes("linear-gradient")||ke.includes("radial-gradient")||ke.includes("repeating-linear-gradient")),Fe=Ee!=null,st=Fe?{"--ahd-cb-h":`${Ee}px`}:{},Me=Fe?" container-block-has-height":"";if(lt){const ae={...bt,borderRadius:Pe(e==null?void 0:e.borderRadius),width:me,maxWidth:"100%",height:Fe?`${Ee}px`:void 0,boxSizing:"border-box",...oe(R,e==null?void 0:e.margin,we==="100%"),...qe,...st},le={...Ne,backgroundImage:be,backgroundSize:Ie,backgroundRepeat:Ft,borderRadius:hb((e==null?void 0:e.borderRadius)??0,it),overflow:_?"auto":"hidden",padding:Mr(e==null?void 0:e.padding),width:"100%",height:Fe?"100%":void 0,boxSizing:"border-box"},Ge=`container-block${_?" container-block-overflow":""}${Me}${X?` ${X}`:""}`,Qe=`container-block-inner${_?" container-block-overflow":""}`,et=j?{...ae,...B.style}:ae;return g.jsxs(g.Fragment,{children:[Q&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),g.jsx(q,{className:Ge,"aria-label":M,id:T,...B,style:et,children:g.jsx("div",{className:Qe,style:le,children:n})})]})}const _t={...Ne,backgroundImage:be,backgroundSize:Ie,backgroundRepeat:Ft,...bt,borderRadius:Pe(e==null?void 0:e.borderRadius),padding:Mr(e==null?void 0:e.padding),...oe(R,e==null?void 0:e.margin,we==="100%"),width:me,maxWidth:"100%",height:Fe?`${Ee}px`:void 0,overflow:_?"auto":void 0,boxSizing:"border-box",..._?{}:{display:"flow-root"},...qe,...st},Gt=`container-block${_?" container-block-overflow":""}${Me}${X?` ${X}`:""}`,gn=j?{..._t,...B.style}:_t;return n?g.jsxs(g.Fragment,{children:[Q&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),g.jsx(q,{className:Gt,"aria-label":M,id:T,...B,style:gn,children:n})]}):g.jsxs(g.Fragment,{children:[Q&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),g.jsx(q,{className:Gt,"aria-label":M,id:T,...B,style:gn})]})}const gb=C({style:fb.shape.style,responsive:Te,props:C({childrenIds:W(x()).optional().nullable(),fullWidth:P().optional().nullable(),widthType:I(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:I(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:I(["fixed","fill","fit"]).optional().nullable(),width:f().min(0).optional().nullable(),widthUnit:I(["px","%"]).optional().nullable(),widthTablet:f().min(0).optional().nullable(),widthMobile:f().min(0).optional().nullable(),height:f().min(0).optional().nullable(),heightTablet:f().min(0).optional().nullable(),heightMobile:f().min(0).optional().nullable(),overflow:P().optional().nullable(),alignment:I(["left","center","right"]).optional().nullable(),alignmentTablet:I(["left","center","right"]).optional().nullable(),alignmentMobile:I(["left","center","right"]).optional().nullable(),tag:I(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:x().optional().nullable(),elementId:x().optional().nullable(),showLink:P().optional().nullable(),linkHref:x().optional().nullable(),linkTarget:I(["_self","_blank"]).optional().nullable(),animation:un,hoverEffect:Ia}).optional().nullable()});function bb({style:e,props:t}){const n=(t==null?void 0:t.childrenIds)??[];return g.jsx(mb,{style:e,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:n.map(o=>g.jsx(ve,{id:o},o))})}const vb=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),xb=x().regex(/^rgba?\([^\)]+\)$/i),Sb=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),wb=re("transparent"),Et=D([vb,xb,Sb,wb]).nullable().optional(),kb=I(["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(),_b=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),ho=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),fo=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),$b=x().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(),Cb=C({color:Et,offsetX:f().default(0),offsetY:f().default(0),blur:f().default(0),spread:f().default(0),inset:P().default(!1)}).partial().optional().nullable(),Ab=C({position:I(["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:P().optional().default(!0),selector:x().optional().default(""),showCloseIcon:P().optional(),iconCloseColor:Et,closeIconPosition:I(["left","center","right"]).optional(),closeIconPaddingTop:f().optional(),closeIconPaddingLeft:f().optional(),closeIconPaddingRight:f().optional(),bannerSubType:x().optional()}).passthrough().optional().nullable(),yb=W(C({id:x(),name:x(),type:x().optional().default("text"),value:x().optional()})).optional().nullable(),Nb=C({formFields:yb,backdropColor:Et.default(null),borderColor:Et.default(null),borderRadius:f().optional().nullable(),canvasColor:Et.default(null),textColor:Et,fontFamily:kb,childrenIds:W(x()).optional().nullable(),maxWidth:x().default(""),maxHeight:x().default(""),top:x().default(""),left:x().default(""),padding:ho,margin:fo,maxWidthTablet:x().optional().nullable(),maxWidthMobile:x().optional().nullable(),maxHeightTablet:x().optional().nullable(),maxHeightMobile:x().optional().nullable(),paddingTablet:ho,paddingMobile:ho,marginTablet:fo,marginMobile:fo,borderWidth:_b,boxShadow:Cb,behaviour:Ab,linkHref:x().optional().default(""),backgroundImage:x().default("").nullable().optional(),backgroundSize:$b,backgroundRepeat:I(["repeat","no-repeat"]).optional().nullable()});function Nt(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function _n(e,t,n){const o=e??{},a=o[t];if(n==="desktop")return Nt(a)?a:null;const i=o[`${t}Tablet`];if(n==="tablet")return Nt(i)?i:Nt(a)?a:null;const r=o[`${t}Mobile`];return Nt(r)?r:Nt(i)?i:Nt(a)?a:null}function po(e,t){return{maxWidth:_n(e,"maxWidth",t)??null,maxHeight:_n(e,"maxHeight",t)??null,padding:_n(e,"padding",t)??null,margin:_n(e,"margin",t)??null}}function Rb(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function Eb(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function mo(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:${Rb(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${Eb(t.margin)};}`),n.join("")}function Ib(e,t,n){const o=`.${e}`,a={width:`${o} .ahd-layout-sizer`,table:`${o} .ahd-layout-table`,padding:`${o} .email-layout-content`,margin:`${o} .email-layout-content`},i=po(t,"desktop"),r=mo(a,{...i,maxWidth:i.maxWidth??n??null}),l=mo(a,po(t,"tablet")),s=mo(a,po(t,"mobile")),c=(u,p)=>p?`@media (max-width:${u}px){${p}}@container ahd-page (max-width:${u}px){${p}}`:"";return[r,c(je,l),c(Ae,s)].filter(Boolean).join("")}const Mb="Made with Page Pilot",Tb="https://pagepilot.fabbuilder.com";let Pb=0;function Ob(e){switch(e??"MODERN_SANS"){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 Lb(e){const{borderColor:t,borderWidth:n,borderRadius:o}=e;if(!t)return{};if(t==="transparent")return{border:"none"};const a=t&&(t.includes("linear-gradient")||t.includes("radial-gradient")||t.includes("repeating-linear-gradient")),i=o??0,r=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?r(i):void 0};if(a){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?r(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?r(i):void 0}}function zb(e){return e.includes("gradient")?(e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[])[0]??"#000000":e}function Tr(e){if(!e||!e.color)return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:a=0,spread:i=0,inset:r=!1}=e,l=zb(t);return{boxShadow:`${r?"inset ":""}${n}px ${o}px ${a}px ${i}px ${l}`}}function jb(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 Bb(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 Db(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function Hb(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=Db(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function Fb({position:e,color:t}){const a="20px",i={position:"absolute",background:t,pointerEvents:"none",zIndex:2},r="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:r};break;case"top-left":u={top:-8,left:a,width:16,height:8,clipPath:r};break;case"top-right":u={top:-8,right:a,width:16,height:8,clipPath:r};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:a,width:16,height:8,clipPath:l};break;case"bottom-right":u={bottom:-8,right:a,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 Gb({color:e,position:t,paddingTop:n,paddingLeft:o,paddingRight:a}){const i=e||"#262626",r=t??"right",l=typeof n=="number"?n:2,u=r==="left"?{left:typeof o=="number"?o:2}:r==="center"?{left:"50%",transform:"translateX(-50%)"}:{right:typeof a=="number"?a: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 Ub(){return g.jsx("div",{className:"ahd-branding-footer",style:{display:"block",width:"100%",textAlign:"left",fontSize:11,color:"#8a8a8a",marginTop:8},children:g.jsx("a",{href:Tb,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:Mb})})}function Zb(e){var Y,de,oe,ee,Z,J,Ee,we,me,ne,V,U,X,ye;const t=e.childrenIds??[],n=typeof window<"u"&&window.location?window.location.pathname:"",o=n.includes("page")?"page":"",a=n.includes("app-banner"),i=n.includes("demo"),r=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"],p=a&&(((Y=e.behaviour)==null?void 0:Y.bannerSubType)==="floater"||u.includes((de=e.behaviour)==null?void 0:de.position)),d=a&&((oe=e.behaviour)==null?void 0:oe.bannerSubType)==="modal",h=(c||p||d)&&((ee=e.behaviour)==null?void 0:ee.showCloseIcon)!==!1,b=c&&!0,v=a&&e.linkHref?e.linkHref:null,k=G.useMemo(()=>`ahd-layout-${Pb+=1}`,[]),$=Ib(k,e,o==="page"||r?"100%":a&&!p?"900px":"320px"),w=(a||i)&&!!e.backgroundImage;e.borderRadius;const _=e.borderRadius??0,N=te=>typeof te=="number"?`${te}px`:`${te.topLeft}px ${te.topRight}px ${te.bottomRight}px ${te.bottomLeft}px`,y=(te=>te==null?!1:typeof te=="number"?te>0:(te.topLeft??0)>0||(te.topRight??0)>0||(te.bottomRight??0)>0||(te.bottomLeft??0)>0)(_),R=te=>v?g.jsx("a",{href:v,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:te}):te,M=Lb(e),T=a&&!!((Z=e.boxShadow)!=null&&Z.color)&&!!e.boxShadow.inset,L=a&&!T?Tr(e.boxShadow):{},H=T?Tr(e.boxShadow):{},F=Bb(((J=e.behaviour)==null?void 0:J.position)??"right"),j=c&&!p&&!d&&((Ee=e.behaviour)==null?void 0:Ee.isCaret)!==!1,O=Hb(e.canvasColor,F),q=(((we=e.margin)==null?void 0:we.left)??0)+(((me=e.margin)==null?void 0:me.right)??0),B=q>0?`calc(100% - ${q}px)`:"100%";return R(g.jsxs("div",{className:k,style:{minHeight:"100%",display:"block",alignItems:"center"},children:[$&&g.jsx("style",{dangerouslySetInnerHTML:{__html:$}}),g.jsx("div",{style:{color:e.textColor??"#262626",fontFamily:Ob(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",...d||p?null:{maxWidth:"100%"}},children:[j&&g.jsx(Fb,{position:F,color:O}),g.jsxs("div",{style:{position:"relative",borderRadius:N(_),...y?{overflowX:"hidden",overflowY:"visible"}:{overflow:"visible"},...L},children:[T&&g.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:N(_),zIndex:1,...H}}),h&&g.jsx(Gb,{color:(ne=e.behaviour)==null?void 0:ne.iconCloseColor,position:(V=e.behaviour)==null?void 0:V.closeIconPosition,paddingTop:(U=e.behaviour)==null?void 0:U.closeIconPaddingTop,paddingLeft:(X=e.behaviour)==null?void 0:X.closeIconPaddingLeft,paddingRight:(ye=e.behaviour)==null?void 0:ye.closeIconPaddingRight}),g.jsx("table",{width:"100%",className:"ahd-layout-table",style:{width:B,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",...d||p?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...jb(e.canvasColor,e.backgroundImage,a?"appBanner":""),borderCollapse:"separate",tableLayout:"fixed",...M,borderRadius:N(_),overflow:y?"clip":"visible",...w?{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(te=>g.jsx(ve,{id:te},te)),b&&g.jsx(Ub,{})]})})})})]})]})})]}))}const Wb=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),qb=x().regex(/^rgba?\([^\)]+\)$/i),Vb=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Yb=re("transparent"),$n=D([Wb,qb,Vb,Yb]).nullable().optional(),Kb=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Jb=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Xb=I(["left","center","right"]).optional().nullable(),zn={min:1,max:20},jn={min:4,max:48},hl=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),Qb=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,e0=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,qt=(e,t,n)=>Math.min(Math.max(e,t),n),Pr=e=>e?hl(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},t0=C({style:C({backgroundColor:$n,textAlign:Xb,padding:Kb,margin:Jb}).optional().nullable(),props:C({stepperType:I(["dots","numeric","both"]).optional().nullable(),totalDots:f().min(zn.min).max(zn.max).optional().nullable(),activeIndex:f().min(1).optional().nullable(),activeColor:$n,inactiveColor:$n,dotSize:f().min(jn.min).max(jn.max).optional().nullable(),dotSpacing:f().min(0).max(40).optional().nullable(),numericColor:$n,numericFontSize:f().min(8).max(48).optional().nullable(),numericPosition:I(["above","below","left","right"]).optional().nullable()}).optional().nullable()}),Ve={stepperType:"dots",totalDots:5,activeIndex:1,activeColor:"#3F73FF",inactiveColor:"#FFFFFF",dotSize:14,dotSpacing:12,numericColor:"#000000",numericFontSize:14,numericPosition:"below"};function n0({style:e,props:t}){const o=al()==="mobile",i=typeof window<"u"&&window.location.pathname.includes("page")&&o,r=qt((t==null?void 0:t.totalDots)??Ve.totalDots,zn.min,zn.max),l=qt((t==null?void 0:t.dotSize)??Ve.dotSize,jn.min,jn.max),s=qt((t==null?void 0:t.dotSpacing)??Ve.dotSpacing,0,40),c=(t==null?void 0:t.activeIndex)??Ve.activeIndex,u=qt(c,1,r),p=(t==null?void 0:t.activeColor)??Ve.activeColor,d=(t==null?void 0:t.inactiveColor)??Ve.inactiveColor,h=(t==null?void 0:t.stepperType)??Ve.stepperType,m=h==="numeric"||h==="both",b=h==="dots"||h==="both",v=(t==null?void 0:t.numericColor)??Ve.numericColor,k=qt((t==null?void 0:t.numericFontSize)??Ve.numericFontSize,8,48),S=(t==null?void 0:t.numericPosition)??Ve.numericPosition,w={...Pr((e==null?void 0:e.backgroundColor)??void 0),padding:Qb(e==null?void 0:e.padding,i),margin:e0(e==null?void 0:e.margin,i),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},_=m&&b&&(S==="above"||S==="below"),N={display:"inline-flex",flexDirection:_?"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:_?"8px":b?`${s}px`:"0px"},A={display:"inline-flex",gap:`${s}px`,alignItems:"center",flexWrap:"wrap"},y=`${u}/${r}`,R=hl(v),M={fontSize:`${k}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...R?{backgroundImage:v,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:v??void 0}},T=()=>m?g.jsx("span",{style:M,children:y}):null,L=()=>g.jsx("div",{style:A,"aria-hidden":"true",children:Array.from({length:r}).map((H,F)=>{const j=F===u-1,O={width:l,height:l,borderRadius:"50%",border:"2px solid #0000001a",transition:"background 120ms ease, transform 120ms ease",transform:j?"scale(1.1)":"scale(1)",...Pr(j?p:d)};return g.jsx("span",{style:O,"data-active":j?"true":"false"},F)})});return g.jsx("div",{className:"stepper-block",style:w,role:"progressbar","aria-valuenow":u,"aria-valuemin":1,"aria-valuemax":r,"aria-valuetext":`Step ${u} of ${r}`,"aria-label":`Step ${u} of ${r}`,children:g.jsxs("div",{style:N,children:[m&&S==="above"&&T(),m&&S==="left"&&T(),b&&L(),m&&S==="right"&&T(),m&&S==="below"&&T()]})})}const o0=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),a0=x().regex(/^rgba?\([^\)]+\)$/i),r0=re("transparent"),go=D([o0,a0,r0]).nullable().optional(),fl=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),i0=fl,l0=I(["left","center","right"]).optional().nullable(),s0=["disc","circle","square","dash","arrow","check","cross","none"],c0=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],Or={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},u0=C({text:x()}),d0=C({style:C({color:go,backgroundColor:go,textAlign:l0,fontSize:f().min(8).max(72).optional().nullable(),fontFamily:x().optional().nullable(),fontWeight:D([f(),x()]).optional().nullable(),lineHeight:f().min(1).max(3).optional().nullable(),padding:fl,margin:i0}).optional().nullable(),props:C({listType:I(["unordered","ordered"]).optional().nullable(),marker:I([...s0,...c0]).optional().nullable(),numberSuffix:ol(e=>e===""?void 0:e,I([".",")"]).optional().nullable()),startNumber:f().min(0).max(9999).optional().nullable(),markerColor:go,markerSize:f().min(8).max(72).optional().nullable(),itemGap:f().min(0).max(64).optional().nullable(),items:W(u0).optional().nullable()}).optional().nullable(),responsive:Te}),dt={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"}]},Lr=(e,t,n)=>Math.min(Math.max(e,t),n),zr=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,jr=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[a,i]of t)for(;o>=a;)n+=i,o-=a;return n},Br=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"},h0=(e,t,n,o)=>{const a=n+t;switch(e){case"decimal-zero":return`${String(a).padStart(2,"0")}${o}`;case"lower-alpha":return`${Br(a)}${o}`;case"upper-alpha":return`${Br(a).toUpperCase()}${o}`;case"lower-roman":return`${jr(a).toLowerCase()}${o}`;case"upper-roman":return`${jr(a)}${o}`;case"decimal":default:return`${a}${o}`}};function f0({style:e,props:t}){var v;const o=((t==null?void 0:t.listType)??dt.listType)==="ordered",a=(t==null?void 0:t.marker)??(o?"decimal":dt.marker),i=(t==null?void 0:t.numberSuffix)??dt.numberSuffix,r=(t==null?void 0:t.startNumber)??dt.startNumber,l=(t==null?void 0:t.markerColor)??dt.markerColor,s=Lr((t==null?void 0:t.markerSize)??dt.markerSize,8,72),c=Lr((t==null?void 0:t.itemGap)??dt.itemGap,0,64),u=(v=t==null?void 0:t.items)!=null&&v.length?t.items:dt.items.map(k=>({...k})),p=(e==null?void 0:e.color)??void 0,d={backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,padding:zr(e==null?void 0:e.padding),margin:zr(e==null?void 0:e.margin),width:"100%",boxSizing:"border-box"},h={color:p,textAlign:(e==null?void 0:e.textAlign)??"left",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},m={verticalAlign:"top",paddingRight:"8px",whiteSpace:"nowrap",color:l??p,fontSize:`${s}px`,lineHeight:(e==null?void 0:e.lineHeight)??1.5},b=k=>a==="none"?null:o?h0(a,k,r,i):Or[a]??Or.disc;return g.jsx("div",{className:"list-block",style:d,children:g.jsx("table",{role:"presentation",cellPadding:0,cellSpacing:0,style:{borderCollapse:"collapse",width:"100%"},children:g.jsx("tbody",{children:u.map((k,S)=>{const $=b(S);return g.jsxs("tr",{children:[a!=="none"&&g.jsx("td",{style:m,children:$}),g.jsx("td",{style:{...h,paddingBottom:S<u.length-1?`${c}px`:0,width:"100%"},children:k.text})]},S)})})})})}const p0=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),m0=x().regex(/^rgba?\([^\)]+\)$/i),g0=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),b0=re("transparent"),v0=D([p0,m0,g0,b0]).nullable().optional(),x0=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Zo=C({style:C({backgroundColor:v0,padding:x0}).optional().nullable(),props:C({direction:I(["row","column"]).optional().nullable(),directionTablet:I(["row","column"]).optional().nullable(),directionMobile:I(["row","column"]).optional().nullable(),gap:f().optional().nullable(),gapTablet:f().optional().nullable(),gapMobile:f().optional().nullable(),alignment:I(["start","center","end","space-between"]).optional().nullable(),alignmentTablet:I(["start","center","end","space-between"]).optional().nullable(),alignmentMobile:I(["start","center","end","space-between"]).optional().nullable(),wrap:P().optional().nullable(),ariaLabel:x().optional().nullable()}).optional().nullable(),responsive:Te}),Cn={direction:"row",gap:12,alignment:"start",wrap:!0},Bn={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},S0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Dr(e,t,n,o){const a=e==="row"?Bn[t]:"flex-start",i=e==="column"?Bn[t]:"center";return`flex-direction:${e}!important;justify-content:${a}!important;align-items:${i}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;gap:${o}px!important;`}let w0=0;function k0({style:e,buttons:t,props:n}){const o=(n==null?void 0:n.direction)??Cn.direction,a=(n==null?void 0:n.directionTablet)??o,i=(n==null?void 0:n.directionMobile)??a,r=(n==null?void 0:n.gap)??Cn.gap,l=(n==null?void 0:n.gapTablet)??r,s=(n==null?void 0:n.gapMobile)??l,c=(n==null?void 0:n.alignment)??Cn.alignment,u=(n==null?void 0:n.alignmentTablet)??c,p=(n==null?void 0:n.alignmentMobile)??u,d=(n==null?void 0:n.wrap)??Cn.wrap,h=(n==null?void 0:n.ariaLabel)??void 0,m=o,b=c,k={display:"flex",flexDirection:m,gap:`${r}px`,justifyContent:m==="row"?Bn[b]:"flex-start",alignItems:m==="column"?Bn[b]:"center",flexWrap:m==="row"&&d?"wrap":"nowrap",background:(e==null?void 0:e.backgroundColor)??void 0,padding:S0(e==null?void 0:e.padding),boxSizing:"border-box",width:"100%"},S=G.useMemo(()=>`ahd-bg-${w0+=1}`,[]),$=G.useMemo(()=>{const w=`.${S}`;let _="";return(a!==o||u!==c||l!==r)&&(_+=`@media (max-width:${je}px){${w}{${Dr(a,u,d,l)}}}`),(i!==a||p!==u||s!==l)&&(_+=`@media (max-width:${Ae}px){${w}{${Dr(i,p,d,s)}}}`),_},[S,o,a,i,c,u,p,r,l,s,d]);return g.jsxs("div",{className:`button-group ${S}`,style:k,role:"group","aria-label":h,children:[$&&g.jsx("style",{dangerouslySetInnerHTML:{__html:$}}),t]})}const _0=Zo.shape.props.unwrap().unwrap().shape,$0=C({style:Zo.shape.style,props:C({..._0,childrenIds:W(x()).optional().nullable()}).optional().nullable(),responsive:Zo.shape.responsive});function C0({style:e,props:t}){const{childrenIds:n,...o}=t??{},a=(n??[]).map(i=>g.jsx(ve,{id:i},i));return g.jsx(k0,{style:e,props:o,buttons:a})}const A0=C({titleChildrenIds:W(x()).optional().nullable(),contentChildrenIds:W(x()).optional().nullable()}),y0=C({responsive:Te,style:C({backgroundColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderWidth:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),borderRadius:D([f(),x(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),marginBottom:f().optional().nullable(),padding:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),margin:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable()}).optional().nullable(),props:C({items:W(A0).min(1).max(25).optional().nullable(),iconColor:x().optional().nullable(),iconSize:f().optional().nullable(),defaultOpen:P().optional().nullable(),activeBorderColor:x().optional().nullable()}).optional().nullable()});function N0(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 Hr=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e);function R0(e,t){if(!e)return;const n=Math.max(t.top,t.right,t.bottom,t.left),o=e.split(" ").map(a=>Math.max(0,parseFloat(a)-n));return o.length===1?`${o[0]}px`:o.map(a=>`${a}px`).join(" ")}function E0({style:e,props:t}){const n=G.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=G.useMemo(()=>`email-accordion-${Math.random().toString(36).slice(2,9)}`,[]),a=`${o}-content`,i=e==null?void 0:e.padding,r=e==null?void 0:e.margin,l=((r==null?void 0:r.left)??0)+((r==null?void 0:r.right)??0),s=t==null?void 0:t.activeBorderColor,c=e==null?void 0:e.borderColor,u=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},p=`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`,d=N0(e==null?void 0:e.borderRadius),h=Hr(c),m=Hr(s),b=h||m,v={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",borderRadius:d,margin:r?`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`:void 0,boxShadow:"none"};(e==null?void 0:e.borderRadius)!=null&&(v.overflow="hidden"),b?(v.padding=p,h?v.background=c:c&&(v.borderStyle="solid",v.borderColor=c,v.borderWidth=p)):c&&(v.borderStyle="solid",v.borderColor=c,v.borderWidth=p);const k={background:(e==null?void 0:e.backgroundColor)??(b?"#ffffff":void 0),borderRadius:b?R0(d,u):void 0,padding:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,overflow:b&&(e==null?void 0:e.borderRadius)!=null?"hidden":void 0},S=[];return s&&(m?S.push(`#${o}:checked + .email-accordion-root { background:${s}; border-style:none; padding:${p}; }`):S.push(`#${o}:checked + .email-accordion-root { background:none; border-style:solid; border-color:${s}; border-width:${p}; ${b?"padding:0;":""} }`)),g.jsxs("div",{className:"accordion-block",style:{marginBottom:(e==null?void 0:e.marginBottom)!=null?`${e.marginBottom}px`:"5px"},children:[g.jsx("style",{children:`
|
|
231
231
|
.email-accordion-root { width:100%; }
|
|
232
232
|
.email-accordion-toggle { display:none; }
|
|
233
233
|
.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; }
|
|
@@ -265,13 +265,13 @@ ${N}
|
|
|
265
265
|
.pacc-detail{display:none;background:${H};border:${j}px solid ${F};border-radius:${O}px;padding:${q}px;box-sizing:border-box;box-shadow:${B}}
|
|
266
266
|
@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}}
|
|
267
267
|
${Ee}
|
|
268
|
-
`;return g.jsxs("div",{style:ee,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:we}}),n.map((me,ne)=>g.jsx("input",{type:"radio",name:o,id:`${o}-cb${ne}`,className:"pacc-cb",defaultChecked:ne===i},ne)),g.jsx("div",{className:"pacc-wrap",children:n.map((me,ne)=>g.jsxs("div",{className:"pacc-item",children:[g.jsxs("label",{htmlFor:`${o}-cb${ne}`,className:"pacc-card",children:[(me.cardChildrenIds??[]).map(V=>g.jsx(ve,{id:V},V)),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:(me.detailChildrenIds??[]).map(V=>g.jsx(ve,{id:V},V))})]},ne))})]})}const O0=C({label:x().optional().nullable(),contentChildrenIds:W(x()).optional().nullable()}),L0=C({responsive:Te,style:C({backgroundColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderRadius:D([f(),x(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),padding:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),margin:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),tabActiveColor:x().optional().nullable(),tabTextColor:x().optional().nullable(),tabBgColor:x().optional().nullable(),tabGap:f().optional().nullable(),contentGap:f().optional().nullable(),navBorderColor:x().optional().nullable(),navWidth:f().optional().nullable(),fontSize:D([x(),f()]).optional().nullable(),lineHeight:D([x(),f()]).optional().nullable(),activeFontSize:D([x(),f()]).optional().nullable(),showActiveBorder:P().optional().nullable(),fontFamily:x().optional().nullable(),fontWeight:x().optional().nullable()}).optional().nullable(),props:C({orientation:I(["horizontal","vertical"]).optional().nullable(),orientationTablet:I(["horizontal","vertical"]).optional().nullable(),orientationMobile:I(["horizontal","vertical"]).optional().nullable(),behavior:I(["showSelectedSection","scrollToSelectedSection"]).optional().nullable(),activeTabIndex:f().optional().nullable(),stickyNav:P().optional().nullable(),items:W(O0).min(1).max(20).optional().nullable()}).optional().nullable()}),Xe=[{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'}],z0={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]},j0=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`};`${Object.entries(z0).map(([e,t])=>`family=${j0(e,t)}`).join("&")}`;const
|
|
268
|
+
`;return g.jsxs("div",{style:ee,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:we}}),n.map((me,ne)=>g.jsx("input",{type:"radio",name:o,id:`${o}-cb${ne}`,className:"pacc-cb",defaultChecked:ne===i},ne)),g.jsx("div",{className:"pacc-wrap",children:n.map((me,ne)=>g.jsxs("div",{className:"pacc-item",children:[g.jsxs("label",{htmlFor:`${o}-cb${ne}`,className:"pacc-card",children:[(me.cardChildrenIds??[]).map(V=>g.jsx(ve,{id:V},V)),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:(me.detailChildrenIds??[]).map(V=>g.jsx(ve,{id:V},V))})]},ne))})]})}const O0=C({label:x().optional().nullable(),contentChildrenIds:W(x()).optional().nullable()}),L0=C({responsive:Te,style:C({backgroundColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderRadius:D([f(),x(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),padding:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),margin:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),tabActiveColor:x().optional().nullable(),tabTextColor:x().optional().nullable(),tabBgColor:x().optional().nullable(),tabGap:f().optional().nullable(),contentGap:f().optional().nullable(),navBorderColor:x().optional().nullable(),navWidth:f().optional().nullable(),fontSize:D([x(),f()]).optional().nullable(),lineHeight:D([x(),f()]).optional().nullable(),activeFontSize:D([x(),f()]).optional().nullable(),showActiveBorder:P().optional().nullable(),fontFamily:x().optional().nullable(),fontWeight:x().optional().nullable()}).optional().nullable(),props:C({orientation:I(["horizontal","vertical"]).optional().nullable(),orientationTablet:I(["horizontal","vertical"]).optional().nullable(),orientationMobile:I(["horizontal","vertical"]).optional().nullable(),behavior:I(["showSelectedSection","scrollToSelectedSection"]).optional().nullable(),activeTabIndex:f().optional().nullable(),stickyNav:P().optional().nullable(),items:W(O0).min(1).max(20).optional().nullable()}).optional().nullable()}),Xe=[{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'}],z0={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]},j0=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`};`${Object.entries(z0).map(([e,t])=>`family=${j0(e,t)}`).join("&")}`;const pl=Xe.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));pl.map(e=>e.css);const B0=e=>e.replace(/"/g,'\\"'),D0=e=>((e||"").split(",")[0]||"").replace(/['"]/g,"").trim().toLowerCase();new Set(Xe.filter(e=>e.key!=="inherit").map(e=>D0(e.value)));const Fr=Xe.find(e=>e.key==="INTER");Fr&&Fr.value;pl.map(e=>{const t=B0(e.css);return`
|
|
269
269
|
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
|
|
270
270
|
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
|
|
271
271
|
content: '${e.label}';
|
|
272
272
|
font-family: ${e.css};
|
|
273
273
|
}`}).join(`
|
|
274
|
-
`);function H0(e){if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function F0(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 Gr(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const G0={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},U0={display:"inline-block",minWidth:0,maxWidth:"100%",overflowWrap:"break-word",wordBreak:"break-word"};function bo(e,t,n,o,a,i){if(t==="horizontal")return`${e}{display:block}${e} .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;width:100%;border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent);border-right:0}${e} .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:${a};margin-left:0}`;const r=i?`${i}px`:void 0,l=`var(--ahd-tabs-nav-width,${r??"minmax(0,max-content)"})`,s=`width:var(--ahd-tabs-nav-width,${r??"auto"});max-width:var(--ahd-tabs-nav-width,${r??"40%"})`;return`${e}{display:grid;grid-template-columns:${l} minmax(0,1fr);column-gap:${a};align-items:start}${e} .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;${s};min-width:0;overflow:visible;border-right:${n} solid var(--ahd-tabs-nav-border,transparent);border-bottom:0}${e} .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:anywhere;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 Z0({style:e,props:t}){const n=(t==null?void 0:t.orientation)??"horizontal",o=(t==null?void 0:t.orientationTablet)??n,a=(t==null?void 0:t.orientationMobile)??o,r=((t==null?void 0:t.behavior)??"showSelectedSection")==="scrollToSelectedSection",l=(t==null?void 0:t.stickyNav)??!1,s=G.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Tab 1",contentChildrenIds:[]}],[t==null?void 0:t.items]),c=G.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),u=(e==null?void 0:e.tabActiveColor)??void 0,p=(e==null?void 0:e.tabTextColor)??void 0,d=(e==null?void 0:e.tabBgColor)??"transparent",h=(e==null?void 0:e.navBorderColor)??void 0,m=h?"2px":"0px",b=(e==null?void 0:e.tabGap)!=null?`${e.tabGap}px`:"0px",v=(e==null?void 0:e.contentGap)!=null?`${e.contentGap}px`:"0px",k=String((e==null?void 0:e.navWidth)??160),S="var(--ahd-tabs-tab-gap,"+b+")",$="var(--ahd-tabs-content-gap,"+v+")",w=(e==null?void 0:e.activeFontSize)!=null?Gr(e.activeFontSize):void 0,N=(e==null?void 0:e.showActiveBorder)??!0?u||"currentColor":"transparent",A=e==null?void 0:e.padding,y=e==null?void 0:e.margin,R=((y==null?void 0:y.left)??0)+((y==null?void 0:y.right)??0),M={width:R>0?`calc(100% - ${R}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:F0(e==null?void 0:e.borderRadius),padding:A?`${A.top}px ${A.right}px ${A.bottom}px ${A.left}px`:void 0,margin:y?`${y.top}px ${y.right}px ${y.bottom}px ${y.left}px`:void 0,fontFamily:H0(e==null?void 0:e.fontFamily),fontSize:Gr(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:p,"--ahd-tabs-nav-border":h??"transparent"},T=()=>s.map((j,O)=>g.jsx("input",{type:"radio",id:`${c}-r${O}`,name:c,className:"ahd-tabs-radio",defaultChecked:O===0,style:G0},O)),L=G.useMemo(()=>{const j=`.${c}`,O=u||"currentColor";let B=`${j} .ahd-tabs-label{color:${p||"inherit"}}`+(r?"":`${j} .ahd-tabs-panel{display:none}`);return s.forEach((Y,de)=>{const oe=`#${c}-r${de}:checked`,ee=`${oe} ~ .ahd-tabs-nav .ahd-tabs-label:nth-of-type(${de+1})`,Z=`${oe} ~ .ahd-tabs-panels .ahd-tabs-panel:nth-of-type(${de+1})`,J=`color:${O}!important;border-left-color:var(--ahd-tabs-active-border-color,${N})!important;border-bottom-color:var(--ahd-tabs-active-border-color,${N})!important`;B+=`${ee}{${J}}`,B+=`${ee} .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${w??"inherit"})!important}`,r||(B+=`${Z}{display:block!important}`)}),B+=bo(j,n,m,S,$,k),o!==n&&(B+=`${W0}{${bo(j,o,m,S,$,k)}}`),a!==o&&(B+=`${q0}{${bo(j,a,m,S,$,k)}}`),l&&(B+=`${j} .ahd-tabs-nav{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> ${j}){position:sticky;top:0;z-index:50}`),B},[s,c,u,p,w,N,n,o,a,r,m,k,S,$,l]),H=j=>r?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:j===0?void 0:$}:{width:"100%",minWidth:0,overflow:"hidden"},F=n==="vertical"?"ahd-tabs-o-v":"ahd-tabs-o-h";return g.jsxs("div",{className:`${c} ahd-tabs ${F}${l?" ahd-tabs-sticky":""}${r?" ahd-tabs-scroll-sections":""}`,style:M,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:L}}),T(),g.jsx("div",{className:"ahd-tabs-nav",style:{background:d,...l?{position:"sticky",top:0}:{}},children:s.map((j,O)=>g.jsx("label",{htmlFor:`${c}-r${O}`,className:"ahd-tabs-label","data-ahd-tab-index":O,style:{alignItems:"center",cursor:"pointer",padding:n==="vertical"?"10px 16px":"10px 18px",whiteSpace:"nowrap",transition:"color .15s ease,border-color .15s ease",userSelect:"none",position:"relative"},children:g.jsx("span",{className:"ahd-tabs-label-text",style:U0,children:j.label??`Tab ${O+1}`})},O))}),g.jsx("div",{className:"ahd-tabs-panels",children:s.map((j,O)=>g.jsx("div",{id:`${c}-panel-${O}`,className:"ahd-tabs-panel","data-ahd-tab-index":O,style:H(O),children:(j.contentChildrenIds??[]).map(q=>g.jsx(ve,{id:q},q))},O))})]})}const W0=`@media (max-width:${je}px)`,q0=`@media (max-width:${Ae}px)`,V0=C({contentChildrenIds:W(x()).optional().nullable()}),Y0=C({style:C({backgroundColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderRadius:D([f(),x(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),padding:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),margin:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),slideGap:f().optional().nullable(),arrowColor:x().optional().nullable(),arrowBgColor:x().optional().nullable(),arrowBorderColor:x().optional().nullable(),arrowSize:f().min(16).max(80).optional().nullable(),dotColor:x().optional().nullable(),dotActiveColor:x().optional().nullable(),dotSize:f().min(4).max(24).optional().nullable()}).optional().nullable(),props:C({slidesPerView:f().min(1).max(6).optional().nullable(),slidesPerViewTablet:f().min(1).max(6).optional().nullable(),slidesPerViewMobile:f().min(1).max(6).optional().nullable(),showArrows:P().optional().nullable(),showDots:P().optional().nullable(),autoplay:P().optional().nullable(),autoplayInterval:f().min(500).max(2e4).optional().nullable(),loop:P().optional().nullable(),transitionMs:f().min(0).max(3e3).optional().nullable(),items:W(V0).min(1).max(20).optional().nullable()}).optional().nullable()});function K0(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 J0="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",X0="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",Ur=({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 Q0({style:e,props:t}){const n=G.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],[t==null?void 0:t.items]),o=G.useMemo(()=>`carousel-${Math.random().toString(36).slice(2,9)}`,[]),a=Math.max(1,(t==null?void 0:t.slidesPerView)??1),i=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(a,2)),r=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,p=(t==null?void 0:t.loop)??!0,d=(t==null?void 0:t.transitionMs)??400,h=(e==null?void 0:e.slideGap)??16,m=(e==null?void 0:e.arrowColor)??"#262626",b=(e==null?void 0:e.arrowBgColor)??"#ffffff",v=(e==null?void 0:e.arrowBorderColor)??"rgba(0,0,0,.12)",k=(e==null?void 0:e.arrowSize)??40,S=(e==null?void 0:e.dotColor)??"#d4d4d4",$=(e==null?void 0:e.dotActiveColor)??"#262626",w=(e==null?void 0:e.dotSize)??8,_=Math.max(12,Math.min(40,Math.round(k*.5))),N=e==null?void 0:e.padding,A=e==null?void 0:e.margin,y=((A==null?void 0:A.left)??0)+((A==null?void 0:A.right)??0),R={width:y>0?`calc(100% - ${y}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:K0(e==null?void 0:e.borderRadius),padding:N?`${N.top}px ${N.right}px ${N.bottom}px ${N.left}px`:void 0,margin:A?`${A.top}px ${A.right}px ${A.bottom}px ${A.left}px`:void 0},M=G.useMemo(()=>{const F=`.${o}`,j=O=>`calc((100% - ${h*(O-1)}px) / ${O})`;return`${F} .ahd-carousel-viewport{overflow:hidden;width:100%}${F} .ahd-carousel-track{display:flex;gap:var(--ahd-carousel-slide-gap,${h}px);transition:transform ${d}ms ease;will-change:transform}${F} .ahd-carousel-slide{flex:0 0 ${j(a)};min-width:0;box-sizing:border-box}${F} .ahd-carousel-prev svg,${F} .ahd-carousel-next svg{width:var(--ahd-carousel-chevron-size,${_}px);height:var(--ahd-carousel-chevron-size,${_}px)}@media (max-width:${je}px){${F} .ahd-carousel-slide{flex-basis:${j(i)}}}@media (max-width:${Ae}px){${F} .ahd-carousel-slide{flex-basis:${j(r)}}}`},[o,h,d,a,i,r,_]),T={appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-arrow-size, ${k}px)`,height:`var(--ahd-carousel-arrow-size, ${k}px)`,minWidth:`var(--ahd-carousel-arrow-size, ${k}px)`,borderRadius:"50%",border:`1px solid ${v}`,backgroundColor:b,backgroundImage:"none",color:m,boxShadow:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,lineHeight:1,padding:0},L=Math.min(a,i,r),H=Math.max(1,n.length-L+1);return g.jsxs("div",{className:`${o} ahd-carousel`,style:R,"data-per-view":a,"data-per-view-tablet":i,"data-per-view-mobile":r,"data-autoplay":c?"1":"0","data-autoplay-interval":u,"data-loop":p?"1":"0",children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:M}}),g.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&g.jsx("button",{type:"button",className:"ahd-carousel-prev",style:T,"aria-label":"Previous slide",children:g.jsx(Ur,{d:J0,size:_})}),g.jsx("div",{className:"ahd-carousel-viewport",children:g.jsx("div",{className:"ahd-carousel-track",children:n.map((F,j)=>g.jsx("div",{className:"ahd-carousel-slide","data-ahd-slide-index":j,children:(F.contentChildrenIds??[]).map(O=>g.jsx(ve,{id:O},O))},j))})}),l&&g.jsx("button",{type:"button",className:"ahd-carousel-next",style:T,"aria-label":"Next slide",children:g.jsx(Ur,{d:X0,size:_})})]}),s&&H>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":$,children:Array.from({length:H}).map((F,j)=>g.jsx("button",{type:"button",className:"ahd-carousel-dot","data-ahd-dot-index":j,"aria-label":`Go to slide ${j+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:j===0?$:S,backgroundImage:"none"}},j))})]})}const ev=C({style:C({starColor:x().optional().nullable(),starEmptyColor:x().optional().nullable(),starSize:f().min(8).max(80).optional().nullable(),starGap:f().min(0).max(40).optional().nullable(),textColor:x().optional().nullable(),fontSize:D([x(),f()]).optional().nullable(),fontFamily:x().optional().nullable(),fontWeight:x().optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable(),padding:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),margin:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable()}).optional().nullable(),props:C({value:D([f(),x()]).optional().nullable(),max:D([f(),x()]).optional().nullable(),showValue:P().optional().nullable()}).optional().nullable()}),Zr="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 tv(e){if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function nv(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function ov({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:Zr})}),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:Zr})})})]})}function av({style:e,props:t}){const n=G.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),o=(k,S)=>{if(typeof k=="number")return Number.isFinite(k)?k:S;const $=parseFloat(String(k??""));return Number.isFinite($)?$:S},a=Math.max(1,Math.min(10,Math.round(o(t==null?void 0:t.max,5)))),i=Math.max(0,Math.min(a,o(t==null?void 0:t.value,0))),r=(t==null?void 0:t.showValue)??!0,l=(e==null?void 0:e.starColor)??"#facc15",s=(e==null?void 0:e.starEmptyColor)??"#e5e7eb",c=(e==null?void 0:e.starSize)??24,u=(e==null?void 0:e.starGap)??4,p=(e==null?void 0:e.textColor)??"#262626",d=(e==null?void 0:e.textAlign)??"left",h=e==null?void 0:e.padding,m=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:p,fontFamily:tv(e==null?void 0:e.fontFamily),fontSize:nv(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:h?`${h.top}px ${h.right}px ${h.bottom}px ${h.left}px`:void 0,margin:m?`${m.top}px ${m.right}px ${m.bottom}px ${m.left}px`:void 0,boxSizing:"border-box"},v=k=>{const S=i-k;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:a}).map((k,S)=>g.jsx(ov,{fillPct:v(S),size:c,filledColor:l,emptyColor:s},S))}),r&&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:["/",a]})]})]})}const rv=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),iv=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),lv=C({style:C({trackColor:x().optional().nullable(),fillColor:x().optional().nullable(),textColor:x().optional().nullable(),fontSize:D([x(),f()]).optional().nullable(),fontFamily:x().optional().nullable(),fontWeight:x().optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable(),barHeight:f().min(2).max(60).optional().nullable(),barRadius:f().min(0).max(40).optional().nullable(),circleSize:f().min(40).max(320).optional().nullable(),strokeWidth:f().min(2).max(40).optional().nullable(),stepSize:f().min(4).max(48).optional().nullable(),stepGap:f().min(0).max(40).optional().nullable(),padding:rv,margin:iv}).optional().nullable(),props:C({variant:I(["linear","circular","steps"]).optional().nullable(),value:D([f(),x()]).optional().nullable(),max:D([f(),x()]).optional().nullable(),showLabel:P().optional().nullable(),labelFormat:I(["percent","fraction"]).optional().nullable(),steps:f().min(2).max(20).optional().nullable(),striped:P().optional().nullable(),animated:P().optional().nullable()}).optional().nullable()});function sv(e){if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function cv(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function Wr(e,t){if(typeof e=="number")return Number.isFinite(e)?e:t;const n=parseFloat(String(e??""));return Number.isFinite(n)?n:t}function qr(e,t,n,o){return o==="fraction"?`${Number.isInteger(t)?t:t.toFixed(1)}/${n}`:`${Math.round(e)}%`}function uv({pct:e,label:t,trackColor:n,fillColor:o,barHeight:a,barRadius:i,striped:r,animated:l,ariaLabel:s,value:c,max:u}){return g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,width:"100%"},children:[l&&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:a,borderRadius:i,backgroundColor:n,overflow:"hidden",boxSizing:"border-box"},children:g.jsx("div",{className:`ahd-progress-fill${r?" ahd-progress-striped":""}${l?" ahd-progress-animated":""}`,style:{width:`${e}%`,height:"100%",borderRadius:i,backgroundColor:o,backgroundImage:r||l?"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:r||l?"1rem 1rem":void 0,transition:"width 300ms ease"}})}),t!=null&&g.jsx("span",{children:t})]})}function dv({pct:e,label:t,trackColor:n,fillColor:o,size:a,strokeWidth:i,textColor:r,ariaLabel:l,value:s,max:c}){const u=(a-i)/2,p=2*Math.PI*u,d=p*(1-e/100),h=a/2;return g.jsxs("div",{className:"ahd-progress-circular",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":c,"aria-label":l,style:{position:"relative",width:a,height:a,display:"inline-flex"},children:[g.jsxs("svg",{width:a,height:a,viewBox:`0 0 ${a} ${a}`,children:[g.jsx("circle",{cx:h,cy:h,r:u,fill:"none",stroke:n,strokeWidth:i}),g.jsx("circle",{cx:h,cy:h,r:u,fill:"none",stroke:o,strokeWidth:i,strokeLinecap:"round",strokeDasharray:p,strokeDashoffset:d,transform:`rotate(-90 ${h} ${h})`,style:{transition:"stroke-dashoffset 300ms ease"}})]}),t!=null&&g.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:r,fontWeight:600},children:t})]})}function hv({steps:e,activeIndex:t,trackColor:n,fillColor:o,stepSize:a,stepGap:i,label:r,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,p)=>g.jsx("span",{"data-active":p<t?"true":"false",style:{width:a,height:a,borderRadius:"50%",backgroundColor:p<t?o:n,transition:"background-color 200ms ease",display:"inline-block"}},p))}),r!=null&&g.jsx("span",{children:r})]})}function fv({style:e,props:t}){const n=G.useMemo(()=>`progress-${Math.random().toString(36).slice(2,9)}`,[]),o=(t==null?void 0:t.variant)??"linear",a=Math.max(1,Wr(t==null?void 0:t.max,100)),i=Math.max(0,Math.min(a,Wr(t==null?void 0:t.value,0))),r=i/a*100,l=(t==null?void 0:t.showLabel)??!0,s=(t==null?void 0:t.labelFormat)??"percent",c=l?qr(r,i,a,s):null,u=`Progress: ${qr(r,i,a,"percent")}`,p=(e==null?void 0:e.trackColor)??"#e5e7eb",d=(e==null?void 0:e.fillColor)??"#3F73FF",h=(e==null?void 0:e.textColor)??"#262626",m=(e==null?void 0:e.textAlign)??"left",b=e==null?void 0:e.padding,v=e==null?void 0:e.margin,k={display:"flex",justifyContent:m==="center"?"center":m==="right"?"flex-end":"flex-start",color:h,fontFamily:sv(e==null?void 0:e.fontFamily),fontSize:cv((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:v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:void 0,boxSizing:"border-box"},S=Math.max(2,Math.min(20,Math.round((t==null?void 0:t.steps)??5))),$=Math.round(r/100*S);return g.jsx("div",{className:`${n} ahd-progress progress-block`,style:k,children:o==="circular"?g.jsx(dv,{pct:r,label:c,trackColor:p,fillColor:d,size:(e==null?void 0:e.circleSize)??96,strokeWidth:(e==null?void 0:e.strokeWidth)??8,textColor:h,ariaLabel:u,value:i,max:a}):o==="steps"?g.jsx(hv,{steps:S,activeIndex:$,trackColor:p,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:a}):g.jsx(uv,{pct:r,label:c,trackColor:p,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:a})})}const pv=C({responsive:Te,style:C({backgroundColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderWidth:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),borderRadius:D([f(),x(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),padding:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),margin:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),itemGap:f().min(0).max(200).optional().nullable(),viewportHeight:f().min(40).max(1200).optional().nullable()}).optional().nullable(),props:C({direction:I(["left","right","up","down"]).optional().nullable(),speed:f().min(5).max(200).optional().nullable(),pauseOnHover:P().optional().nullable(),repeat:f().min(2).max(6).optional().nullable(),fadeEdges:P().optional().nullable(),verticalAlign:I(["top","middle","bottom"]).optional().nullable(),items:W(C({contentChildrenIds:W(x()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),mv=40,gv=32,bv=200,pl=(e,t)=>typeof e=="number"?Math.max(40,Math.min(1200,e)):t,ml=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,vv=e=>Math.max(2,Math.round(1200/e)),xv=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),gl=e=>e==="up"||e==="down",Sv=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",Dn=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function wv(e,t){return{speed:ml(t==null?void 0:t.speed,mv),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??gv,viewportHeight:pl(e==null?void 0:e.viewportHeight,bv)}}function kv(e,t,n){var a,i,r,l,s;const o=e==null?void 0:e[t];return{speed:ml((a=o==null?void 0:o.props)==null?void 0:a.speed,n.speed),pauseOnHover:((i=o==null?void 0:o.props)==null?void 0:i.pauseOnHover)??n.pauseOnHover,fadeEdges:((r=o==null?void 0:o.props)==null?void 0:r.fadeEdges)??n.fadeEdges,itemGap:((l=o==null?void 0:o.style)==null?void 0:l.itemGap)??n.itemGap,viewportHeight:pl((s=o==null?void 0:o.style)==null?void 0:s.viewportHeight,n.viewportHeight)}}const _v=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},Vr=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${vv(e.speed)}s;--ahd-mq-height:${e.viewportHeight}px;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,$v=(e,t)=>e.fadeEdges?`-webkit-mask-image:${Dn(t)}!important;mask-image:${Dn(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function Cv({instanceId:e,direction:t,repeat:n,desktop:o,responsive:a,verticalAlign:i}){const r=`.${e}`,l=gl(t),s=l?"column":"row",c=t==="right"||t==="down"?"reverse":"normal",u=l?"flex-start":Sv(i),p=100/n,d=l?`@keyframes ${e}-kf{from{transform:translateY(0)}to{transform:translateY(-${p}%)}}`:`@keyframes ${e}-kf{from{transform:translateX(0)}to{transform:translateX(-${p}%)}}`,h=(b,v)=>{if(!_v(a,v))return"";const k=kv(a,v,o);return`${b}{${r}{${Vr(k)};${$v(k,l)}}}`},m=l?`${r} .ahd-marquee-viewport{height:var(--ahd-mq-height);overflow:hidden;position:relative}`:`${r} .ahd-marquee-viewport{overflow:hidden;position:relative;max-width:100%}`;return d+`${r}{${Vr(o)}}`+m+`${r} .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}${r} .ahd-marquee-group{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);flex:0 0 auto;align-items:${u}}${r} .ahd-marquee-item{flex:0 0 auto;${l?"width:100%":""}}${r}:hover .ahd-marquee-track{animation-play-state:var(--ahd-mq-hover)}`+h(dn,"tablet")+h(Oe,"mobile")+`@media (prefers-reduced-motion: reduce){${r} .ahd-marquee-track{animation:none}}`}function Av(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 yv(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 Nv({style:e,props:t,responsive:n}){const o=G.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),a=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],i=(t==null?void 0:t.direction)??"left",r=xv(t==null?void 0:t.repeat),l=gl(i),s=wv(e,t),c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,p=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:p>0?`calc(100% - ${p}px)`:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden",position:"relative",background:(e==null?void 0:e.backgroundColor)??void 0,...yv(e==null?void 0:e.borderColor,e==null?void 0:e.borderWidth),borderRadius:Av(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:Dn(l),maskImage:Dn(l)}:{}},h=(t==null?void 0:t.verticalAlign)??"middle",m=G.useMemo(()=>Cv({instanceId:o,direction:i,repeat:r,desktop:s,responsive:n,verticalAlign:h}),[o,i,r,s.speed,s.pauseOnHover,s.fadeEdges,s.itemGap,s.viewportHeight,n,h]),b=v=>g.jsx("div",{className:"ahd-marquee-group","aria-hidden":v>0?!0:void 0,children:a.map((k,S)=>g.jsx("div",{className:"ahd-marquee-item",children:(k.contentChildrenIds??[]).map($=>g.jsx(ve,{id:$},$))},S))},v);return g.jsxs("div",{className:`${o} ahd-marquee`,style:d,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:m}}),g.jsx("div",{className:"ahd-marquee-viewport",children:g.jsx("div",{className:"ahd-marquee-track",children:Array.from({length:r}).map((v,k)=>b(k))})})]})}const Rv=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),Ev=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),Iv=C({style:C({backgroundColor:x().optional().nullable(),textColor:x().optional().nullable(),accentColor:x().optional().nullable(),numberColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderRadius:D([f(),x(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),padding:Rv,margin:Ev}).optional().nullable(),props:C({layout:I(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:x().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:P().default(!0),expiredBehavior:I(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:x().default("Offer has ended")}).optional().nullable()});function Mv(e){return String(Math.max(0,e)).padStart(2,"0")}function Tv({days:e,hours:t,minutes:n,seconds:o,showLabels:a,accentColor:i,textColor:r,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:Mv(c.value)}),a&&g.jsx("span",{style:{fontSize:11,color:r??"#6b7280",textTransform:"uppercase"},children:c.label})]},c.label))})}function Pv(e){return String(Math.max(0,e)).padStart(2,"0")}const Wo=26,Yr=2*Math.PI*Wo;function Ov({value:e,max:t,accentColor:n,numberColor:o,unit:a}){const i=t>0?Math.min(1,Math.max(0,e/t)):0,r=Yr*(1-i);return g.jsxs("svg",{"data-ahd-timer-unit":a,"data-ahd-timer-max":t,width:64,height:64,viewBox:"0 0 64 64",children:[g.jsx("circle",{cx:32,cy:32,r:Wo,fill:"none",stroke:"#e5e7eb",strokeWidth:5}),g.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:Wo,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:Yr,strokeDashoffset:r,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:700,fill:o,children:Pv(e)})]})}function Lv({days:e,hours:t,minutes:n,seconds:o,showLabels:a,accentColor:i,textColor:r,numberColor:l}){const s=i??"#7c3aed",c=l??"#1f1f1f",u=[{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:u.map(p=>g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[g.jsx(Ov,{value:p.value,max:p.max,accentColor:s,numberColor:c,unit:p.label.toLowerCase()}),a&&g.jsx("span",{style:{fontSize:11,color:r??"#6b7280",textTransform:"uppercase"},children:p.label})]},p.label))})}function vt(e){return String(Math.max(0,e)).padStart(2,"0")}function zv({days:e,hours:t,minutes:n,seconds:o,showLabels:a,accentColor:i,textColor:r}){const l=[{key:"days",text:a?`${e}d`:vt(e)},{key:"hours",text:a?`${vt(t)}h`:vt(t)},{key:"minutes",text:a?`${vt(n)}m`:vt(n)},{key:"seconds",text:a?`${vt(o)}s`:vt(o)}],s=a?" ":" : ";return g.jsxs("div",{className:"ahd-timer-inline","data-ahd-timer-show-labels":a?"1":"0",style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:16,fontWeight:600,color:r??"#1f1f1f"},children:[g.jsx("span",{style:{color:i??"#7c3aed",marginRight:6},children:"Ends in"}),l.map((c,u)=>g.jsxs(G.Fragment,{children:[u>0&&s,g.jsx("span",{"data-ahd-timer-unit":c.key,children:c.text})]},c.key))]})}function jv(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 Bv(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),a=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:a}}function Dv({style:e,props:t}){const n=t??{},o=n.layout??"digitalFlip",a=n.showLabels??!0,i=n.expiredBehavior??"showMessage",r=n.expiredMessage||"Offer has ended",l=Bv(n.targetDate),s=l.completed,c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,p=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:p>0?`calc(100% - ${p}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:jv(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},h={days:l.days,hours:l.hours,minutes:l.minutes,seconds:l.seconds,showLabels:a,accentColor:e==null?void 0:e.accentColor,textColor:e==null?void 0:e.textColor,numberColor:e==null?void 0:e.numberColor},m=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":r,"data-ahd-timer-show-labels":a?"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:m?void 0:"none"},children:r}),g.jsxs("div",{"data-ahd-timer-body":!0,style:{display:m?"none":void 0},children:[o==="digitalFlip"&&g.jsx(Tv,{...h}),o==="circularProgress"&&g.jsx(Lv,{...h}),o==="textInline"&&g.jsx(zv,{...h})]})]})}const Hv=I(["left","center","right","space-between"]),Fv=C({contentChildrenIds:W(x()).optional().nullable()}),Gv=C({childrenIds:W(x())}),Uv=C({style:C({backgroundColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderRadius:D([f(),x(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),padding:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),margin:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),itemGap:f().min(0).max(120).optional().nullable(),columnsGap:f().min(0).max(120).optional().nullable(),rowsGap:f().min(0).max(120).optional().nullable(),controlGap:f().min(0).max(120).optional().nullable(),controlAlign:Hv.optional().nullable(),buttonSize:f().min(20).max(72).optional().nullable(),buttonGap:f().min(0).max(40).optional().nullable(),buttonRadius:f().min(0).max(999).optional().nullable(),buttonBg:x().optional().nullable(),buttonColor:x().optional().nullable(),buttonBorderColor:x().optional().nullable(),activeButtonBg:x().optional().nullable(),activeButtonColor:x().optional().nullable(),activeButtonBorderColor:x().optional().nullable(),arrowColor:x().optional().nullable(),fontSize:f().min(8).max(40).optional().nullable(),fontFamily:x().optional().nullable()}).optional().nullable(),props:C({items:W(Fv).min(1).max(50).optional().nullable(),cells:W(Gv).optional().nullable(),columnsCount:f().int().min(1).max(12).optional().nullable(),rowsCount:f().int().min(1).max(24).optional().nullable(),columnsCountTablet:f().int().min(1).max(12).optional().nullable(),columnsCountMobile:f().int().min(1).max(12).optional().nullable(),rowsCountTablet:f().int().min(1).max(24).optional().nullable(),rowsCountMobile:f().int().min(1).max(24).optional().nullable(),contentAlignment:I(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:I(["left","center","right"]).optional().nullable(),cellsPerPage:f().int().min(1).max(100).optional().nullable(),repeatableEnabled:P().optional().nullable(),pageParam:x().min(1).max(40).optional().nullable(),syncUrl:P().optional().nullable(),showNumbers:P().optional().nullable(),showPrevNext:P().optional().nullable(),showFirstLast:P().optional().nullable(),maxVisiblePages:f().min(0).max(50).optional().nullable(),prevLabel:x().max(24).optional().nullable(),nextLabel:x().max(24).optional().nullable(),firstLabel:x().max(24).optional().nullable(),lastLabel:x().max(24).optional().nullable(),scrollToTopOnChange:P().optional().nullable(),explicitFirstPage:P().optional().nullable()}).optional().nullable()}),qo={columnsCount:2,rowsCount:2};function vo(e,t="desktop"){const n=qo,o=(e==null?void 0:e.columnsCount)??n.columnsCount,a=(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,r=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??a:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??a:a;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*a,i*r,l.length),c=Array.from({length:s},(u,p)=>{var d;return{childrenIds:Array.isArray((d=l[p])==null?void 0:d.childrenIds)?l[p].childrenIds:[]}});return{columnsCount:i,rowsCount:r,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)??qo.columnsCount,o=(e==null?void 0:e.rowsCount)??qo.rowsCount,a=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,a*i)}function Zv(e,t,n){const o=Math.max(1,e),a=Math.min(Math.max(1,n),o*Math.max(1,t));return Math.max(1,Math.ceil(a/o))}function Wv(e,t){const n=Math.max(1,t);if(e.length===0)return[[]];const o=[];for(let a=0;a<e.length;a+=n)o.push(e.slice(a,a+n));return o}const qv={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 Vv({style:e,props:t}){const n=qv;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 Yv(e){return Math.max(1,e)}function Kv(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,c)=>c+1);const o=[],a=Math.max(1,n-2),i=Math.floor(a/2);let r=Math.max(2,e-i),l=Math.min(t-1,r+a-1);r=Math.max(2,Math.min(r,l-a+1)),o.push(1),r>2&&o.push("ellipsis");for(let s=r;s<=l;s++)o.push(s);return l<t-1&&o.push("ellipsis"),o.push(t),o}function Jv(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 Xv({style:e,props:t}){const n=Vv({style:e,props:t}),o=vo(t,"desktop"),a=vo(t,"tablet"),i=vo(t,"mobile"),r=Math.max(xo(t,"desktop"),xo(t,"tablet"),xo(t,"mobile")),l=G.useMemo(()=>o.cells.length>=r?o.cells:Array.from({length:r},(A,y)=>o.cells[y]??{childrenIds:[]}),[o.cells,r]),s=G.useMemo(()=>Wv(l,r),[l,r]),c=Yv(s.length),u=(e==null?void 0:e.columnsGap)??n.itemGap,p=(e==null?void 0:e.rowsGap)??n.itemGap,d=G.useMemo(()=>`pgn-${Math.random().toString(36).slice(2,9)}`,[]),h=G.useMemo(()=>Kv(1,c,n.maxVisiblePages),[c,n.maxVisiblePages]),m=e==null?void 0:e.padding,b=e==null?void 0:e.margin,v=((b==null?void 0:b.left)??0)+((b==null?void 0:b.right)??0),k={width:v>0?`calc(100% - ${v}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:Jv(e==null?void 0:e.borderRadius),padding:m?`${m.top}px ${m.right}px ${m.bottom}px ${m.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",$={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={...$,color:n.arrowColor},_=G.useMemo(()=>{const A=M=>`grid-template-columns:repeat(${M.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${Zv(M.columnsCount,M.rowsCount,r)},auto)`,y=(M,T)=>{const L=Math.min(Math.max(1,T.columnsCount*T.rowsCount),Math.max(1,r));return L>=r?"":`${M} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${L+1}){display:none}`},R=`.${d}`;return`${R} .ahd-pgn-item{display:grid;${A(o)};column-gap:${u}px;row-gap:${p}px}${R} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+y(R,o)+`@media (max-width:${je}px){${R} .ahd-pgn-item{${A(a)}}${R} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+y(R,a)+`}@media (max-width:${Ae}px){${R} .ahd-pgn-item{${A(i)}}${R} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+y(R,i)+"}"},[d,o,a,i,r,u,p,n.itemGap]),N=(A,y,R)=>g.jsx("button",{type:"button",className:`ahd-pgn-btn ${A}`,"data-ahd-page":R,style:w,"aria-label":y,children:y});return g.jsxs("div",{className:`${d} ahd-pagination`,style:k,"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:_}}),g.jsx("div",{className:"ahd-pgn-content",style:{display:"flex",flexDirection:"column",gap:n.itemGap},children:s.map((A,y)=>g.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":y,style:y===0?void 0:{display:"none"},children:A.map((R,M)=>g.jsx("div",{className:"ahd-pgn-cell",children:(R.childrenIds??[]).map(T=>g.jsx(ve,{id:T},T))},M))},y))}),(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&&N("ahd-pgn-first",n.firstLabel,1),n.showPrevNext&&N("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:h.map((A,y)=>A==="ellipsis"?g.jsx("span",{className:"ahd-pgn-ellipsis",style:{...$,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${y}`):g.jsx("button",{type:"button",className:"ahd-pgn-btn ahd-pgn-number","data-ahd-page":A,"aria-label":`Page ${A}`,"aria-current":A===1?"true":void 0,style:A===1?{...$,backgroundColor:n.activeButtonBg,color:n.activeButtonColor,border:`1px solid ${n.activeButtonBorderColor}`}:$,children:A},A))}),n.showPrevNext&&N("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&N("ahd-pgn-last",n.lastLabel,c)]})]})}const Qv=C({responsive:Te,style:C({padding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),margin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable(),tableAlign:I(["left","center","right"]).optional().nullable(),fontSize:f().optional().nullable(),fontFamily:x().optional().nullable(),color:x().optional().nullable(),backgroundColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderWidth:f().optional().nullable(),cellPadding:f().optional().nullable(),headerBackground:x().optional().nullable(),headerColor:x().optional().nullable(),stripedRowColor:x().optional().nullable(),stripedColColor:x().optional().nullable()}).optional().nullable(),props:C({rows:f().int().min(1).max(50).optional().nullable(),columns:f().int().min(1).max(20).optional().nullable(),hasHeader:P().optional().nullable(),cells:W(x()).optional().nullable(),caption:x().optional().nullable(),width:x().optional().nullable(),enableScroll:P().optional().nullable(),enableScrollTablet:P().optional().nullable(),enableScrollMobile:P().optional().nullable()}).optional().nullable()}),Ze={rows:3,columns:3,hasHeader:!0,borderColor:"#e5e7eb",borderWidth:2,cellPadding:8,headerBackground:"#f3f4f6",headerColor:"#111827",color:"#262626",fontSize:14,stripedRowColor:"#F8F6F6"};function Ma(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function Ta(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function ex(e,t,n){return t?(typeof e=="string"?e.trim():"").length===0?n:typeof e=="string"?e:n:null}function tx(e){if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)??e}let nx=0;function bl(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function An(e){return e?bl(e)?`background: ${e} !important; background-color: transparent !important;`:`background-color: ${e} !important;`:""}function So(e){return e?bl(e)?[`background-image: ${e};`,"-webkit-background-clip: text;","background-clip: text;","-webkit-text-fill-color: transparent;","color: transparent;"].join(" "):`color: ${e};`:""}function ox({style:e,props:t,renderCell:n}){const o=Math.max(1,Math.min(50,(t==null?void 0:t.rows)??Ze.rows)),a=Math.max(1,Math.min(20,(t==null?void 0:t.columns)??Ze.columns)),i=(t==null?void 0:t.hasHeader)??Ze.hasHeader,r=(t==null?void 0:t.cells)??[],l=o*a,s=r.length===l?r:Array.from({length:l},(O,q)=>r[q]??""),c=(e==null?void 0:e.borderColor)??Ze.borderColor,u=(e==null?void 0:e.borderWidth)??Ze.borderWidth,p=(e==null?void 0:e.cellPadding)??Ze.cellPadding,d=(e==null?void 0:e.headerBackground)??Ze.headerBackground,h=(e==null?void 0:e.headerColor)??Ze.headerColor,m=(e==null?void 0:e.color)??Ze.color,b=(e==null?void 0:e.fontSize)??Ze.fontSize,v=(e==null?void 0:e.backgroundColor)??null,k=(e==null?void 0:e.stripedRowColor)===void 0?Ze.stripedRowColor:e.stripedRowColor,S=(e==null?void 0:e.stripedColColor)??null,$=`ahd-table-${++nx}`,w={padding:Ma(e==null?void 0:e.padding),margin:Ta(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},_=tx(e==null?void 0:e.fontFamily),N={borderCollapse:"collapse",width:(t==null?void 0:t.width)||"100%",fontSize:b,textAlign:(e==null?void 0:e.textAlign)??void 0},A={border:`${u}px solid ${c}`,padding:p,verticalAlign:"top"},y=_?`.${$}, .${$} * { font-family: ${_} !important; }`:"",R=k?`.${$} > tbody > tr:nth-child(even) > td { ${An(k)} }`:"",M=S?`.${$} > tbody > tr > td:nth-child(even) { ${An(S)} }`:"",T=`
|
|
274
|
+
`);function H0(e){if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function F0(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 Gr(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const G0={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},U0={display:"inline-block",minWidth:0,maxWidth:"100%",overflowWrap:"break-word",wordBreak:"break-word"};function bo(e,t,n,o,a,i){if(t==="horizontal")return`${e}{display:block}${e} .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;width:100%;border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent);border-right:0}${e} .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:${a};margin-left:0}`;const r=i?`${i}px`:void 0,l=`var(--ahd-tabs-nav-width,${r??"minmax(0,max-content)"})`,s=`width:var(--ahd-tabs-nav-width,${r??"auto"});max-width:var(--ahd-tabs-nav-width,${r??"40%"})`;return`${e}{display:grid;grid-template-columns:${l} minmax(0,1fr);column-gap:${a};align-items:start}${e} .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;${s};min-width:0;overflow:visible;border-right:${n} solid var(--ahd-tabs-nav-border,transparent);border-bottom:0}${e} .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:anywhere;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 Z0({style:e,props:t}){const n=(t==null?void 0:t.orientation)??"horizontal",o=(t==null?void 0:t.orientationTablet)??n,a=(t==null?void 0:t.orientationMobile)??o,r=((t==null?void 0:t.behavior)??"showSelectedSection")==="scrollToSelectedSection",l=(t==null?void 0:t.stickyNav)??!1,s=G.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Tab 1",contentChildrenIds:[]}],[t==null?void 0:t.items]),c=G.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),u=(e==null?void 0:e.tabActiveColor)??void 0,p=(e==null?void 0:e.tabTextColor)??void 0,d=(e==null?void 0:e.tabBgColor)??"transparent",h=(e==null?void 0:e.navBorderColor)??void 0,m=h?"2px":"0px",b=(e==null?void 0:e.tabGap)!=null?`${e.tabGap}px`:"0px",v=(e==null?void 0:e.contentGap)!=null?`${e.contentGap}px`:"0px",k=String((e==null?void 0:e.navWidth)??160),S="var(--ahd-tabs-tab-gap,"+b+")",$="var(--ahd-tabs-content-gap,"+v+")",w=(e==null?void 0:e.activeFontSize)!=null?Gr(e.activeFontSize):void 0,N=(e==null?void 0:e.showActiveBorder)??!0?u||"currentColor":"transparent",A=e==null?void 0:e.padding,y=e==null?void 0:e.margin,R=((y==null?void 0:y.left)??0)+((y==null?void 0:y.right)??0),M={width:R>0?`calc(100% - ${R}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:F0(e==null?void 0:e.borderRadius),padding:A?`${A.top}px ${A.right}px ${A.bottom}px ${A.left}px`:void 0,margin:y?`${y.top}px ${y.right}px ${y.bottom}px ${y.left}px`:void 0,fontFamily:H0(e==null?void 0:e.fontFamily),fontSize:Gr(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:p,"--ahd-tabs-nav-border":h??"transparent"},T=()=>s.map((j,O)=>g.jsx("input",{type:"radio",id:`${c}-r${O}`,name:c,className:"ahd-tabs-radio",defaultChecked:O===0,style:G0},O)),L=G.useMemo(()=>{const j=`.${c}`,O=u||"currentColor";let B=`${j} .ahd-tabs-label{color:${p||"inherit"}}`+(r?"":`${j} .ahd-tabs-panel{display:none}`);return s.forEach((Y,de)=>{const oe=`#${c}-r${de}:checked`,ee=`${oe} ~ .ahd-tabs-nav .ahd-tabs-label:nth-of-type(${de+1})`,Z=`${oe} ~ .ahd-tabs-panels .ahd-tabs-panel:nth-of-type(${de+1})`,J=`color:${O}!important;border-left-color:var(--ahd-tabs-active-border-color,${N})!important;border-bottom-color:var(--ahd-tabs-active-border-color,${N})!important`;B+=`${ee}{${J}}`,B+=`${ee} .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${w??"inherit"})!important}`,r||(B+=`${Z}{display:block!important}`)}),B+=bo(j,n,m,S,$,k),o!==n&&(B+=`${W0}{${bo(j,o,m,S,$,k)}}`),a!==o&&(B+=`${q0}{${bo(j,a,m,S,$,k)}}`),l&&(B+=`${j} .ahd-tabs-nav{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> ${j}){position:sticky;top:0;z-index:50}`),B},[s,c,u,p,w,N,n,o,a,r,m,k,S,$,l]),H=j=>r?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:j===0?void 0:$}:{width:"100%",minWidth:0,overflow:"hidden"},F=n==="vertical"?"ahd-tabs-o-v":"ahd-tabs-o-h";return g.jsxs("div",{className:`${c} ahd-tabs ${F}${l?" ahd-tabs-sticky":""}${r?" ahd-tabs-scroll-sections":""}`,style:M,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:L}}),T(),g.jsx("div",{className:"ahd-tabs-nav",style:{background:d,...l?{position:"sticky",top:0}:{}},children:s.map((j,O)=>g.jsx("label",{htmlFor:`${c}-r${O}`,className:"ahd-tabs-label","data-ahd-tab-index":O,style:{alignItems:"center",cursor:"pointer",padding:n==="vertical"?"10px 16px":"10px 18px",whiteSpace:"nowrap",transition:"color .15s ease,border-color .15s ease",userSelect:"none",position:"relative"},children:g.jsx("span",{className:"ahd-tabs-label-text",style:U0,children:j.label??`Tab ${O+1}`})},O))}),g.jsx("div",{className:"ahd-tabs-panels",children:s.map((j,O)=>g.jsx("div",{id:`${c}-panel-${O}`,className:"ahd-tabs-panel","data-ahd-tab-index":O,style:H(O),children:(j.contentChildrenIds??[]).map(q=>g.jsx(ve,{id:q},q))},O))})]})}const W0=`@media (max-width:${je}px)`,q0=`@media (max-width:${Ae}px)`,V0=C({contentChildrenIds:W(x()).optional().nullable()}),Y0=C({style:C({backgroundColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderRadius:D([f(),x(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),padding:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),margin:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),slideGap:f().optional().nullable(),arrowColor:x().optional().nullable(),arrowBgColor:x().optional().nullable(),arrowBorderColor:x().optional().nullable(),arrowSize:f().min(16).max(80).optional().nullable(),dotColor:x().optional().nullable(),dotActiveColor:x().optional().nullable(),dotSize:f().min(4).max(24).optional().nullable()}).optional().nullable(),props:C({slidesPerView:f().min(1).max(6).optional().nullable(),slidesPerViewTablet:f().min(1).max(6).optional().nullable(),slidesPerViewMobile:f().min(1).max(6).optional().nullable(),showArrows:P().optional().nullable(),showDots:P().optional().nullable(),autoplay:P().optional().nullable(),autoplayInterval:f().min(500).max(2e4).optional().nullable(),loop:P().optional().nullable(),transitionMs:f().min(0).max(3e3).optional().nullable(),items:W(V0).min(1).max(20).optional().nullable()}).optional().nullable()});function K0(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 J0="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",X0="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",Ur=({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 Q0({style:e,props:t}){const n=G.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],[t==null?void 0:t.items]),o=G.useMemo(()=>`carousel-${Math.random().toString(36).slice(2,9)}`,[]),a=Math.max(1,(t==null?void 0:t.slidesPerView)??1),i=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(a,2)),r=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,p=(t==null?void 0:t.loop)??!0,d=(t==null?void 0:t.transitionMs)??400,h=(e==null?void 0:e.slideGap)??16,m=(e==null?void 0:e.arrowColor)??"#262626",b=(e==null?void 0:e.arrowBgColor)??"#ffffff",v=(e==null?void 0:e.arrowBorderColor)??"rgba(0,0,0,.12)",k=(e==null?void 0:e.arrowSize)??40,S=(e==null?void 0:e.dotColor)??"#d4d4d4",$=(e==null?void 0:e.dotActiveColor)??"#262626",w=(e==null?void 0:e.dotSize)??8,_=Math.max(12,Math.min(40,Math.round(k*.5))),N=e==null?void 0:e.padding,A=e==null?void 0:e.margin,y=((A==null?void 0:A.left)??0)+((A==null?void 0:A.right)??0),R={width:y>0?`calc(100% - ${y}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:K0(e==null?void 0:e.borderRadius),padding:N?`${N.top}px ${N.right}px ${N.bottom}px ${N.left}px`:void 0,margin:A?`${A.top}px ${A.right}px ${A.bottom}px ${A.left}px`:void 0},M=G.useMemo(()=>{const F=`.${o}`,j=O=>`calc((100% - ${h*(O-1)}px) / ${O})`;return`${F} .ahd-carousel-viewport{overflow:hidden;width:100%}${F} .ahd-carousel-track{display:flex;gap:var(--ahd-carousel-slide-gap,${h}px);transition:transform ${d}ms ease;will-change:transform}${F} .ahd-carousel-slide{flex:0 0 ${j(a)};min-width:0;box-sizing:border-box}${F} .ahd-carousel-prev svg,${F} .ahd-carousel-next svg{width:var(--ahd-carousel-chevron-size,${_}px);height:var(--ahd-carousel-chevron-size,${_}px)}@media (max-width:${je}px){${F} .ahd-carousel-slide{flex-basis:${j(i)}}}@media (max-width:${Ae}px){${F} .ahd-carousel-slide{flex-basis:${j(r)}}}`},[o,h,d,a,i,r,_]),T={appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-arrow-size, ${k}px)`,height:`var(--ahd-carousel-arrow-size, ${k}px)`,minWidth:`var(--ahd-carousel-arrow-size, ${k}px)`,borderRadius:"50%",border:`1px solid ${v}`,backgroundColor:b,backgroundImage:"none",color:m,boxShadow:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,lineHeight:1,padding:0},L=Math.min(a,i,r),H=Math.max(1,n.length-L+1);return g.jsxs("div",{className:`${o} ahd-carousel`,style:R,"data-per-view":a,"data-per-view-tablet":i,"data-per-view-mobile":r,"data-autoplay":c?"1":"0","data-autoplay-interval":u,"data-loop":p?"1":"0",children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:M}}),g.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&g.jsx("button",{type:"button",className:"ahd-carousel-prev",style:T,"aria-label":"Previous slide",children:g.jsx(Ur,{d:J0,size:_})}),g.jsx("div",{className:"ahd-carousel-viewport",children:g.jsx("div",{className:"ahd-carousel-track",children:n.map((F,j)=>g.jsx("div",{className:"ahd-carousel-slide","data-ahd-slide-index":j,children:(F.contentChildrenIds??[]).map(O=>g.jsx(ve,{id:O},O))},j))})}),l&&g.jsx("button",{type:"button",className:"ahd-carousel-next",style:T,"aria-label":"Next slide",children:g.jsx(Ur,{d:X0,size:_})})]}),s&&H>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":$,children:Array.from({length:H}).map((F,j)=>g.jsx("button",{type:"button",className:"ahd-carousel-dot","data-ahd-dot-index":j,"aria-label":`Go to slide ${j+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:j===0?$:S,backgroundImage:"none"}},j))})]})}const ev=C({style:C({starColor:x().optional().nullable(),starEmptyColor:x().optional().nullable(),starSize:f().min(8).max(80).optional().nullable(),starGap:f().min(0).max(40).optional().nullable(),textColor:x().optional().nullable(),fontSize:D([x(),f()]).optional().nullable(),fontFamily:x().optional().nullable(),fontWeight:x().optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable(),padding:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),margin:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable()}).optional().nullable(),props:C({value:D([f(),x()]).optional().nullable(),max:D([f(),x()]).optional().nullable(),showValue:P().optional().nullable()}).optional().nullable()}),Zr="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 tv(e){if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function nv(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function ov({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:Zr})}),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:Zr})})})]})}function av({style:e,props:t}){const n=G.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),o=(k,S)=>{if(typeof k=="number")return Number.isFinite(k)?k:S;const $=parseFloat(String(k??""));return Number.isFinite($)?$:S},a=Math.max(1,Math.min(10,Math.round(o(t==null?void 0:t.max,5)))),i=Math.max(0,Math.min(a,o(t==null?void 0:t.value,0))),r=(t==null?void 0:t.showValue)??!0,l=(e==null?void 0:e.starColor)??"#facc15",s=(e==null?void 0:e.starEmptyColor)??"#e5e7eb",c=(e==null?void 0:e.starSize)??24,u=(e==null?void 0:e.starGap)??4,p=(e==null?void 0:e.textColor)??"#262626",d=(e==null?void 0:e.textAlign)??"left",h=e==null?void 0:e.padding,m=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:p,fontFamily:tv(e==null?void 0:e.fontFamily),fontSize:nv(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:h?`${h.top}px ${h.right}px ${h.bottom}px ${h.left}px`:void 0,margin:m?`${m.top}px ${m.right}px ${m.bottom}px ${m.left}px`:void 0,boxSizing:"border-box"},v=k=>{const S=i-k;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:a}).map((k,S)=>g.jsx(ov,{fillPct:v(S),size:c,filledColor:l,emptyColor:s},S))}),r&&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:["/",a]})]})]})}const rv=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),iv=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),lv=C({style:C({trackColor:x().optional().nullable(),fillColor:x().optional().nullable(),textColor:x().optional().nullable(),fontSize:D([x(),f()]).optional().nullable(),fontFamily:x().optional().nullable(),fontWeight:x().optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable(),barHeight:f().min(2).max(60).optional().nullable(),barRadius:f().min(0).max(40).optional().nullable(),circleSize:f().min(40).max(320).optional().nullable(),strokeWidth:f().min(2).max(40).optional().nullable(),stepSize:f().min(4).max(48).optional().nullable(),stepGap:f().min(0).max(40).optional().nullable(),padding:rv,margin:iv}).optional().nullable(),props:C({variant:I(["linear","circular","steps"]).optional().nullable(),value:D([f(),x()]).optional().nullable(),max:D([f(),x()]).optional().nullable(),showLabel:P().optional().nullable(),labelFormat:I(["percent","fraction"]).optional().nullable(),steps:f().min(2).max(20).optional().nullable(),striped:P().optional().nullable(),animated:P().optional().nullable()}).optional().nullable()});function sv(e){if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function cv(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function Wr(e,t){if(typeof e=="number")return Number.isFinite(e)?e:t;const n=parseFloat(String(e??""));return Number.isFinite(n)?n:t}function qr(e,t,n,o){return o==="fraction"?`${Number.isInteger(t)?t:t.toFixed(1)}/${n}`:`${Math.round(e)}%`}function uv({pct:e,label:t,trackColor:n,fillColor:o,barHeight:a,barRadius:i,striped:r,animated:l,ariaLabel:s,value:c,max:u}){return g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,width:"100%"},children:[l&&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:a,borderRadius:i,backgroundColor:n,overflow:"hidden",boxSizing:"border-box"},children:g.jsx("div",{className:`ahd-progress-fill${r?" ahd-progress-striped":""}${l?" ahd-progress-animated":""}`,style:{width:`${e}%`,height:"100%",borderRadius:i,backgroundColor:o,backgroundImage:r||l?"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:r||l?"1rem 1rem":void 0,transition:"width 300ms ease"}})}),t!=null&&g.jsx("span",{children:t})]})}function dv({pct:e,label:t,trackColor:n,fillColor:o,size:a,strokeWidth:i,textColor:r,ariaLabel:l,value:s,max:c}){const u=(a-i)/2,p=2*Math.PI*u,d=p*(1-e/100),h=a/2;return g.jsxs("div",{className:"ahd-progress-circular",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":c,"aria-label":l,style:{position:"relative",width:a,height:a,display:"inline-flex"},children:[g.jsxs("svg",{width:a,height:a,viewBox:`0 0 ${a} ${a}`,children:[g.jsx("circle",{cx:h,cy:h,r:u,fill:"none",stroke:n,strokeWidth:i}),g.jsx("circle",{cx:h,cy:h,r:u,fill:"none",stroke:o,strokeWidth:i,strokeLinecap:"round",strokeDasharray:p,strokeDashoffset:d,transform:`rotate(-90 ${h} ${h})`,style:{transition:"stroke-dashoffset 300ms ease"}})]}),t!=null&&g.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:r,fontWeight:600},children:t})]})}function hv({steps:e,activeIndex:t,trackColor:n,fillColor:o,stepSize:a,stepGap:i,label:r,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,p)=>g.jsx("span",{"data-active":p<t?"true":"false",style:{width:a,height:a,borderRadius:"50%",backgroundColor:p<t?o:n,transition:"background-color 200ms ease",display:"inline-block"}},p))}),r!=null&&g.jsx("span",{children:r})]})}function fv({style:e,props:t}){const n=G.useMemo(()=>`progress-${Math.random().toString(36).slice(2,9)}`,[]),o=(t==null?void 0:t.variant)??"linear",a=Math.max(1,Wr(t==null?void 0:t.max,100)),i=Math.max(0,Math.min(a,Wr(t==null?void 0:t.value,0))),r=i/a*100,l=(t==null?void 0:t.showLabel)??!0,s=(t==null?void 0:t.labelFormat)??"percent",c=l?qr(r,i,a,s):null,u=`Progress: ${qr(r,i,a,"percent")}`,p=(e==null?void 0:e.trackColor)??"#e5e7eb",d=(e==null?void 0:e.fillColor)??"#3F73FF",h=(e==null?void 0:e.textColor)??"#262626",m=(e==null?void 0:e.textAlign)??"left",b=e==null?void 0:e.padding,v=e==null?void 0:e.margin,k={display:"flex",justifyContent:m==="center"?"center":m==="right"?"flex-end":"flex-start",color:h,fontFamily:sv(e==null?void 0:e.fontFamily),fontSize:cv((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:v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:void 0,boxSizing:"border-box"},S=Math.max(2,Math.min(20,Math.round((t==null?void 0:t.steps)??5))),$=Math.round(r/100*S);return g.jsx("div",{className:`${n} ahd-progress progress-block`,style:k,children:o==="circular"?g.jsx(dv,{pct:r,label:c,trackColor:p,fillColor:d,size:(e==null?void 0:e.circleSize)??96,strokeWidth:(e==null?void 0:e.strokeWidth)??8,textColor:h,ariaLabel:u,value:i,max:a}):o==="steps"?g.jsx(hv,{steps:S,activeIndex:$,trackColor:p,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:a}):g.jsx(uv,{pct:r,label:c,trackColor:p,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:a})})}const pv=C({responsive:Te,style:C({backgroundColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderWidth:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),borderRadius:D([f(),x(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),padding:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),margin:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),itemGap:f().min(0).max(200).optional().nullable(),viewportHeight:f().min(40).max(1200).optional().nullable()}).optional().nullable(),props:C({direction:I(["left","right","up","down"]).optional().nullable(),speed:f().min(5).max(200).optional().nullable(),pauseOnHover:P().optional().nullable(),repeat:f().min(2).max(6).optional().nullable(),fadeEdges:P().optional().nullable(),verticalAlign:I(["top","middle","bottom"]).optional().nullable(),items:W(C({contentChildrenIds:W(x()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),mv=40,gv=32,bv=200,ml=(e,t)=>typeof e=="number"?Math.max(40,Math.min(1200,e)):t,gl=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,vv=e=>Math.max(2,Math.round(1200/e)),xv=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),bl=e=>e==="up"||e==="down",Sv=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",Dn=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function wv(e,t){return{speed:gl(t==null?void 0:t.speed,mv),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??gv,viewportHeight:ml(e==null?void 0:e.viewportHeight,bv)}}function kv(e,t,n){var a,i,r,l,s;const o=e==null?void 0:e[t];return{speed:gl((a=o==null?void 0:o.props)==null?void 0:a.speed,n.speed),pauseOnHover:((i=o==null?void 0:o.props)==null?void 0:i.pauseOnHover)??n.pauseOnHover,fadeEdges:((r=o==null?void 0:o.props)==null?void 0:r.fadeEdges)??n.fadeEdges,itemGap:((l=o==null?void 0:o.style)==null?void 0:l.itemGap)??n.itemGap,viewportHeight:ml((s=o==null?void 0:o.style)==null?void 0:s.viewportHeight,n.viewportHeight)}}const _v=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},Vr=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${vv(e.speed)}s;--ahd-mq-height:${e.viewportHeight}px;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,$v=(e,t)=>e.fadeEdges?`-webkit-mask-image:${Dn(t)}!important;mask-image:${Dn(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function Cv({instanceId:e,direction:t,repeat:n,desktop:o,responsive:a,verticalAlign:i}){const r=`.${e}`,l=bl(t),s=l?"column":"row",c=t==="right"||t==="down"?"reverse":"normal",u=l?"flex-start":Sv(i),p=100/n,d=l?`@keyframes ${e}-kf{from{transform:translateY(0)}to{transform:translateY(-${p}%)}}`:`@keyframes ${e}-kf{from{transform:translateX(0)}to{transform:translateX(-${p}%)}}`,h=(b,v)=>{if(!_v(a,v))return"";const k=kv(a,v,o);return`${b}{${r}{${Vr(k)};${$v(k,l)}}}`},m=l?`${r} .ahd-marquee-viewport{height:var(--ahd-mq-height);overflow:hidden;position:relative}`:`${r} .ahd-marquee-viewport{overflow:hidden;position:relative;max-width:100%}`;return d+`${r}{${Vr(o)}}`+m+`${r} .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}${r} .ahd-marquee-group{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);flex:0 0 auto;align-items:${u}}${r} .ahd-marquee-item{flex:0 0 auto;${l?"width:100%":""}}${r}:hover .ahd-marquee-track{animation-play-state:var(--ahd-mq-hover)}`+h(dn,"tablet")+h(Oe,"mobile")+`@media (prefers-reduced-motion: reduce){${r} .ahd-marquee-track{animation:none}}`}function Av(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 yv(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 Nv({style:e,props:t,responsive:n}){const o=G.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),a=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],i=(t==null?void 0:t.direction)??"left",r=xv(t==null?void 0:t.repeat),l=bl(i),s=wv(e,t),c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,p=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:p>0?`calc(100% - ${p}px)`:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden",position:"relative",background:(e==null?void 0:e.backgroundColor)??void 0,...yv(e==null?void 0:e.borderColor,e==null?void 0:e.borderWidth),borderRadius:Av(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:Dn(l),maskImage:Dn(l)}:{}},h=(t==null?void 0:t.verticalAlign)??"middle",m=G.useMemo(()=>Cv({instanceId:o,direction:i,repeat:r,desktop:s,responsive:n,verticalAlign:h}),[o,i,r,s.speed,s.pauseOnHover,s.fadeEdges,s.itemGap,s.viewportHeight,n,h]),b=v=>g.jsx("div",{className:"ahd-marquee-group","aria-hidden":v>0?!0:void 0,children:a.map((k,S)=>g.jsx("div",{className:"ahd-marquee-item",children:(k.contentChildrenIds??[]).map($=>g.jsx(ve,{id:$},$))},S))},v);return g.jsxs("div",{className:`${o} ahd-marquee`,style:d,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:m}}),g.jsx("div",{className:"ahd-marquee-viewport",children:g.jsx("div",{className:"ahd-marquee-track",children:Array.from({length:r}).map((v,k)=>b(k))})})]})}const Rv=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),Ev=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),Iv=C({style:C({backgroundColor:x().optional().nullable(),textColor:x().optional().nullable(),accentColor:x().optional().nullable(),numberColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderRadius:D([f(),x(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),padding:Rv,margin:Ev}).optional().nullable(),props:C({layout:I(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:x().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:P().default(!0),expiredBehavior:I(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:x().default("Offer has ended")}).optional().nullable()});function Mv(e){return String(Math.max(0,e)).padStart(2,"0")}function Tv({days:e,hours:t,minutes:n,seconds:o,showLabels:a,accentColor:i,textColor:r,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:Mv(c.value)}),a&&g.jsx("span",{style:{fontSize:11,color:r??"#6b7280",textTransform:"uppercase"},children:c.label})]},c.label))})}function Pv(e){return String(Math.max(0,e)).padStart(2,"0")}const Wo=26,Yr=2*Math.PI*Wo;function Ov({value:e,max:t,accentColor:n,numberColor:o,unit:a}){const i=t>0?Math.min(1,Math.max(0,e/t)):0,r=Yr*(1-i);return g.jsxs("svg",{"data-ahd-timer-unit":a,"data-ahd-timer-max":t,width:64,height:64,viewBox:"0 0 64 64",children:[g.jsx("circle",{cx:32,cy:32,r:Wo,fill:"none",stroke:"#e5e7eb",strokeWidth:5}),g.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:Wo,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:Yr,strokeDashoffset:r,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:700,fill:o,children:Pv(e)})]})}function Lv({days:e,hours:t,minutes:n,seconds:o,showLabels:a,accentColor:i,textColor:r,numberColor:l}){const s=i??"#7c3aed",c=l??"#1f1f1f",u=[{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:u.map(p=>g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[g.jsx(Ov,{value:p.value,max:p.max,accentColor:s,numberColor:c,unit:p.label.toLowerCase()}),a&&g.jsx("span",{style:{fontSize:11,color:r??"#6b7280",textTransform:"uppercase"},children:p.label})]},p.label))})}function vt(e){return String(Math.max(0,e)).padStart(2,"0")}function zv({days:e,hours:t,minutes:n,seconds:o,showLabels:a,accentColor:i,textColor:r}){const l=[{key:"days",text:a?`${e}d`:vt(e)},{key:"hours",text:a?`${vt(t)}h`:vt(t)},{key:"minutes",text:a?`${vt(n)}m`:vt(n)},{key:"seconds",text:a?`${vt(o)}s`:vt(o)}],s=a?" ":" : ";return g.jsxs("div",{className:"ahd-timer-inline","data-ahd-timer-show-labels":a?"1":"0",style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:16,fontWeight:600,color:r??"#1f1f1f"},children:[g.jsx("span",{style:{color:i??"#7c3aed",marginRight:6},children:"Ends in"}),l.map((c,u)=>g.jsxs(G.Fragment,{children:[u>0&&s,g.jsx("span",{"data-ahd-timer-unit":c.key,children:c.text})]},c.key))]})}function jv(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 Bv(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),a=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:a}}function Dv({style:e,props:t}){const n=t??{},o=n.layout??"digitalFlip",a=n.showLabels??!0,i=n.expiredBehavior??"showMessage",r=n.expiredMessage||"Offer has ended",l=Bv(n.targetDate),s=l.completed,c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,p=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:p>0?`calc(100% - ${p}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:jv(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},h={days:l.days,hours:l.hours,minutes:l.minutes,seconds:l.seconds,showLabels:a,accentColor:e==null?void 0:e.accentColor,textColor:e==null?void 0:e.textColor,numberColor:e==null?void 0:e.numberColor},m=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":r,"data-ahd-timer-show-labels":a?"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:m?void 0:"none"},children:r}),g.jsxs("div",{"data-ahd-timer-body":!0,style:{display:m?"none":void 0},children:[o==="digitalFlip"&&g.jsx(Tv,{...h}),o==="circularProgress"&&g.jsx(Lv,{...h}),o==="textInline"&&g.jsx(zv,{...h})]})]})}const Hv=I(["left","center","right","space-between"]),Fv=C({contentChildrenIds:W(x()).optional().nullable()}),Gv=C({childrenIds:W(x())}),Uv=C({style:C({backgroundColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderRadius:D([f(),x(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),padding:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),margin:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),itemGap:f().min(0).max(120).optional().nullable(),columnsGap:f().min(0).max(120).optional().nullable(),rowsGap:f().min(0).max(120).optional().nullable(),controlGap:f().min(0).max(120).optional().nullable(),controlAlign:Hv.optional().nullable(),buttonSize:f().min(20).max(72).optional().nullable(),buttonGap:f().min(0).max(40).optional().nullable(),buttonRadius:f().min(0).max(999).optional().nullable(),buttonBg:x().optional().nullable(),buttonColor:x().optional().nullable(),buttonBorderColor:x().optional().nullable(),activeButtonBg:x().optional().nullable(),activeButtonColor:x().optional().nullable(),activeButtonBorderColor:x().optional().nullable(),arrowColor:x().optional().nullable(),fontSize:f().min(8).max(40).optional().nullable(),fontFamily:x().optional().nullable()}).optional().nullable(),props:C({items:W(Fv).min(1).max(50).optional().nullable(),cells:W(Gv).optional().nullable(),columnsCount:f().int().min(1).max(12).optional().nullable(),rowsCount:f().int().min(1).max(24).optional().nullable(),columnsCountTablet:f().int().min(1).max(12).optional().nullable(),columnsCountMobile:f().int().min(1).max(12).optional().nullable(),rowsCountTablet:f().int().min(1).max(24).optional().nullable(),rowsCountMobile:f().int().min(1).max(24).optional().nullable(),contentAlignment:I(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:I(["left","center","right"]).optional().nullable(),cellsPerPage:f().int().min(1).max(100).optional().nullable(),repeatableEnabled:P().optional().nullable(),pageParam:x().min(1).max(40).optional().nullable(),syncUrl:P().optional().nullable(),showNumbers:P().optional().nullable(),showPrevNext:P().optional().nullable(),showFirstLast:P().optional().nullable(),maxVisiblePages:f().min(0).max(50).optional().nullable(),prevLabel:x().max(24).optional().nullable(),nextLabel:x().max(24).optional().nullable(),firstLabel:x().max(24).optional().nullable(),lastLabel:x().max(24).optional().nullable(),scrollToTopOnChange:P().optional().nullable(),explicitFirstPage:P().optional().nullable()}).optional().nullable()}),qo={columnsCount:2,rowsCount:2};function vo(e,t="desktop"){const n=qo,o=(e==null?void 0:e.columnsCount)??n.columnsCount,a=(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,r=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??a:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??a:a;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*a,i*r,l.length),c=Array.from({length:s},(u,p)=>{var d;return{childrenIds:Array.isArray((d=l[p])==null?void 0:d.childrenIds)?l[p].childrenIds:[]}});return{columnsCount:i,rowsCount:r,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)??qo.columnsCount,o=(e==null?void 0:e.rowsCount)??qo.rowsCount,a=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,a*i)}function Zv(e,t,n){const o=Math.max(1,e),a=Math.min(Math.max(1,n),o*Math.max(1,t));return Math.max(1,Math.ceil(a/o))}function Wv(e,t){const n=Math.max(1,t);if(e.length===0)return[[]];const o=[];for(let a=0;a<e.length;a+=n)o.push(e.slice(a,a+n));return o}const qv={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 Vv({style:e,props:t}){const n=qv;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 Yv(e){return Math.max(1,e)}function Kv(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,c)=>c+1);const o=[],a=Math.max(1,n-2),i=Math.floor(a/2);let r=Math.max(2,e-i),l=Math.min(t-1,r+a-1);r=Math.max(2,Math.min(r,l-a+1)),o.push(1),r>2&&o.push("ellipsis");for(let s=r;s<=l;s++)o.push(s);return l<t-1&&o.push("ellipsis"),o.push(t),o}function Jv(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 Xv({style:e,props:t}){const n=Vv({style:e,props:t}),o=vo(t,"desktop"),a=vo(t,"tablet"),i=vo(t,"mobile"),r=Math.max(xo(t,"desktop"),xo(t,"tablet"),xo(t,"mobile")),l=G.useMemo(()=>o.cells.length>=r?o.cells:Array.from({length:r},(A,y)=>o.cells[y]??{childrenIds:[]}),[o.cells,r]),s=G.useMemo(()=>Wv(l,r),[l,r]),c=Yv(s.length),u=(e==null?void 0:e.columnsGap)??n.itemGap,p=(e==null?void 0:e.rowsGap)??n.itemGap,d=G.useMemo(()=>`pgn-${Math.random().toString(36).slice(2,9)}`,[]),h=G.useMemo(()=>Kv(1,c,n.maxVisiblePages),[c,n.maxVisiblePages]),m=e==null?void 0:e.padding,b=e==null?void 0:e.margin,v=((b==null?void 0:b.left)??0)+((b==null?void 0:b.right)??0),k={width:v>0?`calc(100% - ${v}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:Jv(e==null?void 0:e.borderRadius),padding:m?`${m.top}px ${m.right}px ${m.bottom}px ${m.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",$={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={...$,color:n.arrowColor},_=G.useMemo(()=>{const A=M=>`grid-template-columns:repeat(${M.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${Zv(M.columnsCount,M.rowsCount,r)},auto)`,y=(M,T)=>{const L=Math.min(Math.max(1,T.columnsCount*T.rowsCount),Math.max(1,r));return L>=r?"":`${M} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${L+1}){display:none}`},R=`.${d}`;return`${R} .ahd-pgn-item{display:grid;${A(o)};column-gap:${u}px;row-gap:${p}px}${R} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+y(R,o)+`@media (max-width:${je}px){${R} .ahd-pgn-item{${A(a)}}${R} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+y(R,a)+`}@media (max-width:${Ae}px){${R} .ahd-pgn-item{${A(i)}}${R} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+y(R,i)+"}"},[d,o,a,i,r,u,p,n.itemGap]),N=(A,y,R)=>g.jsx("button",{type:"button",className:`ahd-pgn-btn ${A}`,"data-ahd-page":R,style:w,"aria-label":y,children:y});return g.jsxs("div",{className:`${d} ahd-pagination`,style:k,"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:_}}),g.jsx("div",{className:"ahd-pgn-content",style:{display:"flex",flexDirection:"column",gap:n.itemGap},children:s.map((A,y)=>g.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":y,style:y===0?void 0:{display:"none"},children:A.map((R,M)=>g.jsx("div",{className:"ahd-pgn-cell",children:(R.childrenIds??[]).map(T=>g.jsx(ve,{id:T},T))},M))},y))}),(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&&N("ahd-pgn-first",n.firstLabel,1),n.showPrevNext&&N("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:h.map((A,y)=>A==="ellipsis"?g.jsx("span",{className:"ahd-pgn-ellipsis",style:{...$,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${y}`):g.jsx("button",{type:"button",className:"ahd-pgn-btn ahd-pgn-number","data-ahd-page":A,"aria-label":`Page ${A}`,"aria-current":A===1?"true":void 0,style:A===1?{...$,backgroundColor:n.activeButtonBg,color:n.activeButtonColor,border:`1px solid ${n.activeButtonBorderColor}`}:$,children:A},A))}),n.showPrevNext&&N("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&N("ahd-pgn-last",n.lastLabel,c)]})]})}const Qv=C({responsive:Te,style:C({padding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),margin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable(),tableAlign:I(["left","center","right"]).optional().nullable(),fontSize:f().optional().nullable(),fontFamily:x().optional().nullable(),color:x().optional().nullable(),backgroundColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderWidth:f().optional().nullable(),cellPadding:f().optional().nullable(),headerBackground:x().optional().nullable(),headerColor:x().optional().nullable(),stripedRowColor:x().optional().nullable(),stripedColColor:x().optional().nullable()}).optional().nullable(),props:C({rows:f().int().min(1).max(50).optional().nullable(),columns:f().int().min(1).max(20).optional().nullable(),hasHeader:P().optional().nullable(),cells:W(x()).optional().nullable(),caption:x().optional().nullable(),width:x().optional().nullable(),enableScroll:P().optional().nullable(),enableScrollTablet:P().optional().nullable(),enableScrollMobile:P().optional().nullable()}).optional().nullable()}),Ze={rows:3,columns:3,hasHeader:!0,borderColor:"#e5e7eb",borderWidth:2,cellPadding:8,headerBackground:"#f3f4f6",headerColor:"#111827",color:"#262626",fontSize:14,stripedRowColor:"#F8F6F6"};function Ma(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function Ta(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function ex(e,t,n){return t?(typeof e=="string"?e.trim():"").length===0?n:typeof e=="string"?e:n:null}function tx(e){if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)??e}let nx=0;function vl(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function An(e){return e?vl(e)?`background: ${e} !important; background-color: transparent !important;`:`background-color: ${e} !important;`:""}function So(e){return e?vl(e)?[`background-image: ${e};`,"-webkit-background-clip: text;","background-clip: text;","-webkit-text-fill-color: transparent;","color: transparent;"].join(" "):`color: ${e};`:""}function ox({style:e,props:t,renderCell:n}){const o=Math.max(1,Math.min(50,(t==null?void 0:t.rows)??Ze.rows)),a=Math.max(1,Math.min(20,(t==null?void 0:t.columns)??Ze.columns)),i=(t==null?void 0:t.hasHeader)??Ze.hasHeader,r=(t==null?void 0:t.cells)??[],l=o*a,s=r.length===l?r:Array.from({length:l},(O,q)=>r[q]??""),c=(e==null?void 0:e.borderColor)??Ze.borderColor,u=(e==null?void 0:e.borderWidth)??Ze.borderWidth,p=(e==null?void 0:e.cellPadding)??Ze.cellPadding,d=(e==null?void 0:e.headerBackground)??Ze.headerBackground,h=(e==null?void 0:e.headerColor)??Ze.headerColor,m=(e==null?void 0:e.color)??Ze.color,b=(e==null?void 0:e.fontSize)??Ze.fontSize,v=(e==null?void 0:e.backgroundColor)??null,k=(e==null?void 0:e.stripedRowColor)===void 0?Ze.stripedRowColor:e.stripedRowColor,S=(e==null?void 0:e.stripedColColor)??null,$=`ahd-table-${++nx}`,w={padding:Ma(e==null?void 0:e.padding),margin:Ta(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},_=tx(e==null?void 0:e.fontFamily),N={borderCollapse:"collapse",width:(t==null?void 0:t.width)||"100%",fontSize:b,textAlign:(e==null?void 0:e.textAlign)??void 0},A={border:`${u}px solid ${c}`,padding:p,verticalAlign:"top"},y=_?`.${$}, .${$} * { font-family: ${_} !important; }`:"",R=k?`.${$} > tbody > tr:nth-child(even) > td { ${An(k)} }`:"",M=S?`.${$} > tbody > tr > td:nth-child(even) { ${An(S)} }`:"",T=`
|
|
275
275
|
.${$} { ${An(v)} }
|
|
276
276
|
${y}
|
|
277
277
|
.${$} > tbody > tr > td > .ahd-table-cell-text { ${So(m)} display: block; }
|
|
@@ -281,10 +281,10 @@ ${N}
|
|
|
281
281
|
${R}
|
|
282
282
|
${M}
|
|
283
283
|
`,L=Array.from({length:o},(O,q)=>q),H=Array.from({length:a},(O,q)=>q),F=O=>O.includes("<"),j=(O,q,B,Y)=>n?n({row:O,col:q,value:B,isHeader:Y}):F(B)?g.jsx("span",{dangerouslySetInnerHTML:{__html:B}}):B.split(`
|
|
284
|
-
`).map((de,oe,ee)=>g.jsxs(G.Fragment,{children:[de,oe<ee.length-1?g.jsx("br",{}):null]},oe));return g.jsxs("div",{className:"table-block",style:w,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:T}}),g.jsxs("table",{className:$,style:N,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:H.map(O=>g.jsx("th",{scope:"col",style:{...A,fontWeight:600},children:g.jsx("div",{className:"ahd-table-cell-text",children:j(0,O,s[O]??"",!0)})},O))})}):null,g.jsx("tbody",{children:L.slice(i?1:0).map(O=>g.jsx("tr",{children:H.map(q=>g.jsx("td",{style:A,children:g.jsx("div",{className:"ahd-table-cell-text",children:j(O,q,s[O*a+q]??"",!1)})},q))},O))})]})]})}const Kr=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),ax=C({responsive:Te,style:C({padding:Kr,margin:Kr,textAlign:I(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({demoId:x().default(""),iframeSrc:x().default(""),width:D([f(),x()]).optional().nullable(),height:D([f(),x()]).optional().nullable(),borderRadius:f().optional().nullable(),borderColor:x().optional().nullable(),borderWidth:f().optional().nullable()}).optional().nullable()}),Jr=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,rx=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,wo=1440,ko=830,ix=({style:e,props:t})=>{const{demoId:n,iframeSrc:o,width:a,borderRadius:i,borderColor:r,borderWidth:l}=t??{},s={padding:Jr(e==null?void 0:e.padding),margin:Jr(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,${rx(a,"100%")})`,aspectRatio:`${wo} / ${ko}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${i??10}px`,border:r?`${l??1}px solid ${r}`:"none"},children:g.jsx("div",{id:"demoScaler",style:{width:wo,height:ko,transformOrigin:"top left"},children:g.jsx("iframe",{src:o,style:{width:wo,height:ko,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},o)})})})},vl=Yh(()=>C({id:x().optional(),name:x().optional(),href:x().optional(),menuImage:x().optional(),children:W(vl).optional()})),_o=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),lx=C({menuId:x().default(""),useCustomMenu:P().default(!1),stickyNav:P().default(!1),stickyNavTablet:P().optional().nullable(),stickyNavMobile:P().optional().nullable(),position:I(["left","center","right"]).default("left"),orientation:I(["horizontal","vertical"]).default("horizontal"),menuItems:W(vl).optional().nullable(),startChildrenIds:W(x()).optional().nullable(),endChildrenIds:W(x()).optional().nullable(),layout:I(["menu-only","logo-menu","menu-cta","logo-menu-cta"]).default("menu-only"),backgroundColor:x().default("transparent"),textColor:x().default("#000000"),burgerDropdownBackgroundColor:x().optional().nullable(),submenuBackgroundColor:x().optional().nullable(),submenuRadius:f().optional().nullable(),submenuIconSize:f().optional().nullable(),submenuPadding:_o,submenuItemPadding:_o,submenuMinWidth:f().optional().nullable(),fontSize:x().default("14px"),fontFamily:x().optional().nullable(),fontWeight:x().default("400"),padding:x().default("8px 16px"),blockPadding:_o,gap:x().default("16px"),showIcons:P().default(!0),iconSize:x().default("24px")}),sx=C({style:C({}).passthrough().optional().nullable(),responsive:Te,props:lx.optional().nullable()}),cx={left:"flex-start",center:"center",right:"flex-end"},ux=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,dx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,hx=e=>e?e.left+e.right:0,fx=(e,t,n=!1,o,a)=>{const i=hx(a);return{backgroundColor:e,width:`calc(100% - ${i}px)`,display:"flex",alignItems:"center",gap:"16px",padding:ux(o),margin:dx(a),justifyContent:n?"space-between":cx[t]||"flex-start"}},$o=(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}),px=(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"}),mx={position:"relative"},gx=(e,t,n,o,a,i,r,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)??a,fontFamily:r||void 0,padding:(l==null?void 0:l.padding)??i,textDecoration:"none",whiteSpace:"nowrap",backgroundColor:(l==null?void 0:l.backgroundColor)||void 0,...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}),bx=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),vx=e=>({paddingLeft:e===0?"0":"12px"}),xx={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},Sx=e=>({color:e});function wx(e,t){const n=`.ahd-menu-${e}`,o=(t==null?void 0:t.dropdownBackground)||"#fff",a=[`${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}`].join(""),i=[`${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-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(""),r=`(max-width:${je}px)`;return a+`@media ${r}{${i}}@container ahd-page ${r}{${i}}`}const kx=(e,t)=>{const n=!!t.stickyNav,o=t.stickyNavTablet??n,a=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 r=n?i(!0):"";if(o!==n){const l=`(max-width:${je}px)`;r+=`@media ${l}{${i(o)}}`,r+=`@container ahd-page ${l}{${i(o)}}`}if(a!==o){const l=`(max-width:${Ae}px)`;r+=`@media ${l}{${i(a)}}`,r+=`@container ahd-page ${l}{${i(a)}}`}return r},_x=e=>{if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Xr=e=>t=>{t.stopPropagation(),t.preventDefault();const n=typeof document<"u"?document.getElementById(e):null;n&&(n.checked=!n.checked)},Vo=(e,t,n,o,a,i,r,l,s,c,u,p,d=0)=>!e||e.length===0?null:g.jsx("ul",{id:d===0?u:void 0,className:d===0?"ahd-menu-list":"ahd-menu-sublist",style:px(i,d,r),children:e.map((h,m)=>g.jsxs("li",{style:mx,children:[g.jsx("label",{htmlFor:c,className:"ahd-menu-item-label",style:{display:"contents"},onClick:b=>b.stopPropagation(),children:g.jsxs("a",{href:h.href||"#",style:gx(l,!!h.menuImage,t,n,o,a,p,h),children:[l&&h.menuImage&&g.jsx("img",{src:h.menuImage,alt:"","aria-hidden":"true",style:bx(s)}),h.name||h.label||""]})}),h.children&&h.children.length>0&&g.jsx("div",{style:vx(d),children:Vo(h.children,t,n,o,a,"vertical",r,l,s,c,u,p,d+1)})]},h.id||m))}),$x=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:o=!1,stickyNavTablet:a,stickyNavMobile:i,menuItems:r,startChildrenIds:l,endChildrenIds:s,layout:c="menu-only",position:u="left",orientation:p="horizontal",backgroundColor:d="transparent",textColor:h="#000000",burgerDropdownBackgroundColor:m,fontSize:b="14px",fontFamily:v,fontWeight:k="400",padding:S="8px 16px",blockPadding:$,blockMargin:w,gap:_="16px",showIcons:N=!0,iconSize:A="24px",borderColor:y,borderWidth:R,borderRadius:M,bare:T}=e??{};if(!(Array.isArray(r)&&r.length>0)||!n&&!t)return g.jsx(g.Fragment,{});const H=c==="logo-menu"||c==="logo-menu-cta",F=c==="menu-cta"||c==="logo-menu-cta",j=H||F,O=u==="right"?"end":u==="center"?"center":"start",q=G.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),B=t||q,Y=(T==null?void 0:T.toggleId)??`ahd-menu-toggle-${B}`,de=(T==null?void 0:T.listId)??`ahd-menu-list-${B}`,oe=_x(v);if(T)return g.jsx(g.Fragment,{children:Vo(r,h,b,k,S,p,_,N,A,Y,de,oe)});const ee=kx(B,{stickyNav:o,stickyNavTablet:a,stickyNavMobile:i}),Z=wx(B,{dropdownBackground:m??(d!=="transparent"?d:null)});return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:Z}},B),ee&&g.jsx("style",{dangerouslySetInnerHTML:{__html:ee}}),g.jsxs("nav",{className:`ahd-menu ahd-menu-${B} ahd-menu-sticky-${B}`,"data-block":"menu","data-layout":c,style:{...fx(d,u,j,$,w),...y?{borderStyle:"solid",borderColor:y,borderWidth:R?`${R.top??1}px ${R.right??1}px ${R.bottom??1}px ${R.left??1}px`:"1px"}:{},...M!=null?{borderRadius:typeof M=="number"?`${M}px`:`${(M==null?void 0:M.topLeft)??0}px ${(M==null?void 0:M.topRight)??0}px ${(M==null?void 0:M.bottomRight)??0}px ${(M==null?void 0:M.bottomLeft)??0}px`}:{}},"aria-label":"Main navigation",children:[g.jsx("input",{type:"checkbox",id:Y,className:"ahd-menu-toggle",role:"switch","aria-label":"Toggle main menu","aria-controls":de,style:xx,onClick:J=>J.stopPropagation()}),g.jsx("label",{htmlFor:Y,className:"ahd-menu-backdrop","aria-hidden":"true",onClick:Xr(Y)}),H&&g.jsx("div",{className:"ahd-menu-start",style:$o("start"),children:(l??[]).map(J=>g.jsx(ve,{id:J},J))}),g.jsx("div",{className:"ahd-menu-center",style:$o(O,j),children:Vo(r,h,b,k,S,p,_,N,A,Y,de,oe)}),F&&g.jsx("div",{className:"ahd-menu-end",style:$o("end"),children:(s??[]).map(J=>g.jsx(ve,{id:J},J))}),g.jsxs("label",{htmlFor:Y,className:"ahd-menu-burger","aria-hidden":"true",style:Sx(h),onClick:Xr(Y),children:[g.jsx("span",{}),g.jsx("span",{}),g.jsx("span",{})]})]})]})},Cx=C({id:x().optional(),label:x().optional(),href:x().optional(),textColor:x().optional().nullable()}),Ax=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),yx=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),Nx=C({items:W(Cx).optional().nullable(),separator:I(["slash","chevron","dot","pipe","custom"]).default("chevron"),customSeparator:x().optional().nullable(),showHomeIcon:P().default(!1),homeHref:x().default("/"),collapseOnMobile:P().default(!0),currentItemLinked:P().default(!1),textColor:x().default("#595959"),currentItemColor:x().optional().nullable(),separatorColor:x().optional().nullable(),fontSize:x().default("14px"),fontFamily:x().optional().nullable(),fontWeight:x().default("400"),gap:x().default("8px"),blockPadding:Ax,blockMargin:yx}),Rx=C({style:C({}).passthrough().optional().nullable(),responsive:Te,props:Nx.optional().nullable()}),Co={slash:"/",chevron:"›",dot:"•",pipe:"|"};function Ex(e,t){return e==="custom"?t||"›":e&&Co[e]?Co[e]:Co.chevron}function Ix(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:${Ae}px)`;return`@media ${o}{${n}}@container ahd-page ${o}{${n}}`}const Mx=e=>{if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)||e},xl=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Tx=xl,Px="M12 3.1 3 10.4V21h6v-6h6v6h6V10.4L12 3.1zm0 2.56 7 5.6V19h-2v-6H9v6H5v-7.74l7-5.6z",Ox=({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:Px,fill:t})}),Lx=({color:e,fontSize:t})=>g.jsx("span",{"aria-hidden":"true",style:{color:e,fontSize:t},children:"…"}),zx=({props:e,renderLabel:t})=>{const{items:n,separator:o="chevron",customSeparator:a,showHomeIcon:i=!1,homeHref:r="/",collapseOnMobile:l=!0,currentItemLinked:s=!1,textColor:c="#595959",currentItemColor:u,separatorColor:p,fontSize:d="14px",fontFamily:h,fontWeight:m="400",gap:b="8px",blockPadding:v,blockMargin:k}=e??{};if(!(Array.isArray(n)&&n.length>0))return g.jsx(g.Fragment,{});const $=Mx(h),w=Ex(o,a),_=n.length-1,N=G.useMemo(()=>`b${Math.random().toString(36).slice(2,9)}`,[]),A=l?Ix(N):"",y=(R,M,T)=>{const L=(T?u:null)||R.textColor||c,H=!T||s,F={color:L,textDecoration:"none",whiteSpace:"nowrap"};return t?t({item:R,index:M,isLast:T,style:F}):H?g.jsx("a",{href:R.href||"#",style:F,"aria-current":T?"page":void 0,children:R.label||""}):g.jsx("span",{style:F,"aria-current":"page",children:R.label||""})};return g.jsxs(g.Fragment,{children:[A&&g.jsx("style",{dangerouslySetInnerHTML:{__html:A}}),g.jsx("nav",{className:l?`ahd-breadcrumb ahd-breadcrumb-${N}`:"ahd-breadcrumb","aria-label":"Breadcrumb",style:{padding:xl(v),margin:Tx(k)},children:g.jsxs("ol",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",listStyle:"none",margin:0,padding:0,gap:b,fontSize:d,fontFamily:$,fontWeight:m},children:[i&&g.jsxs("li",{className:"ahd-breadcrumb-home",style:{display:"flex",alignItems:"center",gap:b},children:[g.jsx("a",{href:r||"/",style:{display:"flex",color:c},children:g.jsx(Ox,{size:parseInt(d,10)||14,color:c})}),g.jsx("span",{"aria-hidden":"true",style:{color:p||c},children:w})]}),n.map((R,M)=>{const T=M===_,L=l&&M!==0&&!T;return g.jsxs("li",{className:L?"ahd-breadcrumb-collapsible":void 0,style:{display:"flex",alignItems:"center",gap:b},children:[y(R,M,T),!T&&g.jsx("span",{"aria-hidden":"true",style:{color:p||c},children:w})]},R.id||M)}),l&&n.length>2&&g.jsxs("li",{className:"ahd-breadcrumb-ellipsis",style:{display:"none",alignItems:"center",gap:b},children:[g.jsx(Lx,{color:c,fontSize:d}),g.jsx("span",{"aria-hidden":"true",style:{color:p||c},children:w})]})]})})]})},jx=C({style:C({}).passthrough().optional().nullable(),props:C({formId:x().default(""),formName:x().default(""),iframeSrc:x().default(""),width:x().default("100%"),height:x().default("500px"),heightTablet:x().optional(),heightMobile:x().optional(),alignment:I(["left","center","right"]).default("left")}).optional().nullable()}),Bx=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)}`},Dx=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:a=0}=e;return`${t}px ${n}px ${o}px ${a}px`},Hx=({props:e,style:t})=>{const{formId:n,iframeSrc:o,width:a,height:i,heightTablet:r,heightMobile:l,alignment:s="left",formName:c}=e??{};if(!n||!o)return g.jsx(g.Fragment,{});const u=s==="center"?"center":s==="right"?"flex-end":"flex-start",p=t??{},d={display:"flex",justifyContent:u,width:"100%",padding:Dx(p.padding),backgroundColor:p.backgroundColor||void 0,borderRadius:p.borderRadius||void 0},h=Bx(`${n}|${o??""}`),m=r||l?`
|
|
284
|
+
`).map((de,oe,ee)=>g.jsxs(G.Fragment,{children:[de,oe<ee.length-1?g.jsx("br",{}):null]},oe));return g.jsxs("div",{className:"table-block",style:w,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:T}}),g.jsxs("table",{className:$,style:N,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:H.map(O=>g.jsx("th",{scope:"col",style:{...A,fontWeight:600},children:g.jsx("div",{className:"ahd-table-cell-text",children:j(0,O,s[O]??"",!0)})},O))})}):null,g.jsx("tbody",{children:L.slice(i?1:0).map(O=>g.jsx("tr",{children:H.map(q=>g.jsx("td",{style:A,children:g.jsx("div",{className:"ahd-table-cell-text",children:j(O,q,s[O*a+q]??"",!1)})},q))},O))})]})]})}const Kr=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),ax=C({responsive:Te,style:C({padding:Kr,margin:Kr,textAlign:I(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({demoId:x().default(""),iframeSrc:x().default(""),width:D([f(),x()]).optional().nullable(),height:D([f(),x()]).optional().nullable(),borderRadius:f().optional().nullable(),borderColor:x().optional().nullable(),borderWidth:f().optional().nullable()}).optional().nullable()}),Jr=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,rx=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,wo=1440,ko=830,ix=({style:e,props:t})=>{const{demoId:n,iframeSrc:o,width:a,borderRadius:i,borderColor:r,borderWidth:l}=t??{},s={padding:Jr(e==null?void 0:e.padding),margin:Jr(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,${rx(a,"100%")})`,aspectRatio:`${wo} / ${ko}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${i??10}px`,border:r?`${l??1}px solid ${r}`:"none"},children:g.jsx("div",{id:"demoScaler",style:{width:wo,height:ko,transformOrigin:"top left"},children:g.jsx("iframe",{src:o,style:{width:wo,height:ko,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},o)})})})},xl=Kh(()=>C({id:x().optional(),name:x().optional(),href:x().optional(),menuImage:x().optional(),children:W(xl).optional()})),_o=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),lx=C({menuId:x().default(""),useCustomMenu:P().default(!1),stickyNav:P().default(!1),stickyNavTablet:P().optional().nullable(),stickyNavMobile:P().optional().nullable(),position:I(["left","center","right"]).default("left"),orientation:I(["horizontal","vertical"]).default("horizontal"),menuItems:W(xl).optional().nullable(),startChildrenIds:W(x()).optional().nullable(),endChildrenIds:W(x()).optional().nullable(),layout:I(["menu-only","logo-menu","menu-cta","logo-menu-cta"]).default("menu-only"),backgroundColor:x().default("transparent"),textColor:x().default("#000000"),burgerDropdownBackgroundColor:x().optional().nullable(),submenuBackgroundColor:x().optional().nullable(),submenuRadius:f().optional().nullable(),submenuIconSize:f().optional().nullable(),submenuPadding:_o,submenuItemPadding:_o,submenuMinWidth:f().optional().nullable(),fontSize:x().default("14px"),fontFamily:x().optional().nullable(),fontWeight:x().default("400"),padding:x().default("8px 16px"),blockPadding:_o,gap:x().default("16px"),showIcons:P().default(!0),iconSize:x().default("24px")}),sx=C({style:C({}).passthrough().optional().nullable(),responsive:Te,props:lx.optional().nullable()}),cx={left:"flex-start",center:"center",right:"flex-end"},ux=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,dx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,hx=e=>e?e.left+e.right:0,fx=(e,t,n=!1,o,a)=>{const i=hx(a);return{backgroundColor:e,width:`calc(100% - ${i}px)`,display:"flex",alignItems:"center",gap:"16px",padding:ux(o),margin:dx(a),justifyContent:n?"space-between":cx[t]||"flex-start"}},$o=(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}),px=(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"}),mx={position:"relative"},gx=(e,t,n,o,a,i,r,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)??a,fontFamily:r||void 0,padding:(l==null?void 0:l.padding)??i,textDecoration:"none",whiteSpace:"nowrap",backgroundColor:(l==null?void 0:l.backgroundColor)||void 0,...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}),bx=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),vx=e=>({paddingLeft:e===0?"0":"12px"}),xx={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},Sx=e=>({color:e});function wx(e,t){const n=`.ahd-menu-${e}`,o=(t==null?void 0:t.dropdownBackground)||"#fff",a=[`${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}`].join(""),i=[`${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-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(""),r=`(max-width:${je}px)`;return a+`@media ${r}{${i}}@container ahd-page ${r}{${i}}`}const kx=(e,t)=>{const n=!!t.stickyNav,o=t.stickyNavTablet??n,a=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 r=n?i(!0):"";if(o!==n){const l=`(max-width:${je}px)`;r+=`@media ${l}{${i(o)}}`,r+=`@container ahd-page ${l}{${i(o)}}`}if(a!==o){const l=`(max-width:${Ae}px)`;r+=`@media ${l}{${i(a)}}`,r+=`@container ahd-page ${l}{${i(a)}}`}return r},_x=e=>{if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Xr=e=>t=>{t.stopPropagation(),t.preventDefault();const n=typeof document<"u"?document.getElementById(e):null;n&&(n.checked=!n.checked)},Vo=(e,t,n,o,a,i,r,l,s,c,u,p,d=0)=>!e||e.length===0?null:g.jsx("ul",{id:d===0?u:void 0,className:d===0?"ahd-menu-list":"ahd-menu-sublist",style:px(i,d,r),children:e.map((h,m)=>g.jsxs("li",{style:mx,children:[g.jsx("label",{htmlFor:c,className:"ahd-menu-item-label",style:{display:"contents"},onClick:b=>b.stopPropagation(),children:g.jsxs("a",{href:h.href||"#",style:gx(l,!!h.menuImage,t,n,o,a,p,h),children:[l&&h.menuImage&&g.jsx("img",{src:h.menuImage,alt:"","aria-hidden":"true",style:bx(s)}),h.name||h.label||""]})}),h.children&&h.children.length>0&&g.jsx("div",{style:vx(d),children:Vo(h.children,t,n,o,a,"vertical",r,l,s,c,u,p,d+1)})]},h.id||m))}),$x=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:o=!1,stickyNavTablet:a,stickyNavMobile:i,menuItems:r,startChildrenIds:l,endChildrenIds:s,layout:c="menu-only",position:u="left",orientation:p="horizontal",backgroundColor:d="transparent",textColor:h="#000000",burgerDropdownBackgroundColor:m,fontSize:b="14px",fontFamily:v,fontWeight:k="400",padding:S="8px 16px",blockPadding:$,blockMargin:w,gap:_="16px",showIcons:N=!0,iconSize:A="24px",borderColor:y,borderWidth:R,borderRadius:M,bare:T}=e??{};if(!(Array.isArray(r)&&r.length>0)||!n&&!t)return g.jsx(g.Fragment,{});const H=c==="logo-menu"||c==="logo-menu-cta",F=c==="menu-cta"||c==="logo-menu-cta",j=H||F,O=u==="right"?"end":u==="center"?"center":"start",q=G.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),B=t||q,Y=(T==null?void 0:T.toggleId)??`ahd-menu-toggle-${B}`,de=(T==null?void 0:T.listId)??`ahd-menu-list-${B}`,oe=_x(v);if(T)return g.jsx(g.Fragment,{children:Vo(r,h,b,k,S,p,_,N,A,Y,de,oe)});const ee=kx(B,{stickyNav:o,stickyNavTablet:a,stickyNavMobile:i}),Z=wx(B,{dropdownBackground:m??(d!=="transparent"?d:null)});return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:Z}},B),ee&&g.jsx("style",{dangerouslySetInnerHTML:{__html:ee}}),g.jsxs("nav",{className:`ahd-menu ahd-menu-${B} ahd-menu-sticky-${B}`,"data-block":"menu","data-layout":c,style:{...fx(d,u,j,$,w),...y?{borderStyle:"solid",borderColor:y,borderWidth:R?`${R.top??1}px ${R.right??1}px ${R.bottom??1}px ${R.left??1}px`:"1px"}:{},...M!=null?{borderRadius:typeof M=="number"?`${M}px`:`${(M==null?void 0:M.topLeft)??0}px ${(M==null?void 0:M.topRight)??0}px ${(M==null?void 0:M.bottomRight)??0}px ${(M==null?void 0:M.bottomLeft)??0}px`}:{}},"aria-label":"Main navigation",children:[g.jsx("input",{type:"checkbox",id:Y,className:"ahd-menu-toggle",role:"switch","aria-label":"Toggle main menu","aria-controls":de,style:xx,onClick:J=>J.stopPropagation()}),g.jsx("label",{htmlFor:Y,className:"ahd-menu-backdrop","aria-hidden":"true",onClick:Xr(Y)}),H&&g.jsx("div",{className:"ahd-menu-start",style:$o("start"),children:(l??[]).map(J=>g.jsx(ve,{id:J},J))}),g.jsx("div",{className:"ahd-menu-center",style:$o(O,j),children:Vo(r,h,b,k,S,p,_,N,A,Y,de,oe)}),F&&g.jsx("div",{className:"ahd-menu-end",style:$o("end"),children:(s??[]).map(J=>g.jsx(ve,{id:J},J))}),g.jsxs("label",{htmlFor:Y,className:"ahd-menu-burger","aria-hidden":"true",style:Sx(h),onClick:Xr(Y),children:[g.jsx("span",{}),g.jsx("span",{}),g.jsx("span",{})]})]})]})},Cx=C({id:x().optional(),label:x().optional(),href:x().optional(),textColor:x().optional().nullable()}),Ax=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),yx=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),Nx=C({items:W(Cx).optional().nullable(),separator:I(["slash","chevron","dot","pipe","custom"]).default("chevron"),customSeparator:x().optional().nullable(),showHomeIcon:P().default(!1),homeHref:x().default("/"),collapseOnMobile:P().default(!0),currentItemLinked:P().default(!1),textColor:x().default("#595959"),currentItemColor:x().optional().nullable(),separatorColor:x().optional().nullable(),fontSize:x().default("14px"),fontFamily:x().optional().nullable(),fontWeight:x().default("400"),gap:x().default("8px"),blockPadding:Ax,blockMargin:yx}),Rx=C({style:C({}).passthrough().optional().nullable(),responsive:Te,props:Nx.optional().nullable()}),Co={slash:"/",chevron:"›",dot:"•",pipe:"|"};function Ex(e,t){return e==="custom"?t||"›":e&&Co[e]?Co[e]:Co.chevron}function Ix(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:${Ae}px)`;return`@media ${o}{${n}}@container ahd-page ${o}{${n}}`}const Mx=e=>{if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Sl=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Tx=Sl,Px="M12 3.1 3 10.4V21h6v-6h6v6h6V10.4L12 3.1zm0 2.56 7 5.6V19h-2v-6H9v6H5v-7.74l7-5.6z",Ox=({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:Px,fill:t})}),Lx=({color:e,fontSize:t})=>g.jsx("span",{"aria-hidden":"true",style:{color:e,fontSize:t},children:"…"}),zx=({props:e,renderLabel:t})=>{const{items:n,separator:o="chevron",customSeparator:a,showHomeIcon:i=!1,homeHref:r="/",collapseOnMobile:l=!0,currentItemLinked:s=!1,textColor:c="#595959",currentItemColor:u,separatorColor:p,fontSize:d="14px",fontFamily:h,fontWeight:m="400",gap:b="8px",blockPadding:v,blockMargin:k}=e??{};if(!(Array.isArray(n)&&n.length>0))return g.jsx(g.Fragment,{});const $=Mx(h),w=Ex(o,a),_=n.length-1,N=G.useMemo(()=>`b${Math.random().toString(36).slice(2,9)}`,[]),A=l?Ix(N):"",y=(R,M,T)=>{const L=(T?u:null)||R.textColor||c,H=!T||s,F={color:L,textDecoration:"none",whiteSpace:"nowrap"};return t?t({item:R,index:M,isLast:T,style:F}):H?g.jsx("a",{href:R.href||"#",style:F,"aria-current":T?"page":void 0,children:R.label||""}):g.jsx("span",{style:F,"aria-current":"page",children:R.label||""})};return g.jsxs(g.Fragment,{children:[A&&g.jsx("style",{dangerouslySetInnerHTML:{__html:A}}),g.jsx("nav",{className:l?`ahd-breadcrumb ahd-breadcrumb-${N}`:"ahd-breadcrumb","aria-label":"Breadcrumb",style:{padding:Sl(v),margin:Tx(k)},children:g.jsxs("ol",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",listStyle:"none",margin:0,padding:0,gap:b,fontSize:d,fontFamily:$,fontWeight:m},children:[i&&g.jsxs("li",{className:"ahd-breadcrumb-home",style:{display:"flex",alignItems:"center",gap:b},children:[g.jsx("a",{href:r||"/",style:{display:"flex",color:c},children:g.jsx(Ox,{size:parseInt(d,10)||14,color:c})}),g.jsx("span",{"aria-hidden":"true",style:{color:p||c},children:w})]}),n.map((R,M)=>{const T=M===_,L=l&&M!==0&&!T;return g.jsxs("li",{className:L?"ahd-breadcrumb-collapsible":void 0,style:{display:"flex",alignItems:"center",gap:b},children:[y(R,M,T),!T&&g.jsx("span",{"aria-hidden":"true",style:{color:p||c},children:w})]},R.id||M)}),l&&n.length>2&&g.jsxs("li",{className:"ahd-breadcrumb-ellipsis",style:{display:"none",alignItems:"center",gap:b},children:[g.jsx(Lx,{color:c,fontSize:d}),g.jsx("span",{"aria-hidden":"true",style:{color:p||c},children:w})]})]})})]})},jx=C({style:C({}).passthrough().optional().nullable(),props:C({formId:x().default(""),formName:x().default(""),iframeSrc:x().default(""),width:x().default("100%"),height:x().default("500px"),heightTablet:x().optional(),heightMobile:x().optional(),alignment:I(["left","center","right"]).default("left")}).optional().nullable()}),Bx=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)}`},Dx=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:a=0}=e;return`${t}px ${n}px ${o}px ${a}px`},Hx=({props:e,style:t})=>{const{formId:n,iframeSrc:o,width:a,height:i,heightTablet:r,heightMobile:l,alignment:s="left",formName:c}=e??{};if(!n||!o)return g.jsx(g.Fragment,{});const u=s==="center"?"center":s==="right"?"flex-end":"flex-start",p=t??{},d={display:"flex",justifyContent:u,width:"100%",padding:Dx(p.padding),backgroundColor:p.backgroundColor||void 0,borderRadius:p.borderRadius||void 0},h=Bx(`${n}|${o??""}`),m=r||l?`
|
|
285
285
|
${r?`${dn} { #${h} { height: ${r} !important; } }`:""}
|
|
286
286
|
${l?`${Oe} { #${h} { height: ${l} !important; } }`:""}
|
|
287
|
-
`:"";return g.jsxs(g.Fragment,{children:[m&&g.jsx("style",{dangerouslySetInnerHTML:{__html:m}}),g.jsx("div",{style:d,children:g.jsx("iframe",{id:h,src:o,title:c||"Form",style:{width:a||"100%",height:i||"500px",border:"none",display:"block",borderRadius:p.borderRadius||void 0},loading:"lazy"})})]})},Fx=C({style:C({}).passthrough().optional().nullable(),props:C({bannerId:x().default(""),bannerName:x().optional().nullable(),contentDocument:Lt(x(),an()).optional().nullable(),padding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),margin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable()}).optional().nullable()}),Gx=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},Ux=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},Zx=({props:e})=>{const{bannerId:t,contentDocument:n,padding:o,margin:a}=e??{};return t?n&&n.root?g.jsx("div",{className:"app-banner-picker-block",style:{...Gx(o),...Ux(a)},children:g.jsx(sn,{document:n,rootBlockId:"root"})}):g.jsx(g.Fragment,{}):g.jsx(g.Fragment,{})},Wx=C({style:C({}).passthrough().optional().nullable(),props:C({faqGroupId:x().default(""),faqGroupName:x().optional().nullable(),contentDocument:Lt(x(),an()).optional().nullable(),padding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),margin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable()}).optional().nullable()}),qx=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},Vx=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},Yx=({props:e})=>{const{faqGroupId:t,contentDocument:n,padding:o,margin:a}=e??{};return t?!n||!n.root?g.jsx(g.Fragment,{}):g.jsx("div",{className:"faq-picker-block",style:{...qx(o),...Vx(a)},children:g.jsx(sn,{document:n,rootBlockId:"root"})}):g.jsx(g.Fragment,{})},Kx=C({style:C({padding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),margin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({text:x().optional().nullable(),targetId:x().optional().nullable(),backgroundColor:x().optional().nullable(),textColor:x().optional().nullable(),fontSize:f().optional().nullable(),borderRadius:f().optional().nullable(),paddingX:f().optional().nullable(),paddingY:f().optional().nullable(),marginX:f().optional().nullable(),marginY:f().optional().nullable(),displayMode:I(["focus-only","always-visible"]).optional().nullable()}).optional().nullable()}),Ye={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 Jx=0;function
|
|
287
|
+
`:"";return g.jsxs(g.Fragment,{children:[m&&g.jsx("style",{dangerouslySetInnerHTML:{__html:m}}),g.jsx("div",{style:d,children:g.jsx("iframe",{id:h,src:o,title:c||"Form",style:{width:a||"100%",height:i||"500px",border:"none",display:"block",borderRadius:p.borderRadius||void 0},loading:"lazy"})})]})},Fx=C({style:C({}).passthrough().optional().nullable(),props:C({bannerId:x().default(""),bannerName:x().optional().nullable(),contentDocument:Lt(x(),an()).optional().nullable(),padding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),margin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable()}).optional().nullable()}),Gx=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},Ux=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},Zx=({props:e})=>{const{bannerId:t,contentDocument:n,padding:o,margin:a}=e??{};return t?n&&n.root?g.jsx("div",{className:"app-banner-picker-block",style:{...Gx(o),...Ux(a)},children:g.jsx(sn,{document:n,rootBlockId:"root"})}):g.jsx(g.Fragment,{}):g.jsx(g.Fragment,{})},Wx=C({style:C({}).passthrough().optional().nullable(),props:C({faqGroupId:x().default(""),faqGroupName:x().optional().nullable(),contentDocument:Lt(x(),an()).optional().nullable(),padding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),margin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable()}).optional().nullable()}),qx=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},Vx=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},Yx=({props:e})=>{const{faqGroupId:t,contentDocument:n,padding:o,margin:a}=e??{};return t?!n||!n.root?g.jsx(g.Fragment,{}):g.jsx("div",{className:"faq-picker-block",style:{...qx(o),...Vx(a)},children:g.jsx(sn,{document:n,rootBlockId:"root"})}):g.jsx(g.Fragment,{})},Kx=C({style:C({padding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),margin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({text:x().optional().nullable(),targetId:x().optional().nullable(),backgroundColor:x().optional().nullable(),textColor:x().optional().nullable(),fontSize:f().optional().nullable(),borderRadius:f().optional().nullable(),paddingX:f().optional().nullable(),paddingY:f().optional().nullable(),marginX:f().optional().nullable(),marginY:f().optional().nullable(),displayMode:I(["focus-only","always-visible"]).optional().nullable()}).optional().nullable()}),Ye={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 Jx=0;function wl({style:e,props:t}){var k,S;const n=((k=t==null?void 0:t.text)==null?void 0:k.trim())||Ye.text,o=((S=t==null?void 0:t.targetId)==null?void 0:S.trim())||Ye.targetId,a=(t==null?void 0:t.backgroundColor)??Ye.backgroundColor,i=(t==null?void 0:t.textColor)??Ye.textColor,r=(t==null?void 0:t.fontSize)??Ye.fontSize,l=(t==null?void 0:t.borderRadius)??Ye.borderRadius,s=(t==null?void 0:t.paddingX)??Ye.paddingX,c=(t==null?void 0:t.paddingY)??Ye.paddingY,u=(t==null?void 0:t.marginX)??Ye.marginX,p=(t==null?void 0:t.marginY)??Ye.marginY,d="always-visible",h=`skip-link-${++Jx}`,m={padding:Ma(e==null?void 0:e.padding),margin:Ta(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b=`
|
|
288
288
|
display:inline-block;
|
|
289
289
|
background:${a};
|
|
290
290
|
color:${i};
|
|
@@ -297,7 +297,7 @@ ${N}
|
|
|
297
297
|
line-height:1.2;
|
|
298
298
|
font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
|
|
299
299
|
`,v=`.${h}{${b}}
|
|
300
|
-
.${h}:focus-visible{outline:3px solid #000;outline-offset:3px}`;return g.jsxs("div",{className:"skip-link-block",style:m,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:v}}),g.jsx("a",{href:`#${o}`,className:h,"data-skip-link":d,children:n})]})}const Xx=C({style:C({padding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),margin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({renderMode:I(["inline","floating"]).optional().nullable(),position:I(["top-right","top-left","bottom-right","bottom-left"]).optional().nullable(),triggerLabel:x().optional().nullable(),triggerText:x().optional().nullable(),showLabelText:P().optional().nullable(),triggerBg:x().optional().nullable(),triggerColor:x().optional().nullable(),triggerFontSize:f().optional().nullable(),triggerBorderRadius:f().optional().nullable(),triggerPadding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),triggerMargin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),icon:I(["accessibility","universal-access","person","eye","info"]).optional().nullable(),features:C({contrast:P().optional().nullable(),invert:P().optional().nullable(),saturation:P().optional().nullable(),highlightLinks:P().optional().nullable(),textSize:P().optional().nullable(),textSpacing:P().optional().nullable(),lineHeight:P().optional().nullable(),hideImages:P().optional().nullable(),bigCursor:P().optional().nullable(),reset:P().optional().nullable()}).optional().nullable()}).optional().nullable()}),Ke={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"},Ao={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 Qx(e){return e&&Ao[e]?Ao[e]:Ao.accessibility}function e1(e){return`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${Qx(e)}"/></svg>`}const t1={contrast:!0,invert:!0,saturation:!0,highlightLinks:!0,textSize:!0,textSpacing:!0,lineHeight:!0,hideImages:!0,bigCursor:!0,reset:!0};function n1(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
|
|
300
|
+
.${h}:focus-visible{outline:3px solid #000;outline-offset:3px}`;return g.jsxs("div",{className:"skip-link-block",style:m,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:v}}),g.jsx("a",{href:`#${o}`,className:h,"data-skip-link":d,children:n})]})}const Xx=C({style:C({padding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),margin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({renderMode:I(["inline","floating"]).optional().nullable(),position:I(["top-right","top-left","bottom-right","bottom-left"]).optional().nullable(),triggerLabel:x().optional().nullable(),triggerText:x().optional().nullable(),showLabelText:P().optional().nullable(),triggerBg:x().optional().nullable(),triggerColor:x().optional().nullable(),triggerFontSize:f().optional().nullable(),triggerBorderRadius:f().optional().nullable(),triggerPadding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),triggerMargin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),icon:I(["accessibility","universal-access","person","eye","info"]).optional().nullable(),features:C({contrast:P().optional().nullable(),invert:P().optional().nullable(),saturation:P().optional().nullable(),highlightLinks:P().optional().nullable(),textSize:P().optional().nullable(),textSpacing:P().optional().nullable(),lineHeight:P().optional().nullable(),hideImages:P().optional().nullable(),bigCursor:P().optional().nullable(),reset:P().optional().nullable()}).optional().nullable()}).optional().nullable()}),Ke={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"},Ao={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 Qx(e){return e&&Ao[e]?Ao[e]:Ao.accessibility}function e1(e){return`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${Qx(e)}"/></svg>`}const t1={contrast:!0,invert:!0,saturation:!0,highlightLinks:!0,textSize:!0,textSpacing:!0,lineHeight:!0,hideImages:!0,bigCursor:!0,reset:!0};function n1(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 kl(e){const{containerPos:t}=n1(e.position);return`
|
|
301
301
|
/* Accessibility Tools widget */
|
|
302
302
|
.ahd-a11y-widget{position:relative;display:inline-block}
|
|
303
303
|
.ahd-a11y-widget.ahd-a11y-floating{position:fixed;${t}z-index:99999}
|
|
@@ -329,7 +329,7 @@ html.a11y-spacing,html.a11y-spacing *{letter-spacing:0.12em !important;word-spac
|
|
|
329
329
|
html.a11y-lineheight,html.a11y-lineheight *{line-height:1.8 !important}
|
|
330
330
|
html.a11y-hide-images img,html.a11y-hide-images picture,html.a11y-hide-images video{visibility:hidden !important}
|
|
331
331
|
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}
|
|
332
|
-
`.trim()}function
|
|
332
|
+
`.trim()}function _l(e){const t={...t1,...e.features??{}},n=(p,d)=>`<button type="button" class="ahd-a11y-btn" data-a11y="${p}" aria-pressed="false">${d}</button>`,o=t.contrast||t.invert||t.saturation?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Color & 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>`:"",a=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>`:"",r=t.reset?'<button type="button" class="ahd-a11y-reset" data-a11y-reset>Reset all</button>':"",l=e.renderMode==="floating"?"floating":"inline",s=e1(e.icon??"accessibility"),c=ex(e.triggerText,e.showLabelText!==!1,"Accessibility"),u=typeof e.triggerLabel=="string"&&e.triggerLabel.trim()||"Accessibility tools";return`
|
|
333
333
|
<div class="ahd-a11y-widget ahd-a11y-${l}">
|
|
334
334
|
<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>
|
|
335
335
|
<div class="ahd-a11y-panel" id="ahd-a11y-panel" role="dialog" aria-label="Accessibility tools" aria-hidden="true" data-open="false">
|
|
@@ -337,7 +337,7 @@ html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,
|
|
|
337
337
|
${o}${a}${i}${r}
|
|
338
338
|
</div>
|
|
339
339
|
</div>
|
|
340
|
-
`.trim()}function
|
|
340
|
+
`.trim()}function $l(){return`
|
|
341
341
|
(function(){
|
|
342
342
|
var STORAGE_KEY='ahdA11yPrefs';
|
|
343
343
|
// Classes that are mutually exclusive within their group
|
|
@@ -445,15 +445,15 @@ html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,
|
|
|
445
445
|
init();
|
|
446
446
|
}
|
|
447
447
|
})();
|
|
448
|
-
`.trim()}function
|
|
448
|
+
`.trim()}function Cl({style:e,props:t}){const n=(t==null?void 0:t.renderMode)??Ke.renderMode,o=(t==null?void 0:t.position)??Ke.position,a=(t==null?void 0:t.features)??void 0,i=(t==null?void 0:t.triggerBg)??Ke.triggerBg,r=(t==null?void 0:t.triggerColor)??Ke.triggerColor,l=(t==null?void 0:t.triggerLabel)??Ke.triggerLabel,s=(t==null?void 0:t.showLabelText)!==!1,c=(t==null?void 0:t.triggerFontSize)??Ke.triggerFontSize,u=(t==null?void 0:t.triggerBorderRadius)??Ke.triggerBorderRadius,p=(t==null?void 0:t.triggerPadding)??Ke.triggerPadding,d=(t==null?void 0:t.triggerMargin)??Ke.triggerMargin,h=(t==null?void 0:t.icon)??Ke.icon,m={padding:Ma(e==null?void 0:e.padding),margin:Ta(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b={position:o,features:a,renderMode:n,triggerText:t==null?void 0:t.triggerText,showLabelText:s,icon:h,triggerLabel:l},v=kl(b),k=`.ahd-a11y-trigger{background:${i};color:${r};font-size:${c}px;border-radius:${u}px;padding:${p.top}px ${p.right}px ${p.bottom}px ${p.left}px};margin:${d.top}px ${d.right}px ${d.bottom}px ${d.left}px}`,S=_l(b),$=$l();return g.jsxs("div",{className:"accessibility-tools-block",style:m,"data-a11y-instance":"1",children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:v+k}}),g.jsx("div",{dangerouslySetInnerHTML:{__html:S}}),g.jsx("script",{dangerouslySetInnerHTML:{__html:$}}),g.jsx("span",{"aria-hidden":"true",style:{display:"none"},children:l})]})}function o1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yo={exports:{}},Ko={exports:{}},Be={},ue={};ue.__esModule=!0;ue.extend=Al;ue.indexOf=s1;ue.escapeExpression=c1;ue.isEmpty=u1;ue.createFrame=d1;ue.blockParams=h1;ue.appendContextPath=f1;var a1={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},r1=/[&<>"'`=]/g,i1=/[&<>"'`=]/;function l1(e){return a1[e]}function Al(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 Pa=Object.prototype.toString;ue.toString=Pa;var Jo=function(t){return typeof t=="function"};Jo(/x/)&&(ue.isFunction=Jo=function(e){return typeof e=="function"&&Pa.call(e)==="[object Function]"});ue.isFunction=Jo;var yl=Array.isArray||function(e){return e&&typeof e=="object"?Pa.call(e)==="[object Array]":!1};ue.isArray=yl;function s1(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function c1(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return i1.test(e)?e.replace(r1,l1):e}function u1(e){return!e&&e!==0?!0:!!(yl(e)&&e.length===0)}function d1(e){var t=Al({},e);return t._parent=e,t}function h1(e,t){return e.path=t,e}function f1(e,t){return(e?e+".":"")+t}var Xo={exports:{}};(function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function o(a,i){var r=i&&i.loc,l=void 0,s=void 0,c=void 0,u=void 0;r&&(l=r.start.line,s=r.end.line,c=r.start.column,u=r.end.column,a+=" - "+l+":"+c);for(var p=Error.prototype.constructor.call(this,a),d=0;d<n.length;d++)this[n[d]]=p[n[d]];Error.captureStackTrace&&Error.captureStackTrace(this,o);try{r&&(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})(Xo,Xo.exports);var De=Xo.exports,hn={},Qo={exports:{}};(function(e,t){t.__esModule=!0;var n=ue;t.default=function(o){o.registerHelper("blockHelperMissing",function(a,i){var r=i.inverse,l=i.fn;if(a===!0)return l(this);if(a===!1||a==null)return r(this);if(n.isArray(a))return a.length>0?(i.ids&&(i.ids=[i.name]),o.helpers.each(a,i)):r(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(a,i)})},e.exports=t.default})(Qo,Qo.exports);var p1=Qo.exports,ea={exports:{}};(function(e,t){t.__esModule=!0;function n(r){return r&&r.__esModule?r:{default:r}}var o=ue,a=De,i=n(a);t.default=function(r){r.registerHelper("each",function(l,s){if(!s)throw new i.default("Must pass iterator to #each");var c=s.fn,u=s.inverse,p=0,d="",h=void 0,m=void 0;s.data&&s.ids&&(m=o.appendContextPath(s.data.contextPath,s.ids[0])+"."),o.isFunction(l)&&(l=l.call(this)),s.data&&(h=o.createFrame(s.data));function b(w,_,N){h&&(h.key=w,h.index=_,h.first=_===0,h.last=!!N,m&&(h.contextPath=m+w)),d=d+c(l[w],{data:h,blockParams:o.blockParams([l[w],w],[m+w,null])})}if(l&&typeof l=="object")if(o.isArray(l))for(var v=l.length;p<v;p++)p in l&&b(p,p,p===l.length-1);else if(typeof Symbol=="function"&&l[Symbol.iterator]){for(var k=[],S=l[Symbol.iterator](),$=S.next();!$.done;$=S.next())k.push($.value);l=k;for(var v=l.length;p<v;p++)b(p,p,p===l.length-1)}else(function(){var w=void 0;Object.keys(l).forEach(function(_){w!==void 0&&b(w,p-1),w=_,p++}),w!==void 0&&b(w,p-1,!0)})();return p===0&&(d=u(this)),d})},e.exports=t.default})(ea,ea.exports);var m1=ea.exports,ta={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var o=De,a=n(o);t.default=function(i){i.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new a.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default})(ta,ta.exports);var g1=ta.exports,na={exports:{}};(function(e,t){t.__esModule=!0;function n(r){return r&&r.__esModule?r:{default:r}}var o=ue,a=De,i=n(a);t.default=function(r){r.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)}),r.registerHelper("unless",function(l,s){if(arguments.length!=2)throw new i.default("#unless requires exactly one argument");return r.helpers.if.call(this,l,{fn:s.inverse,inverse:s.fn,hash:s.hash})})},e.exports=t.default})(na,na.exports);var b1=na.exports,oa={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("log",function(){for(var o=[void 0],a=arguments[arguments.length-1],i=0;i<arguments.length-1;i++)o.push(arguments[i]);var r=1;a.hash.level!=null?r=a.hash.level:a.data&&a.data.level!=null&&(r=a.data.level),o[0]=r,n.log.apply(n,o)})},e.exports=t.default})(oa,oa.exports);var v1=oa.exports,aa={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("lookup",function(o,a,i){return o&&i.lookupProperty(o,a)})},e.exports=t.default})(aa,aa.exports);var x1=aa.exports,ra={exports:{}};(function(e,t){t.__esModule=!0;function n(r){return r&&r.__esModule?r:{default:r}}var o=ue,a=De,i=n(a);t.default=function(r){r.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})(ra,ra.exports);var S1=ra.exports;hn.__esModule=!0;hn.registerDefaultHelpers=O1;hn.moveHelperToHooks=L1;function kt(e){return e&&e.__esModule?e:{default:e}}var w1=p1,k1=kt(w1),_1=m1,$1=kt(_1),C1=g1,A1=kt(C1),y1=b1,N1=kt(y1),R1=v1,E1=kt(R1),I1=x1,M1=kt(I1),T1=S1,P1=kt(T1);function O1(e){k1.default(e),$1.default(e),A1.default(e),N1.default(e),E1.default(e),M1.default(e),P1.default(e)}function L1(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||(e.helpers[t]=void 0))}var Oa={},ia={exports:{}};(function(e,t){t.__esModule=!0;var n=ue;t.default=function(o){o.registerDecorator("inline",function(a,i,r,l){var s=a;return i.partials||(i.partials={},s=function(c,u){var p=r.partials;r.partials=n.extend({},p,i.partials);var d=a(c,u);return r.partials=p,d}),i.partials[l.args[0]]=l.fn,s})},e.exports=t.default})(ia,ia.exports);var z1=ia.exports;Oa.__esModule=!0;Oa.registerDefaultDecorators=H1;function j1(e){return e&&e.__esModule?e:{default:e}}var B1=z1,D1=j1(B1);function H1(e){D1.default(e)}var la={exports:{}};(function(e,t){t.__esModule=!0;var n=ue,o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(i){if(typeof i=="string"){var r=n.indexOf(o.methodMap,i.toLowerCase());r>=0?i=r:i=parseInt(i,10)}return i},log:function(i){if(i=o.lookupLevel(i),typeof console<"u"&&o.lookupLevel(o.level)<=i){var r=o.methodMap[i];console[r]||(r="log");for(var l=arguments.length,s=Array(l>1?l-1:0),c=1;c<l;c++)s[c-1]=arguments[c];console[r].apply(console,s)}}};t.default=o,e.exports=t.default})(la,la.exports);var Nl=la.exports,Ht={};Ht.__esModule=!0;Ht.createProtoAccessControl=Z1;Ht.resultIsAllowed=W1;Ht.resetLoggedProperties=V1;function F1(e){return e&&e.__esModule?e:{default:e}}var Qr=ue,G1=Nl,U1=F1(G1),Hn=Object.create(null);function Z1(e){var t=Object.create(null);t.__proto__=!1,Qr.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,Qr.extend(n,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:n,defaultValue:e.allowProtoMethodsByDefault}}}function W1(e,t,n){return ei(typeof e=="function"?t.methods:t.properties,n)}function ei(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(q1(t),!1)}function q1(e){Hn[e]!==!0&&(Hn[e]=!0,U1.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
|
|
449
449
|
You can add a runtime option to disable the check or this warning:
|
|
450
|
-
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function V1(){Object.keys(Hn).forEach(function(e){delete Hn[e]})}Be.__esModule=!0;Be.HandlebarsEnvironment=sa;function
|
|
450
|
+
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function V1(){Object.keys(Hn).forEach(function(e){delete Hn[e]})}Be.__esModule=!0;Be.HandlebarsEnvironment=sa;function Rl(e){return e&&e.__esModule?e:{default:e}}var xt=ue,Y1=De,yo=Rl(Y1),K1=hn,J1=Oa,X1=Nl,Fn=Rl(X1),Q1=Ht,eS="4.7.9";Be.VERSION=eS;var tS=8;Be.COMPILER_REVISION=tS;var nS=7;Be.LAST_COMPATIBLE_COMPILER_REVISION=nS;var oS={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"};Be.REVISION_CHANGES=oS;var No="[object Object]";function sa(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},K1.registerDefaultHelpers(this),J1.registerDefaultDecorators(this)}sa.prototype={constructor:sa,logger:Fn.default,log:Fn.default.log,registerHelper:function(t,n){if(xt.toString.call(t)===No){if(n)throw new yo.default("Arg not supported with multiple helpers");xt.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if(xt.toString.call(t)===No)xt.extend(this.partials,t);else{if(typeof n>"u")throw new yo.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(xt.toString.call(t)===No){if(n)throw new yo.default("Arg not supported with multiple decorators");xt.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){Q1.resetLoggedProperties()}};var aS=Fn.default.log;Be.log=aS;Be.createFrame=xt.createFrame;Be.logger=Fn.default;var ca={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})(ca,ca.exports);var rS=ca.exports,gt={},La={};La.__esModule=!0;La.wrapHelper=iS;function iS(e,t){if(typeof e!="function")return e;var n=function(){var a=arguments[arguments.length-1];return arguments[arguments.length-1]=t(a),e.apply(this,arguments)};return n}gt.__esModule=!0;gt.checkRevision=hS;gt.template=fS;gt.wrapProgram=In;gt.resolvePartial=pS;gt.invokePartial=mS;gt.noop=El;function lS(e){return e&&e.__esModule?e:{default:e}}function sS(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 cS=ue,It=sS(cS),uS=De,tt=lS(uS),nt=Be,ti=hn,dS=La,ni=Ht;function hS(e){var t=e&&e[0]||1,n=nt.COMPILER_REVISION;if(!(t>=nt.LAST_COMPATIBLE_COMPILER_REVISION&&t<=nt.COMPILER_REVISION))if(t<nt.LAST_COMPATIBLE_COMPILER_REVISION){var o=nt.REVISION_CHANGES[n],a=nt.REVISION_CHANGES[t];throw new tt.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 ("+a+").")}else throw new tt.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 fS(e,t){if(!t)throw new tt.default("No environment passed to template");if(!e||!e.main)throw new tt.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(r,l,s){s.hash&&(l=It.extend({},l,s.hash),s.ids&&(s.ids[0]=!0)),r=t.VM.resolvePartial.call(this,r,l,s),s.hooks=this.hooks,s.protoAccessControl=this.protoAccessControl;var c=t.VM.invokePartial.call(this,r,l,s);if(c==null&&t.compile&&(s.partials[s.name]=t.compile(r,e.compilerOptions,t),c=s.partials[s.name](l,s)),c!=null){if(s.indent){for(var u=c.split(`
|
|
451
451
|
`),p=0,d=u.length;p<d&&!(!u[p]&&p+1===d);p++)u[p]=s.indent+u[p];c=u.join(`
|
|
452
|
-
`)}return c}else throw new tt.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var a={strict:function(l,s,c){if(!l||!(s in l))throw new tt.default('"'+s+'" not defined in '+l,{loc:c});return a.lookupProperty(l,s)},lookupProperty:function(l,s){var c=l[s];if(c==null||Object.prototype.hasOwnProperty.call(l,s)||ni.resultIsAllowed(c,a.protoAccessControl,s))return c},lookup:function(l,s){for(var c=l.length,u=0;u<c;u++){var p=l[u]&&a.lookupProperty(l[u],s);if(p!=null)return p}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:It.escapeExpression,invokePartial:o,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,c,u,p){var d=this.programs[l],h=this.fn(l);return s||p||u||c?d=In(this,l,h,s,c,u,p):d||(d=this.programs[l]=In(this,l,h)),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=It.extend({},s,l)),c},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(r){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],s=l.data;i._setup(l),!l.partial&&e.useData&&(s=gS(r,s));var c=void 0,u=e.useBlockParams?[]:void 0;e.useDepths&&(l.depths?c=r!=l.depths[0]?[r].concat(l.depths):l.depths:c=[r]);function p(d){return""+e.main(a,d,a.helpers,a.partials,s,u,c)}return p=El(e.main,p,a,l.depths||[],s,u),p(r,l)}return i.isTop=!0,i._setup=function(r){if(r.partial)a.protoAccessControl=r.protoAccessControl,a.helpers=r.helpers,a.partials=r.partials,a.decorators=r.decorators,a.hooks=r.hooks;else{var l={};oi(l,t.helpers,a),oi(l,r.helpers,a),a.helpers=l,e.usePartial&&(a.partials=a.mergeIfNeeded(r.partials,t.partials)),(e.usePartial||e.useDecorators)&&(a.decorators=It.extend({},t.decorators,r.decorators)),a.hooks={},a.protoAccessControl=ni.createProtoAccessControl(r);var s=r.allowCallsToHelperMissing||n;ti.moveHelperToHooks(a,"helperMissing",s),ti.moveHelperToHooks(a,"blockHelperMissing",s)}},i._child=function(r,l,s,c){if(e.useBlockParams&&!s)throw new tt.default("must pass block params");if(e.useDepths&&!c)throw new tt.default("must pass parent depths");return In(a,r,e[r],l,0,s,c)},i}function In(e,t,n,o,a,i,r){function l(s){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=r;return r&&s!=r[0]&&!(s===e.nullContext&&r[0]===null)&&(u=[s].concat(r)),n(e,s,e.helpers,e.partials,c.data||o,i&&[c.blockParams].concat(i),u)}return l=El(n,l,e,r,o,i),l.program=t,l.depth=r?r.length:0,l.blockParams=a||0,l}function pS(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=Mn(n.partials,e)):n.name==="@partial-block"?e=Mn(n.data,"partial-block"):e=Mn(n.partials,n.name),e}function mS(e,t,n){var o=Mn(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var a=void 0;if(n.fn&&n.fn!==Rl&&function(){n.data=nt.createFrame(n.data);var i=n.fn;a=n.data["partial-block"]=function(l){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return s.data=nt.createFrame(s.data),s.data["partial-block"]=o,i(l,s)},i.partials&&(n.partials=It.extend({},n.partials,i.partials))}(),e===void 0&&a&&(e=a),e===void 0)throw new tt.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function Rl(){return""}function Mn(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function gS(e,t){return(!t||!("root"in t))&&(t=t?nt.createFrame(t):{},t.root=e),t}function El(e,t,n,o,a,i){if(e.decorator){var r={};t=e.decorator(t,r,n,o&&o[0],a,i,o),It.extend(t,r)}return t}function oi(e,t,n){t&&Object.keys(t).forEach(function(o){var a=t[o];e[o]=bS(a,n)})}function bS(e,t){var n=t.lookupProperty;return dS.wrapHelper(e,function(o){return o.lookupProperty=n,o})}var ua={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})(ua,ua.exports);var Il=ua.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 $={};if(S!=null)for(var w in S)Object.prototype.hasOwnProperty.call(S,w)&&($[w]=S[w]);return $.default=S,$}var a=Be,i=o(a),r=rS,l=n(r),s=De,c=n(s),u=ue,p=o(u),d=gt,h=o(d),m=Il,b=n(m);function v(){var S=new i.HandlebarsEnvironment;return p.extend(S,i),S.SafeString=l.default,S.Exception=c.default,S.Utils=p,S.escapeExpression=p.escapeExpression,S.VM=h,S.template=function($){return h.template($,S)},S}var k=v();k.create=v,b.default(k),k.default=k,t.default=k,e.exports=t.default})(Ko,Ko.exports);var vS=Ko.exports,da={exports:{}};(function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(a){return a.type==="SubExpression"||(a.type==="MustacheStatement"||a.type==="BlockStatement")&&!!(a.params&&a.params.length||a.hash)},scopedId:function(a){return/^\.|this\b/.test(a.original)},simpleId:function(a){return a.parts.length===1&&!n.helpers.scopedId(a)&&!a.depth}}};t.default=n,e.exports=t.default})(da,da.exports);var Ml=da.exports,fn={},ha={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,p,d,h){var m=d.length-1;switch(p){case 1:return d[m-1];case 2:this.$=u.prepareProgram(d[m]);break;case 3:this.$=d[m];break;case 4:this.$=d[m];break;case 5:this.$=d[m];break;case 6:this.$=d[m];break;case 7:this.$=d[m];break;case 8:this.$=d[m];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(d[m]),strip:u.stripFlags(d[m],d[m]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[m],value:d[m],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(d[m-2],d[m-1],d[m],this._$);break;case 12:this.$={path:d[m-3],params:d[m-2],hash:d[m-1]};break;case 13:this.$=u.prepareBlock(d[m-3],d[m-2],d[m-1],d[m],!1,this._$);break;case 14:this.$=u.prepareBlock(d[m-3],d[m-2],d[m-1],d[m],!0,this._$);break;case 15:this.$={open:d[m-5],path:d[m-4],params:d[m-3],hash:d[m-2],blockParams:d[m-1],strip:u.stripFlags(d[m-5],d[m])};break;case 16:this.$={path:d[m-4],params:d[m-3],hash:d[m-2],blockParams:d[m-1],strip:u.stripFlags(d[m-5],d[m])};break;case 17:this.$={path:d[m-4],params:d[m-3],hash:d[m-2],blockParams:d[m-1],strip:u.stripFlags(d[m-5],d[m])};break;case 18:this.$={strip:u.stripFlags(d[m-1],d[m-1]),program:d[m]};break;case 19:var b=u.prepareBlock(d[m-2],d[m-1],d[m],d[m],!1,this._$),v=u.prepareProgram([b],d[m-1].loc);v.chained=!0,this.$={strip:d[m-2].strip,program:v,chain:!0};break;case 20:this.$=d[m];break;case 21:this.$={path:d[m-1],strip:u.stripFlags(d[m-2],d[m])};break;case 22:this.$=u.prepareMustache(d[m-3],d[m-2],d[m-1],d[m-4],u.stripFlags(d[m-4],d[m]),this._$);break;case 23:this.$=u.prepareMustache(d[m-3],d[m-2],d[m-1],d[m-4],u.stripFlags(d[m-4],d[m]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[m-3],params:d[m-2],hash:d[m-1],indent:"",strip:u.stripFlags(d[m-4],d[m]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(d[m-2],d[m-1],d[m],this._$);break;case 26:this.$={path:d[m-3],params:d[m-2],hash:d[m-1],strip:u.stripFlags(d[m-4],d[m])};break;case 27:this.$=d[m];break;case 28:this.$=d[m];break;case 29:this.$={type:"SubExpression",path:d[m-3],params:d[m-2],hash:d[m-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[m],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(d[m-2]),value:d[m],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(d[m-1]);break;case 33:this.$=d[m];break;case 34:this.$=d[m];break;case 35:this.$={type:"StringLiteral",value:d[m],original:d[m],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[m]),original:Number(d[m]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[m]==="true",original:d[m]==="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[m];break;case 41:this.$=d[m];break;case 42:this.$=u.preparePath(!0,d[m],this._$);break;case 43:this.$=u.preparePath(!1,d[m],this._$);break;case 44:d[m-2].push({part:u.id(d[m]),original:d[m],separator:d[m-1]}),this.$=d[m-2];break;case 45:this.$=[{part:u.id(d[m]),original:d[m]}];break;case 46:this.$=[];break;case 47:d[m-1].push(d[m]);break;case 48:this.$=[];break;case 49:d[m-1].push(d[m]);break;case 50:this.$=[];break;case 51:d[m-1].push(d[m]);break;case 58:this.$=[];break;case 59:d[m-1].push(d[m]);break;case 64:this.$=[];break;case 65:d[m-1].push(d[m]);break;case 70:this.$=[];break;case 71:d[m-1].push(d[m]);break;case 78:this.$=[];break;case 79:d[m-1].push(d[m]);break;case 82:this.$=[];break;case 83:d[m-1].push(d[m]);break;case 86:this.$=[];break;case 87:d[m-1].push(d[m]);break;case 90:this.$=[];break;case 91:d[m-1].push(d[m]);break;case 94:this.$=[];break;case 95:d[m-1].push(d[m]);break;case 98:this.$=[d[m]];break;case 99:d[m-1].push(d[m]);break;case 100:this.$=[d[m]];break;case 101:d[m-1].push(d[m]);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],p=[],d=this.table,h="",m=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 v=this.lexer.yylloc;p.push(v);var k=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function S(){var H;return H=s.lexer.lex()||1,typeof H!="number"&&(H=s.symbols_[H]||H),H}for(var $,w,_,N,A={},y,R,M,T;;){if(w=c[c.length-1],this.defaultActions[w]?_=this.defaultActions[w]:(($===null||typeof $>"u")&&($=S()),_=d[w]&&d[w][$]),typeof _>"u"||!_.length||!_[0]){var L="";{T=[];for(y in d[w])this.terminals_[y]&&y>2&&T.push("'"+this.terminals_[y]+"'");this.lexer.showPosition?L="Parse error on line "+(m+1)+`:
|
|
452
|
+
`)}return c}else throw new tt.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var a={strict:function(l,s,c){if(!l||!(s in l))throw new tt.default('"'+s+'" not defined in '+l,{loc:c});return a.lookupProperty(l,s)},lookupProperty:function(l,s){var c=l[s];if(c==null||Object.prototype.hasOwnProperty.call(l,s)||ni.resultIsAllowed(c,a.protoAccessControl,s))return c},lookup:function(l,s){for(var c=l.length,u=0;u<c;u++){var p=l[u]&&a.lookupProperty(l[u],s);if(p!=null)return p}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:It.escapeExpression,invokePartial:o,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,c,u,p){var d=this.programs[l],h=this.fn(l);return s||p||u||c?d=In(this,l,h,s,c,u,p):d||(d=this.programs[l]=In(this,l,h)),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=It.extend({},s,l)),c},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(r){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],s=l.data;i._setup(l),!l.partial&&e.useData&&(s=gS(r,s));var c=void 0,u=e.useBlockParams?[]:void 0;e.useDepths&&(l.depths?c=r!=l.depths[0]?[r].concat(l.depths):l.depths:c=[r]);function p(d){return""+e.main(a,d,a.helpers,a.partials,s,u,c)}return p=Il(e.main,p,a,l.depths||[],s,u),p(r,l)}return i.isTop=!0,i._setup=function(r){if(r.partial)a.protoAccessControl=r.protoAccessControl,a.helpers=r.helpers,a.partials=r.partials,a.decorators=r.decorators,a.hooks=r.hooks;else{var l={};oi(l,t.helpers,a),oi(l,r.helpers,a),a.helpers=l,e.usePartial&&(a.partials=a.mergeIfNeeded(r.partials,t.partials)),(e.usePartial||e.useDecorators)&&(a.decorators=It.extend({},t.decorators,r.decorators)),a.hooks={},a.protoAccessControl=ni.createProtoAccessControl(r);var s=r.allowCallsToHelperMissing||n;ti.moveHelperToHooks(a,"helperMissing",s),ti.moveHelperToHooks(a,"blockHelperMissing",s)}},i._child=function(r,l,s,c){if(e.useBlockParams&&!s)throw new tt.default("must pass block params");if(e.useDepths&&!c)throw new tt.default("must pass parent depths");return In(a,r,e[r],l,0,s,c)},i}function In(e,t,n,o,a,i,r){function l(s){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=r;return r&&s!=r[0]&&!(s===e.nullContext&&r[0]===null)&&(u=[s].concat(r)),n(e,s,e.helpers,e.partials,c.data||o,i&&[c.blockParams].concat(i),u)}return l=Il(n,l,e,r,o,i),l.program=t,l.depth=r?r.length:0,l.blockParams=a||0,l}function pS(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=Mn(n.partials,e)):n.name==="@partial-block"?e=Mn(n.data,"partial-block"):e=Mn(n.partials,n.name),e}function mS(e,t,n){var o=Mn(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var a=void 0;if(n.fn&&n.fn!==El&&function(){n.data=nt.createFrame(n.data);var i=n.fn;a=n.data["partial-block"]=function(l){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return s.data=nt.createFrame(s.data),s.data["partial-block"]=o,i(l,s)},i.partials&&(n.partials=It.extend({},n.partials,i.partials))}(),e===void 0&&a&&(e=a),e===void 0)throw new tt.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function El(){return""}function Mn(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function gS(e,t){return(!t||!("root"in t))&&(t=t?nt.createFrame(t):{},t.root=e),t}function Il(e,t,n,o,a,i){if(e.decorator){var r={};t=e.decorator(t,r,n,o&&o[0],a,i,o),It.extend(t,r)}return t}function oi(e,t,n){t&&Object.keys(t).forEach(function(o){var a=t[o];e[o]=bS(a,n)})}function bS(e,t){var n=t.lookupProperty;return dS.wrapHelper(e,function(o){return o.lookupProperty=n,o})}var ua={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})(ua,ua.exports);var Ml=ua.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 $={};if(S!=null)for(var w in S)Object.prototype.hasOwnProperty.call(S,w)&&($[w]=S[w]);return $.default=S,$}var a=Be,i=o(a),r=rS,l=n(r),s=De,c=n(s),u=ue,p=o(u),d=gt,h=o(d),m=Ml,b=n(m);function v(){var S=new i.HandlebarsEnvironment;return p.extend(S,i),S.SafeString=l.default,S.Exception=c.default,S.Utils=p,S.escapeExpression=p.escapeExpression,S.VM=h,S.template=function($){return h.template($,S)},S}var k=v();k.create=v,b.default(k),k.default=k,t.default=k,e.exports=t.default})(Ko,Ko.exports);var vS=Ko.exports,da={exports:{}};(function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(a){return a.type==="SubExpression"||(a.type==="MustacheStatement"||a.type==="BlockStatement")&&!!(a.params&&a.params.length||a.hash)},scopedId:function(a){return/^\.|this\b/.test(a.original)},simpleId:function(a){return a.parts.length===1&&!n.helpers.scopedId(a)&&!a.depth}}};t.default=n,e.exports=t.default})(da,da.exports);var Tl=da.exports,fn={},ha={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,p,d,h){var m=d.length-1;switch(p){case 1:return d[m-1];case 2:this.$=u.prepareProgram(d[m]);break;case 3:this.$=d[m];break;case 4:this.$=d[m];break;case 5:this.$=d[m];break;case 6:this.$=d[m];break;case 7:this.$=d[m];break;case 8:this.$=d[m];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(d[m]),strip:u.stripFlags(d[m],d[m]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[m],value:d[m],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(d[m-2],d[m-1],d[m],this._$);break;case 12:this.$={path:d[m-3],params:d[m-2],hash:d[m-1]};break;case 13:this.$=u.prepareBlock(d[m-3],d[m-2],d[m-1],d[m],!1,this._$);break;case 14:this.$=u.prepareBlock(d[m-3],d[m-2],d[m-1],d[m],!0,this._$);break;case 15:this.$={open:d[m-5],path:d[m-4],params:d[m-3],hash:d[m-2],blockParams:d[m-1],strip:u.stripFlags(d[m-5],d[m])};break;case 16:this.$={path:d[m-4],params:d[m-3],hash:d[m-2],blockParams:d[m-1],strip:u.stripFlags(d[m-5],d[m])};break;case 17:this.$={path:d[m-4],params:d[m-3],hash:d[m-2],blockParams:d[m-1],strip:u.stripFlags(d[m-5],d[m])};break;case 18:this.$={strip:u.stripFlags(d[m-1],d[m-1]),program:d[m]};break;case 19:var b=u.prepareBlock(d[m-2],d[m-1],d[m],d[m],!1,this._$),v=u.prepareProgram([b],d[m-1].loc);v.chained=!0,this.$={strip:d[m-2].strip,program:v,chain:!0};break;case 20:this.$=d[m];break;case 21:this.$={path:d[m-1],strip:u.stripFlags(d[m-2],d[m])};break;case 22:this.$=u.prepareMustache(d[m-3],d[m-2],d[m-1],d[m-4],u.stripFlags(d[m-4],d[m]),this._$);break;case 23:this.$=u.prepareMustache(d[m-3],d[m-2],d[m-1],d[m-4],u.stripFlags(d[m-4],d[m]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[m-3],params:d[m-2],hash:d[m-1],indent:"",strip:u.stripFlags(d[m-4],d[m]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(d[m-2],d[m-1],d[m],this._$);break;case 26:this.$={path:d[m-3],params:d[m-2],hash:d[m-1],strip:u.stripFlags(d[m-4],d[m])};break;case 27:this.$=d[m];break;case 28:this.$=d[m];break;case 29:this.$={type:"SubExpression",path:d[m-3],params:d[m-2],hash:d[m-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[m],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(d[m-2]),value:d[m],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(d[m-1]);break;case 33:this.$=d[m];break;case 34:this.$=d[m];break;case 35:this.$={type:"StringLiteral",value:d[m],original:d[m],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[m]),original:Number(d[m]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[m]==="true",original:d[m]==="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[m];break;case 41:this.$=d[m];break;case 42:this.$=u.preparePath(!0,d[m],this._$);break;case 43:this.$=u.preparePath(!1,d[m],this._$);break;case 44:d[m-2].push({part:u.id(d[m]),original:d[m],separator:d[m-1]}),this.$=d[m-2];break;case 45:this.$=[{part:u.id(d[m]),original:d[m]}];break;case 46:this.$=[];break;case 47:d[m-1].push(d[m]);break;case 48:this.$=[];break;case 49:d[m-1].push(d[m]);break;case 50:this.$=[];break;case 51:d[m-1].push(d[m]);break;case 58:this.$=[];break;case 59:d[m-1].push(d[m]);break;case 64:this.$=[];break;case 65:d[m-1].push(d[m]);break;case 70:this.$=[];break;case 71:d[m-1].push(d[m]);break;case 78:this.$=[];break;case 79:d[m-1].push(d[m]);break;case 82:this.$=[];break;case 83:d[m-1].push(d[m]);break;case 86:this.$=[];break;case 87:d[m-1].push(d[m]);break;case 90:this.$=[];break;case 91:d[m-1].push(d[m]);break;case 94:this.$=[];break;case 95:d[m-1].push(d[m]);break;case 98:this.$=[d[m]];break;case 99:d[m-1].push(d[m]);break;case 100:this.$=[d[m]];break;case 101:d[m-1].push(d[m]);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],p=[],d=this.table,h="",m=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 v=this.lexer.yylloc;p.push(v);var k=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function S(){var H;return H=s.lexer.lex()||1,typeof H!="number"&&(H=s.symbols_[H]||H),H}for(var $,w,_,N,A={},y,R,M,T;;){if(w=c[c.length-1],this.defaultActions[w]?_=this.defaultActions[w]:(($===null||typeof $>"u")&&($=S()),_=d[w]&&d[w][$]),typeof _>"u"||!_.length||!_[0]){var L="";{T=[];for(y in d[w])this.terminals_[y]&&y>2&&T.push("'"+this.terminals_[y]+"'");this.lexer.showPosition?L="Parse error on line "+(m+1)+`:
|
|
453
453
|
`+this.lexer.showPosition()+`
|
|
454
454
|
Expecting `+T.join(", ")+", got '"+(this.terminals_[$]||$)+"'":L="Parse error on line "+(m+1)+": Unexpected "+($==1?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError(L,{text:this.lexer.match,token:this.terminals_[$]||$,line:this.lexer.yylineno,loc:v,expected:T})}}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+$);switch(_[0]){case 1:c.push($),u.push(this.lexer.yytext),p.push(this.lexer.yylloc),c.push(_[1]),$=null,b=this.lexer.yyleng,h=this.lexer.yytext,m=this.lexer.yylineno,v=this.lexer.yylloc;break;case 2:if(R=this.productions_[_[1]][1],A.$=u[u.length-R],A._$={first_line:p[p.length-(R||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(R||1)].first_column,last_column:p[p.length-1].last_column},k&&(A._$.range=[p[p.length-(R||1)].range[0],p[p.length-1].range[1]]),N=this.performAction.call(A,h,b,m,this.yy,_[1],u,p),typeof N<"u")return N;R&&(c=c.slice(0,-1*R*2),u=u.slice(0,-1*R),p=p.slice(0,-1*R)),c.push(this.productions_[_[1]][0]),u.push(A.$),p.push(A._$),M=d[c[c.length-2]][c[c.length-1]],c.push(M);break;case 3:return!0}}return!0}},a=function(){var r={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 p=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===p.length?this.yylloc.first_column:0)+p[p.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()+`
|
|
455
455
|
`+c+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,c,u,p,d;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),m=0;m<h.length&&(u=this._input.match(this.rules[h[m]]),!(u&&(!c||u[0].length>c[0].length)&&(c=u,p=m,!this.options.flex)));m++);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,h[p],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.
|
|
456
|
-
`+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 r.options={},r.performAction=function(s,c,u,p){function d(h,m){return c.yytext=c.yytext.substring(h,c.yyleng-m+h)}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}},r.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],r.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}},r}();o.lexer=a;function i(){this.yy={}}return i.prototype=o,o.Parser=i,new i}();t.default=n,e.exports=t.default})(ha,ha.exports);var xS=ha.exports,fa={exports:{}},pa={exports:{}};(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var o=De,a=n(o);function i(){this.parents=[]}i.prototype={constructor:i,mutating:!1,acceptKey:function(u,p){var d=this.accept(u[p]);if(this.mutating){if(d&&!i.prototype[d.type])throw new a.default('Unexpected node type "'+d.type+'" found when accepting '+p+" on "+u.type);u[p]=d}},acceptRequired:function(u,p){if(this.acceptKey(u,p),!u[p])throw new a.default(u.type+" requires "+p)},acceptArray:function(u){for(var p=0,d=u.length;p<d;p++)this.acceptKey(u,p),u[p]||(u.splice(p,1),p--,d--)},accept:function(u){if(u){if(!this[u.type])throw new a.default("Unknown type: "+u.type,u);this.current&&this.parents.unshift(this.current),this.current=u;var p=this[u.type](u);if(this.current=this.parents.shift(),!this.mutating||p)return p;if(p!==!1)return u}},Program:function(u){this.acceptArray(u.body)},MustacheStatement:r,Decorator:r,BlockStatement:l,DecoratorBlock:l,PartialStatement:s,PartialBlockStatement:function(u){s.call(this,u),this.acceptKey(u,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:r,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 r(c){this.acceptRequired(c,"path"),this.acceptArray(c.params),this.acceptKey(c,"hash")}function l(c){r.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})(pa,pa.exports);var Tl=pa.exports;(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var o=Tl,a=n(o);function i(){var u=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=u}i.prototype=new a.default,i.prototype.Program=function(u){var p=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var h=u.body,m=0,b=h.length;m<b;m++){var v=h[m],k=this.accept(v);if(k){var S=r(h,m,d),$=l(h,m,d),w=k.openStandalone&&S,_=k.closeStandalone&&$,N=k.inlineStandalone&&S&&$;k.close&&s(h,m,!0),k.open&&c(h,m,!0),p&&N&&(s(h,m),c(h,m)&&v.type==="PartialStatement"&&(v.indent=/([ \t]+$)/.exec(h[m-1].original)[1])),p&&w&&(s((v.program||v.inverse).body),c(h,m)),p&&_&&(s(h,m),c((v.inverse||v.program).body))}}return u},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(u){this.accept(u.program),this.accept(u.inverse);var p=u.program||u.inverse,d=u.program&&u.inverse,h=d,m=d;if(d&&d.chained)for(h=d.body[0].program;m.chained;)m=m.body[m.body.length-1].program;var b={open:u.openStrip.open,close:u.closeStrip.close,openStandalone:l(p.body),closeStandalone:r((h||p).body)};if(u.openStrip.close&&s(p.body,null,!0),d){var v=u.inverseStrip;v.open&&c(p.body,null,!0),v.close&&s(h.body,null,!0),u.closeStrip.open&&c(m.body,null,!0),!this.options.ignoreStandalone&&r(p.body)&&l(h.body)&&(c(p.body),s(h.body))}else u.closeStrip.open&&c(p.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 p=u.strip||{};return{inlineStandalone:!0,open:p.open,close:p.close}};function r(u,p,d){p===void 0&&(p=u.length);var h=u[p-1],m=u[p-2];if(!h)return d;if(h.type==="ContentStatement")return(m||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(h.original)}function l(u,p,d){p===void 0&&(p=-1);var h=u[p+1],m=u[p+2];if(!h)return d;if(h.type==="ContentStatement")return(m||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(h.original)}function s(u,p,d){var h=u[p==null?0:p+1];if(!(!h||h.type!=="ContentStatement"||!d&&h.rightStripped)){var m=h.value;h.value=h.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),h.rightStripped=h.value!==m}}function c(u,p,d){var h=u[p==null?u.length-1:p-1];if(!(!h||h.type!=="ContentStatement"||!d&&h.leftStripped)){var m=h.value;return h.value=h.value.replace(d?/\s+$/:/[ \t]+$/,""),h.leftStripped=h.value!==m,h.leftStripped}}t.default=i,e.exports=t.default})(fa,fa.exports);var SS=fa.exports,He={};He.__esModule=!0;He.SourceLocation=_S;He.id=$S;He.stripFlags=CS;He.stripComment=AS;He.preparePath=yS;He.prepareMustache=NS;He.prepareRawBlock=RS;He.prepareBlock=ES;He.prepareProgram=IS;He.preparePartialBlock=MS;function wS(e){return e&&e.__esModule?e:{default:e}}var kS=De,za=wS(kS);function ja(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new za.default(e.path.original+" doesn't match "+t,n)}}function _S(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 $S(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function CS(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function AS(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function yS(e,t,n){n=this.locInfo(n);for(var o=e?"@":"",a=[],i=0,r=0,l=t.length;r<l;r++){var s=t[r].part,c=t[r].original!==s;if(o+=(t[r].separator||"")+s,!c&&(s===".."||s==="."||s==="this")){if(a.length>0)throw new za.default("Invalid path: "+o,{loc:n});s===".."&&i++}else a.push(s)}return{type:"PathExpression",data:e,depth:i,parts:a,original:o,loc:n}}function NS(e,t,n,o,a,i){var r=o.charAt(3)||o.charAt(2),l=r!=="{"&&r!=="&",s=/\*/.test(o);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:a,loc:this.locInfo(i)}}function RS(e,t,n,o){ja(e,n),o=this.locInfo(o);var a={type:"Program",body:t,strip:{},loc:o};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:a,openStrip:{},inverseStrip:{},closeStrip:{},loc:o}}function ES(e,t,n,o,a,i){o&&o.path&&ja(e,o);var r=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(r)throw new za.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=o.strip),s=n.strip,l=n.program}return a&&(a=l,l=t,t=a),{type:r?"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 IS(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 MS(e,t,n,o){return ja(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)}}fn.__esModule=!0;fn.parseWithoutProcessing=Pl;fn.parse=HS;function TS(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 Ba(e){return e&&e.__esModule?e:{default:e}}var PS=xS,ma=Ba(PS),OS=SS,LS=Ba(OS),zS=He,jS=TS(zS),BS=De,Vt=Ba(BS),DS=ue;fn.parser=ma.default;var Tn={};DS.extend(Tn,jS);function Pl(e,t){if(e.type==="Program")return FS(e),e;ma.default.yy=Tn,Tn.locInfo=function(o){return new Tn.SourceLocation(t&&t.srcName,o)};var n=ma.default.parse(e);return n}function HS(e,t){var n=Pl(e,t),o=new LS.default(t);return o.accept(n)}function FS(e){ga(e)}function ga(e){if(e!=null){if(Array.isArray(e)){e.forEach(ga);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!GS(e.depth))throw new Vt.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new Vt.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 Vt.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new Vt.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new Vt.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(n){n!=="loc"&&ga(e[n])})}}}function GS(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var pn={};pn.__esModule=!0;pn.Compiler=ba;pn.precompile=qS;pn.compile=VS;function Ol(e){return e&&e.__esModule?e:{default:e}}var US=De,tn=Ol(US),ln=ue,ZS=Ml,Yt=Ol(ZS),WS=[].slice;function ba(){}ba.prototype={compiler:ba,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var o=0;o<n;o++){var a=this.opcodes[o],i=t.opcodes[o];if(a.opcode!==i.opcode||!Ll(a.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=ln.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),a=this.guid++;return this.usePartial=this.usePartial||o.usePartial,this.children[a]=o,this.useDepths=this.useDepths||o.useDepths,a},accept:function(t){if(!this[t.type])throw new tn.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,a=0;a<o;a++)this.accept(n[a]);return this.options.blockParams.shift(),this.isSimple=o===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){ai(t);var n=t.program,o=t.inverse;n=n&&this.compileProgram(n),o=o&&this.compileProgram(o);var a=this.classifySexpr(t);a==="helper"?this.helperSexpr(t,n,o):a==="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),a=t.path;this.useDecorators=!0,this.opcode("registerDecorator",o.length,a.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 tn.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 a=t.name.original,i=t.name.type==="SubExpression";i&&this.accept(t.name),this.setupFullMustacheParams(t,n,void 0,!0);var r=t.indent||"";this.options.preventIndent&&r&&(this.opcode("appendContent",r),r=""),this.opcode("invokePartial",i,a,r),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){ai(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 a=t.path,i=a.parts[0],r=n!=null||o!=null;this.opcode("getContext",a.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",o),a.strict=!0,this.accept(a),this.opcode("invokeAmbiguous",i,r)},simpleSexpr:function(t){var n=t.path;n.strict=!0,this.accept(n),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,n,o){var a=this.setupFullMustacheParams(t,n,o),i=t.path,r=i.parts[0];if(this.options.knownHelpers[r])this.opcode("invokeKnownHelper",a.length,r);else{if(this.options.knownHelpersOnly)throw new tn.default("You specified knownHelpersOnly, but used the unknown helper "+r,t);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",a.length,i.original,Yt.default.helpers.simpleId(i))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],o=Yt.default.helpers.scopedId(t),a=!t.depth&&!o&&this.blockParamIndex(n);a?this.opcode("lookupBlockParam",a,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,a=n.length;for(this.opcode("pushHash");o<a;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:WS.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var n=Yt.default.helpers.simpleId(t.path),o=n&&!!this.blockParamIndex(t.path.parts[0]),a=!o&&Yt.default.helpers.helperExpression(t),i=!o&&(a||n);if(i&&!a){var r=t.path.parts[0],l=this.options;l.knownHelpers[r]?a=!0:l.knownHelpersOnly&&(i=!1)}return a?"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&&!Yt.default.helpers.scopedId(t)&&!t.depth&&(o=this.blockParamIndex(t.parts[0])),o){var a=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",o,a)}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,a){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",a),i},blockParamIndex:function(t){for(var n=0,o=this.options.blockParams.length;n<o;n++){var a=this.options.blockParams[n],i=a&&ln.indexOf(a,t);if(a&&i>=0)return[n,i]}}};function qS(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new tn.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),a=new n.Compiler().compile(o,t);return new n.JavaScriptCompiler().compile(a,t)}function VS(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new tn.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=ln.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=void 0;function a(){var r=n.parse(e,t),l=new n.Compiler().compile(r,t),s=new n.JavaScriptCompiler().compile(l,t,void 0,!0);return n.template(s)}function i(r,l){return o||(o=a()),o.call(this,r,l)}return i._setup=function(r){return o||(o=a()),o._setup(r)},i._child=function(r,l,s,c){return o||(o=a()),o._child(r,l,s,c)},i}function Ll(e,t){if(e===t)return!0;if(ln.isArray(e)&&ln.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!Ll(e[n],t[n]))return!1;return!0}}function ai(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 va={exports:{}},xa={exports:{}},Kt={},Ro={},yn={},Nn={},ri;function YS(){if(ri)return Nn;ri=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Nn.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Nn.decode=function(t){var n=65,o=90,a=97,i=122,r=48,l=57,s=43,c=47,u=26,p=52;return n<=t&&t<=o?t-n:a<=t&&t<=i?t-a+u:r<=t&&t<=l?t-r+p:t==s?62:t==c?63:-1},Nn}var ii;function zl(){if(ii)return yn;ii=1;var e=YS(),t=5,n=1<<t,o=n-1,a=n;function i(l){return l<0?(-l<<1)+1:(l<<1)+0}function r(l){var s=(l&1)===1,c=l>>1;return s?-c:c}return yn.encode=function(s){var c="",u,p=i(s);do u=p&o,p>>>=t,p>0&&(u|=a),c+=e.encode(u);while(p>0);return c},yn.decode=function(s,c,u){var p=s.length,d=0,h=0,m,b;do{if(c>=p)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));m=!!(b&a),b&=o,d=d+(b<<h),h+=t}while(m);u.value=r(d),u.rest=c},yn}var Eo={},li;function mn(){return li||(li=1,function(e){function t(w,_,N){if(_ in w)return w[_];if(arguments.length===3)return N;throw new Error('"'+_+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,o=/^data:.+\,.+$/;function a(w){var _=w.match(n);return _?{scheme:_[1],auth:_[2],host:_[3],port:_[4],path:_[5]}:null}e.urlParse=a;function i(w){var _="";return w.scheme&&(_+=w.scheme+":"),_+="//",w.auth&&(_+=w.auth+"@"),w.host&&(_+=w.host),w.port&&(_+=":"+w.port),w.path&&(_+=w.path),_}e.urlGenerate=i;function r(w){var _=w,N=a(w);if(N){if(!N.path)return w;_=N.path}for(var A=e.isAbsolute(_),y=_.split(/\/+/),R,M=0,T=y.length-1;T>=0;T--)R=y[T],R==="."?y.splice(T,1):R===".."?M++:M>0&&(R===""?(y.splice(T+1,M),M=0):(y.splice(T,2),M--));return _=y.join("/"),_===""&&(_=A?"/":"."),N?(N.path=_,i(N)):_}e.normalize=r;function l(w,_){w===""&&(w="."),_===""&&(_=".");var N=a(_),A=a(w);if(A&&(w=A.path||"/"),N&&!N.scheme)return A&&(N.scheme=A.scheme),i(N);if(N||_.match(o))return _;if(A&&!A.host&&!A.path)return A.host=_,i(A);var y=_.charAt(0)==="/"?_:r(w.replace(/\/+$/,"")+"/"+_);return A?(A.path=y,i(A)):y}e.join=l,e.isAbsolute=function(w){return w.charAt(0)==="/"||n.test(w)};function s(w,_){w===""&&(w="."),w=w.replace(/\/$/,"");for(var N=0;_.indexOf(w+"/")!==0;){var A=w.lastIndexOf("/");if(A<0||(w=w.slice(0,A),w.match(/^([^\/]+:\/)?\/*$/)))return _;++N}return Array(N+1).join("../")+_.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 p(w){return h(w)?"$"+w:w}e.toSetString=c?u:p;function d(w){return h(w)?w.slice(1):w}e.fromSetString=c?u:d;function h(w){if(!w)return!1;var _=w.length;if(_<9||w.charCodeAt(_-1)!==95||w.charCodeAt(_-2)!==95||w.charCodeAt(_-3)!==111||w.charCodeAt(_-4)!==116||w.charCodeAt(_-5)!==111||w.charCodeAt(_-6)!==114||w.charCodeAt(_-7)!==112||w.charCodeAt(_-8)!==95||w.charCodeAt(_-9)!==95)return!1;for(var N=_-10;N>=0;N--)if(w.charCodeAt(N)!==36)return!1;return!0}function m(w,_,N){var A=v(w.source,_.source);return A!==0||(A=w.originalLine-_.originalLine,A!==0)||(A=w.originalColumn-_.originalColumn,A!==0||N)||(A=w.generatedColumn-_.generatedColumn,A!==0)||(A=w.generatedLine-_.generatedLine,A!==0)?A:v(w.name,_.name)}e.compareByOriginalPositions=m;function b(w,_,N){var A=w.generatedLine-_.generatedLine;return A!==0||(A=w.generatedColumn-_.generatedColumn,A!==0||N)||(A=v(w.source,_.source),A!==0)||(A=w.originalLine-_.originalLine,A!==0)||(A=w.originalColumn-_.originalColumn,A!==0)?A:v(w.name,_.name)}e.compareByGeneratedPositionsDeflated=b;function v(w,_){return w===_?0:w===null?1:_===null?-1:w>_?1:-1}function k(w,_){var N=w.generatedLine-_.generatedLine;return N!==0||(N=w.generatedColumn-_.generatedColumn,N!==0)||(N=v(w.source,_.source),N!==0)||(N=w.originalLine-_.originalLine,N!==0)||(N=w.originalColumn-_.originalColumn,N!==0)?N:v(w.name,_.name)}e.compareByGeneratedPositionsInflated=k;function S(w){return JSON.parse(w.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=S;function $(w,_,N){if(_=_||"",w&&(w[w.length-1]!=="/"&&_[0]!=="/"&&(w+="/"),_=w+_),N){var A=a(N);if(!A)throw new Error("sourceMapURL could not be parsed");if(A.path){var y=A.path.lastIndexOf("/");y>=0&&(A.path=A.path.substring(0,y+1))}_=l(i(A),_)}return r(_)}e.computeSourceURL=$}(Eo)),Eo}var Io={},si;function jl(){if(si)return Io;si=1;var e=mn(),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,r){for(var l=new o,s=0,c=i.length;s<c;s++)l.add(i[s],r);return l},o.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(i,r){var l=n?i:e.toSetString(i),s=n?this.has(i):t.call(this._set,l),c=this._array.length;(!s||r)&&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 r=e.toSetString(i);return t.call(this._set,r)},o.prototype.indexOf=function(i){if(n){var r=this._set.get(i);if(r>=0)return r}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()},Io.ArraySet=o,Io}var Mo={},ci;function KS(){if(ci)return Mo;ci=1;var e=mn();function t(o,a){var i=o.generatedLine,r=a.generatedLine,l=o.generatedColumn,s=a.generatedColumn;return r>i||r==i&&s>=l||e.compareByGeneratedPositionsInflated(o,a)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(a,i){this._array.forEach(a,i)},n.prototype.add=function(a){t(this._last,a)?(this._last=a,this._array.push(a)):(this._sorted=!1,this._array.push(a))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Mo.MappingList=n,Mo}var ui;function Bl(){if(ui)return Ro;ui=1;var e=zl(),t=mn(),n=jl().ArraySet,o=KS().MappingList;function a(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 a.prototype._version=3,a.fromSourceMap=function(r){var l=r.sourceRoot,s=new a({file:r.file,sourceRoot:l});return r.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)}),r.sources.forEach(function(c){var u=c;l!==null&&(u=t.relative(l,c)),s._sources.has(u)||s._sources.add(u);var p=r.sourceContentFor(c);p!=null&&s.setSourceContent(c,p)}),s},a.prototype.addMapping=function(r){var l=t.getArg(r,"generated"),s=t.getArg(r,"original",null),c=t.getArg(r,"source",null),u=t.getArg(r,"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})},a.prototype.setSourceContent=function(r,l){var s=r;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))},a.prototype.applySourceMap=function(r,l,s){var c=l;if(l==null){if(r.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=r.file}var u=this._sourceRoot;u!=null&&(c=t.relative(u,c));var p=new n,d=new n;this._mappings.unsortedForEach(function(h){if(h.source===c&&h.originalLine!=null){var m=r.originalPositionFor({line:h.originalLine,column:h.originalColumn});m.source!=null&&(h.source=m.source,s!=null&&(h.source=t.join(s,h.source)),u!=null&&(h.source=t.relative(u,h.source)),h.originalLine=m.line,h.originalColumn=m.column,m.name!=null&&(h.name=m.name))}var b=h.source;b!=null&&!p.has(b)&&p.add(b);var v=h.name;v!=null&&!d.has(v)&&d.add(v)},this),this._sources=p,this._names=d,r.sources.forEach(function(h){var m=r.sourceContentFor(h);m!=null&&(s!=null&&(h=t.join(s,h)),u!=null&&(h=t.relative(u,h)),this.setSourceContent(h,m))},this)},a.prototype._validateMapping=function(r,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(!(r&&"line"in r&&"column"in r&&r.line>0&&r.column>=0&&!l&&!s&&!c)){if(r&&"line"in r&&"column"in r&&l&&"line"in l&&"column"in l&&r.line>0&&r.column>=0&&l.line>0&&l.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:r,source:s,original:l,name:c}))}},a.prototype._serializeMappings=function(){for(var r=0,l=1,s=0,c=0,u=0,p=0,d="",h,m,b,v,k=this._mappings.toArray(),S=0,$=k.length;S<$;S++){if(m=k[S],h="",m.generatedLine!==l)for(r=0;m.generatedLine!==l;)h+=";",l++;else if(S>0){if(!t.compareByGeneratedPositionsInflated(m,k[S-1]))continue;h+=","}h+=e.encode(m.generatedColumn-r),r=m.generatedColumn,m.source!=null&&(v=this._sources.indexOf(m.source),h+=e.encode(v-p),p=v,h+=e.encode(m.originalLine-1-c),c=m.originalLine-1,h+=e.encode(m.originalColumn-s),s=m.originalColumn,m.name!=null&&(b=this._names.indexOf(m.name),h+=e.encode(b-u),u=b)),d+=h}return d},a.prototype._generateSourcesContent=function(r,l){return r.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)},a.prototype.toJSON=function(){var r={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(r.file=this._file),this._sourceRoot!=null&&(r.sourceRoot=this._sourceRoot),this._sourcesContents&&(r.sourcesContent=this._generateSourcesContent(r.sources,r.sourceRoot)),r},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},Ro.SourceMapGenerator=a,Ro}var Jt={},To={},di;function JS(){return di||(di=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,o,a,i,r,l){var s=Math.floor((o-n)/2)+n,c=r(a,i[s],!0);return c===0?s:c>0?o-s>1?t(s,o,a,i,r,l):l==e.LEAST_UPPER_BOUND?o<i.length?o:-1:s:s-n>1?t(n,s,a,i,r,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(o,a,i,r){if(a.length===0)return-1;var l=t(-1,a.length,o,a,i,r||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&i(a[l],a[l-1],!0)===0;)--l;return l}}(To)),To}var Po={},hi;function XS(){if(hi)return Po;hi=1;function e(o,a,i){var r=o[a];o[a]=o[i],o[i]=r}function t(o,a){return Math.round(o+Math.random()*(a-o))}function n(o,a,i,r){if(i<r){var l=t(i,r),s=i-1;e(o,l,r);for(var c=o[r],u=i;u<r;u++)a(o[u],c)<=0&&(s+=1,e(o,s,u));e(o,s+1,u);var p=s+1;n(o,a,i,p-1),n(o,a,p+1,r)}}return Po.quickSort=function(o,a){n(o,a,0,o.length-1)},Po}var fi;function QS(){if(fi)return Jt;fi=1;var e=mn(),t=JS(),n=jl().ArraySet,o=zl(),a=XS().quickSort;function i(c,u){var p=c;return typeof c=="string"&&(p=e.parseSourceMapInput(c)),p.sections!=null?new s(p,u):new r(p,u)}i.fromSourceMap=function(c,u){return r.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,p){var d=u.charAt(p);return d===";"||d===","},i.prototype._parseMappings=function(u,p){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,p,d){var h=p||null,m=d||i.GENERATED_ORDER,b;switch(m){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 v=this.sourceRoot;b.map(function(k){var S=k.source===null?null:this._sources.at(k.source);return S=e.computeSourceURL(v,S,this._sourceMapURL),{source:S,generatedLine:k.generatedLine,generatedColumn:k.generatedColumn,originalLine:k.originalLine,originalColumn:k.originalColumn,name:k.name===null?null:this._names.at(k.name)}},this).forEach(u,h)},i.prototype.allGeneratedPositionsFor=function(u){var p=e.getArg(u,"line"),d={source:e.getArg(u,"source"),originalLine:p,originalColumn:e.getArg(u,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var h=[],m=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(m>=0){var b=this._originalMappings[m];if(u.column===void 0)for(var v=b.originalLine;b&&b.originalLine===v;)h.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++m];else for(var k=b.originalColumn;b&&b.originalLine===p&&b.originalColumn==k;)h.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++m]}return h},Jt.SourceMapConsumer=i;function r(c,u){var p=c;typeof c=="string"&&(p=e.parseSourceMapInput(c));var d=e.getArg(p,"version"),h=e.getArg(p,"sources"),m=e.getArg(p,"names",[]),b=e.getArg(p,"sourceRoot",null),v=e.getArg(p,"sourcesContent",null),k=e.getArg(p,"mappings"),S=e.getArg(p,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);b&&(b=e.normalize(b)),h=h.map(String).map(e.normalize).map(function($){return b&&e.isAbsolute(b)&&e.isAbsolute($)?e.relative(b,$):$}),this._names=n.fromArray(m.map(String),!0),this._sources=n.fromArray(h,!0),this._absoluteSources=this._sources.toArray().map(function($){return e.computeSourceURL(b,$,u)}),this.sourceRoot=b,this.sourcesContent=v,this._mappings=k,this._sourceMapURL=u,this.file=S}r.prototype=Object.create(i.prototype),r.prototype.consumer=i,r.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 p;for(p=0;p<this._absoluteSources.length;++p)if(this._absoluteSources[p]==c)return p;return-1},r.fromSourceMap=function(u,p){var d=Object.create(r.prototype),h=d._names=n.fromArray(u._names.toArray(),!0),m=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=p,d._absoluteSources=d._sources.toArray().map(function(N){return e.computeSourceURL(d.sourceRoot,N,p)});for(var b=u._mappings.toArray().slice(),v=d.__generatedMappings=[],k=d.__originalMappings=[],S=0,$=b.length;S<$;S++){var w=b[S],_=new l;_.generatedLine=w.generatedLine,_.generatedColumn=w.generatedColumn,w.source&&(_.source=m.indexOf(w.source),_.originalLine=w.originalLine,_.originalColumn=w.originalColumn,w.name&&(_.name=h.indexOf(w.name)),k.push(_)),v.push(_)}return a(d.__originalMappings,e.compareByOriginalPositions),d},r.prototype._version=3,Object.defineProperty(r.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}r.prototype._parseMappings=function(u,p){for(var d=1,h=0,m=0,b=0,v=0,k=0,S=u.length,$=0,w={},_={},N=[],A=[],y,R,M,T,L;$<S;)if(u.charAt($)===";")d++,$++,h=0;else if(u.charAt($)===",")$++;else{for(y=new l,y.generatedLine=d,T=$;T<S&&!this._charIsMappingSeparator(u,T);T++);if(R=u.slice($,T),M=w[R],M)$+=R.length;else{for(M=[];$<T;)o.decode(u,$,_),L=_.value,$=_.rest,M.push(L);if(M.length===2)throw new Error("Found a source, but no line and column");if(M.length===3)throw new Error("Found a source and line, but no column");w[R]=M}y.generatedColumn=h+M[0],h=y.generatedColumn,M.length>1&&(y.source=v+M[1],v+=M[1],y.originalLine=m+M[2],m=y.originalLine,y.originalLine+=1,y.originalColumn=b+M[3],b=y.originalColumn,M.length>4&&(y.name=k+M[4],k+=M[4])),A.push(y),typeof y.originalLine=="number"&&N.push(y)}a(A,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=A,a(N,e.compareByOriginalPositions),this.__originalMappings=N},r.prototype._findMapping=function(u,p,d,h,m,b){if(u[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+u[d]);if(u[h]<0)throw new TypeError("Column must be greater than or equal to 0, got "+u[h]);return t.search(u,p,m,b)},r.prototype.computeColumnSpans=function(){for(var u=0;u<this._generatedMappings.length;++u){var p=this._generatedMappings[u];if(u+1<this._generatedMappings.length){var d=this._generatedMappings[u+1];if(p.generatedLine===d.generatedLine){p.lastGeneratedColumn=d.generatedColumn-1;continue}}p.lastGeneratedColumn=1/0}},r.prototype.originalPositionFor=function(u){var p={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=this._findMapping(p,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(d>=0){var h=this._generatedMappings[d];if(h.generatedLine===p.generatedLine){var m=e.getArg(h,"source",null);m!==null&&(m=this._sources.at(m),m=e.computeSourceURL(this.sourceRoot,m,this._sourceMapURL));var b=e.getArg(h,"name",null);return b!==null&&(b=this._names.at(b)),{source:m,line:e.getArg(h,"originalLine",null),column:e.getArg(h,"originalColumn",null),name:b}}}return{source:null,line:null,column:null,name:null}},r.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(u){return u==null}):!1},r.prototype.sourceContentFor=function(u,p){if(!this.sourcesContent)return null;var d=this._findSourceIndex(u);if(d>=0)return this.sourcesContent[d];var h=u;this.sourceRoot!=null&&(h=e.relative(this.sourceRoot,h));var m;if(this.sourceRoot!=null&&(m=e.urlParse(this.sourceRoot))){var b=h.replace(/^file:\/\//,"");if(m.scheme=="file"&&this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];if((!m.path||m.path=="/")&&this._sources.has("/"+h))return this.sourcesContent[this._sources.indexOf("/"+h)]}if(p)return null;throw new Error('"'+h+'" is not in the SourceMap.')},r.prototype.generatedPositionFor=function(u){var p=e.getArg(u,"source");if(p=this._findSourceIndex(p),p<0)return{line:null,column:null,lastColumn:null};var d={source:p,originalLine:e.getArg(u,"line"),originalColumn:e.getArg(u,"column")},h=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(h>=0){var m=this._originalMappings[h];if(m.source===d.source)return{line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Jt.BasicSourceMapConsumer=r;function s(c,u){var p=c;typeof c=="string"&&(p=e.parseSourceMapInput(c));var d=e.getArg(p,"version"),h=e.getArg(p,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new n,this._names=new n;var m={line:-1,column:0};this._sections=h.map(function(b){if(b.url)throw new Error("Support for url field in sections not implemented.");var v=e.getArg(b,"offset"),k=e.getArg(v,"line"),S=e.getArg(v,"column");if(k<m.line||k===m.line&&S<m.column)throw new Error("Section offsets must be ordered and non-overlapping.");return m=v,{generatedOffset:{generatedLine:k+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 p=0;p<this._sections[u].consumer.sources.length;p++)c.push(this._sections[u].consumer.sources[p]);return c}}),s.prototype.originalPositionFor=function(u){var p={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=t.search(p,this._sections,function(m,b){var v=m.generatedLine-b.generatedOffset.generatedLine;return v||m.generatedColumn-b.generatedOffset.generatedColumn}),h=this._sections[d];return h?h.consumer.originalPositionFor({line:p.generatedLine-(h.generatedOffset.generatedLine-1),column:p.generatedColumn-(h.generatedOffset.generatedLine===p.generatedLine?h.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,p){for(var d=0;d<this._sections.length;d++){var h=this._sections[d],m=h.consumer.sourceContentFor(u,!0);if(m)return m}if(p)return null;throw new Error('"'+u+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(u){for(var p=0;p<this._sections.length;p++){var d=this._sections[p];if(d.consumer._findSourceIndex(e.getArg(u,"source"))!==-1){var h=d.consumer.generatedPositionFor(u);if(h){var m={line:h.line+(d.generatedOffset.generatedLine-1),column:h.column+(d.generatedOffset.generatedLine===h.line?d.generatedOffset.generatedColumn-1:0)};return m}}}return{line:null,column:null}},s.prototype._parseMappings=function(u,p){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var h=this._sections[d],m=h.consumer._generatedMappings,b=0;b<m.length;b++){var v=m[b],k=h.consumer._sources.at(v.source);k=e.computeSourceURL(h.consumer.sourceRoot,k,this._sourceMapURL),this._sources.add(k),k=this._sources.indexOf(k);var S=null;v.name&&(S=h.consumer._names.at(v.name),this._names.add(S),S=this._names.indexOf(S));var $={source:k,generatedLine:v.generatedLine+(h.generatedOffset.generatedLine-1),generatedColumn:v.generatedColumn+(h.generatedOffset.generatedLine===v.generatedLine?h.generatedOffset.generatedColumn-1:0),originalLine:v.originalLine,originalColumn:v.originalColumn,name:S};this.__generatedMappings.push($),typeof $.originalLine=="number"&&this.__originalMappings.push($)}a(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),a(this.__originalMappings,e.compareByOriginalPositions)},Jt.IndexedSourceMapConsumer=s,Jt}var Oo={},pi;function e2(){if(pi)return Oo;pi=1;var e=Bl().SourceMapGenerator,t=mn(),n=/(\r?\n)/,o=10,a="$$$isSourceNode$$$";function i(r,l,s,c,u){this.children=[],this.sourceContents={},this.line=r??null,this.column=l??null,this.source=s??null,this.name=u??null,this[a]=!0,c!=null&&this.add(c)}return i.fromStringWithSourceMap=function(l,s,c){var u=new i,p=l.split(n),d=0,h=function(){var S=w(),$=w()||"";return S+$;function w(){return d<p.length?p[d++]:void 0}},m=1,b=0,v=null;return s.eachMapping(function(S){if(v!==null)if(m<S.generatedLine)k(v,h()),m++,b=0;else{var $=p[d]||"",w=$.substr(0,S.generatedColumn-b);p[d]=$.substr(S.generatedColumn-b),b=S.generatedColumn,k(v,w),v=S;return}for(;m<S.generatedLine;)u.add(h()),m++;if(b<S.generatedColumn){var $=p[d]||"";u.add($.substr(0,S.generatedColumn)),p[d]=$.substr(S.generatedColumn),b=S.generatedColumn}v=S},this),d<p.length&&(v&&k(v,h()),u.add(p.splice(d).join(""))),s.sources.forEach(function(S){var $=s.sourceContentFor(S);$!=null&&(c!=null&&(S=t.join(c,S)),u.setSourceContent(S,$))}),u;function k(S,$){if(S===null||S.source===void 0)u.add($);else{var w=c?t.join(c,S.source):S.source;u.add(new i(S.originalLine,S.originalColumn,w,$,S.name))}}},i.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(s){this.add(s)},this);else if(l[a]||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[a]||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[a]?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[a]?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][a]&&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,p=null,d=null,h=null,m=null;return this.walk(function(b,v){s.code+=b,v.source!==null&&v.line!==null&&v.column!==null?((p!==v.source||d!==v.line||h!==v.column||m!==v.name)&&c.addMapping({source:v.source,original:{line:v.line,column:v.column},generated:{line:s.line,column:s.column},name:v.name}),p=v.source,d=v.line,h=v.column,m=v.name,u=!0):u&&(c.addMapping({generated:{line:s.line,column:s.column}}),p=null,u=!1);for(var k=0,S=b.length;k<S;k++)b.charCodeAt(k)===o?(s.line++,s.column=0,k+1===S?(p=null,u=!1):u&&c.addMapping({source:v.source,original:{line:v.line,column:v.column},generated:{line:s.line,column:s.column},name:v.name})):s.column++}),this.walkSourceContents(function(b,v){c.setSourceContent(b,v)}),{code:s.code,map:c}},Oo.SourceNode=i,Oo}var mi;function t2(){return mi||(mi=1,Kt.SourceMapGenerator=Bl().SourceMapGenerator,Kt.SourceMapConsumer=QS().SourceMapConsumer,Kt.SourceNode=e2().SourceNode),Kt}(function(e,t){t.__esModule=!0;var n=ue,o=void 0;try{var a=t2();o=a.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=[],p=0,d=l.length;p<d;p++)u.push(s.wrap(l[p],c));return u}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function r(l){this.srcFile=l,this.source=[]}r.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,`
|
|
456
|
+
`+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 r.options={},r.performAction=function(s,c,u,p){function d(h,m){return c.yytext=c.yytext.substring(h,c.yyleng-m+h)}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}},r.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],r.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}},r}();o.lexer=a;function i(){this.yy={}}return i.prototype=o,o.Parser=i,new i}();t.default=n,e.exports=t.default})(ha,ha.exports);var xS=ha.exports,fa={exports:{}},pa={exports:{}};(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var o=De,a=n(o);function i(){this.parents=[]}i.prototype={constructor:i,mutating:!1,acceptKey:function(u,p){var d=this.accept(u[p]);if(this.mutating){if(d&&!i.prototype[d.type])throw new a.default('Unexpected node type "'+d.type+'" found when accepting '+p+" on "+u.type);u[p]=d}},acceptRequired:function(u,p){if(this.acceptKey(u,p),!u[p])throw new a.default(u.type+" requires "+p)},acceptArray:function(u){for(var p=0,d=u.length;p<d;p++)this.acceptKey(u,p),u[p]||(u.splice(p,1),p--,d--)},accept:function(u){if(u){if(!this[u.type])throw new a.default("Unknown type: "+u.type,u);this.current&&this.parents.unshift(this.current),this.current=u;var p=this[u.type](u);if(this.current=this.parents.shift(),!this.mutating||p)return p;if(p!==!1)return u}},Program:function(u){this.acceptArray(u.body)},MustacheStatement:r,Decorator:r,BlockStatement:l,DecoratorBlock:l,PartialStatement:s,PartialBlockStatement:function(u){s.call(this,u),this.acceptKey(u,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:r,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 r(c){this.acceptRequired(c,"path"),this.acceptArray(c.params),this.acceptKey(c,"hash")}function l(c){r.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})(pa,pa.exports);var Pl=pa.exports;(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var o=Pl,a=n(o);function i(){var u=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=u}i.prototype=new a.default,i.prototype.Program=function(u){var p=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var h=u.body,m=0,b=h.length;m<b;m++){var v=h[m],k=this.accept(v);if(k){var S=r(h,m,d),$=l(h,m,d),w=k.openStandalone&&S,_=k.closeStandalone&&$,N=k.inlineStandalone&&S&&$;k.close&&s(h,m,!0),k.open&&c(h,m,!0),p&&N&&(s(h,m),c(h,m)&&v.type==="PartialStatement"&&(v.indent=/([ \t]+$)/.exec(h[m-1].original)[1])),p&&w&&(s((v.program||v.inverse).body),c(h,m)),p&&_&&(s(h,m),c((v.inverse||v.program).body))}}return u},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(u){this.accept(u.program),this.accept(u.inverse);var p=u.program||u.inverse,d=u.program&&u.inverse,h=d,m=d;if(d&&d.chained)for(h=d.body[0].program;m.chained;)m=m.body[m.body.length-1].program;var b={open:u.openStrip.open,close:u.closeStrip.close,openStandalone:l(p.body),closeStandalone:r((h||p).body)};if(u.openStrip.close&&s(p.body,null,!0),d){var v=u.inverseStrip;v.open&&c(p.body,null,!0),v.close&&s(h.body,null,!0),u.closeStrip.open&&c(m.body,null,!0),!this.options.ignoreStandalone&&r(p.body)&&l(h.body)&&(c(p.body),s(h.body))}else u.closeStrip.open&&c(p.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 p=u.strip||{};return{inlineStandalone:!0,open:p.open,close:p.close}};function r(u,p,d){p===void 0&&(p=u.length);var h=u[p-1],m=u[p-2];if(!h)return d;if(h.type==="ContentStatement")return(m||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(h.original)}function l(u,p,d){p===void 0&&(p=-1);var h=u[p+1],m=u[p+2];if(!h)return d;if(h.type==="ContentStatement")return(m||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(h.original)}function s(u,p,d){var h=u[p==null?0:p+1];if(!(!h||h.type!=="ContentStatement"||!d&&h.rightStripped)){var m=h.value;h.value=h.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),h.rightStripped=h.value!==m}}function c(u,p,d){var h=u[p==null?u.length-1:p-1];if(!(!h||h.type!=="ContentStatement"||!d&&h.leftStripped)){var m=h.value;return h.value=h.value.replace(d?/\s+$/:/[ \t]+$/,""),h.leftStripped=h.value!==m,h.leftStripped}}t.default=i,e.exports=t.default})(fa,fa.exports);var SS=fa.exports,He={};He.__esModule=!0;He.SourceLocation=_S;He.id=$S;He.stripFlags=CS;He.stripComment=AS;He.preparePath=yS;He.prepareMustache=NS;He.prepareRawBlock=RS;He.prepareBlock=ES;He.prepareProgram=IS;He.preparePartialBlock=MS;function wS(e){return e&&e.__esModule?e:{default:e}}var kS=De,za=wS(kS);function ja(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new za.default(e.path.original+" doesn't match "+t,n)}}function _S(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 $S(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function CS(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function AS(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function yS(e,t,n){n=this.locInfo(n);for(var o=e?"@":"",a=[],i=0,r=0,l=t.length;r<l;r++){var s=t[r].part,c=t[r].original!==s;if(o+=(t[r].separator||"")+s,!c&&(s===".."||s==="."||s==="this")){if(a.length>0)throw new za.default("Invalid path: "+o,{loc:n});s===".."&&i++}else a.push(s)}return{type:"PathExpression",data:e,depth:i,parts:a,original:o,loc:n}}function NS(e,t,n,o,a,i){var r=o.charAt(3)||o.charAt(2),l=r!=="{"&&r!=="&",s=/\*/.test(o);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:a,loc:this.locInfo(i)}}function RS(e,t,n,o){ja(e,n),o=this.locInfo(o);var a={type:"Program",body:t,strip:{},loc:o};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:a,openStrip:{},inverseStrip:{},closeStrip:{},loc:o}}function ES(e,t,n,o,a,i){o&&o.path&&ja(e,o);var r=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(r)throw new za.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=o.strip),s=n.strip,l=n.program}return a&&(a=l,l=t,t=a),{type:r?"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 IS(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 MS(e,t,n,o){return ja(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)}}fn.__esModule=!0;fn.parseWithoutProcessing=Ol;fn.parse=HS;function TS(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 Ba(e){return e&&e.__esModule?e:{default:e}}var PS=xS,ma=Ba(PS),OS=SS,LS=Ba(OS),zS=He,jS=TS(zS),BS=De,Vt=Ba(BS),DS=ue;fn.parser=ma.default;var Tn={};DS.extend(Tn,jS);function Ol(e,t){if(e.type==="Program")return FS(e),e;ma.default.yy=Tn,Tn.locInfo=function(o){return new Tn.SourceLocation(t&&t.srcName,o)};var n=ma.default.parse(e);return n}function HS(e,t){var n=Ol(e,t),o=new LS.default(t);return o.accept(n)}function FS(e){ga(e)}function ga(e){if(e!=null){if(Array.isArray(e)){e.forEach(ga);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!GS(e.depth))throw new Vt.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new Vt.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 Vt.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new Vt.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new Vt.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(n){n!=="loc"&&ga(e[n])})}}}function GS(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var pn={};pn.__esModule=!0;pn.Compiler=ba;pn.precompile=qS;pn.compile=VS;function Ll(e){return e&&e.__esModule?e:{default:e}}var US=De,tn=Ll(US),ln=ue,ZS=Tl,Yt=Ll(ZS),WS=[].slice;function ba(){}ba.prototype={compiler:ba,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var o=0;o<n;o++){var a=this.opcodes[o],i=t.opcodes[o];if(a.opcode!==i.opcode||!zl(a.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=ln.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),a=this.guid++;return this.usePartial=this.usePartial||o.usePartial,this.children[a]=o,this.useDepths=this.useDepths||o.useDepths,a},accept:function(t){if(!this[t.type])throw new tn.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,a=0;a<o;a++)this.accept(n[a]);return this.options.blockParams.shift(),this.isSimple=o===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){ai(t);var n=t.program,o=t.inverse;n=n&&this.compileProgram(n),o=o&&this.compileProgram(o);var a=this.classifySexpr(t);a==="helper"?this.helperSexpr(t,n,o):a==="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),a=t.path;this.useDecorators=!0,this.opcode("registerDecorator",o.length,a.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 tn.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 a=t.name.original,i=t.name.type==="SubExpression";i&&this.accept(t.name),this.setupFullMustacheParams(t,n,void 0,!0);var r=t.indent||"";this.options.preventIndent&&r&&(this.opcode("appendContent",r),r=""),this.opcode("invokePartial",i,a,r),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){ai(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 a=t.path,i=a.parts[0],r=n!=null||o!=null;this.opcode("getContext",a.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",o),a.strict=!0,this.accept(a),this.opcode("invokeAmbiguous",i,r)},simpleSexpr:function(t){var n=t.path;n.strict=!0,this.accept(n),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,n,o){var a=this.setupFullMustacheParams(t,n,o),i=t.path,r=i.parts[0];if(this.options.knownHelpers[r])this.opcode("invokeKnownHelper",a.length,r);else{if(this.options.knownHelpersOnly)throw new tn.default("You specified knownHelpersOnly, but used the unknown helper "+r,t);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",a.length,i.original,Yt.default.helpers.simpleId(i))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],o=Yt.default.helpers.scopedId(t),a=!t.depth&&!o&&this.blockParamIndex(n);a?this.opcode("lookupBlockParam",a,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,a=n.length;for(this.opcode("pushHash");o<a;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:WS.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var n=Yt.default.helpers.simpleId(t.path),o=n&&!!this.blockParamIndex(t.path.parts[0]),a=!o&&Yt.default.helpers.helperExpression(t),i=!o&&(a||n);if(i&&!a){var r=t.path.parts[0],l=this.options;l.knownHelpers[r]?a=!0:l.knownHelpersOnly&&(i=!1)}return a?"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&&!Yt.default.helpers.scopedId(t)&&!t.depth&&(o=this.blockParamIndex(t.parts[0])),o){var a=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",o,a)}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,a){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",a),i},blockParamIndex:function(t){for(var n=0,o=this.options.blockParams.length;n<o;n++){var a=this.options.blockParams[n],i=a&&ln.indexOf(a,t);if(a&&i>=0)return[n,i]}}};function qS(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new tn.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),a=new n.Compiler().compile(o,t);return new n.JavaScriptCompiler().compile(a,t)}function VS(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new tn.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=ln.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=void 0;function a(){var r=n.parse(e,t),l=new n.Compiler().compile(r,t),s=new n.JavaScriptCompiler().compile(l,t,void 0,!0);return n.template(s)}function i(r,l){return o||(o=a()),o.call(this,r,l)}return i._setup=function(r){return o||(o=a()),o._setup(r)},i._child=function(r,l,s,c){return o||(o=a()),o._child(r,l,s,c)},i}function zl(e,t){if(e===t)return!0;if(ln.isArray(e)&&ln.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!zl(e[n],t[n]))return!1;return!0}}function ai(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 va={exports:{}},xa={exports:{}},Kt={},Ro={},yn={},Nn={},ri;function YS(){if(ri)return Nn;ri=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Nn.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Nn.decode=function(t){var n=65,o=90,a=97,i=122,r=48,l=57,s=43,c=47,u=26,p=52;return n<=t&&t<=o?t-n:a<=t&&t<=i?t-a+u:r<=t&&t<=l?t-r+p:t==s?62:t==c?63:-1},Nn}var ii;function jl(){if(ii)return yn;ii=1;var e=YS(),t=5,n=1<<t,o=n-1,a=n;function i(l){return l<0?(-l<<1)+1:(l<<1)+0}function r(l){var s=(l&1)===1,c=l>>1;return s?-c:c}return yn.encode=function(s){var c="",u,p=i(s);do u=p&o,p>>>=t,p>0&&(u|=a),c+=e.encode(u);while(p>0);return c},yn.decode=function(s,c,u){var p=s.length,d=0,h=0,m,b;do{if(c>=p)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));m=!!(b&a),b&=o,d=d+(b<<h),h+=t}while(m);u.value=r(d),u.rest=c},yn}var Eo={},li;function mn(){return li||(li=1,function(e){function t(w,_,N){if(_ in w)return w[_];if(arguments.length===3)return N;throw new Error('"'+_+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,o=/^data:.+\,.+$/;function a(w){var _=w.match(n);return _?{scheme:_[1],auth:_[2],host:_[3],port:_[4],path:_[5]}:null}e.urlParse=a;function i(w){var _="";return w.scheme&&(_+=w.scheme+":"),_+="//",w.auth&&(_+=w.auth+"@"),w.host&&(_+=w.host),w.port&&(_+=":"+w.port),w.path&&(_+=w.path),_}e.urlGenerate=i;function r(w){var _=w,N=a(w);if(N){if(!N.path)return w;_=N.path}for(var A=e.isAbsolute(_),y=_.split(/\/+/),R,M=0,T=y.length-1;T>=0;T--)R=y[T],R==="."?y.splice(T,1):R===".."?M++:M>0&&(R===""?(y.splice(T+1,M),M=0):(y.splice(T,2),M--));return _=y.join("/"),_===""&&(_=A?"/":"."),N?(N.path=_,i(N)):_}e.normalize=r;function l(w,_){w===""&&(w="."),_===""&&(_=".");var N=a(_),A=a(w);if(A&&(w=A.path||"/"),N&&!N.scheme)return A&&(N.scheme=A.scheme),i(N);if(N||_.match(o))return _;if(A&&!A.host&&!A.path)return A.host=_,i(A);var y=_.charAt(0)==="/"?_:r(w.replace(/\/+$/,"")+"/"+_);return A?(A.path=y,i(A)):y}e.join=l,e.isAbsolute=function(w){return w.charAt(0)==="/"||n.test(w)};function s(w,_){w===""&&(w="."),w=w.replace(/\/$/,"");for(var N=0;_.indexOf(w+"/")!==0;){var A=w.lastIndexOf("/");if(A<0||(w=w.slice(0,A),w.match(/^([^\/]+:\/)?\/*$/)))return _;++N}return Array(N+1).join("../")+_.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 p(w){return h(w)?"$"+w:w}e.toSetString=c?u:p;function d(w){return h(w)?w.slice(1):w}e.fromSetString=c?u:d;function h(w){if(!w)return!1;var _=w.length;if(_<9||w.charCodeAt(_-1)!==95||w.charCodeAt(_-2)!==95||w.charCodeAt(_-3)!==111||w.charCodeAt(_-4)!==116||w.charCodeAt(_-5)!==111||w.charCodeAt(_-6)!==114||w.charCodeAt(_-7)!==112||w.charCodeAt(_-8)!==95||w.charCodeAt(_-9)!==95)return!1;for(var N=_-10;N>=0;N--)if(w.charCodeAt(N)!==36)return!1;return!0}function m(w,_,N){var A=v(w.source,_.source);return A!==0||(A=w.originalLine-_.originalLine,A!==0)||(A=w.originalColumn-_.originalColumn,A!==0||N)||(A=w.generatedColumn-_.generatedColumn,A!==0)||(A=w.generatedLine-_.generatedLine,A!==0)?A:v(w.name,_.name)}e.compareByOriginalPositions=m;function b(w,_,N){var A=w.generatedLine-_.generatedLine;return A!==0||(A=w.generatedColumn-_.generatedColumn,A!==0||N)||(A=v(w.source,_.source),A!==0)||(A=w.originalLine-_.originalLine,A!==0)||(A=w.originalColumn-_.originalColumn,A!==0)?A:v(w.name,_.name)}e.compareByGeneratedPositionsDeflated=b;function v(w,_){return w===_?0:w===null?1:_===null?-1:w>_?1:-1}function k(w,_){var N=w.generatedLine-_.generatedLine;return N!==0||(N=w.generatedColumn-_.generatedColumn,N!==0)||(N=v(w.source,_.source),N!==0)||(N=w.originalLine-_.originalLine,N!==0)||(N=w.originalColumn-_.originalColumn,N!==0)?N:v(w.name,_.name)}e.compareByGeneratedPositionsInflated=k;function S(w){return JSON.parse(w.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=S;function $(w,_,N){if(_=_||"",w&&(w[w.length-1]!=="/"&&_[0]!=="/"&&(w+="/"),_=w+_),N){var A=a(N);if(!A)throw new Error("sourceMapURL could not be parsed");if(A.path){var y=A.path.lastIndexOf("/");y>=0&&(A.path=A.path.substring(0,y+1))}_=l(i(A),_)}return r(_)}e.computeSourceURL=$}(Eo)),Eo}var Io={},si;function Bl(){if(si)return Io;si=1;var e=mn(),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,r){for(var l=new o,s=0,c=i.length;s<c;s++)l.add(i[s],r);return l},o.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(i,r){var l=n?i:e.toSetString(i),s=n?this.has(i):t.call(this._set,l),c=this._array.length;(!s||r)&&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 r=e.toSetString(i);return t.call(this._set,r)},o.prototype.indexOf=function(i){if(n){var r=this._set.get(i);if(r>=0)return r}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()},Io.ArraySet=o,Io}var Mo={},ci;function KS(){if(ci)return Mo;ci=1;var e=mn();function t(o,a){var i=o.generatedLine,r=a.generatedLine,l=o.generatedColumn,s=a.generatedColumn;return r>i||r==i&&s>=l||e.compareByGeneratedPositionsInflated(o,a)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(a,i){this._array.forEach(a,i)},n.prototype.add=function(a){t(this._last,a)?(this._last=a,this._array.push(a)):(this._sorted=!1,this._array.push(a))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Mo.MappingList=n,Mo}var ui;function Dl(){if(ui)return Ro;ui=1;var e=jl(),t=mn(),n=Bl().ArraySet,o=KS().MappingList;function a(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 a.prototype._version=3,a.fromSourceMap=function(r){var l=r.sourceRoot,s=new a({file:r.file,sourceRoot:l});return r.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)}),r.sources.forEach(function(c){var u=c;l!==null&&(u=t.relative(l,c)),s._sources.has(u)||s._sources.add(u);var p=r.sourceContentFor(c);p!=null&&s.setSourceContent(c,p)}),s},a.prototype.addMapping=function(r){var l=t.getArg(r,"generated"),s=t.getArg(r,"original",null),c=t.getArg(r,"source",null),u=t.getArg(r,"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})},a.prototype.setSourceContent=function(r,l){var s=r;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))},a.prototype.applySourceMap=function(r,l,s){var c=l;if(l==null){if(r.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=r.file}var u=this._sourceRoot;u!=null&&(c=t.relative(u,c));var p=new n,d=new n;this._mappings.unsortedForEach(function(h){if(h.source===c&&h.originalLine!=null){var m=r.originalPositionFor({line:h.originalLine,column:h.originalColumn});m.source!=null&&(h.source=m.source,s!=null&&(h.source=t.join(s,h.source)),u!=null&&(h.source=t.relative(u,h.source)),h.originalLine=m.line,h.originalColumn=m.column,m.name!=null&&(h.name=m.name))}var b=h.source;b!=null&&!p.has(b)&&p.add(b);var v=h.name;v!=null&&!d.has(v)&&d.add(v)},this),this._sources=p,this._names=d,r.sources.forEach(function(h){var m=r.sourceContentFor(h);m!=null&&(s!=null&&(h=t.join(s,h)),u!=null&&(h=t.relative(u,h)),this.setSourceContent(h,m))},this)},a.prototype._validateMapping=function(r,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(!(r&&"line"in r&&"column"in r&&r.line>0&&r.column>=0&&!l&&!s&&!c)){if(r&&"line"in r&&"column"in r&&l&&"line"in l&&"column"in l&&r.line>0&&r.column>=0&&l.line>0&&l.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:r,source:s,original:l,name:c}))}},a.prototype._serializeMappings=function(){for(var r=0,l=1,s=0,c=0,u=0,p=0,d="",h,m,b,v,k=this._mappings.toArray(),S=0,$=k.length;S<$;S++){if(m=k[S],h="",m.generatedLine!==l)for(r=0;m.generatedLine!==l;)h+=";",l++;else if(S>0){if(!t.compareByGeneratedPositionsInflated(m,k[S-1]))continue;h+=","}h+=e.encode(m.generatedColumn-r),r=m.generatedColumn,m.source!=null&&(v=this._sources.indexOf(m.source),h+=e.encode(v-p),p=v,h+=e.encode(m.originalLine-1-c),c=m.originalLine-1,h+=e.encode(m.originalColumn-s),s=m.originalColumn,m.name!=null&&(b=this._names.indexOf(m.name),h+=e.encode(b-u),u=b)),d+=h}return d},a.prototype._generateSourcesContent=function(r,l){return r.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)},a.prototype.toJSON=function(){var r={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(r.file=this._file),this._sourceRoot!=null&&(r.sourceRoot=this._sourceRoot),this._sourcesContents&&(r.sourcesContent=this._generateSourcesContent(r.sources,r.sourceRoot)),r},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},Ro.SourceMapGenerator=a,Ro}var Jt={},To={},di;function JS(){return di||(di=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,o,a,i,r,l){var s=Math.floor((o-n)/2)+n,c=r(a,i[s],!0);return c===0?s:c>0?o-s>1?t(s,o,a,i,r,l):l==e.LEAST_UPPER_BOUND?o<i.length?o:-1:s:s-n>1?t(n,s,a,i,r,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(o,a,i,r){if(a.length===0)return-1;var l=t(-1,a.length,o,a,i,r||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&i(a[l],a[l-1],!0)===0;)--l;return l}}(To)),To}var Po={},hi;function XS(){if(hi)return Po;hi=1;function e(o,a,i){var r=o[a];o[a]=o[i],o[i]=r}function t(o,a){return Math.round(o+Math.random()*(a-o))}function n(o,a,i,r){if(i<r){var l=t(i,r),s=i-1;e(o,l,r);for(var c=o[r],u=i;u<r;u++)a(o[u],c)<=0&&(s+=1,e(o,s,u));e(o,s+1,u);var p=s+1;n(o,a,i,p-1),n(o,a,p+1,r)}}return Po.quickSort=function(o,a){n(o,a,0,o.length-1)},Po}var fi;function QS(){if(fi)return Jt;fi=1;var e=mn(),t=JS(),n=Bl().ArraySet,o=jl(),a=XS().quickSort;function i(c,u){var p=c;return typeof c=="string"&&(p=e.parseSourceMapInput(c)),p.sections!=null?new s(p,u):new r(p,u)}i.fromSourceMap=function(c,u){return r.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,p){var d=u.charAt(p);return d===";"||d===","},i.prototype._parseMappings=function(u,p){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,p,d){var h=p||null,m=d||i.GENERATED_ORDER,b;switch(m){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 v=this.sourceRoot;b.map(function(k){var S=k.source===null?null:this._sources.at(k.source);return S=e.computeSourceURL(v,S,this._sourceMapURL),{source:S,generatedLine:k.generatedLine,generatedColumn:k.generatedColumn,originalLine:k.originalLine,originalColumn:k.originalColumn,name:k.name===null?null:this._names.at(k.name)}},this).forEach(u,h)},i.prototype.allGeneratedPositionsFor=function(u){var p=e.getArg(u,"line"),d={source:e.getArg(u,"source"),originalLine:p,originalColumn:e.getArg(u,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var h=[],m=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(m>=0){var b=this._originalMappings[m];if(u.column===void 0)for(var v=b.originalLine;b&&b.originalLine===v;)h.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++m];else for(var k=b.originalColumn;b&&b.originalLine===p&&b.originalColumn==k;)h.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++m]}return h},Jt.SourceMapConsumer=i;function r(c,u){var p=c;typeof c=="string"&&(p=e.parseSourceMapInput(c));var d=e.getArg(p,"version"),h=e.getArg(p,"sources"),m=e.getArg(p,"names",[]),b=e.getArg(p,"sourceRoot",null),v=e.getArg(p,"sourcesContent",null),k=e.getArg(p,"mappings"),S=e.getArg(p,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);b&&(b=e.normalize(b)),h=h.map(String).map(e.normalize).map(function($){return b&&e.isAbsolute(b)&&e.isAbsolute($)?e.relative(b,$):$}),this._names=n.fromArray(m.map(String),!0),this._sources=n.fromArray(h,!0),this._absoluteSources=this._sources.toArray().map(function($){return e.computeSourceURL(b,$,u)}),this.sourceRoot=b,this.sourcesContent=v,this._mappings=k,this._sourceMapURL=u,this.file=S}r.prototype=Object.create(i.prototype),r.prototype.consumer=i,r.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 p;for(p=0;p<this._absoluteSources.length;++p)if(this._absoluteSources[p]==c)return p;return-1},r.fromSourceMap=function(u,p){var d=Object.create(r.prototype),h=d._names=n.fromArray(u._names.toArray(),!0),m=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=p,d._absoluteSources=d._sources.toArray().map(function(N){return e.computeSourceURL(d.sourceRoot,N,p)});for(var b=u._mappings.toArray().slice(),v=d.__generatedMappings=[],k=d.__originalMappings=[],S=0,$=b.length;S<$;S++){var w=b[S],_=new l;_.generatedLine=w.generatedLine,_.generatedColumn=w.generatedColumn,w.source&&(_.source=m.indexOf(w.source),_.originalLine=w.originalLine,_.originalColumn=w.originalColumn,w.name&&(_.name=h.indexOf(w.name)),k.push(_)),v.push(_)}return a(d.__originalMappings,e.compareByOriginalPositions),d},r.prototype._version=3,Object.defineProperty(r.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}r.prototype._parseMappings=function(u,p){for(var d=1,h=0,m=0,b=0,v=0,k=0,S=u.length,$=0,w={},_={},N=[],A=[],y,R,M,T,L;$<S;)if(u.charAt($)===";")d++,$++,h=0;else if(u.charAt($)===",")$++;else{for(y=new l,y.generatedLine=d,T=$;T<S&&!this._charIsMappingSeparator(u,T);T++);if(R=u.slice($,T),M=w[R],M)$+=R.length;else{for(M=[];$<T;)o.decode(u,$,_),L=_.value,$=_.rest,M.push(L);if(M.length===2)throw new Error("Found a source, but no line and column");if(M.length===3)throw new Error("Found a source and line, but no column");w[R]=M}y.generatedColumn=h+M[0],h=y.generatedColumn,M.length>1&&(y.source=v+M[1],v+=M[1],y.originalLine=m+M[2],m=y.originalLine,y.originalLine+=1,y.originalColumn=b+M[3],b=y.originalColumn,M.length>4&&(y.name=k+M[4],k+=M[4])),A.push(y),typeof y.originalLine=="number"&&N.push(y)}a(A,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=A,a(N,e.compareByOriginalPositions),this.__originalMappings=N},r.prototype._findMapping=function(u,p,d,h,m,b){if(u[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+u[d]);if(u[h]<0)throw new TypeError("Column must be greater than or equal to 0, got "+u[h]);return t.search(u,p,m,b)},r.prototype.computeColumnSpans=function(){for(var u=0;u<this._generatedMappings.length;++u){var p=this._generatedMappings[u];if(u+1<this._generatedMappings.length){var d=this._generatedMappings[u+1];if(p.generatedLine===d.generatedLine){p.lastGeneratedColumn=d.generatedColumn-1;continue}}p.lastGeneratedColumn=1/0}},r.prototype.originalPositionFor=function(u){var p={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=this._findMapping(p,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(d>=0){var h=this._generatedMappings[d];if(h.generatedLine===p.generatedLine){var m=e.getArg(h,"source",null);m!==null&&(m=this._sources.at(m),m=e.computeSourceURL(this.sourceRoot,m,this._sourceMapURL));var b=e.getArg(h,"name",null);return b!==null&&(b=this._names.at(b)),{source:m,line:e.getArg(h,"originalLine",null),column:e.getArg(h,"originalColumn",null),name:b}}}return{source:null,line:null,column:null,name:null}},r.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(u){return u==null}):!1},r.prototype.sourceContentFor=function(u,p){if(!this.sourcesContent)return null;var d=this._findSourceIndex(u);if(d>=0)return this.sourcesContent[d];var h=u;this.sourceRoot!=null&&(h=e.relative(this.sourceRoot,h));var m;if(this.sourceRoot!=null&&(m=e.urlParse(this.sourceRoot))){var b=h.replace(/^file:\/\//,"");if(m.scheme=="file"&&this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];if((!m.path||m.path=="/")&&this._sources.has("/"+h))return this.sourcesContent[this._sources.indexOf("/"+h)]}if(p)return null;throw new Error('"'+h+'" is not in the SourceMap.')},r.prototype.generatedPositionFor=function(u){var p=e.getArg(u,"source");if(p=this._findSourceIndex(p),p<0)return{line:null,column:null,lastColumn:null};var d={source:p,originalLine:e.getArg(u,"line"),originalColumn:e.getArg(u,"column")},h=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(h>=0){var m=this._originalMappings[h];if(m.source===d.source)return{line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Jt.BasicSourceMapConsumer=r;function s(c,u){var p=c;typeof c=="string"&&(p=e.parseSourceMapInput(c));var d=e.getArg(p,"version"),h=e.getArg(p,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new n,this._names=new n;var m={line:-1,column:0};this._sections=h.map(function(b){if(b.url)throw new Error("Support for url field in sections not implemented.");var v=e.getArg(b,"offset"),k=e.getArg(v,"line"),S=e.getArg(v,"column");if(k<m.line||k===m.line&&S<m.column)throw new Error("Section offsets must be ordered and non-overlapping.");return m=v,{generatedOffset:{generatedLine:k+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 p=0;p<this._sections[u].consumer.sources.length;p++)c.push(this._sections[u].consumer.sources[p]);return c}}),s.prototype.originalPositionFor=function(u){var p={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=t.search(p,this._sections,function(m,b){var v=m.generatedLine-b.generatedOffset.generatedLine;return v||m.generatedColumn-b.generatedOffset.generatedColumn}),h=this._sections[d];return h?h.consumer.originalPositionFor({line:p.generatedLine-(h.generatedOffset.generatedLine-1),column:p.generatedColumn-(h.generatedOffset.generatedLine===p.generatedLine?h.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,p){for(var d=0;d<this._sections.length;d++){var h=this._sections[d],m=h.consumer.sourceContentFor(u,!0);if(m)return m}if(p)return null;throw new Error('"'+u+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(u){for(var p=0;p<this._sections.length;p++){var d=this._sections[p];if(d.consumer._findSourceIndex(e.getArg(u,"source"))!==-1){var h=d.consumer.generatedPositionFor(u);if(h){var m={line:h.line+(d.generatedOffset.generatedLine-1),column:h.column+(d.generatedOffset.generatedLine===h.line?d.generatedOffset.generatedColumn-1:0)};return m}}}return{line:null,column:null}},s.prototype._parseMappings=function(u,p){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var h=this._sections[d],m=h.consumer._generatedMappings,b=0;b<m.length;b++){var v=m[b],k=h.consumer._sources.at(v.source);k=e.computeSourceURL(h.consumer.sourceRoot,k,this._sourceMapURL),this._sources.add(k),k=this._sources.indexOf(k);var S=null;v.name&&(S=h.consumer._names.at(v.name),this._names.add(S),S=this._names.indexOf(S));var $={source:k,generatedLine:v.generatedLine+(h.generatedOffset.generatedLine-1),generatedColumn:v.generatedColumn+(h.generatedOffset.generatedLine===v.generatedLine?h.generatedOffset.generatedColumn-1:0),originalLine:v.originalLine,originalColumn:v.originalColumn,name:S};this.__generatedMappings.push($),typeof $.originalLine=="number"&&this.__originalMappings.push($)}a(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),a(this.__originalMappings,e.compareByOriginalPositions)},Jt.IndexedSourceMapConsumer=s,Jt}var Oo={},pi;function e2(){if(pi)return Oo;pi=1;var e=Dl().SourceMapGenerator,t=mn(),n=/(\r?\n)/,o=10,a="$$$isSourceNode$$$";function i(r,l,s,c,u){this.children=[],this.sourceContents={},this.line=r??null,this.column=l??null,this.source=s??null,this.name=u??null,this[a]=!0,c!=null&&this.add(c)}return i.fromStringWithSourceMap=function(l,s,c){var u=new i,p=l.split(n),d=0,h=function(){var S=w(),$=w()||"";return S+$;function w(){return d<p.length?p[d++]:void 0}},m=1,b=0,v=null;return s.eachMapping(function(S){if(v!==null)if(m<S.generatedLine)k(v,h()),m++,b=0;else{var $=p[d]||"",w=$.substr(0,S.generatedColumn-b);p[d]=$.substr(S.generatedColumn-b),b=S.generatedColumn,k(v,w),v=S;return}for(;m<S.generatedLine;)u.add(h()),m++;if(b<S.generatedColumn){var $=p[d]||"";u.add($.substr(0,S.generatedColumn)),p[d]=$.substr(S.generatedColumn),b=S.generatedColumn}v=S},this),d<p.length&&(v&&k(v,h()),u.add(p.splice(d).join(""))),s.sources.forEach(function(S){var $=s.sourceContentFor(S);$!=null&&(c!=null&&(S=t.join(c,S)),u.setSourceContent(S,$))}),u;function k(S,$){if(S===null||S.source===void 0)u.add($);else{var w=c?t.join(c,S.source):S.source;u.add(new i(S.originalLine,S.originalColumn,w,$,S.name))}}},i.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(s){this.add(s)},this);else if(l[a]||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[a]||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[a]?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[a]?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][a]&&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,p=null,d=null,h=null,m=null;return this.walk(function(b,v){s.code+=b,v.source!==null&&v.line!==null&&v.column!==null?((p!==v.source||d!==v.line||h!==v.column||m!==v.name)&&c.addMapping({source:v.source,original:{line:v.line,column:v.column},generated:{line:s.line,column:s.column},name:v.name}),p=v.source,d=v.line,h=v.column,m=v.name,u=!0):u&&(c.addMapping({generated:{line:s.line,column:s.column}}),p=null,u=!1);for(var k=0,S=b.length;k<S;k++)b.charCodeAt(k)===o?(s.line++,s.column=0,k+1===S?(p=null,u=!1):u&&c.addMapping({source:v.source,original:{line:v.line,column:v.column},generated:{line:s.line,column:s.column},name:v.name})):s.column++}),this.walkSourceContents(function(b,v){c.setSourceContent(b,v)}),{code:s.code,map:c}},Oo.SourceNode=i,Oo}var mi;function t2(){return mi||(mi=1,Kt.SourceMapGenerator=Dl().SourceMapGenerator,Kt.SourceMapConsumer=QS().SourceMapConsumer,Kt.SourceNode=e2().SourceNode),Kt}(function(e,t){t.__esModule=!0;var n=ue,o=void 0;try{var a=t2();o=a.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=[],p=0,d=l.length;p<d;p++)u.push(s.wrap(l[p],c));return u}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function r(l){this.srcFile=l,this.source=[]}r.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,`
|
|
457
457
|
`])}),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 h=i(s[d],c);h!=="undefined"&&u.push([c.quotedString(d),":",h])});var p=this.generateList(u);return p.prepend("{"),p.add("}"),p},generateList:function(s){for(var c=this.empty(),u=0,p=s.length;u<p;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=r,e.exports=t.default})(xa,xa.exports);var n2=xa.exports;(function(e,t){t.__esModule=!0;function n(d){return d&&d.__esModule?d:{default:d}}var o=Be,a=De,i=n(a),r=ue,l=n2,s=n(l);function c(d){this.value=d}function u(){}u.prototype={nameLookup:function(h,m){return this.internalNameLookup(h,m)},depthedLookup:function(h){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(h),")"]},compilerInfo:function(){var h=o.COMPILER_REVISION,m=o.REVISION_CHANGES[h];return[h,m]},appendToBuffer:function(h,m,b){return r.isArray(h)||(h=[h]),h=this.source.wrap(h,m),this.environment.isSimple?["return ",h,";"]:b?["buffer += ",h,";"]:(h.appendToBuffer=!0,h)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(h,m){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",h,",",JSON.stringify(m),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(h,m,b,v){this.environment=h,this.options=m,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!v,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(h,m),this.useDepths=this.useDepths||h.useDepths||h.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||h.useBlockParams;var k=h.opcodes,S=void 0,$=void 0,w=void 0,_=void 0;for(w=0,_=k.length;w<_;w++)S=k[w],this.source.currentLocation=S.loc,$=$||S.loc,this[S.opcode].apply(this,S.args);if(this.source.currentLocation=$,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(),`;
|
|
458
458
|
`]),this.decorators.push("return fn;"),v?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) {
|
|
459
459
|
`),this.decorators.push(`}
|
|
@@ -466,10 +466,10 @@ Expecting `+T.join(", ")+", got '"+(this.terminals_[$]||$)+"'":L="Parse error on
|
|
|
466
466
|
}
|
|
467
467
|
return undefined
|
|
468
468
|
}
|
|
469
|
-
`.trim()},blockValue:function(h){var m=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs(h,0,b);var v=this.popStack();b.splice(1,0,v),this.push(this.source.functionCall(m,"call",b))},ambiguousBlockValue:function(){var h=this.aliasable("container.hooks.blockHelperMissing"),m=[this.contextName(0)];this.setupHelperArgs("",0,m,!0),this.flushInline();var b=this.topStack();m.splice(1,0,b),this.pushSource(["if (!",this.lastHelper,") { ",b," = ",this.source.functionCall(h,"call",m),"}"])},appendContent:function(h){this.pendingContent?h=this.pendingContent+h:this.pendingLocation=this.source.currentLocation,this.pendingContent=h},append:function(){if(this.isInline())this.replaceStack(function(m){return[" != null ? ",m,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var h=this.popStack();this.pushSource(["if (",h," != null) { ",this.appendToBuffer(h,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(h){this.lastContext=h},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(h,m,b,v){var k=0;!v&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(h[k++])):this.pushContext(),this.resolvePath("context",h,k,m,b)},lookupBlockParam:function(h,m){this.useBlockParams=!0,this.push(["blockParams[",h[0],"][",h[1],"]"]),this.resolvePath("context",m,1)},lookupData:function(h,m,b){h?this.pushStackLiteral("container.data(data, "+h+")"):this.pushStackLiteral("data"),this.resolvePath("data",m,0,!0,b)},resolvePath:function(h,m,b,v,k){var S=this;if(this.options.strict||this.options.assumeObjects){this.push(p(this.options.strict&&k,this,m,b,h));return}for(var $=m.length,w=function(N){S.replaceStack(function(A){var y=S.nameLookup(A,m[N],h);return v?[" && ",y]:[" != null ? ",y," : ",A]})},_=b;_<$;_++)w(_)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(h,m){this.pushContext(),this.pushString(m),m!=="SubExpression"&&(typeof h=="string"?this.pushString(h):this.pushStackLiteral(h))},emptyHash:function(h){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(h?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var h=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(h.ids)),this.stringParams&&(this.push(this.objectLiteral(h.contexts)),this.push(this.objectLiteral(h.types))),this.push(this.objectLiteral(h.values))},pushString:function(h){this.pushStackLiteral(this.quotedString(h))},pushLiteral:function(h){this.pushStackLiteral(h)},pushProgram:function(h){h!=null?this.pushStackLiteral(this.programExpression(h)):this.pushStackLiteral(null)},registerDecorator:function(h,m){var b=this.nameLookup("decorators",m,"decorator"),v=this.setupHelperArgs(m,h);this.decorators.push(["var decorator = ",b,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+m+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",v])," || fn;"])},invokeHelper:function(h,m,b){var v=this.popStack(),k=this.setupHelper(h,m),S=[];b&&S.push(k.name),S.push(v),this.options.strict||S.push(this.aliasable("container.hooks.helperMissing"));var $=["(",this.itemsSeparatedBy(S,"||"),")"],w=this.source.functionCall($,"call",k.callParams);this.push(w)},itemsSeparatedBy:function(h,m){var b=[];b.push(h[0]);for(var v=1;v<h.length;v++)b.push(m,h[v]);return b},invokeKnownHelper:function(h,m){var b=this.setupHelper(h,m);this.push(this.source.functionCall(b.name,"call",b.callParams))},invokeAmbiguous:function(h,m){this.useRegister("helper");var b=this.popStack();this.emptyHash();var v=this.setupHelper(0,h,m),k=this.lastHelper=this.nameLookup("helpers",h,"helper"),S=["(","(helper = ",k," || ",b,")"];this.options.strict||(S[0]="(helper = ",S.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",S,v.paramsInit?["),(",v.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",v.callParams)," : helper))"])},invokePartial:function(h,m,b){var v=[],k=this.setupParams(m,1,v);h&&(m=this.popStack(),delete k.name),b&&(k.indent=JSON.stringify(b)),k.helpers="helpers",k.partials="partials",k.decorators="container.decorators",h?v.unshift(m):v.unshift(this.nameLookup("partials",m,"partial")),this.options.compat&&(k.depths="depths"),k=this.objectLiteral(k),v.push(k),this.push(this.source.functionCall("container.invokePartial","",v))},assignToHash:function(h){var m=this.popStack(),b=void 0,v=void 0,k=void 0;this.trackIds&&(k=this.popStack()),this.stringParams&&(v=this.popStack(),b=this.popStack());var S=this.hash;b&&(S.contexts[h]=b),v&&(S.types[h]=v),k&&(S.ids[h]=k),S.values[h]=m},pushId:function(h,m,b){h==="BlockParam"?this.pushStackLiteral("blockParams["+m[0]+"].path["+m[1]+"]"+(b?" + "+JSON.stringify("."+b):"")):h==="PathExpression"?this.pushString(m):h==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:u,compileChildren:function(h,m){for(var b=h.children,v=void 0,k=void 0,S=0,$=b.length;S<$;S++){v=b[S],k=new this.compiler;var w=this.matchExistingProgram(v);if(w==null){var _=this.context.programs.push("")-1;v.index=_,v.name="program"+_,this.context.programs[_]=k.compile(v,m,this.context,!this.precompile),this.context.decorators[_]=k.decorators,this.context.environments[_]=v,this.useDepths=this.useDepths||k.useDepths,this.useBlockParams=this.useBlockParams||k.useBlockParams,v.useDepths=this.useDepths,v.useBlockParams=this.useBlockParams}else v.index=w.index,v.name="program"+w.index,this.useDepths=this.useDepths||w.useDepths,this.useBlockParams=this.useBlockParams||w.useBlockParams}},matchExistingProgram:function(h){for(var m=0,b=this.context.environments.length;m<b;m++){var v=this.context.environments[m];if(v&&v.equals(h))return v}},programExpression:function(h){var m=this.environment.children[h],b=[m.index,"data",m.blockParams];return(this.useBlockParams||this.useDepths)&&b.push("blockParams"),this.useDepths&&b.push("depths"),"container.program("+b.join(", ")+")"},useRegister:function(h){this.registers[h]||(this.registers[h]=!0,this.registers.list.push(h))},push:function(h){return h instanceof c||(h=this.source.wrap(h)),this.inlineStack.push(h),h},pushStackLiteral:function(h){this.push(new c(h))},pushSource:function(h){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),h&&this.source.push(h)},replaceStack:function(h){var m=["("],b=void 0,v=void 0,k=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],m=["(",b],k=!0;else{v=!0;var $=this.incrStack();m=["((",this.push($)," = ",S,")"],b=this.topStack()}var w=h.call(this,b);k||this.popStack(),v&&this.stackSlot--,this.push(m.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 h=this.inlineStack;this.inlineStack=[];for(var m=0,b=h.length;m<b;m++){var v=h[m];if(v instanceof c)this.compileStack.push(v);else{var k=this.incrStack();this.pushSource([k," = ",v,";"]),this.compileStack.push(k)}}},isInline:function(){return this.inlineStack.length},popStack:function(h){var m=this.isInline(),b=(m?this.inlineStack:this.compileStack).pop();if(!h&&b instanceof c)return b.value;if(!m){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return b},topStack:function(){var h=this.isInline()?this.inlineStack:this.compileStack,m=h[h.length-1];return m instanceof c?m.value:m},contextName:function(h){return this.useDepths&&h?"depths["+h+"]":"depth"+h},quotedString:function(h){return this.source.quotedString(h)},objectLiteral:function(h){return this.source.objectLiteral(h)},aliasable:function(h){var m=this.aliases[h];return m?(m.referenceCount++,m):(m=this.aliases[h]=this.source.wrap(h),m.aliasable=!0,m.referenceCount=1,m)},setupHelper:function(h,m,b){var v=[],k=this.setupHelperArgs(m,h,v,b),S=this.nameLookup("helpers",m,"helper"),$=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:v,paramsInit:k,name:S,callParams:[$].concat(v)}},setupParams:function(h,m,b){var v={},k=[],S=[],$=[],w=!b,_=void 0;w&&(b=[]),v.name=this.quotedString(h),v.hash=this.popStack(),this.trackIds&&(v.hashIds=this.popStack()),this.stringParams&&(v.hashTypes=this.popStack(),v.hashContexts=this.popStack());var N=this.popStack(),A=this.popStack();(A||N)&&(v.fn=A||"container.noop",v.inverse=N||"container.noop");for(var y=m;y--;)_=this.popStack(),b[y]=_,this.trackIds&&($[y]=this.popStack()),this.stringParams&&(S[y]=this.popStack(),k[y]=this.popStack());return w&&(v.args=this.source.generateArray(b)),this.trackIds&&(v.ids=this.source.generateArray($)),this.stringParams&&(v.types=this.source.generateArray(S),v.contexts=this.source.generateArray(k)),this.options.data&&(v.data="data"),this.useBlockParams&&(v.blockParams="blockParams"),v},setupHelperArgs:function(h,m,b,v){var k=this.setupParams(h,m,b);return k.loc=JSON.stringify(this.source.currentLocation),k=this.objectLiteral(k),v?(this.useRegister("options"),b.push("options"),["options=",k]):b?(b.push(k),""):k}},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(" "),h=u.RESERVED_WORDS={},m=0,b=d.length;m<b;m++)h[d[m]]=!0}(),u.isValidJavaScriptVariableName=function(d){return!u.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function p(d,h,m,b,v){var k=h.popStack(),S=m.length;d&&S--;for(var $=b;$<S;$++)k=h.nameLookup(k,m[$],v);return d?[h.aliasable("container.strict"),"(",k,", ",h.quotedString(m[S]),", ",JSON.stringify(h.source.currentLocation)," )"]:k}t.default=u,e.exports=t.default})(va,va.exports);var o2=va.exports;(function(e,t){t.__esModule=!0;function n(S){return S&&S.__esModule?S:{default:S}}var o=vS,a=n(o),i=Ml,r=n(i),l=fn,s=pn,c=o2,u=n(c),p=Tl,d=n(p),h=Il,m=n(h),b=a.default.create;function v(){var S=b();return S.compile=function($,w){return s.compile($,w,S)},S.precompile=function($,w){return s.precompile($,w,S)},S.AST=r.default,S.Compiler=s.Compiler,S.JavaScriptCompiler=u.default,S.Parser=l.parser,S.parse=l.parse,S.parseWithoutProcessing=l.parseWithoutProcessing,S}var k=v();k.create=v,m.default(k),k.Visitor=d.default,k.default=k,t.default=k,e.exports=t.default})(Yo,Yo.exports);var a2=Yo.exports;const r2=o1(a2);function i2(e,t){const n=[],o=new Set,a=i=>{var l,s,c,u,p,d,h,m,b,v;if(o.has(i)||!e[i])return;o.add(i),n.push(i);const r=e[i];switch(r.type){case"Container":case"ButtonGroup":(((l=r.data.props)==null?void 0:l.childrenIds)||[]).forEach(a);break;case"ColumnsContainer":case"FlexColumns":(((s=r.data.props)==null?void 0:s.columns)||[]).forEach(k=>(k.childrenIds||[]).forEach(a));break;case"Grid":(((c=r.data.props)==null?void 0:c.cells)||[]).forEach(k=>(k.childrenIds||[]).forEach(a));break;case"Accordion":(((u=r.data.props)==null?void 0:u.items)||[]).forEach(k=>{(k.titleChildrenIds||[]).forEach(a),(k.contentChildrenIds||[]).forEach(a)});break;case"TabsBlock":case"Carousel":case"Marquee":(((p=r.data.props)==null?void 0:p.items)||[]).forEach(k=>{(k.contentChildrenIds||[]).forEach(a)});break;case"Pagination":(((d=r.data.props)==null?void 0:d.cells)||[]).forEach(k=>(k.childrenIds||[]).forEach(a)),(((h=r.data.props)==null?void 0:h.items)||[]).forEach(k=>{(k.contentChildrenIds||[]).forEach(a)});break;case"PricingAccordion":(((m=r.data.props)==null?void 0:m.items)||[]).forEach(k=>{(k.cardChildrenIds||[]).forEach(a),(k.detailChildrenIds||[]).forEach(a)});break;case"MenuPicker":(((b=r.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(a),(((v=r.data.props)==null?void 0:v.endChildrenIds)||[]).forEach(a);break;case"EmailLayout":(r.data.childrenIds||[]).forEach(a);break}};return a(t),n}function Dl(e,t){const n=new Map;if(!e||!Array.isArray(t))return n;const o=e;for(const a of t){if((a==null?void 0:a.type)!=="array"||!a.sourceBlockId)continue;(Array.isArray(a.value)?a.value:[]).forEach((r,l)=>{var c;const s=l===0?a.sourceBlockId:(c=a.rowIds)==null?void 0:c[l-1];if(!(!s||!o[s]))for(const u of i2(o,s))n.set(u,r||{})})}return n}const l2={Text:["text"],Heading:["text"],Button:["text","url"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Progress:["value","max"],Container:["linkHref"]};function s2(e){return e?l2[e]:void 0}const Sa=r2.create();Sa.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new Sa.SafeString(`{{${t.name}}}`)});const gi=new Map;function c2(e){let t=gi.get(e);return t||(t=Sa.compile(e,{noEscape:!0,strict:!1}),gi.set(e,t)),t}function Hl(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=n.value.map(a=>{const i={};if(a&&typeof a=="object")for(const r of Object.keys(a)){const l=a[r];l!=null&&l!==""&&(i[r]=l)}return i});Object.defineProperty(o,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=o;continue}typeof n.value!="string"||n.value===""||(t[n.id]=n.value)}return t}function Fl(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 u2=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function d2(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let o=0;return{masked:e.replace(u2,(i,r)=>{const l=t[r];if(Array.isArray(l)&&l.length>0)return i;const c="HB_EACH_"+o+++"_";return n.set(c,i),c}),restore:n}}const Gl=/\{\{\s*this\.([\w]+)\s*\}\}/g;function h2(e,t){return e.replace(Gl,(n,o)=>{const a=t==null?void 0:t[o];return a!=null&&a!==""?String(a):n})}function Lo(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let o=e;if(n&&(o=h2(o,n),o.indexOf("{{")===-1)||!t||t.length===0)return o;try{const a=t&&t.length>0?Hl(t):{},{masked:i,restore:r}=d2(o,a),l=new Map;let s=i;if(i.indexOf("{{")!==-1&&i.indexOf("#each")===-1){let u=0;s=i.replace(Gl,p=>{const d="HB_THIS_"+u+++"_";return l.set(d,p),d})}let c=c2(s)(a);for(const[u,p]of l)c=c.split(u).join(p);if(r.size>0)for(const[u,p]of r)c=c.split(u).join(p);return c}catch{return o}}function Ul(e,t,n){var r,l,s,c,u;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="List"){const p=(l=(r=e.data)==null?void 0:r.props)==null?void 0:l.items;if(!Array.isArray(p)||p.length===0)return e;let d=null;return p.forEach((h,m)=>{const b=h==null?void 0:h.text;if(typeof b!="string"||b.indexOf("{{")===-1)return;const v=Lo(b,t,n);v!==b&&(d||(d=p.map(k=>({...k}))),d[m]={...d[m],text:v})}),d?{...e,data:{...e.data,props:{...e.data.props,items:d}}}:e}if(e.type==="Breadcrumb"){const p=(c=(s=e.data)==null?void 0:s.props)==null?void 0:c.items;if(!Array.isArray(p)||p.length===0)return e;let d=null;return p.forEach((h,m)=>{for(const b of["label","href"]){const v=h==null?void 0:h[b];if(typeof v!="string"||v.indexOf("{{")===-1)continue;const k=Lo(v,t,n);k!==v&&(d||(d=p.map(S=>({...S}))),d[m]={...d[m],[b]:k})}}),d?{...e,data:{...e.data,props:{...e.data.props,items:d}}}:e}const o=s2(e.type);if(!o)return e;const a=(u=e.data)==null?void 0:u.props;if(!a)return e;let i=null;for(const p of o){const d=a[p];if(typeof d!="string"||d.indexOf("{{")===-1)continue;const h=Lo(d,t,n);h!==d&&(i||(i={...a}),i[p]=h)}return i?{...e,data:{...e.data,props:i}}:e}function Zl(e,t){var l;if(!e)return e;const n=t??Fl(e);let o={...e},a=!1;const i=Dl(e,n);if(n&&n.length>0&&(Object.keys(Hl(n)).length>0||i.size>0))for(const s of Object.keys(o)){const c=o[s],u=Ul(c,n,i.get(s));u!==c&&(o[s]=u,a=!0)}const r=o.root;if(((l=r==null?void 0:r.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...c}=r.data;o.root={...r,data:c},a=!0}return a?o:e}const bi=Object.fromEntries(Xe.map(e=>[e.key,e.value]));function Gn(e){return!!e&&typeof e=="object"&&"top"in e&&"left"in e}function f2(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function p2(e){const t=e.borderColor??null;if(!t)return"";if(t==="transparent")return"border:none!important";const n=Gn(e.borderWidth)?e.borderWidth:null;return f2(t)?"":[`border-top:${(n==null?void 0:n.top)??0}px solid ${t}!important`,`border-right:${(n==null?void 0:n.right)??0}px solid ${t}!important`,`border-bottom:${(n==null?void 0:n.bottom)??0}px solid ${t}!important`,`border-left:${(n==null?void 0:n.left)??0}px solid ${t}!important`].join(";")}function m2(e){const t=[];if(e.borderColor!==void 0||e.borderWidth!==void 0){const o=p2(e);o&&t.push(o)}const n=e.backgroundSize==="none";n&&t.push("background-image:none!important");for(const o of Object.keys(e)){const a=e[o];if(a!=null)switch(o){case"borderColor":case"borderWidth":break;case"fontSize":t.push(`font-size:${a}px!important`);break;case"fontFamily":bi[a]&&t.push(`font-family:${bi[a]}!important`);break;case"fontWeight":t.push(`font-weight:${a}!important`);break;case"fontStyle":t.push(`font-style:${a}!important`);break;case"textDecoration":t.push(`text-decoration:${a}!important`);break;case"lineHeight":t.push(`line-height:${a}!important`);break;case"textAlign":t.push(`text-align:${a}!important`);break;case"buttonTextAlign":t.push(`justify-content:${a==="center"?"center":a==="right"?"flex-end":"flex-start"}!important`);break;case"padding":case"margin":Gn(a)&&t.push(`${o}:${a.top}px ${a.right}px ${a.bottom}px ${a.left}px!important`);break;case"marginBottom":t.push(`margin-bottom:${a}px!important`);break;case"width":t.push(`width:${typeof a=="number"?`${a}px`:a}!important`);break;case"height":t.push(`height:${typeof a=="number"?`${a}px`:a}!important`);break;case"backgroundImage":t.push(a&&!n?`background-image:url("${String(a).replace(/"/g,'\\"')}")!important`:"background-image:none!important");break;case"backgroundSize":n||t.push(`background-size:${a}!important`);break;case"backgroundRepeat":t.push(`background-repeat:${a}!important`);break;case"activeFontSize":t.push(`--ahd-tabs-active-font-size:${typeof a=="number"?`${a}px`:a}`);break;case"showActiveBorder":t.push(`--ahd-tabs-active-border-color:${a?"currentColor":"transparent"}`);break;case"tabGap":t.push(`--ahd-tabs-tab-gap:${a}px`);break;case"contentGap":t.push(`--ahd-tabs-content-gap:${a}px`);break;case"navWidth":t.push(`--ahd-tabs-nav-width:${a}px`);break;case"starSize":t.push(`--ahd-rating-star-size:${a}px`);break;case"starGap":t.push(`--ahd-rating-star-gap:${a}px`);break;case"arrowSize":t.push(`--ahd-carousel-arrow-size:${a}px`),t.push(`--ahd-carousel-chevron-size:${Math.max(12,Math.min(40,Math.round(Number(a)*.5)))}px`);break;case"dotSize":t.push(`--ahd-carousel-dot-size:${a}px`);break;case"slideGap":t.push(`--ahd-carousel-slide-gap:${a}px`);break;case"buttonSize":t.push(`--ahd-pgn-btn-size:${a}px`);break;case"buttonGap":t.push(`--ahd-pgn-btn-gap:${a}px`);break;case"buttonRadius":t.push(`--ahd-pgn-btn-radius:${a}px`);break;case"controlGap":t.push(`--ahd-pgn-control-gap:${a}px`);break;case"borderRadius":if(typeof a=="number")t.push(`border-radius:${a}px!important`);else if(a&&typeof a=="object"){const{topLeft:i=0,topRight:r=0,bottomRight:l=0,bottomLeft:s=0}=a;t.push(`border-radius:${i}px ${r}px ${l}px ${s}px!important`)}else t.push(`border-radius:${a}!important`);break}}return t.join(";")}function g2(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 a=typeof o=="number"?`${o}px`:o;t.push(`height:${a}!important`),t.push(`--ahd-iframe-height:${a}`),t.push(`--ahd-calendly-height:${a}`),t.push(`--ahd-demo-height:${a}`);break}case"width":{const a=typeof o=="number"?`${o}px`:o;t.push(`--ahd-iframe-width:${a}`),t.push(`--ahd-calendly-width:${a}`),t.push(`--ahd-demo-width:${a}`);break}case"blockPadding":Gn(o)&&t.push(`padding:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break;case"blockMargin":Gn(o)&&t.push(`margin:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break}}return t.join(";")}function vi(e,t){if(!t)return null;const n=e??{},o={};for(const a of Object.keys(t)){const i=t[a],r=n[a],l=!!i&&typeof i=="object"&&!Array.isArray(i)&&!!r&&typeof r=="object"&&!Array.isArray(r);o[a]=l?{...r,...i}:i}return o}function b2(e,t,n,o){if(!t)return"";const a=`#${e}`,i=x2(a),r=[],l=(c,u)=>{const p=vi(n,u==null?void 0:u.style),d=vi(o,u==null?void 0:u.props),h=[p?m2(p):"",d?g2(d):""].filter(Boolean).join(";"),m=[h?`${i}{${h}}`:"",u!=null&&u.hidden?`${a}{display:none}`:""].filter(Boolean).join("");m&&r.push(`${c}{${m}}`)};l(dn,t.tablet),l(`@media (max-width:${Ae}px)`,t.mobile);const s=w2(e,t,n,o);return s&&r.push(s),r.join("")}function v2(e,t){return t?e?{...e,...t}:t:e}function wa(e,t){return(t==null?void 0:t.blockMargin)??(e==null?void 0:e.margin)??(t==null?void 0:t.margin)??null}function xi(e,t,n){const o=wa(e,t),a=wa(n==null?void 0:n.style,n==null?void 0:n.props);return v2(o,a)}function zo(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 x2(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 S2(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 w2(e,t,n,o){if(!t)return"";const a=`#${e}`,i=S2(a),r=wa(n,o),l=zo(r),s=zo(xi(n,o,t.tablet)),c=zo(xi(n,o,t.mobile));return s===l&&c===l?"":`
|
|
469
|
+
`.trim()},blockValue:function(h){var m=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs(h,0,b);var v=this.popStack();b.splice(1,0,v),this.push(this.source.functionCall(m,"call",b))},ambiguousBlockValue:function(){var h=this.aliasable("container.hooks.blockHelperMissing"),m=[this.contextName(0)];this.setupHelperArgs("",0,m,!0),this.flushInline();var b=this.topStack();m.splice(1,0,b),this.pushSource(["if (!",this.lastHelper,") { ",b," = ",this.source.functionCall(h,"call",m),"}"])},appendContent:function(h){this.pendingContent?h=this.pendingContent+h:this.pendingLocation=this.source.currentLocation,this.pendingContent=h},append:function(){if(this.isInline())this.replaceStack(function(m){return[" != null ? ",m,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var h=this.popStack();this.pushSource(["if (",h," != null) { ",this.appendToBuffer(h,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(h){this.lastContext=h},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(h,m,b,v){var k=0;!v&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(h[k++])):this.pushContext(),this.resolvePath("context",h,k,m,b)},lookupBlockParam:function(h,m){this.useBlockParams=!0,this.push(["blockParams[",h[0],"][",h[1],"]"]),this.resolvePath("context",m,1)},lookupData:function(h,m,b){h?this.pushStackLiteral("container.data(data, "+h+")"):this.pushStackLiteral("data"),this.resolvePath("data",m,0,!0,b)},resolvePath:function(h,m,b,v,k){var S=this;if(this.options.strict||this.options.assumeObjects){this.push(p(this.options.strict&&k,this,m,b,h));return}for(var $=m.length,w=function(N){S.replaceStack(function(A){var y=S.nameLookup(A,m[N],h);return v?[" && ",y]:[" != null ? ",y," : ",A]})},_=b;_<$;_++)w(_)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(h,m){this.pushContext(),this.pushString(m),m!=="SubExpression"&&(typeof h=="string"?this.pushString(h):this.pushStackLiteral(h))},emptyHash:function(h){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(h?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var h=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(h.ids)),this.stringParams&&(this.push(this.objectLiteral(h.contexts)),this.push(this.objectLiteral(h.types))),this.push(this.objectLiteral(h.values))},pushString:function(h){this.pushStackLiteral(this.quotedString(h))},pushLiteral:function(h){this.pushStackLiteral(h)},pushProgram:function(h){h!=null?this.pushStackLiteral(this.programExpression(h)):this.pushStackLiteral(null)},registerDecorator:function(h,m){var b=this.nameLookup("decorators",m,"decorator"),v=this.setupHelperArgs(m,h);this.decorators.push(["var decorator = ",b,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+m+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",v])," || fn;"])},invokeHelper:function(h,m,b){var v=this.popStack(),k=this.setupHelper(h,m),S=[];b&&S.push(k.name),S.push(v),this.options.strict||S.push(this.aliasable("container.hooks.helperMissing"));var $=["(",this.itemsSeparatedBy(S,"||"),")"],w=this.source.functionCall($,"call",k.callParams);this.push(w)},itemsSeparatedBy:function(h,m){var b=[];b.push(h[0]);for(var v=1;v<h.length;v++)b.push(m,h[v]);return b},invokeKnownHelper:function(h,m){var b=this.setupHelper(h,m);this.push(this.source.functionCall(b.name,"call",b.callParams))},invokeAmbiguous:function(h,m){this.useRegister("helper");var b=this.popStack();this.emptyHash();var v=this.setupHelper(0,h,m),k=this.lastHelper=this.nameLookup("helpers",h,"helper"),S=["(","(helper = ",k," || ",b,")"];this.options.strict||(S[0]="(helper = ",S.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",S,v.paramsInit?["),(",v.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",v.callParams)," : helper))"])},invokePartial:function(h,m,b){var v=[],k=this.setupParams(m,1,v);h&&(m=this.popStack(),delete k.name),b&&(k.indent=JSON.stringify(b)),k.helpers="helpers",k.partials="partials",k.decorators="container.decorators",h?v.unshift(m):v.unshift(this.nameLookup("partials",m,"partial")),this.options.compat&&(k.depths="depths"),k=this.objectLiteral(k),v.push(k),this.push(this.source.functionCall("container.invokePartial","",v))},assignToHash:function(h){var m=this.popStack(),b=void 0,v=void 0,k=void 0;this.trackIds&&(k=this.popStack()),this.stringParams&&(v=this.popStack(),b=this.popStack());var S=this.hash;b&&(S.contexts[h]=b),v&&(S.types[h]=v),k&&(S.ids[h]=k),S.values[h]=m},pushId:function(h,m,b){h==="BlockParam"?this.pushStackLiteral("blockParams["+m[0]+"].path["+m[1]+"]"+(b?" + "+JSON.stringify("."+b):"")):h==="PathExpression"?this.pushString(m):h==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:u,compileChildren:function(h,m){for(var b=h.children,v=void 0,k=void 0,S=0,$=b.length;S<$;S++){v=b[S],k=new this.compiler;var w=this.matchExistingProgram(v);if(w==null){var _=this.context.programs.push("")-1;v.index=_,v.name="program"+_,this.context.programs[_]=k.compile(v,m,this.context,!this.precompile),this.context.decorators[_]=k.decorators,this.context.environments[_]=v,this.useDepths=this.useDepths||k.useDepths,this.useBlockParams=this.useBlockParams||k.useBlockParams,v.useDepths=this.useDepths,v.useBlockParams=this.useBlockParams}else v.index=w.index,v.name="program"+w.index,this.useDepths=this.useDepths||w.useDepths,this.useBlockParams=this.useBlockParams||w.useBlockParams}},matchExistingProgram:function(h){for(var m=0,b=this.context.environments.length;m<b;m++){var v=this.context.environments[m];if(v&&v.equals(h))return v}},programExpression:function(h){var m=this.environment.children[h],b=[m.index,"data",m.blockParams];return(this.useBlockParams||this.useDepths)&&b.push("blockParams"),this.useDepths&&b.push("depths"),"container.program("+b.join(", ")+")"},useRegister:function(h){this.registers[h]||(this.registers[h]=!0,this.registers.list.push(h))},push:function(h){return h instanceof c||(h=this.source.wrap(h)),this.inlineStack.push(h),h},pushStackLiteral:function(h){this.push(new c(h))},pushSource:function(h){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),h&&this.source.push(h)},replaceStack:function(h){var m=["("],b=void 0,v=void 0,k=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],m=["(",b],k=!0;else{v=!0;var $=this.incrStack();m=["((",this.push($)," = ",S,")"],b=this.topStack()}var w=h.call(this,b);k||this.popStack(),v&&this.stackSlot--,this.push(m.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 h=this.inlineStack;this.inlineStack=[];for(var m=0,b=h.length;m<b;m++){var v=h[m];if(v instanceof c)this.compileStack.push(v);else{var k=this.incrStack();this.pushSource([k," = ",v,";"]),this.compileStack.push(k)}}},isInline:function(){return this.inlineStack.length},popStack:function(h){var m=this.isInline(),b=(m?this.inlineStack:this.compileStack).pop();if(!h&&b instanceof c)return b.value;if(!m){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return b},topStack:function(){var h=this.isInline()?this.inlineStack:this.compileStack,m=h[h.length-1];return m instanceof c?m.value:m},contextName:function(h){return this.useDepths&&h?"depths["+h+"]":"depth"+h},quotedString:function(h){return this.source.quotedString(h)},objectLiteral:function(h){return this.source.objectLiteral(h)},aliasable:function(h){var m=this.aliases[h];return m?(m.referenceCount++,m):(m=this.aliases[h]=this.source.wrap(h),m.aliasable=!0,m.referenceCount=1,m)},setupHelper:function(h,m,b){var v=[],k=this.setupHelperArgs(m,h,v,b),S=this.nameLookup("helpers",m,"helper"),$=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:v,paramsInit:k,name:S,callParams:[$].concat(v)}},setupParams:function(h,m,b){var v={},k=[],S=[],$=[],w=!b,_=void 0;w&&(b=[]),v.name=this.quotedString(h),v.hash=this.popStack(),this.trackIds&&(v.hashIds=this.popStack()),this.stringParams&&(v.hashTypes=this.popStack(),v.hashContexts=this.popStack());var N=this.popStack(),A=this.popStack();(A||N)&&(v.fn=A||"container.noop",v.inverse=N||"container.noop");for(var y=m;y--;)_=this.popStack(),b[y]=_,this.trackIds&&($[y]=this.popStack()),this.stringParams&&(S[y]=this.popStack(),k[y]=this.popStack());return w&&(v.args=this.source.generateArray(b)),this.trackIds&&(v.ids=this.source.generateArray($)),this.stringParams&&(v.types=this.source.generateArray(S),v.contexts=this.source.generateArray(k)),this.options.data&&(v.data="data"),this.useBlockParams&&(v.blockParams="blockParams"),v},setupHelperArgs:function(h,m,b,v){var k=this.setupParams(h,m,b);return k.loc=JSON.stringify(this.source.currentLocation),k=this.objectLiteral(k),v?(this.useRegister("options"),b.push("options"),["options=",k]):b?(b.push(k),""):k}},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(" "),h=u.RESERVED_WORDS={},m=0,b=d.length;m<b;m++)h[d[m]]=!0}(),u.isValidJavaScriptVariableName=function(d){return!u.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function p(d,h,m,b,v){var k=h.popStack(),S=m.length;d&&S--;for(var $=b;$<S;$++)k=h.nameLookup(k,m[$],v);return d?[h.aliasable("container.strict"),"(",k,", ",h.quotedString(m[S]),", ",JSON.stringify(h.source.currentLocation)," )"]:k}t.default=u,e.exports=t.default})(va,va.exports);var o2=va.exports;(function(e,t){t.__esModule=!0;function n(S){return S&&S.__esModule?S:{default:S}}var o=vS,a=n(o),i=Tl,r=n(i),l=fn,s=pn,c=o2,u=n(c),p=Pl,d=n(p),h=Ml,m=n(h),b=a.default.create;function v(){var S=b();return S.compile=function($,w){return s.compile($,w,S)},S.precompile=function($,w){return s.precompile($,w,S)},S.AST=r.default,S.Compiler=s.Compiler,S.JavaScriptCompiler=u.default,S.Parser=l.parser,S.parse=l.parse,S.parseWithoutProcessing=l.parseWithoutProcessing,S}var k=v();k.create=v,m.default(k),k.Visitor=d.default,k.default=k,t.default=k,e.exports=t.default})(Yo,Yo.exports);var a2=Yo.exports;const r2=o1(a2);function i2(e,t){const n=[],o=new Set,a=i=>{var l,s,c,u,p,d,h,m,b,v;if(o.has(i)||!e[i])return;o.add(i),n.push(i);const r=e[i];switch(r.type){case"Container":case"ButtonGroup":(((l=r.data.props)==null?void 0:l.childrenIds)||[]).forEach(a);break;case"ColumnsContainer":case"FlexColumns":(((s=r.data.props)==null?void 0:s.columns)||[]).forEach(k=>(k.childrenIds||[]).forEach(a));break;case"Grid":(((c=r.data.props)==null?void 0:c.cells)||[]).forEach(k=>(k.childrenIds||[]).forEach(a));break;case"Accordion":(((u=r.data.props)==null?void 0:u.items)||[]).forEach(k=>{(k.titleChildrenIds||[]).forEach(a),(k.contentChildrenIds||[]).forEach(a)});break;case"TabsBlock":case"Carousel":case"Marquee":(((p=r.data.props)==null?void 0:p.items)||[]).forEach(k=>{(k.contentChildrenIds||[]).forEach(a)});break;case"Pagination":(((d=r.data.props)==null?void 0:d.cells)||[]).forEach(k=>(k.childrenIds||[]).forEach(a)),(((h=r.data.props)==null?void 0:h.items)||[]).forEach(k=>{(k.contentChildrenIds||[]).forEach(a)});break;case"PricingAccordion":(((m=r.data.props)==null?void 0:m.items)||[]).forEach(k=>{(k.cardChildrenIds||[]).forEach(a),(k.detailChildrenIds||[]).forEach(a)});break;case"MenuPicker":(((b=r.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(a),(((v=r.data.props)==null?void 0:v.endChildrenIds)||[]).forEach(a);break;case"EmailLayout":(r.data.childrenIds||[]).forEach(a);break}};return a(t),n}function Hl(e,t){const n=new Map;if(!e||!Array.isArray(t))return n;const o=e;for(const a of t){if((a==null?void 0:a.type)!=="array"||!a.sourceBlockId)continue;(Array.isArray(a.value)?a.value:[]).forEach((r,l)=>{var c;const s=l===0?a.sourceBlockId:(c=a.rowIds)==null?void 0:c[l-1];if(!(!s||!o[s]))for(const u of i2(o,s))n.set(u,r||{})})}return n}const l2={Text:["text"],Heading:["text"],Button:["text","url"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Progress:["value","max"],Container:["linkHref"]};function s2(e){return e?l2[e]:void 0}const Sa=r2.create();Sa.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new Sa.SafeString(`{{${t.name}}}`)});const gi=new Map;function c2(e){let t=gi.get(e);return t||(t=Sa.compile(e,{noEscape:!0,strict:!1}),gi.set(e,t)),t}function Fl(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=n.value.map(a=>{const i={};if(a&&typeof a=="object")for(const r of Object.keys(a)){const l=a[r];l!=null&&l!==""&&(i[r]=l)}return i});Object.defineProperty(o,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=o;continue}typeof n.value!="string"||n.value===""||(t[n.id]=n.value)}return t}function Gl(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 u2=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function d2(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let o=0;return{masked:e.replace(u2,(i,r)=>{const l=t[r];if(Array.isArray(l)&&l.length>0)return i;const c="HB_EACH_"+o+++"_";return n.set(c,i),c}),restore:n}}const Ul=/\{\{\s*this\.([\w]+)\s*\}\}/g;function h2(e,t){return e.replace(Ul,(n,o)=>{const a=t==null?void 0:t[o];return a!=null&&a!==""?String(a):n})}function Lo(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let o=e;if(n&&(o=h2(o,n),o.indexOf("{{")===-1)||!t||t.length===0)return o;try{const a=t&&t.length>0?Fl(t):{},{masked:i,restore:r}=d2(o,a),l=new Map;let s=i;if(i.indexOf("{{")!==-1&&i.indexOf("#each")===-1){let u=0;s=i.replace(Ul,p=>{const d="HB_THIS_"+u+++"_";return l.set(d,p),d})}let c=c2(s)(a);for(const[u,p]of l)c=c.split(u).join(p);if(r.size>0)for(const[u,p]of r)c=c.split(u).join(p);return c}catch{return o}}function Zl(e,t,n){var r,l,s,c,u;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="List"){const p=(l=(r=e.data)==null?void 0:r.props)==null?void 0:l.items;if(!Array.isArray(p)||p.length===0)return e;let d=null;return p.forEach((h,m)=>{const b=h==null?void 0:h.text;if(typeof b!="string"||b.indexOf("{{")===-1)return;const v=Lo(b,t,n);v!==b&&(d||(d=p.map(k=>({...k}))),d[m]={...d[m],text:v})}),d?{...e,data:{...e.data,props:{...e.data.props,items:d}}}:e}if(e.type==="Breadcrumb"){const p=(c=(s=e.data)==null?void 0:s.props)==null?void 0:c.items;if(!Array.isArray(p)||p.length===0)return e;let d=null;return p.forEach((h,m)=>{for(const b of["label","href"]){const v=h==null?void 0:h[b];if(typeof v!="string"||v.indexOf("{{")===-1)continue;const k=Lo(v,t,n);k!==v&&(d||(d=p.map(S=>({...S}))),d[m]={...d[m],[b]:k})}}),d?{...e,data:{...e.data,props:{...e.data.props,items:d}}}:e}const o=s2(e.type);if(!o)return e;const a=(u=e.data)==null?void 0:u.props;if(!a)return e;let i=null;for(const p of o){const d=a[p];if(typeof d!="string"||d.indexOf("{{")===-1)continue;const h=Lo(d,t,n);h!==d&&(i||(i={...a}),i[p]=h)}return i?{...e,data:{...e.data,props:i}}:e}function Wl(e,t){var l;if(!e)return e;const n=t??Gl(e);let o={...e},a=!1;const i=Hl(e,n);if(n&&n.length>0&&(Object.keys(Fl(n)).length>0||i.size>0))for(const s of Object.keys(o)){const c=o[s],u=Zl(c,n,i.get(s));u!==c&&(o[s]=u,a=!0)}const r=o.root;if(((l=r==null?void 0:r.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...c}=r.data;o.root={...r,data:c},a=!0}return a?o:e}const bi=Object.fromEntries(Xe.map(e=>[e.key,e.value]));function Gn(e){return!!e&&typeof e=="object"&&"top"in e&&"left"in e}function f2(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function p2(e){const t=e.borderColor??null;if(!t)return"";if(t==="transparent")return"border:none!important";const n=Gn(e.borderWidth)?e.borderWidth:null;return f2(t)?"":[`border-top:${(n==null?void 0:n.top)??0}px solid ${t}!important`,`border-right:${(n==null?void 0:n.right)??0}px solid ${t}!important`,`border-bottom:${(n==null?void 0:n.bottom)??0}px solid ${t}!important`,`border-left:${(n==null?void 0:n.left)??0}px solid ${t}!important`].join(";")}function m2(e){const t=[];if(e.borderColor!==void 0||e.borderWidth!==void 0){const o=p2(e);o&&t.push(o)}const n=e.backgroundSize==="none";n&&t.push("background-image:none!important");for(const o of Object.keys(e)){const a=e[o];if(a!=null)switch(o){case"borderColor":case"borderWidth":break;case"fontSize":t.push(`font-size:${a}px!important`);break;case"fontFamily":bi[a]&&t.push(`font-family:${bi[a]}!important`);break;case"fontWeight":t.push(`font-weight:${a}!important`);break;case"fontStyle":t.push(`font-style:${a}!important`);break;case"textDecoration":t.push(`text-decoration:${a}!important`);break;case"lineHeight":t.push(`line-height:${a}!important`);break;case"textAlign":t.push(`text-align:${a}!important`);break;case"buttonTextAlign":t.push(`justify-content:${a==="center"?"center":a==="right"?"flex-end":"flex-start"}!important`);break;case"padding":case"margin":Gn(a)&&t.push(`${o}:${a.top}px ${a.right}px ${a.bottom}px ${a.left}px!important`);break;case"marginBottom":t.push(`margin-bottom:${a}px!important`);break;case"width":t.push(`width:${typeof a=="number"?`${a}px`:a}!important`);break;case"height":t.push(`height:${typeof a=="number"?`${a}px`:a}!important`);break;case"backgroundImage":t.push(a&&!n?`background-image:url("${String(a).replace(/"/g,'\\"')}")!important`:"background-image:none!important");break;case"backgroundSize":n||t.push(`background-size:${a}!important`);break;case"backgroundRepeat":t.push(`background-repeat:${a}!important`);break;case"activeFontSize":t.push(`--ahd-tabs-active-font-size:${typeof a=="number"?`${a}px`:a}`);break;case"showActiveBorder":t.push(`--ahd-tabs-active-border-color:${a?"currentColor":"transparent"}`);break;case"tabGap":t.push(`--ahd-tabs-tab-gap:${a}px`);break;case"contentGap":t.push(`--ahd-tabs-content-gap:${a}px`);break;case"navWidth":t.push(`--ahd-tabs-nav-width:${a}px`);break;case"starSize":t.push(`--ahd-rating-star-size:${a}px`);break;case"starGap":t.push(`--ahd-rating-star-gap:${a}px`);break;case"arrowSize":t.push(`--ahd-carousel-arrow-size:${a}px`),t.push(`--ahd-carousel-chevron-size:${Math.max(12,Math.min(40,Math.round(Number(a)*.5)))}px`);break;case"dotSize":t.push(`--ahd-carousel-dot-size:${a}px`);break;case"slideGap":t.push(`--ahd-carousel-slide-gap:${a}px`);break;case"buttonSize":t.push(`--ahd-pgn-btn-size:${a}px`);break;case"buttonGap":t.push(`--ahd-pgn-btn-gap:${a}px`);break;case"buttonRadius":t.push(`--ahd-pgn-btn-radius:${a}px`);break;case"controlGap":t.push(`--ahd-pgn-control-gap:${a}px`);break;case"borderRadius":if(typeof a=="number")t.push(`border-radius:${a}px!important`);else if(a&&typeof a=="object"){const{topLeft:i=0,topRight:r=0,bottomRight:l=0,bottomLeft:s=0}=a;t.push(`border-radius:${i}px ${r}px ${l}px ${s}px!important`)}else t.push(`border-radius:${a}!important`);break}}return t.join(";")}function g2(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 a=typeof o=="number"?`${o}px`:o;t.push(`height:${a}!important`),t.push(`--ahd-iframe-height:${a}`),t.push(`--ahd-calendly-height:${a}`),t.push(`--ahd-demo-height:${a}`);break}case"width":{const a=typeof o=="number"?`${o}px`:o;t.push(`--ahd-iframe-width:${a}`),t.push(`--ahd-calendly-width:${a}`),t.push(`--ahd-demo-width:${a}`);break}case"blockPadding":Gn(o)&&t.push(`padding:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break;case"blockMargin":Gn(o)&&t.push(`margin:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break}}return t.join(";")}function vi(e,t){if(!t)return null;const n=e??{},o={};for(const a of Object.keys(t)){const i=t[a],r=n[a],l=!!i&&typeof i=="object"&&!Array.isArray(i)&&!!r&&typeof r=="object"&&!Array.isArray(r);o[a]=l?{...r,...i}:i}return o}function b2(e,t,n,o){if(!t)return"";const a=`#${e}`,i=x2(a),r=[],l=(c,u)=>{const p=vi(n,u==null?void 0:u.style),d=vi(o,u==null?void 0:u.props),h=[p?m2(p):"",d?g2(d):""].filter(Boolean).join(";"),m=[h?`${i}{${h}}`:"",u!=null&&u.hidden?`${a}{display:none}`:""].filter(Boolean).join("");m&&r.push(`${c}{${m}}`)};l(dn,t.tablet),l(`@media (max-width:${Ae}px)`,t.mobile);const s=w2(e,t,n,o);return s&&r.push(s),r.join("")}function v2(e,t){return t?e?{...e,...t}:t:e}function wa(e,t){return(t==null?void 0:t.blockMargin)??(e==null?void 0:e.margin)??(t==null?void 0:t.margin)??null}function xi(e,t,n){const o=wa(e,t),a=wa(n==null?void 0:n.style,n==null?void 0:n.props);return v2(o,a)}function zo(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 x2(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 S2(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 w2(e,t,n,o){if(!t)return"";const a=`#${e}`,i=S2(a),r=wa(n,o),l=zo(r),s=zo(xi(n,o,t.tablet)),c=zo(xi(n,o,t.mobile));return s===l&&c===l?"":`
|
|
470
470
|
${dn} { ${i} { width: ${s} !important; max-width: 100% !important; } }
|
|
471
471
|
@media (max-width:${Ae}px) { ${i} { width: ${c} !important; max-width: 100% !important; } }
|
|
472
|
-
`.trim()}const k2=e=>{var o,a;const t=!!((o=e==null?void 0:e.props)!=null&&o.decorative),n=((a=e==null?void 0:e.props)==null?void 0:a.alt)??"";return t?g.jsx("div",{"aria-hidden":"true",role:"presentation",style:{display:"contents"},children:g.jsx(vr,{...e,props:{...(e==null?void 0:e.props)??{},alt:""}})}):g.jsx(vr,{...e,props:{...(e==null?void 0:e.props)??{},alt:n}})},_2=e=>g.jsx("div",{"aria-hidden":"true",style:{display:"contents"},children:g.jsx(ym,{...e})}),$2=Zb,
|
|
472
|
+
`.trim()}const k2=e=>{var o,a;const t=!!((o=e==null?void 0:e.props)!=null&&o.decorative),n=((a=e==null?void 0:e.props)==null?void 0:a.alt)??"";return t?g.jsx("div",{"aria-hidden":"true",role:"presentation",style:{display:"contents"},children:g.jsx(vr,{...e,props:{...(e==null?void 0:e.props)??{},alt:""}})}):g.jsx(vr,{...e,props:{...(e==null?void 0:e.props)??{},alt:n}})},_2=e=>g.jsx("div",{"aria-hidden":"true",style:{display:"contents"},children:g.jsx(ym,{...e})}),$2=Zb,ql=G.createContext({});function Vl(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 Si=new WeakMap;function C2(e){if(!e||typeof e!="object")return new Map;let t=Si.get(e);return t||(t=Hl(e,Vl(e)),Si.set(e,t)),t}const Yl=G.createContext({});function A2(){return G.useContext(ql)}function y2(){return G.useContext(Yl)}const Kl={ColumnsContainer:{schema:yg,Component:Rg},FlexColumns:{schema:Eg,Component:zg},Grid:{schema:Vg,Component:Xg},ButtonGroup:{schema:$0,Component:C0},Container:{schema:gb,Component:bb},EmailLayout:{schema:Nb,Component:$2},Accordion:{schema:y0,Component:E0},PricingAccordion:{schema:M0,Component:P0},TabsBlock:{schema:L0,Component:Z0},Carousel:{schema:Y0,Component:Q0},Rating:{schema:ev,Component:av},Progress:{schema:lv,Component:fv},Marquee:{schema:pv,Component:Nv},Timer:{schema:Iv,Component:Dv},Pagination:{schema:Uv,Component:Xv},Table:{schema:Qv,Component:ox},DemoPicker:{schema:ax,Component:e=>g.jsx(ix,{...e})},MenuPicker:{schema:sx,Component:e=>g.jsx($x,{...e})},Breadcrumb:{schema:Rx,Component:zx},FormsPicker:{schema:jx,Component:e=>g.jsx(Hx,{...e})},AppBannerPicker:{schema:Fx,Component:e=>g.jsx(Zx,{...e})},FaqPicker:{schema:Wx,Component:e=>g.jsx(Yx,{...e})},Avatar:{schema:of,Component:k2},Button:{schema:Of,Component:Lf},Divider:{schema:Zf,Component:Wf},Heading:{schema:op,Component:ap},Html:{schema:Tp,Component:Lp},Image:{schema:qp,Component:Yp},Logo:{schema:im,Component:sm},Video:{schema:Sm,Component:$m},IFrame:{schema:Km,Component:Xm},Calendly:{schema:tg,Component:ag},YouTubeUrl:{schema:Wm,Component:Vm},Spacer:{schema:Cm,Component:_2},SkipLink:{schema:Kx,Component:wl},AccessibilityTools:{schema:Xx,Component:Cl},Stepper:{schema:t0,Component:n0},List:{schema:d0,Component:f0},Text:{schema:Hm,Component:Gm}},Jl=ug(Kl),N2=Lt(x(),Jl),R2=cg(Kl);function ve({id:e}){var $,w,_,N,A,y,R;const t=A2(),{staticRender:n,injectElementIds:o,mainBlockId:a,hoistedSkipLinkId:i,hoistedA11yToolsId:r}=y2(),l=t[e];if(i&&e===i&&(l==null?void 0:l.type)==="SkipLink"||r&&e===r&&(l==null?void 0:l.type)==="AccessibilityTools")return null;const s=a&&e===a&&(l==null?void 0:l.type)==="Container"?{...l,data:{...l.data,props:{...(($=l.data)==null?void 0:$.props)??{},elementId:"main-content"}}}:l,c=Vl(t),u=C2(t).get(e),p=Zl(s,c,u),d=g.jsx(R2,{...p});if(e==="root")return d;const h=!!((w=l==null?void 0:l.data)!=null&&w.hidden),b=new Set(["Image","Container","Button","Avatar","Logo"]).has(p==null?void 0:p.type)?(N=(_=p==null?void 0:p.data)==null?void 0:_.props)==null?void 0:N.animation:null,v=b&&b.type&&b.type!=="none"?{"data-animate-type":b.type,"data-animate-trigger":b.trigger??"load","data-animate-speed":b.speed??"medium","data-animate-delay":b.delay??0,...b.disableOnMobile?{"data-animate-disable-mobile":"true"}:{}}:{},k=n&&o?`ahd-${e}`:e,S=b2(k,(A=p==null?void 0:p.data)==null?void 0:A.responsive,(y=p==null?void 0:p.data)==null?void 0:y.style,(R=p==null?void 0:p.data)==null?void 0:R.props);return n&&o?g.jsxs("div",{id:`ahd-${e}`,className:"ahd-block-wrapper",style:h?{display:"none"}:void 0,...v,children:[S?g.jsx("style",{dangerouslySetInnerHTML:{__html:S}}):null,d]}):g.jsxs("div",{id:e,style:{scrollMarginTop:"80px",...h?{display:"none"}:null},...v,children:[S?g.jsx("style",{dangerouslySetInnerHTML:{__html:S}}):null,d]})}function sn({document:e,rootBlockId:t,staticRender:n,injectElementIds:o,isBanner:a,mainBlockId:i,hoistedSkipLinkId:r,hoistedA11yToolsId:l}){const s=G.useMemo(()=>({staticRender:!!n,injectElementIds:!!o,isBanner:!!a,mainBlockId:i,hoistedSkipLinkId:r,hoistedA11yToolsId:l}),[n,o,a,i,r,l]);return g.jsx(ql.Provider,{value:e,children:g.jsx(Yl.Provider,{value:s,children:g.jsx(ve,{id:t})})})}function E2(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="SkipLink")return t}function I2(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="AccessibilityTools")return t}function M2(e,t){const n=new Set;function o(a){var s,c,u,p;if(n.has(a))return;n.add(a);const i=e[a];if(!i)return;if(i.type==="Container"&&((c=(s=i.data)==null?void 0:s.props)==null?void 0:c.tag)==="main")return a;const r=((u=i.data)==null?void 0:u.props)??{},l=[];Array.isArray(r.childrenIds)&&l.push(r.childrenIds),Array.isArray((p=i.data)==null?void 0:p.childrenIds)&&l.push(i.data.childrenIds),Array.isArray(r.columns)&&r.columns.forEach(d=>{Array.isArray(d==null?void 0:d.childrenIds)&&l.push(d.childrenIds)});for(const d of l)for(const h of d){const m=o(h);if(m)return m}}return o(t)}const T2=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="TabsBlock"),P2=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="DemoPicker"),O2=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Carousel"),L2=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]),z2=e=>Object.values(e??{}).some(t=>{var n,o,a;return L2.has(t==null?void 0:t.type)&&((a=(o=(n=t==null?void 0:t.data)==null?void 0:n.props)==null?void 0:o.animation)==null?void 0:a.type)&&t.data.props.animation.type!=="none"}),j2=()=>`
|
|
473
473
|
(function () {
|
|
474
474
|
if (window.__ahdAnimationBound) return;
|
|
475
475
|
window.__ahdAnimationBound = true;
|
|
@@ -1776,19 +1776,19 @@ table[style*="maxHeight"] {
|
|
|
1776
1776
|
transform: translateY(-7px) rotate(-45deg);
|
|
1777
1777
|
}
|
|
1778
1778
|
}
|
|
1779
|
-
`),W2=[{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'}],q2={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]},V2=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`},Y2=`https://fonts.googleapis.com/css2?${Object.entries(q2).map(([e,t])=>`family=${V2(e,t)}`).join("&")}&display=swap`,
|
|
1779
|
+
`),W2=[{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'}],q2={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]},V2=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`},Y2=`https://fonts.googleapis.com/css2?${Object.entries(q2).map(([e,t])=>`family=${V2(e,t)}`).join("&")}&display=swap`,Xl=W2.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));Xl.map(e=>e.css);const K2=e=>e.replace(/"/g,'\\"');Xl.map(e=>{const t=K2(e.css);return`
|
|
1780
1780
|
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
|
|
1781
1781
|
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
|
|
1782
1782
|
content: '${e.label}';
|
|
1783
1783
|
font-family: ${e.css};
|
|
1784
1784
|
}`}).join(`
|
|
1785
|
-
`);const J2=e=>{let t=0;const n=e.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(o,a,i)=>{t++;const r=String(i).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};:,])\s*/g,"$1").trim();return`<style${a}>${r}</style>`});return console.log("[renderToStaticMarkup] minified",t,"style block(s)"),n};function Da(e,{rootBlockId:t,seo:n,injectElementIds:o,minifyCss:a,lang:i,skipLink:r,accessibilityTools:l,includePageCSS:s,headHtml:c,bodyBottomHtml:u,isBanner:p,injectTabsScrollSyncScript:d=!0,injectCarouselScript:h=!0,injectAnimationScript:m=!0,injectFontAssets:b=!0}){var q;const v=((q=e==null?void 0:e[t])==null?void 0:q.data)??{};i??v.lang;const k=r??v.skipLink??void 0,S=l??v.accessibilityTools??void 0,$=Object.values(e??{}).some(B=>(B==null?void 0:B.type)==="SkipLink"),w=Object.values(e??{}).some(B=>(B==null?void 0:B.type)==="AccessibilityTools");!$&&(k==null||k.enabled);const _=!w&&!!(S!=null&&S.enabled),N=_?
|
|
1785
|
+
`);const J2=e=>{let t=0;const n=e.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(o,a,i)=>{t++;const r=String(i).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};:,])\s*/g,"$1").trim();return`<style${a}>${r}</style>`});return console.log("[renderToStaticMarkup] minified",t,"style block(s)"),n};function Da(e,{rootBlockId:t,seo:n,injectElementIds:o,minifyCss:a,lang:i,skipLink:r,accessibilityTools:l,includePageCSS:s,headHtml:c,bodyBottomHtml:u,isBanner:p,injectTabsScrollSyncScript:d=!0,injectCarouselScript:h=!0,injectAnimationScript:m=!0,injectFontAssets:b=!0}){var q;const v=((q=e==null?void 0:e[t])==null?void 0:q.data)??{};i??v.lang;const k=r??v.skipLink??void 0,S=l??v.accessibilityTools??void 0,$=Object.values(e??{}).some(B=>(B==null?void 0:B.type)==="SkipLink"),w=Object.values(e??{}).some(B=>(B==null?void 0:B.type)==="AccessibilityTools");!$&&(k==null||k.enabled);const _=!w&&!!(S!=null&&S.enabled),N=_?kl(S):"",A=_?_l(S):"",y=_?$l():"",R=d&&T2(e)?D2():"",M=h&&O2(e)?H2():"",T=P2(e)?B2():"",L=z2(e),H=m&&L?j2():"",F=g.jsxs("div",{style:{margin:0,padding:0},children:[s&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Z2()}}),N&&g.jsx("style",{dangerouslySetInnerHTML:{__html:N}}),L&&g.jsx("style",{dangerouslySetInnerHTML:{__html:G2}}),b&&g.jsx("link",{rel:"stylesheet",href:Y2}),g.jsx("style",{children:`.gc-tooltip * {
|
|
1786
1786
|
margin: 0;
|
|
1787
1787
|
padding: 0;
|
|
1788
1788
|
box-sizing: border-box;
|
|
1789
1789
|
}
|
|
1790
1790
|
.gc-tooltip .gc-close { display: none !important; }
|
|
1791
|
-
.gc-tooltip .gc-copyright { display: none !important; }`}),A&&g.jsx("div",{dangerouslySetInnerHTML:{__html:A}}),y&&g.jsx("script",{dangerouslySetInnerHTML:{__html:y}}),(()=>{const B=E2(e),Y=I2(e),de=M2(e,t),oe=B?e[B]:null,ee=Y?e[Y]:null,Z=de?g.jsx(sn,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!p,mainBlockId:de,hoistedSkipLinkId:B,hoistedA11yToolsId:Y}):g.jsx("main",{id:"main-content",tabIndex:-1,children:g.jsx(sn,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!p,hoistedSkipLinkId:B,hoistedA11yToolsId:Y})});return g.jsxs(g.Fragment,{children:[oe&&g.jsx(
|
|
1791
|
+
.gc-tooltip .gc-copyright { display: none !important; }`}),A&&g.jsx("div",{dangerouslySetInnerHTML:{__html:A}}),y&&g.jsx("script",{dangerouslySetInnerHTML:{__html:y}}),(()=>{const B=E2(e),Y=I2(e),de=M2(e,t),oe=B?e[B]:null,ee=Y?e[Y]:null,Z=de?g.jsx(sn,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!p,mainBlockId:de,hoistedSkipLinkId:B,hoistedA11yToolsId:Y}):g.jsx("main",{id:"main-content",tabIndex:-1,children:g.jsx(sn,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!p,hoistedSkipLinkId:B,hoistedA11yToolsId:Y})});return g.jsxs(g.Fragment,{children:[oe&&g.jsx(wl,{...oe.data??{}}),p?Z:g.jsx("div",{className:"ahd-page-root",children:Z}),ee&&g.jsx(Cl,{...ee.data??{}})]})})(),R&&g.jsx("script",{dangerouslySetInnerHTML:{__html:R}}),M&&g.jsx("script",{dangerouslySetInnerHTML:{__html:M}}),T&&g.jsx("script",{dangerouslySetInnerHTML:{__html:T}}),H&&g.jsx("script",{dangerouslySetInnerHTML:{__html:H}})]}),j=is.renderToStaticMarkup(F);let O=a?J2(j):j;return c&&(O=O.replace("</head>",`${c}</head>`)),u&&(O=O.replace("</body>",`${u}</body>`)),O}function wi(e){return((e==null?void 0:e.sectionType)||"internal")==="external"}function X2(e,t={}){var a;if(!e)return"";const n=t.rootBlockId??"root",o=((a=e==null?void 0:e[n])==null?void 0:a.data)??{};try{return Da(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 jo(e){return String(e).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function Q2(e,t={}){var k,S,$;const n=t.includeExternalSections??!0,o=t.wrapInDocumentShell??!0,a=[],i=e.map(w=>{var A;if(wi(w))return n&&a.push(String((w==null?void 0:w.content)??"")),w;const _=(A=w==null?void 0:w.contentMetadata)==null?void 0:A.document;if(!_)return w!=null&&w.content&&a.push(String(w.content)),w;const N=X2(_,t);return N&&a.push(N),{...w,content:N,contentMetadata:{...w.contentMetadata??{},document:_}}}),r=a.join(`
|
|
1792
1792
|
`);if(!o)return{html:r,sectionHtml:a,flushedSections:i};const l=e.find(w=>!wi(w)),s=(($=(S=(k=l==null?void 0:l.contentMetadata)==null?void 0:k.document)==null?void 0:S.root)==null?void 0:$.data)??{},c=t.lang||s.lang||"en",u=t.canvasColor||s.canvasColor||"#FFFFFF",p=t.fontFamily||(typeof s.fontFamily=="string"?s.fontFamily:"Inter, system-ui, sans-serif"),d=t.seoTitle?`<title>${jo(t.seoTitle)}</title>`:"",h=t.seoDescription?`<meta name="description" content="${jo(t.seoDescription)}" />`:"",m=t.extraHead??"",b=t.extraBodyBottom??"";return{html:`<!doctype html>
|
|
1793
1793
|
<html lang="${jo(c)}">
|
|
1794
1794
|
<head>
|
|
@@ -1807,4 +1807,4 @@ ${m}
|
|
|
1807
1807
|
${r}
|
|
1808
1808
|
${b}
|
|
1809
1809
|
</body>
|
|
1810
|
-
</html>`,sectionHtml:a,flushedSections:i}}function ew(e){var i,r,l,s,c,u,p,d,h,m,b;if(!e)return[];const t=e.configuration??{},n=(r=(i=t==null?void 0:t.root)==null?void 0:i.data)==null?void 0:r.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 v=new Set,k=[];for(const S of o){const $=(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($))for(const w of $)!(w!=null&&w.id)||v.has(w.id)||(v.add(w.id),k.push(w))}if(k.length>0)return k}const a=(b=(m=(h=(d=(p=t==null?void 0:t.step)==null?void 0:p.contentMetadata)==null?void 0:d.document)==null?void 0:h.root)==null?void 0:m.data)==null?void 0:b.formFields;return Array.isArray(a)&&a.length>0?a:Array.isArray(e.formFields)?e.formFields:[]}function tw(e){var n,o,a,i,r,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(a=(o=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:o.document)!=null&&a.root?t.content.contentMetadata.document:(r=(i=t.contentMetadata)==null?void 0:i.document)!=null&&r.root?t.contentMetadata.document:(s=(l=e.contentMetadata)==null?void 0:l.document)!=null&&s.root?e.contentMetadata.document:null}function nw(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function ow(e){const t=e;return!!(t.templateId&&t.baseUrl)}function
|
|
1810
|
+
</html>`,sectionHtml:a,flushedSections:i}}function ew(e){var i,r,l,s,c,u,p,d,h,m,b;if(!e)return[];const t=e.configuration??{},n=(r=(i=t==null?void 0:t.root)==null?void 0:i.data)==null?void 0:r.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 v=new Set,k=[];for(const S of o){const $=(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($))for(const w of $)!(w!=null&&w.id)||v.has(w.id)||(v.add(w.id),k.push(w))}if(k.length>0)return k}const a=(b=(m=(h=(d=(p=t==null?void 0:t.step)==null?void 0:p.contentMetadata)==null?void 0:d.document)==null?void 0:h.root)==null?void 0:m.data)==null?void 0:b.formFields;return Array.isArray(a)&&a.length>0?a:Array.isArray(e.formFields)?e.formFields:[]}function tw(e){var n,o,a,i,r,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(a=(o=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:o.document)!=null&&a.root?t.content.contentMetadata.document:(r=(i=t.contentMetadata)==null?void 0:i.document)!=null&&r.root?t.contentMetadata.document:(s=(l=e.contentMetadata)==null?void 0:l.document)!=null&&s.root?e.contentMetadata.document:null}function nw(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function ow(e){const t=e;return!!(t.templateId&&t.baseUrl)}function Ql(e){if(!e||typeof e!="object")return e;const t=Gl(e);return!t||t.length===0?e:Wl(e,t)}const aw=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 rw(e){var o,a,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:((a=e==null?void 0:e.data)==null?void 0:a.style)??{},hidden:(i=e==null?void 0:e.data)==null?void 0:i.hidden}}}function es(e){if(!e||typeof e!="object")return e;let t=!1;const n={};for(const[o,a]of Object.entries(e)){const i=a==null?void 0:a.type;i&&!aw.has(i)?(n[o]=rw(a),t=!0,console.warn(`[pagepilot-visual-editor] renderToStaticHtml: block "${o}" has unsupported type "${i}" — coerced to Text.`)):n[o]=a}return t?n:e}function Ha(e,t){var r;if(!e)return"";const n=t.rootBlockId??"root",o=Ql(e),a=es(o),i=((r=a==null?void 0:a[n])==null?void 0:r.data)??{};return Da(a,{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 ts(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 ns(e){const t={"Content-Type":"application/json"};return e.authToken&&(t.Authorization=`Bearer ${e.authToken}`),t}async function os(e,t,n){const o=await n(e,t);if(!o.ok){const a=await o.text().catch(()=>"");return{ok:!1,body:null,status:o.status,text:a}}return{ok:!0,body:await o.json(),status:o.status,text:""}}async function iw(e,t){var v;const{baseUrl:n,tenantId:o,pageId:a}=t,r=`${n.replace(/\/+$/,"")}/tenant/${o}/page/${a}`,l=ts(t),s=await os(r,{method:"GET",headers:ns(t)},l);if(!s.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${r} → ${s.status}${s.text?`: ${s.text}`:""}`);const c=s.body,{wrapInDocumentShell:u=!0,headHtml:p,bodyBottomHtml:d}=t,h=Array.isArray(c==null?void 0:c.sections)?c.sections:[];if(h.length===0)return Ha(((v=c==null?void 0:c.contentMetadata)==null?void 0:v.document)??e,t);const m=h.map(k=>{var _;const S=(_=k==null?void 0:k.contentMetadata)==null?void 0:_.document;if(!S)return k;const $=Ql(S),w=es($);return{...k,contentMetadata:{...k.contentMetadata??{},document:w}}}),{html:b}=Q2(m,{rootBlockId:t.rootBlockId,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,isBanner:t.isBanner,seo:t.seo,wrapInDocumentShell:u,seoTitle:(c==null?void 0:c.metaTitle)??(c==null?void 0:c.title)??(c==null?void 0:c.name),seoDescription:c==null?void 0:c.metaDescription,lang:t.lang??(c==null?void 0:c.lang),extraHead:p??(c==null?void 0:c.head)??"",extraBodyBottom:d??(c==null?void 0:c.bodyBottom)??""});return b}async function lw(e){const{baseUrl:t,tenantId:n,templateId:o,isGlobal:a=!1}=e,i=t.replace(/\/+$/,""),r=ts(e),l=a?`${i}/global-template/${o}`:`${i}/tenant/${n}/template/${o}`,s=a?{"Content-Type":"application/json"}:ns(e),c=await os(l,{method:"GET",headers:s},r);if(c.ok)return c.body;throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${l} → ${c.status}${c.text?`: ${c.text}`:""}`)}function sw(e,t){if(!t)return e;const n=new Map;for(const a of e)a!=null&&a.id&&n.set(a.id,a);if(Array.isArray(t)){for(const a of t){if(!(a!=null&&a.id))continue;const r={...n.get(a.id)??{id:a.id,name:a.id,type:"text"},...a};n.set(a.id,r)}return Array.from(n.values())}const o=Object.entries(t).filter(([,a])=>a!=null);if(o.length===0)return e;for(const[a,i]of o){const r=String(i),l=n.get(a);l?n.set(a,{...l,value:r}):n.set(a,{id:a,name:a,type:"text",value:r})}return Array.from(n.values())}async function cw(e,t){const n=await lw(t),o=tw(n)??(e&&Object.keys(e).length>0?e:null);if(!o)return"";const a=ew(n),i=sw(a,t.variables),r=Wl(o,i);return Ha(r,t)}function uw(e,t){return ow(t)?cw(e,t):nw(t)?iw(e,t):Ha(e,t)}exports.Reader=sn;exports.ReaderBlock=ve;exports.ReaderBlockSchema=Jl;exports.ReaderDocumentSchema=N2;exports.renderToStaticHtml=uw;exports.renderToStaticMarkup=Da;
|