pagepilot-visual-editor 1.0.41 → 1.0.43
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/babel-BQODqR2n.js +7218 -0
- package/dist/babel-DWji6wpD.cjs +16 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/VariableLinkHint.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/sanitizeAgainstSchema.d.ts +5 -3
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/variableEditActions.d.ts +2 -0
- package/dist/editor-sample/App/TemplatePanel/hooks/index.d.ts +1 -0
- package/dist/editor-sample/App/TemplatePanel/hooks/useClearHoverOnCanvasScroll.d.ts +1 -0
- package/dist/editor-sample/App/TemplatePanel/hooks/useDragSelection.d.ts +1 -2
- package/dist/editor-sample/App/hooks/page/useSaveHandler.d.ts +2 -1
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/DividerButton.styles.d.ts +4 -0
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.styles.d.ts +2 -0
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/TuneMenu.d.ts +4 -2
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/TuneMenu.styles.d.ts +1 -5
- package/dist/editor-sample/documents/editor/canvasScrollActivity.d.ts +5 -0
- package/dist/editor-sample/documents/editor/core.d.ts +199 -0
- package/dist/editor-sample/documents/editor/templateVariables.d.ts +6 -0
- package/dist/editor-sample/utils/rafThrottle.d.ts +4 -0
- package/dist/email-builder-core/blocks/EmailLayout/layoutType.d.ts +5 -0
- package/dist/estree-D0rbR2Tn.js +4824 -0
- package/dist/estree-DyF2pmOB.cjs +44 -0
- package/dist/{index-xCACDRV-.js → index-BUtnK58L.js} +1 -1
- package/dist/index-C-4OVLjk.cjs +1493 -0
- package/dist/{index-BVRFBf4A.cjs → index-DEnWBBqj.cjs} +1 -1
- package/dist/index-DvEcR48I.js +106322 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/render.cjs +70 -70
- package/dist/render.js +2035 -2029
- package/dist/{xlsx-DW2XG0Vs.cjs → xlsx-BsoVkcdE.cjs} +1 -1
- package/dist/{xlsx-QDrfGy9O.js → xlsx-D_Hwvvx2.js} +1 -1
- package/package.json +1 -1
- package/dist/index-D6uaGE9o.cjs +0 -1557
- package/dist/index-kjXqGRCj.js +0 -166284
package/dist/render.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";var Nd=Object.defineProperty;var Md=(e,t,n)=>t in e?Nd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var we=(e,t,n)=>Md(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),Pd=require("react-dom/server"),U=require("react");var Ki;function N(e,t,n){function r(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:i,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);const u=i.prototype,c=Object.keys(u);for(let h=0;h<c.length;h++){const d=c[h];d in l||(l[d]=u[d].bind(l))}}const o=(n==null?void 0:n.Parent)??Object;class a extends o{}Object.defineProperty(a,"name",{value:e});function i(l){var s;const u=n!=null&&n.Parent?new a:this;r(u,l),(s=u._zod).deferred??(s.deferred=[]);for(const c of u._zod.deferred)c();return u}return Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:l=>{var s,u;return n!=null&&n.Parent&&l instanceof n.Parent?!0:(u=(s=l==null?void 0:l._zod)==null?void 0:s.traits)==null?void 0:u.has(e)}}),Object.defineProperty(i,"name",{value:e}),i}class Sn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ic extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Ki=globalThis).__zod_globalConfig??(Ki.__zod_globalConfig={});const ai=globalThis.__zod_globalConfig;function Pt(e){return ai}function lc(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function ua(e,t){return typeof t=="bigint"?t.toString():t}function lo(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function ii(e){return e==null}function li(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Od(e,t){const n=e/t,r=Math.round(n),o=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}const Ji=Symbol("evaluating");function de(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Ji)return r===void 0&&(r=Ji,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function an(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ut(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Xi(e){return JSON.stringify(e)}function Ld(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const sc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Kn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const zd=lo(()=>{var e;if(ai.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 Cn(e){if(Kn(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Kn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function cc(e){return Cn(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const jd=new Set(["string","number","symbol"]);function An(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Zt(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}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 Bd(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Dd={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 Fd(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const a=Ut(e._zod.def,{get shape(){const i={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(i[l]=n.shape[l])}return an(this,"shape",i),i},checks:[]});return Zt(e,a)}function Hd(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const a=Ut(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete i[l]}return an(this,"shape",i),i},checks:[]});return Zt(e,a)}function Gd(e,t){if(!Cn(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const a=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(a,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=Ut(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return an(this,"shape",a),a}});return Zt(e,o)}function Wd(e,t){if(!Cn(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Ut(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return an(this,"shape",r),r}});return Zt(e,n)}function Ud(e,t){var r;if((r=e._zod.def.checks)!=null&&r.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=Ut(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t._zod.def.shape};return an(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Zt(e,n)}function Zd(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const i=Ut(t._zod.def,{get shape(){const l=t._zod.def.shape,s={...l};if(n)for(const u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(s[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(const u in l)s[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return an(this,"shape",s),s},checks:[]});return Zt(t,i)}function qd(e,t,n){const r=Ut(t._zod.def,{get shape(){const o=t._zod.def.shape,a={...o};if(n)for(const i in n){if(!(i in a))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(a[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(const i in o)a[i]=new e({type:"nonoptional",innerType:o[i]});return an(this,"shape",a),a}});return Zt(t,r)}function vn(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function Vd(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)===!1)return!0;return!1}function Ht(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function gr(e){return typeof e=="string"?e:e==null?void 0:e.message}function Ot(e,t,n){var s,u,c,h,d,f;const r=e.message?e.message:gr((c=(u=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:u.error)==null?void 0:c.call(u,e))??gr((h=t==null?void 0:t.error)==null?void 0:h.call(t,e))??gr((d=n.customError)==null?void 0:d.call(n,e))??gr((f=n.localeError)==null?void 0:f.call(n,e))??"Invalid input",{inst:o,continue:a,input:i,...l}=e;return l.path??(l.path=[]),l.message=r,t!=null&&t.reportInput&&(l.input=i),l}function si(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Jn(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const uc=(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,ua,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},dc=N("$ZodError",uc),hc=N("$ZodError",uc,{Parent:Error});function Yd(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function Kd(e,t=n=>n.message){const n={_errors:[]},r=(o,a=[])=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(l=>r({issues:l},[...a,...i.path]));else if(i.code==="invalid_key")r({issues:i.issues},[...a,...i.path]);else if(i.code==="invalid_element")r({issues:i.issues},[...a,...i.path]);else{const l=[...a,...i.path];if(l.length===0)n._errors.push(t(i));else{let s=n,u=0;for(;u<l.length;){const c=l[u];u===l.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(i))):s[c]=s[c]||{_errors:[]},s=s[c],u++}}}};return r(e),n}const ci=e=>(t,n,r,o)=>{const a=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise)throw new Sn;if(i.issues.length){const l=new((o==null?void 0:o.Err)??e)(i.issues.map(s=>Ot(s,a,Pt())));throw sc(l,o==null?void 0:o.callee),l}return i.value},ui=e=>async(t,n,r,o)=>{const a=r?{...r,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise&&(i=await i),i.issues.length){const l=new((o==null?void 0:o.Err)??e)(i.issues.map(s=>Ot(s,a,Pt())));throw sc(l,o==null?void 0:o.callee),l}return i.value},so=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Sn;return a.issues.length?{success:!1,error:new(e??dc)(a.issues.map(i=>Ot(i,o,Pt())))}:{success:!0,data:a.value}},Jd=so(hc),co=e=>async(t,n,r)=>{const o=r?{...r,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},o);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(i=>Ot(i,o,Pt())))}:{success:!0,data:a.value}},Xd=co(hc),Qd=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return ci(e)(t,n,o)},eh=e=>(t,n,r)=>ci(e)(t,n,r),th=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return ui(e)(t,n,o)},nh=e=>async(t,n,r)=>ui(e)(t,n,r),rh=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return so(e)(t,n,o)},oh=e=>(t,n,r)=>so(e)(t,n,r),ah=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return co(e)(t,n,o)},ih=e=>async(t,n,r)=>co(e)(t,n,r),lh=/^[cC][0-9a-z]{6,}$/,sh=/^[0-9a-z]+$/,ch=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,uh=/^[0-9a-vA-V]{20}$/,dh=/^[A-Za-z0-9]{27}$/,hh=/^[a-zA-Z0-9_-]{21}$/,fh=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ph=/^([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})$/,Qi=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)$/,gh=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,mh="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function bh(){return new RegExp(mh,"u")}const xh=/^(?:(?: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])$/,vh=/^(([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}|:))$/,kh=/^((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])$/,wh=/^(([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])$/,Sh=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,fc=/^[A-Za-z0-9_-]*$/,$h=/^https?$/,_h=/^\+[1-9]\d{6,14}$/,pc="(?:(?:\\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])))",Ch=new RegExp(`^${pc}$`);function gc(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 Ah(e){return new RegExp(`^${gc(e)}$`)}function yh(e){const t=gc({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${pc}T(?:${r})$`)}const Ih=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}$`)},Rh=/^-?\d+$/,mc=/^-?\d+(?:\.\d+)?$/,Th=/^(?:true|false)$/i,Eh=/^[^A-Z]*$/,Nh=/^[^a-z]*$/,nt=N("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),bc={number:"number",bigint:"bigint",object:"date"},xc=N("$ZodCheckLessThan",(e,t)=>{nt.init(e,t);const n=bc[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,a=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),vc=N("$ZodCheckGreaterThan",(e,t)=>{nt.init(e,t);const n=bc[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,a=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Mh=N("$ZodCheckMultipleOf",(e,t)=>{nt.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.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):Od(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})}}),Ph=N("$ZodCheckNumberFormat",(e,t)=>{var i;nt.init(e,t),t.format=t.format||"float64";const n=(i=t.format)==null?void 0:i.includes("int"),r=n?"int":"number",[o,a]=Dd[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=o,s.maximum=a,n&&(s.pattern=Rh)}),e._zod.check=l=>{const s=l.value;if(n){if(!Number.isInteger(s)){l.issues.push({expected:r,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:r,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:r,inclusive:!0,continue:!t.abort});return}}s<o&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),s>a&&l.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Oh=N("$ZodCheckMaxLength",(e,t)=>{var n;nt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!ii(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const i=si(o);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Lh=N("$ZodCheckMinLength",(e,t)=>{var n;nt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!ii(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const i=si(o);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),zh=N("$ZodCheckLengthEquals",(e,t)=>{var n;nt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!ii(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,a=o.length;if(a===t.length)return;const i=si(o),l=a>t.length;r.issues.push({origin:i,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),uo=N("$ZodCheckStringFormat",(e,t)=>{var n,r;nt.init(e,t),e._zod.onattach.push(o=>{const a=o._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),jh=N("$ZodCheckRegex",(e,t)=>{uo.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})}}),Bh=N("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Eh),uo.init(e,t)}),Dh=N("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Nh),uo.init(e,t)}),Fh=N("$ZodCheckIncludes",(e,t)=>{nt.init(e,t);const n=An(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Hh=N("$ZodCheckStartsWith",(e,t)=>{nt.init(e,t);const n=new RegExp(`^${An(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Gh=N("$ZodCheckEndsWith",(e,t)=>{nt.init(e,t);const n=new RegExp(`.*${An(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Wh=N("$ZodCheckOverwrite",(e,t)=>{nt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Uh{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 r=t.split(`
|
|
1
|
+
"use strict";var Pd=Object.defineProperty;var Ld=(e,t,n)=>t in e?Pd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var we=(e,t,n)=>Ld(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),Od=require("react-dom/server"),U=require("react");var Ki;function N(e,t,n){function r(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:i,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);const u=i.prototype,c=Object.keys(u);for(let h=0;h<c.length;h++){const d=c[h];d in l||(l[d]=u[d].bind(l))}}const o=(n==null?void 0:n.Parent)??Object;class a extends o{}Object.defineProperty(a,"name",{value:e});function i(l){var s;const u=n!=null&&n.Parent?new a:this;r(u,l),(s=u._zod).deferred??(s.deferred=[]);for(const c of u._zod.deferred)c();return u}return Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:l=>{var s,u;return n!=null&&n.Parent&&l instanceof n.Parent?!0:(u=(s=l==null?void 0:l._zod)==null?void 0:s.traits)==null?void 0:u.has(e)}}),Object.defineProperty(i,"name",{value:e}),i}class Sn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class sc extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Ki=globalThis).__zod_globalConfig??(Ki.__zod_globalConfig={});const ai=globalThis.__zod_globalConfig;function Pt(e){return ai}function cc(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function ua(e,t){return typeof t=="bigint"?t.toString():t}function lo(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function ii(e){return e==null}function li(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function zd(e,t){const n=e/t,r=Math.round(n),o=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}const Ji=Symbol("evaluating");function de(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Ji)return r===void 0&&(r=Ji,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function an(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ut(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Xi(e){return JSON.stringify(e)}function jd(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const uc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Kn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Bd=lo(()=>{var e;if(ai.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 Cn(e){if(Kn(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Kn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function dc(e){return Cn(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Dd=new Set(["string","number","symbol"]);function An(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Zt(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}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 Fd(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Hd={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 Gd(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const a=Ut(e._zod.def,{get shape(){const i={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(i[l]=n.shape[l])}return an(this,"shape",i),i},checks:[]});return Zt(e,a)}function Wd(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const a=Ut(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete i[l]}return an(this,"shape",i),i},checks:[]});return Zt(e,a)}function Ud(e,t){if(!Cn(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const a=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(a,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=Ut(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return an(this,"shape",a),a}});return Zt(e,o)}function Zd(e,t){if(!Cn(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Ut(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return an(this,"shape",r),r}});return Zt(e,n)}function qd(e,t){var r;if((r=e._zod.def.checks)!=null&&r.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=Ut(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t._zod.def.shape};return an(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Zt(e,n)}function Vd(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const i=Ut(t._zod.def,{get shape(){const l=t._zod.def.shape,s={...l};if(n)for(const u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(s[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(const u in l)s[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return an(this,"shape",s),s},checks:[]});return Zt(t,i)}function Yd(e,t,n){const r=Ut(t._zod.def,{get shape(){const o=t._zod.def.shape,a={...o};if(n)for(const i in n){if(!(i in a))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(a[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(const i in o)a[i]=new e({type:"nonoptional",innerType:o[i]});return an(this,"shape",a),a}});return Zt(t,r)}function vn(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function Kd(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)===!1)return!0;return!1}function Ht(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function gr(e){return typeof e=="string"?e:e==null?void 0:e.message}function Lt(e,t,n){var s,u,c,h,d,f;const r=e.message?e.message:gr((c=(u=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:u.error)==null?void 0:c.call(u,e))??gr((h=t==null?void 0:t.error)==null?void 0:h.call(t,e))??gr((d=n.customError)==null?void 0:d.call(n,e))??gr((f=n.localeError)==null?void 0:f.call(n,e))??"Invalid input",{inst:o,continue:a,input:i,...l}=e;return l.path??(l.path=[]),l.message=r,t!=null&&t.reportInput&&(l.input=i),l}function si(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Jn(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const hc=(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,ua,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},fc=N("$ZodError",hc),pc=N("$ZodError",hc,{Parent:Error});function Jd(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function Xd(e,t=n=>n.message){const n={_errors:[]},r=(o,a=[])=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(l=>r({issues:l},[...a,...i.path]));else if(i.code==="invalid_key")r({issues:i.issues},[...a,...i.path]);else if(i.code==="invalid_element")r({issues:i.issues},[...a,...i.path]);else{const l=[...a,...i.path];if(l.length===0)n._errors.push(t(i));else{let s=n,u=0;for(;u<l.length;){const c=l[u];u===l.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(i))):s[c]=s[c]||{_errors:[]},s=s[c],u++}}}};return r(e),n}const ci=e=>(t,n,r,o)=>{const a=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise)throw new Sn;if(i.issues.length){const l=new((o==null?void 0:o.Err)??e)(i.issues.map(s=>Lt(s,a,Pt())));throw uc(l,o==null?void 0:o.callee),l}return i.value},ui=e=>async(t,n,r,o)=>{const a=r?{...r,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise&&(i=await i),i.issues.length){const l=new((o==null?void 0:o.Err)??e)(i.issues.map(s=>Lt(s,a,Pt())));throw uc(l,o==null?void 0:o.callee),l}return i.value},so=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Sn;return a.issues.length?{success:!1,error:new(e??fc)(a.issues.map(i=>Lt(i,o,Pt())))}:{success:!0,data:a.value}},Qd=so(pc),co=e=>async(t,n,r)=>{const o=r?{...r,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},o);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(i=>Lt(i,o,Pt())))}:{success:!0,data:a.value}},eh=co(pc),th=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return ci(e)(t,n,o)},nh=e=>(t,n,r)=>ci(e)(t,n,r),rh=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return ui(e)(t,n,o)},oh=e=>async(t,n,r)=>ui(e)(t,n,r),ah=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return so(e)(t,n,o)},ih=e=>(t,n,r)=>so(e)(t,n,r),lh=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return co(e)(t,n,o)},sh=e=>async(t,n,r)=>co(e)(t,n,r),ch=/^[cC][0-9a-z]{6,}$/,uh=/^[0-9a-z]+$/,dh=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,hh=/^[0-9a-vA-V]{20}$/,fh=/^[A-Za-z0-9]{27}$/,ph=/^[a-zA-Z0-9_-]{21}$/,gh=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,mh=/^([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})$/,Qi=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)$/,bh=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,xh="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function vh(){return new RegExp(xh,"u")}const kh=/^(?:(?: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])$/,wh=/^(([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}|:))$/,Sh=/^((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])$/,$h=/^(([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])$/,_h=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,gc=/^[A-Za-z0-9_-]*$/,Ch=/^https?$/,Ah=/^\+[1-9]\d{6,14}$/,mc="(?:(?:\\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])))",yh=new RegExp(`^${mc}$`);function bc(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 Ih(e){return new RegExp(`^${bc(e)}$`)}function Rh(e){const t=bc({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${mc}T(?:${r})$`)}const Th=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}$`)},Eh=/^-?\d+$/,xc=/^-?\d+(?:\.\d+)?$/,Nh=/^(?:true|false)$/i,Mh=/^[^A-Z]*$/,Ph=/^[^a-z]*$/,nt=N("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),vc={number:"number",bigint:"bigint",object:"date"},kc=N("$ZodCheckLessThan",(e,t)=>{nt.init(e,t);const n=vc[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,a=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),wc=N("$ZodCheckGreaterThan",(e,t)=>{nt.init(e,t);const n=vc[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,a=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Lh=N("$ZodCheckMultipleOf",(e,t)=>{nt.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.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):zd(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})}}),Oh=N("$ZodCheckNumberFormat",(e,t)=>{var i;nt.init(e,t),t.format=t.format||"float64";const n=(i=t.format)==null?void 0:i.includes("int"),r=n?"int":"number",[o,a]=Hd[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=o,s.maximum=a,n&&(s.pattern=Eh)}),e._zod.check=l=>{const s=l.value;if(n){if(!Number.isInteger(s)){l.issues.push({expected:r,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:r,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:r,inclusive:!0,continue:!t.abort});return}}s<o&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),s>a&&l.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),zh=N("$ZodCheckMaxLength",(e,t)=>{var n;nt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!ii(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const i=si(o);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),jh=N("$ZodCheckMinLength",(e,t)=>{var n;nt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!ii(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const i=si(o);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Bh=N("$ZodCheckLengthEquals",(e,t)=>{var n;nt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!ii(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,a=o.length;if(a===t.length)return;const i=si(o),l=a>t.length;r.issues.push({origin:i,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),uo=N("$ZodCheckStringFormat",(e,t)=>{var n,r;nt.init(e,t),e._zod.onattach.push(o=>{const a=o._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Dh=N("$ZodCheckRegex",(e,t)=>{uo.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})}}),Fh=N("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Mh),uo.init(e,t)}),Hh=N("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ph),uo.init(e,t)}),Gh=N("$ZodCheckIncludes",(e,t)=>{nt.init(e,t);const n=An(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Wh=N("$ZodCheckStartsWith",(e,t)=>{nt.init(e,t);const n=new RegExp(`^${An(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Uh=N("$ZodCheckEndsWith",(e,t)=>{nt.init(e,t);const n=new RegExp(`.*${An(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Zh=N("$ZodCheckOverwrite",(e,t)=>{nt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class qh{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 r=t.split(`
|
|
2
2
|
`).filter(i=>i),o=Math.min(...r.map(i=>i.length-i.trimStart().length)),a=r.map(i=>i.slice(o)).map(i=>" ".repeat(this.indent*2)+i);for(const i of a)this.content.push(i)}compile(){const t=Function,n=this==null?void 0:this.args,o=[...((this==null?void 0:this.content)??[""]).map(a=>` ${a}`)];return new t(...n,o.join(`
|
|
3
|
-
`))}}const Zh={major:4,minor:4,patch:3},$e=N("$ZodType",(e,t)=>{var o;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Zh;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const a of r)for(const i of a._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(o=e._zod.deferred)==null||o.push(()=>{e._zod.run=e._zod.parse});else{const a=(l,s,u)=>{let c=vn(l),h;for(const d of s){if(d._zod.def.when){if(Vd(l)||!d._zod.def.when(l))continue}else if(c)continue;const f=l.issues.length,p=d._zod.check(l);if(p instanceof Promise&&(u==null?void 0:u.async)===!1)throw new Sn;if(h||p instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await p,l.issues.length!==f&&(c||(c=vn(l,f)))});else{if(l.issues.length===f)continue;c||(c=vn(l,f))}}return h?h.then(()=>l):l},i=(l,s,u)=>{if(vn(l))return l.aborted=!0,l;const c=a(s,r,u);if(c instanceof Promise){if(u.async===!1)throw new Sn;return c.then(h=>e._zod.parse(h,u))}return e._zod.parse(c,u)};e._zod.run=(l,s)=>{if(s.skipChecks)return e._zod.parse(l,s);if(s.direction==="backward"){const c=e._zod.parse({value:l.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(h=>i(h,l,s)):i(c,l,s)}const u=e._zod.parse(l,s);if(u instanceof Promise){if(s.async===!1)throw new Sn;return u.then(c=>a(c,r,s))}return a(u,r,s)}}de(e,"~standard",()=>({validate:a=>{var i;try{const l=Jd(e,a);return l.success?{value:l.data}:{issues:(i=l.error)==null?void 0:i.issues}}catch{return Xd(e,a).then(s=>{var u;return s.success?{value:s.data}:{issues:(u=s.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}))}),di=N("$ZodString",(e,t)=>{var n;$e.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Ih(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Re=N("$ZodStringFormat",(e,t)=>{uo.init(e,t),di.init(e,t)}),qh=N("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ph),Re.init(e,t)}),Vh=N("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Qi(r))}else t.pattern??(t.pattern=Qi());Re.init(e,t)}),Yh=N("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=gh),Re.init(e,t)}),Kh=N("$ZodURL",(e,t)=>{Re.init(e,t),e._zod.check=n=>{var r;try{const o=n.value.trim();if(!t.normalize&&((r=t.protocol)==null?void 0:r.source)===$h.source&&!/^https?:\/\//i.test(o)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const a=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.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(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.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=a.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Jh=N("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=bh()),Re.init(e,t)}),Xh=N("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=hh),Re.init(e,t)}),Qh=N("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=lh),Re.init(e,t)}),ef=N("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=sh),Re.init(e,t)}),tf=N("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ch),Re.init(e,t)}),nf=N("$ZodXID",(e,t)=>{t.pattern??(t.pattern=uh),Re.init(e,t)}),rf=N("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=dh),Re.init(e,t)}),of=N("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=yh(t)),Re.init(e,t)}),af=N("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Ch),Re.init(e,t)}),lf=N("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Ah(t)),Re.init(e,t)}),sf=N("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=fh),Re.init(e,t)}),cf=N("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=xh),Re.init(e,t),e._zod.bag.format="ipv4"}),uf=N("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=vh),Re.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})}}}),df=N("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=kh),Re.init(e,t)}),hf=N("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=wh),Re.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,a]=r;if(!a)throw new Error;const i=Number(a);if(`${i}`!==a)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function kc(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const ff=N("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Sh),Re.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{kc(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function pf(e){if(!fc.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return kc(n)}const gf=N("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=fc),Re.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{pf(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),mf=N("$ZodE164",(e,t)=>{t.pattern??(t.pattern=_h),Re.init(e,t)});function bf(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const xf=N("$ZodJWT",(e,t)=>{Re.init(e,t),e._zod.check=n=>{bf(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),wc=N("$ZodNumber",(e,t)=>{$e.init(e,t),e._zod.pattern=e._zod.bag.pattern??mc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const a=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...a?{received:a}:{}}),n}}),vf=N("$ZodNumberFormat",(e,t)=>{Ph.init(e,t),wc.init(e,t)}),kf=N("$ZodBoolean",(e,t)=>{$e.init(e,t),e._zod.pattern=Th,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),wf=N("$ZodAny",(e,t)=>{$e.init(e,t),e._zod.parse=n=>n}),Sf=N("$ZodUnknown",(e,t)=>{$e.init(e,t),e._zod.parse=n=>n}),$f=N("$ZodNever",(e,t)=>{$e.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function el(e,t,n){e.issues.length&&t.issues.push(...Ht(n,e.issues)),t.value[n]=e.value}const _f=N("$ZodArray",(e,t)=>{$e.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const a=[];for(let i=0;i<o.length;i++){const l=o[i],s=t.element._zod.run({value:l,issues:[]},r);s instanceof Promise?a.push(s.then(u=>el(u,n,i))):el(s,n,i)}return a.length?Promise.all(a).then(()=>n):n}});function Hr(e,t,n,r,o,a){const i=n in r;if(e.issues.length){if(o&&a&&!i)return;t.issues.push(...Ht(n,e.issues))}if(!i&&!o){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?i&&(t.value[n]=void 0):t.value[n]=e.value}function Sc(e){var r,o,a,i;const t=Object.keys(e.shape);for(const l of t)if(!((i=(a=(o=(r=e.shape)==null?void 0:r[l])==null?void 0:o._zod)==null?void 0:a.traits)!=null&&i.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=Bd(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function $c(e,t,n,r,o,a){const i=[],l=o.keySet,s=o.catchall._zod,u=s.def.type,c=s.optin==="optional",h=s.optout==="optional";for(const d in t){if(d==="__proto__"||l.has(d))continue;if(u==="never"){i.push(d);continue}const f=s.run({value:t[d],issues:[]},r);f instanceof Promise?e.push(f.then(p=>Hr(p,n,d,t,c,h))):Hr(f,n,d,t,c,h)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const Cf=N("$ZodObject",(e,t)=>{$e.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 r=lo(()=>Sc(t));de(e._zod,"propValues",()=>{const l=t.shape,s={};for(const u in l){const c=l[u]._zod;if(c.values){s[u]??(s[u]=new Set);for(const h of c.values)s[u].add(h)}}return s});const o=Kn,a=t.catchall;let i;e._zod.parse=(l,s)=>{i??(i=r.value);const u=l.value;if(!o(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};const c=[],h=i.shape;for(const d of i.keys){const f=h[d],p=f._zod.optin==="optional",b=f._zod.optout==="optional",x=f._zod.run({value:u[d],issues:[]},s);x instanceof Promise?c.push(x.then(w=>Hr(w,l,d,u,p,b))):Hr(x,l,d,u,p,b)}return a?$c(c,u,l,s,r.value,e):c.length?Promise.all(c).then(()=>l):l}}),Af=N("$ZodObjectJIT",(e,t)=>{Cf.init(e,t);const n=e._zod.parse,r=lo(()=>Sc(t)),o=d=>{var S,v;const f=new Uh(["shape","payload","ctx"]),p=r.value,b=_=>{const y=Xi(_);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};f.write("const input = payload.value;");const x=Object.create(null);let w=0;for(const _ of p.keys)x[_]=`key_${w++}`;f.write("const newResult = {};");for(const _ of p.keys){const y=x[_],C=Xi(_),I=d[_],R=((S=I==null?void 0:I._zod)==null?void 0:S.optin)==="optional",E=((v=I==null?void 0:I._zod)==null?void 0:v.optout)==="optional";f.write(`const ${y} = ${b(_)};`),R&&E?f.write(`
|
|
3
|
+
`))}}const Vh={major:4,minor:4,patch:3},$e=N("$ZodType",(e,t)=>{var o;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Vh;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const a of r)for(const i of a._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(o=e._zod.deferred)==null||o.push(()=>{e._zod.run=e._zod.parse});else{const a=(l,s,u)=>{let c=vn(l),h;for(const d of s){if(d._zod.def.when){if(Kd(l)||!d._zod.def.when(l))continue}else if(c)continue;const f=l.issues.length,p=d._zod.check(l);if(p instanceof Promise&&(u==null?void 0:u.async)===!1)throw new Sn;if(h||p instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await p,l.issues.length!==f&&(c||(c=vn(l,f)))});else{if(l.issues.length===f)continue;c||(c=vn(l,f))}}return h?h.then(()=>l):l},i=(l,s,u)=>{if(vn(l))return l.aborted=!0,l;const c=a(s,r,u);if(c instanceof Promise){if(u.async===!1)throw new Sn;return c.then(h=>e._zod.parse(h,u))}return e._zod.parse(c,u)};e._zod.run=(l,s)=>{if(s.skipChecks)return e._zod.parse(l,s);if(s.direction==="backward"){const c=e._zod.parse({value:l.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(h=>i(h,l,s)):i(c,l,s)}const u=e._zod.parse(l,s);if(u instanceof Promise){if(s.async===!1)throw new Sn;return u.then(c=>a(c,r,s))}return a(u,r,s)}}de(e,"~standard",()=>({validate:a=>{var i;try{const l=Qd(e,a);return l.success?{value:l.data}:{issues:(i=l.error)==null?void 0:i.issues}}catch{return eh(e,a).then(s=>{var u;return s.success?{value:s.data}:{issues:(u=s.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}))}),di=N("$ZodString",(e,t)=>{var n;$e.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Th(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Re=N("$ZodStringFormat",(e,t)=>{uo.init(e,t),di.init(e,t)}),Yh=N("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=mh),Re.init(e,t)}),Kh=N("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Qi(r))}else t.pattern??(t.pattern=Qi());Re.init(e,t)}),Jh=N("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=bh),Re.init(e,t)}),Xh=N("$ZodURL",(e,t)=>{Re.init(e,t),e._zod.check=n=>{var r;try{const o=n.value.trim();if(!t.normalize&&((r=t.protocol)==null?void 0:r.source)===Ch.source&&!/^https?:\/\//i.test(o)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const a=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.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(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.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=a.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Qh=N("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=vh()),Re.init(e,t)}),ef=N("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=ph),Re.init(e,t)}),tf=N("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=ch),Re.init(e,t)}),nf=N("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=uh),Re.init(e,t)}),rf=N("$ZodULID",(e,t)=>{t.pattern??(t.pattern=dh),Re.init(e,t)}),of=N("$ZodXID",(e,t)=>{t.pattern??(t.pattern=hh),Re.init(e,t)}),af=N("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=fh),Re.init(e,t)}),lf=N("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Rh(t)),Re.init(e,t)}),sf=N("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=yh),Re.init(e,t)}),cf=N("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Ih(t)),Re.init(e,t)}),uf=N("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=gh),Re.init(e,t)}),df=N("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=kh),Re.init(e,t),e._zod.bag.format="ipv4"}),hf=N("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=wh),Re.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})}}}),ff=N("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Sh),Re.init(e,t)}),pf=N("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=$h),Re.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,a]=r;if(!a)throw new Error;const i=Number(a);if(`${i}`!==a)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Sc(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const gf=N("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=_h),Re.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Sc(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function mf(e){if(!gc.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Sc(n)}const bf=N("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=gc),Re.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{mf(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),xf=N("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Ah),Re.init(e,t)});function vf(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const kf=N("$ZodJWT",(e,t)=>{Re.init(e,t),e._zod.check=n=>{vf(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),$c=N("$ZodNumber",(e,t)=>{$e.init(e,t),e._zod.pattern=e._zod.bag.pattern??xc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const a=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...a?{received:a}:{}}),n}}),wf=N("$ZodNumberFormat",(e,t)=>{Oh.init(e,t),$c.init(e,t)}),Sf=N("$ZodBoolean",(e,t)=>{$e.init(e,t),e._zod.pattern=Nh,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),$f=N("$ZodAny",(e,t)=>{$e.init(e,t),e._zod.parse=n=>n}),_f=N("$ZodUnknown",(e,t)=>{$e.init(e,t),e._zod.parse=n=>n}),Cf=N("$ZodNever",(e,t)=>{$e.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function el(e,t,n){e.issues.length&&t.issues.push(...Ht(n,e.issues)),t.value[n]=e.value}const Af=N("$ZodArray",(e,t)=>{$e.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const a=[];for(let i=0;i<o.length;i++){const l=o[i],s=t.element._zod.run({value:l,issues:[]},r);s instanceof Promise?a.push(s.then(u=>el(u,n,i))):el(s,n,i)}return a.length?Promise.all(a).then(()=>n):n}});function Hr(e,t,n,r,o,a){const i=n in r;if(e.issues.length){if(o&&a&&!i)return;t.issues.push(...Ht(n,e.issues))}if(!i&&!o){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?i&&(t.value[n]=void 0):t.value[n]=e.value}function _c(e){var r,o,a,i;const t=Object.keys(e.shape);for(const l of t)if(!((i=(a=(o=(r=e.shape)==null?void 0:r[l])==null?void 0:o._zod)==null?void 0:a.traits)!=null&&i.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=Fd(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Cc(e,t,n,r,o,a){const i=[],l=o.keySet,s=o.catchall._zod,u=s.def.type,c=s.optin==="optional",h=s.optout==="optional";for(const d in t){if(d==="__proto__"||l.has(d))continue;if(u==="never"){i.push(d);continue}const f=s.run({value:t[d],issues:[]},r);f instanceof Promise?e.push(f.then(p=>Hr(p,n,d,t,c,h))):Hr(f,n,d,t,c,h)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const yf=N("$ZodObject",(e,t)=>{$e.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 r=lo(()=>_c(t));de(e._zod,"propValues",()=>{const l=t.shape,s={};for(const u in l){const c=l[u]._zod;if(c.values){s[u]??(s[u]=new Set);for(const h of c.values)s[u].add(h)}}return s});const o=Kn,a=t.catchall;let i;e._zod.parse=(l,s)=>{i??(i=r.value);const u=l.value;if(!o(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};const c=[],h=i.shape;for(const d of i.keys){const f=h[d],p=f._zod.optin==="optional",b=f._zod.optout==="optional",x=f._zod.run({value:u[d],issues:[]},s);x instanceof Promise?c.push(x.then(w=>Hr(w,l,d,u,p,b))):Hr(x,l,d,u,p,b)}return a?Cc(c,u,l,s,r.value,e):c.length?Promise.all(c).then(()=>l):l}}),If=N("$ZodObjectJIT",(e,t)=>{yf.init(e,t);const n=e._zod.parse,r=lo(()=>_c(t)),o=d=>{var S,v;const f=new qh(["shape","payload","ctx"]),p=r.value,b=_=>{const y=Xi(_);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};f.write("const input = payload.value;");const x=Object.create(null);let w=0;for(const _ of p.keys)x[_]=`key_${w++}`;f.write("const newResult = {};");for(const _ of p.keys){const y=x[_],C=Xi(_),I=d[_],R=((S=I==null?void 0:I._zod)==null?void 0:S.optin)==="optional",E=((v=I==null?void 0:I._zod)==null?void 0:v.optout)==="optional";f.write(`const ${y} = ${b(_)};`),R&&E?f.write(`
|
|
4
4
|
if (${y}.issues.length) {
|
|
5
5
|
if (${C} in input) {
|
|
6
6
|
payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
|
|
@@ -59,41 +59,41 @@
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
`)}f.write("payload.value = newResult;"),f.write("return payload;");const k=f.compile();return(_,y)=>k(d,_,y)};let a;const i=Kn,l=!ai.jitless,u=l&&zd.value,c=t.catchall;let h;e._zod.parse=(d,f)=>{h??(h=r.value);const p=d.value;return i(p)?l&&u&&(f==null?void 0:f.async)===!1&&f.jitless!==!0?(a||(a=o(t.shape)),d=a(d,f),c?$c([],p,d,f,h,e):d):n(d,f):(d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d)}});function tl(e,t,n,r){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const o=e.filter(a=>!vn(a));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(a=>a.issues.map(i=>Ot(i,r,Pt())))}),t)}const _c=N("$ZodUnion",(e,t)=>{$e.init(e,t),de(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),de(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),de(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),de(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>li(o.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let a=!1;const i=[];for(const l of t.options){const s=l._zod.run({value:r.value,issues:[]},o);if(s instanceof Promise)i.push(s),a=!0;else{if(s.issues.length===0)return s;i.push(s)}}return a?Promise.all(i).then(l=>tl(l,r,e,o)):tl(i,r,e,o)}}),yf=N("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,_c.init(e,t);const n=e._zod.parse;de(e._zod,"propValues",()=>{const o={};for(const a of t.options){const i=a._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const[l,s]of Object.entries(i)){o[l]||(o[l]=new Set);for(const u of s)o[l].add(u)}}return o});const r=lo(()=>{var i;const o=t.options,a=new Map;for(const l of o){const s=(i=l._zod.propValues)==null?void 0:i[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const u of s){if(a.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);a.set(u,l)}}return a});e._zod.parse=(o,a)=>{const i=o.value;if(!Kn(i))return o.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),o;const l=r.value.get(i==null?void 0:i[t.discriminator]);return l?l._zod.run(o,a):t.unionFallback||a.direction==="backward"?n(o,a):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()),input:i,path:[t.discriminator],inst:e}),o)}}),If=N("$ZodIntersection",(e,t)=>{$e.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,a=t.left._zod.run({value:o,issues:[]},r),i=t.right._zod.run({value:o,issues:[]},r);return a instanceof Promise||i instanceof Promise?Promise.all([a,i]).then(([s,u])=>nl(n,s,u)):nl(n,a,i)}});function da(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(Cn(e)&&Cn(t)){const n=Object.keys(t),r=Object.keys(e).filter(a=>n.indexOf(a)!==-1),o={...e,...t};for(const a of r){const i=da(e[a],t[a]);if(!i.valid)return{valid:!1,mergeErrorPath:[a,...i.mergeErrorPath]};o[a]=i.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],a=t[r],i=da(o,a);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function nl(e,t,n){const r=new Map;let o;for(const l of t.issues)if(l.code==="unrecognized_keys"){o??(o=l);for(const s of l.keys)r.has(s)||r.set(s,{}),r.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)r.has(s)||r.set(s,{}),r.get(s).r=!0;else e.issues.push(l);const a=[...r].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(a.length&&o&&e.issues.push({...o,keys:a}),vn(e))return e;const i=da(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const Rf=N("$ZodTuple",(e,t)=>{$e.init(e,t);const n=t.items;e._zod.parse=(r,o)=>{const a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];const i=[],l=rl(n,"optin"),s=rl(n,"optout");if(!t.rest){if(a.length<l)return r.issues.push({code:"too_small",minimum:l,inclusive:!0,input:a,inst:e,origin:"array"}),r;a.length>n.length&&r.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:a,inst:e,origin:"array"})}const u=new Array(n.length);for(let c=0;c<n.length;c++){const h=n[c]._zod.run({value:a[c],issues:[]},o);h instanceof Promise?i.push(h.then(d=>{u[c]=d})):u[c]=h}if(t.rest){let c=n.length-1;const h=a.slice(n.length);for(const d of h){c++;const f=t.rest._zod.run({value:d,issues:[]},o);f instanceof Promise?i.push(f.then(p=>ol(p,r,c))):ol(f,r,c)}}return i.length?Promise.all(i).then(()=>al(u,r,n,a,s)):al(u,r,n,a,s)}});function rl(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function ol(e,t,n){e.issues.length&&t.issues.push(...Ht(n,e.issues)),t.value[n]=e.value}function al(e,t,n,r,o){for(let a=0;a<n.length;a++){const i=e[a],l=a<r.length;if(i.issues.length){if(!l&&a>=o){t.value.length=a;break}t.issues.push(...Ht(a,i.issues))}t.value[a]=i.value}for(let a=t.value.length-1;a>=r.length&&(n[a]._zod.optout==="optional"&&t.value[a]===void 0);a--)t.value.length=a;return t}const Tf=N("$ZodRecord",(e,t)=>{$e.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Cn(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const a=[],i=t.keyType._zod.values;if(i){n.value={};const l=new Set;for(const u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);const c=t.keyType._zod.run({value:u,issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(f=>Ot(f,r,Pt())),input:u,path:[u],inst:e});continue}const h=c.value,d=t.valueType._zod.run({value:o[u],issues:[]},r);d instanceof Promise?a.push(d.then(f=>{f.issues.length&&n.issues.push(...Ht(u,f.issues)),n.value[h]=f.value})):(d.issues.length&&n.issues.push(...Ht(u,d.issues)),n.value[h]=d.value)}let s;for(const u in o)l.has(u)||(s=s??[],s.push(u));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(o)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(o,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},r);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&mc.test(l)&&s.issues.length){const h=t.keyType._zod.run({value:Number(l),issues:[]},r);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(s=h)}if(s.issues.length){t.mode==="loose"?n.value[l]=o[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(h=>Ot(h,r,Pt())),input:l,path:[l],inst:e});continue}const c=t.valueType._zod.run({value:o[l],issues:[]},r);c instanceof Promise?a.push(c.then(h=>{h.issues.length&&n.issues.push(...Ht(l,h.issues)),n.value[s.value]=h.value})):(c.issues.length&&n.issues.push(...Ht(l,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Ef=N("$ZodEnum",(e,t)=>{$e.init(e,t);const n=lc(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>jd.has(typeof o)).map(o=>typeof o=="string"?An(o):o.toString()).join("|")})$`),e._zod.parse=(o,a)=>{const i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:n,input:i,inst:e}),o}}),Nf=N("$ZodLiteral",(e,t)=>{if($e.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(r=>typeof r=="string"?An(r):r?An(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,o)=>{const a=r.value;return n.has(a)||r.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),r}}),Mf=N("$ZodTransform",(e,t)=>{$e.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new ic(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(n.value=i,n.fallback=!0,n));if(o instanceof Promise)throw new Sn;return n.value=o,n.fallback=!0,n}});function il(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Cc=N("$ZodOptional",(e,t)=>{$e.init(e,t),e._zod.optin="optional",e._zod.optout="optional",de(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),de(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${li(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=n.value,a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(i=>il(i,o)):il(a,o)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Pf=N("$ZodExactOptional",(e,t)=>{Cc.init(e,t),de(e._zod,"values",()=>t.innerType._zod.values),de(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Of=N("$ZodNullable",(e,t)=>{$e.init(e,t),de(e._zod,"optin",()=>t.innerType._zod.optin),de(e._zod,"optout",()=>t.innerType._zod.optout),de(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${li(n.source)}|null)$`):void 0}),de(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Lf=N("$ZodDefault",(e,t)=>{$e.init(e,t),e._zod.optin="optional",de(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>ll(a,t)):ll(o,t)}});function ll(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const zf=N("$ZodPrefault",(e,t)=>{$e.init(e,t),e._zod.optin="optional",de(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),jf=N("$ZodNonOptional",(e,t)=>{$e.init(e,t),de(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>sl(a,e)):sl(o,e)}});function sl(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 Bf=N("$ZodCatch",(e,t)=>{$e.init(e,t),e._zod.optin="optional",de(e._zod,"optout",()=>t.innerType._zod.optout),de(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(i=>Ot(i,r,Pt()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>Ot(a,r,Pt()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Ac=N("$ZodPipe",(e,t)=>{$e.init(e,t),de(e._zod,"values",()=>t.in._zod.values),de(e._zod,"optin",()=>t.in._zod.optin),de(e._zod,"optout",()=>t.out._zod.optout),de(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const a=t.out._zod.run(n,r);return a instanceof Promise?a.then(i=>mr(i,t.in,r)):mr(a,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(a=>mr(a,t.out,r)):mr(o,t.out,r)}});function mr(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 Df=N("$ZodPreprocess",(e,t)=>{Ac.init(e,t)}),Ff=N("$ZodReadonly",(e,t)=>{$e.init(e,t),de(e._zod,"propValues",()=>t.innerType._zod.propValues),de(e._zod,"values",()=>t.innerType._zod.values),de(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),de(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(cl):cl(o)}});function cl(e){return e.value=Object.freeze(e.value),e}const Hf=N("$ZodLazy",(e,t)=>{$e.init(e,t),de(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),de(e._zod,"pattern",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.pattern}),de(e._zod,"propValues",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.propValues}),de(e._zod,"optin",()=>{var n,r;return((r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optin)??void 0}),de(e._zod,"optout",()=>{var n,r;return((r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optout)??void 0}),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),Gf=N("$ZodCustom",(e,t)=>{nt.init(e,t),$e.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(a=>ul(a,n,r,e));ul(o,n,r,e)}});function ul(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Jn(o))}}var dl;class Wf{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.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 r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Uf(){return new Wf}(dl=globalThis).__zod_globalRegistry??(dl.__zod_globalRegistry=Uf());const Gn=globalThis.__zod_globalRegistry;function Zf(e,t){return new e({type:"string",...Z(t)})}function qf(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Z(t)})}function hl(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Z(t)})}function Vf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Z(t)})}function Yf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Z(t)})}function Kf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Z(t)})}function Jf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Z(t)})}function Xf(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Z(t)})}function Qf(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Z(t)})}function ep(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Z(t)})}function tp(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Z(t)})}function np(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Z(t)})}function rp(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Z(t)})}function op(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Z(t)})}function ap(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Z(t)})}function ip(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Z(t)})}function lp(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Z(t)})}function sp(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Z(t)})}function cp(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Z(t)})}function up(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Z(t)})}function dp(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Z(t)})}function hp(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Z(t)})}function fp(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Z(t)})}function pp(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Z(t)})}function gp(e,t){return new e({type:"string",format:"date",check:"string_format",...Z(t)})}function mp(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Z(t)})}function bp(e,t){return new e({type:"string",format:"duration",check:"string_format",...Z(t)})}function xp(e,t){return new e({type:"number",checks:[],...Z(t)})}function vp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Z(t)})}function kp(e,t){return new e({type:"boolean",...Z(t)})}function wp(e){return new e({type:"any"})}function Sp(e){return new e({type:"unknown"})}function $p(e,t){return new e({type:"never",...Z(t)})}function fl(e,t){return new xc({check:"less_than",...Z(t),value:e,inclusive:!1})}function wo(e,t){return new xc({check:"less_than",...Z(t),value:e,inclusive:!0})}function pl(e,t){return new vc({check:"greater_than",...Z(t),value:e,inclusive:!1})}function So(e,t){return new vc({check:"greater_than",...Z(t),value:e,inclusive:!0})}function gl(e,t){return new Mh({check:"multiple_of",...Z(t),value:e})}function yc(e,t){return new Oh({check:"max_length",...Z(t),maximum:e})}function Gr(e,t){return new Lh({check:"min_length",...Z(t),minimum:e})}function Ic(e,t){return new zh({check:"length_equals",...Z(t),length:e})}function _p(e,t){return new jh({check:"string_format",format:"regex",...Z(t),pattern:e})}function Cp(e){return new Bh({check:"string_format",format:"lowercase",...Z(e)})}function Ap(e){return new Dh({check:"string_format",format:"uppercase",...Z(e)})}function yp(e,t){return new Fh({check:"string_format",format:"includes",...Z(t),includes:e})}function Ip(e,t){return new Hh({check:"string_format",format:"starts_with",...Z(t),prefix:e})}function Rp(e,t){return new Gh({check:"string_format",format:"ends_with",...Z(t),suffix:e})}function Tn(e){return new Wh({check:"overwrite",tx:e})}function Tp(e){return Tn(t=>t.normalize(e))}function Ep(){return Tn(e=>e.trim())}function Np(){return Tn(e=>e.toLowerCase())}function Mp(){return Tn(e=>e.toUpperCase())}function Pp(){return Tn(e=>Ld(e))}function Op(e,t,n){return new e({type:"array",element:t,...Z(n)})}function Lp(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Z(n)})}function zp(e,t){const n=jp(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Jn(o,r.value,n._zod.def));else{const a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=n),a.continue??(a.continue=!n._zod.def.abort),r.issues.push(Jn(a))}},e(r.value,r)),t);return n}function jp(e,t){const n=new nt({check:"custom",...Z(t)});return n._zod.check=e,n}function Rc(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)??Gn,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 Te(e,t,n={path:[],schemaPath:[]}){var c,h;var r;const o=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);const l=(h=(c=e._zod).toJSONSchema)==null?void 0:h.call(c);if(l)i.schema=l;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,d);else{const p=i.schema,b=t.processors[o.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);b(e,t,p,d)}const f=e._zod.parent;f&&(i.ref||(i.ref=f),Te(f,t,d),t.seen.get(f).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(i.schema,s),t.io==="input"&&Xe(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&"_prefault"in i.schema&&((r=i.schema).default??(r.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function Tc(e,t){var i,l,s,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const c of e.seen.entries()){const h=(i=e.metadataRegistry.get(c[0]))==null?void 0:i.id;if(h){const d=r.get(h);if(d&&d!==c[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(h,c[0])}}const o=c=>{var b;const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const x=(b=e.external.registry.get(c[0]))==null?void 0:b.id,w=e.external.uri??(S=>S);if(x)return{ref:w(x)};const k=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=k,{defId:k,ref:`${w("__shared")}#/${h}/${k}`}}if(c[1]===n)return{ref:"#"};const f=`#/${h}/`,p=c[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:f+p}},a=c=>{if(c[1].schema.$ref)return;const h=c[1],{ref:d,defId:f}=o(c);h.def={...h.schema},f&&(h.defId=f);const p=h.schema;for(const b in p)delete p[b];p.$ref=d};if(e.cycles==="throw")for(const c of e.seen.entries()){const h=c[1];if(h.cycle)throw new Error(`Cycle detected: #/${(l=h.cycle)==null?void 0:l.join("/")}/<root>
|
|
62
|
+
`)}f.write("payload.value = newResult;"),f.write("return payload;");const k=f.compile();return(_,y)=>k(d,_,y)};let a;const i=Kn,l=!ai.jitless,u=l&&Bd.value,c=t.catchall;let h;e._zod.parse=(d,f)=>{h??(h=r.value);const p=d.value;return i(p)?l&&u&&(f==null?void 0:f.async)===!1&&f.jitless!==!0?(a||(a=o(t.shape)),d=a(d,f),c?Cc([],p,d,f,h,e):d):n(d,f):(d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d)}});function tl(e,t,n,r){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const o=e.filter(a=>!vn(a));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(a=>a.issues.map(i=>Lt(i,r,Pt())))}),t)}const Ac=N("$ZodUnion",(e,t)=>{$e.init(e,t),de(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),de(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),de(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),de(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>li(o.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let a=!1;const i=[];for(const l of t.options){const s=l._zod.run({value:r.value,issues:[]},o);if(s instanceof Promise)i.push(s),a=!0;else{if(s.issues.length===0)return s;i.push(s)}}return a?Promise.all(i).then(l=>tl(l,r,e,o)):tl(i,r,e,o)}}),Rf=N("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Ac.init(e,t);const n=e._zod.parse;de(e._zod,"propValues",()=>{const o={};for(const a of t.options){const i=a._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const[l,s]of Object.entries(i)){o[l]||(o[l]=new Set);for(const u of s)o[l].add(u)}}return o});const r=lo(()=>{var i;const o=t.options,a=new Map;for(const l of o){const s=(i=l._zod.propValues)==null?void 0:i[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const u of s){if(a.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);a.set(u,l)}}return a});e._zod.parse=(o,a)=>{const i=o.value;if(!Kn(i))return o.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),o;const l=r.value.get(i==null?void 0:i[t.discriminator]);return l?l._zod.run(o,a):t.unionFallback||a.direction==="backward"?n(o,a):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()),input:i,path:[t.discriminator],inst:e}),o)}}),Tf=N("$ZodIntersection",(e,t)=>{$e.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,a=t.left._zod.run({value:o,issues:[]},r),i=t.right._zod.run({value:o,issues:[]},r);return a instanceof Promise||i instanceof Promise?Promise.all([a,i]).then(([s,u])=>nl(n,s,u)):nl(n,a,i)}});function da(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(Cn(e)&&Cn(t)){const n=Object.keys(t),r=Object.keys(e).filter(a=>n.indexOf(a)!==-1),o={...e,...t};for(const a of r){const i=da(e[a],t[a]);if(!i.valid)return{valid:!1,mergeErrorPath:[a,...i.mergeErrorPath]};o[a]=i.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],a=t[r],i=da(o,a);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function nl(e,t,n){const r=new Map;let o;for(const l of t.issues)if(l.code==="unrecognized_keys"){o??(o=l);for(const s of l.keys)r.has(s)||r.set(s,{}),r.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)r.has(s)||r.set(s,{}),r.get(s).r=!0;else e.issues.push(l);const a=[...r].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(a.length&&o&&e.issues.push({...o,keys:a}),vn(e))return e;const i=da(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const Ef=N("$ZodTuple",(e,t)=>{$e.init(e,t);const n=t.items;e._zod.parse=(r,o)=>{const a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];const i=[],l=rl(n,"optin"),s=rl(n,"optout");if(!t.rest){if(a.length<l)return r.issues.push({code:"too_small",minimum:l,inclusive:!0,input:a,inst:e,origin:"array"}),r;a.length>n.length&&r.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:a,inst:e,origin:"array"})}const u=new Array(n.length);for(let c=0;c<n.length;c++){const h=n[c]._zod.run({value:a[c],issues:[]},o);h instanceof Promise?i.push(h.then(d=>{u[c]=d})):u[c]=h}if(t.rest){let c=n.length-1;const h=a.slice(n.length);for(const d of h){c++;const f=t.rest._zod.run({value:d,issues:[]},o);f instanceof Promise?i.push(f.then(p=>ol(p,r,c))):ol(f,r,c)}}return i.length?Promise.all(i).then(()=>al(u,r,n,a,s)):al(u,r,n,a,s)}});function rl(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function ol(e,t,n){e.issues.length&&t.issues.push(...Ht(n,e.issues)),t.value[n]=e.value}function al(e,t,n,r,o){for(let a=0;a<n.length;a++){const i=e[a],l=a<r.length;if(i.issues.length){if(!l&&a>=o){t.value.length=a;break}t.issues.push(...Ht(a,i.issues))}t.value[a]=i.value}for(let a=t.value.length-1;a>=r.length&&(n[a]._zod.optout==="optional"&&t.value[a]===void 0);a--)t.value.length=a;return t}const Nf=N("$ZodRecord",(e,t)=>{$e.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Cn(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const a=[],i=t.keyType._zod.values;if(i){n.value={};const l=new Set;for(const u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);const c=t.keyType._zod.run({value:u,issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(f=>Lt(f,r,Pt())),input:u,path:[u],inst:e});continue}const h=c.value,d=t.valueType._zod.run({value:o[u],issues:[]},r);d instanceof Promise?a.push(d.then(f=>{f.issues.length&&n.issues.push(...Ht(u,f.issues)),n.value[h]=f.value})):(d.issues.length&&n.issues.push(...Ht(u,d.issues)),n.value[h]=d.value)}let s;for(const u in o)l.has(u)||(s=s??[],s.push(u));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(o)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(o,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},r);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&xc.test(l)&&s.issues.length){const h=t.keyType._zod.run({value:Number(l),issues:[]},r);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(s=h)}if(s.issues.length){t.mode==="loose"?n.value[l]=o[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(h=>Lt(h,r,Pt())),input:l,path:[l],inst:e});continue}const c=t.valueType._zod.run({value:o[l],issues:[]},r);c instanceof Promise?a.push(c.then(h=>{h.issues.length&&n.issues.push(...Ht(l,h.issues)),n.value[s.value]=h.value})):(c.issues.length&&n.issues.push(...Ht(l,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Mf=N("$ZodEnum",(e,t)=>{$e.init(e,t);const n=cc(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>Dd.has(typeof o)).map(o=>typeof o=="string"?An(o):o.toString()).join("|")})$`),e._zod.parse=(o,a)=>{const i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:n,input:i,inst:e}),o}}),Pf=N("$ZodLiteral",(e,t)=>{if($e.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(r=>typeof r=="string"?An(r):r?An(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,o)=>{const a=r.value;return n.has(a)||r.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),r}}),Lf=N("$ZodTransform",(e,t)=>{$e.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new sc(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(n.value=i,n.fallback=!0,n));if(o instanceof Promise)throw new Sn;return n.value=o,n.fallback=!0,n}});function il(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const yc=N("$ZodOptional",(e,t)=>{$e.init(e,t),e._zod.optin="optional",e._zod.optout="optional",de(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),de(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${li(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=n.value,a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(i=>il(i,o)):il(a,o)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Of=N("$ZodExactOptional",(e,t)=>{yc.init(e,t),de(e._zod,"values",()=>t.innerType._zod.values),de(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),zf=N("$ZodNullable",(e,t)=>{$e.init(e,t),de(e._zod,"optin",()=>t.innerType._zod.optin),de(e._zod,"optout",()=>t.innerType._zod.optout),de(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${li(n.source)}|null)$`):void 0}),de(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),jf=N("$ZodDefault",(e,t)=>{$e.init(e,t),e._zod.optin="optional",de(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>ll(a,t)):ll(o,t)}});function ll(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Bf=N("$ZodPrefault",(e,t)=>{$e.init(e,t),e._zod.optin="optional",de(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Df=N("$ZodNonOptional",(e,t)=>{$e.init(e,t),de(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>sl(a,e)):sl(o,e)}});function sl(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 Ff=N("$ZodCatch",(e,t)=>{$e.init(e,t),e._zod.optin="optional",de(e._zod,"optout",()=>t.innerType._zod.optout),de(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(i=>Lt(i,r,Pt()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>Lt(a,r,Pt()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Ic=N("$ZodPipe",(e,t)=>{$e.init(e,t),de(e._zod,"values",()=>t.in._zod.values),de(e._zod,"optin",()=>t.in._zod.optin),de(e._zod,"optout",()=>t.out._zod.optout),de(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const a=t.out._zod.run(n,r);return a instanceof Promise?a.then(i=>mr(i,t.in,r)):mr(a,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(a=>mr(a,t.out,r)):mr(o,t.out,r)}});function mr(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 Hf=N("$ZodPreprocess",(e,t)=>{Ic.init(e,t)}),Gf=N("$ZodReadonly",(e,t)=>{$e.init(e,t),de(e._zod,"propValues",()=>t.innerType._zod.propValues),de(e._zod,"values",()=>t.innerType._zod.values),de(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),de(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(cl):cl(o)}});function cl(e){return e.value=Object.freeze(e.value),e}const Wf=N("$ZodLazy",(e,t)=>{$e.init(e,t),de(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),de(e._zod,"pattern",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.pattern}),de(e._zod,"propValues",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.propValues}),de(e._zod,"optin",()=>{var n,r;return((r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optin)??void 0}),de(e._zod,"optout",()=>{var n,r;return((r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optout)??void 0}),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),Uf=N("$ZodCustom",(e,t)=>{nt.init(e,t),$e.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(a=>ul(a,n,r,e));ul(o,n,r,e)}});function ul(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Jn(o))}}var dl;class Zf{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.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 r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function qf(){return new Zf}(dl=globalThis).__zod_globalRegistry??(dl.__zod_globalRegistry=qf());const Gn=globalThis.__zod_globalRegistry;function Vf(e,t){return new e({type:"string",...Z(t)})}function Yf(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Z(t)})}function hl(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Z(t)})}function Kf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Z(t)})}function Jf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Z(t)})}function Xf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Z(t)})}function Qf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Z(t)})}function ep(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Z(t)})}function tp(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Z(t)})}function np(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Z(t)})}function rp(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Z(t)})}function op(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Z(t)})}function ap(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Z(t)})}function ip(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Z(t)})}function lp(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Z(t)})}function sp(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Z(t)})}function cp(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Z(t)})}function up(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Z(t)})}function dp(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Z(t)})}function hp(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Z(t)})}function fp(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Z(t)})}function pp(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Z(t)})}function gp(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Z(t)})}function mp(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Z(t)})}function bp(e,t){return new e({type:"string",format:"date",check:"string_format",...Z(t)})}function xp(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Z(t)})}function vp(e,t){return new e({type:"string",format:"duration",check:"string_format",...Z(t)})}function kp(e,t){return new e({type:"number",checks:[],...Z(t)})}function wp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Z(t)})}function Sp(e,t){return new e({type:"boolean",...Z(t)})}function $p(e){return new e({type:"any"})}function _p(e){return new e({type:"unknown"})}function Cp(e,t){return new e({type:"never",...Z(t)})}function fl(e,t){return new kc({check:"less_than",...Z(t),value:e,inclusive:!1})}function wo(e,t){return new kc({check:"less_than",...Z(t),value:e,inclusive:!0})}function pl(e,t){return new wc({check:"greater_than",...Z(t),value:e,inclusive:!1})}function So(e,t){return new wc({check:"greater_than",...Z(t),value:e,inclusive:!0})}function gl(e,t){return new Lh({check:"multiple_of",...Z(t),value:e})}function Rc(e,t){return new zh({check:"max_length",...Z(t),maximum:e})}function Gr(e,t){return new jh({check:"min_length",...Z(t),minimum:e})}function Tc(e,t){return new Bh({check:"length_equals",...Z(t),length:e})}function Ap(e,t){return new Dh({check:"string_format",format:"regex",...Z(t),pattern:e})}function yp(e){return new Fh({check:"string_format",format:"lowercase",...Z(e)})}function Ip(e){return new Hh({check:"string_format",format:"uppercase",...Z(e)})}function Rp(e,t){return new Gh({check:"string_format",format:"includes",...Z(t),includes:e})}function Tp(e,t){return new Wh({check:"string_format",format:"starts_with",...Z(t),prefix:e})}function Ep(e,t){return new Uh({check:"string_format",format:"ends_with",...Z(t),suffix:e})}function Tn(e){return new Zh({check:"overwrite",tx:e})}function Np(e){return Tn(t=>t.normalize(e))}function Mp(){return Tn(e=>e.trim())}function Pp(){return Tn(e=>e.toLowerCase())}function Lp(){return Tn(e=>e.toUpperCase())}function Op(){return Tn(e=>jd(e))}function zp(e,t,n){return new e({type:"array",element:t,...Z(n)})}function jp(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Z(n)})}function Bp(e,t){const n=Dp(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Jn(o,r.value,n._zod.def));else{const a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=n),a.continue??(a.continue=!n._zod.def.abort),r.issues.push(Jn(a))}},e(r.value,r)),t);return n}function Dp(e,t){const n=new nt({check:"custom",...Z(t)});return n._zod.check=e,n}function Ec(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)??Gn,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 Te(e,t,n={path:[],schemaPath:[]}){var c,h;var r;const o=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);const l=(h=(c=e._zod).toJSONSchema)==null?void 0:h.call(c);if(l)i.schema=l;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,d);else{const p=i.schema,b=t.processors[o.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);b(e,t,p,d)}const f=e._zod.parent;f&&(i.ref||(i.ref=f),Te(f,t,d),t.seen.get(f).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(i.schema,s),t.io==="input"&&Xe(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&"_prefault"in i.schema&&((r=i.schema).default??(r.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function Nc(e,t){var i,l,s,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const c of e.seen.entries()){const h=(i=e.metadataRegistry.get(c[0]))==null?void 0:i.id;if(h){const d=r.get(h);if(d&&d!==c[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(h,c[0])}}const o=c=>{var b;const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const x=(b=e.external.registry.get(c[0]))==null?void 0:b.id,w=e.external.uri??(S=>S);if(x)return{ref:w(x)};const k=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=k,{defId:k,ref:`${w("__shared")}#/${h}/${k}`}}if(c[1]===n)return{ref:"#"};const f=`#/${h}/`,p=c[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:f+p}},a=c=>{if(c[1].schema.$ref)return;const h=c[1],{ref:d,defId:f}=o(c);h.def={...h.schema},f&&(h.defId=f);const p=h.schema;for(const b in p)delete p[b];p.$ref=d};if(e.cycles==="throw")for(const c of e.seen.entries()){const h=c[1];if(h.cycle)throw new Error(`Cycle detected: #/${(l=h.cycle)==null?void 0:l.join("/")}/<root>
|
|
63
63
|
|
|
64
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of e.seen.entries()){const h=c[1];if(t===c[0]){a(c);continue}if(e.external){const f=(s=e.external.registry.get(c[0]))==null?void 0:s.id;if(t!==c[0]&&f){a(c);continue}}if((u=e.metadataRegistry.get(c[0]))==null?void 0:u.id){a(c);continue}if(h.cycle){a(c);continue}if(h.count>1&&e.reused==="ref"){a(c);continue}}}function Ec(e,t){var l,s,u,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=h=>{const d=e.seen.get(h);if(d.ref===null)return;const f=d.def??d.schema,p={...f},b=d.ref;if(d.ref=null,b){r(b);const w=e.seen.get(b),k=w.schema;if(k.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(k)):Object.assign(f,k),Object.assign(f,p),h._zod.parent===b)for(const v in f)v==="$ref"||v==="allOf"||v in p||delete f[v];if(k.$ref&&w.def)for(const v in f)v==="$ref"||v==="allOf"||v in w.def&&JSON.stringify(f[v])===JSON.stringify(w.def[v])&&delete f[v]}const x=h._zod.parent;if(x&&x!==b){r(x);const w=e.seen.get(x);if(w!=null&&w.schema.$ref&&(f.$ref=w.schema.$ref,w.def))for(const k in f)k==="$ref"||k==="allOf"||k in w.def&&JSON.stringify(f[k])===JSON.stringify(w.def[k])&&delete f[k]}e.override({zodSchema:h,jsonSchema:f,path:d.path??[]})};for(const h of[...e.seen.entries()].reverse())r(h[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(l=e.external)!=null&&l.uri){const h=(s=e.external.registry.get(t))==null?void 0:s.id;if(!h)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(h)}Object.assign(o,n.def??n.schema);const a=(u=e.metadataRegistry.get(t))==null?void 0:u.id;a!==void 0&&o.id===a&&delete o.id;const i=((c=e.external)==null?void 0:c.defs)??{};for(const h of e.seen.entries()){const d=h[1];d.def&&d.defId&&(d.def.id===d.defId&&delete d.def.id,i[d.defId]=d.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{const h=JSON.parse(JSON.stringify(o));return Object.defineProperty(h,"~standard",{value:{...t["~standard"],jsonSchema:{input:Wr(t,"input",e.processors),output:Wr(t,"output",e.processors)}},enumerable:!1,writable:!1}),h}catch{throw new Error("Error converting schema to JSON.")}}function Xe(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Xe(r.element,n);if(r.type==="set")return Xe(r.valueType,n);if(r.type==="lazy")return Xe(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Xe(r.innerType,n);if(r.type==="intersection")return Xe(r.left,n)||Xe(r.right,n);if(r.type==="record"||r.type==="map")return Xe(r.keyType,n)||Xe(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Xe(r.in,n)||Xe(r.out,n);if(r.type==="object"){for(const o in r.shape)if(Xe(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(Xe(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(Xe(o,n))return!0;return!!(r.rest&&Xe(r.rest,n))}return!1}const Bp=(e,t={})=>n=>{const r=Rc({...n,processors:t});return Te(e,r),Tc(r,e),Ec(r,e)},Wr=(e,t,n={})=>r=>{const{libraryOptions:o,target:a}=r??{},i=Rc({...o??{},target:a,io:t,processors:n});return Te(e,i),Tc(i,e),Ec(i,e)},Dp={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Fp=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:a,maximum:i,format:l,patterns:s,contentEncoding:u}=e._zod.bag;if(typeof a=="number"&&(o.minLength=a),typeof i=="number"&&(o.maxLength=i),l&&(o.format=Dp[l]??l,o.format===""&&delete o.format,l==="time"&&delete o.format),u&&(o.contentEncoding=u),s&&s.size>0){const c=[...s];c.length===1?o.pattern=c[0].source:c.length>1&&(o.allOf=[...c.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},Hp=(e,t,n,r)=>{const o=n,{minimum:a,maximum:i,format:l,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof l=="string"&&l.includes("int")?o.type="integer":o.type="number";const h=typeof c=="number"&&c>=(a??Number.NEGATIVE_INFINITY),d=typeof u=="number"&&u<=(i??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";h?f?(o.minimum=c,o.exclusiveMinimum=!0):o.exclusiveMinimum=c:typeof a=="number"&&(o.minimum=a),d?f?(o.maximum=u,o.exclusiveMaximum=!0):o.exclusiveMaximum=u:typeof i=="number"&&(o.maximum=i),typeof s=="number"&&(o.multipleOf=s)},Gp=(e,t,n,r)=>{n.type="boolean"},Wp=(e,t,n,r)=>{n.not={}},Up=(e,t,n,r)=>{},Zp=(e,t,n,r)=>{},qp=(e,t,n,r)=>{const o=e._zod.def,a=lc(o.entries);a.every(i=>typeof i=="number")&&(n.type="number"),a.every(i=>typeof i=="string")&&(n.type="string"),n.enum=a},Vp=(e,t,n,r)=>{const o=e._zod.def,a=[];for(const i of o.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");a.push(Number(i))}else a.push(i);if(a.length!==0)if(a.length===1){const i=a[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else a.every(i=>typeof i=="number")&&(n.type="number"),a.every(i=>typeof i=="string")&&(n.type="string"),a.every(i=>typeof i=="boolean")&&(n.type="boolean"),a.every(i=>i===null)&&(n.type="null"),n.enum=a},Yp=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Kp=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Jp=(e,t,n,r)=>{const o=n,a=e._zod.def,{minimum:i,maximum:l}=e._zod.bag;typeof i=="number"&&(o.minItems=i),typeof l=="number"&&(o.maxItems=l),o.type="array",o.items=Te(a.element,t,{...r,path:[...r.path,"items"]})},Xp=(e,t,n,r)=>{var u;const o=n,a=e._zod.def;o.type="object",o.properties={};const i=a.shape;for(const c in i)o.properties[c]=Te(i[c],t,{...r,path:[...r.path,"properties",c]});const l=new Set(Object.keys(i)),s=new Set([...l].filter(c=>{const h=a.shape[c]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));s.size>0&&(o.required=Array.from(s)),((u=a.catchall)==null?void 0:u._zod.def.type)==="never"?o.additionalProperties=!1:a.catchall?a.catchall&&(o.additionalProperties=Te(a.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},Qp=(e,t,n,r)=>{const o=e._zod.def,a=o.inclusive===!1,i=o.options.map((l,s)=>Te(l,t,{...r,path:[...r.path,a?"oneOf":"anyOf",s]}));a?n.oneOf=i:n.anyOf=i},eg=(e,t,n,r)=>{const o=e._zod.def,a=Te(o.left,t,{...r,path:[...r.path,"allOf",0]}),i=Te(o.right,t,{...r,path:[...r.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,s=[...l(a)?a.allOf:[a],...l(i)?i.allOf:[i]];n.allOf=s},tg=(e,t,n,r)=>{const o=n,a=e._zod.def;o.type="array";const i=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=a.items.map((d,f)=>Te(d,t,{...r,path:[...r.path,i,f]})),u=a.rest?Te(a.rest,t,{...r,path:[...r.path,l,...t.target==="openapi-3.0"?[a.items.length]:[]]}):null;t.target==="draft-2020-12"?(o.prefixItems=s,u&&(o.items=u)):t.target==="openapi-3.0"?(o.items={anyOf:s},u&&o.items.anyOf.push(u),o.minItems=s.length,u||(o.maxItems=s.length)):(o.items=s,u&&(o.additionalItems=u));const{minimum:c,maximum:h}=e._zod.bag;typeof c=="number"&&(o.minItems=c),typeof h=="number"&&(o.maxItems=h)},ng=(e,t,n,r)=>{const o=n,a=e._zod.def;o.type="object";const i=a.keyType,l=i._zod.bag,s=l==null?void 0:l.patterns;if(a.mode==="loose"&&s&&s.size>0){const c=Te(a.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(const h of s)o.patternProperties[h.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=Te(a.keyType,t,{...r,path:[...r.path,"propertyNames"]})),o.additionalProperties=Te(a.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const u=i._zod.values;if(u){const c=[...u].filter(h=>typeof h=="string"||typeof h=="number");c.length>0&&(o.required=c)}},rg=(e,t,n,r)=>{const o=e._zod.def,a=Te(o.innerType,t,r),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=o.innerType,n.nullable=!0):n.anyOf=[a,{type:"null"}]},og=(e,t,n,r)=>{const o=e._zod.def;Te(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType},ag=(e,t,n,r)=>{const o=e._zod.def;Te(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},ig=(e,t,n,r)=>{const o=e._zod.def;Te(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},lg=(e,t,n,r)=>{const o=e._zod.def;Te(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType;let i;try{i=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},sg=(e,t,n,r)=>{const o=e._zod.def,a=o.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?a?o.out:o.in:o.out;Te(i,t,r);const l=t.seen.get(e);l.ref=i},cg=(e,t,n,r)=>{const o=e._zod.def;Te(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,n.readOnly=!0},Nc=(e,t,n,r)=>{const o=e._zod.def;Te(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType},ug=(e,t,n,r)=>{const o=e._zod.innerType;Te(o,t,r);const a=t.seen.get(e);a.ref=o},dg=N("ZodISODateTime",(e,t)=>{of.init(e,t),Ee.init(e,t)});function hg(e){return pp(dg,e)}const fg=N("ZodISODate",(e,t)=>{af.init(e,t),Ee.init(e,t)});function pg(e){return gp(fg,e)}const gg=N("ZodISOTime",(e,t)=>{lf.init(e,t),Ee.init(e,t)});function mg(e){return mp(gg,e)}const bg=N("ZodISODuration",(e,t)=>{sf.init(e,t),Ee.init(e,t)});function xg(e){return bp(bg,e)}const vg=(e,t)=>{dc.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Kd(e,n)},flatten:{value:n=>Yd(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,ua,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,ua,2)}},isEmpty:{get(){return e.issues.length===0}}})},lt=N("ZodError",vg,{Parent:Error}),kg=ci(lt),wg=ui(lt),Sg=so(lt),$g=co(lt),_g=Qd(lt),Cg=eh(lt),Ag=th(lt),yg=nh(lt),Ig=rh(lt),Rg=oh(lt),Tg=ah(lt),Eg=ih(lt),ml=new WeakMap;function ar(e,t,n){const r=Object.getPrototypeOf(e);let o=ml.get(r);if(o||(o=new Set,ml.set(r,o)),!o.has(t)){o.add(t);for(const a in n){const i=n[a];Object.defineProperty(r,a,{configurable:!0,enumerable:!1,get(){const l=i.bind(this);return Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}const _e=N("ZodType",(e,t)=>($e.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Wr(e,"input"),output:Wr(e,"output")}}),e.toJSONSchema=Bp(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>kg(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Sg(e,n,r),e.parseAsync=async(n,r)=>wg(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>$g(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>_g(e,n,r),e.decode=(n,r)=>Cg(e,n,r),e.encodeAsync=async(n,r)=>Ag(e,n,r),e.decodeAsync=async(n,r)=>yg(e,n,r),e.safeEncode=(n,r)=>Ig(e,n,r),e.safeDecode=(n,r)=>Rg(e,n,r),e.safeEncodeAsync=async(n,r)=>Tg(e,n,r),e.safeDecodeAsync=async(n,r)=>Eg(e,n,r),ar(e,"ZodType",{check(...n){const r=this.def;return this.clone(Ut(r,{checks:[...r.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return Zt(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(ym(n,r))},superRefine(n,r){return this.check(Im(n,r))},overwrite(n){return this.check(Tn(n))},optional(){return wl(this)},exactOptional(){return hm(this)},nullable(){return Sl(this)},nullish(){return wl(Sl(this))},nonoptional(n){return xm(this,n)},array(){return oe(this)},or(n){return H([this,n])},and(n){return lm(this,n)},transform(n){return $l(this,zc(n))},default(n){return gm(this,n)},prefault(n){return bm(this,n)},catch(n){return km(this,n)},pipe(n){return $l(this,n)},readonly(){return $m(this)},describe(n){const r=this.clone();return Gn.add(r,{description:n}),r},meta(...n){if(n.length===0)return Gn.get(this);const r=this.clone();return Gn.add(r,n[0]),r},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=Gn.get(e))==null?void 0:n.description},configurable:!0}),e)),Mc=N("_ZodString",(e,t)=>{di.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(r,o,a)=>Fp(e,r,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,ar(e,"_ZodString",{regex(...r){return this.check(_p(...r))},includes(...r){return this.check(yp(...r))},startsWith(...r){return this.check(Ip(...r))},endsWith(...r){return this.check(Rp(...r))},min(...r){return this.check(Gr(...r))},max(...r){return this.check(yc(...r))},length(...r){return this.check(Ic(...r))},nonempty(...r){return this.check(Gr(1,...r))},lowercase(r){return this.check(Cp(r))},uppercase(r){return this.check(Ap(r))},trim(){return this.check(Ep())},normalize(...r){return this.check(Tp(...r))},toLowerCase(){return this.check(Np())},toUpperCase(){return this.check(Mp())},slugify(){return this.check(Pp())}})}),Ng=N("ZodString",(e,t)=>{di.init(e,t),Mc.init(e,t),e.email=n=>e.check(qf(Mg,n)),e.url=n=>e.check(Xf(Pg,n)),e.jwt=n=>e.check(fp(Yg,n)),e.emoji=n=>e.check(Qf(Og,n)),e.guid=n=>e.check(hl(bl,n)),e.uuid=n=>e.check(Vf(br,n)),e.uuidv4=n=>e.check(Yf(br,n)),e.uuidv6=n=>e.check(Kf(br,n)),e.uuidv7=n=>e.check(Jf(br,n)),e.nanoid=n=>e.check(ep(Lg,n)),e.guid=n=>e.check(hl(bl,n)),e.cuid=n=>e.check(tp(zg,n)),e.cuid2=n=>e.check(np(jg,n)),e.ulid=n=>e.check(rp(Bg,n)),e.base64=n=>e.check(up(Zg,n)),e.base64url=n=>e.check(dp(qg,n)),e.xid=n=>e.check(op(Dg,n)),e.ksuid=n=>e.check(ap(Fg,n)),e.ipv4=n=>e.check(ip(Hg,n)),e.ipv6=n=>e.check(lp(Gg,n)),e.cidrv4=n=>e.check(sp(Wg,n)),e.cidrv6=n=>e.check(cp(Ug,n)),e.e164=n=>e.check(hp(Vg,n)),e.datetime=n=>e.check(hg(n)),e.date=n=>e.check(pg(n)),e.time=n=>e.check(mg(n)),e.duration=n=>e.check(xg(n))});function $(e){return Zf(Ng,e)}const Ee=N("ZodStringFormat",(e,t)=>{Re.init(e,t),Mc.init(e,t)}),Mg=N("ZodEmail",(e,t)=>{Yh.init(e,t),Ee.init(e,t)}),bl=N("ZodGUID",(e,t)=>{qh.init(e,t),Ee.init(e,t)}),br=N("ZodUUID",(e,t)=>{Vh.init(e,t),Ee.init(e,t)}),Pg=N("ZodURL",(e,t)=>{Kh.init(e,t),Ee.init(e,t)}),Og=N("ZodEmoji",(e,t)=>{Jh.init(e,t),Ee.init(e,t)}),Lg=N("ZodNanoID",(e,t)=>{Xh.init(e,t),Ee.init(e,t)}),zg=N("ZodCUID",(e,t)=>{Qh.init(e,t),Ee.init(e,t)}),jg=N("ZodCUID2",(e,t)=>{ef.init(e,t),Ee.init(e,t)}),Bg=N("ZodULID",(e,t)=>{tf.init(e,t),Ee.init(e,t)}),Dg=N("ZodXID",(e,t)=>{nf.init(e,t),Ee.init(e,t)}),Fg=N("ZodKSUID",(e,t)=>{rf.init(e,t),Ee.init(e,t)}),Hg=N("ZodIPv4",(e,t)=>{cf.init(e,t),Ee.init(e,t)}),Gg=N("ZodIPv6",(e,t)=>{uf.init(e,t),Ee.init(e,t)}),Wg=N("ZodCIDRv4",(e,t)=>{df.init(e,t),Ee.init(e,t)}),Ug=N("ZodCIDRv6",(e,t)=>{hf.init(e,t),Ee.init(e,t)}),Zg=N("ZodBase64",(e,t)=>{ff.init(e,t),Ee.init(e,t)}),qg=N("ZodBase64URL",(e,t)=>{gf.init(e,t),Ee.init(e,t)}),Vg=N("ZodE164",(e,t)=>{mf.init(e,t),Ee.init(e,t)}),Yg=N("ZodJWT",(e,t)=>{xf.init(e,t),Ee.init(e,t)}),Pc=N("ZodNumber",(e,t)=>{wc.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(r,o,a)=>Hp(e,r,o),ar(e,"ZodNumber",{gt(r,o){return this.check(pl(r,o))},gte(r,o){return this.check(So(r,o))},min(r,o){return this.check(So(r,o))},lt(r,o){return this.check(fl(r,o))},lte(r,o){return this.check(wo(r,o))},max(r,o){return this.check(wo(r,o))},int(r){return this.check(xl(r))},safe(r){return this.check(xl(r))},positive(r){return this.check(pl(0,r))},nonnegative(r){return this.check(So(0,r))},negative(r){return this.check(fl(0,r))},nonpositive(r){return this.check(wo(0,r))},multipleOf(r,o){return this.check(gl(r,o))},step(r,o){return this.check(gl(r,o))},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 g(e){return xp(Pc,e)}const Kg=N("ZodNumberFormat",(e,t)=>{vf.init(e,t),Pc.init(e,t)});function xl(e){return vp(Kg,e)}const Jg=N("ZodBoolean",(e,t)=>{kf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Gp(e,n,r)});function L(e){return kp(Jg,e)}const Xg=N("ZodAny",(e,t)=>{wf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Up()});function Xn(){return wp(Xg)}const Qg=N("ZodUnknown",(e,t)=>{Sf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Zp()});function vl(){return Sp(Qg)}const em=N("ZodNever",(e,t)=>{$f.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Wp(e,n,r)});function tm(e){return $p(em,e)}const nm=N("ZodArray",(e,t)=>{_f.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Jp(e,n,r,o),e.element=t.element,ar(e,"ZodArray",{min(n,r){return this.check(Gr(n,r))},nonempty(n){return this.check(Gr(1,n))},max(n,r){return this.check(yc(n,r))},length(n,r){return this.check(Ic(n,r))},unwrap(){return this.element}})});function oe(e,t){return Op(nm,e,t)}const rm=N("ZodObject",(e,t)=>{Af.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Xp(e,n,r,o),de(e,"shape",()=>t.shape),ar(e,"ZodObject",{keyof(){return T(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:vl()})},loose(){return this.clone({...this._zod.def,catchall:vl()})},strict(){return this.clone({...this._zod.def,catchall:tm()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return Gd(this,n)},safeExtend(n){return Wd(this,n)},merge(n){return Ud(this,n)},pick(n){return Fd(this,n)},omit(n){return Hd(this,n)},partial(...n){return Zd(jc,this,n[0])},required(...n){return qd(Bc,this,n[0])}})});function A(e,t){const n={type:"object",shape:e??{},...Z(t)};return new rm(n)}const Oc=N("ZodUnion",(e,t)=>{_c.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Qp(e,n,r,o),e.options=t.options});function H(e,t){return new Oc({type:"union",options:e,...Z(t)})}const om=N("ZodDiscriminatedUnion",(e,t)=>{Oc.init(e,t),yf.init(e,t)});function am(e,t,n){return new om({type:"union",options:t,discriminator:e,...Z(n)})}const im=N("ZodIntersection",(e,t)=>{If.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>eg(e,n,r,o)});function lm(e,t){return new im({type:"intersection",left:e,right:t})}const sm=N("ZodTuple",(e,t)=>{Rf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>tg(e,n,r,o),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Lc(e,t,n){const r=t instanceof $e,o=r?n:t,a=r?t:null;return new sm({type:"tuple",items:e,rest:a,...Z(o)})}const kl=N("ZodRecord",(e,t)=>{Tf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ng(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function yn(e,t,n){return!t||!t._zod?new kl({type:"record",keyType:$(),valueType:e,...Z(t)}):new kl({type:"record",keyType:e,valueType:t,...Z(n)})}const ha=N("ZodEnum",(e,t)=>{Ef.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(r,o,a)=>qp(e,r,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const a={};for(const i of r)if(n.has(i))a[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new ha({...t,checks:[],...Z(o),entries:a})},e.exclude=(r,o)=>{const a={...t.entries};for(const i of r)if(n.has(i))delete a[i];else throw new Error(`Key ${i} not found in enum`);return new ha({...t,checks:[],...Z(o),entries:a})}});function T(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new ha({type:"enum",entries:n,...Z(t)})}const cm=N("ZodLiteral",(e,t)=>{Nf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Vp(e,n,r),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 le(e,t){return new cm({type:"literal",values:Array.isArray(e)?e:[e],...Z(t)})}const um=N("ZodTransform",(e,t)=>{Mf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Kp(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new ic(e.constructor.name);n.addIssue=a=>{if(typeof a=="string")n.issues.push(Jn(a,n.value,t));else{const i=a;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(Jn(i))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(a=>(n.value=a,n.fallback=!0,n)):(n.value=o,n.fallback=!0,n)}});function zc(e){return new um({type:"transform",transform:e})}const jc=N("ZodOptional",(e,t)=>{Cc.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Nc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function wl(e){return new jc({type:"optional",innerType:e})}const dm=N("ZodExactOptional",(e,t)=>{Pf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Nc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function hm(e){return new dm({type:"optional",innerType:e})}const fm=N("ZodNullable",(e,t)=>{Of.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>rg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Sl(e){return new fm({type:"nullable",innerType:e})}const pm=N("ZodDefault",(e,t)=>{Lf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ag(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function gm(e,t){return new pm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():cc(t)}})}const mm=N("ZodPrefault",(e,t)=>{zf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ig(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function bm(e,t){return new mm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():cc(t)}})}const Bc=N("ZodNonOptional",(e,t)=>{jf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>og(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function xm(e,t){return new Bc({type:"nonoptional",innerType:e,...Z(t)})}const vm=N("ZodCatch",(e,t)=>{Bf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>lg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function km(e,t){return new vm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Dc=N("ZodPipe",(e,t)=>{Ac.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>sg(e,n,r,o),e.in=t.in,e.out=t.out});function $l(e,t){return new Dc({type:"pipe",in:e,out:t})}const wm=N("ZodPreprocess",(e,t)=>{Dc.init(e,t),Df.init(e,t)}),Sm=N("ZodReadonly",(e,t)=>{Ff.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>cg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function $m(e){return new Sm({type:"readonly",innerType:e})}const _m=N("ZodLazy",(e,t)=>{Hf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ug(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function Cm(e){return new _m({type:"lazy",getter:e})}const Am=N("ZodCustom",(e,t)=>{Gf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yp(e,n)});function ym(e,t={}){return Lp(Am,e,t)}function Im(e,t){return zp(e,t)}function Fc(e,t){return new wm({type:"pipe",in:zc(e),out:t})}var Rm=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Tm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,_l=A({style:A({textAlign:T(["left","center","right"]).optional().nullable(),padding:Rm}).optional().nullable(),props:A({size:g().gt(0).optional().nullable(),shape:T(["circle","square","rounded"]).optional().nullable(),imageUrl:$().optional().nullable(),alt:$().optional().nullable()}).optional().nullable()});function Em(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var xr={size:64,imageUrl:"",alt:"",shape:"square"};function Cl({style:e,props:t}){var n,r,o,a,i;const l=(n=t==null?void 0:t.size)!=null?n:xr.size,s=(r=t==null?void 0:t.imageUrl)!=null?r:xr.imageUrl,u=(o=t==null?void 0:t.alt)!=null?o:xr.alt,c=(a=t==null?void 0:t.shape)!=null?a:xr.shape,h={textAlign:(i=e==null?void 0:e.textAlign)!=null?i:void 0,padding:Tm(e==null?void 0:e.padding)};return U.createElement("div",{style:h},U.createElement("img",{alt:u,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:Em(c,l)}}))}const Nm=A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),Mm=$().regex(/^(#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\([^\)]+\))$/i),At=A({enabled:L(),scale:g().min(1).max(1.5).optional().nullable(),duration:g().min(0).max(3e3).optional().nullable(),easing:T(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable(),borderColor:Mm.optional().nullable(),borderWidth:g().min(0).max(20).optional().nullable(),borderStyle:T(["solid","dashed","dotted"]).optional().nullable(),textDecoration:T(["none","underline","overline","line-through"]).optional().nullable()}).optional().nullable(),vr=(e,t,n)=>{const r=`.${e}:hover${t}`;return n?`${r}, .container-block:hover:not(:has(.container-block .${e})) .${e}${t}`:r};function Lt(e,t,{themedBorderColor:n,scaleTarget:r="",borderTarget:o="",scaleFromContainer:a=!1,borderFromContainer:i=!1,defaultScale:l=1.05,scaleBaseCss:s=""}={}){if(!(t!=null&&t.enabled)||!e)return null;const u=`${t.duration??500}ms ${t.easing??"ease-in-out"}`,c=`transition: transform ${u}, outline-color ${u};`,h=[],d=t.scale??l;d>1&&(h.push(`.${e}${r} { ${s} ${c} }`),h.push(`${vr(e,r,a)} { transform: scale(${d}); }`));const f=t.borderWidth??1;if(t.borderColor&&n&&f>0&&(h.push(`.${e}${o} { outline: ${f}px ${t.borderStyle??"solid"} transparent !important; outline-offset: -${f}px; ${c} }`),h.push(`${vr(e,o,i)} { outline-color: ${n} !important; }`)),t.textDecoration&&t.textDecoration!=="none"){const p=`${vr(e,"",!0)}, ${vr(e," *",!0)}`;h.push(`${p} { text-decoration: ${t.textDecoration} !important; }`)}return h.join(`
|
|
65
|
-
`)||null}const Pm=_l.extend({props:_l.shape.props.unwrap().unwrap().extend({decorative:L().optional().nullable(),hoverEffect:At,animation:Nm}).optional().nullable()});function Wt(e){if(!e)return"";let t=String(e).trim().toLowerCase().replace(/\s+/g,"");const n=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/.exec(t);return n&&(t=`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}`),t}const re=(e,t=[],n)=>({role:e,seeds:t.map(Wt),nullFallback:n}),Ur={pageText:re("text",[],"#262626"),containerFill:re("surface",[],"#ffffff"),layoutText:re("text",["#262626","#1f2937"],"#262626"),canvas:re("surface",["#ffffff"]),closeIcon:re("text",["#000000","#262626"],"#262626"),brandingText:re("text-muted",[],"#8a8a8a"),blockText:re("text",["#262626"]),listText:re("text"),link:re("link",[],"#2563eb"),codeBg:re("surface-alt",[],"#f3f4f6"),quoteBorder:re("text-muted",[],"#9ca3af"),divider:re("border",["#cccccc","#333333"],"#cccccc"),tableText:re("text",["#262626"]),tableBorder:re("border",["#e5e7eb"]),tableHeaderBg:re("surface-alt",["#f3f4f6"]),tableHeaderText:re("text-strong",["#111827"]),tableStripe:re("surface-alt",["#f8f6f6"]),track:re("track",["#e5e7eb"]),trackText:re("text",["#262626"]),timerText:re("text",[],"#1f1f1f"),timerLabel:re("text-muted",[],"#6b7280"),timerTrack:re("track",[],"#e5e7eb"),breadcrumbText:re("text-muted",["#595959"]),menuText:re("text",["#000000"],"#000000"),menuSurface:re("surface",[],"#ffffff"),carouselArrow:re("text",[],"#262626"),carouselArrowBg:re("surface",[],"#ffffff"),carouselArrowBorder:re("border-subtle",[],"rgba(0,0,0,.12)"),carouselDot:re("track",[],"#d4d4d4"),carouselDotActive:re("text",[],"#262626"),paginationBg:re("surface",["#ffffff"],"#ffffff"),paginationText:re("text",["#262626"],"#262626"),paginationBorder:re("border-subtle",["rgba(0,0,0,.12)"],"rgba(0,0,0,.12)"),surface:re("surface",[],"#ffffff"),surfaceLiteral:re("surface"),bgAdaptive:re("surface"),buttonText:re("text"),borderAdaptive:re("border"),borderSubtle:re("border-subtle",[],"rgba(0,0,0,.12)"),surfaceAlt:re("surface-alt"),tabsRing:re("border",[],"#d0d5dd")},Hc=e=>/gradient\(|url\(/i.test(e);function Zr(e){const t=Wt(e);let n=/^#([0-9a-f]{6})([0-9a-f]{2})?$/.exec(t);if(n){const r=parseInt(n[1],16);return{r:r>>16&255,g:r>>8&255,b:r&255,a:n[2]?parseInt(n[2],16)/255:1}}return n=/^rgba?\((\d{1,3}),(\d{1,3}),(\d{1,3})(?:,([\d.]+))?\)$/.exec(t),n?{r:+n[1],g:+n[2],b:+n[3],a:n[4]!==void 0?+n[4]:1}:null}function Al({r:e,g:t,b:n}){const r=o=>{const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)};return .2126*r(e)+.7152*r(t)+.0722*r(n)}function Om({r:e,g:t,b:n}){const r=e/255,o=t/255,a=n/255,i=Math.max(r,o,a),l=Math.min(r,o,a),s=(i+l)/2,u=i-l;if(u===0)return{h:0,s:0,l:s};const c=u/(1-Math.abs(2*s-1));return{h:((i===r?(o-a)/u%6:i===o?(a-r)/u+2:(r-o)/u+4)*60+360)%360,s:c,l:s}}function $o(e,t,n,r){const o=(1-Math.abs(2*n-1))*t,a=o*(1-Math.abs(e/60%2-1)),i=n-o/2,[l,s,u]=e<60?[o,a,0]:e<120?[a,o,0]:e<180?[0,o,a]:e<240?[0,a,o]:e<300?[a,0,o]:[o,0,a],c=h=>Math.round((h+i)*255).toString(16).padStart(2,"0");return`#${c(l)}${c(s)}${c(u)}${r<1?Math.round(r*255).toString(16).padStart(2,"0"):""}`}function ho(e,t){const n=Zr(e);if(!n||n.a===0)return null;const{h:r,s:o,l:a}=Om(n);if(t==="text"){if(Al(n)>=.2)return null;let i=a,l=$o(r,o,i,n.a);const s=o<.1?.75:.4;for(;i<.97&&Al(Zr(l))<s;)i=Math.min(.97,i+.02),l=$o(r,o,i,n.a);return l}return a<=.82?null:$o(r,o*.5,Math.min(.18,Math.max(.07,1-a)),n.a)}const Gc=["text","text-strong","text-muted","link"],Wc=["surface","surface-alt","track"],Lm=e=>Gc.includes(e)?"text":Wc.includes(e)?"bg":null;function zm(e){if(!e||!e.trim()||/^(transparent|none)$/i.test(e.trim()))return!0;const t=Zr(e);return!!t&&t.a===0}function Uc(e){return!!e&&!Hc(e)&&ho(e,"bg")!==null}const jm={text:["text","text-strong","text-muted","link"],bg:["surface","surface-alt","track"],border:["border","border-subtle","surface","surface-alt","track"]};let _o=null;function Bm(){if(_o)return _o;const e=new Map;return Object.values(Ur).forEach(t=>{e.has(t.role)||e.set(t.role,new Set),t.seeds.forEach(n=>e.get(t.role).add(n)),t.nullFallback&&e.get(t.role).add(Wt(t.nullFallback))}),_o=e,e}function Dm(e,t){var r;const n=Bm();for(const o of jm[t])if((r=n.get(o))!=null&&r.has(e))return o;return null}const Zc=e=>Gc.includes(e)?"text":Wc.includes(e)?"bg":"border",Co=/(?:repeating-)?(?:linear|radial|conic)-gradient\(/gi,Fm=/^(to\s|[-+]?[\d.]+(?:deg|grad|rad|turn)\b|circle\b|ellipse\b|closest-|farthest-|at\s|from\s|in\s)/i;function qc(e,t){let n=0;for(let r=t;r<e.length;r+=1)if(e[r]==="(")n+=1;else if(e[r]===")"&&(n-=1,n===0))return r;return-1}function Hm(e){const t=[];let n=0,r=0;for(let o=0;o<e.length;o+=1)e[o]==="("?n+=1:e[o]===")"?n-=1:e[o]===","&&n===0&&(t.push(e.slice(r,o)),r=o+1);return t.push(e.slice(r)),t}function Gm(e,t,n){const r=/^\s*/.exec(e)[0],o=e.slice(r.length);if(!o||Fm.test(o))return e;let a="";const i=/^#[0-9a-fA-F]{3,8}(?![0-9a-zA-Z])/.exec(o);if(i)a=i[0];else if(/^rgba?\(/i.test(o)){const c=qc(o,o.indexOf("("));c>0&&(a=o.slice(0,c+1))}if(!a)return/^(transparent)\b/i.test(o)||(n.literal+=1),e;const l=Zr(a),s=Dm(Wt(a),t);if(s)return n.adapted+=1,`${r}var(--pp-g-${s},${a})${o.slice(a.length)}`;const u=t==="border"?null:ho(a,t);return u?(n.adapted+=1,`${r}light-dark(${a},${u})${o.slice(a.length)}`):((!l||l.a>0)&&(n.literal+=1),e)}function Vc(e,t,n){let r="",o=0;Co.lastIndex=0;let a;for(;(a=Co.exec(e))!==null;){const i=a.index+a[0].length-1,l=qc(e,i);if(l<0)break;const s=e.slice(i+1,l),u=Hm(s).map(c=>Gm(c,t,n)).join(",");r+=e.slice(o,i+1)+u,o=l,Co.lastIndex=l+1}return r+e.slice(o)}function Wm(e,t="bg"){const n={adapted:0,literal:0},r=Vc(e,t,n);return n.adapted?r:e}function Um(e,t="bg"){const n={adapted:0,literal:0};return Vc(e,t,n),n.adapted>0&&n.literal===0}function z(e,t){const n=typeof t=="string"?Ur[t]:t;if(e==null||e==="")return n.nullFallback?`var(--pp-${n.role},${n.nullFallback})`:void 0;if(Hc(e))return/gradient\(/i.test(e)?Wm(e,Zc(n.role)):e;if(n.seeds.includes(Wt(e)))return`var(--pp-${n.role},${e})`;const r=Lm(n.role),o=r?ho(e,r):null;return o?`light-dark(${e},${o})`:e}const Zm=/^(transparent|none|inherit|initial|unset|currentcolor)$/i;function ue(e,t,n){const r=(e??"").trim();if(n&&!t&&Ur[n].seeds.includes(Wt(r)))return{};if(n&&!t&&Uc(r))return{};if(n&&!t&&/gradient\(/i.test(r)&&Um(r,Zc(Ur[n].role)))return{};const o=!!r&&!Zm.test(Wt(r))&&!/^rgba?\(.*,\s*0\)$/i.test(Wt(r)),a=!!t&&t.trim()!==""&&t.trim()!=="none";return o||a?{"data-pp-surface":"fixed"}:{}}function se(e){return e??void 0}function hi(){return e=>e??void 0}const yl=e=>{const t=ho(e.trim(),"text");return t?`light-dark(${e.trim()},${t})`:null},qm=/<font\b([^>]*)>/gi,Il=/\scolor\s*=\s*(?:"([^"]*)"|'([^']*)')/i,Rl=/\sstyle\s*=\s*(?:"([^"]*)"|'([^']*)')/i,Vm=/(\sstyle\s*=\s*)(?:"([^"]*)"|'([^']*)')/gi,Ym=/(^|[;\s])color\s*:\s*([^;]+?)(\s*!important)?\s*(?=;|$)/gi;function Km(e){if(!e||!/color/i.test(e))return e;let t=e.replace(qm,(n,r)=>{const o=Il.exec(r);if(!o)return n;const a=yl(o[1]??o[2]??"");if(!a)return n;const i=r.replace(Il,""),l=Rl.exec(i);if(l){const s=l[1]??l[2]??"";return`<font${i.replace(Rl,` style="color:${a};${s}"`)}>`}return`<font${i} style="color:${a}">`});return t=t.replace(Vm,(n,r,o,a)=>{const i=o!==void 0?'"':"'",l=o??a??"";if(!/color/i.test(l))return n;const s=l.replace(Ym,(u,c,h,d)=>{const f=yl(h);return f?`${c}color:${f}${d??""}`:u});return s===l?n:`${r}${i}${s}${i}`}),t}function Yc(e){return Km(e)}const Nr="--pp-text:#e6e6e6;--pp-text-strong:#f5f5f5;--pp-text-muted:#a3a3a3;--pp-link:#7aa7ff;--pp-surface:#121212;--pp-surface-alt:#1e1e1e;--pp-track:#2e2e2e;--pp-border:#3a3a3a;--pp-border-subtle:rgba(255,255,255,.12);--pp-icon-filter:invert(1) hue-rotate(180deg);--pp-scheme:dark",Wn="--pp-text:initial;--pp-text-strong:initial;--pp-text-muted:initial;--pp-link:initial;--pp-surface:initial;--pp-surface-alt:initial;--pp-track:initial;--pp-border:initial;--pp-border-subtle:initial;--pp-icon-filter:initial;--pp-scheme:light",Kc=e=>e.replace(/--pp-scheme:[a-z]+/,"").replace(/--pp-icon-filter:[^;]+;/,"").replace(/--pp-/g,"--pp-g-"),Ao=Kc(Nr),kr=Kc(Wn),Tl=e=>`[data-theme=${e}],[data-bs-theme=${e}],[data-mui-color-scheme=${e}],[data-color-mode=${e}]`,Jm=`:where(html.dark,body.dark){${Nr};${Ao}}:where(html.light,body.light){${Wn};${kr}}:where(html,body):where(${Tl("dark")}){${Nr};${Ao}}:where(html,body):where(${Tl("light")}){${Wn};${kr}}:where([data-pp-surface=fixed]>*){${kr}}:where([data-pp-theme=dark]){${Nr};${Ao}}:where([data-pp-theme=light]){${Wn};${kr}}:where([data-pp-surface=fixed]){${Wn};color:#262626}:where([data-ahd-tpl-root],[data-pp-scope],[data-pp-theme],[data-pp-surface=fixed]){color-scheme:var(--pp-scheme,light)}`;let Xm=0;function Qm({hoverEffect:e,children:t}){const n=U.useMemo(()=>`ahd-hv-wrap-${++Xm}`,[]),r=Lt(n,e,{themedBorderColor:z(e==null?void 0:e.borderColor,"borderAdaptive"),scaleTarget:" img",borderTarget:" img",borderFromContainer:!0});return r?m.jsxs("div",{className:n,style:{display:"contents"},children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:r}}),t]}):m.jsx(m.Fragment,{children:t})}const Zn={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},ir=Object.values(Zn);let Jc=null;function El(e){Jc=e}function eb(){return Jc}function fi(){return"desktop"}const Ue=1024,Ve=640,_t=`@media (max-width: ${Ue}px)`,Qe=`@media (max-width: ${Ve}px)`,ln=`@media (min-width: ${Ve+1}px) and (max-width: ${Ue}px)`,Ye=A({tablet:yn($(),Xn()).optional().nullable(),mobile:yn($(),Xn()).optional().nullable()}).optional().nullable(),tb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},nb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M12 4V20M12 20L18 14M12 20L6 14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},rb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 6L6 18M6 18H14M6 18V10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ob=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 6L18 18M18 18V10M18 18H10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ab=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M20 12H4M4 12L10 18M4 12L10 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ib=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},lb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M12 20V4M12 4L6 10M12 4L18 10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},sb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 18L6 6M6 6V14M6 6H14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},cb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 18L18 6M18 6H10M18 6V14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ub=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},db=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 9L12 15L18 9",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},hb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M7 13L12 18L17 13M7 6L12 11L17 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},fb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M15 18L9 12L15 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},pb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 17L13 12L18 7M11 17L6 12L11 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},gb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M9 18L15 12L9 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},mb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 17L11 12L6 7M13 17L18 12L13 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},bb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 15L12 9L6 15",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},xb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 14",fill:"none",children:m.jsx("path",{d:"M11 13L6 8L1 13M11 6L6 1L1 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};function vb(e,t={fontSize:16}){if(!e)return null;switch(e){case"arrow-left":return m.jsx(tb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return m.jsx(ab,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return m.jsx(ub,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return m.jsx(ib,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return m.jsx(nb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return m.jsx(rb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return m.jsx(ob,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return m.jsx(lb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return m.jsx(sb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return m.jsx(cb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return m.jsx(fb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return m.jsx(gb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return m.jsx(bb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down":return m.jsx(db,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left-double":return m.jsx(pb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return m.jsx(mb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return m.jsx(xb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return m.jsx(hb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const kb=4,Bt=e=>({[e==="left"?"marginRight":"marginLeft"]:kb,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"}),wb=(e,t,n)=>({width:t,height:t,display:"block",backgroundColor:n,WebkitMaskImage:`url("${e}")`,maskImage:`url("${e}")`,WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskSize:"contain",maskSize:"contain"}),wr=e=>({display:"inline-flex",alignItems:"center",justifyContent:e}),Qn="data-ahd-var",Xc=/(<span\s+data-ahd-var="[^"]*">\{\{[^}]+\}\}<\/span>)|(\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\})/g,Sb=/[&<>"']/g,$b={"&":"&","<":"<",">":">",'"':""","'":"'"};function $n(e){return e.replace(Sb,t=>$b[t])}function fo(e){return!e||e.indexOf("{{")===-1?e:e.replace(Xc,(t,n,r,o)=>{if(n)return n;const a=$n(o);return`<span ${Qn}="${a}">{{${o}}}</span>`})}function pi(e){return!e||e.indexOf("{{")===-1?e:$n(e).replace(Xc,(t,n,r,o)=>{if(n)return n;const a=$n(o);return`<span ${Qn}="${a}">{{${o}}}</span>`})}const _b=/\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\}/g;function Cb(e,t){if(!e||e.indexOf("{{")===-1)return e;const n=typeof window<"u"?window.location.search:void 0;if(n===void 0)return e;const r=new URLSearchParams(n||"");return e.replace(_b,(o,a)=>{const i=r.get(a);return i!==null?encodeURIComponent(i):o})}function Ab(e,t){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search??""),r=e.querySelectorAll(`[${Qn}]`);for(let o=0;o<r.length;o++){const a=r[o],i=n.get(a.getAttribute(Qn)||"");i!==null&&(a.textContent=i)}}const fa="data-ahd-date",Qc="data-ahd-date-format";function pa(e,t){const n=$n(e),r=t??"",o=$n(r),a=eu(r)||`{{${n}}}`;return`<span ${Qn}="${n}" ${fa}="${o}" ${Qc}="relative">${$n(a)}</span>`}function eu(e,t=new Date){if(!e)return"";const n=new Date(e);if(Number.isNaN(n.getTime()))return"";const r=864e5,o=l=>new Date(l.getFullYear(),l.getMonth(),l.getDate()).getTime(),a=Math.round((o(n)-o(t))/r);if(a===0)return"Today";if(a===1)return"Tomorrow";if(a===-1)return"Yesterday";if(a>=-6&&a<=6)return n.toLocaleDateString(void 0,{weekday:"short"});const i=n.getFullYear()===t.getFullYear();return n.toLocaleDateString(void 0,{month:"short",day:"numeric",...i?{}:{year:"numeric"}})}function yb(e,t){if(typeof window>"u")return;const n=e.querySelectorAll(`[${fa}][${Qc}="relative"]`);for(let r=0;r<n.length;r++){const o=n[r],a=o.getAttribute(fa)||"",i=eu(a,t);i&&(o.textContent=i)}}const Ib=T(["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 yo(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 Rb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Tb=$().regex(/^rgba?\([^\)]+\)$/i),Eb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Nb=le("transparent"),Xt=H([Rb,Tb,Eb,Nb]).nullable().optional(),Mb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Pb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Ob=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Lb=H([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),zb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,jb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Bb=A({color:Xt,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().default(!1)}).partial().optional().nullable();function Db(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 Fb(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${Db(t)}`}}const Hb=A({style:A({backgroundColor:Xt,fontSize:g().min(0).optional().nullable(),fontFamily:Ib,fontWeight:T(["bold","normal",...ir]).optional().nullable(),textDecoration:T(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),buttonTextAlign:T(["left","center","right"]).optional().nullable(),padding:Mb,margin:Pb}).optional().nullable(),props:A({buttonBackground:Xt,hoverBackground:Xt,hoverTextColor:Xt,borderRadius:Lb,borderWidth:Ob,borderColor:Xt,boxShadow:Bb,buttonTextColor:Xt,fullWidth:L().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),size:T(["x-small","small","large","medium"]).optional().nullable(),sizeTablet:T(["x-small","small","large","medium"]).optional().nullable(),sizeMobile:T(["x-small","small","large","medium"]).optional().nullable(),text:$().optional().nullable(),url:$().optional().nullable(),action:T(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:L().optional().nullable(),customAction:$().optional().nullable(),actionPayload:yn($(),Xn()).optional().nullable(),iconEnabled:L().optional().nullable(),iconName:$().optional().nullable(),iconUrl:$().optional().nullable(),iconAlignment:T(["left","right"]).optional().nullable(),ariaLabel:$().optional().nullable(),goToStep:$().optional().nullable(),postMessageEvent:$().optional().nullable(),hoverEffect:At,animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable()}).optional().nullable(),responsive:Ye});function Nl(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 Ne={text:"",url:"",fullWidth:!1,widthType:"fit",width:200,widthUnit:"px",size:"medium",borderRadius:4,borderColor:"",boxShadow:null,buttonTextColor:"#000000",buttonBackground:"#ffffff",borderWidth:{top:0,right:0,bottom:0,left:0},action:"onNextStep",openInNewTab:!0,customAction:"",actionPayload:null,iconEnabled:!1,iconName:"",iconAlignment:"left",goToStep:"",postMessageEvent:""};function Gb({style:e,props:t}){var Vi;const r=`bh-${U.useId().replace(/:/g,"")}`,o=(t==null?void 0:t.text)??Ne.text,a=typeof o=="string"&&o.indexOf("{{")!==-1,i=(Be,dt)=>a?m.jsx("span",{style:Be,"data-action":dt,dangerouslySetInnerHTML:{__html:pi(o)}}):m.jsx("span",{style:Be,"data-action":dt,children:o}),l=(t==null?void 0:t.url)??Ne.url,s=Cb(l),u=typeof window>"u"&&typeof s=="string"&&s.indexOf("{{")!==-1,c=(t==null?void 0:t.fullWidth)??Ne.fullWidth,h=(t==null?void 0:t.widthType)??Ne.widthType,d=(t==null?void 0:t.width)??Ne.width,f=(t==null?void 0:t.widthUnit)??Ne.widthUnit,p=(t==null?void 0:t.widthTablet)??null,b=(t==null?void 0:t.widthMobile)??null,x=p??d,w=b??x,k=(t==null?void 0:t.widthTypeTablet)??h,S=(t==null?void 0:t.widthTypeMobile)??k,v=(t==null?void 0:t.size)??Ne.size,_=(t==null?void 0:t.sizeTablet)??v,y=(t==null?void 0:t.sizeMobile)??_,C=h,I=d,R=(t==null?void 0:t.buttonTextColor)??Ne.buttonTextColor,E=(t==null?void 0:t.buttonBackground)??Ne.buttonBackground,O=Uc(E),M=!/gradient\(/i.test(R??"")&&(O||zm(E)),P=M?z(R,"buttonText"):se(R),B=O?z(E,"bgAdaptive"):se(E),D=M?"currentColor":P,F=(t==null?void 0:t.iconEnabled)??Ne.iconEnabled,G=(t==null?void 0:t.iconName)??Ne.iconName,W=(t==null?void 0:t.iconAlignment)??Ne.iconAlignment,X=(t==null?void 0:t.iconUrl)??null,Q=!!(F&&(X||G)),q=(t==null?void 0:t.ariaLabel)??null,te=typeof o=="string"&&o.trim().length>0,Se=q&&q.trim().length>0?q:!te&&F&&G?G:void 0,Ae=(t==null?void 0:t.action)??Ne.action,ge=(t==null?void 0:t.openInNewTab)??Ne.openInNewTab,J=((t==null?void 0:t.customAction)??Ne.customAction)||Ae,V=(t==null?void 0:t.actionPayload)??Ne.actionPayload,K=(t==null?void 0:t.goToStep)??Ne.goToStep,j=(t==null?void 0:t.postMessageEvent)??Ne.postMessageEvent,Y=V||(J==="goToStep"?{goToStep:K||""}:null)||(J==="postMessageEvent"?{postMessageEvent:j||""}:null),fe=Y?JSON.stringify(Y):void 0,ve=(t==null?void 0:t.borderRadius)??Ne.borderRadius,me=(t==null?void 0:t.borderWidth)??Ne.borderWidth,pe=(t==null?void 0:t.borderColor)??Ne.borderColor,ye=se(pe),ae=(t==null?void 0:t.boxShadow)??Ne.boxShadow,Pe=Fb(ae),De=(t==null?void 0:t.hoverBackground)??null,be=(t==null?void 0:t.hoverTextColor)??null,Fe=Nl(v),He=Be=>typeof Be=="number"?`${Be}px`:`${Be.topLeft}px ${Be.topRight}px ${Be.bottomRight}px ${Be.bottomLeft}px`,ee=(Be,dt)=>{if(typeof Be=="number")return`${Math.max(0,Be-dt)}px`;const vo=Math.max(0,(Be.topLeft||0)-dt),ko=Math.max(0,(Be.topRight||0)-dt),dn=Math.max(0,(Be.bottomRight||0)-dt),hn=Math.max(0,(Be.bottomLeft||0)-dt);return`${vo}px ${ko}px ${dn}px ${hn}px`},je=pe&&(pe.includes("linear-gradient")||pe.includes("radial-gradient")||pe.includes("repeating-linear-gradient")),ze=me&&((me.top??0)>0||(me.right??0)>0||(me.bottom??0)>0||(me.left??0)>0),ie={top:(me==null?void 0:me.top)??0,right:(me==null?void 0:me.right)??0,bottom:(me==null?void 0:me.bottom)??0,left:(me==null?void 0:me.left)??0},Ge=(()=>{if(c)return"100%";switch(C){case"fill":return"100%";case"fixed":return`${I}${f}`;case"fit":default:return"auto"}})(),et=(e==null?void 0:e.buttonTextAlign)??(e==null?void 0:e.textAlign)??"center",ot=et==="center"?"center":et==="right"?"flex-end":"flex-start",zt=()=>!pe||pe==="transparent"||!ze?{border:"none"}:je?{borderTop:`${ie.top}px solid transparent`,borderRight:`${ie.right}px solid transparent`,borderBottom:`${ie.bottom}px solid transparent`,borderLeft:`${ie.left}px solid transparent`,borderImage:`${ye} `,borderRadius:"0px"}:{borderTop:`${ie.top}px solid ${ye}`,borderRight:`${ie.right}px solid ${ye}`,borderBottom:`${ie.bottom}px solid ${ye}`,borderLeft:`${ie.left}px solid ${ye}`},It=E&&(E.includes("linear-gradient")||E.includes("radial-gradient")||E.includes("repeating-linear-gradient")),rt=R&&(R.includes("linear-gradient")||R.includes("radial-gradient")||R.includes("repeating-linear-gradient")),jt=(e==null?void 0:e.backgroundColor)&&(e.backgroundColor.includes("linear-gradient")||e.backgroundColor.includes("radial-gradient")||e.backgroundColor.includes("repeating-linear-gradient")),xt={backgroundColor:jt?void 0:(e==null?void 0:e.backgroundColor)??void 0,backgroundImage:jt?(e==null?void 0:e.backgroundColor)??void 0:void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:zb(e==null?void 0:e.padding),margin:jb(e==null?void 0:e.margin)},Vt=zt(),Ke={...rt?{backgroundImage:P,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:P||void 0},textDecoration:(e==null?void 0:e.textDecoration)??"none"},Rt=It?void 0:B,ne=It?B:void 0,Ie=(e==null?void 0:e.fontSize)??16,Ze=`${Ie}px`,Je=()=>X?m.jsx("span",{"aria-hidden":"true",style:wb(X,Ie,rt?"currentColor":D||"currentColor")}):vb(G,{strokeColor:rt?void 0:D,fontSize:Ie}),Yt={fontSize:Ze,fontFamily:yo(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??Zn.REGULAR,backgroundColor:Rt,backgroundImage:ne,borderRadius:je?"0px":He(ve),...Vt,...je&&ze?{}:Pe,display:Ge==="100%"?"block":"inline-block",width:Ge,padding:`${Fe[0]}px ${Fe[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:ot,lineHeight:"normal"},ce=je&&ze?m.jsx("div",{style:{display:Ge==="100%"?"block":"inline-block",padding:`${ie.top}px ${ie.right}px ${ie.bottom}px ${ie.left}px`,background:ye,borderRadius:He(ve),width:Ge,boxSizing:"border-box",...Pe},children:m.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:ee(ve,Math.max(ie.top,ie.right,ie.bottom,ie.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??Zn.REGULAR,fontFamily:yo(e==null?void 0:e.fontFamily),backgroundImage:ne,backgroundColor:Rt,textAlign:et,textDecoration:"none",fontSize:Ze,padding:`${Fe[0]}px ${Fe[1]}px`,boxSizing:"border-box",lineHeight:"normal",...wr(ot)},"data-action":J,"data-action-payload":fe,"data-goto-step":J==="goToStep"&&K?K:void 0,"data-post-message-event":J==="postMessageEvent"&&j?j:void 0,type:"button","aria-label":Se,children:[Q&&W==="left"?m.jsx("span",{style:Bt("left"),"data-action":J,children:Je()}):null,i({...Ke,pointerEvents:"none"},J),Q&&W==="right"?m.jsx("span",{style:Bt("right"),"data-action":J,children:Je()}):null]})}):m.jsxs("button",{style:{cursor:"pointer",...Vt,...Pe,borderRadius:He(ve),width:Ge,fontWeight:(e==null?void 0:e.fontWeight)??Zn.REGULAR,fontFamily:yo(e==null?void 0:e.fontFamily),backgroundColor:Rt,backgroundImage:ne,textAlign:et,textDecoration:"none",fontSize:Ze,padding:`${Fe[0]}px ${Fe[1]}px`,boxSizing:"border-box",lineHeight:"normal",...wr(ot)},"data-action":J,"data-action-payload":fe,"data-goto-step":J==="goToStep"&&K?K:void 0,"data-post-message-event":J==="postMessageEvent"&&j?j:void 0,type:"button","aria-label":Se,children:[Q&&W==="left"?m.jsx("span",{style:Bt("left"),"data-action":J,children:Je()}):null,i({...Ke,pointerEvents:"none"},J),Q&&W==="right"?m.jsx("span",{style:Bt("right"),"data-action":J,children:Je()}):null]}),xe=!!De&&(De.includes("linear-gradient")||De.includes("radial-gradient")||De.includes("repeating-linear-gradient")),tt=!!be&&(be.includes("linear-gradient")||be.includes("radial-gradient")||be.includes("repeating-linear-gradient")),at=[];De&&(xe?at.push(`background-image: ${De} !important; background-color: transparent !important;`):at.push(`background-color: ${De} !important; background-image: none !important;`)),be&&!tt&&at.push(`color: ${be} !important;`);const Tt=be?tt?`background-image: ${be} !important; background-repeat: no-repeat !important; background-size: 100% 100% !important; -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent !important; color: transparent !important; display: inline-block;`:`background-image: none !important; color: ${be} !important; -webkit-text-fill-color: ${be} !important;`:"",Kt=at.length>0||Tt?`#${r} a:hover, #${r} button:hover { ${at.join(" ")} transition: background-color 150ms ease, background-image 150ms ease, color 150ms ease; } #${r} a:hover span, #${r} button:hover span { ${Tt} }`:null,Ui=(Be,dt,vo,ko)=>{const dn=[],hn=c||dt==="fill"?"100%":dt==="fixed"?`${vo}${f}`:"auto";dn.push(`width: ${hn} !important;`,"max-width: 100% !important;"),dn.push(`display: ${hn==="100%"?"block":"inline-block"} !important;`);const[Yi,Ed]=Nl(ko);return dn.push(`padding: ${Yi}px ${Ed}px !important;`),`${Be} { #${r} a, #${r} button { ${dn.join(" ")} } #${r} > div { width: ${hn} !important; max-width: 100% !important; display: ${hn==="100%"?"block":"inline-block"} !important; } }`},Zi=k!==h||_!==v||k==="fixed"&&x!==d,qi=S!==h||y!==v||S==="fixed"&&w!==d,fr=Zi||qi?[Zi?Ui(_t,k,x,_):"",qi?Ui(Qe,S,w,y):""].filter(Boolean).join(`
|
|
66
|
-
`):null,pr=Lt(r,t==null?void 0:t.hoverEffect,{themedBorderColor:z((Vi=t==null?void 0:t.hoverEffect)==null?void 0:Vi.borderColor,"borderAdaptive"),scaleTarget:" :is(a, button)",borderTarget:" :is(a, button)",scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1});if(Ae!=="link")return m.jsxs("div",{id:r,className:`button-block ${r}`,style:xt,children:[Kt&&m.jsx("style",{children:Kt}),pr&&m.jsx("style",{dangerouslySetInnerHTML:{__html:pr}}),fr&&m.jsx("style",{children:fr}),ce]});const Td=je&&ze?m.jsx("div",{style:{display:Ge==="100%"?"block":"inline-block",padding:`${ie.top}px ${ie.right}px ${ie.bottom}px ${ie.left}px`,background:ye,borderRadius:He(ve),width:Ge,boxSizing:"border-box",...Pe},children:m.jsxs("a",{href:s,"data-ahd-href-tpl":u?s:void 0,style:{...Yt,border:"none",borderRadius:ee(ve,Math.max(ie.top,ie.right,ie.bottom,ie.left)),width:"100%",...wr(ot)},target:ge?"_blank":void 0,rel:ge?"noopener noreferrer":void 0,"aria-label":Se,children:[Q&&W==="left"?m.jsx("span",{style:Bt("left"),children:Je()}):null,i({...Ke,pointerEvents:"none"}),Q&&W==="right"?m.jsx("span",{style:Bt("right"),children:Je()}):null]})}):m.jsxs("a",{href:s,"data-ahd-href-tpl":u?s:void 0,style:{...Yt,borderRadius:He(ve),...wr(ot)},target:ge?"_blank":void 0,rel:ge?"noopener noreferrer":void 0,"aria-label":Se,children:[Q&&W==="left"?m.jsx("span",{style:Bt("left"),children:Je()}):null,i({...Ke,pointerEvents:"none"}),Q&&W==="right"?m.jsx("span",{style:Bt("right"),children:Je()}):null]});return m.jsxs("div",{id:r,className:`button-block ${r}`,style:xt,children:[Kt&&m.jsx("style",{children:Kt}),pr&&m.jsx("style",{dangerouslySetInnerHTML:{__html:pr}}),fr&&m.jsx("style",{children:fr}),Td]})}const Wb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Ub=$().regex(/^rgba?\([^\)]+\)$/i),Zb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),qb=le("transparent"),Ml=H([Wb,Ub,Zb,qb]).nullable().optional(),Vb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Yb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Kb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Jb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Xb=A({style:A({backgroundColor:Ml,padding:Vb,margin:Yb}).optional().nullable(),props:A({lineColor:Ml,lineHeight:g().optional().nullable()}).optional().nullable()}),Pl={lineHeight:1,lineColor:"#333333"};function Qb({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??Pl.lineHeight,r=z((t==null?void 0:t.lineColor)??Pl.lineColor,"divider"),o={padding:Kb(e==null?void 0:e.padding),margin:Jb(e==null?void 0:e.margin),backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),"--ahd-divider-thickness":`${n}px`};return m.jsx("div",{className:"divider-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:o,children:m.jsx("hr",{style:{width:"100%",border:"none",borderTopStyle:"solid",borderTopColor:r,borderTopWidth:`var(--ahd-divider-thickness, ${n}px)`,margin:0}})})}const e0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),t0=$().regex(/^rgba?\([^\)]+\)$/i),n0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),r0=le("transparent"),Io=H([e0,t0,n0,r0]).nullable().optional(),o0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),a0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),i0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,l0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,s0=T(["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 c0(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 u0=A({props:A({text:$().optional().nullable(),level:T(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:T(["text","link"]).optional().nullable(),url:$().optional().nullable(),openInNewTab:L().optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),hoverEffect:At}).optional().nullable(),style:A({color:Io,textColor:Io,backgroundColor:Io,fontFamily:s0,fontSize:g().optional().nullable(),lineClamp:g().int().gte(0).optional().nullable(),fontWeight:T(["bold","normal",...ir]).optional().nullable(),fontStyle:T(["italic","normal"]).optional().nullable(),textDecoration:T(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:o0,margin:a0}).optional().nullable(),responsive:Ye}),On={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};let d0=0;function h0({props:e,style:t}){var W;const n=U.useMemo(()=>`ahd-hv-heading-${++d0}`,[]),r=Lt(n,e==null?void 0:e.hoverEffect,{themedBorderColor:z((W=e==null?void 0:e.hoverEffect)==null?void 0:W.borderColor,"borderAdaptive"),scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1}),o=(e==null?void 0:e.level)??On.level,a=(e==null?void 0:e.text)??On.text,i=typeof a=="string"&&a.indexOf("{{")!==-1,l=(e==null?void 0:e.linkType)??On.linkType,s=(e==null?void 0:e.url)??On.url,u=(e==null?void 0:e.openInNewTab)??On.openInNewTab,c=l==="link"&&s,h=(t==null?void 0:t.fontSize)??f0(o),d=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),f=z(d,"blockText"),p=d&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(d),b=(t==null?void 0:t.textDecoration)??"none",x=p&&(b==="underline"||b==="underline line-through"),w=p&&(b==="line-through"||b==="underline line-through"),k=t==null?void 0:t.lineClamp,S=k&&k>0?{display:"-webkit-box",WebkitLineClamp:k,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},v={fontWeight:(t==null?void 0:t.fontWeight)??Zn.BOLD,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:p?"none":b,margin:0,fontFamily:c0(t==null?void 0:t.fontFamily),fontSize:h,...S},_=!!(k&&k>0),y=p?{lineHeight:"normal ",backgroundImage:f,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",position:"relative",..._?{}:{display:"inline-block"},...x?{paddingBottom:"0.08em"}:{}}:{color:f??void 0},C={position:"absolute",left:0,right:0,height:"0.08em",backgroundImage:f??void 0,pointerEvents:"none"},I={...C,bottom:0},R={...C,top:"50%",transform:"translateY(-50%)"},E=(t==null?void 0:t.backgroundColor)??void 0,O=z(E,"bgAdaptive"),M=typeof E=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(E),P=t==null?void 0:t.margin,B=((P==null?void 0:P.left)??0)+((P==null?void 0:P.right)??0),D={padding:i0(t==null?void 0:t.padding),margin:l0(t==null?void 0:t.margin),display:"block",width:B>0?`calc(100% - ${B}px)`:"100%",boxSizing:"border-box",textAlign:(t==null?void 0:t.textAlign)??void 0,wordBreak:"break-word",overflowWrap:"break-word",...M?{backgroundImage:O,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:O}},F=o,G=m.jsx(F,{className:"heading-block",style:v,children:m.jsxs("span",{style:y,children:[i?m.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:pi(a)}}):a,x?m.jsx("span",{style:I}):null,w?m.jsx("span",{style:R}):null]})});return m.jsxs("div",{className:`heading-block-wrapper${r?` ${n}`:""}`,...ue(E,void 0,"bgAdaptive"),style:D,children:[r&&m.jsx("style",{dangerouslySetInnerHTML:{__html:r}}),c?m.jsx("a",{href:s,target:u?"_blank":void 0,rel:u?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!p&&f?f:void 0},children:G}):G]})}function f0(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 tu="comm",nu="rule",ru="decl",p0="@import",g0="@namespace",m0="@keyframes",b0="@layer",x0=Math.abs,qn=String.fromCharCode;function ou(e){return e.trim()}function ga(e,t,n){return e.replace(t,n)}function _n(e,t){return e.charCodeAt(t)|0}function In(e,t,n){return e.slice(t,n)}function $t(e){return e.length}function v0(e){return e.length}function Sr(e,t){return t.push(e),e}var po=1,Rn=1,au=0,it=0,Oe=0,En="";function gi(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:po,column:Rn,length:i,return:"",siblings:l}}function k0(){return Oe}function w0(){return Oe=it>0?_n(En,--it):0,Rn--,Oe===10&&(Rn=1,po--),Oe}function mt(){return Oe=it<au?_n(En,it++):0,Rn++,Oe===10&&(Rn=1,po++),Oe}function Gt(){return _n(En,it)}function Mr(){return it}function go(e,t){return In(En,e,t)}function er(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 S0(e){return po=Rn=1,au=$t(En=e),it=0,[]}function $0(e){return En="",e}function Ro(e){return ou(go(it-1,ma(e===91?e+2:e===40?e+1:e)))}function _0(e){for(;(Oe=Gt())&&Oe<33;)mt();return er(e)>2||er(Oe)>3?"":" "}function C0(e,t){for(;--t&&mt()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return go(e,Mr()+(t<6&&Gt()==32&&mt()==32))}function ma(e){for(;mt();)switch(Oe){case e:return it;case 34:case 39:e!==34&&e!==39&&ma(Oe);break;case 40:e===41&&ma(e);break;case 92:mt();break}return it}function A0(e,t){for(;mt()&&e+Oe!==57;)if(e+Oe===84&&Gt()===47)break;return"/*"+go(t,it-1)+"*"+qn(e===47?e:mt())}function y0(e){for(;!er(Gt());)mt();return go(e,it)}function I0(e){return $0(Pr("",null,null,null,[""],e=S0(e),0,[0],e))}function Pr(e,t,n,r,o,a,i,l,s){for(var u=0,c=0,h=i,d=0,f=0,p=0,b=1,x=1,w=1,k=0,S=0,v="",_=o,y=a,C=r,I=v;x;)switch(p=S,S=mt()){case 40:p!=108&&_n(I,h-1)==58?(k++,I+="("):I+=Ro(S);break;case 41:k--,I+=")";break;case 34:case 39:case 91:I+=Ro(S);break;case 9:case 10:case 13:case 32:if(k>0){I+=qn(S);break}I+=_0(p);break;case 92:I+=C0(Mr()-1,7);continue;case 47:switch(Gt()){case 42:case 47:Sr(R0(A0(mt(),Mr()),t,n,s),s),(er(p||1)==5||er(Gt()||1)==5)&&$t(I)&&In(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*b:l[u++]=$t(I)*w;case 125*b:case 59:case 0:if(k>0&&S){I+=qn(S);break}switch(S){case 0:case 125:x=0;case 59+c:w==-1&&(I=ga(I,/\f/g,"")),f>0&&($t(I)-h||b===0)&&Sr(f>32?Ll(I+";",r,n,h-1,s):Ll(ga(I," ","")+";",r,n,h-2,s),s);break;case 59:I+=";";default:if(Sr(C=Ol(I,t,n,u,c,o,l,v,_=[],y=[],h,a),a),S===123)if(c===0)Pr(I,t,C,C,_,a,h,l,y);else{switch(d){case 99:if(_n(I,3)===110)break;case 108:if(_n(I,2)===97)break;default:c=0;case 100:case 109:case 115:}c?Pr(e,C,C,r&&Sr(Ol(e,C,C,0,0,o,l,v,o,_=[],h,y),y),o,y,h,l,r?_:y):Pr(I,C,C,C,[""],y,0,l,y)}}u=c=f=0,b=w=1,v=I="",h=i;break;case 58:h=1+$t(I),f=p;default:if(b<1){if(S==123)--b;else if(S==125&&b++==0&&w0()==125)continue}switch(I+=qn(S),S*b){case 38:w=c>0?1:(I+="\f",-1);break;case 44:if(k>0)break;l[u++]=($t(I)-1)*w,w=1;break;case 64:Gt()===45&&(I+=Ro(mt())),d=Gt(),c=h=$t(v=I+=y0(Mr())),S++;break;case 45:p===45&&$t(I)==2&&(b=0)}}return a}function Ol(e,t,n,r,o,a,i,l,s,u,c,h){for(var d=o-1,f=o===0?a:[""],p=v0(f),b=0,x=0,w=0;b<r;++b)for(var k=0,S=In(e,d+1,d=x0(x=i[b])),v=e;k<p;++k)(v=ou(x>0?f[k]+" "+S:ga(S,/&\f/g,f[k])))&&(s[w++]=v);return gi(e,t,n,o===0?nu:l,s,u,c,h)}function R0(e,t,n,r){return gi(e,t,n,tu,qn(k0()),In(e,2,-2),0,r)}function Ll(e,t,n,r,o){return gi(e,t,n,ru,In(e,0,r),In(e,r+1,-1),r,o)}function ba(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function T0(e,t,n,r){switch(e.type){case b0:if(e.children.length)break;case p0:case g0:case ru:return e.return=e.return||e.value;case tu:return"";case m0:return e.return=e.value+"{"+ba(e.children,r)+"}";case nu:if(!$t(e.value=e.props.join(",")))return""}return $t(n=ba(e.children,r))?e.return=e.value+"{"+n+"}":""}const E0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),N0=$().regex(/^rgba?\([^\)]+\)$/i),M0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),P0=le("transparent"),zl=H([E0,N0,M0,P0]).nullable().optional(),O0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),L0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),z0=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,j0=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,B0=T(["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 D0(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 F0=A({style:A({color:zl,backgroundColor:zl,fontFamily:B0,fontSize:g().min(0).optional().nullable(),textAlign:T(["left","right","center"]).optional().nullable(),padding:O0,margin:L0}).optional().nullable(),props:A({contents:$().optional().nullable()}).optional().nullable()}),H0=/<style[^>]*>([\s\S]*?)<\/style>/gi;function G0(e,t){let n="";const r=e.replace(H0,(a,i)=>(n+=i,""));if(!n.trim())return{markup:r,css:""};const o=ba(I0(`[${t}]{${n}}`),T0);return{markup:r,css:o}}function W0({style:e,props:t}){const n=t==null?void 0:t.contents,[r,o]=U.useState(!1),i=`data-html-scope-${U.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=U.useMemo(()=>n?G0(n,i):{markup:"",css:""},[n,i]),u={color:z(e==null?void 0:e.color,"blockText"),backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),fontFamily:D0(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:z0(e==null?void 0:e.padding),margin:j0(e==null?void 0:e.margin)},c=U.useRef(null);U.useEffect(()=>{const b=c.current;if(!b)return;b.querySelectorAll("iframe").forEach(w=>{try{w.style.pointerEvents=r?"auto":"none"}catch{}})},[n,r]);const h=b=>{r||o(!0)},d=()=>{o(!1)},f=`[${i}] pre,[${i}] code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}`;if(!n)return m.jsx("div",{ref:c,className:"html-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:u,children:m.jsx("style",{dangerouslySetInnerHTML:{__html:f}})});const p=`<style>${f}${s}</style>${fo(l)}`;return m.jsx("div",{ref:c,className:"html-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:u,onClick:h,onBlur:d,tabIndex:0,[i]:"",dangerouslySetInnerHTML:{__html:p}})}const U0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Z0=$().regex(/^rgba?\([^\)]+\)$/i),q0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),V0=le("transparent"),Y0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),K0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),J0=H([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Or=H([U0,Z0,q0,V0]).nullable().optional(),X0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Q0=A({color:Or,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().default(!1)}).partial().optional().nullable();function ex(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 tx(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${ex(t)}`}}const nx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,rx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function ox(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 ax(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const ix=A({style:A({padding:Y0,margin:K0,backgroundColor:Or.default(null),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:g().optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthUnitTablet:T(["px","%"]).optional().nullable(),widthUnitMobile:T(["px","%"]).optional().nullable(),widthTablet:g().positive().optional().nullable(),widthMobile:g().positive().optional().nullable(),height:g().optional().nullable(),heightTablet:g().positive().optional().nullable(),heightMobile:g().positive().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:L().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),borderRadius:J0,borderColor:Or.default(null),borderWidth:X0,boxShadow:Q0,iconName:$().optional().nullable(),iconFillColor:Or.default(null),rotation:g().min(0).max(360).optional().nullable(),rotationTablet:g().min(0).max(360).optional().nullable(),rotationMobile:g().min(0).max(360).optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),hoverEffect:At}).optional().nullable()}),We={widthType:"fit",width:300,widthUnit:"px",height:null,url:"",alt:"",decorative:!1,showLink:!1,linkHref:null,linkTarget:"_blank",contentAlignment:"middle",borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null,rotation:0,hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};let lx=0;function sx({style:e,props:t}){const n=U.useMemo(()=>`ahd-img-${++lx}`,[]),r=fi(),o=(e==null?void 0:e.textAlign)??void 0,a=o==="center"?"center":o==="right"?"flex-end":"flex-start",i=e==null?void 0:e.margin,l=((i==null?void 0:i.left)??0)+((i==null?void 0:i.right)??0),s={padding:nx(e==null?void 0:e.padding),margin:rx(e==null?void 0:e.margin),...ox(z(e==null?void 0:e.backgroundColor,"bgAdaptive")),display:"flex",justifyContent:a,width:l>0?`max(0px, calc(100% - ${l}px))`:"100%",boxSizing:"border-box"},u=(t==null?void 0:t.showLink)??(t!=null&&t.linkHref?!0:We.showLink),c=(t==null?void 0:t.linkHref)??We.linkHref,h=u&&c?c:null,d=(t==null?void 0:t.linkTarget)??We.linkTarget,f=(t==null?void 0:t.widthType)??We.widthType,p=(t==null?void 0:t.widthTypeTablet)??f,b=(t==null?void 0:t.widthTypeMobile)??p,x=(t==null?void 0:t.width)??We.width,w=(t==null?void 0:t.widthUnit)??We.widthUnit,k=(t==null?void 0:t.widthUnitTablet)??w,S=(t==null?void 0:t.widthUnitMobile)??k,v=(t==null?void 0:t.widthTablet)??null,_=(t==null?void 0:t.widthMobile)??null,y=v??x,C=_??y,I=(t==null?void 0:t.height)??We.height,R=(t==null?void 0:t.heightTablet)??null,E=(t==null?void 0:t.heightMobile)??null,O=R??I,M=E??O,P=I,B=(t==null?void 0:t.url)??We.url,D=(t==null?void 0:t.urlTablet)??null,F=(t==null?void 0:t.urlMobile)??null,G=!h&&((t==null?void 0:t.decorative)??We.decorative),W=G?"":(t==null?void 0:t.alt)??We.alt,X=G?{role:"presentation","aria-hidden":!0}:{},Q=(t==null?void 0:t.contentAlignment)??We.contentAlignment,q=(t==null?void 0:t.borderRadius)??We.borderRadius,te=se((t==null?void 0:t.borderColor)??We.borderColor),Se=(t==null?void 0:t.borderWidth)??We.borderWidth,Ae=(t==null?void 0:t.boxShadow)??We.boxShadow,ge=tx(Ae),Le=(t==null?void 0:t.rotation)??We.rotation,J=(t==null?void 0:t.rotationTablet)??null,V=(t==null?void 0:t.rotationMobile)??null,K=J??Le,j=V??K,Y=ne=>{const Ie=ne*Math.PI/180,Ze=ne%180!==0?1/(Math.abs(Math.cos(Ie))+Math.abs(Math.sin(Ie))):1;return`rotate(${ne}deg) scale(${Ze})`},fe=Le,ve=fe?{transform:Y(fe),transformOrigin:"center"}:{},pe=J!=null||V!=null?`
|
|
64
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of e.seen.entries()){const h=c[1];if(t===c[0]){a(c);continue}if(e.external){const f=(s=e.external.registry.get(c[0]))==null?void 0:s.id;if(t!==c[0]&&f){a(c);continue}}if((u=e.metadataRegistry.get(c[0]))==null?void 0:u.id){a(c);continue}if(h.cycle){a(c);continue}if(h.count>1&&e.reused==="ref"){a(c);continue}}}function Mc(e,t){var l,s,u,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=h=>{const d=e.seen.get(h);if(d.ref===null)return;const f=d.def??d.schema,p={...f},b=d.ref;if(d.ref=null,b){r(b);const w=e.seen.get(b),k=w.schema;if(k.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(k)):Object.assign(f,k),Object.assign(f,p),h._zod.parent===b)for(const v in f)v==="$ref"||v==="allOf"||v in p||delete f[v];if(k.$ref&&w.def)for(const v in f)v==="$ref"||v==="allOf"||v in w.def&&JSON.stringify(f[v])===JSON.stringify(w.def[v])&&delete f[v]}const x=h._zod.parent;if(x&&x!==b){r(x);const w=e.seen.get(x);if(w!=null&&w.schema.$ref&&(f.$ref=w.schema.$ref,w.def))for(const k in f)k==="$ref"||k==="allOf"||k in w.def&&JSON.stringify(f[k])===JSON.stringify(w.def[k])&&delete f[k]}e.override({zodSchema:h,jsonSchema:f,path:d.path??[]})};for(const h of[...e.seen.entries()].reverse())r(h[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(l=e.external)!=null&&l.uri){const h=(s=e.external.registry.get(t))==null?void 0:s.id;if(!h)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(h)}Object.assign(o,n.def??n.schema);const a=(u=e.metadataRegistry.get(t))==null?void 0:u.id;a!==void 0&&o.id===a&&delete o.id;const i=((c=e.external)==null?void 0:c.defs)??{};for(const h of e.seen.entries()){const d=h[1];d.def&&d.defId&&(d.def.id===d.defId&&delete d.def.id,i[d.defId]=d.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{const h=JSON.parse(JSON.stringify(o));return Object.defineProperty(h,"~standard",{value:{...t["~standard"],jsonSchema:{input:Wr(t,"input",e.processors),output:Wr(t,"output",e.processors)}},enumerable:!1,writable:!1}),h}catch{throw new Error("Error converting schema to JSON.")}}function Xe(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Xe(r.element,n);if(r.type==="set")return Xe(r.valueType,n);if(r.type==="lazy")return Xe(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Xe(r.innerType,n);if(r.type==="intersection")return Xe(r.left,n)||Xe(r.right,n);if(r.type==="record"||r.type==="map")return Xe(r.keyType,n)||Xe(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Xe(r.in,n)||Xe(r.out,n);if(r.type==="object"){for(const o in r.shape)if(Xe(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(Xe(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(Xe(o,n))return!0;return!!(r.rest&&Xe(r.rest,n))}return!1}const Fp=(e,t={})=>n=>{const r=Ec({...n,processors:t});return Te(e,r),Nc(r,e),Mc(r,e)},Wr=(e,t,n={})=>r=>{const{libraryOptions:o,target:a}=r??{},i=Ec({...o??{},target:a,io:t,processors:n});return Te(e,i),Nc(i,e),Mc(i,e)},Hp={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Gp=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:a,maximum:i,format:l,patterns:s,contentEncoding:u}=e._zod.bag;if(typeof a=="number"&&(o.minLength=a),typeof i=="number"&&(o.maxLength=i),l&&(o.format=Hp[l]??l,o.format===""&&delete o.format,l==="time"&&delete o.format),u&&(o.contentEncoding=u),s&&s.size>0){const c=[...s];c.length===1?o.pattern=c[0].source:c.length>1&&(o.allOf=[...c.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},Wp=(e,t,n,r)=>{const o=n,{minimum:a,maximum:i,format:l,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof l=="string"&&l.includes("int")?o.type="integer":o.type="number";const h=typeof c=="number"&&c>=(a??Number.NEGATIVE_INFINITY),d=typeof u=="number"&&u<=(i??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";h?f?(o.minimum=c,o.exclusiveMinimum=!0):o.exclusiveMinimum=c:typeof a=="number"&&(o.minimum=a),d?f?(o.maximum=u,o.exclusiveMaximum=!0):o.exclusiveMaximum=u:typeof i=="number"&&(o.maximum=i),typeof s=="number"&&(o.multipleOf=s)},Up=(e,t,n,r)=>{n.type="boolean"},Zp=(e,t,n,r)=>{n.not={}},qp=(e,t,n,r)=>{},Vp=(e,t,n,r)=>{},Yp=(e,t,n,r)=>{const o=e._zod.def,a=cc(o.entries);a.every(i=>typeof i=="number")&&(n.type="number"),a.every(i=>typeof i=="string")&&(n.type="string"),n.enum=a},Kp=(e,t,n,r)=>{const o=e._zod.def,a=[];for(const i of o.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");a.push(Number(i))}else a.push(i);if(a.length!==0)if(a.length===1){const i=a[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else a.every(i=>typeof i=="number")&&(n.type="number"),a.every(i=>typeof i=="string")&&(n.type="string"),a.every(i=>typeof i=="boolean")&&(n.type="boolean"),a.every(i=>i===null)&&(n.type="null"),n.enum=a},Jp=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Xp=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Qp=(e,t,n,r)=>{const o=n,a=e._zod.def,{minimum:i,maximum:l}=e._zod.bag;typeof i=="number"&&(o.minItems=i),typeof l=="number"&&(o.maxItems=l),o.type="array",o.items=Te(a.element,t,{...r,path:[...r.path,"items"]})},eg=(e,t,n,r)=>{var u;const o=n,a=e._zod.def;o.type="object",o.properties={};const i=a.shape;for(const c in i)o.properties[c]=Te(i[c],t,{...r,path:[...r.path,"properties",c]});const l=new Set(Object.keys(i)),s=new Set([...l].filter(c=>{const h=a.shape[c]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));s.size>0&&(o.required=Array.from(s)),((u=a.catchall)==null?void 0:u._zod.def.type)==="never"?o.additionalProperties=!1:a.catchall?a.catchall&&(o.additionalProperties=Te(a.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},tg=(e,t,n,r)=>{const o=e._zod.def,a=o.inclusive===!1,i=o.options.map((l,s)=>Te(l,t,{...r,path:[...r.path,a?"oneOf":"anyOf",s]}));a?n.oneOf=i:n.anyOf=i},ng=(e,t,n,r)=>{const o=e._zod.def,a=Te(o.left,t,{...r,path:[...r.path,"allOf",0]}),i=Te(o.right,t,{...r,path:[...r.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,s=[...l(a)?a.allOf:[a],...l(i)?i.allOf:[i]];n.allOf=s},rg=(e,t,n,r)=>{const o=n,a=e._zod.def;o.type="array";const i=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=a.items.map((d,f)=>Te(d,t,{...r,path:[...r.path,i,f]})),u=a.rest?Te(a.rest,t,{...r,path:[...r.path,l,...t.target==="openapi-3.0"?[a.items.length]:[]]}):null;t.target==="draft-2020-12"?(o.prefixItems=s,u&&(o.items=u)):t.target==="openapi-3.0"?(o.items={anyOf:s},u&&o.items.anyOf.push(u),o.minItems=s.length,u||(o.maxItems=s.length)):(o.items=s,u&&(o.additionalItems=u));const{minimum:c,maximum:h}=e._zod.bag;typeof c=="number"&&(o.minItems=c),typeof h=="number"&&(o.maxItems=h)},og=(e,t,n,r)=>{const o=n,a=e._zod.def;o.type="object";const i=a.keyType,l=i._zod.bag,s=l==null?void 0:l.patterns;if(a.mode==="loose"&&s&&s.size>0){const c=Te(a.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(const h of s)o.patternProperties[h.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=Te(a.keyType,t,{...r,path:[...r.path,"propertyNames"]})),o.additionalProperties=Te(a.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const u=i._zod.values;if(u){const c=[...u].filter(h=>typeof h=="string"||typeof h=="number");c.length>0&&(o.required=c)}},ag=(e,t,n,r)=>{const o=e._zod.def,a=Te(o.innerType,t,r),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=o.innerType,n.nullable=!0):n.anyOf=[a,{type:"null"}]},ig=(e,t,n,r)=>{const o=e._zod.def;Te(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType},lg=(e,t,n,r)=>{const o=e._zod.def;Te(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},sg=(e,t,n,r)=>{const o=e._zod.def;Te(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},cg=(e,t,n,r)=>{const o=e._zod.def;Te(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType;let i;try{i=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},ug=(e,t,n,r)=>{const o=e._zod.def,a=o.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?a?o.out:o.in:o.out;Te(i,t,r);const l=t.seen.get(e);l.ref=i},dg=(e,t,n,r)=>{const o=e._zod.def;Te(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,n.readOnly=!0},Pc=(e,t,n,r)=>{const o=e._zod.def;Te(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType},hg=(e,t,n,r)=>{const o=e._zod.innerType;Te(o,t,r);const a=t.seen.get(e);a.ref=o},fg=N("ZodISODateTime",(e,t)=>{lf.init(e,t),Ee.init(e,t)});function pg(e){return mp(fg,e)}const gg=N("ZodISODate",(e,t)=>{sf.init(e,t),Ee.init(e,t)});function mg(e){return bp(gg,e)}const bg=N("ZodISOTime",(e,t)=>{cf.init(e,t),Ee.init(e,t)});function xg(e){return xp(bg,e)}const vg=N("ZodISODuration",(e,t)=>{uf.init(e,t),Ee.init(e,t)});function kg(e){return vp(vg,e)}const wg=(e,t)=>{fc.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Xd(e,n)},flatten:{value:n=>Jd(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,ua,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,ua,2)}},isEmpty:{get(){return e.issues.length===0}}})},lt=N("ZodError",wg,{Parent:Error}),Sg=ci(lt),$g=ui(lt),_g=so(lt),Cg=co(lt),Ag=th(lt),yg=nh(lt),Ig=rh(lt),Rg=oh(lt),Tg=ah(lt),Eg=ih(lt),Ng=lh(lt),Mg=sh(lt),ml=new WeakMap;function ar(e,t,n){const r=Object.getPrototypeOf(e);let o=ml.get(r);if(o||(o=new Set,ml.set(r,o)),!o.has(t)){o.add(t);for(const a in n){const i=n[a];Object.defineProperty(r,a,{configurable:!0,enumerable:!1,get(){const l=i.bind(this);return Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}const _e=N("ZodType",(e,t)=>($e.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Wr(e,"input"),output:Wr(e,"output")}}),e.toJSONSchema=Fp(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>Sg(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>_g(e,n,r),e.parseAsync=async(n,r)=>$g(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Cg(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Ag(e,n,r),e.decode=(n,r)=>yg(e,n,r),e.encodeAsync=async(n,r)=>Ig(e,n,r),e.decodeAsync=async(n,r)=>Rg(e,n,r),e.safeEncode=(n,r)=>Tg(e,n,r),e.safeDecode=(n,r)=>Eg(e,n,r),e.safeEncodeAsync=async(n,r)=>Ng(e,n,r),e.safeDecodeAsync=async(n,r)=>Mg(e,n,r),ar(e,"ZodType",{check(...n){const r=this.def;return this.clone(Ut(r,{checks:[...r.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return Zt(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(Rm(n,r))},superRefine(n,r){return this.check(Tm(n,r))},overwrite(n){return this.check(Tn(n))},optional(){return wl(this)},exactOptional(){return pm(this)},nullable(){return Sl(this)},nullish(){return wl(Sl(this))},nonoptional(n){return km(this,n)},array(){return oe(this)},or(n){return H([this,n])},and(n){return cm(this,n)},transform(n){return $l(this,Bc(n))},default(n){return bm(this,n)},prefault(n){return vm(this,n)},catch(n){return Sm(this,n)},pipe(n){return $l(this,n)},readonly(){return Cm(this)},describe(n){const r=this.clone();return Gn.add(r,{description:n}),r},meta(...n){if(n.length===0)return Gn.get(this);const r=this.clone();return Gn.add(r,n[0]),r},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=Gn.get(e))==null?void 0:n.description},configurable:!0}),e)),Lc=N("_ZodString",(e,t)=>{di.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(r,o,a)=>Gp(e,r,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,ar(e,"_ZodString",{regex(...r){return this.check(Ap(...r))},includes(...r){return this.check(Rp(...r))},startsWith(...r){return this.check(Tp(...r))},endsWith(...r){return this.check(Ep(...r))},min(...r){return this.check(Gr(...r))},max(...r){return this.check(Rc(...r))},length(...r){return this.check(Tc(...r))},nonempty(...r){return this.check(Gr(1,...r))},lowercase(r){return this.check(yp(r))},uppercase(r){return this.check(Ip(r))},trim(){return this.check(Mp())},normalize(...r){return this.check(Np(...r))},toLowerCase(){return this.check(Pp())},toUpperCase(){return this.check(Lp())},slugify(){return this.check(Op())}})}),Pg=N("ZodString",(e,t)=>{di.init(e,t),Lc.init(e,t),e.email=n=>e.check(Yf(Lg,n)),e.url=n=>e.check(ep(Og,n)),e.jwt=n=>e.check(gp(Jg,n)),e.emoji=n=>e.check(tp(zg,n)),e.guid=n=>e.check(hl(bl,n)),e.uuid=n=>e.check(Kf(br,n)),e.uuidv4=n=>e.check(Jf(br,n)),e.uuidv6=n=>e.check(Xf(br,n)),e.uuidv7=n=>e.check(Qf(br,n)),e.nanoid=n=>e.check(np(jg,n)),e.guid=n=>e.check(hl(bl,n)),e.cuid=n=>e.check(rp(Bg,n)),e.cuid2=n=>e.check(op(Dg,n)),e.ulid=n=>e.check(ap(Fg,n)),e.base64=n=>e.check(hp(Vg,n)),e.base64url=n=>e.check(fp(Yg,n)),e.xid=n=>e.check(ip(Hg,n)),e.ksuid=n=>e.check(lp(Gg,n)),e.ipv4=n=>e.check(sp(Wg,n)),e.ipv6=n=>e.check(cp(Ug,n)),e.cidrv4=n=>e.check(up(Zg,n)),e.cidrv6=n=>e.check(dp(qg,n)),e.e164=n=>e.check(pp(Kg,n)),e.datetime=n=>e.check(pg(n)),e.date=n=>e.check(mg(n)),e.time=n=>e.check(xg(n)),e.duration=n=>e.check(kg(n))});function $(e){return Vf(Pg,e)}const Ee=N("ZodStringFormat",(e,t)=>{Re.init(e,t),Lc.init(e,t)}),Lg=N("ZodEmail",(e,t)=>{Jh.init(e,t),Ee.init(e,t)}),bl=N("ZodGUID",(e,t)=>{Yh.init(e,t),Ee.init(e,t)}),br=N("ZodUUID",(e,t)=>{Kh.init(e,t),Ee.init(e,t)}),Og=N("ZodURL",(e,t)=>{Xh.init(e,t),Ee.init(e,t)}),zg=N("ZodEmoji",(e,t)=>{Qh.init(e,t),Ee.init(e,t)}),jg=N("ZodNanoID",(e,t)=>{ef.init(e,t),Ee.init(e,t)}),Bg=N("ZodCUID",(e,t)=>{tf.init(e,t),Ee.init(e,t)}),Dg=N("ZodCUID2",(e,t)=>{nf.init(e,t),Ee.init(e,t)}),Fg=N("ZodULID",(e,t)=>{rf.init(e,t),Ee.init(e,t)}),Hg=N("ZodXID",(e,t)=>{of.init(e,t),Ee.init(e,t)}),Gg=N("ZodKSUID",(e,t)=>{af.init(e,t),Ee.init(e,t)}),Wg=N("ZodIPv4",(e,t)=>{df.init(e,t),Ee.init(e,t)}),Ug=N("ZodIPv6",(e,t)=>{hf.init(e,t),Ee.init(e,t)}),Zg=N("ZodCIDRv4",(e,t)=>{ff.init(e,t),Ee.init(e,t)}),qg=N("ZodCIDRv6",(e,t)=>{pf.init(e,t),Ee.init(e,t)}),Vg=N("ZodBase64",(e,t)=>{gf.init(e,t),Ee.init(e,t)}),Yg=N("ZodBase64URL",(e,t)=>{bf.init(e,t),Ee.init(e,t)}),Kg=N("ZodE164",(e,t)=>{xf.init(e,t),Ee.init(e,t)}),Jg=N("ZodJWT",(e,t)=>{kf.init(e,t),Ee.init(e,t)}),Oc=N("ZodNumber",(e,t)=>{$c.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(r,o,a)=>Wp(e,r,o),ar(e,"ZodNumber",{gt(r,o){return this.check(pl(r,o))},gte(r,o){return this.check(So(r,o))},min(r,o){return this.check(So(r,o))},lt(r,o){return this.check(fl(r,o))},lte(r,o){return this.check(wo(r,o))},max(r,o){return this.check(wo(r,o))},int(r){return this.check(xl(r))},safe(r){return this.check(xl(r))},positive(r){return this.check(pl(0,r))},nonnegative(r){return this.check(So(0,r))},negative(r){return this.check(fl(0,r))},nonpositive(r){return this.check(wo(0,r))},multipleOf(r,o){return this.check(gl(r,o))},step(r,o){return this.check(gl(r,o))},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 g(e){return kp(Oc,e)}const Xg=N("ZodNumberFormat",(e,t)=>{wf.init(e,t),Oc.init(e,t)});function xl(e){return wp(Xg,e)}const Qg=N("ZodBoolean",(e,t)=>{Sf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Up(e,n,r)});function O(e){return Sp(Qg,e)}const em=N("ZodAny",(e,t)=>{$f.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qp()});function Xn(){return $p(em)}const tm=N("ZodUnknown",(e,t)=>{_f.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Vp()});function vl(){return _p(tm)}const nm=N("ZodNever",(e,t)=>{Cf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Zp(e,n,r)});function rm(e){return Cp(nm,e)}const om=N("ZodArray",(e,t)=>{Af.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Qp(e,n,r,o),e.element=t.element,ar(e,"ZodArray",{min(n,r){return this.check(Gr(n,r))},nonempty(n){return this.check(Gr(1,n))},max(n,r){return this.check(Rc(n,r))},length(n,r){return this.check(Tc(n,r))},unwrap(){return this.element}})});function oe(e,t){return zp(om,e,t)}const am=N("ZodObject",(e,t)=>{If.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>eg(e,n,r,o),de(e,"shape",()=>t.shape),ar(e,"ZodObject",{keyof(){return T(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:vl()})},loose(){return this.clone({...this._zod.def,catchall:vl()})},strict(){return this.clone({...this._zod.def,catchall:rm()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return Ud(this,n)},safeExtend(n){return Zd(this,n)},merge(n){return qd(this,n)},pick(n){return Gd(this,n)},omit(n){return Wd(this,n)},partial(...n){return Vd(Dc,this,n[0])},required(...n){return Yd(Fc,this,n[0])}})});function A(e,t){const n={type:"object",shape:e??{},...Z(t)};return new am(n)}const zc=N("ZodUnion",(e,t)=>{Ac.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>tg(e,n,r,o),e.options=t.options});function H(e,t){return new zc({type:"union",options:e,...Z(t)})}const im=N("ZodDiscriminatedUnion",(e,t)=>{zc.init(e,t),Rf.init(e,t)});function lm(e,t,n){return new im({type:"union",options:t,discriminator:e,...Z(n)})}const sm=N("ZodIntersection",(e,t)=>{Tf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ng(e,n,r,o)});function cm(e,t){return new sm({type:"intersection",left:e,right:t})}const um=N("ZodTuple",(e,t)=>{Ef.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>rg(e,n,r,o),e.rest=n=>e.clone({...e._zod.def,rest:n})});function jc(e,t,n){const r=t instanceof $e,o=r?n:t,a=r?t:null;return new um({type:"tuple",items:e,rest:a,...Z(o)})}const kl=N("ZodRecord",(e,t)=>{Nf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>og(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function yn(e,t,n){return!t||!t._zod?new kl({type:"record",keyType:$(),valueType:e,...Z(t)}):new kl({type:"record",keyType:e,valueType:t,...Z(n)})}const ha=N("ZodEnum",(e,t)=>{Mf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(r,o,a)=>Yp(e,r,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const a={};for(const i of r)if(n.has(i))a[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new ha({...t,checks:[],...Z(o),entries:a})},e.exclude=(r,o)=>{const a={...t.entries};for(const i of r)if(n.has(i))delete a[i];else throw new Error(`Key ${i} not found in enum`);return new ha({...t,checks:[],...Z(o),entries:a})}});function T(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new ha({type:"enum",entries:n,...Z(t)})}const dm=N("ZodLiteral",(e,t)=>{Pf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Kp(e,n,r),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 le(e,t){return new dm({type:"literal",values:Array.isArray(e)?e:[e],...Z(t)})}const hm=N("ZodTransform",(e,t)=>{Lf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Xp(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new sc(e.constructor.name);n.addIssue=a=>{if(typeof a=="string")n.issues.push(Jn(a,n.value,t));else{const i=a;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(Jn(i))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(a=>(n.value=a,n.fallback=!0,n)):(n.value=o,n.fallback=!0,n)}});function Bc(e){return new hm({type:"transform",transform:e})}const Dc=N("ZodOptional",(e,t)=>{yc.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Pc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function wl(e){return new Dc({type:"optional",innerType:e})}const fm=N("ZodExactOptional",(e,t)=>{Of.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Pc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function pm(e){return new fm({type:"optional",innerType:e})}const gm=N("ZodNullable",(e,t)=>{zf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ag(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Sl(e){return new gm({type:"nullable",innerType:e})}const mm=N("ZodDefault",(e,t)=>{jf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>lg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function bm(e,t){return new mm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():dc(t)}})}const xm=N("ZodPrefault",(e,t)=>{Bf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>sg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function vm(e,t){return new xm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():dc(t)}})}const Fc=N("ZodNonOptional",(e,t)=>{Df.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ig(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function km(e,t){return new Fc({type:"nonoptional",innerType:e,...Z(t)})}const wm=N("ZodCatch",(e,t)=>{Ff.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>cg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Sm(e,t){return new wm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Hc=N("ZodPipe",(e,t)=>{Ic.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ug(e,n,r,o),e.in=t.in,e.out=t.out});function $l(e,t){return new Hc({type:"pipe",in:e,out:t})}const $m=N("ZodPreprocess",(e,t)=>{Hc.init(e,t),Hf.init(e,t)}),_m=N("ZodReadonly",(e,t)=>{Gf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>dg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Cm(e){return new _m({type:"readonly",innerType:e})}const Am=N("ZodLazy",(e,t)=>{Wf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hg(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function ym(e){return new Am({type:"lazy",getter:e})}const Im=N("ZodCustom",(e,t)=>{Uf.init(e,t),_e.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Jp(e,n)});function Rm(e,t={}){return jp(Im,e,t)}function Tm(e,t){return Bp(e,t)}function Gc(e,t){return new $m({type:"pipe",in:Bc(e),out:t})}var Em=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Nm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,_l=A({style:A({textAlign:T(["left","center","right"]).optional().nullable(),padding:Em}).optional().nullable(),props:A({size:g().gt(0).optional().nullable(),shape:T(["circle","square","rounded"]).optional().nullable(),imageUrl:$().optional().nullable(),alt:$().optional().nullable()}).optional().nullable()});function Mm(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var xr={size:64,imageUrl:"",alt:"",shape:"square"};function Cl({style:e,props:t}){var n,r,o,a,i;const l=(n=t==null?void 0:t.size)!=null?n:xr.size,s=(r=t==null?void 0:t.imageUrl)!=null?r:xr.imageUrl,u=(o=t==null?void 0:t.alt)!=null?o:xr.alt,c=(a=t==null?void 0:t.shape)!=null?a:xr.shape,h={textAlign:(i=e==null?void 0:e.textAlign)!=null?i:void 0,padding:Nm(e==null?void 0:e.padding)};return U.createElement("div",{style:h},U.createElement("img",{alt:u,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:Mm(c,l)}}))}const Pm=A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),Lm=$().regex(/^(#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\([^\)]+\))$/i),At=A({enabled:O(),scale:g().min(1).max(1.5).optional().nullable(),duration:g().min(0).max(3e3).optional().nullable(),easing:T(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable(),borderColor:Lm.optional().nullable(),borderWidth:g().min(0).max(20).optional().nullable(),borderStyle:T(["solid","dashed","dotted"]).optional().nullable(),textDecoration:T(["none","underline","overline","line-through"]).optional().nullable()}).optional().nullable(),vr=(e,t,n)=>{const r=`.${e}:hover${t}`;return n?`${r}, .container-block:hover:not(:has(.container-block .${e})) .${e}${t}`:r};function Ot(e,t,{themedBorderColor:n,scaleTarget:r="",borderTarget:o="",scaleFromContainer:a=!1,borderFromContainer:i=!1,defaultScale:l=1.05,scaleBaseCss:s=""}={}){if(!(t!=null&&t.enabled)||!e)return null;const u=`${t.duration??500}ms ${t.easing??"ease-in-out"}`,c=`transition: transform ${u}, outline-color ${u};`,h=[],d=t.scale??l;d>1&&(h.push(`.${e}${r} { ${s} ${c} }`),h.push(`${vr(e,r,a)} { transform: scale(${d}); }`));const f=t.borderWidth??1;if(t.borderColor&&n&&f>0&&(h.push(`.${e}${o} { outline: ${f}px ${t.borderStyle??"solid"} transparent !important; outline-offset: -${f}px; ${c} }`),h.push(`${vr(e,o,i)} { outline-color: ${n} !important; }`)),t.textDecoration&&t.textDecoration!=="none"){const p=`${vr(e,"",!0)}, ${vr(e," *",!0)}`;h.push(`${p} { text-decoration: ${t.textDecoration} !important; }`)}return h.join(`
|
|
65
|
+
`)||null}const Om=_l.extend({props:_l.shape.props.unwrap().unwrap().extend({decorative:O().optional().nullable(),hoverEffect:At,animation:Pm}).optional().nullable()});function Wt(e){if(!e)return"";let t=String(e).trim().toLowerCase().replace(/\s+/g,"");const n=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/.exec(t);return n&&(t=`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}`),t}const re=(e,t=[],n)=>({role:e,seeds:t.map(Wt),nullFallback:n}),Ur={pageText:re("text",[],"#262626"),containerFill:re("surface",[],"#ffffff"),layoutText:re("text",["#262626","#1f2937"],"#262626"),canvas:re("surface",["#ffffff"]),closeIcon:re("text",["#000000","#262626"],"#262626"),brandingText:re("text-muted",[],"#8a8a8a"),blockText:re("text",["#262626"]),listText:re("text"),link:re("link",[],"#2563eb"),codeBg:re("surface-alt",[],"#f3f4f6"),quoteBorder:re("text-muted",[],"#9ca3af"),divider:re("border",["#cccccc","#333333"],"#cccccc"),tableText:re("text",["#262626"]),tableBorder:re("border",["#e5e7eb"]),tableHeaderBg:re("surface-alt",["#f3f4f6"]),tableHeaderText:re("text-strong",["#111827"]),tableStripe:re("surface-alt",["#f8f6f6"]),track:re("track",["#e5e7eb"]),trackText:re("text",["#262626"]),timerText:re("text",[],"#1f1f1f"),timerLabel:re("text-muted",[],"#6b7280"),timerTrack:re("track",[],"#e5e7eb"),breadcrumbText:re("text-muted",["#595959"]),menuText:re("text",["#000000"],"#000000"),menuSurface:re("surface",[],"#ffffff"),carouselArrow:re("text",[],"#262626"),carouselArrowBg:re("surface",[],"#ffffff"),carouselArrowBorder:re("border-subtle",[],"rgba(0,0,0,.12)"),carouselDot:re("track",[],"#d4d4d4"),carouselDotActive:re("text",[],"#262626"),paginationBg:re("surface",["#ffffff"],"#ffffff"),paginationText:re("text",["#262626"],"#262626"),paginationBorder:re("border-subtle",["rgba(0,0,0,.12)"],"rgba(0,0,0,.12)"),surface:re("surface",[],"#ffffff"),surfaceLiteral:re("surface"),bgAdaptive:re("surface"),buttonText:re("text"),borderAdaptive:re("border"),borderSubtle:re("border-subtle",[],"rgba(0,0,0,.12)"),surfaceAlt:re("surface-alt"),tabsRing:re("border",[],"#d0d5dd")},Wc=e=>/gradient\(|url\(/i.test(e);function Zr(e){const t=Wt(e);let n=/^#([0-9a-f]{6})([0-9a-f]{2})?$/.exec(t);if(n){const r=parseInt(n[1],16);return{r:r>>16&255,g:r>>8&255,b:r&255,a:n[2]?parseInt(n[2],16)/255:1}}return n=/^rgba?\((\d{1,3}),(\d{1,3}),(\d{1,3})(?:,([\d.]+))?\)$/.exec(t),n?{r:+n[1],g:+n[2],b:+n[3],a:n[4]!==void 0?+n[4]:1}:null}function Al({r:e,g:t,b:n}){const r=o=>{const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)};return .2126*r(e)+.7152*r(t)+.0722*r(n)}function zm({r:e,g:t,b:n}){const r=e/255,o=t/255,a=n/255,i=Math.max(r,o,a),l=Math.min(r,o,a),s=(i+l)/2,u=i-l;if(u===0)return{h:0,s:0,l:s};const c=u/(1-Math.abs(2*s-1));return{h:((i===r?(o-a)/u%6:i===o?(a-r)/u+2:(r-o)/u+4)*60+360)%360,s:c,l:s}}function $o(e,t,n,r){const o=(1-Math.abs(2*n-1))*t,a=o*(1-Math.abs(e/60%2-1)),i=n-o/2,[l,s,u]=e<60?[o,a,0]:e<120?[a,o,0]:e<180?[0,o,a]:e<240?[0,a,o]:e<300?[a,0,o]:[o,0,a],c=h=>Math.round((h+i)*255).toString(16).padStart(2,"0");return`#${c(l)}${c(s)}${c(u)}${r<1?Math.round(r*255).toString(16).padStart(2,"0"):""}`}function ho(e,t){const n=Zr(e);if(!n||n.a===0)return null;const{h:r,s:o,l:a}=zm(n);if(t==="text"){if(Al(n)>=.2)return null;let i=a,l=$o(r,o,i,n.a);const s=o<.1?.75:.4;for(;i<.97&&Al(Zr(l))<s;)i=Math.min(.97,i+.02),l=$o(r,o,i,n.a);return l}return a<=.82?null:$o(r,o*.5,Math.min(.18,Math.max(.07,1-a)),n.a)}const Uc=["text","text-strong","text-muted","link"],Zc=["surface","surface-alt","track"],jm=e=>Uc.includes(e)?"text":Zc.includes(e)?"bg":null;function Bm(e){if(!e||!e.trim()||/^(transparent|none)$/i.test(e.trim()))return!0;const t=Zr(e);return!!t&&t.a===0}function qc(e){return!!e&&!Wc(e)&&ho(e,"bg")!==null}const Dm={text:["text","text-strong","text-muted","link"],bg:["surface","surface-alt","track"],border:["border","border-subtle","surface","surface-alt","track"]};let _o=null;function Fm(){if(_o)return _o;const e=new Map;return Object.values(Ur).forEach(t=>{e.has(t.role)||e.set(t.role,new Set),t.seeds.forEach(n=>e.get(t.role).add(n)),t.nullFallback&&e.get(t.role).add(Wt(t.nullFallback))}),_o=e,e}function Hm(e,t){var r;const n=Fm();for(const o of Dm[t])if((r=n.get(o))!=null&&r.has(e))return o;return null}const Vc=e=>Uc.includes(e)?"text":Zc.includes(e)?"bg":"border",Co=/(?:repeating-)?(?:linear|radial|conic)-gradient\(/gi,Gm=/^(to\s|[-+]?[\d.]+(?:deg|grad|rad|turn)\b|circle\b|ellipse\b|closest-|farthest-|at\s|from\s|in\s)/i;function Yc(e,t){let n=0;for(let r=t;r<e.length;r+=1)if(e[r]==="(")n+=1;else if(e[r]===")"&&(n-=1,n===0))return r;return-1}function Wm(e){const t=[];let n=0,r=0;for(let o=0;o<e.length;o+=1)e[o]==="("?n+=1:e[o]===")"?n-=1:e[o]===","&&n===0&&(t.push(e.slice(r,o)),r=o+1);return t.push(e.slice(r)),t}function Um(e,t,n){const r=/^\s*/.exec(e)[0],o=e.slice(r.length);if(!o||Gm.test(o))return e;let a="";const i=/^#[0-9a-fA-F]{3,8}(?![0-9a-zA-Z])/.exec(o);if(i)a=i[0];else if(/^rgba?\(/i.test(o)){const c=Yc(o,o.indexOf("("));c>0&&(a=o.slice(0,c+1))}if(!a)return/^(transparent)\b/i.test(o)||(n.literal+=1),e;const l=Zr(a),s=Hm(Wt(a),t);if(s)return n.adapted+=1,`${r}var(--pp-g-${s},${a})${o.slice(a.length)}`;const u=t==="border"?null:ho(a,t);return u?(n.adapted+=1,`${r}light-dark(${a},${u})${o.slice(a.length)}`):((!l||l.a>0)&&(n.literal+=1),e)}function Kc(e,t,n){let r="",o=0;Co.lastIndex=0;let a;for(;(a=Co.exec(e))!==null;){const i=a.index+a[0].length-1,l=Yc(e,i);if(l<0)break;const s=e.slice(i+1,l),u=Wm(s).map(c=>Um(c,t,n)).join(",");r+=e.slice(o,i+1)+u,o=l,Co.lastIndex=l+1}return r+e.slice(o)}function Zm(e,t="bg"){const n={adapted:0,literal:0},r=Kc(e,t,n);return n.adapted?r:e}function qm(e,t="bg"){const n={adapted:0,literal:0};return Kc(e,t,n),n.adapted>0&&n.literal===0}function z(e,t){const n=typeof t=="string"?Ur[t]:t;if(e==null||e==="")return n.nullFallback?`var(--pp-${n.role},${n.nullFallback})`:void 0;if(Wc(e))return/gradient\(/i.test(e)?Zm(e,Vc(n.role)):e;if(n.seeds.includes(Wt(e)))return`var(--pp-${n.role},${e})`;const r=jm(n.role),o=r?ho(e,r):null;return o?`light-dark(${e},${o})`:e}const Vm=/^(transparent|none|inherit|initial|unset|currentcolor)$/i;function ue(e,t,n){const r=(e??"").trim();if(n&&!t&&Ur[n].seeds.includes(Wt(r)))return{};if(n&&!t&&qc(r))return{};if(n&&!t&&/gradient\(/i.test(r)&&qm(r,Vc(Ur[n].role)))return{};const o=!!r&&!Vm.test(Wt(r))&&!/^rgba?\(.*,\s*0\)$/i.test(Wt(r)),a=!!t&&t.trim()!==""&&t.trim()!=="none";return o||a?{"data-pp-surface":"fixed"}:{}}function se(e){return e??void 0}function hi(){return e=>e??void 0}const yl=e=>{const t=ho(e.trim(),"text");return t?`light-dark(${e.trim()},${t})`:null},Ym=/<font\b([^>]*)>/gi,Il=/\scolor\s*=\s*(?:"([^"]*)"|'([^']*)')/i,Rl=/\sstyle\s*=\s*(?:"([^"]*)"|'([^']*)')/i,Km=/(\sstyle\s*=\s*)(?:"([^"]*)"|'([^']*)')/gi,Jm=/(^|[;\s])color\s*:\s*([^;]+?)(\s*!important)?\s*(?=;|$)/gi;function Xm(e){if(!e||!/color/i.test(e))return e;let t=e.replace(Ym,(n,r)=>{const o=Il.exec(r);if(!o)return n;const a=yl(o[1]??o[2]??"");if(!a)return n;const i=r.replace(Il,""),l=Rl.exec(i);if(l){const s=l[1]??l[2]??"";return`<font${i.replace(Rl,` style="color:${a};${s}"`)}>`}return`<font${i} style="color:${a}">`});return t=t.replace(Km,(n,r,o,a)=>{const i=o!==void 0?'"':"'",l=o??a??"";if(!/color/i.test(l))return n;const s=l.replace(Jm,(u,c,h,d)=>{const f=yl(h);return f?`${c}color:${f}${d??""}`:u});return s===l?n:`${r}${i}${s}${i}`}),t}function Jc(e){return Xm(e)}const Nr="--pp-text:#e6e6e6;--pp-text-strong:#f5f5f5;--pp-text-muted:#a3a3a3;--pp-link:#7aa7ff;--pp-surface:#121212;--pp-surface-alt:#1e1e1e;--pp-track:#2e2e2e;--pp-border:#3a3a3a;--pp-border-subtle:rgba(255,255,255,.12);--pp-icon-filter:invert(1) hue-rotate(180deg);--pp-scheme:dark",Wn="--pp-text:initial;--pp-text-strong:initial;--pp-text-muted:initial;--pp-link:initial;--pp-surface:initial;--pp-surface-alt:initial;--pp-track:initial;--pp-border:initial;--pp-border-subtle:initial;--pp-icon-filter:initial;--pp-scheme:light",Xc=e=>e.replace(/--pp-scheme:[a-z]+/,"").replace(/--pp-icon-filter:[^;]+;/,"").replace(/--pp-/g,"--pp-g-"),Ao=Xc(Nr),kr=Xc(Wn),Tl=e=>`[data-theme=${e}],[data-bs-theme=${e}],[data-mui-color-scheme=${e}],[data-color-mode=${e}]`,Qm=`:where(html.dark,body.dark){${Nr};${Ao}}:where(html.light,body.light){${Wn};${kr}}:where(html,body):where(${Tl("dark")}){${Nr};${Ao}}:where(html,body):where(${Tl("light")}){${Wn};${kr}}:where([data-pp-surface=fixed]>*){${kr}}:where([data-pp-theme=dark]){${Nr};${Ao}}:where([data-pp-theme=light]){${Wn};${kr}}:where([data-pp-surface=fixed]){${Wn};color:#262626}:where([data-ahd-tpl-root],[data-pp-scope],[data-pp-theme],[data-pp-surface=fixed]){color-scheme:var(--pp-scheme,light)}`;let eb=0;function tb({hoverEffect:e,children:t}){const n=U.useMemo(()=>`ahd-hv-wrap-${++eb}`,[]),r=Ot(n,e,{themedBorderColor:z(e==null?void 0:e.borderColor,"borderAdaptive"),scaleTarget:" img",borderTarget:" img",borderFromContainer:!0});return r?m.jsxs("div",{className:n,style:{display:"contents"},children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:r}}),t]}):m.jsx(m.Fragment,{children:t})}const Zn={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},ir=Object.values(Zn);let Qc=null;function El(e){Qc=e}function nb(){return Qc}function fi(){return"desktop"}const Ue=1024,Ve=640,_t=`@media (max-width: ${Ue}px)`,Qe=`@media (max-width: ${Ve}px)`,ln=`@media (min-width: ${Ve+1}px) and (max-width: ${Ue}px)`,Ye=A({tablet:yn($(),Xn()).optional().nullable(),mobile:yn($(),Xn()).optional().nullable()}).optional().nullable(),rb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ob=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M12 4V20M12 20L18 14M12 20L6 14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ab=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 6L6 18M6 18H14M6 18V10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ib=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 6L18 18M18 18V10M18 18H10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},lb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M20 12H4M4 12L10 18M4 12L10 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},sb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},cb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M12 20V4M12 4L6 10M12 4L18 10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ub=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 18L6 6M6 6V14M6 6H14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},db=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 18L18 6M18 6H10M18 6V14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},hb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},fb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 9L12 15L18 9",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},pb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M7 13L12 18L17 13M7 6L12 11L17 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},gb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M15 18L9 12L15 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},mb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 17L13 12L18 7M11 17L6 12L11 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},bb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M9 18L15 12L9 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},xb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 17L11 12L6 7M13 17L18 12L13 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},vb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 15L12 9L6 15",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},kb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 14",fill:"none",children:m.jsx("path",{d:"M11 13L6 8L1 13M11 6L6 1L1 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};function wb(e,t={fontSize:16}){if(!e)return null;switch(e){case"arrow-left":return m.jsx(rb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return m.jsx(lb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return m.jsx(hb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return m.jsx(sb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return m.jsx(ob,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return m.jsx(ab,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return m.jsx(ib,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return m.jsx(cb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return m.jsx(ub,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return m.jsx(db,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return m.jsx(gb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return m.jsx(bb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return m.jsx(vb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down":return m.jsx(fb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left-double":return m.jsx(mb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return m.jsx(xb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return m.jsx(kb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return m.jsx(pb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const Sb=4,Bt=e=>({[e==="left"?"marginRight":"marginLeft"]:Sb,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"}),$b=(e,t,n)=>({width:t,height:t,display:"block",backgroundColor:n,WebkitMaskImage:`url("${e}")`,maskImage:`url("${e}")`,WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskSize:"contain",maskSize:"contain"}),wr=e=>({display:"inline-flex",alignItems:"center",justifyContent:e}),Qn="data-ahd-var",eu=/(<span\s+data-ahd-var="[^"]*">\{\{[^}]+\}\}<\/span>)|(\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\})/g,_b=/[&<>"']/g,Cb={"&":"&","<":"<",">":">",'"':""","'":"'"};function $n(e){return e.replace(_b,t=>Cb[t])}function fo(e){return!e||e.indexOf("{{")===-1?e:e.replace(eu,(t,n,r,o)=>{if(n)return n;const a=$n(o);return`<span ${Qn}="${a}">{{${o}}}</span>`})}function pi(e){return!e||e.indexOf("{{")===-1?e:$n(e).replace(eu,(t,n,r,o)=>{if(n)return n;const a=$n(o);return`<span ${Qn}="${a}">{{${o}}}</span>`})}const Ab=/\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\}/g;function yb(e,t){if(!e||e.indexOf("{{")===-1)return e;const n=typeof window<"u"?window.location.search:void 0;if(n===void 0)return e;const r=new URLSearchParams(n||"");return e.replace(Ab,(o,a)=>{const i=r.get(a);return i!==null?encodeURIComponent(i):o})}function Ib(e,t){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search??""),r=e.querySelectorAll(`[${Qn}]`);for(let o=0;o<r.length;o++){const a=r[o],i=n.get(a.getAttribute(Qn)||"");i!==null&&(a.textContent=i)}}const fa="data-ahd-date",tu="data-ahd-date-format";function pa(e,t){const n=$n(e),r=t??"",o=$n(r),a=nu(r)||`{{${n}}}`;return`<span ${Qn}="${n}" ${fa}="${o}" ${tu}="relative">${$n(a)}</span>`}function nu(e,t=new Date){if(!e)return"";const n=new Date(e);if(Number.isNaN(n.getTime()))return"";const r=864e5,o=l=>new Date(l.getFullYear(),l.getMonth(),l.getDate()).getTime(),a=Math.round((o(n)-o(t))/r);if(a===0)return"Today";if(a===1)return"Tomorrow";if(a===-1)return"Yesterday";if(a>=-6&&a<=6)return n.toLocaleDateString(void 0,{weekday:"short"});const i=n.getFullYear()===t.getFullYear();return n.toLocaleDateString(void 0,{month:"short",day:"numeric",...i?{}:{year:"numeric"}})}function Rb(e,t){if(typeof window>"u")return;const n=e.querySelectorAll(`[${fa}][${tu}="relative"]`);for(let r=0;r<n.length;r++){const o=n[r],a=o.getAttribute(fa)||"",i=nu(a,t);i&&(o.textContent=i)}}const Tb=T(["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 yo(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 Eb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Nb=$().regex(/^rgba?\([^\)]+\)$/i),Mb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Pb=le("transparent"),Xt=H([Eb,Nb,Mb,Pb]).nullable().optional(),Lb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Ob=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),zb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),jb=H([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Bb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Db=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Fb=A({color:Xt,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:O().default(!1)}).partial().optional().nullable();function Hb(e){if(!(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")))return e;const n=e.match(/#([0-9a-fA-F]{3,8})|rgba?\([^)]+\)/);return(n==null?void 0:n[0])??"#000000"}function Gb(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${Hb(t)}`}}const Wb=A({style:A({backgroundColor:Xt,fontSize:g().min(0).optional().nullable(),fontFamily:Tb,fontWeight:T(["bold","normal",...ir]).optional().nullable(),textDecoration:T(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),buttonTextAlign:T(["left","center","right"]).optional().nullable(),padding:Lb,margin:Ob}).optional().nullable(),props:A({buttonBackground:Xt,hoverBackground:Xt,hoverTextColor:Xt,borderRadius:jb,borderWidth:zb,borderColor:Xt,boxShadow:Fb,buttonTextColor:Xt,fullWidth:O().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),size:T(["x-small","small","large","medium"]).optional().nullable(),sizeTablet:T(["x-small","small","large","medium"]).optional().nullable(),sizeMobile:T(["x-small","small","large","medium"]).optional().nullable(),text:$().optional().nullable(),url:$().optional().nullable(),action:T(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:O().optional().nullable(),customAction:$().optional().nullable(),actionPayload:yn($(),Xn()).optional().nullable(),iconEnabled:O().optional().nullable(),iconName:$().optional().nullable(),iconUrl:$().optional().nullable(),iconAlignment:T(["left","right"]).optional().nullable(),ariaLabel:$().optional().nullable(),goToStep:$().optional().nullable(),postMessageEvent:$().optional().nullable(),hoverEffect:At,animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable()}).optional().nullable(),responsive:Ye});function Nl(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 Ne={text:"",url:"",fullWidth:!1,widthType:"fit",width:200,widthUnit:"px",size:"medium",borderRadius:4,borderColor:"",boxShadow:null,buttonTextColor:"#000000",buttonBackground:"#ffffff",borderWidth:{top:0,right:0,bottom:0,left:0},action:"onNextStep",openInNewTab:!0,customAction:"",actionPayload:null,iconEnabled:!1,iconName:"",iconAlignment:"left",goToStep:"",postMessageEvent:""};function Ub({style:e,props:t}){var Vi;const r=`bh-${U.useId().replace(/:/g,"")}`,o=(t==null?void 0:t.text)??Ne.text,a=typeof o=="string"&&o.indexOf("{{")!==-1,i=(Be,dt)=>a?m.jsx("span",{style:Be,"data-action":dt,dangerouslySetInnerHTML:{__html:pi(o)}}):m.jsx("span",{style:Be,"data-action":dt,children:o}),l=(t==null?void 0:t.url)??Ne.url,s=yb(l),u=typeof window>"u"&&typeof s=="string"&&s.indexOf("{{")!==-1,c=(t==null?void 0:t.fullWidth)??Ne.fullWidth,h=(t==null?void 0:t.widthType)??Ne.widthType,d=(t==null?void 0:t.width)??Ne.width,f=(t==null?void 0:t.widthUnit)??Ne.widthUnit,p=(t==null?void 0:t.widthTablet)??null,b=(t==null?void 0:t.widthMobile)??null,x=p??d,w=b??x,k=(t==null?void 0:t.widthTypeTablet)??h,S=(t==null?void 0:t.widthTypeMobile)??k,v=(t==null?void 0:t.size)??Ne.size,_=(t==null?void 0:t.sizeTablet)??v,y=(t==null?void 0:t.sizeMobile)??_,C=h,I=d,R=(t==null?void 0:t.buttonTextColor)??Ne.buttonTextColor,E=(t==null?void 0:t.buttonBackground)??Ne.buttonBackground,L=qc(E),M=!/gradient\(/i.test(R??"")&&(L||Bm(E)),P=M?z(R,"buttonText"):se(R),B=L?z(E,"bgAdaptive"):se(E),D=M?"currentColor":P,F=(t==null?void 0:t.iconEnabled)??Ne.iconEnabled,G=(t==null?void 0:t.iconName)??Ne.iconName,W=(t==null?void 0:t.iconAlignment)??Ne.iconAlignment,X=(t==null?void 0:t.iconUrl)??null,Q=!!(F&&(X||G)),q=(t==null?void 0:t.ariaLabel)??null,te=typeof o=="string"&&o.trim().length>0,Se=q&&q.trim().length>0?q:!te&&F&&G?G:void 0,Ae=(t==null?void 0:t.action)??Ne.action,ge=(t==null?void 0:t.openInNewTab)??Ne.openInNewTab,J=((t==null?void 0:t.customAction)??Ne.customAction)||Ae,V=(t==null?void 0:t.actionPayload)??Ne.actionPayload,K=(t==null?void 0:t.goToStep)??Ne.goToStep,j=(t==null?void 0:t.postMessageEvent)??Ne.postMessageEvent,Y=V||(J==="goToStep"?{goToStep:K||""}:null)||(J==="postMessageEvent"?{postMessageEvent:j||""}:null),fe=Y?JSON.stringify(Y):void 0,ve=(t==null?void 0:t.borderRadius)??Ne.borderRadius,me=(t==null?void 0:t.borderWidth)??Ne.borderWidth,pe=(t==null?void 0:t.borderColor)??Ne.borderColor,ye=se(pe),ae=(t==null?void 0:t.boxShadow)??Ne.boxShadow,Pe=Gb(ae),De=(t==null?void 0:t.hoverBackground)??null,be=(t==null?void 0:t.hoverTextColor)??null,Fe=Nl(v),He=Be=>typeof Be=="number"?`${Be}px`:`${Be.topLeft}px ${Be.topRight}px ${Be.bottomRight}px ${Be.bottomLeft}px`,ee=(Be,dt)=>{if(typeof Be=="number")return`${Math.max(0,Be-dt)}px`;const vo=Math.max(0,(Be.topLeft||0)-dt),ko=Math.max(0,(Be.topRight||0)-dt),dn=Math.max(0,(Be.bottomRight||0)-dt),hn=Math.max(0,(Be.bottomLeft||0)-dt);return`${vo}px ${ko}px ${dn}px ${hn}px`},je=pe&&(pe.includes("linear-gradient")||pe.includes("radial-gradient")||pe.includes("repeating-linear-gradient")),ze=me&&((me.top??0)>0||(me.right??0)>0||(me.bottom??0)>0||(me.left??0)>0),ie={top:(me==null?void 0:me.top)??0,right:(me==null?void 0:me.right)??0,bottom:(me==null?void 0:me.bottom)??0,left:(me==null?void 0:me.left)??0},Ge=(()=>{if(c)return"100%";switch(C){case"fill":return"100%";case"fixed":return`${I}${f}`;case"fit":default:return"auto"}})(),et=(e==null?void 0:e.buttonTextAlign)??(e==null?void 0:e.textAlign)??"center",ot=et==="center"?"center":et==="right"?"flex-end":"flex-start",zt=()=>!pe||pe==="transparent"||!ze?{border:"none"}:je?{borderTop:`${ie.top}px solid transparent`,borderRight:`${ie.right}px solid transparent`,borderBottom:`${ie.bottom}px solid transparent`,borderLeft:`${ie.left}px solid transparent`,borderImage:`${ye} `,borderRadius:"0px"}:{borderTop:`${ie.top}px solid ${ye}`,borderRight:`${ie.right}px solid ${ye}`,borderBottom:`${ie.bottom}px solid ${ye}`,borderLeft:`${ie.left}px solid ${ye}`},It=E&&(E.includes("linear-gradient")||E.includes("radial-gradient")||E.includes("repeating-linear-gradient")),rt=R&&(R.includes("linear-gradient")||R.includes("radial-gradient")||R.includes("repeating-linear-gradient")),jt=(e==null?void 0:e.backgroundColor)&&(e.backgroundColor.includes("linear-gradient")||e.backgroundColor.includes("radial-gradient")||e.backgroundColor.includes("repeating-linear-gradient")),xt={backgroundColor:jt?void 0:(e==null?void 0:e.backgroundColor)??void 0,backgroundImage:jt?(e==null?void 0:e.backgroundColor)??void 0:void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:Bb(e==null?void 0:e.padding),margin:Db(e==null?void 0:e.margin)},Vt=zt(),Ke={...rt?{backgroundImage:P,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:P||void 0},textDecoration:(e==null?void 0:e.textDecoration)??"none"},Rt=It?void 0:B,ne=It?B:void 0,Ie=(e==null?void 0:e.fontSize)??16,Ze=`${Ie}px`,Je=()=>X?m.jsx("span",{"aria-hidden":"true",style:$b(X,Ie,rt?"currentColor":D||"currentColor")}):wb(G,{strokeColor:rt?void 0:D,fontSize:Ie}),Yt={fontSize:Ze,fontFamily:yo(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??Zn.REGULAR,backgroundColor:Rt,backgroundImage:ne,borderRadius:je?"0px":He(ve),...Vt,...je&&ze?{}:Pe,display:Ge==="100%"?"block":"inline-block",width:Ge,padding:`${Fe[0]}px ${Fe[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:ot,lineHeight:"normal"},ce=je&&ze?m.jsx("div",{style:{display:Ge==="100%"?"block":"inline-block",padding:`${ie.top}px ${ie.right}px ${ie.bottom}px ${ie.left}px`,background:ye,borderRadius:He(ve),width:Ge,boxSizing:"border-box",...Pe},children:m.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:ee(ve,Math.max(ie.top,ie.right,ie.bottom,ie.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??Zn.REGULAR,fontFamily:yo(e==null?void 0:e.fontFamily),backgroundImage:ne,backgroundColor:Rt,textAlign:et,textDecoration:"none",fontSize:Ze,padding:`${Fe[0]}px ${Fe[1]}px`,boxSizing:"border-box",lineHeight:"normal",...wr(ot)},"data-action":J,"data-action-payload":fe,"data-goto-step":J==="goToStep"&&K?K:void 0,"data-post-message-event":J==="postMessageEvent"&&j?j:void 0,type:"button","aria-label":Se,children:[Q&&W==="left"?m.jsx("span",{style:Bt("left"),"data-action":J,children:Je()}):null,i({...Ke,pointerEvents:"none"},J),Q&&W==="right"?m.jsx("span",{style:Bt("right"),"data-action":J,children:Je()}):null]})}):m.jsxs("button",{style:{cursor:"pointer",...Vt,...Pe,borderRadius:He(ve),width:Ge,fontWeight:(e==null?void 0:e.fontWeight)??Zn.REGULAR,fontFamily:yo(e==null?void 0:e.fontFamily),backgroundColor:Rt,backgroundImage:ne,textAlign:et,textDecoration:"none",fontSize:Ze,padding:`${Fe[0]}px ${Fe[1]}px`,boxSizing:"border-box",lineHeight:"normal",...wr(ot)},"data-action":J,"data-action-payload":fe,"data-goto-step":J==="goToStep"&&K?K:void 0,"data-post-message-event":J==="postMessageEvent"&&j?j:void 0,type:"button","aria-label":Se,children:[Q&&W==="left"?m.jsx("span",{style:Bt("left"),"data-action":J,children:Je()}):null,i({...Ke,pointerEvents:"none"},J),Q&&W==="right"?m.jsx("span",{style:Bt("right"),"data-action":J,children:Je()}):null]}),xe=!!De&&(De.includes("linear-gradient")||De.includes("radial-gradient")||De.includes("repeating-linear-gradient")),tt=!!be&&(be.includes("linear-gradient")||be.includes("radial-gradient")||be.includes("repeating-linear-gradient")),at=[];De&&(xe?at.push(`background-image: ${De} !important; background-color: transparent !important;`):at.push(`background-color: ${De} !important; background-image: none !important;`)),be&&!tt&&at.push(`color: ${be} !important;`);const Tt=be?tt?`background-image: ${be} !important; background-repeat: no-repeat !important; background-size: 100% 100% !important; -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent !important; color: transparent !important; display: inline-block;`:`background-image: none !important; color: ${be} !important; -webkit-text-fill-color: ${be} !important;`:"",Kt=at.length>0||Tt?`#${r} a:hover, #${r} button:hover { ${at.join(" ")} transition: background-color 150ms ease, background-image 150ms ease, color 150ms ease; } #${r} a:hover span, #${r} button:hover span { ${Tt} }`:null,Ui=(Be,dt,vo,ko)=>{const dn=[],hn=c||dt==="fill"?"100%":dt==="fixed"?`${vo}${f}`:"auto";dn.push(`width: ${hn} !important;`,"max-width: 100% !important;"),dn.push(`display: ${hn==="100%"?"block":"inline-block"} !important;`);const[Yi,Md]=Nl(ko);return dn.push(`padding: ${Yi}px ${Md}px !important;`),`${Be} { #${r} a, #${r} button { ${dn.join(" ")} } #${r} > div { width: ${hn} !important; max-width: 100% !important; display: ${hn==="100%"?"block":"inline-block"} !important; } }`},Zi=k!==h||_!==v||k==="fixed"&&x!==d,qi=S!==h||y!==v||S==="fixed"&&w!==d,fr=Zi||qi?[Zi?Ui(_t,k,x,_):"",qi?Ui(Qe,S,w,y):""].filter(Boolean).join(`
|
|
66
|
+
`):null,pr=Ot(r,t==null?void 0:t.hoverEffect,{themedBorderColor:z((Vi=t==null?void 0:t.hoverEffect)==null?void 0:Vi.borderColor,"borderAdaptive"),scaleTarget:" :is(a, button)",borderTarget:" :is(a, button)",scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1});if(Ae!=="link")return m.jsxs("div",{id:r,className:`button-block ${r}`,style:xt,children:[Kt&&m.jsx("style",{children:Kt}),pr&&m.jsx("style",{dangerouslySetInnerHTML:{__html:pr}}),fr&&m.jsx("style",{children:fr}),ce]});const Nd=je&&ze?m.jsx("div",{style:{display:Ge==="100%"?"block":"inline-block",padding:`${ie.top}px ${ie.right}px ${ie.bottom}px ${ie.left}px`,background:ye,borderRadius:He(ve),width:Ge,boxSizing:"border-box",...Pe},children:m.jsxs("a",{href:s,"data-ahd-href-tpl":u?s:void 0,style:{...Yt,border:"none",borderRadius:ee(ve,Math.max(ie.top,ie.right,ie.bottom,ie.left)),width:"100%",...wr(ot)},target:ge?"_blank":void 0,rel:ge?"noopener noreferrer":void 0,"aria-label":Se,children:[Q&&W==="left"?m.jsx("span",{style:Bt("left"),children:Je()}):null,i({...Ke,pointerEvents:"none"}),Q&&W==="right"?m.jsx("span",{style:Bt("right"),children:Je()}):null]})}):m.jsxs("a",{href:s,"data-ahd-href-tpl":u?s:void 0,style:{...Yt,borderRadius:He(ve),...wr(ot)},target:ge?"_blank":void 0,rel:ge?"noopener noreferrer":void 0,"aria-label":Se,children:[Q&&W==="left"?m.jsx("span",{style:Bt("left"),children:Je()}):null,i({...Ke,pointerEvents:"none"}),Q&&W==="right"?m.jsx("span",{style:Bt("right"),children:Je()}):null]});return m.jsxs("div",{id:r,className:`button-block ${r}`,style:xt,children:[Kt&&m.jsx("style",{children:Kt}),pr&&m.jsx("style",{dangerouslySetInnerHTML:{__html:pr}}),fr&&m.jsx("style",{children:fr}),Nd]})}const Zb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),qb=$().regex(/^rgba?\([^\)]+\)$/i),Vb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Yb=le("transparent"),Ml=H([Zb,qb,Vb,Yb]).nullable().optional(),Kb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Jb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Xb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Qb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,e0=A({style:A({backgroundColor:Ml,padding:Kb,margin:Jb}).optional().nullable(),props:A({lineColor:Ml,lineHeight:g().optional().nullable()}).optional().nullable()}),Pl={lineHeight:1,lineColor:"#333333"};function t0({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??Pl.lineHeight,r=z((t==null?void 0:t.lineColor)??Pl.lineColor,"divider"),o={padding:Xb(e==null?void 0:e.padding),margin:Qb(e==null?void 0:e.margin),backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),"--ahd-divider-thickness":`${n}px`};return m.jsx("div",{className:"divider-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:o,children:m.jsx("hr",{style:{width:"100%",border:"none",borderTopStyle:"solid",borderTopColor:r,borderTopWidth:`var(--ahd-divider-thickness, ${n}px)`,margin:0}})})}const n0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),r0=$().regex(/^rgba?\([^\)]+\)$/i),o0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),a0=le("transparent"),Io=H([n0,r0,o0,a0]).nullable().optional(),i0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),l0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),s0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,c0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,u0=T(["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 d0(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 h0=A({props:A({text:$().optional().nullable(),level:T(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:T(["text","link"]).optional().nullable(),url:$().optional().nullable(),openInNewTab:O().optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),hoverEffect:At}).optional().nullable(),style:A({color:Io,textColor:Io,backgroundColor:Io,fontFamily:u0,fontSize:g().optional().nullable(),lineClamp:g().int().gte(0).optional().nullable(),fontWeight:T(["bold","normal",...ir]).optional().nullable(),fontStyle:T(["italic","normal"]).optional().nullable(),textDecoration:T(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:i0,margin:l0}).optional().nullable(),responsive:Ye}),Ln={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};let f0=0;function p0({props:e,style:t}){var W;const n=U.useMemo(()=>`ahd-hv-heading-${++f0}`,[]),r=Ot(n,e==null?void 0:e.hoverEffect,{themedBorderColor:z((W=e==null?void 0:e.hoverEffect)==null?void 0:W.borderColor,"borderAdaptive"),scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1}),o=(e==null?void 0:e.level)??Ln.level,a=(e==null?void 0:e.text)??Ln.text,i=typeof a=="string"&&a.indexOf("{{")!==-1,l=(e==null?void 0:e.linkType)??Ln.linkType,s=(e==null?void 0:e.url)??Ln.url,u=(e==null?void 0:e.openInNewTab)??Ln.openInNewTab,c=l==="link"&&s,h=(t==null?void 0:t.fontSize)??g0(o),d=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),f=z(d,"blockText"),p=d&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(d),b=(t==null?void 0:t.textDecoration)??"none",x=p&&(b==="underline"||b==="underline line-through"),w=p&&(b==="line-through"||b==="underline line-through"),k=t==null?void 0:t.lineClamp,S=k&&k>0?{display:"-webkit-box",WebkitLineClamp:k,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},v={fontWeight:(t==null?void 0:t.fontWeight)??Zn.BOLD,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:p?"none":b,margin:0,fontFamily:d0(t==null?void 0:t.fontFamily),fontSize:h,...S},_=!!(k&&k>0),y=p?{lineHeight:"normal ",backgroundImage:f,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",position:"relative",..._?{}:{display:"inline-block"},...x?{paddingBottom:"0.08em"}:{}}:{color:f??void 0},C={position:"absolute",left:0,right:0,height:"0.08em",backgroundImage:f??void 0,pointerEvents:"none"},I={...C,bottom:0},R={...C,top:"50%",transform:"translateY(-50%)"},E=(t==null?void 0:t.backgroundColor)??void 0,L=z(E,"bgAdaptive"),M=typeof E=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(E),P=t==null?void 0:t.margin,B=((P==null?void 0:P.left)??0)+((P==null?void 0:P.right)??0),D={padding:s0(t==null?void 0:t.padding),margin:c0(t==null?void 0:t.margin),display:"block",width:B>0?`calc(100% - ${B}px)`:"100%",boxSizing:"border-box",textAlign:(t==null?void 0:t.textAlign)??void 0,wordBreak:"break-word",overflowWrap:"break-word",...M?{backgroundImage:L,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:L}},F=o,G=m.jsx(F,{className:"heading-block",style:v,children:m.jsxs("span",{style:y,children:[i?m.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:pi(a)}}):a,x?m.jsx("span",{style:I}):null,w?m.jsx("span",{style:R}):null]})});return m.jsxs("div",{className:`heading-block-wrapper${r?` ${n}`:""}`,...ue(E,void 0,"bgAdaptive"),style:D,children:[r&&m.jsx("style",{dangerouslySetInnerHTML:{__html:r}}),c?m.jsx("a",{href:s,target:u?"_blank":void 0,rel:u?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!p&&f?f:void 0},children:G}):G]})}function g0(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 ru="comm",ou="rule",au="decl",m0="@import",b0="@namespace",x0="@keyframes",v0="@layer",k0=Math.abs,qn=String.fromCharCode;function iu(e){return e.trim()}function ga(e,t,n){return e.replace(t,n)}function _n(e,t){return e.charCodeAt(t)|0}function In(e,t,n){return e.slice(t,n)}function $t(e){return e.length}function w0(e){return e.length}function Sr(e,t){return t.push(e),e}var po=1,Rn=1,lu=0,it=0,Le=0,En="";function gi(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:po,column:Rn,length:i,return:"",siblings:l}}function S0(){return Le}function $0(){return Le=it>0?_n(En,--it):0,Rn--,Le===10&&(Rn=1,po--),Le}function mt(){return Le=it<lu?_n(En,it++):0,Rn++,Le===10&&(Rn=1,po++),Le}function Gt(){return _n(En,it)}function Mr(){return it}function go(e,t){return In(En,e,t)}function er(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 _0(e){return po=Rn=1,lu=$t(En=e),it=0,[]}function C0(e){return En="",e}function Ro(e){return iu(go(it-1,ma(e===91?e+2:e===40?e+1:e)))}function A0(e){for(;(Le=Gt())&&Le<33;)mt();return er(e)>2||er(Le)>3?"":" "}function y0(e,t){for(;--t&&mt()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return go(e,Mr()+(t<6&&Gt()==32&&mt()==32))}function ma(e){for(;mt();)switch(Le){case e:return it;case 34:case 39:e!==34&&e!==39&&ma(Le);break;case 40:e===41&&ma(e);break;case 92:mt();break}return it}function I0(e,t){for(;mt()&&e+Le!==57;)if(e+Le===84&&Gt()===47)break;return"/*"+go(t,it-1)+"*"+qn(e===47?e:mt())}function R0(e){for(;!er(Gt());)mt();return go(e,it)}function T0(e){return C0(Pr("",null,null,null,[""],e=_0(e),0,[0],e))}function Pr(e,t,n,r,o,a,i,l,s){for(var u=0,c=0,h=i,d=0,f=0,p=0,b=1,x=1,w=1,k=0,S=0,v="",_=o,y=a,C=r,I=v;x;)switch(p=S,S=mt()){case 40:p!=108&&_n(I,h-1)==58?(k++,I+="("):I+=Ro(S);break;case 41:k--,I+=")";break;case 34:case 39:case 91:I+=Ro(S);break;case 9:case 10:case 13:case 32:if(k>0){I+=qn(S);break}I+=A0(p);break;case 92:I+=y0(Mr()-1,7);continue;case 47:switch(Gt()){case 42:case 47:Sr(E0(I0(mt(),Mr()),t,n,s),s),(er(p||1)==5||er(Gt()||1)==5)&&$t(I)&&In(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*b:l[u++]=$t(I)*w;case 125*b:case 59:case 0:if(k>0&&S){I+=qn(S);break}switch(S){case 0:case 125:x=0;case 59+c:w==-1&&(I=ga(I,/\f/g,"")),f>0&&($t(I)-h||b===0)&&Sr(f>32?Ol(I+";",r,n,h-1,s):Ol(ga(I," ","")+";",r,n,h-2,s),s);break;case 59:I+=";";default:if(Sr(C=Ll(I,t,n,u,c,o,l,v,_=[],y=[],h,a),a),S===123)if(c===0)Pr(I,t,C,C,_,a,h,l,y);else{switch(d){case 99:if(_n(I,3)===110)break;case 108:if(_n(I,2)===97)break;default:c=0;case 100:case 109:case 115:}c?Pr(e,C,C,r&&Sr(Ll(e,C,C,0,0,o,l,v,o,_=[],h,y),y),o,y,h,l,r?_:y):Pr(I,C,C,C,[""],y,0,l,y)}}u=c=f=0,b=w=1,v=I="",h=i;break;case 58:h=1+$t(I),f=p;default:if(b<1){if(S==123)--b;else if(S==125&&b++==0&&$0()==125)continue}switch(I+=qn(S),S*b){case 38:w=c>0?1:(I+="\f",-1);break;case 44:if(k>0)break;l[u++]=($t(I)-1)*w,w=1;break;case 64:Gt()===45&&(I+=Ro(mt())),d=Gt(),c=h=$t(v=I+=R0(Mr())),S++;break;case 45:p===45&&$t(I)==2&&(b=0)}}return a}function Ll(e,t,n,r,o,a,i,l,s,u,c,h){for(var d=o-1,f=o===0?a:[""],p=w0(f),b=0,x=0,w=0;b<r;++b)for(var k=0,S=In(e,d+1,d=k0(x=i[b])),v=e;k<p;++k)(v=iu(x>0?f[k]+" "+S:ga(S,/&\f/g,f[k])))&&(s[w++]=v);return gi(e,t,n,o===0?ou:l,s,u,c,h)}function E0(e,t,n,r){return gi(e,t,n,ru,qn(S0()),In(e,2,-2),0,r)}function Ol(e,t,n,r,o){return gi(e,t,n,au,In(e,0,r),In(e,r+1,-1),r,o)}function ba(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function N0(e,t,n,r){switch(e.type){case v0:if(e.children.length)break;case m0:case b0:case au:return e.return=e.return||e.value;case ru:return"";case x0:return e.return=e.value+"{"+ba(e.children,r)+"}";case ou:if(!$t(e.value=e.props.join(",")))return""}return $t(n=ba(e.children,r))?e.return=e.value+"{"+n+"}":""}const M0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),P0=$().regex(/^rgba?\([^\)]+\)$/i),L0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),O0=le("transparent"),zl=H([M0,P0,L0,O0]).nullable().optional(),z0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),j0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),B0=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,D0=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,F0=T(["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 H0(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 G0=A({style:A({color:zl,backgroundColor:zl,fontFamily:F0,fontSize:g().min(0).optional().nullable(),textAlign:T(["left","right","center"]).optional().nullable(),padding:z0,margin:j0}).optional().nullable(),props:A({contents:$().optional().nullable()}).optional().nullable()}),W0=/<style[^>]*>([\s\S]*?)<\/style>/gi;function U0(e,t){let n="";const r=e.replace(W0,(a,i)=>(n+=i,""));if(!n.trim())return{markup:r,css:""};const o=ba(T0(`[${t}]{${n}}`),N0);return{markup:r,css:o}}function Z0({style:e,props:t}){const n=t==null?void 0:t.contents,[r,o]=U.useState(!1),i=`data-html-scope-${U.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=U.useMemo(()=>n?U0(n,i):{markup:"",css:""},[n,i]),u={color:z(e==null?void 0:e.color,"blockText"),backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),fontFamily:H0(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:B0(e==null?void 0:e.padding),margin:D0(e==null?void 0:e.margin)},c=U.useRef(null);U.useEffect(()=>{const b=c.current;if(!b)return;b.querySelectorAll("iframe").forEach(w=>{try{w.style.pointerEvents=r?"auto":"none"}catch{}})},[n,r]);const h=b=>{r||o(!0)},d=()=>{o(!1)},f=`[${i}] pre,[${i}] code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}`;if(!n)return m.jsx("div",{ref:c,className:"html-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:u,children:m.jsx("style",{dangerouslySetInnerHTML:{__html:f}})});const p=`<style>${f}${s}</style>${fo(l)}`;return m.jsx("div",{ref:c,className:"html-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:u,onClick:h,onBlur:d,tabIndex:0,[i]:"",dangerouslySetInnerHTML:{__html:p}})}const q0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),V0=$().regex(/^rgba?\([^\)]+\)$/i),Y0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),K0=le("transparent"),J0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),X0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Q0=H([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Lr=H([q0,V0,Y0,K0]).nullable().optional(),ex=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),tx=A({color:Lr,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:O().default(!1)}).partial().optional().nullable();function nx(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 rx(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${nx(t)}`}}const ox=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,ax=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function ix(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 lx(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const sx=A({style:A({padding:J0,margin:X0,backgroundColor:Lr.default(null),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:g().optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthUnitTablet:T(["px","%"]).optional().nullable(),widthUnitMobile:T(["px","%"]).optional().nullable(),widthTablet:g().positive().optional().nullable(),widthMobile:g().positive().optional().nullable(),height:g().optional().nullable(),heightTablet:g().positive().optional().nullable(),heightMobile:g().positive().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:O().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),borderRadius:Q0,borderColor:Lr.default(null),borderWidth:ex,boxShadow:tx,iconName:$().optional().nullable(),iconFillColor:Lr.default(null),rotation:g().min(0).max(360).optional().nullable(),rotationTablet:g().min(0).max(360).optional().nullable(),rotationMobile:g().min(0).max(360).optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),hoverEffect:At}).optional().nullable()}),We={widthType:"fit",width:300,widthUnit:"px",height:null,url:"",alt:"",decorative:!1,showLink:!1,linkHref:null,linkTarget:"_blank",contentAlignment:"middle",borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null,rotation:0,hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};let cx=0;function ux({style:e,props:t}){const n=U.useMemo(()=>`ahd-img-${++cx}`,[]),r=fi(),o=(e==null?void 0:e.textAlign)??void 0,a=o==="center"?"center":o==="right"?"flex-end":"flex-start",i=e==null?void 0:e.margin,l=((i==null?void 0:i.left)??0)+((i==null?void 0:i.right)??0),s={padding:ox(e==null?void 0:e.padding),margin:ax(e==null?void 0:e.margin),...ix(z(e==null?void 0:e.backgroundColor,"bgAdaptive")),display:"flex",justifyContent:a,width:l>0?`max(0px, calc(100% - ${l}px))`:"100%",boxSizing:"border-box"},u=(t==null?void 0:t.showLink)??(t!=null&&t.linkHref?!0:We.showLink),c=(t==null?void 0:t.linkHref)??We.linkHref,h=u&&c?c:null,d=(t==null?void 0:t.linkTarget)??We.linkTarget,f=(t==null?void 0:t.widthType)??We.widthType,p=(t==null?void 0:t.widthTypeTablet)??f,b=(t==null?void 0:t.widthTypeMobile)??p,x=(t==null?void 0:t.width)??We.width,w=(t==null?void 0:t.widthUnit)??We.widthUnit,k=(t==null?void 0:t.widthUnitTablet)??w,S=(t==null?void 0:t.widthUnitMobile)??k,v=(t==null?void 0:t.widthTablet)??null,_=(t==null?void 0:t.widthMobile)??null,y=v??x,C=_??y,I=(t==null?void 0:t.height)??We.height,R=(t==null?void 0:t.heightTablet)??null,E=(t==null?void 0:t.heightMobile)??null,L=R??I,M=E??L,P=I,B=(t==null?void 0:t.url)??We.url,D=(t==null?void 0:t.urlTablet)??null,F=(t==null?void 0:t.urlMobile)??null,G=!h&&((t==null?void 0:t.decorative)??We.decorative),W=G?"":(t==null?void 0:t.alt)??We.alt,X=G?{role:"presentation","aria-hidden":!0}:{},Q=(t==null?void 0:t.contentAlignment)??We.contentAlignment,q=(t==null?void 0:t.borderRadius)??We.borderRadius,te=se((t==null?void 0:t.borderColor)??We.borderColor),Se=(t==null?void 0:t.borderWidth)??We.borderWidth,Ae=(t==null?void 0:t.boxShadow)??We.boxShadow,ge=rx(Ae),Oe=(t==null?void 0:t.rotation)??We.rotation,J=(t==null?void 0:t.rotationTablet)??null,V=(t==null?void 0:t.rotationMobile)??null,K=J??Oe,j=V??K,Y=ne=>{const Ie=ne*Math.PI/180,Ze=ne%180!==0?1/(Math.abs(Math.cos(Ie))+Math.abs(Math.sin(Ie))):1;return`rotate(${ne}deg) scale(${Ze})`},fe=Oe,ve=fe?{transform:Y(fe),transformOrigin:"center"}:{},pe=J!=null||V!=null?`
|
|
67
67
|
${_t} { .${n} img, .${n} > div { transform: ${Y(K)} !important; transform-origin: center !important; } }
|
|
68
68
|
${Qe} { .${n} img, .${n} > div { transform: ${Y(j)} !important; transform-origin: center !important; } }
|
|
69
|
-
`.trim():null,ye=
|
|
69
|
+
`.trim():null,ye=lx(te,Se),ae=ne=>typeof ne=="number"?`${ne}px`:`${ne.topLeft}px ${ne.topRight}px ${ne.bottomRight}px ${ne.bottomLeft}px`,Pe=(ne,Ie)=>{const Ze=Math.max((Ie==null?void 0:Ie.top)||0,(Ie==null?void 0:Ie.right)||0,(Ie==null?void 0:Ie.bottom)||0,(Ie==null?void 0:Ie.left)||0);if(typeof ne=="number")return`${Math.max(0,ne-Ze)}px`;const Je=Math.max(0,(ne.topLeft||0)-Ze),Yt=Math.max(0,(ne.topRight||0)-Ze),ce=Math.max(0,(ne.bottomRight||0)-Ze),xe=Math.max(0,(ne.bottomLeft||0)-Ze);return`${Je}px ${Yt}px ${ce}px ${xe}px`},be=(()=>{switch(f){case"fill":return"100%";case"fixed":return x;case"fit":default:return}})(),He=f==="fixed"&&typeof x=="number"&&x>0&&x<=48&&(w??"px")==="px"?{filter:"var(--pp-icon-filter, none)"}:{},ee=ne=>ne==="mobile"?b:ne==="tablet"?p:f,je=ne=>ne==="mobile"?S:ne==="tablet"?k:w,ze=ne=>{const Ie=ee(ne);if(Ie==="fill")return"100%";if(Ie==="fit")return"auto";const Ze=ne==="mobile"?C:ne==="tablet"?y:x,Je=je(ne);return`${Ze}${Je}`},ie=ze(r),yt=je(r),Ge=typeof ie=="string"&&ie.endsWith("%")?{display:"block",width:"100%",textAlign:o??"left"}:{},et=B,zt=(t==null?void 0:t.widthTypeTablet)!=null||(t==null?void 0:t.widthTypeMobile)!=null||f==="fixed"?`
|
|
70
70
|
${_t} { .${n} img { width: ${ze("tablet")} !important; max-width: 100% !important; } }
|
|
71
71
|
${Qe} { .${n} img { width: ${ze("mobile")} !important; max-width: 100% !important; } }
|
|
72
72
|
`.trim():null,It=R!=null||E!=null?`
|
|
73
|
-
${_t} { .${n} img { height: ${
|
|
73
|
+
${_t} { .${n} img { height: ${L?`${L}px`:"auto"} !important; } }
|
|
74
74
|
${Qe} { .${n} img { height: ${M?`${M}px`:"auto"} !important; } }
|
|
75
|
-
`.trim():null,rt=(t==null?void 0:t.hoverEffect)??We.hoverEffect,jt=
|
|
76
|
-
`)||null,Vt=te&&(te.includes("linear-gradient")||te.includes("radial-gradient")||te.includes("repeating-linear-gradient")),Pn=(F||D)&&m.jsxs(m.Fragment,{children:[F&&m.jsx("source",{media:Qe.replace("@media ",""),srcSet:F}),(D??F)&&m.jsx("source",{media:_t.replace("@media ",""),srcSet:D??F??B})]}),Ke=m.jsxs("picture",{style:Ge,children:[Pn,m.jsx("img",{alt:W,...X,src:et,width:typeof be=="number"&&yt==="px"?be:void 0,height:P!==null?P:void 0,style:{width:ie??(be==="100%"?"100%":typeof be=="number"?`${be}${yt}`:"auto"),height:P?`${P}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:Q,display:f==="fill"?"block":"inline-block",maxWidth:"100%",boxSizing:"border-box",borderRadius:q?ae(q):void 0,...He}})]}),Rt=Vt?m.jsx("div",{style:{borderRadius:q?ae(q):void 0,...ye,...ge,...ve},children:m.jsxs("picture",{children:[Pn,m.jsx("img",{alt:W,...X,src:et,width:typeof be=="number"&&yt==="px"?be:void 0,height:P!==null?P:void 0,style:{width:"100%",height:P?`${P}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:Q,display:"block",maxWidth:ie??(typeof be=="number"?`${be}${yt}`:"auto"),boxSizing:"border-box",borderRadius:q?Pe(q,Se):void 0,...He}})]})}):te?m.jsx("div",{style:{borderRadius:q?ae(q):void 0,...ye,...ge,...ve},children:Ke}):ge.boxShadow?m.jsx("div",{style:{borderRadius:q?ae(q):void 0,...ge,...ve},children:Ke}):U.cloneElement(Ke,{children:U.Children.map(Ke.props.children,ne=>(ne==null?void 0:ne.type)==="img"?U.cloneElement(ne,{style:{...ne.props.style,...ve}}):ne)});return h?m.jsxs("div",{className:`image-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:s,children:[xt&&m.jsx("style",{dangerouslySetInnerHTML:{__html:xt}}),m.jsx("a",{href:h,style:{textDecoration:"none"},target:d,rel:d==="_blank"?"noopener noreferrer":void 0,children:Rt})]}):m.jsxs("div",{className:`image-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:s,children:[xt&&m.jsx("style",{dangerouslySetInnerHTML:{__html:xt}}),Rt]})}const
|
|
75
|
+
`.trim():null,rt=(t==null?void 0:t.hoverEffect)??We.hoverEffect,jt=Ot(n,rt,{themedBorderColor:z(rt==null?void 0:rt.borderColor,"borderAdaptive"),scaleTarget:" picture",scaleBaseCss:"display: inline-block;",borderTarget:" img",borderFromContainer:!0}),xt=[zt,It,pe,jt].filter(Boolean).join(`
|
|
76
|
+
`)||null,Vt=te&&(te.includes("linear-gradient")||te.includes("radial-gradient")||te.includes("repeating-linear-gradient")),Pn=(F||D)&&m.jsxs(m.Fragment,{children:[F&&m.jsx("source",{media:Qe.replace("@media ",""),srcSet:F}),(D??F)&&m.jsx("source",{media:_t.replace("@media ",""),srcSet:D??F??B})]}),Ke=m.jsxs("picture",{style:Ge,children:[Pn,m.jsx("img",{alt:W,...X,src:et,width:typeof be=="number"&&yt==="px"?be:void 0,height:P!==null?P:void 0,style:{width:ie??(be==="100%"?"100%":typeof be=="number"?`${be}${yt}`:"auto"),height:P?`${P}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:Q,display:f==="fill"?"block":"inline-block",maxWidth:"100%",boxSizing:"border-box",borderRadius:q?ae(q):void 0,...He}})]}),Rt=Vt?m.jsx("div",{style:{borderRadius:q?ae(q):void 0,...ye,...ge,...ve},children:m.jsxs("picture",{children:[Pn,m.jsx("img",{alt:W,...X,src:et,width:typeof be=="number"&&yt==="px"?be:void 0,height:P!==null?P:void 0,style:{width:"100%",height:P?`${P}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:Q,display:"block",maxWidth:ie??(typeof be=="number"?`${be}${yt}`:"auto"),boxSizing:"border-box",borderRadius:q?Pe(q,Se):void 0,...He}})]})}):te?m.jsx("div",{style:{borderRadius:q?ae(q):void 0,...ye,...ge,...ve},children:Ke}):ge.boxShadow?m.jsx("div",{style:{borderRadius:q?ae(q):void 0,...ge,...ve},children:Ke}):U.cloneElement(Ke,{children:U.Children.map(Ke.props.children,ne=>(ne==null?void 0:ne.type)==="img"?U.cloneElement(ne,{style:{...ne.props.style,...ve}}):ne)});return h?m.jsxs("div",{className:`image-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:s,children:[xt&&m.jsx("style",{dangerouslySetInnerHTML:{__html:xt}}),m.jsx("a",{href:h,style:{textDecoration:"none"},target:d,rel:d==="_blank"?"noopener noreferrer":void 0,children:Rt})]}):m.jsxs("div",{className:`image-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:s,children:[xt&&m.jsx("style",{dangerouslySetInnerHTML:{__html:xt}}),Rt]})}const dx=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),hx=$().regex(/^rgba?\([^\)]+\)$/i),fx=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),px=le("transparent"),xn=H([dx,hx,fx,px]).nullable().optional(),gx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),mx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),bx=H([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),xx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),vx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,kx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function wx(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 Sx(e,t){return!e||e==="transparent"?{}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}}const To=e=>typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`,$x=A({color:xn,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:O().default(!1)}).partial().optional().nullable();function _x(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 Cx(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${_x(t)}`}}const Ax=A({style:A({padding:gx,margin:mx,backgroundColor:xn.default(null),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:O().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),width:g().positive().optional().nullable(),widthTablet:g().positive().optional().nullable(),widthMobile:g().positive().optional().nullable(),borderRadius:bx,borderColor:xn.default(null),borderWidth:xx,boxShadow:$x,iconName:$().optional().nullable(),iconNameTablet:$().optional().nullable(),iconNameMobile:$().optional().nullable(),iconFillColor:xn.default(null),iconFillColorTablet:xn.default(null),iconFillColorMobile:xn.default(null),hoverEffect:At,animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable()}).optional().nullable()}),ht={url:"",alt:"Logo",decorative:!1,showLink:!1,linkHref:null,linkTarget:"_blank",width:160,borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null};let yx=0;function Ix({style:e,props:t}){var D;const n=(t==null?void 0:t.url)??ht.url,r=(t==null?void 0:t.urlTablet)??null,o=(t==null?void 0:t.urlMobile)??null,a=(t==null?void 0:t.showLink)??ht.showLink,i=(t==null?void 0:t.linkHref)??ht.linkHref,l=a&&i?i:null,s=(t==null?void 0:t.linkTarget)??ht.linkTarget,u=!l&&((t==null?void 0:t.decorative)??ht.decorative),c=u?"":(t==null?void 0:t.alt)??ht.alt,h=u?{role:"presentation","aria-hidden":!0}:{},d=(t==null?void 0:t.width)??ht.width,f=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,b=(t==null?void 0:t.borderRadius)??ht.borderRadius,x=se((t==null?void 0:t.borderColor)??ht.borderColor),w=(t==null?void 0:t.borderWidth)??ht.borderWidth,k=(t==null?void 0:t.boxShadow)??ht.boxShadow,S=Cx(k),v=f??d,_=p??v,y=d,C=n,I=`ahd-logo-${++yx}`,R=Ot(I,t==null?void 0:t.hoverEffect,{themedBorderColor:z((D=t==null?void 0:t.hoverEffect)==null?void 0:D.borderColor,"borderAdaptive"),scaleTarget:" img",borderTarget:" img",borderFromContainer:!0}),E=`
|
|
77
77
|
${_t} { .${I} img { width: ${v}px !important; max-width: 100% !important; } }
|
|
78
78
|
${Qe} { .${I} img { width: ${_}px !important; max-width: 100% !important; } }
|
|
79
79
|
${R??""}
|
|
80
|
-
`.trim(),
|
|
80
|
+
`.trim(),L={padding:vx(e==null?void 0:e.padding),margin:kx(e==null?void 0:e.margin),...wx(z(e==null?void 0:e.backgroundColor,"bgAdaptive")),textAlign:(e==null?void 0:e.textAlign)??void 0,lineHeight:0},M={width:`${y}px`,height:"auto",maxWidth:"100%",display:"inline-block",verticalAlign:"top",boxSizing:"border-box",border:"none",outline:"none",textDecoration:"none",borderRadius:b?To(b):void 0},P=m.jsxs("picture",{children:[o&&m.jsx("source",{media:Qe.replace("@media ",""),srcSet:o}),r&&m.jsx("source",{media:_t.replace("@media ",""),srcSet:r}),m.jsx("img",{alt:c,...h,src:C,width:y,style:M})]}),B=x&&x!=="transparent"?m.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?To(b):void 0,...Sx(x,w),...S},children:P}):S.boxShadow?m.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?To(b):void 0,...S},children:P}):P;return l?m.jsxs("div",{className:`logo-block ${I}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:L,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:E}}),m.jsx("a",{href:l,style:{textDecoration:"none",display:"inline-block",verticalAlign:"top"},target:s,rel:s==="_blank"?"noopener noreferrer":void 0,"aria-label":u?"Logo":c||"Logo",children:B})]}):m.jsxs("div",{className:`logo-block ${I}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:L,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:E}}),B]})}const Rx=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Tx=$().regex(/^rgba?\([^\)]+\)$/i),Ex=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Nx=le("transparent"),Mx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Px=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Lx=H([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Ox=H([Rx,Tx,Ex,Nx]).nullable().optional(),zx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),jx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Bx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Dx(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 Fx(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const Hx=A({style:A({padding:Mx,margin:Px,backgroundColor:$().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:H([g(),$()]).optional().nullable(),height:H([g(),$()]).optional().nullable(),widthTablet:H([g(),$()]).optional().nullable(),widthMobile:H([g(),$()]).optional().nullable(),heightTablet:H([g(),$()]).optional().nullable(),heightMobile:H([g(),$()]).optional().nullable(),url:$().optional().nullable(),alt:$().optional().nullable(),linkHref:$().optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),name:$().optional().nullable(),borderRadius:Lx,borderColor:Ox.default(null),borderWidth:zx}).optional().nullable()});function Gx(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}function Wx(e){if(!e)return null;try{const t=new URL(e);return t.hostname==="youtu.be"?`https://www.youtube.com/embed/${t.pathname.slice(1)}`:t.hostname.includes("youtube.com")&&t.searchParams.get("v")?`https://www.youtube.com/embed/${t.searchParams.get("v")}`:t.pathname.startsWith("/embed/")?e:null}catch{return null}}let Ux=0;function Zx({style:e,props:t}){const n=`ahd-video-${++Ux}`,r=(e==null?void 0:e.textAlign)??"left",o={padding:jx(e==null?void 0:e.padding),margin:Bx(e==null?void 0:e.margin),...Dx(z(e==null?void 0:e.backgroundColor,"bgAdaptive")),display:"flex",justifyContent:Gx(r),textAlign:r},a=(t==null?void 0:t.width)??"100%",i=(t==null?void 0:t.height)??"inherit",l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,u=l??a,c=s??a,h=(t==null?void 0:t.heightTablet)===null?"auto":(t==null?void 0:t.heightTablet)??i,d=(t==null?void 0:t.heightMobile)===null?"auto":(t==null?void 0:t.heightMobile)??i,f=a,p=i,b=M=>M==null?void 0:typeof M=="number"?`${M}px`:M,x=`
|
|
81
81
|
${ln} { .${n} video, .${n} iframe { ${b(u)?`width: ${b(u)} !important;`:""} ${b(h)?`height: ${b(h)} !important;`:""} max-width: 100% !important; } }
|
|
82
82
|
${Qe} { .${n} video, .${n} iframe { ${b(c)?`width: ${b(c)} !important;`:""} ${b(d)?`height: ${b(d)} !important;`:""} max-width: 100% !important; } }
|
|
83
|
-
`.trim(),w=(t==null?void 0:t.linkHref)??null,k=(t==null?void 0:t.borderRadius)??0,S=M=>typeof M=="number"?`${M}px`:`${M.topLeft}px ${M.topRight}px ${M.bottomRight}px ${M.bottomLeft}px`,v=(M,P)=>{const B=Math.max((P==null?void 0:P.top)||0,(P==null?void 0:P.right)||0,(P==null?void 0:P.bottom)||0,(P==null?void 0:P.left)||0);if(typeof M=="number")return`${Math.max(0,M-B)}px`;const D=Math.max(0,(M.topLeft||0)-B),F=Math.max(0,(M.topRight||0)-B),G=Math.max(0,(M.bottomRight||0)-B),W=Math.max(0,(M.bottomLeft||0)-B);return`${D}px ${F}px ${G}px ${W}px`},_=se((t==null?void 0:t.borderColor)??null),y=(t==null?void 0:t.borderWidth)??null,C=
|
|
83
|
+
`.trim(),w=(t==null?void 0:t.linkHref)??null,k=(t==null?void 0:t.borderRadius)??0,S=M=>typeof M=="number"?`${M}px`:`${M.topLeft}px ${M.topRight}px ${M.bottomRight}px ${M.bottomLeft}px`,v=(M,P)=>{const B=Math.max((P==null?void 0:P.top)||0,(P==null?void 0:P.right)||0,(P==null?void 0:P.bottom)||0,(P==null?void 0:P.left)||0);if(typeof M=="number")return`${Math.max(0,M-B)}px`;const D=Math.max(0,(M.topLeft||0)-B),F=Math.max(0,(M.topRight||0)-B),G=Math.max(0,(M.bottomRight||0)-B),W=Math.max(0,(M.bottomLeft||0)-B);return`${D}px ${F}px ${G}px ${W}px`},_=se((t==null?void 0:t.borderColor)??null),y=(t==null?void 0:t.borderWidth)??null,C=Fx(_,y),I=_&&(_.includes("linear-gradient")||_.includes("radial-gradient")||_.includes("repeating-linear-gradient")),R=Wx(t==null?void 0:t.url),E=R?m.jsx("iframe",{width:f,height:p,src:R,title:(t==null?void 0:t.alt)??"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:S(k)}},R):m.jsx("video",{controls:!0,preload:"metadata","aria-label":(t==null?void 0:t.alt)??(t==null?void 0:t.name)??void 0,src:(t==null?void 0:t.url)??"",width:f,height:p,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",objectFit:"cover",borderRadius:S(k),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url),L=I?m.jsx("div",{style:{borderRadius:k?S(k):void 0,...C},children:R?m.jsx("iframe",{width:f,height:p,src:R,title:(t==null?void 0:t.alt)??"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:v(k,y)}},R):m.jsx("video",{controls:!0,src:(t==null?void 0:t.url)??"",width:f,height:p,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",objectFit:"cover",borderRadius:v(k,y),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url)}):_?m.jsx("div",{style:{borderRadius:k?S(k):void 0,...C},children:E}):E;return w?m.jsxs("div",{className:`video-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:o,children:[x&&m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),m.jsx("a",{href:w,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:L})]}):m.jsxs("div",{className:`video-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:o,children:[x&&m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),L]})}var qx=A({props:A({height:g().gte(0).optional().nullish()}).optional().nullable()}),Vx={height:16};const bt=[{key:"inherit",label:"Inherit",value:"inherit"},{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'}],Yx={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]},Kx=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`};`${Object.entries(Yx).map(([e,t])=>`family=${Kx(e,t)}`).join("&")}`;const su=bt.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));su.map(e=>e.css);const Jx=e=>e.replace(/"/g,'\\"'),Xx=e=>((e||"").split(",")[0]||"").replace(/['"]/g,"").trim().toLowerCase();new Set(bt.filter(e=>e.key!=="inherit").map(e=>Xx(e.value)));const jl=bt.find(e=>e.key==="INTER");jl&&jl.value;su.map(e=>{const t=Jx(e.css);return`
|
|
84
84
|
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
|
|
85
85
|
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
|
|
86
86
|
content: '${e.label}';
|
|
87
87
|
font-family: ${e.css};
|
|
88
88
|
}`}).join(`
|
|
89
|
-
`);const
|
|
90
|
-
`),t=
|
|
91
|
-
`),n=
|
|
92
|
-
`);return[e,`${ln}{${t}}`,`${
|
|
93
|
-
`)}const mi=
|
|
94
|
-
`),a=o("desktop"),i=o("tablet"),l=o("mobile");return!a&&!i&&!l?"":[a,i&&`${ln}{${i}}`,i&&`${
|
|
95
|
-
`)}const Bl="ahd-responsive-font-size";function
|
|
96
|
-
`)}const
|
|
89
|
+
`);const Or=[{label:"10",px:10},{label:"12",px:12},{label:"14",px:14},{label:"16",px:16},{label:"18",px:18},{label:"20",px:20},{label:"22",px:22},{label:"24",px:24},{label:"26",px:26},{label:"28",px:28},{label:"30",px:30},{label:"32",px:32},{label:"36",px:36},{label:"40",px:40},{label:"44",px:44},{label:"48",px:48},{label:"52",px:52},{label:"56",px:56},{label:"60",px:60},{label:"64",px:64},{label:"72",px:72},{label:"76",px:76}],Qx={P:"Normal",DIV:"Normal",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6",BLOCKQUOTE:"Quote",PRE:"Code"};new Set(Object.keys(Qx));const cu="@container ahd-page (min-width: 641px) and (max-width: 1024px)",uu="@container ahd-page (max-width: 640px)";function ev(){const e=Or.map(r=>`[data-fs-desktop="${r.px}"]{font-size:${r.px}px}`).join(`
|
|
90
|
+
`),t=Or.map(r=>`[data-fs-tablet="${r.px}"]{font-size:${r.px}px !important}`).join(`
|
|
91
|
+
`),n=Or.map(r=>`[data-fs-mobile="${r.px}"]{font-size:${r.px}px !important}`).join(`
|
|
92
|
+
`);return[e,`${ln}{${t}}`,`${cu}{${t}}`,`${Qe}{${n}}`,`${uu}{${n}}`].join(`
|
|
93
|
+
`)}const mi=ev(),tv=new Set(Or.map(e=>e.px));function nv(e){if(!e)return"";const t={desktop:new Set,tablet:new Set,mobile:new Set},n=/data-fs-(desktop|tablet|mobile)="(\d+)"/g;let r;for(;(r=n.exec(e))!==null;){const s=Number(r[2]);!Number.isFinite(s)||tv.has(s)||t[r[1]].add(s)}const o=s=>Array.from(t[s]).map(u=>`[data-fs-${s}="${u}"]{font-size:${u}px${s==="desktop"?"":" !important"}}`).join(`
|
|
94
|
+
`),a=o("desktop"),i=o("tablet"),l=o("mobile");return!a&&!i&&!l?"":[a,i&&`${ln}{${i}}`,i&&`${cu}{${i}}`,l&&`${Qe}{${l}}`,l&&`${uu}{${l}}`].filter(Boolean).join(`
|
|
95
|
+
`)}const Bl="ahd-responsive-font-size";function rv(){if(typeof document>"u"||document.getElementById(Bl))return;const e=document.createElement("style");e.id=Bl,e.setAttribute("data-ahd-generated","responsive-font-size"),e.textContent=mi,document.head.appendChild(e)}rv();const ov=20;function av(e){const t=[];t.push('ol[data-mll="decimal-dot"] { list-style-type: none; padding-inline-start: 32px; counter-reset: mll-1; }'),t.push('ol[data-mll="decimal-dot"] > li { counter-increment: mll-1; position: relative; }'),t.push('ol[data-mll="decimal-dot"] > li::before { content: counter(mll-1) "."; position: absolute; left: -32px; width: 24px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }');for(let n=2;n<=e;n++){const o=`ol[data-mll="decimal-dot"]${" ol".repeat(n-1)}`,a=[];for(let l=1;l<=n;l++)l>1&&a.push('"."'),a.push(`counter(mll-${l})`);const i=a.join(" ");n===2?(t.push(`${o} { list-style-type: none; counter-reset: mll-${n}; padding-inline-start: 44px; }`),t.push(`${o} > li { counter-increment: mll-${n}; position: relative; }`),t.push(`${o} > li::before { content: ${i}; position: absolute; right: calc(100% + 8px); white-space: nowrap; font-variant-numeric: tabular-nums; }`)):(t.push(`${o} { counter-reset: mll-${n}; padding-inline-start: 44px; }`),t.push(`${o} > li { counter-increment: mll-${n}; }`),t.push(`${o} > li::before { content: ${i}; right: calc(100% + 8px); white-space: nowrap; font-variant-numeric: tabular-nums; }`))}return t.join(`
|
|
96
|
+
`)}const iv=`
|
|
97
97
|
/* Match the block's paragraph rhythm: this app zeros <p> margins via a
|
|
98
98
|
.ahd-page-root p rule, so list items and nested lists must also carry
|
|
99
99
|
zero vertical margin or the list feels double-spaced next to
|
|
@@ -153,7 +153,7 @@ ol[data-mll="decimal-paren"] ol ol ol > li::before { content: counter(mll-d) ")"
|
|
|
153
153
|
buildDecimalDotCSS so arbitrary nesting depth (up to
|
|
154
154
|
DECIMAL_DOT_MAX_LEVEL) renders the correctly concatenated marker
|
|
155
155
|
instead of repeating the last-defined level's string. */
|
|
156
|
-
${
|
|
156
|
+
${av(ov)}
|
|
157
157
|
|
|
158
158
|
/* ── list-style-type schemes: tight hanging indent similar to plain
|
|
159
159
|
browser <ol> so the marker character sits close to the text. ────── */
|
|
@@ -187,15 +187,15 @@ ul[data-mll="bullet-arrow"] > li::before { content: "▸"; position: absolute; l
|
|
|
187
187
|
ul[data-mll="bullet-arrow"] ul { list-style-type: none; }
|
|
188
188
|
ul[data-mll="bullet-arrow"] ul > li::before { content: "◦"; }
|
|
189
189
|
ul[data-mll="bullet-arrow"] ul ul > li::before { content: "▪"; }
|
|
190
|
-
`;function
|
|
190
|
+
`;function lv(e){return typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e)}function bi(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function xi(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function sv(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 cv(e,t,n){return t?(typeof e=="string"?e.trim():"").length===0?n:typeof e=="string"?e:n:null}const uv=T(["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 dv(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 hv=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),fv=$().regex(/^rgba?\([^\)]+\)$/i),pv=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),gv=le("transparent"),Dl=H([hv,fv,pv,gv]).nullable().optional(),mv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),bv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),xv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,vv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,kv=A({style:A({color:Dl,backgroundColor:Dl,fontSize:g().gte(0).optional().nullable(),lineClamp:g().int().gte(0).optional().nullable(),fontFamily:uv,fontWeight:T(["bold","normal",...ir]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:mv,margin:bv}).optional().nullable(),props:A({text:$().optional().nullable(),editorType:T(["summernote","quill"]).optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),hoverEffect:At}).optional().nullable()}),wv={text:""};let Sv=0;function $v({style:e,props:t}){var f;const n=U.useMemo(()=>`ahd-hv-text-${++Sv}`,[]),r=Ot(n,t==null?void 0:t.hoverEffect,{themedBorderColor:z((f=t==null?void 0:t.hoverEffect)==null?void 0:f.borderColor,"borderAdaptive"),scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1}),o=e==null?void 0:e.lineClamp,a=o&&o>0?{display:"-webkit-box",WebkitLineClamp:o,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},i=(e==null?void 0:e.color)??void 0,l=lv(i),s=z(i,"blockText"),u=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),c={...l?{backgroundImage:s,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"}:{color:s},background:l?void 0:u??void 0,fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:dv(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:xv(e==null?void 0:e.padding),margin:vv(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word"},h=a,d=Jc(fo((t==null?void 0:t.text)??wv.text));return m.jsxs("div",{className:`text-block${r?` ${n}`:""}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:c,children:[r&&m.jsx("style",{dangerouslySetInnerHTML:{__html:r}}),m.jsx("style",{dangerouslySetInnerHTML:{__html:`.text-block ul,.text-block ol{margin-block-start:0;margin-block-end:0;padding-inline-start:revert}.text-block li{display:list-item}
|
|
191
191
|
.text-block a{color:var(--pp-link,#2563eb);text-decoration:underline}/* keep in sync with LINK_COLOR (editor-sample InlineTextToolbar/types.ts) */
|
|
192
192
|
.text-block pre,.text-block code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}
|
|
193
|
-
${
|
|
193
|
+
${iv}
|
|
194
194
|
${mi}
|
|
195
|
-
${
|
|
195
|
+
${nv(d)}`}}),m.jsx("div",{style:h,dangerouslySetInnerHTML:{__html:d}})]})}const _v=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Cv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Av=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,yv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Iv=A({style:A({padding:_v,margin:Cv,backgroundColor:$().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:g().optional().nullable(),height:g().optional().nullable(),widthTablet:H([g(),$()]).optional().nullable(),widthMobile:H([g(),$()]).optional().nullable(),heightTablet:H([g(),$()]).optional().nullable(),heightMobile:H([g(),$()]).optional().nullable(),url:$().optional().nullable(),alt:$().optional().nullable(),linkHref:$().optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable()}).optional().nullable()});let Rv=0;function Tv({style:e,props:t}){const n=`ahd-youtube-url-${++Rv}`,r={padding:Av(e==null?void 0:e.padding),margin:yv(e==null?void 0:e.margin),backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),textAlign:(e==null?void 0:e.textAlign)??void 0},o=(t==null?void 0:t.linkHref)??null,a=(t==null?void 0:t.width)??void 0,i=(t==null?void 0:t.height)??void 0,l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,u=(t==null?void 0:t.heightTablet)??null,c=(t==null?void 0:t.heightMobile)??null,h=l??a,d=s??h,f=u??i,p=c??f,b=a,x=i,w=v=>v==null?void 0:typeof v=="number"?`${v}px`:v,k=`
|
|
196
196
|
${_t} { .${n} video { ${w(h)?`width: ${w(h)} !important;`:""} ${w(f)?`height: ${w(f)} !important;`:""} max-width: 100% !important; } }
|
|
197
197
|
${Qe} { .${n} video { ${w(d)?`width: ${w(d)} !important;`:""} ${w(p)?`height: ${w(p)} !important;`:""} max-width: 100% !important; } }
|
|
198
|
-
`.trim(),S=m.jsx("video",{controls:!0,preload:"metadata","aria-label":(t==null?void 0:t.alt)??void 0,src:(t==null?void 0:t.url)??"",width:b,height:x,style:{width:b,height:x,outline:"none",border:"none",textDecoration:"none",verticalAlign:(t==null?void 0:t.contentAlignment)??"middle",display:"inline-block",maxWidth:"100%"}});return o?m.jsxs("div",{className:`youtube-url-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:r,children:[k&&m.jsx("style",{dangerouslySetInnerHTML:{__html:k}}),m.jsx("a",{href:o,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:S})]}):m.jsxs("div",{className:`youtube-url-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:r,children:[k&&m.jsx("style",{dangerouslySetInnerHTML:{__html:k}}),S]})}const
|
|
198
|
+
`.trim(),S=m.jsx("video",{controls:!0,preload:"metadata","aria-label":(t==null?void 0:t.alt)??void 0,src:(t==null?void 0:t.url)??"",width:b,height:x,style:{width:b,height:x,outline:"none",border:"none",textDecoration:"none",verticalAlign:(t==null?void 0:t.contentAlignment)??"middle",display:"inline-block",maxWidth:"100%"}});return o?m.jsxs("div",{className:`youtube-url-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:r,children:[k&&m.jsx("style",{dangerouslySetInnerHTML:{__html:k}}),m.jsx("a",{href:o,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:S})]}):m.jsxs("div",{className:`youtube-url-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:r,children:[k&&m.jsx("style",{dangerouslySetInnerHTML:{__html:k}}),S]})}const Ev=e=>null;function Nv(e){return null}const Mv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Pv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Lv=A({responsive:Ye,style:A({padding:Mv,margin:Pv,textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({src:$().optional().nullable(),width:$().optional().nullable(),height:$().optional().nullable(),title:$().optional().nullable(),allowFullscreen:O().optional().nullable()}).optional().nullable()}),Ov=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,zv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function jv({style:e,props:t}){var d,f;const n=(t==null?void 0:t.src)??"",r=(t==null?void 0:t.width)??"100%",o=t==null?void 0:t.height,a=!o||/^\s*(0|0px|100vh)\s*$/i.test(o)?"800px":o,i=(t==null?void 0:t.title)??"Embedded content",l=(t==null?void 0:t.allowFullscreen)??!0,s=U.useRef(null),u=(((d=e==null?void 0:e.margin)==null?void 0:d.left)??0)+(((f=e==null?void 0:e.margin)==null?void 0:f.right)??0),c={padding:Ov(e==null?void 0:e.padding),margin:zv(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:`calc(100% - ${u}px)`},h={width:`var(--ahd-iframe-width,${r})`,height:`var(--ahd-iframe-height,${a})`,minHeight:`var(--ahd-iframe-height,${a})`,border:"none",display:"inline-block",verticalAlign:"top"};return n?m.jsx("div",{className:"iframe-block",style:c,children:m.jsx("iframe",{ref:s,src:n,title:i,style:h,allowFullScreen:l})}):m.jsx(Nv,{icon:m.jsx(Ev,{}),title:"IFrame — enter a URL in the panel",sx:c})}const Bv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Dv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Fv=A({responsive:Ye,style:A({padding:Bv,margin:Dv,textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({src:$().optional().nullable(),width:$().optional().nullable(),height:$().optional().nullable(),title:$().optional().nullable(),allowFullscreen:O().optional().nullable()}).optional().nullable()}),Hv=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},Gv=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},Wv=({props:e,style:t})=>{var c,h;const{src:n,width:r,height:o,title:a,allowFullscreen:i=!0}=e??{};if(!n)return m.jsx(m.Fragment,{});const l=(((c=t==null?void 0:t.margin)==null?void 0:c.left)??0)+(((h=t==null?void 0:t.margin)==null?void 0:h.right)??0),s=t??{},u={width:`calc(100% - ${l}px)`,padding:Hv(s.padding),margin:Gv(s.margin),textAlign:s.textAlign||void 0};return m.jsx("div",{className:"calendly-block",style:u,children:m.jsx("iframe",{src:n,title:a||"Calendly scheduling",allowFullScreen:i??!0,style:{width:`var(--ahd-calendly-width,${r||"100%"})`,height:`var(--ahd-calendly-height,${o||"800px"})`,border:"none",display:"inline-block",verticalAlign:"top"},loading:"lazy"})})};var Uv=Object.defineProperty,Fl=Object.getOwnPropertySymbols,Zv=Object.prototype.hasOwnProperty,qv=Object.prototype.propertyIsEnumerable,Hl=(e,t,n)=>t in e?Uv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vv=(e,t)=>{for(var n in t||(t={}))Zv.call(t,n)&&Hl(e,n,t[n]);if(Fl)for(var n of Fl(t))qv.call(t,n)&&Hl(e,n,t[n]);return e};function Yv(e){return function({type:n,data:r}){const o=e[n].Component;return U.createElement(o,Vv({},r))}}function Kv(e){const t=Object.keys(e).map(n=>A({type:le(n),data:e[n].schema}));return lm("type",t).transform(n=>n)}const Jv=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Xv=$().regex(/^rgba?\([^\)]+\)$/i),Qv=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),e1=le("transparent"),t1=H([Jv,Xv,Qv,e1]).nullable().optional(),n1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),r1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Eo=jc([g().optional().nullish(),g().optional().nullish(),g().optional().nullish(),g().optional().nullish(),g().optional().nullish()]).optional().nullable(),No=T(["fixed","fill","fit"]).optional().nullable(),o1=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,a1=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,du=A({style:A({backgroundColor:t1,padding:n1,margin:r1}).optional().nullable(),props:A({widthType:No,widthTypeTablet:No,widthTypeMobile:No,fixedWidths:Eo,fixedWidthsTablet:Eo,fixedWidthsMobile:Eo,columnsCount:H([le(2),le(3),le(4),le(5)]).optional().nullable(),columnsGap:g().optional().nullable(),columnsGapTablet:g().optional().nullable(),columnsGapMobile:g().optional().nullable(),columnsDirection:T(["horizontal","vertical"]).optional().nullable(),columnsDirectionTablet:T(["horizontal","vertical"]).optional().nullable(),columnsDirectionMobile:T(["horizontal","vertical"]).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),contentAlignmentTablet:T(["top","middle","bottom"]).optional().nullable(),contentAlignmentMobile:T(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),tn={columnsCount:2,columnsGap:0,columnsDirection:"horizontal",contentAlignment:"middle",widthType:"fill"};function Gl(e){return`${e} table, ${e} tbody, ${e} tr, ${e} td { display: block !important; width: 100% !important; }
|
|
199
199
|
${e} table { table-layout: auto !important; }
|
|
200
200
|
${e} td { box-sizing: border-box; padding-left: 0 !important; padding-right: 0 !important; vertical-align: top !important; }
|
|
201
201
|
${e} td + td { margin-top: var(--columns-gap, 0px) !important; }`}function Wl(e){return`${e} table { display: table !important; table-layout: fixed !important; }
|
|
@@ -203,7 +203,7 @@ ${e} tbody { display: table-row-group !important; }
|
|
|
203
203
|
${e} tr { display: table-row !important; width: auto !important; }
|
|
204
204
|
${e} td { display: table-cell !important; width: auto !important; }
|
|
205
205
|
${e} td + td { margin-top: 0 !important; }`}function Ul(e,t,n,r,o,a){const i=[];for(let l=0;l<t;l+=1){const s=`${e} td:nth-child(${l+1})`,u=l===0?0:n/2,c=l===t-1?0:n/2,h=[`padding-left: ${u}px !important`,`padding-right: ${c}px !important`];r==="fixed"&&(o==null?void 0:o[l])!=null?h.push(`width: ${o[l]}px !important`):h.push("width: auto !important"),i.push(`${s} { ${h.join("; ")}; }`)}return i.join(`
|
|
206
|
-
`)}function
|
|
206
|
+
`)}function i1(e,t){const n=`.${e}.columns-container`,r=(o,a)=>!a&&o?`${n} td { vertical-align: ${o} !important; }`:"";return`
|
|
207
207
|
@media (max-width: ${Ue}px) {
|
|
208
208
|
${n} { --columns-gap: ${t.tabletGap}px; }
|
|
209
209
|
${t.tabletVertical?Gl(n):Wl(n)}
|
|
@@ -216,9 +216,9 @@ ${e} td + td { margin-top: 0 !important; }`}function Ul(e,t,n,r,o,a){const i=[];
|
|
|
216
216
|
${t.mobileVertical?"":Ul(n,t.columnsCount,t.mobileGap,t.mobileWidthType,t.mobileFixedWidths)}
|
|
217
217
|
${r(t.mobileAlign,t.mobileVertical)}
|
|
218
218
|
}
|
|
219
|
-
`.trim()}let
|
|
220
|
-
`);const c=[`${e} { flex-direction: ${a?"row-reverse":"row"}; flex-wrap: nowrap; gap: ${i}px; }`],h=new Map;for(const d of s){const f=
|
|
221
|
-
`)}function
|
|
219
|
+
`.trim()}let l1=0;function s1({style:e,columns:t,props:n}){const r=(n==null?void 0:n.widthType)??tn.widthType,o=(n==null?void 0:n.widthTypeTablet)??r,a=(n==null?void 0:n.widthTypeMobile)??o,i=n==null?void 0:n.fixedWidths,l=(n==null?void 0:n.fixedWidthsTablet)??i,s=(n==null?void 0:n.fixedWidthsMobile)??l,u=(n==null?void 0:n.columnsGap)??tn.columnsGap,c=(n==null?void 0:n.columnsGapTablet)??u,h=(n==null?void 0:n.columnsGapMobile)??c,d=(n==null?void 0:n.columnsDirection)??tn.columnsDirection,f=(n==null?void 0:n.columnsDirectionTablet)??d,p=(n==null?void 0:n.columnsDirectionMobile)??f,b=(n==null?void 0:n.contentAlignment)??tn.contentAlignment,x=(n==null?void 0:n.contentAlignmentTablet)??b,w=(n==null?void 0:n.contentAlignmentMobile)??x,k=(n==null?void 0:n.columnsCount)??tn.columnsCount,S=r,v=i,_=u,y=d,I={widthType:S,columnsCount:k,columnsGap:_,columnsDirection:y,contentAlignment:b,fixedWidths:v},R=y==="vertical",E=U.useMemo(()=>`ahd-cc-${l1+=1}`,[]),L=i1(E,{tabletVertical:f==="vertical",mobileVertical:p==="vertical",columnsCount:k,tabletGap:c,mobileGap:h,tabletWidthType:o,mobileWidthType:a,tabletFixedWidths:l,mobileFixedWidths:s,tabletAlign:x,mobileAlign:w}),M={background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),padding:o1(e==null?void 0:e.padding),margin:a1(e==null?void 0:e.margin),"--columns-gap":`${_}px`};return m.jsxs("div",{className:`columns-container ${E}${R?" is-stacked":""}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:M,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:L}}),m.jsx("table",{role:"presentation","aria-hidden":"false",align:"center",width:"100%",cellPadding:"0",border:0,style:{tableLayout:R||S==="fit"?"auto":"fixed",borderCollapse:"collapse",...R?{display:"block",width:"100%"}:{}},children:m.jsx("tbody",{style:{width:"100%",...R?{display:"block"}:{}},children:m.jsxs("tr",{style:{width:"100%",...R?{display:"block"}:{}},children:[m.jsx(On,{index:0,props:I,columns:t}),m.jsx(On,{index:1,props:I,columns:t}),m.jsx(On,{index:2,props:I,columns:t}),m.jsx(On,{index:3,props:I,columns:t}),m.jsx(On,{index:4,props:I,columns:t})]})})})]})}function On({index:e,props:t,columns:n}){var h;const r=(t==null?void 0:t.columnsCount)??tn.columnsCount;if(e>=r)return null;const o=t.columnsDirection==="vertical",a=o?0:c1(e,t),i=o?0:u1(e,t),l=(h=t.fixedWidths)==null?void 0:h[e],s={boxSizing:o?"border-box":"content-box",verticalAlign:o?"top":(t==null?void 0:t.contentAlignment)??tn.contentAlignment,paddingLeft:a?`${a}px`:0,paddingRight:i?`${i}px`:0,width:t.widthType==="fixed"&&!o&&l!=null?`${l}px`:void 0,...o?{display:"block",width:"100%",marginTop:e>0?`${t.columnsGap}px`:void 0}:{}},u=(n==null?void 0:n[e])??null,c=t.widthType==="fixed"&&l!=null?l:void 0;return m.jsx("td",{style:s,width:c,children:u})}function c1(e,{columnsGap:t}){return e===0?0:t/2}function u1(e,{columnsGap:t,columnsCount:n}){return e===n-1?0:t/2}const d1=du.shape.props.unwrap().unwrap().shape,h1=du.shape.style.unwrap().unwrap().shape,f1=A({style:A({...h1,borderRadius:H([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable(),props:A({...d1,columns:jc([A({childrenIds:oe($())}),A({childrenIds:oe($())}),A({childrenIds:oe($())})])}).optional().nullable()});function p1(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function g1({style:e,props:t}){const{columns:n,...r}=t??{};let o;n&&(o=n.map(d=>d.childrenIds.map(f=>m.jsx(Me,{id:f},f))));const{borderRadius:a,borderColor:i,borderWidth:l,...s}=e??{},u={};if(a!=null&&(u.borderRadius=p1(a)),i){const d=l??{top:1,right:1,bottom:1,left:1};u.borderStyle="solid",u.borderColor=i,u.borderWidth=`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`}u.overflow="hidden";const c=a!=null||!!i,h=m.jsx(s1,{props:r,columns:o,style:s});return c?m.jsx("div",{style:u,children:h}):m.jsx(m.Fragment,{children:h})}const m1=A({style:A({backgroundColor:$().optional().nullable(),padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:H([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable(),props:A({columnsCount:g().int().min(2).optional().nullable(),columnsGap:g().optional().nullable(),columnsGapTablet:g().optional().nullable(),columnsGapMobile:g().optional().nullable(),wrap:O().optional().nullable(),desktopLayout:T(["wrap","row"]).optional().nullable(),mobileLayout:T(["wrap","row"]).optional().nullable(),tabletLayout:T(["wrap","row"]).optional().nullable(),columnShrink:oe(O()).optional().nullable(),columnShrinkTablet:oe(O()).optional().nullable(),columnShrinkMobile:oe(O()).optional().nullable(),columnSpan:oe(g().int().min(1).max(12).nullable()).optional().nullable(),columnSpanTablet:oe(g().int().min(1).max(12).nullable()).optional().nullable(),columnSpanMobile:oe(g().int().min(1).max(12).nullable()).optional().nullable(),equalColumns:O().optional().nullable(),columns:oe(A({childrenIds:oe($())})).optional().nullable(),align:T(["flex-start","center","flex-end","stretch"]).optional().nullable(),justify:T(["flex-start","center","flex-end","space-between","space-around"]).optional().nullable(),reverseColumns:O().optional().nullable(),repeatableEnabled:O().optional().nullable()}).optional().nullable()});function b1(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function x1(e){var o,a;const t=e??{},n=(((o=t.margin)==null?void 0:o.left)??0)+(((a=t.margin)==null?void 0:a.right)??0),r={boxSizing:"border-box",width:n>0?`calc(100% - ${n}px)`:"100%"};if(t.backgroundColor&&(r.backgroundColor=z(t.backgroundColor,"bgAdaptive")),t.padding){const i=t.padding;r.padding=`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`}if(t.margin){const i=t.margin;r.margin=`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`}if(t.borderRadius!=null&&(r.borderRadius=b1(t.borderRadius),r.overflow="hidden"),t.borderColor){const i=t.borderWidth??{top:1,right:1,bottom:1,left:1};r.borderStyle="solid",r.borderColor=t.borderColor,r.borderWidth=`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`}return r}function Mo(e,t,n){const r=e??{},o=r.desktopLayout??(r.wrap?"wrap":"row"),a=r.tabletLayout??o,i=r.mobileLayout??"wrap",l=r.columnShrink??[],s=r.columnShrinkTablet??l,u=r.columnShrinkMobile??s,c=r.columnSpan??[],h=r.columnSpanTablet??c,d=r.columnSpanMobile??h,f=r.columnsGap??16,p=r.columnsGapTablet??f,b=r.columnsGapMobile??p,x={desktop:{layout:o,shrink:l,span:c,gap:f},tablet:{layout:a,shrink:s,span:h,gap:p},mobile:{layout:i,shrink:u,span:d,gap:b}}[t];return{layout:x.layout,gap:x.gap,shrink:Array.from({length:n},(w,k)=>x.shrink[k]===!0),span:Array.from({length:n},(w,k)=>{const S=x.span[k];return typeof S=="number"&&S>=1&&S<=12?S:null}),equalColumns:r.equalColumns===!0,reverseColumns:r.reverseColumns===!0}}function v1(e,t){return`calc(${e} / 12 * (100% + ${t}px) - ${t}px)`}function Zl(e,t,n=0){switch(e){case"span":{const r=v1(t??12,n);return`flex: 0 0 ${r}; width: ${r};`}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 k1(e,{shrink:t,span:n,equalColumns:r}){return t[e]?"shrink":n[e]!=null?"span":r?"equal":"plain"}function Po(e,t,n,r){const{layout:o,reverseColumns:a,gap:i}=n,l=d=>d.map(f=>`${t}:nth-child(${f+1})`).join(", "),s=Array.from({length:r},(d,f)=>f);if(o==="wrap")return[`${e} { flex-direction: column; flex-wrap: nowrap; gap: ${i}px; }`,`${l(s)} { flex: 0 0 100%; width: 100%; max-width: 100%; }`].join(`
|
|
220
|
+
`);const c=[`${e} { flex-direction: ${a?"row-reverse":"row"}; flex-wrap: nowrap; gap: ${i}px; }`],h=new Map;for(const d of s){const f=k1(d,n);h.set(f,[...h.get(f)??[],d])}for(const[d,f]of h){if(d==="span"){for(const p of f)c.push(`${l([p])} { ${Zl(d,n.span[p],i)} max-width: 100%; }`);continue}c.push(`${l(f)} { ${Zl(d)} max-width: 100%; }`)}return c.join(`
|
|
221
|
+
`)}function w1(e,t){const{columnsCount:n,desktop:r,tablet:o,mobile:a}=t,i=`.${e}.flex-columns-block > .fc-row`,l=`${i} > .fc-col`,s=[`${i} { display: flex; width: 100%; box-sizing: border-box; }`,`${l} { min-width: 0; box-sizing: border-box; overflow-wrap: anywhere; }`,`${l} > * { max-width: 100%; }`,`${l} .container-block, ${l} .flex-columns-block { max-width: 100%; min-width: 0; }`,`${l} :is(img, video, svg, table) { max-width: 100%; height: auto; }`].join(`
|
|
222
222
|
`),c=[r,o,a].some(d=>d.shrink.some(Boolean))?[r,o,a].flatMap(d=>d.shrink.map((f,p)=>f?p:-1).filter(f=>f>=0)).filter((d,f,p)=>p.indexOf(d)===f).map(d=>{const f=`${l}:nth-child(${d+1})`;return`${f} > *, ${f} .container-block { width: auto; max-width: 100%; }`}).join(`
|
|
223
223
|
`):"",h=(d,f)=>`@media (max-width: ${d}px) {
|
|
224
224
|
${f}
|
|
@@ -226,20 +226,20 @@ ${f}
|
|
|
226
226
|
@container ahd-page (max-width: ${d}px) {
|
|
227
227
|
${f}
|
|
228
228
|
}`;return[s,c,Po(i,l,r,n),h(Ue,Po(i,l,o,n)),h(Ve,Po(i,l,a,n))].filter(Boolean).join(`
|
|
229
|
-
`)}let
|
|
229
|
+
`)}let S1=0;function $1({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,r=(t==null?void 0:t.align)??"flex-start",o=(t==null?void 0:t.justify)??"flex-start",a=(t==null?void 0:t.columns)??[],i=Array.from({length:n},(c,h)=>a[h]??{childrenIds:[]}),l=U.useMemo(()=>`ahd-fc-${S1+=1}`,[]),s=w1(l,{columnsCount:n,desktop:Mo(t,"desktop",n),tablet:Mo(t,"tablet",n),mobile:Mo(t,"mobile",n)}),u={alignItems:r,justifyContent:o};return m.jsxs("div",{className:`flex-columns-block ${l}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:x1(e),"data-cols":n,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),m.jsx("div",{className:"fc-row",style:u,children:i.map((c,h)=>m.jsx("div",{className:"fc-col",children:c.childrenIds.map(d=>m.jsx(Me,{id:d},d))},h))})]})}const _1=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),C1=$().regex(/^rgba?\([^\)]+\)$/i),A1=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),y1=le("transparent"),I1=H([_1,C1,A1,y1]).nullable().optional(),R1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),T1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),E1=A({style:A({backgroundColor:I1,padding:R1,margin:T1}).optional().nullable(),props:A({columnsCount:g().int().min(1).optional().nullable(),columnsCountTablet:g().int().min(1).optional().nullable(),columnsCountMobile:g().int().min(1).optional().nullable(),rowsCount:g().int().min(1).optional().nullable(),columnsGap:g().optional().nullable(),rowsGap:g().optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),N1=E1.shape.props.unwrap().unwrap().shape,M1=A({backgroundColor:$().optional().nullable(),padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:H([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable(),P1=A({style:M1,props:A({...N1,cells:oe(A({childrenIds:oe($()),colStart:g().int().min(1).optional().nullable(),colSpan:g().int().min(1).optional().nullable(),rowStart:g().int().min(1).optional().nullable(),rowSpan:g().int().min(1).optional().nullable()})),columnsCountTablet:H([le(1),le(2),le(3),le(4),le(5)]).optional().nullable(),columnsCountMobile:H([le(1),le(2),le(3),le(4),le(5)]).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:T(["left","center","right"]).optional().nullable()}).optional().nullable()}),L1={top:"flex-start",middle:"center",bottom:"flex-end"},O1={left:"flex-start",center:"center",right:"flex-end"};let z1=0;function j1({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,r=(t==null?void 0:t.columnsCountTablet)??n,o=(t==null?void 0:t.columnsCountMobile)??1,a=(t==null?void 0:t.rowsCount)??2,i=(t==null?void 0:t.columnsGap)??0,l=(t==null?void 0:t.rowsGap)??0,s=(t==null?void 0:t.contentAlignment)??"middle",u=(t==null?void 0:t.horizontalAlignment)??"left",c=(t==null?void 0:t.cells)??[],d=c.some(R=>(R==null?void 0:R.colStart)!=null||(R==null?void 0:R.rowStart)!=null||(R==null?void 0:R.colSpan)!=null||(R==null?void 0:R.rowSpan)!=null)?c.length:n*a,f=U.useMemo(()=>`ahd-grid-${z1+=1}`,[]),p=Array.from({length:d},(R,E)=>c[E]??{childrenIds:[]}),b=e==null?void 0:e.padding,x=e==null?void 0:e.margin,w=((x==null?void 0:x.left)??0)+((x==null?void 0:x.right)??0),k=w>0?`calc(100% - ${w}px)`:"100%",S={backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),padding:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,boxSizing:"border-box",margin:x?`${x.top}px ${x.right}px ${x.bottom}px ${x.left}px`:void 0,width:k,maxWidth:"100%"},v=e==null?void 0:e.borderRadius;if(v!=null&&(S.borderRadius=typeof v=="number"?`${v}px`:`${v.topLeft}px ${v.topRight}px ${v.bottomRight}px ${v.bottomLeft}px`,S.overflow="hidden"),e!=null&&e.borderColor){const R=e.borderWidth??{top:1,right:1,bottom:1,left:1};S.borderStyle="solid",S.borderColor=e.borderColor,S.borderWidth=`${R.top}px ${R.right}px ${R.bottom}px ${R.left}px`}const _={display:"grid",columnGap:`${i}px`,rowGap:`${l}px`,alignItems:L1[s]??"center",justifyContent:O1[u]??"flex-start",width:"100%",boxSizing:"border-box"},y=p.map((R,E)=>{if(R.colStart==null&&R.rowStart==null)return"";const L=[];return R.colStart!=null&&R.colSpan!=null&&L.push(`grid-column: ${R.colStart} / span ${R.colSpan};`),R.rowStart!=null&&R.rowSpan!=null&&L.push(`grid-row: ${R.rowStart} / span ${R.rowSpan};`),L.length===0?"":`.${f}-cell-${E} { ${L.join(" ")} }
|
|
230
230
|
@media (max-width: ${Ve}px) { .${f}-cell-${E} { grid-column: auto; grid-row: auto; } }`}).filter(Boolean).join(`
|
|
231
231
|
`),C=`
|
|
232
232
|
.${f} > .grid-block-inner { grid-template-columns: repeat(${n}, minmax(0, 1fr)); }
|
|
233
233
|
@media (max-width: ${Ue}px) { .${f} > .grid-block-inner { grid-template-columns: repeat(${r}, minmax(0, 1fr)); } }
|
|
234
234
|
@media (max-width: ${Ve}px) { .${f} > .grid-block-inner { grid-template-columns: repeat(${o}, minmax(0, 1fr)); } }
|
|
235
235
|
${y}
|
|
236
|
-
`.trim(),I=()=>({minWidth:0,boxSizing:"border-box"});return m.jsxs("div",{className:`grid-block ${f}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:S,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:C}}),m.jsx("div",{className:"grid-block-inner",style:_,children:p.map((R,E)=>m.jsx("div",{className:`grid-cell ${f}-cell-${E}`,style:I(),children:R.childrenIds.map(
|
|
236
|
+
`.trim(),I=()=>({minWidth:0,boxSizing:"border-box"});return m.jsxs("div",{className:`grid-block ${f}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:S,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:C}}),m.jsx("div",{className:"grid-block-inner",style:_,children:p.map((R,E)=>m.jsx("div",{className:`grid-cell ${f}-cell-${E}`,style:I(),children:R.childrenIds.map(L=>m.jsx(Me,{id:L},L))},E))})]})}const B1=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),D1=$().regex(/^rgba?\([^\)]+\)$/i),F1=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),H1=le("transparent"),xa=Gc(e=>typeof e=="string"?e.trim():e,H([B1,D1,F1,H1]).nullable().optional()),G1=$().url().regex(/^https?:\/\//,"URL must start with http:// or https://").nullable().optional(),W1=$().includes("{{"),U1=H([G1,W1]).nullable().optional(),Z1=$().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(),q1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),V1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Y1=H([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),K1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),ql=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function hu(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function J1(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:hu(e)?{backgroundColor:"transparent"}:{backgroundColor:e}}function X1(e,t){const n=e&&hu(e)?e:void 0;return n&&t?`${n}, ${t}`:n??t}function Q1(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const ek=A({color:xa,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:O().default(!1)}).partial().optional().nullable();function tk(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 nk(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${tk(t)}`}}function rk(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 r=Math.max(0,(e.topLeft||0)-n),o=Math.max(0,(e.topRight||0)-n),a=Math.max(0,(e.bottomRight||0)-n),i=Math.max(0,(e.bottomLeft||0)-n);return`${r}px ${o}px ${a}px ${i}px`}const ok=A({style:A({backgroundColor:xa,backgroundImage:U1,backgroundSize:Z1,backgroundRepeat:T(["repeat","no-repeat"]).optional().nullable(),borderColor:xa,borderRadius:Y1,padding:q1,margin:V1,borderWidth:K1,boxShadow:ek}).optional().nullable(),props:A({fullWidth:O().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),height:g().min(0).optional().nullable(),heightTablet:H([g().min(0),le("auto")]).optional().nullable(),heightMobile:H([g().min(0),le("auto")]).optional().nullable(),overflow:O().optional().nullable(),alignment:T(["left","center","right"]).optional().nullable(),alignmentTablet:T(["left","center","right"]).optional().nullable(),alignmentMobile:T(["left","center","right"]).optional().nullable(),tag:T(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),hoverEffect:At}).optional().nullable()}),fn={fullWidth:!1,widthType:"fill",width:300,widthUnit:"px",alignment:"left",hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};function ak({style:e,props:t,children:n,blockId:r}){const o=fi(),a=(t==null?void 0:t.fullWidth)??fn.fullWidth,i=(t==null?void 0:t.widthType)??fn.widthType,l=(t==null?void 0:t.widthTypeTablet)??null,s=(t==null?void 0:t.widthTypeMobile)??null,u=l??i,c=s??u,h=(t==null?void 0:t.width)??fn.width,d=(t==null?void 0:t.widthUnit)??fn.widthUnit,f=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,b=f??h,x=p??b,w=(t==null?void 0:t.height)??null,k=(t==null?void 0:t.heightTablet)??null,S=(t==null?void 0:t.heightMobile)??null,v=k==="auto"?null:k??w,_=S==="auto"?null:S??(k==="auto"?null:v),y=(t==null?void 0:t.overflow)===!0,C=(t==null?void 0:t.alignment)??fn.alignment,I=(t==null?void 0:t.alignmentTablet)??null,R=(t==null?void 0:t.alignmentMobile)??null,E=I??C,L=R??E,M=C,P=(t==null?void 0:t.ariaLabel)??void 0,B=(t==null?void 0:t.elementId)??void 0,D=!!(t!=null&&t.showLink),F=(t==null?void 0:t.linkHref)??null,G=typeof F=="string"?F.trim():F,W=D&&typeof G=="string"&&G.length>0,X=(t==null?void 0:t.linkTarget)??"_blank",Q=W?"a":(t==null?void 0:t.tag)??"div",q=W?{href:G,target:X,...X==="_blank"?{rel:"noopener noreferrer"}:{},style:{textDecoration:"none",color:"inherit",display:"block"}}:{},te=(ce,xe,tt=!1)=>{if(tt&&a)return"100%";switch(ce){case"fill":return"100%";case"fixed":return`${xe}${d}`;case"fit":default:return"auto"}},Se=ce=>((ce==null?void 0:ce.left)??0)+((ce==null?void 0:ce.right)??0),Ae=(ce,xe,tt)=>{const at=(xe==null?void 0:xe.top)??0,Tt=(xe==null?void 0:xe.bottom)??0;if(tt)return{marginTop:at,marginBottom:Tt,marginLeft:(xe==null?void 0:xe.left)??0,marginRight:(xe==null?void 0:xe.right)??0};switch(ce){case"center":return{marginTop:at,marginBottom:Tt,marginLeft:"auto",marginRight:"auto"};case"right":return{marginTop:at,marginBottom:Tt,marginLeft:"auto",marginRight:(xe==null?void 0:xe.right)??0};case"left":default:return{marginTop:at,marginBottom:Tt,marginLeft:(xe==null?void 0:xe.left)??0,marginRight:"auto"}}},ge=(ce,xe)=>{const tt=Se(xe);return tt<=0?ce:ce==="100%"?`calc(100% - ${tt}px)`:ce},Oe=i,J=h,V=w,K=te(Oe,J,o==="desktop"),j=ge(K,e==null?void 0:e.margin),fe=K==="100%"?null:{textAlign:M==="left"?"left":M==="right"?"right":"center"},ve=(ce,xe,tt)=>te(xe,tt)==="100%"||ce==="left"?"left":ce==="right"?"right":"center",me=l!=null||s!=null||f!=null||p!=null||k!=null||S!=null||I!=null||R!=null,pe=(t==null?void 0:t.hoverEffect)??fn.hoverEffect,ye=!!(pe!=null&&pe.enabled),ae=(me||ye)&&r?`ahd-cb-${r}`:"",Pe=ae?`${ae}-align`:"",De=v!=null?`height: ${v}px !important; --ahd-cb-h: ${v}px !important;`:k==="auto"?"height: auto !important; --ahd-cb-h: auto !important;":"",be=_!=null?`height: ${_}px !important; --ahd-cb-h: ${_}px !important;`:S==="auto"||S==null&&k==="auto"?"height: auto !important; --ahd-cb-h: auto !important;":"",Fe=me?`
|
|
237
237
|
${_t} { .${ae} { width: ${ge(te(u,b),e==null?void 0:e.margin)} !important; ${De} max-width: 100% !important; } }
|
|
238
238
|
${Qe} { .${ae} { width: ${ge(te(c,x),e==null?void 0:e.margin)} !important; ${be} max-width: 100% !important; } }
|
|
239
239
|
${_t} { .${Pe} { text-align: ${ve(E,u,b)} !important; } }
|
|
240
|
-
${Qe} { .${Pe} { text-align: ${ve(
|
|
241
|
-
`.trim():null,He=
|
|
242
|
-
`)||null,je=ce=>{if(ce!=null)return typeof ce=="number"?`${ce}px`:`${ce.topLeft}px ${ce.topRight}px ${ce.bottomRight}px ${ce.bottomLeft}px`},ze=(e==null?void 0:e.borderColor)??null,ie=(e==null?void 0:e.borderWidth)??null,yt=J1(z(ze,"borderAdaptive"),ie),Ge=ek(e==null?void 0:e.boxShadow),et=z(e==null?void 0:e.backgroundColor,"bgAdaptive")??"",ot=Y1(et),zt=(e==null?void 0:e.backgroundSize)==="none",It=!zt&&(e!=null&&e.backgroundImage)?`url(${e.backgroundImage})`:void 0,rt=K1(et,It),jt=ue(e==null?void 0:e.backgroundColor,It,"bgAdaptive"),xt=zt?void 0:(e==null?void 0:e.backgroundSize)??void 0,Vt=(e==null?void 0:e.backgroundRepeat)??"no-repeat",Pn=ze&&(ze.includes("linear-gradient")||ze.includes("radial-gradient")||ze.includes("repeating-linear-gradient")),Ke=V!=null,Rt=Ke?{"--ahd-cb-h":`${V}px`}:{},ne=Ke?" container-block-has-height":"";if(Pn){const ce={...yt,borderRadius:je(e==null?void 0:e.borderRadius),width:j,maxWidth:"100%",minWidth:0,height:Ke?`${V}px`:void 0,boxSizing:"border-box",...Ae(M,e==null?void 0:e.margin,K==="100%"),...fe?{display:"inline-block"}:{},...Ge,...Rt},xe={...ot,backgroundImage:rt,backgroundSize:xt,backgroundRepeat:Vt,borderRadius:tk((e==null?void 0:e.borderRadius)??0,ie),overflow:y?"auto":"hidden",padding:ql(e==null?void 0:e.padding),width:"100%",height:Ke?"100%":void 0,boxSizing:"border-box"},tt=`container-block${y?" container-block-overflow":""}${ne}${ae?` ${ae}`:""}`,at=`container-block-inner${y?" container-block-overflow":""}`,Tt=W?{...ce,...q.style,...fe?{display:"inline-block"}:{}}:ce,Kt=m.jsx(Q,{className:tt,"aria-label":P,id:B,...jt,...q,style:Tt,children:m.jsx("div",{className:at,style:xe,children:n})});return m.jsxs(m.Fragment,{children:[ee&&m.jsx("style",{dangerouslySetInnerHTML:{__html:ee}}),fe?m.jsx("div",{className:Pe,style:fe,children:Kt}):Kt]})}const Ie={...ot,backgroundImage:rt,backgroundSize:xt,backgroundRepeat:Vt,...yt,borderRadius:je(e==null?void 0:e.borderRadius),padding:ql(e==null?void 0:e.padding),...Ae(M,e==null?void 0:e.margin,K==="100%"),width:j,maxWidth:"100%",minWidth:0,height:Ke?`${V}px`:void 0,overflow:y?"auto":void 0,boxSizing:"border-box",...y?{}:{display:"flow-root"},...fe?{display:"inline-block"}:{},...Ge,...Rt},Ze=`container-block${y?" container-block-overflow":""}${ne}${ae?` ${ae}`:""}`,Je=W?{...Ie,...q.style,...fe?{display:"inline-block"}:{}}:Ie;if(!n){const ce=m.jsx(Q,{className:Ze,"aria-label":P,id:B,...jt,...q,style:Je});return m.jsxs(m.Fragment,{children:[ee&&m.jsx("style",{dangerouslySetInnerHTML:{__html:ee}}),fe?m.jsx("div",{className:Pe,style:fe,children:ce}):ce]})}const Yt=m.jsx(Q,{className:Ze,"aria-label":P,id:B,...jt,...q,style:Je,children:n});return m.jsxs(m.Fragment,{children:[ee&&m.jsx("style",{dangerouslySetInnerHTML:{__html:ee}}),fe?m.jsx("div",{className:Pe,style:fe,children:Yt}):Yt]})}const ok=A({style:nk.shape.style,responsive:Ye,props:A({childrenIds:oe($()).optional().nullable(),fullWidth:L().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),height:g().min(0).optional().nullable(),heightTablet:H([g().min(0),le("auto")]).optional().nullable(),heightMobile:H([g().min(0),le("auto")]).optional().nullable(),overflow:L().optional().nullable(),alignment:T(["left","center","right"]).optional().nullable(),alignmentTablet:T(["left","center","right"]).optional().nullable(),alignmentMobile:T(["left","center","right"]).optional().nullable(),tag:T(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),hoverEffect:At}).optional().nullable()});function du({style:e,props:t,responsive:n,blockId:r}){var l,s,u,c;const o=(t==null?void 0:t.childrenIds)??[],a=(s=(l=n==null?void 0:n.tablet)==null?void 0:l.props)==null?void 0:s.heightTablet,i=(c=(u=n==null?void 0:n.mobile)==null?void 0:u.props)==null?void 0:c.heightMobile;return m.jsx(rk,{style:e,blockId:r,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)??a??void 0,heightMobile:(t==null?void 0:t.heightMobile)??i??void 0,overflow:(t==null?void 0:t.overflow)??void 0,alignment:(t==null?void 0:t.alignment)??void 0,alignmentTablet:(t==null?void 0:t.alignmentTablet)??void 0,alignmentMobile:(t==null?void 0:t.alignmentMobile)??void 0,tag:(t==null?void 0:t.tag)??void 0,ariaLabel:(t==null?void 0:t.ariaLabel)??void 0,elementId:(t==null?void 0:t.elementId)??void 0,showLink:(t==null?void 0:t.showLink)??void 0,linkHref:(t==null?void 0:t.linkHref)??void 0,linkTarget:(t==null?void 0:t.linkTarget)??void 0,hoverEffect:(t==null?void 0:t.hoverEffect)??void 0},children:o.map(h=>m.jsx(Me,{id:h},h))})}const ak=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),ik=$().regex(/^rgba?\([^\)]+\)$/i),lk=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),sk=le("transparent"),kn=H([ak,ik,lk,sk]).nullable().optional(),ck=T(["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(),uk=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Oo=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Lo=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),dk=$().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(),hk=A({color:kn,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().default(!1)}).partial().optional().nullable(),fk=A({position:T(["top","top-left","top-right","top-center","bottom","bottom-left","bottom-right","bottom-center","center","left","left-center","right","right-center"]).optional().default("right"),isCaret:L().optional().default(!0),selector:$().optional().default(""),showCloseIcon:L().optional(),iconCloseColor:kn,closeIconPosition:T(["left","center","right"]).optional(),closeIconPaddingTop:g().optional(),closeIconPaddingLeft:g().optional(),closeIconPaddingRight:g().optional(),bannerSubType:$().optional()}).passthrough().optional().nullable(),pk=oe(A({id:$(),name:$(),type:$().optional().default("text"),value:$().optional()})).optional().nullable(),gk=A({formFields:pk,backdropColor:kn.default(null),borderColor:kn.default(null),borderRadius:g().optional().nullable(),canvasColor:kn.default(null),textColor:kn,hostTheme:T(["follow","light"]).optional().nullable(),fontFamily:ck,childrenIds:oe($()).optional().nullable(),maxWidth:$().default(""),maxHeight:$().default(""),top:$().default(""),left:$().default(""),padding:Oo,margin:Lo,maxWidthTablet:$().optional().nullable(),maxWidthMobile:$().optional().nullable(),maxHeightTablet:$().optional().nullable(),maxHeightMobile:$().optional().nullable(),paddingTablet:Oo,paddingMobile:Oo,marginTablet:Lo,marginMobile:Lo,borderWidth:uk,boxShadow:hk,behaviour:fk,linkHref:$().optional().default(""),backgroundImage:$().default("").nullable().optional(),backgroundSize:dk,backgroundRepeat:T(["repeat","no-repeat"]).optional().nullable()}),mk=()=>null,bk="INTER";function xk(e){return e||bk}function pn(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function $r(e,t,n){const r=e??{},o=r[t];if(n==="desktop")return pn(o)?o:null;const a=r[`${t}Tablet`];if(n==="tablet")return pn(a)?a:pn(o)?o:null;const i=r[`${t}Mobile`];return pn(i)?i:pn(a)?a:pn(o)?o:null}function zo(e,t){return{maxWidth:$r(e,"maxWidth",t)??null,maxHeight:$r(e,"maxHeight",t)??null,padding:$r(e,"padding",t)??null,margin:$r(e,"margin",t)??null}}function vk(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function kk(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function jo(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:${vk(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${kk(t.margin)};}`),n.join("")}function wk(e,t,n){const r=`.${e}`,o={width:`${r} .ahd-layout-sizer`,table:`${r} .ahd-layout-table`,padding:`${r} .email-layout-content`,margin:`${r} .email-layout-content`},a=zo(t,"desktop"),i=jo(o,{...a,maxWidth:a.maxWidth??n??null}),l=jo(o,zo(t,"tablet")),s=jo(o,zo(t,"mobile")),u=(c,h)=>h?`@media (max-width:${c}px){${h}}@container ahd-page (max-width:${c}px){${h}}`:"";return[i,u(Ue,l),u(Ve,s)].filter(Boolean).join("")}const Sk="Made with Page Pilot",$k="https://pagepilot.fabbuilder.com";let _k=0;function Ck(e){switch(xk(e)){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}function Ak(e){const{borderColor:t,borderWidth:n,borderRadius:r}=e;if(!t)return{};if(t==="transparent")return{border:"none"};const o=t&&(t.includes("linear-gradient")||t.includes("radial-gradient")||t.includes("repeating-linear-gradient")),a=r??0,i=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:a?i(a):void 0};if(o){const s=z(e.canvasColor,"canvas"),u=!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:`${u}, ${t}`,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",borderRadius:a?i(a):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:a?i(a):void 0}}function yk(e){return e.includes("gradient")?(e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[])[0]??"#000000":e}function Vl(e){if(!e||!e.color)return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e,l=yk(t);return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${l}`}}function Ik(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 Rk(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 Tk(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function Ek(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=Tk(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function Nk({position:e,color:t}){const o="20px",a={position:"absolute",background:t,pointerEvents:"none",zIndex:2},i="polygon(50% 0, 0 100%, 100% 100%)",l="polygon(0 0, 100% 0, 50% 100%)",s="polygon(100% 0, 100% 100%, 0 50%)",u="polygon(0 0, 0 100%, 100% 50%)";let c;switch(e){case"top":c={top:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:i};break;case"top-left":c={top:-8,left:o,width:16,height:8,clipPath:i};break;case"top-right":c={top:-8,right:o,width:16,height:8,clipPath:i};break;case"bottom":c={bottom:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:l};break;case"bottom-left":c={bottom:-8,left:o,width:16,height:8,clipPath:l};break;case"bottom-right":c={bottom:-8,right:o,width:16,height:8,clipPath:l};break;case"left":c={left:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:s};break;case"right":c={right:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:u};break;default:return null}return m.jsx("div",{"aria-hidden":!0,style:{...a,...c}})}function Mk({color:e,position:t,paddingTop:n,paddingLeft:r,paddingRight:o}){const a=z(e,"closeIcon"),i=t??"right",l=typeof n=="number"?n:2,c=i==="left"?{left:typeof r=="number"?r:2}:i==="center"?{left:"50%",transform:"translateX(-50%)"}:{right:typeof o=="number"?o:2};return m.jsx("div",{role:"button","aria-label":"Close",tabIndex:0,"data-action":"onCloseStep",style:{position:"absolute",top:l,...c,width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",zIndex:11,cursor:"pointer",lineHeight:0,background:"transparent",border:0},children:m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{pointerEvents:"none",stroke:a},children:[m.jsx("line",{x1:"3",y1:"3",x2:"11",y2:"11"}),m.jsx("line",{x1:"11",y1:"3",x2:"3",y2:"11"})]})})}function Pk(){const e=z(null,"brandingText");return m.jsx("div",{className:"ahd-branding-footer",style:{display:"block",width:"100%",textAlign:"left",fontSize:11,color:e,marginTop:8},children:m.jsx("a",{href:$k,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:Sk})})}function Ok(e){var ge,Le,J,V,K,j,Y,fe,ve,me,pe,ye,ae,Pe,De,be,Fe,He;const t=e.childrenIds??[],n=typeof window<"u"&&window.location?window.location.pathname:"",r=n.includes("page")?"page":"",o=n.includes("app-banner"),a=n.includes("demo"),i=n.includes("faq"),l=n.includes("tour"),s=n.includes("tooltip"),u=l||s||a,c=["top-left","top-right","bottom-left","bottom-right","top-center","bottom-center","left-center","right-center","center"],h=eb(),d=(ge=mk())==null?void 0:ge.getState(),f=(V=(J=(Le=d==null?void 0:d.appBanner)==null?void 0:Le.view)==null?void 0:J.record)==null?void 0:V.type,p=h??f,b=r==="page"||h==="page",x=o&&(p==="floater"||((K=e.behaviour)==null?void 0:K.bannerSubType)==="floater"||c.includes((j=e.behaviour)==null?void 0:j.position)),w=o&&(p==="modal"||((Y=e.behaviour)==null?void 0:Y.bannerSubType)==="modal"),k=(u||x||w)&&((fe=e.behaviour)==null?void 0:fe.showCloseIcon)!==!1,v=u&&!0,_=o&&e.linkHref?e.linkHref:null,y=U.useMemo(()=>`ahd-layout-${_k+=1}`,[]),I=wk(y,e,b||i?"100%":o&&!x?"900px":"320px"),R=(o||a)&&!!e.backgroundImage;e.borderRadius;const E=e.borderRadius??0,O=ee=>typeof ee=="number"?`${ee}px`:`${ee.topLeft}px ${ee.topRight}px ${ee.bottomRight}px ${ee.bottomLeft}px`,P=(ee=>ee==null?!1:typeof ee=="number"?ee>0:(ee.topLeft??0)>0||(ee.topRight??0)>0||(ee.bottomRight??0)>0||(ee.bottomLeft??0)>0)(E),B=ee=>_?m.jsx("a",{href:_,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:ee}):ee,D=Ak({...e,borderColor:z(e.borderColor,"borderAdaptive")??null}),F=o&&!!((ve=e.boxShadow)!=null&&ve.color)&&!!e.boxShadow.inset,G=o&&!F?Vl(e.boxShadow):{},W=F?Vl(e.boxShadow):{},X=Rk(((me=e.behaviour)==null?void 0:me.position)??"right"),Q=u&&!x&&!w&&((pe=e.behaviour)==null?void 0:pe.isCaret)!==!1,q=z(e.canvasColor,"canvas"),te=Ek(q,X),Se=(((ye=e.margin)==null?void 0:ye.left)??0)+(((ae=e.margin)==null?void 0:ae.right)??0),Ae=Se>0?`calc(100% - ${Se}px)`:"100%";return B(m.jsxs("div",{className:y,...e.hostTheme==="light"?{"data-pp-theme":"light"}:null,style:{minHeight:"100%",display:"block",alignItems:"center"},children:[I&&m.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),m.jsx("div",{style:{color:z(e.textColor,"layoutText"),fontFamily:Ck(e.fontFamily),fontSize:"16px",fontWeight:"400",letterSpacing:"normal",lineHeight:"1.5",margin:"0",minHeight:"100%",width:"100%"},children:m.jsxs("div",{className:"ahd-layout-sizer",style:{position:"relative",margin:"0 auto",...w||x?null:{maxWidth:"100%"}},children:[Q&&m.jsx(Nk,{position:X,color:te}),m.jsxs("div",{style:{position:"relative",borderRadius:O(E),...P?{overflowX:"hidden",overflowY:"visible"}:{overflow:"visible"},...G},children:[F&&m.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:O(E),zIndex:1,...W}}),k&&m.jsx(Mk,{color:(Pe=e.behaviour)==null?void 0:Pe.iconCloseColor,position:(De=e.behaviour)==null?void 0:De.closeIconPosition,paddingTop:(be=e.behaviour)==null?void 0:be.closeIconPaddingTop,paddingLeft:(Fe=e.behaviour)==null?void 0:Fe.closeIconPaddingLeft,paddingRight:(He=e.behaviour)==null?void 0:He.closeIconPaddingRight}),m.jsx("table",{width:"100%",className:"ahd-layout-table",...ue(e.canvasColor,e.backgroundImage,"canvas"),style:{width:Ae,maxWidth:"100%",boxSizing:"border-box",flex:1,margin:e.margin?`${e.margin.top}px ${e.margin.right}px ${e.margin.bottom}px ${e.margin.left}px`:"0 auto",...w||x?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...Ik(q,e.backgroundImage,o?"appBanner":""),borderCollapse:"separate",tableLayout:"fixed",...D,borderRadius:O(E),overflow:P?"clip":"visible",...R?{backgroundImage:`url(${e.backgroundImage})`,backgroundSize:e.backgroundSize??"cover",backgroundPosition:"center",backgroundRepeat:e.backgroundRepeat??"no-repeat"}:{}},role:"presentation",cellSpacing:"0",cellPadding:"0",children:m.jsx("tbody",{children:m.jsx("tr",{style:{width:"100%"},children:m.jsxs("td",{className:"email-layout-content",children:[t.map(ee=>m.jsx(Me,{id:ee},ee)),v&&m.jsx(Pk,{})]})})})})]})]})})]}))}const Lk=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),zk=$().regex(/^rgba?\([^\)]+\)$/i),jk=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Bk=le("transparent"),_r=H([Lk,zk,jk,Bk]).nullable().optional(),Dk=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Fk=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Hk=T(["left","center","right"]).optional().nullable(),qr={min:1,max:20},Vr={min:4,max:48},hu=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),Gk=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Wk=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,zn=(e,t,n)=>Math.min(Math.max(e,t),n),Yl=e=>e?hu(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},Uk=A({style:A({backgroundColor:_r,textAlign:Hk,padding:Dk,margin:Fk}).optional().nullable(),props:A({stepperType:T(["dots","numeric","both"]).optional().nullable(),totalDots:g().min(qr.min).max(qr.max).optional().nullable(),activeIndex:g().min(1).optional().nullable(),activeColor:_r,inactiveColor:_r,dotSize:g().min(Vr.min).max(Vr.max).optional().nullable(),dotSpacing:g().min(0).max(40).optional().nullable(),numericColor:_r,numericFontSize:g().min(8).max(48).optional().nullable(),numericPosition:T(["above","below","left","right"]).optional().nullable()}).optional().nullable()}),vt={stepperType:"dots",totalDots:5,activeIndex:1,activeColor:"#3F73FF",inactiveColor:"#FFFFFF",dotSize:14,dotSpacing:12,numericColor:"#000000",numericFontSize:14,numericPosition:"below"};function Zk({style:e,props:t}){const r=fi()==="mobile",a=typeof window<"u"&&window.location.pathname.includes("page")&&r,i=zn((t==null?void 0:t.totalDots)??vt.totalDots,qr.min,qr.max),l=zn((t==null?void 0:t.dotSize)??vt.dotSize,Vr.min,Vr.max),s=zn((t==null?void 0:t.dotSpacing)??vt.dotSpacing,0,40),u=(t==null?void 0:t.activeIndex)??vt.activeIndex,c=zn(u,1,i),h=se((t==null?void 0:t.activeColor)??vt.activeColor),d=se((t==null?void 0:t.inactiveColor)??vt.inactiveColor),f=(t==null?void 0:t.stepperType)??vt.stepperType,p=f==="numeric"||f==="both",b=f==="dots"||f==="both",x=(t==null?void 0:t.numericColor)??vt.numericColor,w=se(x),k=zn((t==null?void 0:t.numericFontSize)??vt.numericFontSize,8,48),S=(t==null?void 0:t.numericPosition)??vt.numericPosition,_={...Yl((e==null?void 0:e.backgroundColor)??void 0),padding:Gk(e==null?void 0:e.padding,a),margin:Wk(e==null?void 0:e.margin,a),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},y=p&&b&&(S==="above"||S==="below"),C={display:"inline-flex",flexDirection:y?"column":"row",alignItems:"center",justifyContent:(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center",gap:y?"8px":b?`${s}px`:"0px"},I={display:"inline-flex",gap:`${s}px`,alignItems:"center",flexWrap:"wrap"},R=`${c}/${i}`,E=hu(x),O={fontSize:`${k}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...E?{backgroundImage:w,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:w??void 0}},M=()=>p?m.jsx("span",{style:O,children:R}):null,P=()=>m.jsx("div",{style:I,"aria-hidden":"true",children:Array.from({length:i}).map((B,D)=>{const F=D===c-1,G={width:l,height:l,borderRadius:"50%",border:"2px solid #0000001a",transition:"background 120ms ease, transform 120ms ease",transform:F?"scale(1.1)":"scale(1)",...Yl(F?h:d)};return m.jsx("span",{style:G,"data-active":F?"true":"false"},D)})});return m.jsx("div",{className:"stepper-block",style:_,role:"progressbar","aria-valuenow":c,"aria-valuemin":1,"aria-valuemax":i,"aria-valuetext":`Step ${c} of ${i}`,"aria-label":`Step ${c} of ${i}`,children:m.jsxs("div",{style:C,children:[p&&S==="above"&&M(),p&&S==="left"&&M(),b&&P(),p&&S==="right"&&M(),p&&S==="below"&&M()]})})}const qk=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Vk=$().regex(/^rgba?\([^\)]+\)$/i),Yk=le("transparent"),Bo=H([qk,Vk,Yk]).nullable().optional(),fu=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Kk=fu,Jk=T(["left","center","right"]).optional().nullable(),Xk=["disc","circle","square","dash","arrow","check","cross","none"],Qk=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],Kl={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},ew=A({text:$()}),tw=A({style:A({color:Bo,backgroundColor:Bo,textAlign:Jk,fontSize:g().min(1).max(200).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:H([g(),$()]).optional().nullable(),lineHeight:g().min(1).max(3).optional().nullable(),padding:fu,margin:Kk}).optional().nullable(),props:A({listType:T(["unordered","ordered"]).optional().nullable(),marker:T([...Xk,...Qk]).optional().nullable(),numberSuffix:Fc(e=>e===""?void 0:e,T([".",")"]).optional().nullable()),startNumber:g().min(0).max(9999).optional().nullable(),markerColor:Bo,markerSize:g().min(1).max(200).optional().nullable(),itemGap:g().min(0).max(64).optional().nullable(),items:oe(ew).optional().nullable()}).optional().nullable(),responsive:Ye}),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"}]},Jl=(e,t,n)=>Math.min(Math.max(e,t),n),Xl=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ql=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="",r=e;for(const[o,a]of t)for(;r>=o;)n+=a,r-=o;return n},es=e=>{let t=e,n="";for(;t>0;){const r=(t-1)%26;n=String.fromCharCode(97+r)+n,t=Math.floor((t-1)/26)}return n||"a"},nw=(e,t,n,r)=>{const o=n+t;switch(e){case"decimal-zero":return`${String(o).padStart(2,"0")}${r}`;case"lower-alpha":return`${es(o)}${r}`;case"upper-alpha":return`${es(o).toUpperCase()}${r}`;case"lower-roman":return`${Ql(o).toLowerCase()}${r}`;case"upper-roman":return`${Ql(o)}${r}`;case"decimal":default:return`${o}${r}`}};function rw({style:e,props:t,renderItemText:n}){var k;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,l=(t==null?void 0:t.startNumber)??Dt.startNumber,s=(t==null?void 0:t.markerColor)??Dt.markerColor,u=Jl((t==null?void 0:t.markerSize)??Dt.markerSize,1,200),c=Jl((t==null?void 0:t.itemGap)??Dt.itemGap,0,64),h=(k=t==null?void 0:t.items)!=null&&k.length?t.items:Dt.items.map(S=>({...S})),d=z(e==null?void 0:e.color,"listText"),f=(e==null?void 0:e.textAlign)??"left",p={backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),padding:Xl(e==null?void 0:e.padding),margin:Xl(e==null?void 0:e.margin),width:"100%",boxSizing:"border-box",color:d,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},b={textAlign:"left"},x={verticalAlign:"top",paddingRight:"8px",whiteSpace:"nowrap",color:z(s,"listText"),fontSize:`${u}px`},w=S=>a==="none"?null:o?nw(a,S,l,i):Kl[a]??Kl.disc;return m.jsx("div",{className:"list-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:p,children:m.jsx("table",{role:"presentation",cellPadding:0,cellSpacing:0,style:{borderCollapse:"collapse",width:f==="left"?"100%":"auto",maxWidth:"100%",marginLeft:f==="left"?void 0:"auto",marginRight:f==="center"?"auto":void 0},children:m.jsx("tbody",{children:h.map((S,v)=>{const _=w(v),y=typeof S.text=="string"&&S.text.indexOf("{{")!==-1;return m.jsxs("tr",{children:[a!=="none"&&m.jsx("td",{style:x,children:_}),m.jsx("td",{style:{...b,paddingBottom:v<h.length-1?`${c}px`:0,width:f==="left"?"100%":void 0},children:(n==null?void 0:n(S,v))??(y?m.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:pi(S.text)}}):S.text)})]},v)})})})})}const ow=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),aw=$().regex(/^rgba?\([^\)]+\)$/i),iw=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),lw=le("transparent"),sw=H([ow,aw,iw,lw]).nullable().optional(),cw=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),uw=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),va=A({style:A({backgroundColor:sw,padding:cw,margin:uw}).optional().nullable(),props:A({direction:T(["row","column"]).optional().nullable(),directionTablet:T(["row","column"]).optional().nullable(),directionMobile:T(["row","column"]).optional().nullable(),gap:g().optional().nullable(),gapTablet:g().optional().nullable(),gapMobile:g().optional().nullable(),alignment:T(["start","center","end","space-between"]).optional().nullable(),alignmentTablet:T(["start","center","end","space-between"]).optional().nullable(),alignmentMobile:T(["start","center","end","space-between"]).optional().nullable(),wrap:L().optional().nullable(),ariaLabel:$().optional().nullable()}).optional().nullable(),responsive:Ye}),Cr={direction:"row",gap:12,alignment:"start",wrap:!0},Yr={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},dw=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,hw=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function ts(e,t,n,r){const o=e==="row"?Yr[t]:"flex-start",a=e==="column"?Yr[t]:"center";return`flex-direction:${e}!important;justify-content:${o}!important;align-items:${a}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;gap:${r}px!important;`}let fw=0;function pw({style:e,buttons:t,props:n}){const r=(n==null?void 0:n.direction)??Cr.direction,o=(n==null?void 0:n.directionTablet)??r,a=(n==null?void 0:n.directionMobile)??o,i=(n==null?void 0:n.gap)??Cr.gap,l=(n==null?void 0:n.gapTablet)??i,s=(n==null?void 0:n.gapMobile)??l,u=(n==null?void 0:n.alignment)??Cr.alignment,c=(n==null?void 0:n.alignmentTablet)??u,h=(n==null?void 0:n.alignmentMobile)??c,d=(n==null?void 0:n.wrap)??Cr.wrap,f=(n==null?void 0:n.ariaLabel)??void 0,p=r,b=u,x=i,w=e==null?void 0:e.margin,k=((w==null?void 0:w.left)??0)+((w==null?void 0:w.right)??0),S={display:"flex",flexDirection:p,gap:`${x}px`,justifyContent:p==="row"?Yr[b]:"flex-start",alignItems:p==="column"?Yr[b]:"center",flexWrap:p==="row"&&d?"wrap":"nowrap",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),padding:dw(e==null?void 0:e.padding),margin:hw(e==null?void 0:e.margin),boxSizing:"border-box",width:k>0?`max(0px, calc(100% - ${k}px))`:"100%"},v=U.useMemo(()=>`ahd-bg-${fw+=1}`,[]),_=U.useMemo(()=>{const y=`.${v}`;let C="";return(o!==r||c!==u||l!==i)&&(C+=`@media (max-width:${Ue}px){${y}{${ts(o,c,d,l)}}}`),(a!==o||h!==c||s!==l)&&(C+=`@media (max-width:${Ve}px){${y}{${ts(a,h,d,s)}}}`),C},[v,r,o,a,u,c,h,i,l,s,d]);return m.jsxs("div",{className:`button-group ${v}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:S,role:"group","aria-label":f,children:[_&&m.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),t]})}const gw=va.shape.props.unwrap().unwrap().shape,mw=A({style:va.shape.style,props:A({...gw,childrenIds:oe($()).optional().nullable()}).optional().nullable(),responsive:va.shape.responsive});function bw({style:e,props:t}){const{childrenIds:n,...r}=t??{},o=(n??[]).map(a=>m.jsx(Me,{id:a},a));return m.jsx(pw,{style:e,props:r,buttons:o})}const xw=A({titleChildrenIds:oe($()).optional().nullable(),contentChildrenIds:oe($()).optional().nullable()}),vw=A({responsive:Ye,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),marginBottom:g().optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable()}).optional().nullable(),props:A({items:oe(xw).min(1).max(25).optional().nullable(),iconColor:$().optional().nullable(),iconSize:g().optional().nullable(),defaultOpen:L().optional().nullable(),activeBorderColor:$().optional().nullable()}).optional().nullable()});function kw(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 ns=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e);function ww(e,t){if(!e)return;const n=Math.max(t.top,t.right,t.bottom,t.left),r=e.split(" ").map(o=>Math.max(0,parseFloat(o)-n));return r.length===1?`${r[0]}px`:r.map(o=>`${o}px`).join(" ")}function Sw({style:e,props:t}){const n=U.useMemo(()=>{const C=t==null?void 0:t.items;return!C||C.length===0?{titleChildrenIds:[],contentChildrenIds:[]}:{titleChildrenIds:C[0].titleChildrenIds??[],contentChildrenIds:C[0].contentChildrenIds??[]}},[t==null?void 0:t.items]),r=U.useMemo(()=>`email-accordion-${Math.random().toString(36).slice(2,9)}`,[]),o=`${r}-content`,a=e==null?void 0:e.padding,i=e==null?void 0:e.margin,l=((i==null?void 0:i.left)??0)+((i==null?void 0:i.right)??0),s=t==null?void 0:t.activeBorderColor,u=e==null?void 0:e.borderColor,c=se(s),h=se(u),d=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),f=z(null,"surface"),p=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},b=`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`,x=kw(e==null?void 0:e.borderRadius),w=ns(u),k=ns(s),S=w||k,v={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",borderRadius:x,margin:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,boxShadow:"none"};(e==null?void 0:e.borderRadius)!=null&&(v.overflow="hidden"),S?(v.padding=b,w?v.background=z(u,"borderAdaptive"):u&&(v.borderStyle="solid",v.borderColor=h,v.borderWidth=b)):u&&(v.borderStyle="solid",v.borderColor=h,v.borderWidth=b);const _={background:d??(S?f:void 0),borderRadius:S?ww(x,p):void 0,padding:a?`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`:void 0,overflow:S&&(e==null?void 0:e.borderRadius)!=null?"hidden":void 0},y=[];return s&&(k?y.push(`#${r}:checked + .email-accordion-root { background:${z(s,"borderAdaptive")}!important; border-style:none!important; padding:${b}!important; }`):y.push(`#${r}:checked + .email-accordion-root { background:none!important; border-style:solid!important; border-color:${c}!important; border-width:${b}!important; ${S?"padding:0!important;":""} }`)),m.jsxs("div",{className:"accordion-block",style:{marginBottom:(e==null?void 0:e.marginBottom)!=null?`${e.marginBottom}px`:"5px"},children:[m.jsx("style",{children:`
|
|
240
|
+
${Qe} { .${Pe} { text-align: ${ve(L,c,x)} !important; } }
|
|
241
|
+
`.trim():null,He=Ot(ae,pe,{themedBorderColor:z(pe==null?void 0:pe.borderColor,"borderAdaptive")}),ee=[Fe,He].filter(Boolean).join(`
|
|
242
|
+
`)||null,je=ce=>{if(ce!=null)return typeof ce=="number"?`${ce}px`:`${ce.topLeft}px ${ce.topRight}px ${ce.bottomRight}px ${ce.bottomLeft}px`},ze=(e==null?void 0:e.borderColor)??null,ie=(e==null?void 0:e.borderWidth)??null,yt=Q1(z(ze,"borderAdaptive"),ie),Ge=nk(e==null?void 0:e.boxShadow),et=z(e==null?void 0:e.backgroundColor,"bgAdaptive")??"",ot=J1(et),zt=(e==null?void 0:e.backgroundSize)==="none",It=!zt&&(e!=null&&e.backgroundImage)?`url(${e.backgroundImage})`:void 0,rt=X1(et,It),jt=ue(e==null?void 0:e.backgroundColor,It,"bgAdaptive"),xt=zt?void 0:(e==null?void 0:e.backgroundSize)??void 0,Vt=(e==null?void 0:e.backgroundRepeat)??"no-repeat",Pn=ze&&(ze.includes("linear-gradient")||ze.includes("radial-gradient")||ze.includes("repeating-linear-gradient")),Ke=V!=null,Rt=Ke?{"--ahd-cb-h":`${V}px`}:{},ne=Ke?" container-block-has-height":"";if(Pn){const ce={...yt,borderRadius:je(e==null?void 0:e.borderRadius),width:j,maxWidth:"100%",minWidth:0,height:Ke?`${V}px`:void 0,boxSizing:"border-box",...Ae(M,e==null?void 0:e.margin,K==="100%"),...fe?{display:"inline-block"}:{},...Ge,...Rt},xe={...ot,backgroundImage:rt,backgroundSize:xt,backgroundRepeat:Vt,borderRadius:rk((e==null?void 0:e.borderRadius)??0,ie),overflow:y?"auto":"hidden",padding:ql(e==null?void 0:e.padding),width:"100%",height:Ke?"100%":void 0,boxSizing:"border-box"},tt=`container-block${y?" container-block-overflow":""}${ne}${ae?` ${ae}`:""}`,at=`container-block-inner${y?" container-block-overflow":""}`,Tt=W?{...ce,...q.style,...fe?{display:"inline-block"}:{}}:ce,Kt=m.jsx(Q,{className:tt,"aria-label":P,id:B,...jt,...q,style:Tt,children:m.jsx("div",{className:at,style:xe,children:n})});return m.jsxs(m.Fragment,{children:[ee&&m.jsx("style",{dangerouslySetInnerHTML:{__html:ee}}),fe?m.jsx("div",{className:Pe,style:fe,children:Kt}):Kt]})}const Ie={...ot,backgroundImage:rt,backgroundSize:xt,backgroundRepeat:Vt,...yt,borderRadius:je(e==null?void 0:e.borderRadius),padding:ql(e==null?void 0:e.padding),...Ae(M,e==null?void 0:e.margin,K==="100%"),width:j,maxWidth:"100%",minWidth:0,height:Ke?`${V}px`:void 0,overflow:y?"auto":void 0,boxSizing:"border-box",...y?{}:{display:"flow-root"},...fe?{display:"inline-block"}:{},...Ge,...Rt},Ze=`container-block${y?" container-block-overflow":""}${ne}${ae?` ${ae}`:""}`,Je=W?{...Ie,...q.style,...fe?{display:"inline-block"}:{}}:Ie;if(!n){const ce=m.jsx(Q,{className:Ze,"aria-label":P,id:B,...jt,...q,style:Je});return m.jsxs(m.Fragment,{children:[ee&&m.jsx("style",{dangerouslySetInnerHTML:{__html:ee}}),fe?m.jsx("div",{className:Pe,style:fe,children:ce}):ce]})}const Yt=m.jsx(Q,{className:Ze,"aria-label":P,id:B,...jt,...q,style:Je,children:n});return m.jsxs(m.Fragment,{children:[ee&&m.jsx("style",{dangerouslySetInnerHTML:{__html:ee}}),fe?m.jsx("div",{className:Pe,style:fe,children:Yt}):Yt]})}const ik=A({style:ok.shape.style,responsive:Ye,props:A({childrenIds:oe($()).optional().nullable(),fullWidth:O().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),height:g().min(0).optional().nullable(),heightTablet:H([g().min(0),le("auto")]).optional().nullable(),heightMobile:H([g().min(0),le("auto")]).optional().nullable(),overflow:O().optional().nullable(),alignment:T(["left","center","right"]).optional().nullable(),alignmentTablet:T(["left","center","right"]).optional().nullable(),alignmentMobile:T(["left","center","right"]).optional().nullable(),tag:T(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),hoverEffect:At}).optional().nullable()});function fu({style:e,props:t,responsive:n,blockId:r}){var l,s,u,c;const o=(t==null?void 0:t.childrenIds)??[],a=(s=(l=n==null?void 0:n.tablet)==null?void 0:l.props)==null?void 0:s.heightTablet,i=(c=(u=n==null?void 0:n.mobile)==null?void 0:u.props)==null?void 0:c.heightMobile;return m.jsx(ak,{style:e,blockId:r,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)??a??void 0,heightMobile:(t==null?void 0:t.heightMobile)??i??void 0,overflow:(t==null?void 0:t.overflow)??void 0,alignment:(t==null?void 0:t.alignment)??void 0,alignmentTablet:(t==null?void 0:t.alignmentTablet)??void 0,alignmentMobile:(t==null?void 0:t.alignmentMobile)??void 0,tag:(t==null?void 0:t.tag)??void 0,ariaLabel:(t==null?void 0:t.ariaLabel)??void 0,elementId:(t==null?void 0:t.elementId)??void 0,showLink:(t==null?void 0:t.showLink)??void 0,linkHref:(t==null?void 0:t.linkHref)??void 0,linkTarget:(t==null?void 0:t.linkTarget)??void 0,hoverEffect:(t==null?void 0:t.hoverEffect)??void 0},children:o.map(h=>m.jsx(Me,{id:h},h))})}const lk=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),sk=$().regex(/^rgba?\([^\)]+\)$/i),ck=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),uk=le("transparent"),kn=H([lk,sk,ck,uk]).nullable().optional(),dk=T(["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(),hk=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Lo=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Oo=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),fk=$().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(),pk=A({color:kn,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:O().default(!1)}).partial().optional().nullable(),gk=A({position:T(["top","top-left","top-right","top-center","bottom","bottom-left","bottom-right","bottom-center","center","left","left-center","right","right-center"]).optional().default("right"),isCaret:O().optional().default(!0),selector:$().optional().default(""),showCloseIcon:O().optional(),iconCloseColor:kn,closeIconPosition:T(["left","center","right"]).optional(),closeIconPaddingTop:g().optional(),closeIconPaddingLeft:g().optional(),closeIconPaddingRight:g().optional(),bannerSubType:$().optional()}).passthrough().optional().nullable(),mk=oe(A({id:$(),name:$(),type:$().optional().default("text"),value:$().optional()})).optional().nullable(),Vl=A({formFields:mk,backdropColor:kn.default(null),borderColor:kn.default(null),borderRadius:g().optional().nullable(),canvasColor:kn.default(null),textColor:kn,hostTheme:T(["follow","light"]).optional().nullable(),fontFamily:dk,childrenIds:oe($()).optional().nullable(),maxWidth:$().default(""),maxHeight:$().default(""),top:$().default(""),left:$().default(""),padding:Lo,margin:Oo,maxWidthTablet:$().optional().nullable(),maxWidthMobile:$().optional().nullable(),maxHeightTablet:$().optional().nullable(),maxHeightMobile:$().optional().nullable(),paddingTablet:Lo,paddingMobile:Lo,marginTablet:Oo,marginMobile:Oo,borderWidth:hk,boxShadow:pk,behaviour:gk,linkHref:$().optional().default(""),backgroundImage:$().default("").nullable().optional(),backgroundSize:fk,backgroundRepeat:T(["repeat","no-repeat"]).optional().nullable()}),bk=()=>null,xk="INTER";function vk(e){return e||xk}function pn(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function $r(e,t,n){const r=e??{},o=r[t];if(n==="desktop")return pn(o)?o:null;const a=r[`${t}Tablet`];if(n==="tablet")return pn(a)?a:pn(o)?o:null;const i=r[`${t}Mobile`];return pn(i)?i:pn(a)?a:pn(o)?o:null}function zo(e,t){return{maxWidth:$r(e,"maxWidth",t)??null,maxHeight:$r(e,"maxHeight",t)??null,padding:$r(e,"padding",t)??null,margin:$r(e,"margin",t)??null}}function kk(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function wk(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function jo(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:${kk(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${wk(t.margin)};}`),n.join("")}function Sk(e,t,n){const r=`.${e}`,o={width:`${r} .ahd-layout-sizer`,table:`${r} .ahd-layout-table`,padding:`${r} .email-layout-content`,margin:`${r} .email-layout-content`},a=zo(t,"desktop"),i=jo(o,{...a,maxWidth:a.maxWidth??n??null}),l=jo(o,zo(t,"tablet")),s=jo(o,zo(t,"mobile")),u=(c,h)=>h?`@media (max-width:${c}px){${h}}@container ahd-page (max-width:${c}px){${h}}`:"";return[i,u(Ue,l),u(Ve,s)].filter(Boolean).join("")}const $k="Made with Page Pilot",_k="https://pagepilot.fabbuilder.com";let Ck=0;function Ak(e){switch(vk(e)){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}function yk(e){const{borderColor:t,borderWidth:n,borderRadius:r}=e;if(!t)return{};if(t==="transparent")return{border:"none"};const o=t&&(t.includes("linear-gradient")||t.includes("radial-gradient")||t.includes("repeating-linear-gradient")),a=r??0,i=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:a?i(a):void 0};if(o){const s=z(e.canvasColor,"canvas"),u=!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:`${u}, ${t}`,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",borderRadius:a?i(a):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:a?i(a):void 0}}function Ik(e){return e.includes("gradient")?(e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[])[0]??"#000000":e}function Yl(e){if(!e||!e.color)return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e,l=Ik(t);return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${l}`}}function Rk(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 Tk(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 Ek(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function Nk(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=Ek(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function Mk({position:e,color:t}){const o="20px",a={position:"absolute",background:t,pointerEvents:"none",zIndex:2},i="polygon(50% 0, 0 100%, 100% 100%)",l="polygon(0 0, 100% 0, 50% 100%)",s="polygon(100% 0, 100% 100%, 0 50%)",u="polygon(0 0, 0 100%, 100% 50%)";let c;switch(e){case"top":c={top:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:i};break;case"top-left":c={top:-8,left:o,width:16,height:8,clipPath:i};break;case"top-right":c={top:-8,right:o,width:16,height:8,clipPath:i};break;case"bottom":c={bottom:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:l};break;case"bottom-left":c={bottom:-8,left:o,width:16,height:8,clipPath:l};break;case"bottom-right":c={bottom:-8,right:o,width:16,height:8,clipPath:l};break;case"left":c={left:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:s};break;case"right":c={right:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:u};break;default:return null}return m.jsx("div",{"aria-hidden":!0,style:{...a,...c}})}function Pk({color:e,position:t,paddingTop:n,paddingLeft:r,paddingRight:o}){const a=z(e,"closeIcon"),i=t??"right",l=typeof n=="number"?n:2,c=i==="left"?{left:typeof r=="number"?r:2}:i==="center"?{left:"50%",transform:"translateX(-50%)"}:{right:typeof o=="number"?o:2};return m.jsx("div",{role:"button","aria-label":"Close",tabIndex:0,"data-action":"onCloseStep",style:{position:"absolute",top:l,...c,width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",zIndex:11,cursor:"pointer",lineHeight:0,background:"transparent",border:0},children:m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{pointerEvents:"none",stroke:a},children:[m.jsx("line",{x1:"3",y1:"3",x2:"11",y2:"11"}),m.jsx("line",{x1:"11",y1:"3",x2:"3",y2:"11"})]})})}function Lk(){const e=z(null,"brandingText");return m.jsx("div",{className:"ahd-branding-footer",style:{display:"block",width:"100%",textAlign:"left",fontSize:11,color:e,marginTop:8},children:m.jsx("a",{href:_k,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:$k})})}function Ok(e){var ge,Oe,J,V,K,j,Y,fe,ve,me,pe,ye,ae,Pe,De,be,Fe,He;const t=e.childrenIds??[],n=typeof window<"u"&&window.location?window.location.pathname:"",r=n.includes("page")?"page":"",o=n.includes("app-banner"),a=n.includes("demo"),i=n.includes("faq"),l=n.includes("tour"),s=n.includes("tooltip"),u=l||s||a,c=["top-left","top-right","bottom-left","bottom-right","top-center","bottom-center","left-center","right-center","center"],h=nb(),d=(ge=bk())==null?void 0:ge.getState(),f=(V=(J=(Oe=d==null?void 0:d.appBanner)==null?void 0:Oe.view)==null?void 0:J.record)==null?void 0:V.type,p=h??f,b=r==="page"||h==="page",x=o&&(p==="floater"||((K=e.behaviour)==null?void 0:K.bannerSubType)==="floater"||c.includes((j=e.behaviour)==null?void 0:j.position)),w=o&&(p==="modal"||((Y=e.behaviour)==null?void 0:Y.bannerSubType)==="modal"),k=(u||x||w)&&((fe=e.behaviour)==null?void 0:fe.showCloseIcon)!==!1,v=u&&!0,_=o&&e.linkHref?e.linkHref:null,y=U.useMemo(()=>`ahd-layout-${Ck+=1}`,[]),I=Sk(y,e,b||i?"100%":o&&!x?"900px":"320px"),R=(o||a)&&!!e.backgroundImage;e.borderRadius;const E=e.borderRadius??0,L=ee=>typeof ee=="number"?`${ee}px`:`${ee.topLeft}px ${ee.topRight}px ${ee.bottomRight}px ${ee.bottomLeft}px`,P=(ee=>ee==null?!1:typeof ee=="number"?ee>0:(ee.topLeft??0)>0||(ee.topRight??0)>0||(ee.bottomRight??0)>0||(ee.bottomLeft??0)>0)(E),B=ee=>_?m.jsx("a",{href:_,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:ee}):ee,D=yk({...e,borderColor:z(e.borderColor,"borderAdaptive")??null}),F=o&&!!((ve=e.boxShadow)!=null&&ve.color)&&!!e.boxShadow.inset,G=o&&!F?Yl(e.boxShadow):{},W=F?Yl(e.boxShadow):{},X=Tk(((me=e.behaviour)==null?void 0:me.position)??"right"),Q=u&&!x&&!w&&((pe=e.behaviour)==null?void 0:pe.isCaret)!==!1,q=z(e.canvasColor,"canvas"),te=Nk(q,X),Se=(((ye=e.margin)==null?void 0:ye.left)??0)+(((ae=e.margin)==null?void 0:ae.right)??0),Ae=Se>0?`calc(100% - ${Se}px)`:"100%";return B(m.jsxs("div",{className:y,...e.hostTheme==="light"?{"data-pp-theme":"light"}:null,style:{minHeight:"100%",display:"block",alignItems:"center"},children:[I&&m.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),m.jsx("div",{style:{color:z(e.textColor,"layoutText"),fontFamily:Ak(e.fontFamily),fontSize:"16px",fontWeight:"400",letterSpacing:"normal",lineHeight:"1.5",margin:"0",minHeight:"100%",width:"100%"},children:m.jsxs("div",{className:"ahd-layout-sizer",style:{position:"relative",margin:"0 auto",...w||x?null:{maxWidth:"100%"}},children:[Q&&m.jsx(Mk,{position:X,color:te}),m.jsxs("div",{style:{position:"relative",borderRadius:L(E),...P?{overflowX:"hidden",overflowY:"visible"}:{overflow:"visible"},...G},children:[F&&m.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:L(E),zIndex:1,...W}}),k&&m.jsx(Pk,{color:(Pe=e.behaviour)==null?void 0:Pe.iconCloseColor,position:(De=e.behaviour)==null?void 0:De.closeIconPosition,paddingTop:(be=e.behaviour)==null?void 0:be.closeIconPaddingTop,paddingLeft:(Fe=e.behaviour)==null?void 0:Fe.closeIconPaddingLeft,paddingRight:(He=e.behaviour)==null?void 0:He.closeIconPaddingRight}),m.jsx("table",{width:"100%",className:"ahd-layout-table",...ue(e.canvasColor,e.backgroundImage,"canvas"),style:{width:Ae,maxWidth:"100%",boxSizing:"border-box",flex:1,margin:e.margin?`${e.margin.top}px ${e.margin.right}px ${e.margin.bottom}px ${e.margin.left}px`:"0 auto",...w||x?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...Rk(q,e.backgroundImage,o?"appBanner":""),borderCollapse:"separate",tableLayout:"fixed",...D,borderRadius:L(E),overflow:P?"clip":"visible",...R?{backgroundImage:`url(${e.backgroundImage})`,backgroundSize:e.backgroundSize??"cover",backgroundPosition:"center",backgroundRepeat:e.backgroundRepeat??"no-repeat"}:{}},role:"presentation",cellSpacing:"0",cellPadding:"0",children:m.jsx("tbody",{children:m.jsx("tr",{style:{width:"100%"},children:m.jsxs("td",{className:"email-layout-content",children:[t.map(ee=>m.jsx(Me,{id:ee},ee)),v&&m.jsx(Lk,{})]})})})})]})]})})]}))}const zk=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),jk=$().regex(/^rgba?\([^\)]+\)$/i),Bk=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Dk=le("transparent"),_r=H([zk,jk,Bk,Dk]).nullable().optional(),Fk=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Hk=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Gk=T(["left","center","right"]).optional().nullable(),qr={min:1,max:20},Vr={min:4,max:48},pu=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),Wk=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Uk=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,zn=(e,t,n)=>Math.min(Math.max(e,t),n),Kl=e=>e?pu(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},Zk=A({style:A({backgroundColor:_r,textAlign:Gk,padding:Fk,margin:Hk}).optional().nullable(),props:A({stepperType:T(["dots","numeric","both"]).optional().nullable(),totalDots:g().min(qr.min).max(qr.max).optional().nullable(),activeIndex:g().min(1).optional().nullable(),activeColor:_r,inactiveColor:_r,dotSize:g().min(Vr.min).max(Vr.max).optional().nullable(),dotSpacing:g().min(0).max(40).optional().nullable(),numericColor:_r,numericFontSize:g().min(8).max(48).optional().nullable(),numericPosition:T(["above","below","left","right"]).optional().nullable()}).optional().nullable()}),vt={stepperType:"dots",totalDots:5,activeIndex:1,activeColor:"#3F73FF",inactiveColor:"#FFFFFF",dotSize:14,dotSpacing:12,numericColor:"#000000",numericFontSize:14,numericPosition:"below"};function qk({style:e,props:t}){const r=fi()==="mobile",a=typeof window<"u"&&window.location.pathname.includes("page")&&r,i=zn((t==null?void 0:t.totalDots)??vt.totalDots,qr.min,qr.max),l=zn((t==null?void 0:t.dotSize)??vt.dotSize,Vr.min,Vr.max),s=zn((t==null?void 0:t.dotSpacing)??vt.dotSpacing,0,40),u=(t==null?void 0:t.activeIndex)??vt.activeIndex,c=zn(u,1,i),h=se((t==null?void 0:t.activeColor)??vt.activeColor),d=se((t==null?void 0:t.inactiveColor)??vt.inactiveColor),f=(t==null?void 0:t.stepperType)??vt.stepperType,p=f==="numeric"||f==="both",b=f==="dots"||f==="both",x=(t==null?void 0:t.numericColor)??vt.numericColor,w=se(x),k=zn((t==null?void 0:t.numericFontSize)??vt.numericFontSize,8,48),S=(t==null?void 0:t.numericPosition)??vt.numericPosition,_={...Kl((e==null?void 0:e.backgroundColor)??void 0),padding:Wk(e==null?void 0:e.padding,a),margin:Uk(e==null?void 0:e.margin,a),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},y=p&&b&&(S==="above"||S==="below"),C={display:"inline-flex",flexDirection:y?"column":"row",alignItems:"center",justifyContent:(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center",gap:y?"8px":b?`${s}px`:"0px"},I={display:"inline-flex",gap:`${s}px`,alignItems:"center",flexWrap:"wrap"},R=`${c}/${i}`,E=pu(x),L={fontSize:`${k}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...E?{backgroundImage:w,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:w??void 0}},M=()=>p?m.jsx("span",{style:L,children:R}):null,P=()=>m.jsx("div",{style:I,"aria-hidden":"true",children:Array.from({length:i}).map((B,D)=>{const F=D===c-1,G={width:l,height:l,borderRadius:"50%",border:"2px solid #0000001a",transition:"background 120ms ease, transform 120ms ease",transform:F?"scale(1.1)":"scale(1)",...Kl(F?h:d)};return m.jsx("span",{style:G,"data-active":F?"true":"false"},D)})});return m.jsx("div",{className:"stepper-block",style:_,role:"progressbar","aria-valuenow":c,"aria-valuemin":1,"aria-valuemax":i,"aria-valuetext":`Step ${c} of ${i}`,"aria-label":`Step ${c} of ${i}`,children:m.jsxs("div",{style:C,children:[p&&S==="above"&&M(),p&&S==="left"&&M(),b&&P(),p&&S==="right"&&M(),p&&S==="below"&&M()]})})}const Vk=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Yk=$().regex(/^rgba?\([^\)]+\)$/i),Kk=le("transparent"),Bo=H([Vk,Yk,Kk]).nullable().optional(),gu=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Jk=gu,Xk=T(["left","center","right"]).optional().nullable(),Qk=["disc","circle","square","dash","arrow","check","cross","none"],ew=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],Jl={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},tw=A({text:$()}),nw=A({style:A({color:Bo,backgroundColor:Bo,textAlign:Xk,fontSize:g().min(1).max(200).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:H([g(),$()]).optional().nullable(),lineHeight:g().min(1).max(3).optional().nullable(),padding:gu,margin:Jk}).optional().nullable(),props:A({listType:T(["unordered","ordered"]).optional().nullable(),marker:T([...Qk,...ew]).optional().nullable(),numberSuffix:Gc(e=>e===""?void 0:e,T([".",")"]).optional().nullable()),startNumber:g().min(0).max(9999).optional().nullable(),markerColor:Bo,markerSize:g().min(1).max(200).optional().nullable(),itemGap:g().min(0).max(64).optional().nullable(),items:oe(tw).optional().nullable()}).optional().nullable(),responsive:Ye}),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"}]},Xl=(e,t,n)=>Math.min(Math.max(e,t),n),Ql=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,es=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="",r=e;for(const[o,a]of t)for(;r>=o;)n+=a,r-=o;return n},ts=e=>{let t=e,n="";for(;t>0;){const r=(t-1)%26;n=String.fromCharCode(97+r)+n,t=Math.floor((t-1)/26)}return n||"a"},rw=(e,t,n,r)=>{const o=n+t;switch(e){case"decimal-zero":return`${String(o).padStart(2,"0")}${r}`;case"lower-alpha":return`${ts(o)}${r}`;case"upper-alpha":return`${ts(o).toUpperCase()}${r}`;case"lower-roman":return`${es(o).toLowerCase()}${r}`;case"upper-roman":return`${es(o)}${r}`;case"decimal":default:return`${o}${r}`}};function ow({style:e,props:t,renderItemText:n}){var k;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,l=(t==null?void 0:t.startNumber)??Dt.startNumber,s=(t==null?void 0:t.markerColor)??Dt.markerColor,u=Xl((t==null?void 0:t.markerSize)??Dt.markerSize,1,200),c=Xl((t==null?void 0:t.itemGap)??Dt.itemGap,0,64),h=(k=t==null?void 0:t.items)!=null&&k.length?t.items:Dt.items.map(S=>({...S})),d=z(e==null?void 0:e.color,"listText"),f=(e==null?void 0:e.textAlign)??"left",p={backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),padding:Ql(e==null?void 0:e.padding),margin:Ql(e==null?void 0:e.margin),width:"100%",boxSizing:"border-box",color:d,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},b={textAlign:"left"},x={verticalAlign:"top",paddingRight:"8px",whiteSpace:"nowrap",color:z(s,"listText"),fontSize:`${u}px`},w=S=>a==="none"?null:o?rw(a,S,l,i):Jl[a]??Jl.disc;return m.jsx("div",{className:"list-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:p,children:m.jsx("table",{role:"presentation",cellPadding:0,cellSpacing:0,style:{borderCollapse:"collapse",width:f==="left"?"100%":"auto",maxWidth:"100%",marginLeft:f==="left"?void 0:"auto",marginRight:f==="center"?"auto":void 0},children:m.jsx("tbody",{children:h.map((S,v)=>{const _=w(v),y=typeof S.text=="string"&&S.text.indexOf("{{")!==-1;return m.jsxs("tr",{children:[a!=="none"&&m.jsx("td",{style:x,children:_}),m.jsx("td",{style:{...b,paddingBottom:v<h.length-1?`${c}px`:0,width:f==="left"?"100%":void 0},children:(n==null?void 0:n(S,v))??(y?m.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:pi(S.text)}}):S.text)})]},v)})})})})}const aw=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),iw=$().regex(/^rgba?\([^\)]+\)$/i),lw=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),sw=le("transparent"),cw=H([aw,iw,lw,sw]).nullable().optional(),uw=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),dw=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),va=A({style:A({backgroundColor:cw,padding:uw,margin:dw}).optional().nullable(),props:A({direction:T(["row","column"]).optional().nullable(),directionTablet:T(["row","column"]).optional().nullable(),directionMobile:T(["row","column"]).optional().nullable(),gap:g().optional().nullable(),gapTablet:g().optional().nullable(),gapMobile:g().optional().nullable(),alignment:T(["start","center","end","space-between"]).optional().nullable(),alignmentTablet:T(["start","center","end","space-between"]).optional().nullable(),alignmentMobile:T(["start","center","end","space-between"]).optional().nullable(),wrap:O().optional().nullable(),ariaLabel:$().optional().nullable()}).optional().nullable(),responsive:Ye}),Cr={direction:"row",gap:12,alignment:"start",wrap:!0},Yr={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},hw=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,fw=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function ns(e,t,n,r){const o=e==="row"?Yr[t]:"flex-start",a=e==="column"?Yr[t]:"center";return`flex-direction:${e}!important;justify-content:${o}!important;align-items:${a}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;gap:${r}px!important;`}let pw=0;function gw({style:e,buttons:t,props:n}){const r=(n==null?void 0:n.direction)??Cr.direction,o=(n==null?void 0:n.directionTablet)??r,a=(n==null?void 0:n.directionMobile)??o,i=(n==null?void 0:n.gap)??Cr.gap,l=(n==null?void 0:n.gapTablet)??i,s=(n==null?void 0:n.gapMobile)??l,u=(n==null?void 0:n.alignment)??Cr.alignment,c=(n==null?void 0:n.alignmentTablet)??u,h=(n==null?void 0:n.alignmentMobile)??c,d=(n==null?void 0:n.wrap)??Cr.wrap,f=(n==null?void 0:n.ariaLabel)??void 0,p=r,b=u,x=i,w=e==null?void 0:e.margin,k=((w==null?void 0:w.left)??0)+((w==null?void 0:w.right)??0),S={display:"flex",flexDirection:p,gap:`${x}px`,justifyContent:p==="row"?Yr[b]:"flex-start",alignItems:p==="column"?Yr[b]:"center",flexWrap:p==="row"&&d?"wrap":"nowrap",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),padding:hw(e==null?void 0:e.padding),margin:fw(e==null?void 0:e.margin),boxSizing:"border-box",width:k>0?`max(0px, calc(100% - ${k}px))`:"100%"},v=U.useMemo(()=>`ahd-bg-${pw+=1}`,[]),_=U.useMemo(()=>{const y=`.${v}`;let C="";return(o!==r||c!==u||l!==i)&&(C+=`@media (max-width:${Ue}px){${y}{${ns(o,c,d,l)}}}`),(a!==o||h!==c||s!==l)&&(C+=`@media (max-width:${Ve}px){${y}{${ns(a,h,d,s)}}}`),C},[v,r,o,a,u,c,h,i,l,s,d]);return m.jsxs("div",{className:`button-group ${v}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:S,role:"group","aria-label":f,children:[_&&m.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),t]})}const mw=va.shape.props.unwrap().unwrap().shape,bw=A({style:va.shape.style,props:A({...mw,childrenIds:oe($()).optional().nullable()}).optional().nullable(),responsive:va.shape.responsive});function xw({style:e,props:t}){const{childrenIds:n,...r}=t??{},o=(n??[]).map(a=>m.jsx(Me,{id:a},a));return m.jsx(gw,{style:e,props:r,buttons:o})}const vw=A({titleChildrenIds:oe($()).optional().nullable(),contentChildrenIds:oe($()).optional().nullable()}),kw=A({responsive:Ye,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),marginBottom:g().optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable()}).optional().nullable(),props:A({items:oe(vw).min(1).max(25).optional().nullable(),iconColor:$().optional().nullable(),iconSize:g().optional().nullable(),defaultOpen:O().optional().nullable(),activeBorderColor:$().optional().nullable()}).optional().nullable()});function ww(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 rs=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e);function Sw(e,t){if(!e)return;const n=Math.max(t.top,t.right,t.bottom,t.left),r=e.split(" ").map(o=>Math.max(0,parseFloat(o)-n));return r.length===1?`${r[0]}px`:r.map(o=>`${o}px`).join(" ")}function $w({style:e,props:t}){const n=U.useMemo(()=>{const C=t==null?void 0:t.items;return!C||C.length===0?{titleChildrenIds:[],contentChildrenIds:[]}:{titleChildrenIds:C[0].titleChildrenIds??[],contentChildrenIds:C[0].contentChildrenIds??[]}},[t==null?void 0:t.items]),r=U.useMemo(()=>`email-accordion-${Math.random().toString(36).slice(2,9)}`,[]),o=`${r}-content`,a=e==null?void 0:e.padding,i=e==null?void 0:e.margin,l=((i==null?void 0:i.left)??0)+((i==null?void 0:i.right)??0),s=t==null?void 0:t.activeBorderColor,u=e==null?void 0:e.borderColor,c=se(s),h=se(u),d=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),f=z(null,"surface"),p=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},b=`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`,x=ww(e==null?void 0:e.borderRadius),w=rs(u),k=rs(s),S=w||k,v={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",borderRadius:x,margin:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,boxShadow:"none"};(e==null?void 0:e.borderRadius)!=null&&(v.overflow="hidden"),S?(v.padding=b,w?v.background=z(u,"borderAdaptive"):u&&(v.borderStyle="solid",v.borderColor=h,v.borderWidth=b)):u&&(v.borderStyle="solid",v.borderColor=h,v.borderWidth=b);const _={background:d??(S?f:void 0),borderRadius:S?Sw(x,p):void 0,padding:a?`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`:void 0,overflow:S&&(e==null?void 0:e.borderRadius)!=null?"hidden":void 0},y=[];return s&&(k?y.push(`#${r}:checked + .email-accordion-root { background:${z(s,"borderAdaptive")}!important; border-style:none!important; padding:${b}!important; }`):y.push(`#${r}:checked + .email-accordion-root { background:none!important; border-style:solid!important; border-color:${c}!important; border-width:${b}!important; ${S?"padding:0!important;":""} }`)),m.jsxs("div",{className:"accordion-block",style:{marginBottom:(e==null?void 0:e.marginBottom)!=null?`${e.marginBottom}px`:"5px"},children:[m.jsx("style",{children:`
|
|
243
243
|
.email-accordion-root { width:100%; }
|
|
244
244
|
.email-accordion-toggle { display:none; }
|
|
245
245
|
.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; }
|
|
@@ -250,12 +250,12 @@ ${y}
|
|
|
250
250
|
.email-accordion-toggle:checked + .email-accordion-root .email-accordion-arrow { transform: rotate(180deg); }
|
|
251
251
|
${y.join(`
|
|
252
252
|
`)}
|
|
253
|
-
`}),m.jsx("input",{id:r,className:"email-accordion-toggle",type:"checkbox",role:"switch","aria-label":"Toggle section","aria-controls":o,defaultChecked:(t==null?void 0:t.defaultOpen)??!1}),m.jsx("div",{className:"email-accordion-root",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:v,children:m.jsxs("div",{className:"email-accordion-inner",style:_,children:[m.jsxs("label",{htmlFor:r,className:"email-accordion-label",children:[m.jsx("div",{className:"title",children:n.titleChildrenIds.map(C=>m.jsx(Me,{id:C},C))}),m.jsx("span",{className:"email-accordion-arrow","aria-hidden":"true",style:{color:z(t==null?void 0:t.iconColor,"blockText")},children:m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:(t==null?void 0:t.iconSize)??14,height:(t==null?void 0:t.iconSize)??14,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:m.jsx("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"})})})]}),m.jsx("div",{id:o,className:"email-accordion-content",role:"region",children:n.contentChildrenIds.map(C=>m.jsx(Me,{id:C},C))})]})})]})}const
|
|
253
|
+
`}),m.jsx("input",{id:r,className:"email-accordion-toggle",type:"checkbox",role:"switch","aria-label":"Toggle section","aria-controls":o,defaultChecked:(t==null?void 0:t.defaultOpen)??!1}),m.jsx("div",{className:"email-accordion-root",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:v,children:m.jsxs("div",{className:"email-accordion-inner",style:_,children:[m.jsxs("label",{htmlFor:r,className:"email-accordion-label",children:[m.jsx("div",{className:"title",children:n.titleChildrenIds.map(C=>m.jsx(Me,{id:C},C))}),m.jsx("span",{className:"email-accordion-arrow","aria-hidden":"true",style:{color:z(t==null?void 0:t.iconColor,"blockText")},children:m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:(t==null?void 0:t.iconSize)??14,height:(t==null?void 0:t.iconSize)??14,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:m.jsx("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"})})})]}),m.jsx("div",{id:o,className:"email-accordion-content",role:"region",children:n.contentChildrenIds.map(C=>m.jsx(Me,{id:C},C))})]})})]})}const _w=A({label:$().optional().nullable(),cardChildrenIds:oe($()).optional().nullable(),detailChildrenIds:oe($()).optional().nullable()}),Cw=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:g().optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),cardGap:g().optional().nullable(),equalCardWidth:O().optional().nullable(),cardBgColor:$().optional().nullable(),cardBorderColor:$().optional().nullable(),cardBorderWidth:g().optional().nullable(),cardBorderRadius:g().optional().nullable(),cardPadding:g().optional().nullable(),cardShadow:$().optional().nullable(),cardTextColor:$().optional().nullable(),cardFontSize:g().optional().nullable(),cardFontFamily:$().optional().nullable(),cardFontWeight:$().optional().nullable(),cardTextAlign:T(["left","center","right"]).optional().nullable(),cardHoverBgColor:$().optional().nullable(),cardHoverShadow:$().optional().nullable(),activeCardBgColor:$().optional().nullable(),activeCardBorderColor:$().optional().nullable(),activeCardShadow:$().optional().nullable(),activeCardTextColor:$().optional().nullable(),arrowColor:$().optional().nullable(),arrowActiveColor:$().optional().nullable(),arrowSize:g().optional().nullable(),detailBgColor:$().optional().nullable(),detailBorderColor:$().optional().nullable(),detailBorderWidth:g().optional().nullable(),detailBorderRadius:g().optional().nullable(),detailPadding:g().optional().nullable(),detailShadow:$().optional().nullable(),detailGap:g().optional().nullable(),rightCardWidth:g().optional().nullable(),cardListWidth:g().optional().nullable(),panelGap:g().optional().nullable()}).optional().nullable(),props:A({items:oe(_w).min(1).max(10).optional().nullable(),defaultOpenIndex:g().optional().nullable(),accordionEnabled:O().optional().nullable(),detailPosition:T(["bottom","right"]).optional().nullable()}).optional().nullable()});function Aw(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 yw({style:e,props:t}){const n=U.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Plan 1",cardChildrenIds:[],detailChildrenIds:[]}],[t==null?void 0:t.items]),r=U.useMemo(()=>`pacc-${Math.random().toString(36).slice(2,9)}`,[]),o=(t==null?void 0:t.accordionEnabled)??!1,a=(t==null?void 0:t.defaultOpenIndex)??null,i=(t==null?void 0:t.detailPosition)??"bottom",l=(e==null?void 0:e.cardGap)??16,s=(e==null?void 0:e.equalCardWidth)??!0,u=z(e==null?void 0:e.cardBgColor,"surface"),c=z(e==null?void 0:e.cardBorderColor,"borderSubtle"),h=(e==null?void 0:e.cardBorderWidth)??1,d=(e==null?void 0:e.cardBorderRadius)??12,f=(e==null?void 0:e.cardPadding)??16,p=(e==null?void 0:e.cardShadow)??"none",b=se((e==null?void 0:e.cardTextColor)??"inherit"),x=(e==null?void 0:e.cardFontSize)??null,w=(e==null?void 0:e.cardFontFamily)??"inherit",k=(e==null?void 0:e.cardFontWeight)??"inherit",S=(e==null?void 0:e.cardTextAlign)??"left",v=se((e==null?void 0:e.cardHoverBgColor)??null),_=(e==null?void 0:e.cardHoverShadow)??"0 2px 6px rgba(0,0,0,0.07)",y=se(e==null?void 0:e.activeCardBgColor)??u,C=se(e==null?void 0:e.activeCardBorderColor)??c,I=(e==null?void 0:e.activeCardShadow)??p,R=se(e==null?void 0:e.activeCardTextColor)??b,E=se((e==null?void 0:e.arrowColor)??"currentColor"),L=se(e==null?void 0:e.arrowActiveColor)??E,M=(e==null?void 0:e.arrowSize)??13,P=z(e==null?void 0:e.detailBgColor,{role:"surface-alt",seeds:[],nullFallback:"#f8fafc"}),B=z(e==null?void 0:e.detailBorderColor,{role:"border-subtle",seeds:[],nullFallback:"rgba(0,0,0,0.08)"}),D=(e==null?void 0:e.detailBorderWidth)??1,F=(e==null?void 0:e.detailBorderRadius)??12,G=(e==null?void 0:e.detailPadding)??24,W=(e==null?void 0:e.detailShadow)??"none",X=(e==null?void 0:e.detailGap)??12,Q=(e==null?void 0:e.rightCardWidth)??280,q=e==null?void 0:e.padding,te={width:"100%",boxSizing:"border-box",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),border:e!=null&&e.borderColor?`${e.borderWidth??1}px solid ${e.borderColor}`:void 0,borderRadius:Aw(e==null?void 0:e.borderRadius),padding:q?`${q.top}px ${q.right}px ${q.bottom}px ${q.left}px`:void 0},Se=s?`repeat(${n.length}, minmax(0, 1fr))`:`repeat(${n.length}, minmax(0, auto))`,Ae=x?`${x}px`:"inherit";if(!o){const J=`
|
|
254
254
|
.pacc-grid{display:grid;grid-template-columns:${Se};gap:${l}px;width:100%;box-sizing:border-box}
|
|
255
255
|
.pacc-grid-card{background:${u};border:${h}px solid ${c};border-radius:${d}px;padding:${f}px;box-sizing:border-box;box-shadow:${p};color:${b};font-size:${Ae};font-family:${w};font-weight:${k};text-align:${S}}
|
|
256
256
|
${v?`.pacc-grid-card:hover{background:${v};box-shadow:${_}}`:`.pacc-grid-card:hover{box-shadow:${_}}`}
|
|
257
257
|
@media(max-width:640px){.pacc-grid{grid-template-columns:1fr}}
|
|
258
|
-
`;return m.jsxs("div",{...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:te,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:J}}),m.jsx("div",{className:"pacc-grid",children:n.map((V,K)=>m.jsx("div",{className:"pacc-grid-card",children:(V.cardChildrenIds??[]).map(j=>m.jsx(Me,{id:j},j))},K))})]})}if(i==="bottom"){const J=n.map((K,j)=>{const Y=`#${r}-cb${j}:checked ~ .pacc-wrap`;return`${Y}{grid-template-columns:1fr}`+n.map((fe,ve)=>ve!==j?`${Y} .pacc-item:nth-child(${ve+1}){display:none}`:"").join("")+`${Y} .pacc-item:nth-child(${j+1}){display:block}${Y} .pacc-item:nth-child(${j+1}) .pacc-card{background:${y};border-color:${C};box-shadow:${I};color:${R}}${Y} .pacc-item:nth-child(${j+1}) .pacc-arrow{transform:rotate(180deg);color:${
|
|
258
|
+
`;return m.jsxs("div",{...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:te,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:J}}),m.jsx("div",{className:"pacc-grid",children:n.map((V,K)=>m.jsx("div",{className:"pacc-grid-card",children:(V.cardChildrenIds??[]).map(j=>m.jsx(Me,{id:j},j))},K))})]})}if(i==="bottom"){const J=n.map((K,j)=>{const Y=`#${r}-cb${j}:checked ~ .pacc-wrap`;return`${Y}{grid-template-columns:1fr}`+n.map((fe,ve)=>ve!==j?`${Y} .pacc-item:nth-child(${ve+1}){display:none}`:"").join("")+`${Y} .pacc-item:nth-child(${j+1}){display:block}${Y} .pacc-item:nth-child(${j+1}) .pacc-card{background:${y};border-color:${C};box-shadow:${I};color:${R}}${Y} .pacc-item:nth-child(${j+1}) .pacc-arrow{transform:rotate(180deg);color:${L}}${Y} .pacc-item:nth-child(${j+1}) .pacc-detail{display:block}`}).join(""),V=`
|
|
259
259
|
.pacc-cb{position:absolute!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}
|
|
260
260
|
.pacc-wrap{display:grid;grid-template-columns:${Se};gap:${l}px;width:100%;box-sizing:border-box}
|
|
261
261
|
.pacc-item{box-sizing:border-box}
|
|
@@ -266,7 +266,7 @@ ${y}
|
|
|
266
266
|
.pacc-detail{display:none;margin-top:${X}px;background:${P};border:${D}px solid ${B};border-radius:${F}px;padding:${G}px;box-sizing:border-box;box-shadow:${W}}
|
|
267
267
|
@media(max-width:640px){.pacc-wrap{grid-template-columns:1fr!important}}
|
|
268
268
|
${J}
|
|
269
|
-
`;return m.jsxs("div",{...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:te,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:V}}),n.map((K,j)=>m.jsx("input",{type:"radio",name:r,id:`${r}-cb${j}`,className:"pacc-cb",defaultChecked:j===a},j)),m.jsx("div",{className:"pacc-wrap",children:n.map((K,j)=>m.jsxs("div",{className:"pacc-item",children:[m.jsxs("label",{htmlFor:`${r}-cb${j}`,className:"pacc-card",children:[(K.cardChildrenIds??[]).map(Y=>m.jsx(Me,{id:Y},Y)),m.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:m.jsx("i",{className:"bi bi-chevron-down"})})]}),m.jsx("div",{className:"pacc-detail",children:(K.detailChildrenIds??[]).map(Y=>m.jsx(Me,{id:Y},Y))})]},j))})]})}const ge=n.map((J,V)=>{const K=`#${r}-cb${V}:checked ~ .pacc-wrap`;return`${K}{grid-template-columns:1fr}`+n.map((j,Y)=>Y!==V?`${K} .pacc-item:nth-child(${Y+1}){display:none}`:"").join("")+`${K} .pacc-item:nth-child(${V+1}){display:flex;flex-direction:row;gap:${X}px;align-items:flex-start}${K} .pacc-item:nth-child(${V+1}) .pacc-card{flex-shrink:0;width:${Q}px;background:${y};border-color:${C};box-shadow:${I};color:${R}}${K} .pacc-item:nth-child(${V+1}) .pacc-arrow{transform:rotate(90deg);color:${
|
|
269
|
+
`;return m.jsxs("div",{...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:te,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:V}}),n.map((K,j)=>m.jsx("input",{type:"radio",name:r,id:`${r}-cb${j}`,className:"pacc-cb",defaultChecked:j===a},j)),m.jsx("div",{className:"pacc-wrap",children:n.map((K,j)=>m.jsxs("div",{className:"pacc-item",children:[m.jsxs("label",{htmlFor:`${r}-cb${j}`,className:"pacc-card",children:[(K.cardChildrenIds??[]).map(Y=>m.jsx(Me,{id:Y},Y)),m.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:m.jsx("i",{className:"bi bi-chevron-down"})})]}),m.jsx("div",{className:"pacc-detail",children:(K.detailChildrenIds??[]).map(Y=>m.jsx(Me,{id:Y},Y))})]},j))})]})}const ge=n.map((J,V)=>{const K=`#${r}-cb${V}:checked ~ .pacc-wrap`;return`${K}{grid-template-columns:1fr}`+n.map((j,Y)=>Y!==V?`${K} .pacc-item:nth-child(${Y+1}){display:none}`:"").join("")+`${K} .pacc-item:nth-child(${V+1}){display:flex;flex-direction:row;gap:${X}px;align-items:flex-start}${K} .pacc-item:nth-child(${V+1}) .pacc-card{flex-shrink:0;width:${Q}px;background:${y};border-color:${C};box-shadow:${I};color:${R}}${K} .pacc-item:nth-child(${V+1}) .pacc-arrow{transform:rotate(90deg);color:${L}}${K} .pacc-item:nth-child(${V+1}) .pacc-detail{display:block;flex:1;min-width:0}`}).join(""),Oe=`
|
|
270
270
|
.pacc-cb{position:absolute!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}
|
|
271
271
|
.pacc-wrap{display:grid;grid-template-columns:${Se};gap:${l}px;width:100%;box-sizing:border-box}
|
|
272
272
|
.pacc-item{box-sizing:border-box}
|
|
@@ -277,12 +277,12 @@ ${y}
|
|
|
277
277
|
.pacc-detail{display:none;background:${P};border:${D}px solid ${B};border-radius:${F}px;padding:${G}px;box-sizing:border-box;box-shadow:${W}}
|
|
278
278
|
@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}}
|
|
279
279
|
${ge}
|
|
280
|
-
`;return m.jsxs("div",{...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:te,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:Le}}),n.map((J,V)=>m.jsx("input",{type:"radio",name:r,id:`${r}-cb${V}`,className:"pacc-cb",defaultChecked:V===a},V)),m.jsx("div",{className:"pacc-wrap",children:n.map((J,V)=>m.jsxs("div",{className:"pacc-item",children:[m.jsxs("label",{htmlFor:`${r}-cb${V}`,className:"pacc-card",children:[(J.cardChildrenIds??[]).map(K=>m.jsx(Me,{id:K},K)),m.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:m.jsx("i",{className:"bi bi-chevron-right"})})]}),m.jsx("div",{className:"pacc-detail",children:(J.detailChildrenIds??[]).map(K=>m.jsx(Me,{id:K},K))})]},V))})]})}const yw=160,Iw=A({label:$().optional().nullable(),contentChildrenIds:oe($()).optional().nullable()}),Rw=A({responsive:Ye,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),tabActiveColor:$().optional().nullable(),tabActiveBgColor:$().optional().nullable(),tabInactiveTextColor:$().optional().nullable(),tabInactiveBgColor:$().optional().nullable(),tabInactiveBorderColor:$().optional().nullable(),tabInactiveBorderWidth:g().optional().nullable(),tabTextColor:$().optional().nullable(),tabBgColor:$().optional().nullable(),tabBorderRadius:g().optional().nullable(),tabGap:g().optional().nullable(),contentGap:g().optional().nullable(),navBorderColor:$().optional().nullable(),navWidth:g().optional().nullable(),fontSize:H([$(),g()]).optional().nullable(),lineHeight:H([$(),g()]).optional().nullable(),activeFontSize:H([$(),g()]).optional().nullable(),showActiveBorder:L().optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable()}).optional().nullable(),props:A({orientation:T(["horizontal","vertical"]).optional().nullable(),orientationTablet:T(["horizontal","vertical"]).optional().nullable(),orientationMobile:T(["horizontal","vertical"]).optional().nullable(),behavior:T(["showSelectedSection","scrollToSelectedSection"]).optional().nullable(),tabsAlign:T(["left","center","right"]).optional().nullable(),dropdown:L().optional().nullable(),dropdownTablet:L().optional().nullable(),dropdownMobile:L().optional().nullable(),activeTabIndex:g().optional().nullable(),stickyNav:L().optional().nullable(),items:oe(Iw).min(1).max(20).optional().nullable()}).optional().nullable()});function Tw(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Ew(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 rs(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const Nw={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},Mw={display:"inline-block",minWidth:0,maxWidth:"100%",overflowWrap:"break-word",wordBreak:"break-word"};function Ct(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function Kr(e,t=!1){const n=t?"!important":"";return e?Ct(e)?`background:${e}${n};background-color:transparent${n}`:`background-color:${e}${n}`:`background-color:transparent${n}`}function Jr(e,t=!1){const n=t?"!important":"";return Ct(e)?`color:transparent${n}`:`color:${e}${n}`}function Xr(e,t=!1){const n=t?"!important":"";return Ct(e)?`background-image:${e}${n};-webkit-background-clip:text${n};background-clip:text${n};-webkit-text-fill-color:transparent${n};color:transparent${n}`:""}function ka(e,t,n,r=!1){const o=r?"!important":"";return Ct(e)?`border-${n}-style:solid${o};border-${n}-width:${t}${o};border-image-source:${e}${o};border-image-slice:${n==="bottom"?"0 0 1 0 fill":n==="left"?"0 0 0 1 fill":"0 1 0 0 fill"}${o}`:`border-${n}-color:${e}${o}`}function Pw(e,t,n=!1){const r=n?"!important":"";return e?Ct(e)?`box-sizing:border-box${r};border:${t}px solid transparent${r};border-image-source:${e}${r};border-image-slice:1${r};box-shadow:none${r}`:`box-shadow:inset 0 0 0 ${t}px ${e}${r}`:`box-shadow:none${r}`}function gn(e,t,n,r,o,a,i,l){const s=Ct(l),u=s?ka(l,n,"bottom"):`border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent)`,c=s?ka(l,n,"right"):`border-right:${n} solid var(--ahd-tabs-nav-border,transparent)`;if(t==="horizontal")return`${e}{display:block}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;gap:${r};align-items:center;justify-content:${a};width:100%;${u};border-right:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{display:inline-flex;border-bottom:3px solid transparent;border-left:0;margin-bottom:calc(-1 * ${n});margin-right:0}${e} > .ahd-tabs-panels{width:100%;margin-top:${o};margin-left:0}`;const h=`${i??yw}px`,d=`var(--ahd-tabs-nav-width,${h})`,f=`width:var(--ahd-tabs-nav-width,${h});max-width:var(--ahd-tabs-nav-width,${h})`;return`${e}{display:grid;grid-template-columns:${d} minmax(0,1fr);column-gap:${o};align-items:start}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;grid-column:1;grid-row:1;align-self:start;${f};min-width:0;overflow:visible;${c};border-bottom:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{display:flex;border-left:3px solid transparent;border-bottom:0;margin-right:calc(-1 * ${n});margin-bottom:${r};white-space:normal!important;word-break:break-word;overflow-wrap:break-word;min-width:0;max-width:100%;box-sizing:border-box}${e} > .ahd-tabs-panels{grid-column:2;grid-row:1;width:100%;margin-top:0}`}function Ow(e,t,n,r,o,a,i,l,s,u,c,h,d,f,p,b,x=1){let w="";for(let _=0;_<p;_++){const y=`${e} #${f}-r${_}:checked ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${_+1})`;w+=`${y}{${Kr(i,!0)};${Jr(l,!0)};box-shadow:none!important;font-weight:600!important}${y} > .ahd-tabs-label-text{${Xr(l,!0)}}${y}:hover{${Kr(i,!0)}}`}const k=`${e} > .ahd-tabs-dd-wrap`,S=`${e}.ahd-tabs-dd-open > .ahd-tabs-dd-wrap,${k}:focus-within`,v=s?`${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{font-size:${s}!important}`:"";return`${e}{display:block!important}${k}{display:block!important;position:relative!important;width:100%!important}${k} > .ahd-tabs-dd-trigger{display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%;box-sizing:border-box;padding:10px 14px;border:1px solid ${t};border-radius:${r};background:${o};color:${a};font:inherit;text-align:left;cursor:pointer;appearance:none;-webkit-appearance:none}${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}`+v+`${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{display:inline-block;width:8px;height:8px;flex-shrink:0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-2px;opacity:.7;transition:transform .15s ease}${S} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{transform:rotate(-135deg);margin-top:2px}${k} > .ahd-tabs-nav{position:absolute!important;top:calc(100% + 4px)!important;left:0!important;right:0!important;z-index:30!important;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;overflow:auto!important;max-height:260px!important;width:auto!important;gap:0!important;border:1px solid ${t}!important;border-radius:${r}!important;background:var(--pp-surface,#fff)!important;box-shadow:0 6px 20px rgba(0,0,0,.12)!important;padding:4px!important;align-items:stretch!important;justify-content:flex-start!important;visibility:hidden;opacity:0;pointer-events:none;transform:translateY(-4px);transition:opacity .12s ease,transform .12s ease,visibility .12s}${S} > .ahd-tabs-nav{visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:translateY(0)!important}${k} > .ahd-tabs-nav > .ahd-tabs-label{display:flex!important;justify-content:flex-start!important;width:100%!important;box-sizing:border-box;border:0!important;border-radius:6px!important;margin:0!important;padding:9px 12px!important;${Jr(u??"inherit",!0)};background:${c??"transparent"}!important;box-shadow:${h}!important`+(b?`;border:${x}px solid transparent!important;border-image-source:${b}!important;border-image-slice:1!important`:"")+`}${k} > .ahd-tabs-nav > .ahd-tabs-label > .ahd-tabs-label-text{${Xr(u??"inherit",!0)}}${k} > .ahd-tabs-nav > .ahd-tabs-label + .ahd-tabs-label{margin-top:${d}!important}${k} > .ahd-tabs-nav > .ahd-tabs-label:hover{background:${c??"rgba(0,0,0,.05)"}!important}${e} > .ahd-tabs-panels{position:static!important;width:100%!important;margin:${n} 0 0 0!important;grid-column:auto!important}`+w}function Do(e,t){return`${e} > .ahd-tabs-dd-wrap{display:contents!important;position:static!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:static!important;top:auto!important;z-index:auto!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;max-height:none!important;overflow:visible!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:none!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{border-radius:${t}!important;margin-top:0!important;box-shadow:none!important}`}function Lw({style:e,props:t}){const n=(t==null?void 0:t.orientation)??"horizontal",r=(t==null?void 0:t.orientationTablet)??n,o=(t==null?void 0:t.orientationMobile)??"vertical",i=((t==null?void 0:t.behavior)??"showSelectedSection")==="scrollToSelectedSection",l=(t==null?void 0:t.stickyNav)??!1,s=U.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Tab 1",contentChildrenIds:[]}],[t==null?void 0:t.items]),u=U.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),c=se(e==null?void 0:e.tabActiveColor),h=se(e==null?void 0:e.tabActiveBgColor),d=se(e==null?void 0:e.tabInactiveTextColor),f=se(e==null?void 0:e.tabInactiveBgColor),p=se(e==null?void 0:e.tabInactiveBorderColor),b=(e==null?void 0:e.tabInactiveBorderWidth)??1,x=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"0px",w=se(e==null?void 0:e.tabTextColor),k=se((e==null?void 0:e.tabBgColor)??"transparent"),S=se(e==null?void 0:e.navBorderColor),v=S?"2px":"0px",_=(e==null?void 0:e.tabGap)!=null?`${e.tabGap}px`:"0px",y=(e==null?void 0:e.contentGap)!=null?`${e.contentGap}px`:"0px",C=(e==null?void 0:e.navWidth)!=null?e.navWidth:160,I="var(--ahd-tabs-tab-gap,"+_+")",R="var(--ahd-tabs-content-gap,"+y+")",E=(e==null?void 0:e.activeFontSize)!=null?rs(e.activeFontSize):void 0,M=((e==null?void 0:e.showActiveBorder)??!0)&&!h?c||"currentColor":"transparent",P=(t==null?void 0:t.tabsAlign)??"left",B=P==="center"?"center":P==="right"?"flex-end":"flex-start",D=(t==null?void 0:t.dropdown)??!1,F=(t==null?void 0:t.dropdownTablet)??D,G=(t==null?void 0:t.dropdownMobile)??F,W=e==null?void 0:e.padding,X=e==null?void 0:e.margin,Q=((X==null?void 0:X.left)??0)+((X==null?void 0:X.right)??0),q=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},te=`${q.top}px ${q.right}px ${q.bottom}px ${q.left}px`,Se=Ct(e==null?void 0:e.borderColor),Ae=e!=null&&e.borderColor?Se?{borderStyle:"solid",borderColor:"transparent",borderWidth:te,borderImageSource:e.borderColor,borderImageSlice:1}:{borderStyle:"solid",borderColor:e.borderColor,borderWidth:te}:{},ge={width:Q>0?`calc(100% - ${Q}px)`:"100%",boxSizing:"border-box",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),...Ae,borderRadius:Ew(e==null?void 0:e.borderRadius),padding:W?`${W.top}px ${W.right}px ${W.bottom}px ${W.left}px`:void 0,margin:X?`${X.top}px ${X.right}px ${X.bottom}px ${X.left}px`:void 0,fontFamily:Tw(e==null?void 0:e.fontFamily),fontSize:rs(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,lineHeight:(e==null?void 0:e.lineHeight)??1.5,color:w,"--ahd-tabs-nav-border":S??"transparent"},Le=()=>s.map((j,Y)=>m.jsx("input",{type:"radio",id:`${u}-r${Y}`,name:u,className:"ahd-tabs-radio",defaultChecked:Y===0,style:Nw},Y)),J=U.useMemo(()=>{const j=`.${u}`,Y=c||"currentColor",fe=w||"inherit",ve=`${j} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label`,me=`${ve} > .ahd-tabs-label-text`,pe=`${j} > .ahd-tabs-panels > .ahd-tabs-panel`,ye=d??fe;let ae=`${ve}{${Jr(ye)};${Kr(f)};${Pw(p,b)};border-radius:${x}}${me}{${Xr(ye)}}`+(i?"":`${pe}{display:none}`)+`${j} > .ahd-tabs-dd-wrap{display:contents}${j} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none}${j} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item{display:none}`;s.forEach((yt,Ge)=>{const et=`#${u}-r${Ge}:checked`,ot=`${et} ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${Ge+1})`,zt=`${et} ~ .ahd-tabs-panels > .ahd-tabs-panel:nth-of-type(${Ge+1})`,It=Ct(M),rt=`${Jr(Y,!0)};${Kr(h,!0)};box-shadow:none!important`+(It?`;${ka(M,"3px",n==="vertical"?"left":"bottom",!0)}`:`;border-left-color:var(--ahd-tabs-active-border-color,${M})!important;border-bottom-color:var(--ahd-tabs-active-border-color,${M})!important`);ae+=`${ot}{${rt}}`,ae+=`${ot} > .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${E??"inherit"})!important;${Xr(Y,!0)}}`,i||(ae+=`${zt}{display:block!important}`),ae+=`${et} ~ .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item:nth-of-type(${Ge+1}){display:inline}`}),ae+=gn(j,n,v,I,R,B,C!=null?String(C):void 0,S??void 0),r!==n&&(ae+=`${Fo}{${gn(j,r,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`),o!==r&&(ae+=`${Ho}{${gn(j,o,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`);const Pe=p||S||z(null,"tabsRing"),De=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"8px",be=z(e==null?void 0:e.tabBgColor,{role:"surface",seeds:[],nullFallback:"#fff"}),Fe=w??"inherit",He=h??"transparent",ee=c??"inherit",je=p?Ct(p)?"none":`inset 0 0 0 ${b}px ${p}`:"none",ze=Ct(p)?p:void 0,ie=Ow(j,Pe,R,De,be,Fe,He,ee,E,d,f,je,I,u,s.length,ze,b);return l&&(ae+=`${j} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> ${j}){position:sticky;top:0;z-index:50}`),D?(ae+=ie,F||(ae+=`${Fo}{${Do(j,x)}${gn(j,r,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`),!G&&F&&(ae+=`${Ho}{${Do(j,x)}${gn(j,o,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`)):(F&&(ae+=`${Fo}{${ie}}`),G!==F&&(ae+=`${Ho}{${G?ie:Do(j,x)+gn(j,o,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`)),ae},[s,u,c,h,x,w,E,M,n,r,o,i,v,S,C,I,R,B,d,f,p,b,D,F,G,l]),V=j=>i?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:j===0?void 0:R}:{display:j===0?"block":"none",width:"100%",minWidth:0,overflow:"hidden"},K=n==="vertical"?"ahd-tabs-o-v":"ahd-tabs-o-h";return m.jsxs("div",{className:`${u} ahd-tabs ${K}${l?" ahd-tabs-sticky":""}${i?" ahd-tabs-scroll-sections":""}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:ge,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:J}}),Le(),m.jsxs("div",{className:"ahd-tabs-dd-wrap",children:[m.jsxs("button",{type:"button",className:"ahd-tabs-dd-trigger","aria-haspopup":"listbox",tabIndex:0,children:[m.jsx("span",{className:"ahd-tabs-dd-current",children:s.map((j,Y)=>m.jsx("span",{className:"ahd-tabs-dd-current-item","data-ahd-tab-index":Y,children:j.label??`Tab ${Y+1}`},Y))}),m.jsx("span",{className:"ahd-tabs-dd-arrow","aria-hidden":"true"})]}),m.jsx("div",{className:"ahd-tabs-nav",style:{background:k,...l?{position:"sticky",top:0}:{}},children:s.map((j,Y)=>m.jsx("label",{htmlFor:`${u}-r${Y}`,className:"ahd-tabs-label","data-ahd-tab-index":Y,tabIndex:-1,style:{alignItems:"center",cursor:"pointer",padding:n==="vertical"?"10px 16px":"10px 18px",whiteSpace:n==="vertical"?"normal":"nowrap",transition:"color .15s ease,border-color .15s ease",userSelect:"none",position:"relative",outline:"none"},children:m.jsx("span",{className:"ahd-tabs-label-text",style:Mw,children:j.label??`Tab ${Y+1}`})},Y))})]}),m.jsx("div",{className:"ahd-tabs-panels",children:s.map((j,Y)=>m.jsx("div",{id:`${u}-panel-${Y}`,className:"ahd-tabs-panel","data-ahd-tab-index":Y,style:V(Y),children:(j.contentChildrenIds??[]).map(fe=>m.jsx(Me,{id:fe},fe))},Y))})]})}const Fo=`@media (max-width:${Ue}px)`,Ho=`@media (max-width:${Ve}px)`,zw=A({contentChildrenIds:oe($()).optional().nullable()}),jw=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),slideGap:g().optional().nullable(),arrowColor:$().optional().nullable(),arrowBgColor:$().optional().nullable(),arrowBorderColor:$().optional().nullable(),arrowSize:g().min(16).max(80).optional().nullable(),dotColor:$().optional().nullable(),dotActiveColor:$().optional().nullable(),dotSize:g().min(4).max(24).optional().nullable()}).optional().nullable(),props:A({slidesPerView:g().min(1).max(6).optional().nullable(),slidesPerViewTablet:g().min(1).max(6).optional().nullable(),slidesPerViewMobile:g().min(1).max(6).optional().nullable(),showArrows:L().optional().nullable(),showDots:L().optional().nullable(),autoplay:L().optional().nullable(),autoplayInterval:g().min(500).max(2e4).optional().nullable(),loop:L().optional().nullable(),transitionMs:g().min(0).max(3e3).optional().nullable(),items:oe(zw).min(1).max(20).optional().nullable()}).optional().nullable()});function Bw(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 Dw="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",Fw="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",os=({d:e,size:t=20})=>m.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:m.jsx("path",{d:e})});function Hw({style:e,props:t}){const n=U.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],[t==null?void 0:t.items]),r=U.useMemo(()=>`carousel-${Math.random().toString(36).slice(2,9)}`,[]),o=Math.max(1,(t==null?void 0:t.slidesPerView)??1),a=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(o,2)),i=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,u=(t==null?void 0:t.autoplay)??!1,c=(t==null?void 0:t.autoplayInterval)??4e3,h=(t==null?void 0:t.loop)??!0,d=(t==null?void 0:t.transitionMs)??400,f=(e==null?void 0:e.slideGap)??16,p=z(e==null?void 0:e.arrowColor,"carouselArrow"),b=z(e==null?void 0:e.arrowBgColor,"carouselArrowBg"),x=z(e==null?void 0:e.arrowBorderColor,"carouselArrowBorder"),w=(e==null?void 0:e.arrowSize)??40,k=z(e==null?void 0:e.dotColor,"carouselDot"),S=z(e==null?void 0:e.dotActiveColor,"carouselDotActive"),v=(e==null?void 0:e.dotSize)??8,_=Math.max(12,Math.min(40,Math.round(w*.5))),y=e==null?void 0:e.padding,C=e==null?void 0:e.margin,I=((C==null?void 0:C.left)??0)+((C==null?void 0:C.right)??0),R={width:I>0?`calc(100% - ${I}px)`:"100%",boxSizing:"border-box",position:"relative",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:Bw(e==null?void 0:e.borderRadius),padding:y?`${y.top}px ${y.right}px ${y.bottom}px ${y.left}px`:void 0,margin:C?`${C.top}px ${C.right}px ${C.bottom}px ${C.left}px`:void 0},E=U.useMemo(()=>{const B=`.${r}`,D=F=>`calc((100% - ${f*(F-1)}px) / ${F})`;return`${B} .ahd-carousel-viewport{overflow:hidden;width:100%}${B} .ahd-carousel-track{display:flex;gap:var(--ahd-carousel-slide-gap,${f}px);transition:transform ${d}ms ease;will-change:transform}${B} .ahd-carousel-slide{flex:0 0 ${D(o)};min-width:0;box-sizing:border-box}${B} .ahd-carousel-prev svg,${B} .ahd-carousel-next svg{width:var(--ahd-carousel-chevron-size,${_}px);height:var(--ahd-carousel-chevron-size,${_}px)}@media (max-width:${Ue}px){${B} .ahd-carousel-slide{flex-basis:${D(a)}}}@media (max-width:${Ve}px){${B} .ahd-carousel-slide{flex-basis:${D(i)}}}`},[r,f,d,o,a,i,_]),O={appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-arrow-size, ${w}px)`,height:`var(--ahd-carousel-arrow-size, ${w}px)`,minWidth:`var(--ahd-carousel-arrow-size, ${w}px)`,borderRadius:"50%",border:`1px solid ${x}`,backgroundColor:b,backgroundImage:"none",color:p,boxShadow:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,lineHeight:1,padding:0},M=Math.min(o,a,i),P=Math.max(1,n.length-M+1);return m.jsxs("div",{className:`${r} ahd-carousel`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:R,"data-per-view":o,"data-per-view-tablet":a,"data-per-view-mobile":i,"data-autoplay":u?"1":"0","data-autoplay-interval":c,"data-loop":h?"1":"0",children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:E}}),m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&m.jsx("button",{type:"button",className:"ahd-carousel-prev",style:O,"aria-label":"Previous slide",children:m.jsx(os,{d:Dw,size:_})}),m.jsx("div",{className:"ahd-carousel-viewport",children:m.jsx("div",{className:"ahd-carousel-track",children:n.map((B,D)=>m.jsx("div",{className:"ahd-carousel-slide","data-ahd-slide-index":D,children:(B.contentChildrenIds??[]).map(F=>m.jsx(Me,{id:F},F))},D))})}),l&&m.jsx("button",{type:"button",className:"ahd-carousel-next",style:O,"aria-label":"Next slide",children:m.jsx(os,{d:Fw,size:_})})]}),s&&P>1&&m.jsx("div",{className:"ahd-carousel-dots",style:{display:"flex",justifyContent:"center",gap:8,marginTop:16},"data-dot-color":k,"data-dot-active-color":S,children:Array.from({length:P}).map((B,D)=>m.jsx("button",{type:"button",className:"ahd-carousel-dot","data-ahd-dot-index":D,"aria-label":`Go to slide ${D+1}`,style:{appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-dot-size, ${v}px)`,height:`var(--ahd-carousel-dot-size, ${v}px)`,minWidth:`var(--ahd-carousel-dot-size, ${v}px)`,padding:0,border:"none",borderRadius:"50%",cursor:"pointer",boxShadow:"none",backgroundColor:D===0?S:k,backgroundImage:"none"}},D))})]})}const Gw=T(["left","center","right","space-between"]),Ww=A({contentChildrenIds:oe($()).optional().nullable()}),Uw=A({childrenIds:oe($())}),Zw=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),itemGap:g().min(0).max(120).optional().nullable(),columnsGap:g().min(0).max(120).optional().nullable(),rowsGap:g().min(0).max(120).optional().nullable(),controlGap:g().min(0).max(120).optional().nullable(),controlAlign:Gw.optional().nullable(),buttonSize:g().min(20).max(72).optional().nullable(),buttonGap:g().min(0).max(40).optional().nullable(),buttonRadius:g().min(0).max(999).optional().nullable(),buttonBg:$().optional().nullable(),buttonColor:$().optional().nullable(),buttonBorderColor:$().optional().nullable(),activeButtonBg:$().optional().nullable(),activeButtonColor:$().optional().nullable(),activeButtonBorderColor:$().optional().nullable(),arrowColor:$().optional().nullable(),fontSize:g().min(8).max(40).optional().nullable(),fontFamily:$().optional().nullable()}).optional().nullable(),props:A({items:oe(Ww).min(1).max(50).optional().nullable(),cells:oe(Uw).optional().nullable(),columnsCount:g().int().min(1).max(12).optional().nullable(),rowsCount:g().int().min(1).max(24).optional().nullable(),columnsCountTablet:g().int().min(1).max(12).optional().nullable(),columnsCountMobile:g().int().min(1).max(12).optional().nullable(),rowsCountTablet:g().int().min(1).max(24).optional().nullable(),rowsCountMobile:g().int().min(1).max(24).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:T(["left","center","right"]).optional().nullable(),cellsPerPage:g().int().min(1).max(100).optional().nullable(),repeatableEnabled:L().optional().nullable(),pageParam:$().min(1).max(40).optional().nullable(),syncUrl:L().optional().nullable(),showNumbers:L().optional().nullable(),showPrevNext:L().optional().nullable(),showFirstLast:L().optional().nullable(),maxVisiblePages:g().min(0).max(50).optional().nullable(),prevLabel:$().max(24).optional().nullable(),nextLabel:$().max(24).optional().nullable(),firstLabel:$().max(24).optional().nullable(),lastLabel:$().max(24).optional().nullable(),scrollToTopOnChange:L().optional().nullable(),explicitFirstPage:L().optional().nullable()}).optional().nullable()}),wa={columnsCount:2,rowsCount:2};function Go(e,t="desktop"){const n=wa,r=(e==null?void 0:e.columnsCount)??n.columnsCount,o=(e==null?void 0:e.rowsCount)??n.rowsCount,a=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??r:r,i=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??o:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??o:o;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(c=>({childrenIds:Array.isArray(c==null?void 0:c.contentChildrenIds)?c.contentChildrenIds:[]})):l=[];const s=Math.max(1,r*o,a*i,l.length),u=Array.from({length:s},(c,h)=>{var d;return{childrenIds:Array.isArray((d=l[h])==null?void 0:d.childrenIds)?l[h].childrenIds:[]}});return{columnsCount:a,rowsCount:i,cells:u}}function Wo(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)??wa.columnsCount,r=(e==null?void 0:e.rowsCount)??wa.rowsCount,o=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??n:n,a=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??r:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??r:r;return Math.max(1,o*a)}function qw(e,t,n){const r=Math.max(1,e),o=Math.min(Math.max(1,n),r*Math.max(1,t));return Math.max(1,Math.ceil(o/r))}function Vw(e,t){const n=Math.max(1,t);if(e.length===0)return[[]];const r=[];for(let o=0;o<e.length;o+=n)r.push(e.slice(o,o+n));return r}const Yw={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 Kw({style:e,props:t}){const n=Yw;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 r=(t==null?void 0:t.maxVisiblePages)??n.maxVisiblePages;return r<=0?0:Math.max(5,r)})(),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 Jw(e){return Math.max(1,e)}function Xw(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,u)=>u+1);const r=[],o=Math.max(1,n-2),a=Math.floor(o/2);let i=Math.max(2,e-a),l=Math.min(t-1,i+o-1);i=Math.max(2,Math.min(i,l-o+1)),r.push(1),i>2&&r.push("ellipsis");for(let s=i;s<=l;s++)r.push(s);return l<t-1&&r.push("ellipsis"),r.push(t),r}function Qw(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 eS({style:e,props:t}){const n=Kw({style:e,props:t}),r=Go(t,"desktop"),o=Go(t,"tablet"),a=Go(t,"mobile"),i=Math.max(Wo(t,"desktop"),Wo(t,"tablet"),Wo(t,"mobile")),l=U.useMemo(()=>r.cells.length>=i?r.cells:Array.from({length:i},(G,W)=>r.cells[W]??{childrenIds:[]}),[r.cells,i]),s=U.useMemo(()=>Vw(l,i),[l,i]),u=Jw(s.length),c=(e==null?void 0:e.columnsGap)??n.itemGap,h=(e==null?void 0:e.rowsGap)??n.itemGap,d=U.useMemo(()=>`pgn-${Math.random().toString(36).slice(2,9)}`,[]),f=U.useMemo(()=>Xw(1,u,n.maxVisiblePages),[u,n.maxVisiblePages]),p=hi(),b=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),x=p(e==null?void 0:e.borderColor),w=z(n.buttonBg,"paginationBg"),k=z(n.buttonColor,"paginationText"),S=z(n.buttonBorderColor,"paginationBorder"),v=z(n.arrowColor,"paginationText"),_=p(n.activeButtonBg),y=p(n.activeButtonColor),C=p(n.activeButtonBorderColor),I=e==null?void 0:e.padding,R=e==null?void 0:e.margin,E=((R==null?void 0:R.left)??0)+((R==null?void 0:R.right)??0),O={width:E>0?`calc(100% - ${E}px)`:"100%",boxSizing:"border-box",background:b??void 0,border:x?`1px solid ${x}`:void 0,borderRadius:Qw(e==null?void 0:e.borderRadius),padding:I?`${I.top}px ${I.right}px ${I.bottom}px ${I.left}px`:void 0,margin:R?`${R.top}px ${R.right}px ${R.bottom}px ${R.left}px`:void 0,fontFamily:n.fontFamily},M=n.controlAlign==="left"?"flex-start":n.controlAlign==="right"?"flex-end":n.controlAlign==="space-between"?"space-between":"center",P={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 ${S}`,backgroundColor:w,backgroundImage:"none",color:k,fontSize:n.fontSize,lineHeight:1,boxShadow:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxSizing:"border-box"},B={...P,color:v},D=U.useMemo(()=>{const G=Q=>`grid-template-columns:repeat(${Q.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${qw(Q.columnsCount,Q.rowsCount,i)},auto)`,W=(Q,q)=>{const te=Math.min(Math.max(1,q.columnsCount*q.rowsCount),Math.max(1,i));return te>=i?"":`${Q} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${te+1}){display:none}`},X=`.${d}`;return`${X} .ahd-pgn-item{display:grid;${G(r)};column-gap:${c}px;row-gap:${h}px}${X} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+W(X,r)+`@media (max-width:${Ue}px){${X} .ahd-pgn-item{${G(o)}}${X} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+W(X,o)+`}@media (max-width:${Ve}px){${X} .ahd-pgn-item{${G(a)}}${X} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+W(X,a)+"}"},[d,r,o,a,i,c,h,n.itemGap]),F=(G,W,X)=>m.jsx("button",{type:"button",className:`ahd-pgn-btn ${G}`,"data-ahd-page":X,style:B,"aria-label":W,children:W});return m.jsxs("div",{className:`${d} ahd-pagination`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:O,"data-total-pages":u,"data-page-param":n.pageParam,"data-sync-url":n.syncUrl?"1":"0","data-explicit-first-page":n.explicitFirstPage?"1":"0","data-scroll-top":n.scrollToTopOnChange?"1":"0","data-max-visible":n.maxVisiblePages,"data-btn-bg":w,"data-btn-color":k,"data-btn-border":S,"data-active-bg":_,"data-active-color":y,"data-active-border":C,"data-first-label":n.firstLabel,"data-last-label":n.lastLabel,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:D}}),m.jsx("div",{className:"ahd-pgn-content",style:{display:"flex",flexDirection:"column",gap:n.itemGap},children:s.map((G,W)=>m.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":W,style:W===0?void 0:{display:"none"},children:G.map((X,Q)=>m.jsx("div",{className:"ahd-pgn-cell",children:(X.childrenIds??[]).map(q=>m.jsx(Me,{id:q},q))},Q))},W))}),(n.showNumbers||n.showPrevNext||n.showFirstLast)&&m.jsxs("div",{className:"ahd-pgn-control",style:{display:"flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,justifyContent:M,marginTop:`var(--ahd-pgn-control-gap, ${n.controlGap}px)`,flexWrap:"wrap"},"data-show-numbers":n.showNumbers?"1":"0","data-show-prev-next":n.showPrevNext?"1":"0","data-show-first-last":n.showFirstLast?"1":"0",children:[n.showFirstLast&&F("ahd-pgn-first",n.firstLabel,1),n.showPrevNext&&F("ahd-pgn-prev",n.prevLabel,Math.max(1,0)),n.showNumbers&&m.jsx("span",{className:"ahd-pgn-numbers",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,flexWrap:"wrap"},children:f.map((G,W)=>G==="ellipsis"?m.jsx("span",{className:"ahd-pgn-ellipsis",style:{...P,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${W}`):m.jsx("button",{type:"button",className:"ahd-pgn-btn ahd-pgn-number","data-ahd-page":G,"aria-label":`Page ${G}`,"aria-current":G===1?"true":void 0,style:G===1?{...P,backgroundColor:_,color:y,border:`1px solid ${C}`}:P,children:G},G))}),n.showPrevNext&&F("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&F("ahd-pgn-last",n.lastLabel,u)]})]})}const tS=A({style:A({starColor:$().optional().nullable(),starEmptyColor:$().optional().nullable(),starSize:g().min(8).max(80).optional().nullable(),starGap:g().min(0).max(40).optional().nullable(),textColor:$().optional().nullable(),fontSize:H([$(),g()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable()}).optional().nullable(),props:A({value:H([g(),$()]).optional().nullable(),max:H([g(),$()]).optional().nullable(),showValue:L().optional().nullable()}).optional().nullable()}),as="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 nS(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function rS(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function oS({fillPct:e,size:t,filledColor:n,emptyColor:r}){return m.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:[m.jsx("svg",{viewBox:"0 0 24 24",fill:r,style:{display:"block",width:"100%",height:"100%"},"aria-hidden":"true",children:m.jsx("path",{d:as})}),m.jsx("span",{className:"ahd-rating-star-fill",style:{position:"absolute",top:0,left:0,height:"100%",width:`${e}%`,overflow:"hidden",lineHeight:0},children:m.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:m.jsx("path",{d:as})})})]})}function aS({style:e,props:t}){const n=U.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),r=(w,k)=>{if(typeof w=="number")return Number.isFinite(w)?w:k;const S=parseFloat(String(w??""));return Number.isFinite(S)?S:k},o=Math.max(1,Math.min(10,Math.round(r(t==null?void 0:t.max,5)))),a=Math.max(0,Math.min(o,r(t==null?void 0:t.value,0))),i=(t==null?void 0:t.showValue)??!0,l=se((e==null?void 0:e.starColor)??"#facc15")??"#facc15",s=z((e==null?void 0:e.starEmptyColor)??"#e5e7eb","track"),u=(e==null?void 0:e.starSize)??24,c=(e==null?void 0:e.starGap)??4,h=z((e==null?void 0:e.textColor)??"#262626","trackText"),d=(e==null?void 0:e.textAlign)??"left",f=e==null?void 0:e.padding,p=e==null?void 0:e.margin,b={display:"flex",alignItems:"center",gap:`calc(var(--ahd-rating-star-gap, ${c}px) + 4px)`,justifyContent:d==="center"?"center":d==="right"?"flex-end":"flex-start",flexWrap:"wrap",color:h,fontFamily:nS(e==null?void 0:e.fontFamily),fontSize:rS(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:f?`${f.top}px ${f.right}px ${f.bottom}px ${f.left}px`:void 0,margin:p?`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`:void 0,boxSizing:"border-box"},x=w=>{const k=a-w;return k>=1?100:k>=.5?50:k>0?Math.round(k*100):0};return m.jsxs("div",{className:`${n} ahd-rating rating-block`,style:b,children:[m.jsx("span",{className:"ahd-rating-stars",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-rating-star-gap, ${c}px)`},children:Array.from({length:o}).map((w,k)=>m.jsx(oS,{fillPct:x(k),size:u,filledColor:l,emptyColor:s},k))}),i&&m.jsxs("span",{className:"ahd-rating-value",style:{fontWeight:600},children:[Number.isInteger(a)?a:a.toFixed(1),m.jsxs("span",{style:{opacity:.55},children:["/",o]})]})]})}const iS=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),lS=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),sS=A({style:A({trackColor:$().optional().nullable(),fillColor:$().optional().nullable(),textColor:$().optional().nullable(),fontSize:H([$(),g()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),barHeight:g().min(2).max(60).optional().nullable(),barRadius:g().min(0).max(40).optional().nullable(),circleSize:g().min(40).max(320).optional().nullable(),strokeWidth:g().min(2).max(40).optional().nullable(),stepSize:g().min(4).max(48).optional().nullable(),stepGap:g().min(0).max(40).optional().nullable(),padding:iS,margin:lS}).optional().nullable(),props:A({variant:T(["linear","circular","steps"]).optional().nullable(),value:H([g(),$()]).optional().nullable(),max:H([g(),$()]).optional().nullable(),showLabel:L().optional().nullable(),labelFormat:T(["percent","fraction"]).optional().nullable(),steps:g().min(2).max(20).optional().nullable(),striped:L().optional().nullable(),animated:L().optional().nullable()}).optional().nullable()});function cS(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function uS(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function is(e,t){if(typeof e=="number")return Number.isFinite(e)?e:t;const n=parseFloat(String(e??""));return Number.isFinite(n)?n:t}function ls(e,t,n,r){return r==="fraction"?`${Number.isInteger(t)?t:t.toFixed(1)}/${n}`:`${Math.round(e)}%`}function dS({pct:e,label:t,trackColor:n,fillColor:r,barHeight:o,barRadius:a,striped:i,animated:l,ariaLabel:s,value:u,max:c}){const h=i&&l;return m.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,width:"100%"},children:[h&&m.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}}"}}),m.jsx("div",{className:"ahd-progress-track",role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":c,"aria-label":s,style:{width:"100%",height:o,borderRadius:a,backgroundColor:n,overflow:"hidden",boxSizing:"border-box"},children:m.jsx("div",{className:`ahd-progress-fill${i?" ahd-progress-striped":""}${h?" ahd-progress-animated":""}`,style:{width:`${e}%`,height:"100%",borderRadius:a,backgroundColor:r,backgroundImage:i?"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:i?"1rem 1rem":void 0,transition:"width 300ms ease"}})}),t!=null&&m.jsx("span",{children:t})]})}function hS({pct:e,label:t,trackColor:n,fillColor:r,size:o,strokeWidth:a,textColor:i,fontWeight:l,ariaLabel:s,value:u,max:c}){const h=(o-a)/2,d=2*Math.PI*h,f=d*(1-e/100),p=o/2;return m.jsxs("div",{className:"ahd-progress-circular",role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":c,"aria-label":s,style:{position:"relative",width:o,height:o,display:"inline-flex"},children:[m.jsxs("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,children:[m.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:n,strokeWidth:a}),m.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:r,strokeWidth:a,strokeLinecap:"round",strokeDasharray:d,strokeDashoffset:f,transform:`rotate(-90 ${p} ${p})`,style:{transition:"stroke-dashoffset 300ms ease"}})]}),t!=null&&m.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:i,fontWeight:l??600},children:t})]})}function fS({steps:e,activeIndex:t,trackColor:n,fillColor:r,stepSize:o,stepGap:a,label:i,ariaLabel:l,value:s,max:u}){return m.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[m.jsx("div",{className:"ahd-progress-steps",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":u,"aria-label":l,style:{display:"inline-flex",alignItems:"center",gap:a},children:Array.from({length:e}).map((c,h)=>m.jsx("span",{"data-active":h<t?"true":"false",style:{width:o,height:o,borderRadius:"50%",backgroundColor:h<t?r:n,transition:"background-color 200ms ease",display:"inline-block"}},h))}),i!=null&&m.jsx("span",{children:i})]})}function pS({style:e,props:t}){const n=U.useMemo(()=>`progress-${Math.random().toString(36).slice(2,9)}`,[]),r=(t==null?void 0:t.variant)??"linear",o=Math.max(1,is(t==null?void 0:t.max,100)),a=Math.max(0,Math.min(o,is(t==null?void 0:t.value,0))),i=a/o*100,l=(t==null?void 0:t.showLabel)??!0,s=(t==null?void 0:t.labelFormat)??"percent",u=l?ls(i,a,o,s):null,c=`Progress: ${ls(i,a,o,"percent")}`,h=z((e==null?void 0:e.trackColor)??"#e5e7eb","track"),d=se((e==null?void 0:e.fillColor)??"#3F73FF")??"#3F73FF",f=z((e==null?void 0:e.textColor)??"#262626","trackText"),p=(e==null?void 0:e.textAlign)??"left",b=e==null?void 0:e.padding,x=e==null?void 0:e.margin,w={display:"flex",justifyContent:p==="center"?"center":p==="right"?"flex-end":"flex-start",color:f,fontFamily:cS(e==null?void 0:e.fontFamily),fontSize:uS((e==null?void 0:e.fontSize)??13),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,margin:x?`${x.top}px ${x.right}px ${x.bottom}px ${x.left}px`:void 0,boxSizing:"border-box"},k=Math.max(2,Math.min(20,Math.round((t==null?void 0:t.steps)??5))),S=Math.round(i/100*k);return m.jsx("div",{className:`${n} ahd-progress progress-block`,style:w,children:r==="circular"?m.jsx(hS,{pct:i,label:u,trackColor:h,fillColor:d,size:(e==null?void 0:e.circleSize)??96,strokeWidth:(e==null?void 0:e.strokeWidth)??8,textColor:f,fontWeight:(e==null?void 0:e.fontWeight)??void 0,ariaLabel:c,value:a,max:o}):r==="steps"?m.jsx(fS,{steps:k,activeIndex:S,trackColor:h,fillColor:d,stepSize:(e==null?void 0:e.stepSize)??14,stepGap:(e==null?void 0:e.stepGap)??12,label:u,ariaLabel:c,value:a,max:o}):m.jsx(dS,{pct:i,label:u,trackColor:h,fillColor:d,barHeight:(e==null?void 0:e.barHeight)??12,barRadius:(e==null?void 0:e.barRadius)??6,striped:(t==null?void 0:t.striped)??!1,animated:(t==null?void 0:t.animated)??!1,ariaLabel:c,value:a,max:o})})}const gS=A({responsive:Ye,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),itemGap:g().min(0).max(200).optional().nullable(),viewportHeight:g().min(40).max(1200).optional().nullable()}).optional().nullable(),props:A({direction:T(["left","right","up","down"]).optional().nullable(),speed:g().min(5).max(200).optional().nullable(),pauseOnHover:L().optional().nullable(),repeat:g().min(2).max(6).optional().nullable(),fadeEdges:L().optional().nullable(),verticalAlign:T(["top","middle","bottom"]).optional().nullable(),hoverEffect:At,items:oe(A({contentChildrenIds:oe($()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),mS=40,bS=32,xS=200,pu=(e,t)=>typeof e=="number"?Math.max(40,Math.min(1200,e)):t,gu=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,vS=e=>Math.max(2,Math.round(1200/e)),kS=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),mu=e=>e==="up"||e==="down",wS=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",Qr=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function SS(e,t){return{speed:gu(t==null?void 0:t.speed,mS),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??bS,viewportHeight:pu(e==null?void 0:e.viewportHeight,xS)}}function $S(e,t,n){var o,a,i,l,s;const r=e==null?void 0:e[t];return{speed:gu((o=r==null?void 0:r.props)==null?void 0:o.speed,n.speed),pauseOnHover:((a=r==null?void 0:r.props)==null?void 0:a.pauseOnHover)??n.pauseOnHover,fadeEdges:((i=r==null?void 0:r.props)==null?void 0:i.fadeEdges)??n.fadeEdges,itemGap:((l=r==null?void 0:r.style)==null?void 0:l.itemGap)??n.itemGap,viewportHeight:pu((s=r==null?void 0:r.style)==null?void 0:s.viewportHeight,n.viewportHeight)}}const _S=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},ss=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${vS(e.speed)}s;--ahd-mq-height:${e.viewportHeight}px;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,CS=(e,t)=>e.fadeEdges?`-webkit-mask-image:${Qr(t)}!important;mask-image:${Qr(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function AS({instanceId:e,direction:t,repeat:n,desktop:r,responsive:o,verticalAlign:a}){const i=`.${e}`,l=mu(t),s=l?"column":"row",u=t==="right"||t==="down"?"reverse":"normal",c=l?"flex-start":wS(a),h=100/n,d=l?`@keyframes ${e}-kf{from{transform:translateY(0)}to{transform:translateY(-${h}%)}}`:`@keyframes ${e}-kf{from{transform:translateX(0)}to{transform:translateX(-${h}%)}}`,f=(b,x)=>{if(!_S(o,x))return"";const w=$S(o,x,r);return`${b}{${i}{${ss(w)};${CS(w,l)}}}`},p=l?`${i} .ahd-marquee-viewport{height:var(--ahd-mq-height);overflow:hidden;position:relative}`:`${i} .ahd-marquee-viewport{overflow:hidden;position:relative;max-width:100%}`;return d+`${i}{${ss(r)}}`+p+`${i} .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 ${u};will-change:transform}${i} .ahd-marquee-group{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);flex:0 0 auto;align-items:${c}}${i} .ahd-marquee-item{flex:0 0 auto;${l?"width:100%":""}}${i}:hover .ahd-marquee-track{animation-play-state:var(--ahd-mq-hover)}`+f(ln,"tablet")+f(Qe,"mobile")+`@media (prefers-reduced-motion: reduce){${i} .ahd-marquee-track{animation:none}}`}function yS(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 IS(e,t){if(!e)return{};const n=(t==null?void 0:t.top)??1,r=(t==null?void 0:t.bottom)??1;return{borderTop:n>0?`${n}px solid ${e}`:void 0,borderBottom:r>0?`${r}px solid ${e}`:void 0}}function RS({style:e,props:t,responsive:n}){var S;const r=U.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),o=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],a=(t==null?void 0:t.direction)??"left",i=kS(t==null?void 0:t.repeat),l=mu(a),s=SS(e,t),u=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),c=se(e==null?void 0:e.borderColor),h=e==null?void 0:e.padding,d=e==null?void 0:e.margin,f=((d==null?void 0:d.left)??0)+((d==null?void 0:d.right)??0),p={width:f>0?`calc(100% - ${f}px)`:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden",position:"relative",background:u??void 0,...IS(c,e==null?void 0:e.borderWidth),borderRadius:yS(e==null?void 0:e.borderRadius),padding:h?`${h.top}px ${h.right}px ${h.bottom}px ${h.left}px`:void 0,margin:d?`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`:void 0,...s.fadeEdges?{WebkitMaskImage:Qr(l),maskImage:Qr(l)}:{}},b=(t==null?void 0:t.verticalAlign)??"middle",x=U.useMemo(()=>AS({instanceId:r,direction:a,repeat:i,desktop:s,responsive:n,verticalAlign:b}),[r,a,i,s.speed,s.pauseOnHover,s.fadeEdges,s.itemGap,s.viewportHeight,n,b]),w=Lt(r,t==null?void 0:t.hoverEffect,{themedBorderColor:z((S=t==null?void 0:t.hoverEffect)==null?void 0:S.borderColor,"borderAdaptive"),scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1}),k=v=>m.jsx("div",{className:"ahd-marquee-group","aria-hidden":v>0?!0:void 0,children:o.map((_,y)=>m.jsx("div",{className:"ahd-marquee-item",children:(_.contentChildrenIds??[]).map(C=>m.jsx(Me,{id:C},C))},y))},v);return m.jsxs("div",{className:`${r} ahd-marquee`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:p,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),m.jsx("div",{className:"ahd-marquee-viewport",children:m.jsx("div",{className:"ahd-marquee-track",children:Array.from({length:i}).map((v,_)=>k(_))})})]})}const TS=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),ES=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),NS=A({style:A({backgroundColor:$().optional().nullable(),textColor:$().optional().nullable(),accentColor:$().optional().nullable(),numberColor:$().optional().nullable(),numberFontWeight:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:TS,margin:ES}).optional().nullable(),props:A({layout:T(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:$().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:L().default(!0),expiredBehavior:T(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:$().default("Offer has ended"),showConfetti:L().default(!1),hoverEffect:At}).optional().nullable()});function MS(e){return String(Math.max(0,e)).padStart(2,"0")}function PS({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,numberColor:l,fallbackInk:s="#1f1f1f",fallbackMuted:u="#6b7280",fallbackOnAccent:c="#ffffff"}){const h=[{value:e,label:"Days"},{value:t,label:"Hours"},{value:n,label:"Minutes"},{value:r,label:"Seconds"}];return m.jsx("div",{className:"ahd-timer-digital",style:{display:"flex",gap:12,alignItems:"flex-start",justifyContent:"center"},children:h.map(d=>m.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[m.jsx("div",{"data-ahd-timer-unit":d.label.toLowerCase(),style:{minWidth:48,padding:"8px 10px",borderRadius:8,background:a??s,color:l??c,fontVariantNumeric:"tabular-nums",fontSize:22,fontWeight:700,textAlign:"center",lineHeight:1},children:MS(d.value)}),o&&m.jsx("span",{style:{fontSize:11,color:i??u,textTransform:"uppercase"},children:d.label})]},d.label))})}function OS(e){return String(Math.max(0,e)).padStart(2,"0")}const Sa=26,cs=2*Math.PI*Sa;function LS({value:e,max:t,accentColor:n,numberColor:r,numberFontWeight:o,unit:a,trackColor:i}){const l=t>0?Math.min(1,Math.max(0,e/t)):0,s=cs*(1-l);return m.jsxs("svg",{"data-ahd-timer-unit":a,"data-ahd-timer-max":t,width:64,height:64,viewBox:"0 0 64 64",children:[m.jsx("circle",{cx:32,cy:32,r:Sa,fill:"none",stroke:i,strokeWidth:5}),m.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:Sa,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:cs,strokeDashoffset:s,transform:"rotate(-90 32 32)",style:{transition:"stroke-dashoffset 1s linear"}}),m.jsx("text",{"data-ahd-timer-text":!0,x:32,y:37,textAnchor:"middle",fontSize:15,fontWeight:o??700,fill:r,children:OS(e)})]})}function zS({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,numberColor:l,numberFontWeight:s,fallbackInk:u="#1f1f1f",fallbackMuted:c="#6b7280",fallbackAccent:h="#7c3aed",fallbackTrack:d="#e5e7eb"}){const f=a??h,p=l??u,b=[{value:e,max:30,label:"Days"},{value:t,max:24,label:"Hours"},{value:n,max:60,label:"Minutes"},{value:r,max:60,label:"Seconds"}];return m.jsx("div",{className:"ahd-timer-circular",style:{display:"flex",gap:16,alignItems:"flex-start",justifyContent:"center"},children:b.map(x=>m.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[m.jsx(LS,{value:x.value,max:x.max,accentColor:f,numberColor:p,numberFontWeight:s,unit:x.label.toLowerCase(),trackColor:d}),o&&m.jsx("span",{style:{fontSize:11,color:i??c,textTransform:"uppercase"},children:x.label})]},x.label))})}function Jt(e){return String(Math.max(0,e)).padStart(2,"0")}function jS({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,fallbackInk:l="#1f1f1f",fallbackAccent:s="#7c3aed"}){const u=[{key:"days",text:o?`${e}d`:Jt(e)},{key:"hours",text:o?`${Jt(t)}h`:Jt(t)},{key:"minutes",text:o?`${Jt(n)}m`:Jt(n)},{key:"seconds",text:o?`${Jt(r)}s`:Jt(r)}],c=o?" ":" : ";return m.jsxs("div",{className:"ahd-timer-inline","data-ahd-timer-show-labels":o?"1":"0",style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:16,fontWeight:600,color:i??l},children:[m.jsx("span",{style:{color:a??s,marginRight:6},children:"Ends in"}),u.map((h,d)=>m.jsxs(U.Fragment,{children:[d>0&&c,m.jsx("span",{"data-ahd-timer-unit":h.key,children:h.text})]},h.key))]})}let BS=0;function DS(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function FS(e,t=Date.now()){const n=e?new Date(e).getTime():NaN;if(Number.isNaN(n))return{days:0,hours:0,minutes:0,seconds:0,completed:!0};const r=Math.max(0,n-t),o=r<=0,a=Math.floor(r/1e3);return{days:Math.floor(a/86400),hours:Math.floor(a%86400/3600),minutes:Math.floor(a%3600/60),seconds:a%60,completed:o}}function HS({style:e,props:t}){var M;const n=t??{},r=n.layout??"digitalFlip",o=n.showLabels??!0,a=n.expiredBehavior??"showMessage",i=n.expiredMessage||"Offer has ended",l=FS(n.targetDate),s=l.completed,u=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),c=se(e==null?void 0:e.borderColor),h=se(e==null?void 0:e.accentColor),d=se(e==null?void 0:e.textColor),f=se(e==null?void 0:e.numberColor),p=z(null,"timerText"),b=z(null,"timerLabel"),x=se("#7c3aed")??"#7c3aed",w=se("#ffffff")??"#ffffff",k=z(null,"timerTrack"),S=e==null?void 0:e.padding,v=e==null?void 0:e.margin,_=((v==null?void 0:v.left)??0)+((v==null?void 0:v.right)??0),y={width:_>0?`calc(100% - ${_}px)`:"100%",boxSizing:"border-box",background:u??void 0,border:c?`1px solid ${c}`:void 0,borderRadius:DS(e==null?void 0:e.borderRadius),padding:S?`${S.top}px ${S.right}px ${S.bottom}px ${S.left}px`:"16px",margin:v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:void 0},C={days:l.days,hours:l.hours,minutes:l.minutes,seconds:l.seconds,showLabels:o,accentColor:h,textColor:d,numberColor:f,fallbackInk:p,fallbackMuted:b,fallbackAccent:x,fallbackOnAccent:w,fallbackTrack:k,numberFontWeight:e==null?void 0:e.numberFontWeight},I=s&&a==="showMessage",R=s&&a==="hide",E=U.useMemo(()=>`ahd-hv-timer-${++BS}`,[]),O=Lt(E,n.hoverEffect,{themedBorderColor:z((M=n.hoverEffect)==null?void 0:M.borderColor,"borderAdaptive"),scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1});return m.jsxs("div",{className:`ahd-timer ${E}`,"data-layout":r,"data-ahd-timer-target-date":n.targetDate,"data-ahd-timer-expired-behavior":a,"data-ahd-timer-expired-message":i,"data-ahd-timer-show-labels":o?"1":"0","data-ahd-timer-confetti":n.showConfetti?"1":"0",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:{...y,display:R?"none":void 0},children:[O&&m.jsx("style",{dangerouslySetInnerHTML:{__html:O}}),m.jsx("div",{"data-ahd-timer-message":!0,style:{textAlign:"center",color:d??p,display:I?void 0:"none"},children:i}),m.jsxs("div",{"data-ahd-timer-body":!0,style:{display:I?"none":void 0},children:[r==="digitalFlip"&&m.jsx(PS,{...C}),r==="circularProgress"&&m.jsx(zS,{...C}),r==="textInline"&&m.jsx(jS,{...C})]})]})}function bu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var GS={"&":"&","<":"<",">":">",'"':""","'":"'"},WS={"&":"&","<":"<",">":">",""":'"',"'":"'"},US=/(&|<|>|"|')/g,ZS=/[&<>"']/g;function qS(e){return GS[e]}function VS(e){return WS[e]}function $a(e){return e==null?"":String(e).replace(ZS,qS)}function _a(e){return e==null?"":String(e).replace(US,VS)}$a.options=_a.options={};var xu={encode:$a,escape:$a,decode:_a,unescape:_a,version:"1.0.0-browser"};function vu(e){for(var t=Array.prototype.slice.call(arguments,1),n,r;t.length;){n=t.shift();for(r in n)n.hasOwnProperty(r)&&(Object.prototype.toString.call(e[r])==="[object Object]"?e[r]=vu(e[r],n[r]):e[r]=n[r])}return e}var YS=vu,ku=function(t){return typeof t=="string"?t.toLowerCase():t};function KS(e){return e.reduce(JS,{})}function JS(e,t){return e[t]=!0,e}var wu=KS,XS=wu,QS=["background","base","cite","href","longdesc","src","usemap"],e$={uris:XS(QS)},t$=wu,n$=["area","br","col","hr","img","wbr","input","base","basefont","link","meta"],Su={voids:t$(n$)},r$=xu,us=ku,o$=Su,a$=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,i$=/^<\s*\/\s*([\w:-]+)[^>]*>/,l$=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,s$=/^</,c$=/^<\s*\//;function u$(){var e=[];return e.lastItem=function(){return e[e.length-1]},e}function d$(e,t){for(var n=u$(),r=e,o;e;)a();h();function a(){o=!0,i();var d=e===r;r=e,d&&(e="")}function i(){e.substr(0,4)==="<!--"?s():c$.test(e)?l(i$,h):s$.test(e)&&l(a$,c),u()}function l(d,f){var p=e.match(d);p&&(e=e.substring(p[0].length),p[0].replace(d,f),o=!1)}function s(){var d=e.indexOf("-->");d>=0&&(t.comment&&t.comment(e.substring(4,d)),e=e.substring(d+3),o=!1)}function u(){if(o){var d,f=e.indexOf("<");f>=0?(d=e.substring(0,f),e=e.substring(f)):(d=e,e=""),t.chars&&t.chars(d)}}function c(d,f,p,b){var x={},w=us(f),k=o$.voids[w]||!!b;p.replace(l$,S),k||n.push(w),t.start&&t.start(w,x,k);function S(v,_,y,C,I){y===void 0&&C===void 0&&I===void 0?x[_]=void 0:x[_]=r$.decode(y||C||I||"")}}function h(d,f){var p,b=0,x=us(f);if(x)for(b=n.length-1;b>=0&&n[b]!==x;b--);if(b>=0){for(p=n.length-1;p>=b;p--)t.end&&t.end(n[p]);n.length=b}}}var h$=d$,f$=xu,Uo=ku,p$=e$,g$=Su;function m$(e,t){var n,r=t||{};return h(),{start:a,end:i,chars:s};function o(d){e.push(d)}function a(d,f,p){var b=Uo(d);if(n.ignoring){u(b);return}if((r.allowedTags||[]).indexOf(b)===-1){u(b);return}if(r.filter&&!r.filter({tag:b,attrs:f})){u(b);return}o("<"),o(b),Object.keys(f).forEach(x),o(p?"/>":">");function x(w){var k=f[w],S=(r.allowedClasses||{})[b]||[],v=(r.allowedAttributes||{})[b]||[],_,y=Uo(w);y==="class"&&v.indexOf(y)===-1?(k=k.split(" ").filter(C).join(" ").trim(),_=k.length):_=v.indexOf(y)!==-1&&(p$.uris[y]!==!0||l(k)),_&&(o(" "),o(w),typeof k=="string"&&(o('="'),o(f$.encode(k)),o('"')));function C(I){return S&&S.indexOf(I)!==-1}}}function i(d){var f=Uo(d),p=(r.allowedTags||[]).indexOf(f)!==-1;p&&n.ignoring===!1?(o("</"),o(f),o(">")):c(f)}function l(d){var f=d[0];if(f==="#"||f==="/")return!0;var p=d.indexOf(":");if(p===-1)return!0;var b=d.indexOf("?");if(b!==-1&&p>b)return!0;var x=d.indexOf("#");if(x!==-1&&p>x)return!0;return r.allowedSchemes.some(w);function w(k){return d.indexOf(k+":")===0}}function s(d){n.ignoring===!1&&o(r.transformText?r.transformText(d):d)}function u(d){g$.voids[d]||(n.ignoring===!1?n={ignoring:d,depth:1}:n.ignoring===d&&n.depth++)}function c(d){n.ignoring===d&&--n.depth<=0&&h()}function h(){n={ignoring:!1,depth:0}}}var b$=m$,x$={allowedAttributes:{a:["href","name","target","title","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null},v$=x$,k$=YS,w$=h$,S$=b$,$u=v$;function _u(e,t,n){var r=[],o=n===!0?t:k$({},$u,t),a=S$(r,o);return w$(e,a),r.join("")}_u.defaults=$u;var $$=_u;const _$=bu($$);function vi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var sn=vi();function Cu(e){sn=e}var nn={exec:()=>null};function mn(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),o=t[r];return o||(o=e(r),t[r]=o),o}}function he(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(o,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(qe.caret,"$1"),n=n.replace(o,i),r},getRegex:()=>new RegExp(n,t)};return r}var C$=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),qe={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:mn(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:mn(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:mn(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:mn(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:mn(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:mn(e=>new RegExp(`^ {0,${e}}>`))},A$=/^(?:[ \t]*(?:\n|$))+/,y$=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,I$=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,lr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,R$=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ki=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Au=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,yu=he(Au).replace(/bull/g,ki).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),T$=he(Au).replace(/bull/g,ki).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),wi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,E$=/^[^\n]+/,Si=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,N$=he(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Si).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),M$=he(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,ki).getRegex(),mo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",$i=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,P$=he("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",$i).replace("tag",mo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Iu=he(wi).replace("hr",lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex(),O$=he(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Iu).getRegex(),_i={blockquote:O$,code:y$,def:N$,fences:I$,heading:R$,hr:lr,html:P$,lheading:yu,list:M$,newline:A$,paragraph:Iu,table:nn,text:E$},ds=he("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex(),L$={..._i,lheading:T$,table:ds,paragraph:he(wi).replace("hr",lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ds).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex()},z$={..._i,html:he(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",$i).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:nn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:he(wi).replace("hr",lr).replace("heading",` *#{1,6} *[^
|
|
281
|
-
]`).replace("lheading",
|
|
280
|
+
`;return m.jsxs("div",{...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:te,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:Oe}}),n.map((J,V)=>m.jsx("input",{type:"radio",name:r,id:`${r}-cb${V}`,className:"pacc-cb",defaultChecked:V===a},V)),m.jsx("div",{className:"pacc-wrap",children:n.map((J,V)=>m.jsxs("div",{className:"pacc-item",children:[m.jsxs("label",{htmlFor:`${r}-cb${V}`,className:"pacc-card",children:[(J.cardChildrenIds??[]).map(K=>m.jsx(Me,{id:K},K)),m.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:m.jsx("i",{className:"bi bi-chevron-right"})})]}),m.jsx("div",{className:"pacc-detail",children:(J.detailChildrenIds??[]).map(K=>m.jsx(Me,{id:K},K))})]},V))})]})}const Iw=160,Rw=A({label:$().optional().nullable(),contentChildrenIds:oe($()).optional().nullable()}),Tw=A({responsive:Ye,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),tabActiveColor:$().optional().nullable(),tabActiveBgColor:$().optional().nullable(),tabInactiveTextColor:$().optional().nullable(),tabInactiveBgColor:$().optional().nullable(),tabInactiveBorderColor:$().optional().nullable(),tabInactiveBorderWidth:g().optional().nullable(),tabTextColor:$().optional().nullable(),tabBgColor:$().optional().nullable(),tabBorderRadius:g().optional().nullable(),tabGap:g().optional().nullable(),contentGap:g().optional().nullable(),navBorderColor:$().optional().nullable(),navWidth:g().optional().nullable(),fontSize:H([$(),g()]).optional().nullable(),lineHeight:H([$(),g()]).optional().nullable(),activeFontSize:H([$(),g()]).optional().nullable(),showActiveBorder:O().optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable()}).optional().nullable(),props:A({orientation:T(["horizontal","vertical"]).optional().nullable(),orientationTablet:T(["horizontal","vertical"]).optional().nullable(),orientationMobile:T(["horizontal","vertical"]).optional().nullable(),behavior:T(["showSelectedSection","scrollToSelectedSection"]).optional().nullable(),tabsAlign:T(["left","center","right"]).optional().nullable(),dropdown:O().optional().nullable(),dropdownTablet:O().optional().nullable(),dropdownMobile:O().optional().nullable(),activeTabIndex:g().optional().nullable(),stickyNav:O().optional().nullable(),items:oe(Rw).min(1).max(20).optional().nullable()}).optional().nullable()});function Ew(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Nw(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 os(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const Mw={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},Pw={display:"inline-block",minWidth:0,maxWidth:"100%",overflowWrap:"break-word",wordBreak:"break-word"};function Ct(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function Kr(e,t=!1){const n=t?"!important":"";return e?Ct(e)?`background:${e}${n};background-color:transparent${n}`:`background-color:${e}${n}`:`background-color:transparent${n}`}function Jr(e,t=!1){const n=t?"!important":"";return Ct(e)?`color:transparent${n}`:`color:${e}${n}`}function Xr(e,t=!1){const n=t?"!important":"";return Ct(e)?`background-image:${e}${n};-webkit-background-clip:text${n};background-clip:text${n};-webkit-text-fill-color:transparent${n};color:transparent${n}`:""}function ka(e,t,n,r=!1){const o=r?"!important":"";return Ct(e)?`border-${n}-style:solid${o};border-${n}-width:${t}${o};border-image-source:${e}${o};border-image-slice:${n==="bottom"?"0 0 1 0 fill":n==="left"?"0 0 0 1 fill":"0 1 0 0 fill"}${o}`:`border-${n}-color:${e}${o}`}function Lw(e,t,n=!1){const r=n?"!important":"";return e?Ct(e)?`box-sizing:border-box${r};border:${t}px solid transparent${r};border-image-source:${e}${r};border-image-slice:1${r};box-shadow:none${r}`:`box-shadow:inset 0 0 0 ${t}px ${e}${r}`:`box-shadow:none${r}`}function gn(e,t,n,r,o,a,i,l){const s=Ct(l),u=s?ka(l,n,"bottom"):`border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent)`,c=s?ka(l,n,"right"):`border-right:${n} solid var(--ahd-tabs-nav-border,transparent)`;if(t==="horizontal")return`${e}{display:block}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;gap:${r};align-items:center;justify-content:${a};width:100%;${u};border-right:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{display:inline-flex;border-bottom:3px solid transparent;border-left:0;margin-bottom:calc(-1 * ${n});margin-right:0}${e} > .ahd-tabs-panels{width:100%;margin-top:${o};margin-left:0}`;const h=`${i??Iw}px`,d=`var(--ahd-tabs-nav-width,${h})`,f=`width:var(--ahd-tabs-nav-width,${h});max-width:var(--ahd-tabs-nav-width,${h})`;return`${e}{display:grid;grid-template-columns:${d} minmax(0,1fr);column-gap:${o};align-items:start}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;grid-column:1;grid-row:1;align-self:start;${f};min-width:0;overflow:visible;${c};border-bottom:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{display:flex;border-left:3px solid transparent;border-bottom:0;margin-right:calc(-1 * ${n});margin-bottom:${r};white-space:normal!important;word-break:break-word;overflow-wrap:break-word;min-width:0;max-width:100%;box-sizing:border-box}${e} > .ahd-tabs-panels{grid-column:2;grid-row:1;width:100%;margin-top:0}`}function Ow(e,t,n,r,o,a,i,l,s,u,c,h,d,f,p,b,x=1){let w="";for(let _=0;_<p;_++){const y=`${e} #${f}-r${_}:checked ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${_+1})`;w+=`${y}{${Kr(i,!0)};${Jr(l,!0)};box-shadow:none!important;font-weight:600!important}${y} > .ahd-tabs-label-text{${Xr(l,!0)}}${y}:hover{${Kr(i,!0)}}`}const k=`${e} > .ahd-tabs-dd-wrap`,S=`${e}.ahd-tabs-dd-open > .ahd-tabs-dd-wrap,${k}:focus-within`,v=s?`${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{font-size:${s}!important}`:"";return`${e}{display:block!important}${k}{display:block!important;position:relative!important;width:100%!important}${k} > .ahd-tabs-dd-trigger{display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%;box-sizing:border-box;padding:10px 14px;border:1px solid ${t};border-radius:${r};background:${o};color:${a};font:inherit;text-align:left;cursor:pointer;appearance:none;-webkit-appearance:none}${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}`+v+`${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{display:inline-block;width:8px;height:8px;flex-shrink:0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-2px;opacity:.7;transition:transform .15s ease}${S} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{transform:rotate(-135deg);margin-top:2px}${k} > .ahd-tabs-nav{position:absolute!important;top:calc(100% + 4px)!important;left:0!important;right:0!important;z-index:30!important;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;overflow:auto!important;max-height:260px!important;width:auto!important;gap:0!important;border:1px solid ${t}!important;border-radius:${r}!important;background:var(--pp-surface,#fff)!important;box-shadow:0 6px 20px rgba(0,0,0,.12)!important;padding:4px!important;align-items:stretch!important;justify-content:flex-start!important;visibility:hidden;opacity:0;pointer-events:none;transform:translateY(-4px);transition:opacity .12s ease,transform .12s ease,visibility .12s}${S} > .ahd-tabs-nav{visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:translateY(0)!important}${k} > .ahd-tabs-nav > .ahd-tabs-label{display:flex!important;justify-content:flex-start!important;width:100%!important;box-sizing:border-box;border:0!important;border-radius:6px!important;margin:0!important;padding:9px 12px!important;${Jr(u??"inherit",!0)};background:${c??"transparent"}!important;box-shadow:${h}!important`+(b?`;border:${x}px solid transparent!important;border-image-source:${b}!important;border-image-slice:1!important`:"")+`}${k} > .ahd-tabs-nav > .ahd-tabs-label > .ahd-tabs-label-text{${Xr(u??"inherit",!0)}}${k} > .ahd-tabs-nav > .ahd-tabs-label + .ahd-tabs-label{margin-top:${d}!important}${k} > .ahd-tabs-nav > .ahd-tabs-label:hover{background:${c??"rgba(0,0,0,.05)"}!important}${e} > .ahd-tabs-panels{position:static!important;width:100%!important;margin:${n} 0 0 0!important;grid-column:auto!important}`+w}function Do(e,t){return`${e} > .ahd-tabs-dd-wrap{display:contents!important;position:static!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:static!important;top:auto!important;z-index:auto!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;max-height:none!important;overflow:visible!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:none!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{border-radius:${t}!important;margin-top:0!important;box-shadow:none!important}`}function zw({style:e,props:t}){const n=(t==null?void 0:t.orientation)??"horizontal",r=(t==null?void 0:t.orientationTablet)??n,o=(t==null?void 0:t.orientationMobile)??"vertical",i=((t==null?void 0:t.behavior)??"showSelectedSection")==="scrollToSelectedSection",l=(t==null?void 0:t.stickyNav)??!1,s=U.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Tab 1",contentChildrenIds:[]}],[t==null?void 0:t.items]),u=U.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),c=se(e==null?void 0:e.tabActiveColor),h=se(e==null?void 0:e.tabActiveBgColor),d=se(e==null?void 0:e.tabInactiveTextColor),f=se(e==null?void 0:e.tabInactiveBgColor),p=se(e==null?void 0:e.tabInactiveBorderColor),b=(e==null?void 0:e.tabInactiveBorderWidth)??1,x=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"0px",w=se(e==null?void 0:e.tabTextColor),k=se((e==null?void 0:e.tabBgColor)??"transparent"),S=se(e==null?void 0:e.navBorderColor),v=S?"2px":"0px",_=(e==null?void 0:e.tabGap)!=null?`${e.tabGap}px`:"0px",y=(e==null?void 0:e.contentGap)!=null?`${e.contentGap}px`:"0px",C=(e==null?void 0:e.navWidth)!=null?e.navWidth:160,I="var(--ahd-tabs-tab-gap,"+_+")",R="var(--ahd-tabs-content-gap,"+y+")",E=(e==null?void 0:e.activeFontSize)!=null?os(e.activeFontSize):void 0,M=((e==null?void 0:e.showActiveBorder)??!0)&&!h?c||"currentColor":"transparent",P=(t==null?void 0:t.tabsAlign)??"left",B=P==="center"?"center":P==="right"?"flex-end":"flex-start",D=(t==null?void 0:t.dropdown)??!1,F=(t==null?void 0:t.dropdownTablet)??D,G=(t==null?void 0:t.dropdownMobile)??F,W=e==null?void 0:e.padding,X=e==null?void 0:e.margin,Q=((X==null?void 0:X.left)??0)+((X==null?void 0:X.right)??0),q=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},te=`${q.top}px ${q.right}px ${q.bottom}px ${q.left}px`,Se=Ct(e==null?void 0:e.borderColor),Ae=e!=null&&e.borderColor?Se?{borderStyle:"solid",borderColor:"transparent",borderWidth:te,borderImageSource:e.borderColor,borderImageSlice:1}:{borderStyle:"solid",borderColor:e.borderColor,borderWidth:te}:{},ge={width:Q>0?`calc(100% - ${Q}px)`:"100%",boxSizing:"border-box",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),...Ae,borderRadius:Nw(e==null?void 0:e.borderRadius),padding:W?`${W.top}px ${W.right}px ${W.bottom}px ${W.left}px`:void 0,margin:X?`${X.top}px ${X.right}px ${X.bottom}px ${X.left}px`:void 0,fontFamily:Ew(e==null?void 0:e.fontFamily),fontSize:os(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,lineHeight:(e==null?void 0:e.lineHeight)??1.5,color:w,"--ahd-tabs-nav-border":S??"transparent"},Oe=()=>s.map((j,Y)=>m.jsx("input",{type:"radio",id:`${u}-r${Y}`,name:u,className:"ahd-tabs-radio",defaultChecked:Y===0,style:Mw},Y)),J=U.useMemo(()=>{const j=`.${u}`,Y=c||"currentColor",fe=w||"inherit",ve=`${j} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label`,me=`${ve} > .ahd-tabs-label-text`,pe=`${j} > .ahd-tabs-panels > .ahd-tabs-panel`,ye=d??fe;let ae=`${ve}{${Jr(ye)};${Kr(f)};${Lw(p,b)};border-radius:${x}}${me}{${Xr(ye)}}`+(i?"":`${pe}{display:none}`)+`${j} > .ahd-tabs-dd-wrap{display:contents}${j} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none}${j} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item{display:none}`;s.forEach((yt,Ge)=>{const et=`#${u}-r${Ge}:checked`,ot=`${et} ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${Ge+1})`,zt=`${et} ~ .ahd-tabs-panels > .ahd-tabs-panel:nth-of-type(${Ge+1})`,It=Ct(M),rt=`${Jr(Y,!0)};${Kr(h,!0)};box-shadow:none!important`+(It?`;${ka(M,"3px",n==="vertical"?"left":"bottom",!0)}`:`;border-left-color:var(--ahd-tabs-active-border-color,${M})!important;border-bottom-color:var(--ahd-tabs-active-border-color,${M})!important`);ae+=`${ot}{${rt}}`,ae+=`${ot} > .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${E??"inherit"})!important;${Xr(Y,!0)}}`,i||(ae+=`${zt}{display:block!important}`),ae+=`${et} ~ .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item:nth-of-type(${Ge+1}){display:inline}`}),ae+=gn(j,n,v,I,R,B,C!=null?String(C):void 0,S??void 0),r!==n&&(ae+=`${Fo}{${gn(j,r,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`),o!==r&&(ae+=`${Ho}{${gn(j,o,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`);const Pe=p||S||z(null,"tabsRing"),De=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"8px",be=z(e==null?void 0:e.tabBgColor,{role:"surface",seeds:[],nullFallback:"#fff"}),Fe=w??"inherit",He=h??"transparent",ee=c??"inherit",je=p?Ct(p)?"none":`inset 0 0 0 ${b}px ${p}`:"none",ze=Ct(p)?p:void 0,ie=Ow(j,Pe,R,De,be,Fe,He,ee,E,d,f,je,I,u,s.length,ze,b);return l&&(ae+=`${j} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> ${j}){position:sticky;top:0;z-index:50}`),D?(ae+=ie,F||(ae+=`${Fo}{${Do(j,x)}${gn(j,r,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`),!G&&F&&(ae+=`${Ho}{${Do(j,x)}${gn(j,o,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`)):(F&&(ae+=`${Fo}{${ie}}`),G!==F&&(ae+=`${Ho}{${G?ie:Do(j,x)+gn(j,o,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`)),ae},[s,u,c,h,x,w,E,M,n,r,o,i,v,S,C,I,R,B,d,f,p,b,D,F,G,l]),V=j=>i?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:j===0?void 0:R}:{display:j===0?"block":"none",width:"100%",minWidth:0,overflow:"hidden"},K=n==="vertical"?"ahd-tabs-o-v":"ahd-tabs-o-h";return m.jsxs("div",{className:`${u} ahd-tabs ${K}${l?" ahd-tabs-sticky":""}${i?" ahd-tabs-scroll-sections":""}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:ge,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:J}}),Oe(),m.jsxs("div",{className:"ahd-tabs-dd-wrap",children:[m.jsxs("button",{type:"button",className:"ahd-tabs-dd-trigger","aria-haspopup":"listbox",tabIndex:0,children:[m.jsx("span",{className:"ahd-tabs-dd-current",children:s.map((j,Y)=>m.jsx("span",{className:"ahd-tabs-dd-current-item","data-ahd-tab-index":Y,children:j.label??`Tab ${Y+1}`},Y))}),m.jsx("span",{className:"ahd-tabs-dd-arrow","aria-hidden":"true"})]}),m.jsx("div",{className:"ahd-tabs-nav",style:{background:k,...l?{position:"sticky",top:0}:{}},children:s.map((j,Y)=>m.jsx("label",{htmlFor:`${u}-r${Y}`,className:"ahd-tabs-label","data-ahd-tab-index":Y,tabIndex:-1,style:{alignItems:"center",cursor:"pointer",padding:n==="vertical"?"10px 16px":"10px 18px",whiteSpace:n==="vertical"?"normal":"nowrap",transition:"color .15s ease,border-color .15s ease",userSelect:"none",position:"relative",outline:"none"},children:m.jsx("span",{className:"ahd-tabs-label-text",style:Pw,children:j.label??`Tab ${Y+1}`})},Y))})]}),m.jsx("div",{className:"ahd-tabs-panels",children:s.map((j,Y)=>m.jsx("div",{id:`${u}-panel-${Y}`,className:"ahd-tabs-panel","data-ahd-tab-index":Y,style:V(Y),children:(j.contentChildrenIds??[]).map(fe=>m.jsx(Me,{id:fe},fe))},Y))})]})}const Fo=`@media (max-width:${Ue}px)`,Ho=`@media (max-width:${Ve}px)`,jw=A({contentChildrenIds:oe($()).optional().nullable()}),Bw=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),slideGap:g().optional().nullable(),arrowColor:$().optional().nullable(),arrowBgColor:$().optional().nullable(),arrowBorderColor:$().optional().nullable(),arrowSize:g().min(16).max(80).optional().nullable(),dotColor:$().optional().nullable(),dotActiveColor:$().optional().nullable(),dotSize:g().min(4).max(24).optional().nullable()}).optional().nullable(),props:A({slidesPerView:g().min(1).max(6).optional().nullable(),slidesPerViewTablet:g().min(1).max(6).optional().nullable(),slidesPerViewMobile:g().min(1).max(6).optional().nullable(),showArrows:O().optional().nullable(),showDots:O().optional().nullable(),autoplay:O().optional().nullable(),autoplayInterval:g().min(500).max(2e4).optional().nullable(),loop:O().optional().nullable(),transitionMs:g().min(0).max(3e3).optional().nullable(),items:oe(jw).min(1).max(20).optional().nullable()}).optional().nullable()});function Dw(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 Fw="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",Hw="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",as=({d:e,size:t=20})=>m.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:m.jsx("path",{d:e})});function Gw({style:e,props:t}){const n=U.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],[t==null?void 0:t.items]),r=U.useMemo(()=>`carousel-${Math.random().toString(36).slice(2,9)}`,[]),o=Math.max(1,(t==null?void 0:t.slidesPerView)??1),a=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(o,2)),i=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,u=(t==null?void 0:t.autoplay)??!1,c=(t==null?void 0:t.autoplayInterval)??4e3,h=(t==null?void 0:t.loop)??!0,d=(t==null?void 0:t.transitionMs)??400,f=(e==null?void 0:e.slideGap)??16,p=z(e==null?void 0:e.arrowColor,"carouselArrow"),b=z(e==null?void 0:e.arrowBgColor,"carouselArrowBg"),x=z(e==null?void 0:e.arrowBorderColor,"carouselArrowBorder"),w=(e==null?void 0:e.arrowSize)??40,k=z(e==null?void 0:e.dotColor,"carouselDot"),S=z(e==null?void 0:e.dotActiveColor,"carouselDotActive"),v=(e==null?void 0:e.dotSize)??8,_=Math.max(12,Math.min(40,Math.round(w*.5))),y=e==null?void 0:e.padding,C=e==null?void 0:e.margin,I=((C==null?void 0:C.left)??0)+((C==null?void 0:C.right)??0),R={width:I>0?`calc(100% - ${I}px)`:"100%",boxSizing:"border-box",position:"relative",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:Dw(e==null?void 0:e.borderRadius),padding:y?`${y.top}px ${y.right}px ${y.bottom}px ${y.left}px`:void 0,margin:C?`${C.top}px ${C.right}px ${C.bottom}px ${C.left}px`:void 0},E=U.useMemo(()=>{const B=`.${r}`,D=F=>`calc((100% - ${f*(F-1)}px) / ${F})`;return`${B} .ahd-carousel-viewport{overflow:hidden;width:100%}${B} .ahd-carousel-track{display:flex;gap:var(--ahd-carousel-slide-gap,${f}px);transition:transform ${d}ms ease;will-change:transform}${B} .ahd-carousel-slide{flex:0 0 ${D(o)};min-width:0;box-sizing:border-box}${B} .ahd-carousel-prev svg,${B} .ahd-carousel-next svg{width:var(--ahd-carousel-chevron-size,${_}px);height:var(--ahd-carousel-chevron-size,${_}px)}@media (max-width:${Ue}px){${B} .ahd-carousel-slide{flex-basis:${D(a)}}}@media (max-width:${Ve}px){${B} .ahd-carousel-slide{flex-basis:${D(i)}}}`},[r,f,d,o,a,i,_]),L={appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-arrow-size, ${w}px)`,height:`var(--ahd-carousel-arrow-size, ${w}px)`,minWidth:`var(--ahd-carousel-arrow-size, ${w}px)`,borderRadius:"50%",border:`1px solid ${x}`,backgroundColor:b,backgroundImage:"none",color:p,boxShadow:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,lineHeight:1,padding:0},M=Math.min(o,a,i),P=Math.max(1,n.length-M+1);return m.jsxs("div",{className:`${r} ahd-carousel`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:R,"data-per-view":o,"data-per-view-tablet":a,"data-per-view-mobile":i,"data-autoplay":u?"1":"0","data-autoplay-interval":c,"data-loop":h?"1":"0",children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:E}}),m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&m.jsx("button",{type:"button",className:"ahd-carousel-prev",style:L,"aria-label":"Previous slide",children:m.jsx(as,{d:Fw,size:_})}),m.jsx("div",{className:"ahd-carousel-viewport",children:m.jsx("div",{className:"ahd-carousel-track",children:n.map((B,D)=>m.jsx("div",{className:"ahd-carousel-slide","data-ahd-slide-index":D,children:(B.contentChildrenIds??[]).map(F=>m.jsx(Me,{id:F},F))},D))})}),l&&m.jsx("button",{type:"button",className:"ahd-carousel-next",style:L,"aria-label":"Next slide",children:m.jsx(as,{d:Hw,size:_})})]}),s&&P>1&&m.jsx("div",{className:"ahd-carousel-dots",style:{display:"flex",justifyContent:"center",gap:8,marginTop:16},"data-dot-color":k,"data-dot-active-color":S,children:Array.from({length:P}).map((B,D)=>m.jsx("button",{type:"button",className:"ahd-carousel-dot","data-ahd-dot-index":D,"aria-label":`Go to slide ${D+1}`,style:{appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-dot-size, ${v}px)`,height:`var(--ahd-carousel-dot-size, ${v}px)`,minWidth:`var(--ahd-carousel-dot-size, ${v}px)`,padding:0,border:"none",borderRadius:"50%",cursor:"pointer",boxShadow:"none",backgroundColor:D===0?S:k,backgroundImage:"none"}},D))})]})}const Ww=T(["left","center","right","space-between"]),Uw=A({contentChildrenIds:oe($()).optional().nullable()}),Zw=A({childrenIds:oe($())}),qw=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),itemGap:g().min(0).max(120).optional().nullable(),columnsGap:g().min(0).max(120).optional().nullable(),rowsGap:g().min(0).max(120).optional().nullable(),controlGap:g().min(0).max(120).optional().nullable(),controlAlign:Ww.optional().nullable(),buttonSize:g().min(20).max(72).optional().nullable(),buttonGap:g().min(0).max(40).optional().nullable(),buttonRadius:g().min(0).max(999).optional().nullable(),buttonBg:$().optional().nullable(),buttonColor:$().optional().nullable(),buttonBorderColor:$().optional().nullable(),activeButtonBg:$().optional().nullable(),activeButtonColor:$().optional().nullable(),activeButtonBorderColor:$().optional().nullable(),arrowColor:$().optional().nullable(),fontSize:g().min(8).max(40).optional().nullable(),fontFamily:$().optional().nullable()}).optional().nullable(),props:A({items:oe(Uw).min(1).max(50).optional().nullable(),cells:oe(Zw).optional().nullable(),columnsCount:g().int().min(1).max(12).optional().nullable(),rowsCount:g().int().min(1).max(24).optional().nullable(),columnsCountTablet:g().int().min(1).max(12).optional().nullable(),columnsCountMobile:g().int().min(1).max(12).optional().nullable(),rowsCountTablet:g().int().min(1).max(24).optional().nullable(),rowsCountMobile:g().int().min(1).max(24).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:T(["left","center","right"]).optional().nullable(),cellsPerPage:g().int().min(1).max(100).optional().nullable(),repeatableEnabled:O().optional().nullable(),pageParam:$().min(1).max(40).optional().nullable(),syncUrl:O().optional().nullable(),showNumbers:O().optional().nullable(),showPrevNext:O().optional().nullable(),showFirstLast:O().optional().nullable(),maxVisiblePages:g().min(0).max(50).optional().nullable(),prevLabel:$().max(24).optional().nullable(),nextLabel:$().max(24).optional().nullable(),firstLabel:$().max(24).optional().nullable(),lastLabel:$().max(24).optional().nullable(),scrollToTopOnChange:O().optional().nullable(),explicitFirstPage:O().optional().nullable()}).optional().nullable()}),wa={columnsCount:2,rowsCount:2};function Go(e,t="desktop"){const n=wa,r=(e==null?void 0:e.columnsCount)??n.columnsCount,o=(e==null?void 0:e.rowsCount)??n.rowsCount,a=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??r:r,i=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??o:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??o:o;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(c=>({childrenIds:Array.isArray(c==null?void 0:c.contentChildrenIds)?c.contentChildrenIds:[]})):l=[];const s=Math.max(1,r*o,a*i,l.length),u=Array.from({length:s},(c,h)=>{var d;return{childrenIds:Array.isArray((d=l[h])==null?void 0:d.childrenIds)?l[h].childrenIds:[]}});return{columnsCount:a,rowsCount:i,cells:u}}function Wo(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)??wa.columnsCount,r=(e==null?void 0:e.rowsCount)??wa.rowsCount,o=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??n:n,a=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??r:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??r:r;return Math.max(1,o*a)}function Vw(e,t,n){const r=Math.max(1,e),o=Math.min(Math.max(1,n),r*Math.max(1,t));return Math.max(1,Math.ceil(o/r))}function Yw(e,t){const n=Math.max(1,t);if(e.length===0)return[[]];const r=[];for(let o=0;o<e.length;o+=n)r.push(e.slice(o,o+n));return r}const Kw={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 Jw({style:e,props:t}){const n=Kw;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 r=(t==null?void 0:t.maxVisiblePages)??n.maxVisiblePages;return r<=0?0:Math.max(5,r)})(),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 Xw(e){return Math.max(1,e)}function Qw(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,u)=>u+1);const r=[],o=Math.max(1,n-2),a=Math.floor(o/2);let i=Math.max(2,e-a),l=Math.min(t-1,i+o-1);i=Math.max(2,Math.min(i,l-o+1)),r.push(1),i>2&&r.push("ellipsis");for(let s=i;s<=l;s++)r.push(s);return l<t-1&&r.push("ellipsis"),r.push(t),r}function eS(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function tS({style:e,props:t}){const n=Jw({style:e,props:t}),r=Go(t,"desktop"),o=Go(t,"tablet"),a=Go(t,"mobile"),i=Math.max(Wo(t,"desktop"),Wo(t,"tablet"),Wo(t,"mobile")),l=U.useMemo(()=>r.cells.length>=i?r.cells:Array.from({length:i},(G,W)=>r.cells[W]??{childrenIds:[]}),[r.cells,i]),s=U.useMemo(()=>Yw(l,i),[l,i]),u=Xw(s.length),c=(e==null?void 0:e.columnsGap)??n.itemGap,h=(e==null?void 0:e.rowsGap)??n.itemGap,d=U.useMemo(()=>`pgn-${Math.random().toString(36).slice(2,9)}`,[]),f=U.useMemo(()=>Qw(1,u,n.maxVisiblePages),[u,n.maxVisiblePages]),p=hi(),b=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),x=p(e==null?void 0:e.borderColor),w=z(n.buttonBg,"paginationBg"),k=z(n.buttonColor,"paginationText"),S=z(n.buttonBorderColor,"paginationBorder"),v=z(n.arrowColor,"paginationText"),_=p(n.activeButtonBg),y=p(n.activeButtonColor),C=p(n.activeButtonBorderColor),I=e==null?void 0:e.padding,R=e==null?void 0:e.margin,E=((R==null?void 0:R.left)??0)+((R==null?void 0:R.right)??0),L={width:E>0?`calc(100% - ${E}px)`:"100%",boxSizing:"border-box",background:b??void 0,border:x?`1px solid ${x}`:void 0,borderRadius:eS(e==null?void 0:e.borderRadius),padding:I?`${I.top}px ${I.right}px ${I.bottom}px ${I.left}px`:void 0,margin:R?`${R.top}px ${R.right}px ${R.bottom}px ${R.left}px`:void 0,fontFamily:n.fontFamily},M=n.controlAlign==="left"?"flex-start":n.controlAlign==="right"?"flex-end":n.controlAlign==="space-between"?"space-between":"center",P={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 ${S}`,backgroundColor:w,backgroundImage:"none",color:k,fontSize:n.fontSize,lineHeight:1,boxShadow:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxSizing:"border-box"},B={...P,color:v},D=U.useMemo(()=>{const G=Q=>`grid-template-columns:repeat(${Q.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${Vw(Q.columnsCount,Q.rowsCount,i)},auto)`,W=(Q,q)=>{const te=Math.min(Math.max(1,q.columnsCount*q.rowsCount),Math.max(1,i));return te>=i?"":`${Q} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${te+1}){display:none}`},X=`.${d}`;return`${X} .ahd-pgn-item{display:grid;${G(r)};column-gap:${c}px;row-gap:${h}px}${X} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+W(X,r)+`@media (max-width:${Ue}px){${X} .ahd-pgn-item{${G(o)}}${X} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+W(X,o)+`}@media (max-width:${Ve}px){${X} .ahd-pgn-item{${G(a)}}${X} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+W(X,a)+"}"},[d,r,o,a,i,c,h,n.itemGap]),F=(G,W,X)=>m.jsx("button",{type:"button",className:`ahd-pgn-btn ${G}`,"data-ahd-page":X,style:B,"aria-label":W,children:W});return m.jsxs("div",{className:`${d} ahd-pagination`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:L,"data-total-pages":u,"data-page-param":n.pageParam,"data-sync-url":n.syncUrl?"1":"0","data-explicit-first-page":n.explicitFirstPage?"1":"0","data-scroll-top":n.scrollToTopOnChange?"1":"0","data-max-visible":n.maxVisiblePages,"data-btn-bg":w,"data-btn-color":k,"data-btn-border":S,"data-active-bg":_,"data-active-color":y,"data-active-border":C,"data-first-label":n.firstLabel,"data-last-label":n.lastLabel,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:D}}),m.jsx("div",{className:"ahd-pgn-content",style:{display:"flex",flexDirection:"column",gap:n.itemGap},children:s.map((G,W)=>m.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":W,style:W===0?void 0:{display:"none"},children:G.map((X,Q)=>m.jsx("div",{className:"ahd-pgn-cell",children:(X.childrenIds??[]).map(q=>m.jsx(Me,{id:q},q))},Q))},W))}),(n.showNumbers||n.showPrevNext||n.showFirstLast)&&m.jsxs("div",{className:"ahd-pgn-control",style:{display:"flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,justifyContent:M,marginTop:`var(--ahd-pgn-control-gap, ${n.controlGap}px)`,flexWrap:"wrap"},"data-show-numbers":n.showNumbers?"1":"0","data-show-prev-next":n.showPrevNext?"1":"0","data-show-first-last":n.showFirstLast?"1":"0",children:[n.showFirstLast&&F("ahd-pgn-first",n.firstLabel,1),n.showPrevNext&&F("ahd-pgn-prev",n.prevLabel,Math.max(1,0)),n.showNumbers&&m.jsx("span",{className:"ahd-pgn-numbers",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,flexWrap:"wrap"},children:f.map((G,W)=>G==="ellipsis"?m.jsx("span",{className:"ahd-pgn-ellipsis",style:{...P,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${W}`):m.jsx("button",{type:"button",className:"ahd-pgn-btn ahd-pgn-number","data-ahd-page":G,"aria-label":`Page ${G}`,"aria-current":G===1?"true":void 0,style:G===1?{...P,backgroundColor:_,color:y,border:`1px solid ${C}`}:P,children:G},G))}),n.showPrevNext&&F("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&F("ahd-pgn-last",n.lastLabel,u)]})]})}const nS=A({style:A({starColor:$().optional().nullable(),starEmptyColor:$().optional().nullable(),starSize:g().min(8).max(80).optional().nullable(),starGap:g().min(0).max(40).optional().nullable(),textColor:$().optional().nullable(),fontSize:H([$(),g()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable()}).optional().nullable(),props:A({value:H([g(),$()]).optional().nullable(),max:H([g(),$()]).optional().nullable(),showValue:O().optional().nullable()}).optional().nullable()}),is="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 rS(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function oS(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function aS({fillPct:e,size:t,filledColor:n,emptyColor:r}){return m.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:[m.jsx("svg",{viewBox:"0 0 24 24",fill:r,style:{display:"block",width:"100%",height:"100%"},"aria-hidden":"true",children:m.jsx("path",{d:is})}),m.jsx("span",{className:"ahd-rating-star-fill",style:{position:"absolute",top:0,left:0,height:"100%",width:`${e}%`,overflow:"hidden",lineHeight:0},children:m.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:m.jsx("path",{d:is})})})]})}function iS({style:e,props:t}){const n=U.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),r=(w,k)=>{if(typeof w=="number")return Number.isFinite(w)?w:k;const S=parseFloat(String(w??""));return Number.isFinite(S)?S:k},o=Math.max(1,Math.min(10,Math.round(r(t==null?void 0:t.max,5)))),a=Math.max(0,Math.min(o,r(t==null?void 0:t.value,0))),i=(t==null?void 0:t.showValue)??!0,l=se((e==null?void 0:e.starColor)??"#facc15")??"#facc15",s=z((e==null?void 0:e.starEmptyColor)??"#e5e7eb","track"),u=(e==null?void 0:e.starSize)??24,c=(e==null?void 0:e.starGap)??4,h=z((e==null?void 0:e.textColor)??"#262626","trackText"),d=(e==null?void 0:e.textAlign)??"left",f=e==null?void 0:e.padding,p=e==null?void 0:e.margin,b={display:"flex",alignItems:"center",gap:`calc(var(--ahd-rating-star-gap, ${c}px) + 4px)`,justifyContent:d==="center"?"center":d==="right"?"flex-end":"flex-start",flexWrap:"wrap",color:h,fontFamily:rS(e==null?void 0:e.fontFamily),fontSize:oS(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:f?`${f.top}px ${f.right}px ${f.bottom}px ${f.left}px`:void 0,margin:p?`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`:void 0,boxSizing:"border-box"},x=w=>{const k=a-w;return k>=1?100:k>=.5?50:k>0?Math.round(k*100):0};return m.jsxs("div",{className:`${n} ahd-rating rating-block`,style:b,children:[m.jsx("span",{className:"ahd-rating-stars",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-rating-star-gap, ${c}px)`},children:Array.from({length:o}).map((w,k)=>m.jsx(aS,{fillPct:x(k),size:u,filledColor:l,emptyColor:s},k))}),i&&m.jsxs("span",{className:"ahd-rating-value",style:{fontWeight:600},children:[Number.isInteger(a)?a:a.toFixed(1),m.jsxs("span",{style:{opacity:.55},children:["/",o]})]})]})}const lS=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),sS=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),cS=A({style:A({trackColor:$().optional().nullable(),fillColor:$().optional().nullable(),textColor:$().optional().nullable(),fontSize:H([$(),g()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),barHeight:g().min(2).max(60).optional().nullable(),barRadius:g().min(0).max(40).optional().nullable(),circleSize:g().min(40).max(320).optional().nullable(),strokeWidth:g().min(2).max(40).optional().nullable(),stepSize:g().min(4).max(48).optional().nullable(),stepGap:g().min(0).max(40).optional().nullable(),padding:lS,margin:sS}).optional().nullable(),props:A({variant:T(["linear","circular","steps"]).optional().nullable(),value:H([g(),$()]).optional().nullable(),max:H([g(),$()]).optional().nullable(),showLabel:O().optional().nullable(),labelFormat:T(["percent","fraction"]).optional().nullable(),steps:g().min(2).max(20).optional().nullable(),striped:O().optional().nullable(),animated:O().optional().nullable()}).optional().nullable()});function uS(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function dS(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function ls(e,t){if(typeof e=="number")return Number.isFinite(e)?e:t;const n=parseFloat(String(e??""));return Number.isFinite(n)?n:t}function ss(e,t,n,r){return r==="fraction"?`${Number.isInteger(t)?t:t.toFixed(1)}/${n}`:`${Math.round(e)}%`}function hS({pct:e,label:t,trackColor:n,fillColor:r,barHeight:o,barRadius:a,striped:i,animated:l,ariaLabel:s,value:u,max:c}){const h=i&&l;return m.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,width:"100%"},children:[h&&m.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}}"}}),m.jsx("div",{className:"ahd-progress-track",role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":c,"aria-label":s,style:{width:"100%",height:o,borderRadius:a,backgroundColor:n,overflow:"hidden",boxSizing:"border-box"},children:m.jsx("div",{className:`ahd-progress-fill${i?" ahd-progress-striped":""}${h?" ahd-progress-animated":""}`,style:{width:`${e}%`,height:"100%",borderRadius:a,backgroundColor:r,backgroundImage:i?"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:i?"1rem 1rem":void 0,transition:"width 300ms ease"}})}),t!=null&&m.jsx("span",{children:t})]})}function fS({pct:e,label:t,trackColor:n,fillColor:r,size:o,strokeWidth:a,textColor:i,fontWeight:l,ariaLabel:s,value:u,max:c}){const h=(o-a)/2,d=2*Math.PI*h,f=d*(1-e/100),p=o/2;return m.jsxs("div",{className:"ahd-progress-circular",role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":c,"aria-label":s,style:{position:"relative",width:o,height:o,display:"inline-flex"},children:[m.jsxs("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,children:[m.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:n,strokeWidth:a}),m.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:r,strokeWidth:a,strokeLinecap:"round",strokeDasharray:d,strokeDashoffset:f,transform:`rotate(-90 ${p} ${p})`,style:{transition:"stroke-dashoffset 300ms ease"}})]}),t!=null&&m.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:i,fontWeight:l??600},children:t})]})}function pS({steps:e,activeIndex:t,trackColor:n,fillColor:r,stepSize:o,stepGap:a,label:i,ariaLabel:l,value:s,max:u}){return m.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[m.jsx("div",{className:"ahd-progress-steps",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":u,"aria-label":l,style:{display:"inline-flex",alignItems:"center",gap:a},children:Array.from({length:e}).map((c,h)=>m.jsx("span",{"data-active":h<t?"true":"false",style:{width:o,height:o,borderRadius:"50%",backgroundColor:h<t?r:n,transition:"background-color 200ms ease",display:"inline-block"}},h))}),i!=null&&m.jsx("span",{children:i})]})}function gS({style:e,props:t}){const n=U.useMemo(()=>`progress-${Math.random().toString(36).slice(2,9)}`,[]),r=(t==null?void 0:t.variant)??"linear",o=Math.max(1,ls(t==null?void 0:t.max,100)),a=Math.max(0,Math.min(o,ls(t==null?void 0:t.value,0))),i=a/o*100,l=(t==null?void 0:t.showLabel)??!0,s=(t==null?void 0:t.labelFormat)??"percent",u=l?ss(i,a,o,s):null,c=`Progress: ${ss(i,a,o,"percent")}`,h=z((e==null?void 0:e.trackColor)??"#e5e7eb","track"),d=se((e==null?void 0:e.fillColor)??"#3F73FF")??"#3F73FF",f=z((e==null?void 0:e.textColor)??"#262626","trackText"),p=(e==null?void 0:e.textAlign)??"left",b=e==null?void 0:e.padding,x=e==null?void 0:e.margin,w={display:"flex",justifyContent:p==="center"?"center":p==="right"?"flex-end":"flex-start",color:f,fontFamily:uS(e==null?void 0:e.fontFamily),fontSize:dS((e==null?void 0:e.fontSize)??13),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,margin:x?`${x.top}px ${x.right}px ${x.bottom}px ${x.left}px`:void 0,boxSizing:"border-box"},k=Math.max(2,Math.min(20,Math.round((t==null?void 0:t.steps)??5))),S=Math.round(i/100*k);return m.jsx("div",{className:`${n} ahd-progress progress-block`,style:w,children:r==="circular"?m.jsx(fS,{pct:i,label:u,trackColor:h,fillColor:d,size:(e==null?void 0:e.circleSize)??96,strokeWidth:(e==null?void 0:e.strokeWidth)??8,textColor:f,fontWeight:(e==null?void 0:e.fontWeight)??void 0,ariaLabel:c,value:a,max:o}):r==="steps"?m.jsx(pS,{steps:k,activeIndex:S,trackColor:h,fillColor:d,stepSize:(e==null?void 0:e.stepSize)??14,stepGap:(e==null?void 0:e.stepGap)??12,label:u,ariaLabel:c,value:a,max:o}):m.jsx(hS,{pct:i,label:u,trackColor:h,fillColor:d,barHeight:(e==null?void 0:e.barHeight)??12,barRadius:(e==null?void 0:e.barRadius)??6,striped:(t==null?void 0:t.striped)??!1,animated:(t==null?void 0:t.animated)??!1,ariaLabel:c,value:a,max:o})})}const mS=A({responsive:Ye,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),itemGap:g().min(0).max(200).optional().nullable(),viewportHeight:g().min(40).max(1200).optional().nullable()}).optional().nullable(),props:A({direction:T(["left","right","up","down"]).optional().nullable(),speed:g().min(5).max(200).optional().nullable(),pauseOnHover:O().optional().nullable(),repeat:g().min(2).max(6).optional().nullable(),fadeEdges:O().optional().nullable(),verticalAlign:T(["top","middle","bottom"]).optional().nullable(),hoverEffect:At,items:oe(A({contentChildrenIds:oe($()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),bS=40,xS=32,vS=200,mu=(e,t)=>typeof e=="number"?Math.max(40,Math.min(1200,e)):t,bu=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,kS=e=>Math.max(2,Math.round(1200/e)),wS=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),xu=e=>e==="up"||e==="down",SS=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",Qr=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function $S(e,t){return{speed:bu(t==null?void 0:t.speed,bS),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??xS,viewportHeight:mu(e==null?void 0:e.viewportHeight,vS)}}function _S(e,t,n){var o,a,i,l,s;const r=e==null?void 0:e[t];return{speed:bu((o=r==null?void 0:r.props)==null?void 0:o.speed,n.speed),pauseOnHover:((a=r==null?void 0:r.props)==null?void 0:a.pauseOnHover)??n.pauseOnHover,fadeEdges:((i=r==null?void 0:r.props)==null?void 0:i.fadeEdges)??n.fadeEdges,itemGap:((l=r==null?void 0:r.style)==null?void 0:l.itemGap)??n.itemGap,viewportHeight:mu((s=r==null?void 0:r.style)==null?void 0:s.viewportHeight,n.viewportHeight)}}const CS=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},cs=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${kS(e.speed)}s;--ahd-mq-height:${e.viewportHeight}px;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,AS=(e,t)=>e.fadeEdges?`-webkit-mask-image:${Qr(t)}!important;mask-image:${Qr(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function yS({instanceId:e,direction:t,repeat:n,desktop:r,responsive:o,verticalAlign:a}){const i=`.${e}`,l=xu(t),s=l?"column":"row",u=t==="right"||t==="down"?"reverse":"normal",c=l?"flex-start":SS(a),h=100/n,d=l?`@keyframes ${e}-kf{from{transform:translateY(0)}to{transform:translateY(-${h}%)}}`:`@keyframes ${e}-kf{from{transform:translateX(0)}to{transform:translateX(-${h}%)}}`,f=(b,x)=>{if(!CS(o,x))return"";const w=_S(o,x,r);return`${b}{${i}{${cs(w)};${AS(w,l)}}}`},p=l?`${i} .ahd-marquee-viewport{height:var(--ahd-mq-height);overflow:hidden;position:relative}`:`${i} .ahd-marquee-viewport{overflow:hidden;position:relative;max-width:100%}`;return d+`${i}{${cs(r)}}`+p+`${i} .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 ${u};will-change:transform}${i} .ahd-marquee-group{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);flex:0 0 auto;align-items:${c}}${i} .ahd-marquee-item{flex:0 0 auto;${l?"width:100%":""}}${i}:hover .ahd-marquee-track{animation-play-state:var(--ahd-mq-hover)}`+f(ln,"tablet")+f(Qe,"mobile")+`@media (prefers-reduced-motion: reduce){${i} .ahd-marquee-track{animation:none}}`}function IS(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 RS(e,t){if(!e)return{};const n=(t==null?void 0:t.top)??1,r=(t==null?void 0:t.bottom)??1;return{borderTop:n>0?`${n}px solid ${e}`:void 0,borderBottom:r>0?`${r}px solid ${e}`:void 0}}function TS({style:e,props:t,responsive:n}){var S;const r=U.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),o=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],a=(t==null?void 0:t.direction)??"left",i=wS(t==null?void 0:t.repeat),l=xu(a),s=$S(e,t),u=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),c=se(e==null?void 0:e.borderColor),h=e==null?void 0:e.padding,d=e==null?void 0:e.margin,f=((d==null?void 0:d.left)??0)+((d==null?void 0:d.right)??0),p={width:f>0?`calc(100% - ${f}px)`:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden",position:"relative",background:u??void 0,...RS(c,e==null?void 0:e.borderWidth),borderRadius:IS(e==null?void 0:e.borderRadius),padding:h?`${h.top}px ${h.right}px ${h.bottom}px ${h.left}px`:void 0,margin:d?`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`:void 0,...s.fadeEdges?{WebkitMaskImage:Qr(l),maskImage:Qr(l)}:{}},b=(t==null?void 0:t.verticalAlign)??"middle",x=U.useMemo(()=>yS({instanceId:r,direction:a,repeat:i,desktop:s,responsive:n,verticalAlign:b}),[r,a,i,s.speed,s.pauseOnHover,s.fadeEdges,s.itemGap,s.viewportHeight,n,b]),w=Ot(r,t==null?void 0:t.hoverEffect,{themedBorderColor:z((S=t==null?void 0:t.hoverEffect)==null?void 0:S.borderColor,"borderAdaptive"),scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1}),k=v=>m.jsx("div",{className:"ahd-marquee-group","aria-hidden":v>0?!0:void 0,children:o.map((_,y)=>m.jsx("div",{className:"ahd-marquee-item",children:(_.contentChildrenIds??[]).map(C=>m.jsx(Me,{id:C},C))},y))},v);return m.jsxs("div",{className:`${r} ahd-marquee`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:p,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),m.jsx("div",{className:"ahd-marquee-viewport",children:m.jsx("div",{className:"ahd-marquee-track",children:Array.from({length:i}).map((v,_)=>k(_))})})]})}const ES=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),NS=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),MS=A({style:A({backgroundColor:$().optional().nullable(),textColor:$().optional().nullable(),accentColor:$().optional().nullable(),numberColor:$().optional().nullable(),numberFontWeight:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:ES,margin:NS}).optional().nullable(),props:A({layout:T(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:$().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:O().default(!0),expiredBehavior:T(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:$().default("Offer has ended"),showConfetti:O().default(!1),hoverEffect:At}).optional().nullable()});function PS(e){return String(Math.max(0,e)).padStart(2,"0")}function LS({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,numberColor:l,fallbackInk:s="#1f1f1f",fallbackMuted:u="#6b7280",fallbackOnAccent:c="#ffffff"}){const h=[{value:e,label:"Days"},{value:t,label:"Hours"},{value:n,label:"Minutes"},{value:r,label:"Seconds"}];return m.jsx("div",{className:"ahd-timer-digital",style:{display:"flex",gap:12,alignItems:"flex-start",justifyContent:"center"},children:h.map(d=>m.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[m.jsx("div",{"data-ahd-timer-unit":d.label.toLowerCase(),style:{minWidth:48,padding:"8px 10px",borderRadius:8,background:a??s,color:l??c,fontVariantNumeric:"tabular-nums",fontSize:22,fontWeight:700,textAlign:"center",lineHeight:1},children:PS(d.value)}),o&&m.jsx("span",{style:{fontSize:11,color:i??u,textTransform:"uppercase"},children:d.label})]},d.label))})}function OS(e){return String(Math.max(0,e)).padStart(2,"0")}const Sa=26,us=2*Math.PI*Sa;function zS({value:e,max:t,accentColor:n,numberColor:r,numberFontWeight:o,unit:a,trackColor:i}){const l=t>0?Math.min(1,Math.max(0,e/t)):0,s=us*(1-l);return m.jsxs("svg",{"data-ahd-timer-unit":a,"data-ahd-timer-max":t,width:64,height:64,viewBox:"0 0 64 64",children:[m.jsx("circle",{cx:32,cy:32,r:Sa,fill:"none",stroke:i,strokeWidth:5}),m.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:Sa,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:us,strokeDashoffset:s,transform:"rotate(-90 32 32)",style:{transition:"stroke-dashoffset 1s linear"}}),m.jsx("text",{"data-ahd-timer-text":!0,x:32,y:37,textAnchor:"middle",fontSize:15,fontWeight:o??700,fill:r,children:OS(e)})]})}function jS({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,numberColor:l,numberFontWeight:s,fallbackInk:u="#1f1f1f",fallbackMuted:c="#6b7280",fallbackAccent:h="#7c3aed",fallbackTrack:d="#e5e7eb"}){const f=a??h,p=l??u,b=[{value:e,max:30,label:"Days"},{value:t,max:24,label:"Hours"},{value:n,max:60,label:"Minutes"},{value:r,max:60,label:"Seconds"}];return m.jsx("div",{className:"ahd-timer-circular",style:{display:"flex",gap:16,alignItems:"flex-start",justifyContent:"center"},children:b.map(x=>m.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[m.jsx(zS,{value:x.value,max:x.max,accentColor:f,numberColor:p,numberFontWeight:s,unit:x.label.toLowerCase(),trackColor:d}),o&&m.jsx("span",{style:{fontSize:11,color:i??c,textTransform:"uppercase"},children:x.label})]},x.label))})}function Jt(e){return String(Math.max(0,e)).padStart(2,"0")}function BS({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,fallbackInk:l="#1f1f1f",fallbackAccent:s="#7c3aed"}){const u=[{key:"days",text:o?`${e}d`:Jt(e)},{key:"hours",text:o?`${Jt(t)}h`:Jt(t)},{key:"minutes",text:o?`${Jt(n)}m`:Jt(n)},{key:"seconds",text:o?`${Jt(r)}s`:Jt(r)}],c=o?" ":" : ";return m.jsxs("div",{className:"ahd-timer-inline","data-ahd-timer-show-labels":o?"1":"0",style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:16,fontWeight:600,color:i??l},children:[m.jsx("span",{style:{color:a??s,marginRight:6},children:"Ends in"}),u.map((h,d)=>m.jsxs(U.Fragment,{children:[d>0&&c,m.jsx("span",{"data-ahd-timer-unit":h.key,children:h.text})]},h.key))]})}let DS=0;function FS(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 HS(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 r=Math.max(0,n-t),o=r<=0,a=Math.floor(r/1e3);return{days:Math.floor(a/86400),hours:Math.floor(a%86400/3600),minutes:Math.floor(a%3600/60),seconds:a%60,completed:o}}function GS({style:e,props:t}){var M;const n=t??{},r=n.layout??"digitalFlip",o=n.showLabels??!0,a=n.expiredBehavior??"showMessage",i=n.expiredMessage||"Offer has ended",l=HS(n.targetDate),s=l.completed,u=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),c=se(e==null?void 0:e.borderColor),h=se(e==null?void 0:e.accentColor),d=se(e==null?void 0:e.textColor),f=se(e==null?void 0:e.numberColor),p=z(null,"timerText"),b=z(null,"timerLabel"),x=se("#7c3aed")??"#7c3aed",w=se("#ffffff")??"#ffffff",k=z(null,"timerTrack"),S=e==null?void 0:e.padding,v=e==null?void 0:e.margin,_=((v==null?void 0:v.left)??0)+((v==null?void 0:v.right)??0),y={width:_>0?`calc(100% - ${_}px)`:"100%",boxSizing:"border-box",background:u??void 0,border:c?`1px solid ${c}`:void 0,borderRadius:FS(e==null?void 0:e.borderRadius),padding:S?`${S.top}px ${S.right}px ${S.bottom}px ${S.left}px`:"16px",margin:v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:void 0},C={days:l.days,hours:l.hours,minutes:l.minutes,seconds:l.seconds,showLabels:o,accentColor:h,textColor:d,numberColor:f,fallbackInk:p,fallbackMuted:b,fallbackAccent:x,fallbackOnAccent:w,fallbackTrack:k,numberFontWeight:e==null?void 0:e.numberFontWeight},I=s&&a==="showMessage",R=s&&a==="hide",E=U.useMemo(()=>`ahd-hv-timer-${++DS}`,[]),L=Ot(E,n.hoverEffect,{themedBorderColor:z((M=n.hoverEffect)==null?void 0:M.borderColor,"borderAdaptive"),scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1});return m.jsxs("div",{className:`ahd-timer ${E}`,"data-layout":r,"data-ahd-timer-target-date":n.targetDate,"data-ahd-timer-expired-behavior":a,"data-ahd-timer-expired-message":i,"data-ahd-timer-show-labels":o?"1":"0","data-ahd-timer-confetti":n.showConfetti?"1":"0",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:{...y,display:R?"none":void 0},children:[L&&m.jsx("style",{dangerouslySetInnerHTML:{__html:L}}),m.jsx("div",{"data-ahd-timer-message":!0,style:{textAlign:"center",color:d??p,display:I?void 0:"none"},children:i}),m.jsxs("div",{"data-ahd-timer-body":!0,style:{display:I?"none":void 0},children:[r==="digitalFlip"&&m.jsx(LS,{...C}),r==="circularProgress"&&m.jsx(jS,{...C}),r==="textInline"&&m.jsx(BS,{...C})]})]})}function vu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var WS={"&":"&","<":"<",">":">",'"':""","'":"'"},US={"&":"&","<":"<",">":">",""":'"',"'":"'"},ZS=/(&|<|>|"|')/g,qS=/[&<>"']/g;function VS(e){return WS[e]}function YS(e){return US[e]}function $a(e){return e==null?"":String(e).replace(qS,VS)}function _a(e){return e==null?"":String(e).replace(ZS,YS)}$a.options=_a.options={};var ku={encode:$a,escape:$a,decode:_a,unescape:_a,version:"1.0.0-browser"};function wu(e){for(var t=Array.prototype.slice.call(arguments,1),n,r;t.length;){n=t.shift();for(r in n)n.hasOwnProperty(r)&&(Object.prototype.toString.call(e[r])==="[object Object]"?e[r]=wu(e[r],n[r]):e[r]=n[r])}return e}var KS=wu,Su=function(t){return typeof t=="string"?t.toLowerCase():t};function JS(e){return e.reduce(XS,{})}function XS(e,t){return e[t]=!0,e}var $u=JS,QS=$u,e$=["background","base","cite","href","longdesc","src","usemap"],t$={uris:QS(e$)},n$=$u,r$=["area","br","col","hr","img","wbr","input","base","basefont","link","meta"],_u={voids:n$(r$)},o$=ku,ds=Su,a$=_u,i$=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,l$=/^<\s*\/\s*([\w:-]+)[^>]*>/,s$=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,c$=/^</,u$=/^<\s*\//;function d$(){var e=[];return e.lastItem=function(){return e[e.length-1]},e}function h$(e,t){for(var n=d$(),r=e,o;e;)a();h();function a(){o=!0,i();var d=e===r;r=e,d&&(e="")}function i(){e.substr(0,4)==="<!--"?s():u$.test(e)?l(l$,h):c$.test(e)&&l(i$,c),u()}function l(d,f){var p=e.match(d);p&&(e=e.substring(p[0].length),p[0].replace(d,f),o=!1)}function s(){var d=e.indexOf("-->");d>=0&&(t.comment&&t.comment(e.substring(4,d)),e=e.substring(d+3),o=!1)}function u(){if(o){var d,f=e.indexOf("<");f>=0?(d=e.substring(0,f),e=e.substring(f)):(d=e,e=""),t.chars&&t.chars(d)}}function c(d,f,p,b){var x={},w=ds(f),k=a$.voids[w]||!!b;p.replace(s$,S),k||n.push(w),t.start&&t.start(w,x,k);function S(v,_,y,C,I){y===void 0&&C===void 0&&I===void 0?x[_]=void 0:x[_]=o$.decode(y||C||I||"")}}function h(d,f){var p,b=0,x=ds(f);if(x)for(b=n.length-1;b>=0&&n[b]!==x;b--);if(b>=0){for(p=n.length-1;p>=b;p--)t.end&&t.end(n[p]);n.length=b}}}var f$=h$,p$=ku,Uo=Su,g$=t$,m$=_u;function b$(e,t){var n,r=t||{};return h(),{start:a,end:i,chars:s};function o(d){e.push(d)}function a(d,f,p){var b=Uo(d);if(n.ignoring){u(b);return}if((r.allowedTags||[]).indexOf(b)===-1){u(b);return}if(r.filter&&!r.filter({tag:b,attrs:f})){u(b);return}o("<"),o(b),Object.keys(f).forEach(x),o(p?"/>":">");function x(w){var k=f[w],S=(r.allowedClasses||{})[b]||[],v=(r.allowedAttributes||{})[b]||[],_,y=Uo(w);y==="class"&&v.indexOf(y)===-1?(k=k.split(" ").filter(C).join(" ").trim(),_=k.length):_=v.indexOf(y)!==-1&&(g$.uris[y]!==!0||l(k)),_&&(o(" "),o(w),typeof k=="string"&&(o('="'),o(p$.encode(k)),o('"')));function C(I){return S&&S.indexOf(I)!==-1}}}function i(d){var f=Uo(d),p=(r.allowedTags||[]).indexOf(f)!==-1;p&&n.ignoring===!1?(o("</"),o(f),o(">")):c(f)}function l(d){var f=d[0];if(f==="#"||f==="/")return!0;var p=d.indexOf(":");if(p===-1)return!0;var b=d.indexOf("?");if(b!==-1&&p>b)return!0;var x=d.indexOf("#");if(x!==-1&&p>x)return!0;return r.allowedSchemes.some(w);function w(k){return d.indexOf(k+":")===0}}function s(d){n.ignoring===!1&&o(r.transformText?r.transformText(d):d)}function u(d){m$.voids[d]||(n.ignoring===!1?n={ignoring:d,depth:1}:n.ignoring===d&&n.depth++)}function c(d){n.ignoring===d&&--n.depth<=0&&h()}function h(){n={ignoring:!1,depth:0}}}var x$=b$,v$={allowedAttributes:{a:["href","name","target","title","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null},k$=v$,w$=KS,S$=f$,$$=x$,Cu=k$;function Au(e,t,n){var r=[],o=n===!0?t:w$({},Cu,t),a=$$(r,o);return S$(e,a),r.join("")}Au.defaults=Cu;var _$=Au;const C$=vu(_$);function vi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var sn=vi();function yu(e){sn=e}var nn={exec:()=>null};function mn(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),o=t[r];return o||(o=e(r),t[r]=o),o}}function he(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(o,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(qe.caret,"$1"),n=n.replace(o,i),r},getRegex:()=>new RegExp(n,t)};return r}var A$=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),qe={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:mn(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:mn(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:mn(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:mn(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:mn(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:mn(e=>new RegExp(`^ {0,${e}}>`))},y$=/^(?:[ \t]*(?:\n|$))+/,I$=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,R$=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,lr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,T$=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ki=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Iu=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ru=he(Iu).replace(/bull/g,ki).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),E$=he(Iu).replace(/bull/g,ki).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),wi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,N$=/^[^\n]+/,Si=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,M$=he(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Si).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),P$=he(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,ki).getRegex(),mo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",$i=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,L$=he("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",$i).replace("tag",mo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Tu=he(wi).replace("hr",lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex(),O$=he(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Tu).getRegex(),_i={blockquote:O$,code:I$,def:M$,fences:R$,heading:T$,hr:lr,html:L$,lheading:Ru,list:P$,newline:y$,paragraph:Tu,table:nn,text:N$},hs=he("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex(),z$={..._i,lheading:E$,table:hs,paragraph:he(wi).replace("hr",lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",hs).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mo).getRegex()},j$={..._i,html:he(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",$i).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:nn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:he(wi).replace("hr",lr).replace("heading",` *#{1,6} *[^
|
|
281
|
+
]`).replace("lheading",Ru).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},B$=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,D$=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Eu=/^( {2,}|\\)\n(?!\s*$)/,F$=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Nn=/[\p{P}\p{S}]/u,bo=/[\s\p{P}\p{S}]/u,Ci=/[^\s\p{P}\p{S}]/u,H$=he(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,bo).getRegex(),Nu=/(?!~)[\p{P}\p{S}]/u,G$=/(?!~)[\s\p{P}\p{S}]/u,W$=/(?:[^\s\p{P}\p{S}]|~)/u,U$=he(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",A$?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Mu=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Z$=he(Mu,"u").replace(/punct/g,Nn).getRegex(),q$=he(Mu,"u").replace(/punct/g,Nu).getRegex(),Pu="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",V$=he(Pu,"gu").replace(/notPunctSpace/g,Ci).replace(/punctSpace/g,bo).replace(/punct/g,Nn).getRegex(),Y$=he(Pu,"gu").replace(/notPunctSpace/g,W$).replace(/punctSpace/g,G$).replace(/punct/g,Nu).getRegex(),K$=he("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ci).replace(/punctSpace/g,bo).replace(/punct/g,Nn).getRegex(),J$=he(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Nn).getRegex(),X$="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Q$=he(X$,"gu").replace(/notPunctSpace/g,Ci).replace(/punctSpace/g,bo).replace(/punct/g,Nn).getRegex(),e2=he(/\\(punct)/,"gu").replace(/punct/g,Nn).getRegex(),t2=he(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),n2=he($i).replace("(?:-->|$)","-->").getRegex(),r2=he("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",n2).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),eo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,o2=he(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",eo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Lu=he(/^!?\[(label)\]\[(ref)\]/).replace("label",eo).replace("ref",Si).getRegex(),Ou=he(/^!?\[(ref)\](?:\[\])?/).replace("ref",Si).getRegex(),a2=he("reflink|nolink(?!\\()","g").replace("reflink",Lu).replace("nolink",Ou).getRegex(),fs=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ai={_backpedal:nn,anyPunctuation:e2,autolink:t2,blockSkip:U$,br:Eu,code:D$,del:nn,delLDelim:nn,delRDelim:nn,emStrongLDelim:Z$,emStrongRDelimAst:V$,emStrongRDelimUnd:K$,escape:B$,link:o2,nolink:Ou,punctuation:H$,reflink:Lu,reflinkSearch:a2,tag:r2,text:F$,url:nn},i2={...Ai,link:he(/^!?\[(label)\]\((.*?)\)/).replace("label",eo).getRegex(),reflink:he(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",eo).getRegex()},Ca={...Ai,emStrongRDelimAst:Y$,emStrongLDelim:q$,delLDelim:J$,delRDelim:Q$,url:he(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",fs).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:he(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",fs).getRegex()},l2={...Ca,br:he(Eu).replace("{2,}","*").getRegex(),text:he(Ca.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ar={normal:_i,gfm:z$,pedantic:j$},jn={normal:Ai,gfm:Ca,breaks:l2,pedantic:i2},s2={"&":"&","<":"<",">":">",'"':""","'":"'"},ps=e=>s2[e];function St(e,t){if(t){if(qe.escapeTest.test(e))return e.replace(qe.escapeReplace,ps)}else if(qe.escapeTestNoEncode.test(e))return e.replace(qe.escapeReplaceNoEncode,ps);return e}function gs(e){try{e=encodeURI(e).replace(qe.percentDecode,"%")}catch{return null}return e}function ms(e,t){var a;let n=e.replace(qe.findPipe,(i,l,s)=>{let u=!1,c=l;for(;--c>=0&&s[c]==="\\";)u=!u;return u?"|":" |"}),r=n.split(qe.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!((a=r.at(-1))!=null&&a.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(qe.slashPipe,"|");return r}function Ft(e,t,n){let r=e.length;if(r===0)return"";let o=0;for(;o<r&&e.charAt(r-o-1)===t;)o++;return e.slice(0,r-o)}function bs(e){let t=e.split(`
|
|
282
282
|
`),n=t.length-1;for(;n>=0&&qe.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
|
|
283
|
-
`)}function
|
|
283
|
+
`)}function c2(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function u2(e,t=0){let n=t,r="";for(let o of e)if(o===" "){let a=4-n%4;r+=" ".repeat(a),n+=a}else r+=o,n++;return r}function xs(e,t,n,r,o){let a=t.href,i=t.title||null,l=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let s={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:i,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,s}function d2(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let o=r[1];return t.split(`
|
|
284
284
|
`).map(a=>{let i=a.match(n.other.beginningSpace);if(i===null)return a;let[l]=i;return l.length>=o.length?a.slice(o.length):a}).join(`
|
|
285
|
-
`)}var to=class{constructor(e){we(this,"options");we(this,"rules");we(this,"lexer");this.options=e||sn}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=this.options.pedantic?t[0]:
|
|
285
|
+
`)}var to=class{constructor(e){we(this,"options");we(this,"rules");we(this,"lexer");this.options=e||sn}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=this.options.pedantic?t[0]:bs(t[0]),r=n.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n,codeBlockStyle:"indented",text:r}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=d2(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=Ft(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:Ft(t[0],`
|
|
286
286
|
`),depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ft(t[0],`
|
|
287
287
|
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Ft(t[0],`
|
|
288
288
|
`).split(`
|
|
@@ -295,19 +295,19 @@ ${c}`:c;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
|
|
|
295
295
|
`),b=this.blockquote(p);a[a.length-1]=b,r=r.substring(0,r.length-f.raw.length)+b.raw,o=o.substring(0,o.length-f.text.length)+b.text;break}else if((d==null?void 0:d.type)==="list"){let f=d,p=f.raw+`
|
|
296
296
|
`+n.join(`
|
|
297
297
|
`),b=this.list(p);a[a.length-1]=b,r=r.substring(0,r.length-d.raw.length)+b.raw,o=o.substring(0,o.length-f.raw.length)+b.raw,n=p.substring(a.at(-1).raw.length).split(`
|
|
298
|
-
`);continue}}return{type:"blockquote",raw:r,tokens:a,text:o}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),i=!1;for(;e;){let s=!1,u="",c="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let h=
|
|
298
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:a,text:o}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),i=!1;for(;e;){let s=!1,u="",c="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let h=u2(t[2].split(`
|
|
299
299
|
`,1)[0],t[1].length),d=e.split(`
|
|
300
300
|
`,1)[0],f=!h.trim(),p=0;if(this.options.pedantic?(p=2,c=h.trimStart()):f?p=t[1].length+1:(p=h.search(this.rules.other.nonSpaceChar),p=p>4?1:p,c=h.slice(p),p+=t[1].length),f&&this.rules.other.blankLine.test(d)&&(u+=d+`
|
|
301
301
|
`,e=e.substring(d.length+1),s=!0),!s){let b=this.rules.other.nextBulletRegex(p),x=this.rules.other.hrRegex(p),w=this.rules.other.fencesBeginRegex(p),k=this.rules.other.headingBeginRegex(p),S=this.rules.other.htmlBeginRegex(p),v=this.rules.other.blockquoteBeginRegex(p);for(;e;){let _=e.split(`
|
|
302
302
|
`,1)[0],y;if(d=_,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),y=d):y=d.replace(this.rules.other.tabCharGlobal," "),w.test(d)||k.test(d)||S.test(d)||v.test(d)||b.test(d)||x.test(d))break;if(y.search(this.rules.other.nonSpaceChar)>=p||!d.trim())c+=`
|
|
303
303
|
`+y.slice(p);else{if(f||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||w.test(h)||k.test(h)||x.test(h))break;c+=`
|
|
304
304
|
`+d}f=!d.trim(),u+=_+`
|
|
305
|
-
`,e=e.substring(_.length+1),h=y.slice(p)}}o.loose||(i?o.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(i=!0)),o.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),o.raw+=u}let l=o.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let s of o.items){this.lexer.state.top=!1,s.tokens=this.lexer.blockTokens(s.text,[]);let u=s.tokens[0];if(s.task&&((u==null?void 0:u.type)==="text"||(u==null?void 0:u.type)==="paragraph")){s.text=s.text.replace(this.rules.other.listReplaceTask,""),u.raw=u.raw.replace(this.rules.other.listReplaceTask,""),u.text=u.text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}let c=this.rules.other.listTaskCheckbox.exec(s.raw);if(c){let h={type:"checkbox",raw:c[0]+" ",checked:c[0]!=="[ ]"};s.checked=h.checked,o.loose?s.tokens[0]&&["paragraph","text"].includes(s.tokens[0].type)&&"tokens"in s.tokens[0]&&s.tokens[0].tokens?(s.tokens[0].raw=h.raw+s.tokens[0].raw,s.tokens[0].text=h.raw+s.tokens[0].text,s.tokens[0].tokens.unshift(h)):s.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):s.tokens.unshift(h)}}else s.task&&(s.task=!1);if(!o.loose){let c=s.tokens.filter(d=>d.type==="space"),h=c.length>0&&c.some(d=>this.rules.other.anyLine.test(d.raw));o.loose=h}}if(o.loose)for(let s of o.items){s.loose=!0;for(let u of s.tokens)u.type==="text"&&(u.type="paragraph")}return o}}html(e){let t=this.rules.block.html.exec(e);if(t){let n=
|
|
306
|
-
`),href:r,title:o}}}table(e){var i;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=
|
|
305
|
+
`,e=e.substring(_.length+1),h=y.slice(p)}}o.loose||(i?o.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(i=!0)),o.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),o.raw+=u}let l=o.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let s of o.items){this.lexer.state.top=!1,s.tokens=this.lexer.blockTokens(s.text,[]);let u=s.tokens[0];if(s.task&&((u==null?void 0:u.type)==="text"||(u==null?void 0:u.type)==="paragraph")){s.text=s.text.replace(this.rules.other.listReplaceTask,""),u.raw=u.raw.replace(this.rules.other.listReplaceTask,""),u.text=u.text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}let c=this.rules.other.listTaskCheckbox.exec(s.raw);if(c){let h={type:"checkbox",raw:c[0]+" ",checked:c[0]!=="[ ]"};s.checked=h.checked,o.loose?s.tokens[0]&&["paragraph","text"].includes(s.tokens[0].type)&&"tokens"in s.tokens[0]&&s.tokens[0].tokens?(s.tokens[0].raw=h.raw+s.tokens[0].raw,s.tokens[0].text=h.raw+s.tokens[0].text,s.tokens[0].tokens.unshift(h)):s.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):s.tokens.unshift(h)}}else s.task&&(s.task=!1);if(!o.loose){let c=s.tokens.filter(d=>d.type==="space"),h=c.length>0&&c.some(d=>this.rules.other.anyLine.test(d.raw));o.loose=h}}if(o.loose)for(let s of o.items){s.loose=!0;for(let u of s.tokens)u.type==="text"&&(u.type="paragraph")}return o}}html(e){let t=this.rules.block.html.exec(e);if(t){let n=bs(t[0]);return{type:"html",block:!0,raw:n,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:n}}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:Ft(t[0],`
|
|
306
|
+
`),href:r,title:o}}}table(e){var i;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=ms(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(i=t[3])!=null&&i.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
307
307
|
`):[],a={type:"table",raw:Ft(t[0],`
|
|
308
|
-
`),header:[],align:[],rows:[]};if(n.length===r.length){for(let l of r)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<n.length;l++)a.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:a.align[l]});for(let l of o)a.rows.push(
|
|
308
|
+
`),header:[],align:[],rows:[]};if(n.length===r.length){for(let l of r)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<n.length;l++)a.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:a.align[l]});for(let l of o)a.rows.push(ms(l,a.header.length).map((s,u)=>({text:s,tokens:this.lexer.inline(s),header:!1,align:a.align[u]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:Ft(t[0],`
|
|
309
309
|
`),depth:t[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
|
310
|
-
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=Ft(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=
|
|
310
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=Ft(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=c2(t[2],"()");if(a===-2)return;if(a>-1){let i=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(r);a&&(r=a[1],o=a[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),xs(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[r.toLowerCase()];if(!o){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return xs(n,o,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,a,i,l=o,s=0,u=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+o);(r=u.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(i=[...a].length,r[3]||r[4]){l+=i;continue}else if((r[5]||r[6])&&o%3&&!((o+i)%3)){s+=i;continue}if(l-=i,l>0)continue;i=Math.min(i,i+l+s);let c=[...r[0]][0].length,h=e.slice(0,o+r.index+c+i);if(Math.min(o,i)%2){let f=h.slice(1,-1);return{type:"em",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}let d=h.slice(2,-2);return{type:"strong",raw:h,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),o=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&o&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,a,i,l=o,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+o);(r=s.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a||(i=[...a].length,i!==o))continue;if(r[3]||r[4]){l+=i;continue}if(l-=i,l>0)continue;i=Math.min(i,i+l);let u=[...r[0]][0].length,c=e.slice(0,o+r.index+u+i),h=c.slice(o,-o);return{type:"del",raw:c,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,o;if(t[2]==="@")r=t[0],o="mailto:"+r;else{let a;do a=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(a!==t[0]);r=t[0],t[1]==="www."?o="http://"+t[0]:o=t[0]}return{type:"link",raw:t[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},pt=class Aa{constructor(t){we(this,"tokens");we(this,"options");we(this,"state");we(this,"inlineQueue");we(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||sn,this.options.tokenizer=this.options.tokenizer||new to,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:qe,block:Ar.normal,inline:jn.normal};this.options.pedantic?(n.block=Ar.pedantic,n.inline=jn.pedantic):this.options.gfm&&(n.block=Ar.gfm,this.options.breaks?n.inline=jn.breaks:n.inline=jn.gfm),this.tokenizer.rules=n}static get rules(){return{block:Ar,inline:jn}}static lex(t,n){return new Aa(n).lex(t)}static lexInline(t,n){return new Aa(n).inlineTokens(t)}lex(t){t=t.replace(qe.carriageReturn,`
|
|
311
311
|
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var a,i,l;this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(qe.tabCharGlobal," ").replace(qe.spaceLine,""));let o=1/0;for(;t;){if(t.length<o)o=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let s;if((i=(a=this.options.extensions)==null?void 0:a.block)!=null&&i.some(c=>(s=c.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);let c=n.at(-1);s.raw.length===1&&c!==void 0?c.raw+=`
|
|
312
312
|
`:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
313
313
|
`)?"":`
|
|
@@ -339,13 +339,13 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
339
339
|
`}tablerow({text:e}){return`<tr>
|
|
340
340
|
${e}</tr>
|
|
341
341
|
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
342
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${St(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),o=
|
|
343
|
-
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+St(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},rn=new
|
|
342
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${St(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),o=gs(e);if(o===null)return r;e=o;let a='<a href="'+e+'"';return t&&(a+=' title="'+St(t)+'"'),a+=">"+r+"</a>",a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let o=gs(e);if(o===null)return St(n);e=o;let a=`<img src="${e}" alt="${St(n)}"`;return t&&(a+=` title="${St(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:St(e.text)}},yi=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},gt=class ya{constructor(t){we(this,"options");we(this,"renderer");we(this,"textRenderer");this.options=t||sn,this.options.renderer=this.options.renderer||new tr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new yi}static parse(t,n){return new ya(n).parse(t)}static parseInline(t,n){return new ya(n).parseInline(t)}parse(t){var r,o;this.renderer.parser=this;let n="";for(let a=0;a<t.length;a++){let i=t[a];if((o=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&o[i.type]){let s=i,u=this.options.extensions.renderers[s.type].call({parser:this},s);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){n+=u||"";continue}}let l=i;switch(l.type){case"space":{n+=this.renderer.space(l);break}case"hr":{n+=this.renderer.hr(l);break}case"heading":{n+=this.renderer.heading(l);break}case"code":{n+=this.renderer.code(l);break}case"table":{n+=this.renderer.table(l);break}case"blockquote":{n+=this.renderer.blockquote(l);break}case"list":{n+=this.renderer.list(l);break}case"checkbox":{n+=this.renderer.checkbox(l);break}case"html":{n+=this.renderer.html(l);break}case"def":{n+=this.renderer.def(l);break}case"paragraph":{n+=this.renderer.paragraph(l);break}case"text":{n+=this.renderer.text(l);break}default:{let s='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(t,n=this.renderer){var o,a;this.renderer.parser=this;let r="";for(let i=0;i<t.length;i++){let l=t[i];if((a=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&a[l.type]){let u=this.options.extensions.renderers[l.type].call({parser:this},l);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){r+=u||"";continue}}let s=l;switch(s.type){case"escape":{r+=n.text(s);break}case"html":{r+=n.html(s);break}case"link":{r+=n.link(s);break}case"image":{r+=n.image(s);break}case"checkbox":{r+=n.checkbox(s);break}case"strong":{r+=n.strong(s);break}case"em":{r+=n.em(s);break}case"codespan":{r+=n.codespan(s);break}case"br":{r+=n.br(s);break}case"del":{r+=n.del(s);break}case"text":{r+=n.text(s);break}default:{let u='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}},Er,Un=(Er=class{constructor(e){we(this,"options");we(this,"block");this.options=e||sn}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?pt.lex:pt.lexInline}provideParser(e=this.block){return e?gt.parse:gt.parseInline}},we(Er,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),we(Er,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Er),h2=class{constructor(...e){we(this,"defaults",vi());we(this,"options",this.setOptions);we(this,"parse",this.parseMarkdown(!0));we(this,"parseInline",this.parseMarkdown(!1));we(this,"Parser",gt);we(this,"Renderer",tr);we(this,"TextRenderer",yi);we(this,"Lexer",pt);we(this,"Tokenizer",to);we(this,"Hooks",Un);this.use(...e)}walkTokens(e,t){var r,o;let n=[];for(let a of e)switch(n=n.concat(t.call(this,a)),a.type){case"table":{let i=a;for(let l of i.header)n=n.concat(this.walkTokens(l.tokens,t));for(let l of i.rows)for(let s of l)n=n.concat(this.walkTokens(s.tokens,t));break}case"list":{let i=a;n=n.concat(this.walkTokens(i.items,t));break}default:{let i=a;(o=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&o[i.type]?this.defaults.extensions.childTokens[i.type].forEach(l=>{let s=i[l].flat(1/0);n=n.concat(this.walkTokens(s,t))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let a=t.renderers[o.name];a?t.renderers[o.name]=function(...i){let l=o.renderer.apply(this,i);return l===!1&&(l=a.apply(this,i)),l}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=t[o.level];a?a.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),r.extensions=t),n.renderer){let o=this.defaults.renderer||new tr(this.defaults);for(let a in n.renderer){if(!(a in o))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let i=a,l=n.renderer[i],s=o[i];o[i]=(...u)=>{let c=l.apply(o,u);return c===!1&&(c=s.apply(o,u)),c||""}}r.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new to(this.defaults);for(let a in n.tokenizer){if(!(a in o))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let i=a,l=n.tokenizer[i],s=o[i];o[i]=(...u)=>{let c=l.apply(o,u);return c===!1&&(c=s.apply(o,u)),c}}r.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new Un;for(let a in n.hooks){if(!(a in o))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let i=a,l=n.hooks[i],s=o[i];Un.passThroughHooks.has(a)?o[i]=u=>{if(this.defaults.async&&Un.passThroughHooksRespectAsync.has(a))return(async()=>{let h=await l.call(o,u);return s.call(o,h)})();let c=l.call(o,u);return s.call(o,c)}:o[i]=(...u)=>{if(this.defaults.async)return(async()=>{let h=await l.apply(o,u);return h===!1&&(h=await s.apply(o,u)),h})();let c=l.apply(o,u);return c===!1&&(c=s.apply(o,u)),c}}r.hooks=o}if(n.walkTokens){let o=this.defaults.walkTokens,a=n.walkTokens;r.walkTokens=function(i){let l=[];return l.push(a.call(this,i)),o&&(l=l.concat(o.call(this,i))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return pt.lex(e,t??this.defaults)}parser(e,t){return gt.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},o={...this.defaults,...r},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&r.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let i=o.hooks?await o.hooks.preprocess(t):t,l=await(o.hooks?await o.hooks.provideLexer(e):e?pt.lex:pt.lexInline)(i,o),s=o.hooks?await o.hooks.processAllTokens(l):l;o.walkTokens&&await Promise.all(this.walkTokens(s,o.walkTokens));let u=await(o.hooks?await o.hooks.provideParser(e):e?gt.parse:gt.parseInline)(s,o);return o.hooks?await o.hooks.postprocess(u):u})().catch(a);try{o.hooks&&(t=o.hooks.preprocess(t));let i=(o.hooks?o.hooks.provideLexer(e):e?pt.lex:pt.lexInline)(t,o);o.hooks&&(i=o.hooks.processAllTokens(i)),o.walkTokens&&this.walkTokens(i,o.walkTokens);let l=(o.hooks?o.hooks.provideParser(e):e?gt.parse:gt.parseInline)(i,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(i){return a(i)}}}onError(e,t){return n=>{if(n.message+=`
|
|
343
|
+
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+St(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},rn=new h2;function ke(e,t){return rn.parse(e,t)}ke.options=ke.setOptions=function(e){return rn.setOptions(e),ke.defaults=rn.defaults,yu(ke.defaults),ke};ke.getDefaults=vi;ke.defaults=sn;ke.use=function(...e){return rn.use(...e),ke.defaults=rn.defaults,yu(ke.defaults),ke};ke.walkTokens=function(e,t){return rn.walkTokens(e,t)};ke.parseInline=rn.parseInline;ke.Parser=gt;ke.parser=gt.parse;ke.Renderer=tr;ke.TextRenderer=yi;ke.Lexer=pt;ke.lexer=pt.lex;ke.Tokenizer=to;ke.Hooks=Un;ke.parse=ke;ke.options;ke.setOptions;ke.use;ke.walkTokens;ke.parseInline;gt.parse;pt.lex;function f2(e,t){return"<pre><code>"+(r=>r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"))(e??"")+"</code></pre>"}const vs=["a","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","ol","p","pre","section","span","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],Et=["style","title"];function p2(e){return C$(e,{allowedTags:vs,allowedAttributes:{...vs.reduce((t,n)=>(t[n]=[...Et],t),{}),code:["class",...Et],img:["src","srcset","alt","width","height",...Et],table:["width",...Et],td:["align","width",...Et],th:["align","width",...Et],a:["href","target",...Et],ol:["start",...Et],ul:["start",...Et]}})}class g2 extends tr{table({header:t,rows:n}){const r=this.tablerow({text:t.map(a=>this.tablecell(a)).join("")}),o=n.map(a=>this.tablerow({text:a.map(i=>this.tablecell(i)).join("")})).join("");return`<table width="100%">
|
|
344
344
|
<thead>
|
|
345
345
|
${r}</thead>
|
|
346
346
|
<tbody>
|
|
347
347
|
${o}</tbody>
|
|
348
|
-
</table>`}link({href:t,title:n,tokens:r}){const o=this.parser.parseInline(r),a=n?` title="${n}"`:"";return`<a href="${t}"${a} target="_blank" rel="noopener noreferrer">${o}</a>`}code({text:t,lang:n}){return h2(t)}}function g2(e){return e.replace(/^---[\s\S]*?---\s*\n?/,"")}function m2(e){return e.replace(/\^([^^]+)\^/g,"<sup>$1</sup>").replace(new RegExp("(?<!~)~(?!~)([^~]+)(?<!~)~(?!~)","g"),"<sub>$1</sub>")}function b2(e){const t=g2(e),n=m2(t),r=ke.parse(n,{async:!1,breaks:!0,gfm:!0,pedantic:!1,silent:!1,renderer:new p2});if(typeof r!="string")throw new Error("marked.parse did not return a string");return f2(r)}function x2({markdown:e,...t}){const n=U.useMemo(()=>b2(e),[e]);return m.jsx("div",{...t,dangerouslySetInnerHTML:{__html:n}})}const v2=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),k2=$().regex(/^rgba?\([^\)]+\)$/i),w2=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),vs=H([v2,k2,w2,le("transparent")]).nullable().optional(),S2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),$2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),_2=A({style:A({color:vs,backgroundColor:vs,fontSize:g().gte(0).optional().nullable(),fontWeight:T(["bold","normal",...ir]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:S2,margin:$2}).optional().nullable(),props:A({markdown:$().optional().nullable(),html:$().optional().nullable()}).optional().nullable(),responsive:Ye}),C2={markdown:""};function A2(e){return e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0}function y2(e){return e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0}function I2({style:e,props:t}){const n={color:z(e==null?void 0:e.color,"blockText"),background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),fontSize:(e==null?void 0:e.fontSize)??void 0,fontWeight:(e==null?void 0:e.fontWeight)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:A2(e==null?void 0:e.padding),margin:y2(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word"},r=(t==null?void 0:t.markdown)??C2.markdown,o=t==null?void 0:t.html,a=m.jsx("style",{children:".mdx-block ul,.mdx-block ol{margin-block-start:0;margin-block-end:0;padding-inline-start:revert}"});return o?m.jsxs("div",{className:"mdx-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:n,children:[a,m.jsx("div",{dangerouslySetInnerHTML:{__html:fo(o)}})]}):m.jsxs("div",{className:"mdx-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:n,children:[a,m.jsx(x2,{markdown:r,style:n})]})}const R2=e=>{if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e},T2=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),E2=$().regex(/^rgba?\([^\)]+\)$/i),N2=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),M2=le("transparent"),ks=H([T2,E2,N2,M2]).nullable().optional(),P2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),O2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),L2=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,z2=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,j2=A({style:A({color:ks,backgroundColor:ks,fontSize:g().gte(0).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:T(["bold","normal",...ir]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:P2,margin:O2}).optional().nullable(),props:A({text:$().optional().nullable()}).optional().nullable(),responsive:Ye}),B2={text:""};function D2({style:e,props:t}){const n={color:z(e==null?void 0:e.color,"blockText"),background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:R2(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:L2(e==null?void 0:e.padding)??0,margin:z2(e==null?void 0:e.margin)??0,wordBreak:"break-word",overflowWrap:"break-word"},r=Yc(fo((t==null?void 0:t.text)??B2.text));return m.jsxs("div",{className:"quill-block ql-editor",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:{...n,maxWidth:"100%",boxSizing:"border-box"},children:[m.jsx("style",{children:".quill-block ul,.quill-block ol{margin:0.5em 0;padding-left:2.5em}.quill-block li:not(.ql-direction-rtl)::before{margin-left:-2.5em}.quill-block blockquote{border-left:4px solid var(--pp-text-muted,#9ca3af);margin:0;padding:0.25em 0 0.25em 12px;font-style:italic;color:inherit}.quill-block *:not(blockquote)+blockquote{margin-top:0.75em}.quill-block blockquote+*:not(blockquote){margin-top:0.75em}.quill-block blockquote p{margin:0}.quill-block pre,.quill-block .ql-code-block-container,.quill-block .ql-code-block{background:var(--pp-surface-alt,#f3f4f6);border-radius:4px;padding:8px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:0.9em;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%;box-sizing:border-box}.quill-block img{max-width:100%;height:auto;display:block}"}),m.jsx("div",{dangerouslySetInnerHTML:{__html:r}})]})}const ws=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),F2=A({responsive:Ye,style:A({padding:ws,margin:ws,textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({demoId:$().default(""),iframeSrc:$().default(""),width:H([g(),$()]).optional().nullable(),height:H([g(),$()]).optional().nullable(),borderRadius:g().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:g().optional().nullable()}).optional().nullable()}),Ss=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,H2=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,Zo=1440,qo=830,G2=({style:e,props:t})=>{const{demoId:n,iframeSrc:r,width:o,borderRadius:a,borderColor:i,borderWidth:l}=t??{},s={padding:Ss(e==null?void 0:e.padding),margin:Ss(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"};if(!n||!r)return m.jsx(m.Fragment,{});const u=(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center";return m.jsx("div",{className:"demo-picker-block",style:{...s,display:"flex",justifyContent:u},children:m.jsx("div",{id:"demoAspect",style:{width:`var(--ahd-demo-width,${H2(o,"100%")})`,aspectRatio:`${Zo} / ${qo}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${a??10}px`,border:i?`${l??1}px solid ${i}`:"none"},children:m.jsx("div",{id:"demoScaler",style:{width:Zo,height:qo,transformOrigin:"top left"},children:m.jsx("iframe",{src:r,style:{width:Zo,height:qo,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},r)})})})},Ou=Cm(()=>A({id:$().optional(),name:$().optional(),href:$().optional(),pageId:$().optional().nullable(),menuImage:$().optional(),children:oe(Ou).optional()})),Vo=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),W2=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),U2=A({menuId:$().default(""),useCustomMenu:L().default(!1),navRole:T(["header","footer"]).optional().nullable(),stickyNav:L().default(!1),stickyNavTablet:L().optional().nullable(),stickyNavMobile:L().optional().nullable(),position:T(["left","center","right"]).default("left"),orientation:T(["horizontal","vertical","columns"]).default("horizontal"),menuItems:oe(Ou).optional().nullable(),startChildrenIds:oe($()).optional().nullable(),endChildrenIds:oe($()).optional().nullable(),layout:T(["menu-only","logo-menu","menu-cta","logo-menu-cta"]).default("menu-only"),backgroundColor:$().default("transparent"),textColor:$().default("#000000"),burgerDropdownBackgroundColor:$().optional().nullable(),submenuBackgroundColor:$().optional().nullable(),submenuRadius:g().optional().nullable(),submenuIconSize:g().optional().nullable(),submenuTextColor:$().optional().nullable(),submenuFontSize:$().optional().nullable(),submenuFontWeight:$().optional().nullable(),submenuPadding:Vo,submenuItemPadding:Vo,submenuMinWidth:g().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),padding:$().default("8px 16px"),blockPadding:Vo,blockMargin:W2,gap:$().default("16px"),showIcons:L().default(!0),iconSize:$().default("24px")}),Z2=A({style:A({}).passthrough().optional().nullable(),responsive:Ye,props:U2.optional().nullable()}),q2={left:"flex-start",center:"center",right:"flex-end"},Lu=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,V2=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Y2=e=>e?e.left+e.right:0,K2=e=>!!e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")),Ii=e=>K2(e)?{backgroundImage:e,backgroundColor:"transparent"}:{backgroundColor:e??void 0},zu=(e,t,n=!1,r,o)=>{const a=Y2(o);return{...Ii(e),width:`calc(100% - ${a}px)`,display:"flex",alignItems:"center",gap:"16px",padding:Lu(r),margin:V2(o),justifyContent:n?"space-between":q2[t]||"flex-start"}},Yo=(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}),J2=(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"}),X2={position:"relative"},ju=(e,t,n,r,o,a,i,l)=>({display:"flex",alignItems:"center",gap:e&&t?"8px":"0",color:(l==null?void 0:l.textColor)??n,fontSize:r,fontWeight:(l==null?void 0:l.fontWeight)??o,fontFamily:i||void 0,padding:(l==null?void 0:l.padding)??a,textDecoration:"none",whiteSpace:"nowrap",...Ii(l==null?void 0:l.backgroundColor),...l!=null&&l.borderColor?{borderStyle:"solid",borderColor:l.borderColor,borderWidth:l.borderWidth??1}:void 0,borderRadius:(l==null?void 0:l.borderRadius)!=null?`${l.borderRadius}px`:void 0}),Bu=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),Q2=e=>({paddingLeft:e===0?"0":"12px"}),e_=(e,t,n,r,o)=>({...Ii(e),borderRadius:`${t}px`,border:n?`1px solid ${n}`:void 0,boxShadow:"0 12px 32px color-mix(in srgb, currentColor 18%, transparent)",padding:Lu(r)??"8px",minWidth:`${o??260}px`}),t_=e=>({display:"inline-flex",alignItems:"center",marginLeft:"6px",width:`${e}px`,height:`${e}px`,flexShrink:0}),n_="M6 9l6 6 6-6",Du={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},r_=e=>({color:e});function o_(e,t){const n=`.ahd-menu-${e}`,r=(t==null?void 0:t.dropdownBackground)||"#fff",o=t!=null&&t.hasSubmenuItemPadding?"padding-left:32px!important":"padding:10px 16px 10px 32px!important",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}`,`${n} .ahd-menu-submenu{position:absolute;top:100%;left:0;z-index:120;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease,visibility .15s;pointer-events:none}`,`${n} .ahd-menu-list>li:hover>.ahd-menu-submenu,${n} .ahd-menu-list>li:focus-within>.ahd-menu-submenu{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}`,`${n} .ahd-menu-submenu .ahd-menu-submenu{top:0;left:100%;transform:translateX(4px)}`,`${n} .ahd-menu-submenu li:hover>.ahd-menu-submenu,${n} .ahd-menu-submenu li:focus-within>.ahd-menu-submenu{transform:translateX(0)}`,`${n} .ahd-menu-sublist{display:block!important;width:100%}`,`${n} .ahd-menu-sublist>li>a{display:flex;width:100%;white-space:normal!important;border-radius:6px}`,`${n} .ahd-menu-sublist>li>a:hover{background:color-mix(in srgb,currentColor 10%,transparent)}`,`${n} .ahd-menu-sub-toggle{position:absolute!important;opacity:0!important;width:0!important;height:0!important;margin:0!important;pointer-events:none!important}`,`${n} .ahd-menu-sub-caret{display:none}`,`${n} .ahd-menu-caret{transition:transform .15s ease}`,`${n} li:hover>.ahd-menu-item-row .ahd-menu-caret,${n} li:focus-within>.ahd-menu-item-row .ahd-menu-caret{transform:rotate(180deg)}`].join(""),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:${r};box-shadow:0 6px 16px rgba(0,0,0,.12);width:100%!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list{flex-direction:column!important;width:100%!important;gap:0!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li{width:100%;border-top:1px solid rgba(0,0,0,.08)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li>a{padding:12px 16px!important}`,`${n} .ahd-menu-submenu{position:static!important;opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important;display:none;transition:none}`,`${n} .ahd-menu-sub-toggle:checked~.ahd-menu-submenu{display:block}`,`${n} .ahd-menu-submenu>*{box-shadow:none!important;border:0!important;border-radius:0!important;min-width:0!important;background:transparent!important;padding:0!important}`,`${n} .ahd-menu-submenu{box-shadow:inset 2px 0 0 color-mix(in srgb,currentColor 25%,transparent)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li>a,${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li>.ahd-menu-item-row>.ahd-menu-item-label>a{${o}}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist .ahd-menu-sublist>li>a{padding-left:48px!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li+li{border-top:1px solid color-mix(in srgb,currentColor 12%,transparent)}`,`${n} .ahd-menu-sublist>li{width:100%}`,`${n} .ahd-menu-list>li>.ahd-menu-item-label{display:flex!important;flex:1 1 auto;min-width:0}`,`${n} .ahd-menu-item-row{display:flex;align-items:center;width:100%}`,`${n} .ahd-menu-sub-caret{display:flex!important;align-items:center;justify-content:center;width:44px;align-self:stretch;cursor:pointer;color:currentColor;flex:0 0 auto}`,`${n} .ahd-menu-sub-caret-icon{margin-left:0!important;transition:transform .15s ease}`,`${n} .ahd-menu-sub-toggle:checked~.ahd-menu-item-row .ahd-menu-sub-caret-icon{transform:rotate(180deg)}`,`${n} .ahd-menu-caret{display:none!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(1){transform:translateY(7px) rotate(45deg)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(2){opacity:0}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}`].join(""),l=`(max-width:${Ue}px)`;return a+`@media ${l}{${i}}@container ahd-page ${l}{${i}}`}const a_=(e,t)=>{const n=!!t.stickyNav,r=t.stickyNavTablet??n,o=t.stickyNavMobile??r,a=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 i=n?a(!0):"";if(r!==n){const l=`(max-width:${Ue}px)`;i+=`@media ${l}{${a(r)}}`,i+=`@container ahd-page ${l}{${a(r)}}`}if(o!==r){const l=`(max-width:${Ve}px)`;i+=`@media ${l}{${a(o)}}`,i+=`@container ahd-page ${l}{${a(o)}}`}return i},i_=({p:e,menuItems:t,menuKey:n,textColor:r,submenuTextColor:o,submenuFontSize:a,backgroundColor:i,fontFamily:l,start:s,end:u})=>{const{fontSize:c="14px",fontWeight:h="400",padding:d="8px 16px",gap:f="16px",showIcons:p=!0,iconSize:b="24px",blockPadding:x,blockMargin:w,borderColor:k,borderWidth:S,borderRadius:v,submenuItemPadding:_}=e||{},y=o||(e==null?void 0:e.submenuTextColor)||r,C=a||(e==null?void 0:e.submenuFontSize)||c,I=(e==null?void 0:e.submenuFontWeight)||h,R=_?`${_.top}px ${_.right}px ${_.bottom}px ${_.left}px`:d,E=(O,M,P=!1)=>m.jsx("li",{style:{listStyle:"none"},children:m.jsxs("a",{href:O.href||"#",style:ju(p,!!O.menuImage,P?y:r,P?C:c,P?I:h,P?R:d,l,O),children:[p&&O.menuImage&&m.jsx("img",{src:O.menuImage,alt:"","aria-hidden":"true",style:Bu(b)}),O.name||O.label||""]})},O.id||M);return m.jsxs("nav",{className:`ahd-menu-cols ahd-menu-cols-${n}`,"data-block":"menu","data-layout":"columns","aria-label":"Footer navigation",style:{...zu(i,"left",!0,x,w),alignItems:"flex-start",flexWrap:"wrap",gap:"32px",boxSizing:"border-box",...k?{borderStyle:"solid",borderColor:k,borderWidth:S?`${S.top??1}px ${S.right??1}px ${S.bottom??1}px ${S.left??1}px`:"1px"}:{},...v!=null?{borderRadius:typeof v=="number"?`${v}px`:`${(v==null?void 0:v.topLeft)??0}px ${(v==null?void 0:v.topRight)??0}px ${(v==null?void 0:v.bottomRight)??0}px ${(v==null?void 0:v.bottomLeft)??0}px`}:{}},children:[s&&m.jsx("div",{className:"ahd-menu-cols-start",style:{flex:"1 1 240px",minWidth:0},children:s}),m.jsx("div",{className:"ahd-menu-cols-grid",style:{flex:"2 1 420px",minWidth:0,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",gap:f},children:t.map((O,M)=>m.jsxs("ul",{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:f},children:[E(O,M),(Array.isArray(O.children)?O.children:[]).map((P,B)=>E(P,B,!0))]},O.id||M))}),u&&m.jsx("div",{className:"ahd-menu-cols-end",style:{flex:"0 0 auto",minWidth:0},children:u})]})},l_=e=>{if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Ia=e=>t=>{t.stopPropagation(),t.preventDefault();const n=typeof document<"u"?document.getElementById(e):null;n&&(n.checked=!n.checked)},$s=({size:e,className:t})=>m.jsx("span",{className:t,style:t_(e),"aria-hidden":"true",children:m.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:n_})})}),Ra=(e,t,n=0)=>{if(!e||e.length===0)return null;const{textColor:r,fontSize:o,fontWeight:a,padding:i,orientation:l,gap:s,showIcons:u,iconSize:c,toggleId:h,listId:d,fontFamily:f,menuKey:p,submenuBackground:b,submenuRadius:x,submenuBorderColor:w,submenuIconSize:k,submenuPadding:S,submenuItemPadding:v,submenuMinWidth:_,submenuTextColor:y,submenuFontSize:C,submenuFontWeight:I}=t,R=n>0&&v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:i,E=n>0&&y?y:r,O=n>0&&C?C:o,M=n>0&&I?I:a;return m.jsx("ul",{id:n===0?d:void 0,className:n===0?"ahd-menu-list":"ahd-menu-sublist",style:J2(l,n,s),children:e.map((P,B)=>{const D=Array.isArray(P.children)?P.children:[],F=D.length>0,G=`ahd-submenu-${p}-${n}-${P.id||B}`,W=P.name||P.label||"",X=m.jsxs("a",{href:P.href||"#",style:ju(u,!!P.menuImage,E,O,M,R,f,P),children:[u&&P.menuImage&&m.jsx("img",{src:P.menuImage,alt:"","aria-hidden":"true",style:Bu(c)}),W,F&&m.jsx($s,{size:k,className:"ahd-menu-caret"})]}),Q=F?m.jsxs("span",{className:"ahd-menu-item-row",children:[m.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:q=>q.stopPropagation(),children:X}),m.jsx("label",{htmlFor:G,className:"ahd-menu-sub-caret","aria-label":`Toggle ${W} submenu`,onClick:Ia(G),children:m.jsx($s,{size:k,className:"ahd-menu-sub-caret-icon"})})]}):m.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:q=>q.stopPropagation(),children:X});return m.jsxs("li",{style:X2,children:[F&&m.jsx("input",{type:"checkbox",id:G,className:"ahd-menu-sub-toggle","aria-hidden":"true",tabIndex:-1,style:Du,onClick:q=>q.stopPropagation()}),Q,F&&m.jsx("div",{className:"ahd-menu-submenu",style:Q2(n),children:m.jsx("div",{style:e_(b,x,w,S,_),children:Ra(D,{...t,orientation:"vertical"},n+1)})})]},P.id||B)})})},s_=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:r=!1,stickyNavTablet:o,stickyNavMobile:a,menuItems:i,startChildrenIds:l,endChildrenIds:s,layout:u="menu-only",position:c="left",orientation:h="horizontal",backgroundColor:d="transparent",textColor:f="#000000",burgerDropdownBackgroundColor:p,fontSize:b="14px",fontFamily:x,fontWeight:w="400",padding:k="8px 16px",blockPadding:S,blockMargin:v,gap:_="16px",showIcons:y=!0,iconSize:C="24px",borderColor:I,borderWidth:R,borderRadius:E,submenuBackgroundColor:O,submenuRadius:M,submenuIconSize:P,submenuPadding:B,submenuItemPadding:D,submenuMinWidth:F,submenuTextColor:G,submenuFontSize:W,submenuFontWeight:X,bare:Q}=e??{},q=hi(),te=z(d,"bgAdaptive")??d,Se=z(f,"menuText")??f,Ae=q(I),ge=q(p),Le=q(O),J=q(G),V=z(null,"menuSurface");if(!(Array.isArray(i)&&i.length>0)||!n&&!t)return m.jsx(m.Fragment,{});const j=u==="logo-menu"||u==="logo-menu-cta",Y=u==="menu-cta"||u==="logo-menu-cta",fe=j||Y,ve=c==="right"?"end":c==="center"?"center":"start",me=U.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),pe=t||me,ye=(Q==null?void 0:Q.toggleId)??`ahd-menu-toggle-${pe}`,ae=(Q==null?void 0:Q.listId)??`ahd-menu-list-${pe}`,Pe=l_(x),De=Q?Q.toggleId.replace(/^ahd-menu-toggle-/,""):pe,be={textColor:Se,fontSize:b,fontWeight:w,padding:k,orientation:h,gap:_,showIcons:y,iconSize:C,toggleId:ye,listId:ae,fontFamily:Pe,menuKey:De,submenuBackground:Le||ge||(d!=="transparent"?te:V),submenuRadius:M??8,submenuBorderColor:Ae??null,submenuIconSize:P??14,submenuPadding:B??null,submenuItemPadding:D??null,submenuMinWidth:F??null,submenuTextColor:J||null,submenuFontSize:W||null,submenuFontWeight:X||null};if(h==="columns"&&!Q){const ee=je=>je!=null&&je.length?je.map(ze=>m.jsx(Me,{id:ze},ze)):null;return m.jsx(i_,{p:{...e,borderColor:Ae},menuItems:i,menuKey:pe,textColor:Se,submenuTextColor:J||null,submenuFontSize:W||null,backgroundColor:te,fontFamily:Pe,start:j?ee(l):null,end:Y?ee(s):null})}if(Q)return m.jsx(m.Fragment,{children:Ra(i,be)});const Fe=a_(pe,{stickyNav:r,stickyNavTablet:o,stickyNavMobile:a}),He=o_(pe,{dropdownBackground:ge??(d!=="transparent"?te:null),hasSubmenuItemPadding:!!D});return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:He}},pe),Fe&&m.jsx("style",{dangerouslySetInnerHTML:{__html:Fe}}),m.jsxs("nav",{className:`ahd-menu ahd-menu-${pe} ahd-menu-sticky-${pe}`,"data-block":"menu","data-layout":u,...ue(d,void 0,"bgAdaptive"),style:{...zu(te,c,fe,S,v),...Ae?{borderStyle:"solid",borderColor:Ae,borderWidth:R?`${R.top??1}px ${R.right??1}px ${R.bottom??1}px ${R.left??1}px`:"1px"}:{},...E!=null?{borderRadius:typeof E=="number"?`${E}px`:`${(E==null?void 0:E.topLeft)??0}px ${(E==null?void 0:E.topRight)??0}px ${(E==null?void 0:E.bottomRight)??0}px ${(E==null?void 0:E.bottomLeft)??0}px`}:{}},"aria-label":"Main navigation",children:[m.jsx("input",{type:"checkbox",id:ye,className:"ahd-menu-toggle",role:"switch","aria-label":"Toggle main menu","aria-controls":ae,style:Du,onClick:ee=>ee.stopPropagation()}),m.jsx("label",{htmlFor:ye,className:"ahd-menu-backdrop","aria-hidden":"true",onClick:Ia(ye)}),j&&m.jsx("div",{className:"ahd-menu-start",style:Yo("start"),children:(l??[]).map(ee=>m.jsx(Me,{id:ee},ee))}),m.jsx("div",{className:"ahd-menu-center",style:Yo(ve,fe),children:Ra(i,be)}),Y&&m.jsx("div",{className:"ahd-menu-end",style:Yo("end"),children:(s??[]).map(ee=>m.jsx(Me,{id:ee},ee))}),m.jsxs("label",{htmlFor:ye,className:"ahd-menu-burger","aria-hidden":"true",style:r_(Se),onClick:Ia(ye),children:[m.jsx("span",{}),m.jsx("span",{}),m.jsx("span",{})]})]})]})},c_=A({id:$().optional(),label:$().optional(),href:$().optional(),textColor:$().optional().nullable()}),u_=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),d_=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),h_=A({items:oe(c_).optional().nullable(),separator:T(["slash","chevron","dot","pipe","custom"]).default("chevron"),customSeparator:$().optional().nullable(),showHomeIcon:L().default(!1),homeHref:$().default("/"),collapseOnMobile:L().default(!0),currentItemLinked:L().default(!1),textColor:$().default("#595959"),currentItemColor:$().optional().nullable(),separatorColor:$().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),gap:$().default("8px"),blockPadding:u_,blockMargin:d_}),f_=A({style:A({}).passthrough().optional().nullable(),responsive:Ye,props:h_.optional().nullable()}),Ko={slash:"/",chevron:"›",dot:"•",pipe:"|"};function p_(e,t){return e==="custom"?t||"›":e&&Ko[e]?Ko[e]:Ko.chevron}function g_(e){const t=`.ahd-breadcrumb-${e}`,n=[`${t} .ahd-breadcrumb-collapsible{display:none!important}`,`${t} .ahd-breadcrumb-ellipsis{display:flex!important}`].join(""),r=`(max-width:${Ve}px)`;return`@media ${r}{${n}}@container ahd-page ${r}{${n}}`}const m_=e=>{if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Fu=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,b_=Fu,x_="M12 3.1 3 10.4V21h6v-6h6v6h6V10.4L12 3.1zm0 2.56 7 5.6V19h-2v-6H9v6H5v-7.74l7-5.6z",v_=({size:e,color:t})=>m.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",style:{display:"block",flex:"0 0 auto"},children:m.jsx("path",{d:x_,fill:t})}),k_=({color:e,fontSize:t})=>m.jsx("span",{"aria-hidden":"true",style:{color:e,fontSize:t},children:"…"}),w_=({props:e,renderLabel:t})=>{const{items:n,separator:r="chevron",customSeparator:o,showHomeIcon:a=!1,homeHref:i="/",collapseOnMobile:l=!0,currentItemLinked:s=!1,textColor:u="#595959",currentItemColor:c,separatorColor:h,fontSize:d="14px",fontFamily:f,fontWeight:p="400",gap:b="8px",blockPadding:x,blockMargin:w}=e??{},k=hi(),S=z(u,"breadcrumbText"),v=k(c),_=k(h);if(!(Array.isArray(n)&&n.length>0))return m.jsx(m.Fragment,{});const C=m_(f),I=p_(r,o),R=n.length-1,E=U.useMemo(()=>`b${Math.random().toString(36).slice(2,9)}`,[]),O=l?g_(E):"",M=(P,B,D)=>{const F=(D?v:null)||k(P.textColor)||S,G=!D||s,W={color:F,textDecoration:"none",whiteSpace:"nowrap"};return t?t({item:P,index:B,isLast:D,style:W}):G?m.jsx("a",{href:P.href||"#",style:W,"aria-current":D?"page":void 0,children:P.label||""}):m.jsx("span",{style:W,"aria-current":"page",children:P.label||""})};return m.jsxs(m.Fragment,{children:[O&&m.jsx("style",{dangerouslySetInnerHTML:{__html:O}}),m.jsx("nav",{className:l?`ahd-breadcrumb ahd-breadcrumb-${E}`:"ahd-breadcrumb","aria-label":"Breadcrumb",style:{padding:Fu(x),margin:b_(w)},children:m.jsxs("ol",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",listStyle:"none",margin:0,padding:0,gap:b,fontSize:d,fontFamily:C,fontWeight:p},children:[a&&m.jsxs("li",{className:"ahd-breadcrumb-home",style:{display:"flex",alignItems:"center",gap:b},children:[m.jsx("a",{href:i||"/",style:{display:"flex",color:S},children:m.jsx(v_,{size:parseInt(d,10)||14,color:S})}),m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]}),n.map((P,B)=>{const D=B===R,F=l&&B!==0&&!D;return m.jsxs("li",{className:F?"ahd-breadcrumb-collapsible":void 0,style:{display:"flex",alignItems:"center",gap:b},children:[M(P,B,D),!D&&m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]},P.id||B)}),l&&n.length>2&&m.jsxs("li",{className:"ahd-breadcrumb-ellipsis",style:{display:"none",alignItems:"center",gap:b},children:[m.jsx(k_,{color:S,fontSize:d}),m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]})]})})]})},S_=A({style:A({}).passthrough().optional().nullable(),props:A({formId:$().default(""),formName:$().default(""),iframeSrc:$().default(""),width:$().default("100%"),height:$().default("500px"),heightTablet:$().optional(),heightMobile:$().optional(),autoHeight:L().default(!1),alignment:T(["left","center","right"]).default("left")}).optional().nullable()}),$_=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)}`},__=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},C_=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},A_=({props:e,style:t})=>{var S,v;const{formId:n,iframeSrc:r,width:o,height:a,heightTablet:i,heightMobile:l,autoHeight:s=!1,alignment:u="left",formName:c}=e??{};if(!n||!r)return m.jsx(m.Fragment,{});const h=u==="center"?"center":u==="right"?"flex-end":"flex-start",d=t??{},f=(((S=d.margin)==null?void 0:S.left)||0)+(((v=d.margin)==null?void 0:v.right)||0),p=iv(d.borderRadius),b={display:"flex",justifyContent:h,width:`calc(100% - ${f}px)`,padding:__(d.padding),margin:C_(d.margin),backgroundColor:z(d.backgroundColor,"bgAdaptive")||void 0,borderRadius:p},x=$_(`${n}|${r??""}`),w=!s&&(i||l)?`
|
|
348
|
+
</table>`}link({href:t,title:n,tokens:r}){const o=this.parser.parseInline(r),a=n?` title="${n}"`:"";return`<a href="${t}"${a} target="_blank" rel="noopener noreferrer">${o}</a>`}code({text:t,lang:n}){return f2(t)}}function m2(e){return e.replace(/^---[\s\S]*?---\s*\n?/,"")}function b2(e){return e.replace(/\^([^^]+)\^/g,"<sup>$1</sup>").replace(new RegExp("(?<!~)~(?!~)([^~]+)(?<!~)~(?!~)","g"),"<sub>$1</sub>")}function x2(e){const t=m2(e),n=b2(t),r=ke.parse(n,{async:!1,breaks:!0,gfm:!0,pedantic:!1,silent:!1,renderer:new g2});if(typeof r!="string")throw new Error("marked.parse did not return a string");return p2(r)}function v2({markdown:e,...t}){const n=U.useMemo(()=>x2(e),[e]);return m.jsx("div",{...t,dangerouslySetInnerHTML:{__html:n}})}const k2=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),w2=$().regex(/^rgba?\([^\)]+\)$/i),S2=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),ks=H([k2,w2,S2,le("transparent")]).nullable().optional(),$2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),_2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),C2=A({style:A({color:ks,backgroundColor:ks,fontSize:g().gte(0).optional().nullable(),fontWeight:T(["bold","normal",...ir]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:$2,margin:_2}).optional().nullable(),props:A({markdown:$().optional().nullable(),html:$().optional().nullable()}).optional().nullable(),responsive:Ye}),A2={markdown:""};function y2(e){return e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0}function I2(e){return e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0}function R2({style:e,props:t}){const n={color:z(e==null?void 0:e.color,"blockText"),background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),fontSize:(e==null?void 0:e.fontSize)??void 0,fontWeight:(e==null?void 0:e.fontWeight)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:y2(e==null?void 0:e.padding),margin:I2(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word"},r=(t==null?void 0:t.markdown)??A2.markdown,o=t==null?void 0:t.html,a=m.jsx("style",{children:".mdx-block ul,.mdx-block ol{margin-block-start:0;margin-block-end:0;padding-inline-start:revert}"});return o?m.jsxs("div",{className:"mdx-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:n,children:[a,m.jsx("div",{dangerouslySetInnerHTML:{__html:fo(o)}})]}):m.jsxs("div",{className:"mdx-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:n,children:[a,m.jsx(v2,{markdown:r,style:n})]})}const T2=e=>{if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e},E2=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),N2=$().regex(/^rgba?\([^\)]+\)$/i),M2=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),P2=le("transparent"),ws=H([E2,N2,M2,P2]).nullable().optional(),L2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),O2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),z2=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,j2=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,B2=A({style:A({color:ws,backgroundColor:ws,fontSize:g().gte(0).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:T(["bold","normal",...ir]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:L2,margin:O2}).optional().nullable(),props:A({text:$().optional().nullable()}).optional().nullable(),responsive:Ye}),D2={text:""};function F2({style:e,props:t}){const n={color:z(e==null?void 0:e.color,"blockText"),background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:T2(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:z2(e==null?void 0:e.padding)??0,margin:j2(e==null?void 0:e.margin)??0,wordBreak:"break-word",overflowWrap:"break-word"},r=Jc(fo((t==null?void 0:t.text)??D2.text));return m.jsxs("div",{className:"quill-block ql-editor",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:{...n,maxWidth:"100%",boxSizing:"border-box"},children:[m.jsx("style",{children:".quill-block ul,.quill-block ol{margin:0.5em 0;padding-left:2.5em}.quill-block li:not(.ql-direction-rtl)::before{margin-left:-2.5em}.quill-block blockquote{border-left:4px solid var(--pp-text-muted,#9ca3af);margin:0;padding:0.25em 0 0.25em 12px;font-style:italic;color:inherit}.quill-block *:not(blockquote)+blockquote{margin-top:0.75em}.quill-block blockquote+*:not(blockquote){margin-top:0.75em}.quill-block blockquote p{margin:0}.quill-block pre,.quill-block .ql-code-block-container,.quill-block .ql-code-block{background:var(--pp-surface-alt,#f3f4f6);border-radius:4px;padding:8px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:0.9em;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%;box-sizing:border-box}.quill-block img{max-width:100%;height:auto;display:block}"}),m.jsx("div",{dangerouslySetInnerHTML:{__html:r}})]})}const Ss=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),H2=A({responsive:Ye,style:A({padding:Ss,margin:Ss,textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({demoId:$().default(""),iframeSrc:$().default(""),width:H([g(),$()]).optional().nullable(),height:H([g(),$()]).optional().nullable(),borderRadius:g().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:g().optional().nullable()}).optional().nullable()}),$s=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,G2=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,Zo=1440,qo=830,W2=({style:e,props:t})=>{const{demoId:n,iframeSrc:r,width:o,borderRadius:a,borderColor:i,borderWidth:l}=t??{},s={padding:$s(e==null?void 0:e.padding),margin:$s(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"};if(!n||!r)return m.jsx(m.Fragment,{});const u=(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center";return m.jsx("div",{className:"demo-picker-block",style:{...s,display:"flex",justifyContent:u},children:m.jsx("div",{id:"demoAspect",style:{width:`var(--ahd-demo-width,${G2(o,"100%")})`,aspectRatio:`${Zo} / ${qo}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${a??10}px`,border:i?`${l??1}px solid ${i}`:"none"},children:m.jsx("div",{id:"demoScaler",style:{width:Zo,height:qo,transformOrigin:"top left"},children:m.jsx("iframe",{src:r,style:{width:Zo,height:qo,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},r)})})})},zu=ym(()=>A({id:$().optional(),name:$().optional(),href:$().optional(),pageId:$().optional().nullable(),menuImage:$().optional(),children:oe(zu).optional()})),Vo=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),U2=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),Z2=A({menuId:$().default(""),useCustomMenu:O().default(!1),navRole:T(["header","footer"]).optional().nullable(),stickyNav:O().default(!1),stickyNavTablet:O().optional().nullable(),stickyNavMobile:O().optional().nullable(),position:T(["left","center","right"]).default("left"),orientation:T(["horizontal","vertical","columns"]).default("horizontal"),menuItems:oe(zu).optional().nullable(),startChildrenIds:oe($()).optional().nullable(),endChildrenIds:oe($()).optional().nullable(),layout:T(["menu-only","logo-menu","menu-cta","logo-menu-cta"]).default("menu-only"),backgroundColor:$().default("transparent"),textColor:$().default("#000000"),burgerDropdownBackgroundColor:$().optional().nullable(),submenuBackgroundColor:$().optional().nullable(),submenuRadius:g().optional().nullable(),submenuIconSize:g().optional().nullable(),submenuTextColor:$().optional().nullable(),submenuFontSize:$().optional().nullable(),submenuFontWeight:$().optional().nullable(),submenuPadding:Vo,submenuItemPadding:Vo,submenuMinWidth:g().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),padding:$().default("8px 16px"),blockPadding:Vo,blockMargin:U2,gap:$().default("16px"),showIcons:O().default(!0),iconSize:$().default("24px")}),q2=A({style:A({}).passthrough().optional().nullable(),responsive:Ye,props:Z2.optional().nullable()}),V2={left:"flex-start",center:"center",right:"flex-end"},ju=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Y2=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,K2=e=>e?e.left+e.right:0,J2=e=>!!e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")),Ii=e=>J2(e)?{backgroundImage:e,backgroundColor:"transparent"}:{backgroundColor:e??void 0},Bu=(e,t,n=!1,r,o)=>{const a=K2(o);return{...Ii(e),width:`calc(100% - ${a}px)`,display:"flex",alignItems:"center",gap:"16px",padding:ju(r),margin:Y2(o),justifyContent:n?"space-between":V2[t]||"flex-start"}},Yo=(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}),X2=(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"}),Q2={position:"relative"},Du=(e,t,n,r,o,a,i,l)=>({display:"flex",alignItems:"center",gap:e&&t?"8px":"0",color:(l==null?void 0:l.textColor)??n,fontSize:r,fontWeight:(l==null?void 0:l.fontWeight)??o,fontFamily:i||void 0,padding:(l==null?void 0:l.padding)??a,textDecoration:"none",whiteSpace:"nowrap",...Ii(l==null?void 0:l.backgroundColor),...l!=null&&l.borderColor?{borderStyle:"solid",borderColor:l.borderColor,borderWidth:l.borderWidth??1}:void 0,borderRadius:(l==null?void 0:l.borderRadius)!=null?`${l.borderRadius}px`:void 0}),Fu=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),e_=e=>({paddingLeft:e===0?"0":"12px"}),t_=(e,t,n,r,o)=>({...Ii(e),borderRadius:`${t}px`,border:n?`1px solid ${n}`:void 0,boxShadow:"0 12px 32px color-mix(in srgb, currentColor 18%, transparent)",padding:ju(r)??"8px",minWidth:`${o??260}px`}),n_=e=>({display:"inline-flex",alignItems:"center",marginLeft:"6px",width:`${e}px`,height:`${e}px`,flexShrink:0}),r_="M6 9l6 6 6-6",Hu={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},o_=e=>({color:e});function a_(e,t){const n=`.ahd-menu-${e}`,r=(t==null?void 0:t.dropdownBackground)||"#fff",o=t!=null&&t.hasSubmenuItemPadding?"padding-left:32px!important":"padding:10px 16px 10px 32px!important",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}`,`${n} .ahd-menu-submenu{position:absolute;top:100%;left:0;z-index:120;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease,visibility .15s;pointer-events:none}`,`${n} .ahd-menu-list>li:hover>.ahd-menu-submenu,${n} .ahd-menu-list>li:focus-within>.ahd-menu-submenu{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}`,`${n} .ahd-menu-submenu .ahd-menu-submenu{top:0;left:100%;transform:translateX(4px)}`,`${n} .ahd-menu-submenu li:hover>.ahd-menu-submenu,${n} .ahd-menu-submenu li:focus-within>.ahd-menu-submenu{transform:translateX(0)}`,`${n} .ahd-menu-sublist{display:block!important;width:100%}`,`${n} .ahd-menu-sublist>li>a{display:flex;width:100%;white-space:normal!important;border-radius:6px}`,`${n} .ahd-menu-sublist>li>a:hover{background:color-mix(in srgb,currentColor 10%,transparent)}`,`${n} .ahd-menu-sub-toggle{position:absolute!important;opacity:0!important;width:0!important;height:0!important;margin:0!important;pointer-events:none!important}`,`${n} .ahd-menu-sub-caret{display:none}`,`${n} .ahd-menu-caret{transition:transform .15s ease}`,`${n} li:hover>.ahd-menu-item-row .ahd-menu-caret,${n} li:focus-within>.ahd-menu-item-row .ahd-menu-caret{transform:rotate(180deg)}`].join(""),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:${r};box-shadow:0 6px 16px rgba(0,0,0,.12);width:100%!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list{flex-direction:column!important;width:100%!important;gap:0!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li{width:100%;border-top:1px solid rgba(0,0,0,.08)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li>a{padding:12px 16px!important}`,`${n} .ahd-menu-submenu{position:static!important;opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important;display:none;transition:none}`,`${n} .ahd-menu-sub-toggle:checked~.ahd-menu-submenu{display:block}`,`${n} .ahd-menu-submenu>*{box-shadow:none!important;border:0!important;border-radius:0!important;min-width:0!important;background:transparent!important;padding:0!important}`,`${n} .ahd-menu-submenu{box-shadow:inset 2px 0 0 color-mix(in srgb,currentColor 25%,transparent)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li>a,${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li>.ahd-menu-item-row>.ahd-menu-item-label>a{${o}}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist .ahd-menu-sublist>li>a{padding-left:48px!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li+li{border-top:1px solid color-mix(in srgb,currentColor 12%,transparent)}`,`${n} .ahd-menu-sublist>li{width:100%}`,`${n} .ahd-menu-list>li>.ahd-menu-item-label{display:flex!important;flex:1 1 auto;min-width:0}`,`${n} .ahd-menu-item-row{display:flex;align-items:center;width:100%}`,`${n} .ahd-menu-sub-caret{display:flex!important;align-items:center;justify-content:center;width:44px;align-self:stretch;cursor:pointer;color:currentColor;flex:0 0 auto}`,`${n} .ahd-menu-sub-caret-icon{margin-left:0!important;transition:transform .15s ease}`,`${n} .ahd-menu-sub-toggle:checked~.ahd-menu-item-row .ahd-menu-sub-caret-icon{transform:rotate(180deg)}`,`${n} .ahd-menu-caret{display:none!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(1){transform:translateY(7px) rotate(45deg)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(2){opacity:0}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}`].join(""),l=`(max-width:${Ue}px)`;return a+`@media ${l}{${i}}@container ahd-page ${l}{${i}}`}const i_=(e,t)=>{const n=!!t.stickyNav,r=t.stickyNavTablet??n,o=t.stickyNavMobile??r,a=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 i=n?a(!0):"";if(r!==n){const l=`(max-width:${Ue}px)`;i+=`@media ${l}{${a(r)}}`,i+=`@container ahd-page ${l}{${a(r)}}`}if(o!==r){const l=`(max-width:${Ve}px)`;i+=`@media ${l}{${a(o)}}`,i+=`@container ahd-page ${l}{${a(o)}}`}return i},l_=({p:e,menuItems:t,menuKey:n,textColor:r,submenuTextColor:o,submenuFontSize:a,backgroundColor:i,fontFamily:l,start:s,end:u})=>{const{fontSize:c="14px",fontWeight:h="400",padding:d="8px 16px",gap:f="16px",showIcons:p=!0,iconSize:b="24px",blockPadding:x,blockMargin:w,borderColor:k,borderWidth:S,borderRadius:v,submenuItemPadding:_}=e||{},y=o||(e==null?void 0:e.submenuTextColor)||r,C=a||(e==null?void 0:e.submenuFontSize)||c,I=(e==null?void 0:e.submenuFontWeight)||h,R=_?`${_.top}px ${_.right}px ${_.bottom}px ${_.left}px`:d,E=(L,M,P=!1)=>m.jsx("li",{style:{listStyle:"none"},children:m.jsxs("a",{href:L.href||"#",style:Du(p,!!L.menuImage,P?y:r,P?C:c,P?I:h,P?R:d,l,L),children:[p&&L.menuImage&&m.jsx("img",{src:L.menuImage,alt:"","aria-hidden":"true",style:Fu(b)}),L.name||L.label||""]})},L.id||M);return m.jsxs("nav",{className:`ahd-menu-cols ahd-menu-cols-${n}`,"data-block":"menu","data-layout":"columns","aria-label":"Footer navigation",style:{...Bu(i,"left",!0,x,w),alignItems:"flex-start",flexWrap:"wrap",gap:"32px",boxSizing:"border-box",...k?{borderStyle:"solid",borderColor:k,borderWidth:S?`${S.top??1}px ${S.right??1}px ${S.bottom??1}px ${S.left??1}px`:"1px"}:{},...v!=null?{borderRadius:typeof v=="number"?`${v}px`:`${(v==null?void 0:v.topLeft)??0}px ${(v==null?void 0:v.topRight)??0}px ${(v==null?void 0:v.bottomRight)??0}px ${(v==null?void 0:v.bottomLeft)??0}px`}:{}},children:[s&&m.jsx("div",{className:"ahd-menu-cols-start",style:{flex:"1 1 240px",minWidth:0},children:s}),m.jsx("div",{className:"ahd-menu-cols-grid",style:{flex:"2 1 420px",minWidth:0,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",gap:f},children:t.map((L,M)=>m.jsxs("ul",{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:f},children:[E(L,M),(Array.isArray(L.children)?L.children:[]).map((P,B)=>E(P,B,!0))]},L.id||M))}),u&&m.jsx("div",{className:"ahd-menu-cols-end",style:{flex:"0 0 auto",minWidth:0},children:u})]})},s_=e=>{if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Ia=e=>t=>{t.stopPropagation(),t.preventDefault();const n=typeof document<"u"?document.getElementById(e):null;n&&(n.checked=!n.checked)},_s=({size:e,className:t})=>m.jsx("span",{className:t,style:n_(e),"aria-hidden":"true",children:m.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:r_})})}),Ra=(e,t,n=0)=>{if(!e||e.length===0)return null;const{textColor:r,fontSize:o,fontWeight:a,padding:i,orientation:l,gap:s,showIcons:u,iconSize:c,toggleId:h,listId:d,fontFamily:f,menuKey:p,submenuBackground:b,submenuRadius:x,submenuBorderColor:w,submenuIconSize:k,submenuPadding:S,submenuItemPadding:v,submenuMinWidth:_,submenuTextColor:y,submenuFontSize:C,submenuFontWeight:I}=t,R=n>0&&v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:i,E=n>0&&y?y:r,L=n>0&&C?C:o,M=n>0&&I?I:a;return m.jsx("ul",{id:n===0?d:void 0,className:n===0?"ahd-menu-list":"ahd-menu-sublist",style:X2(l,n,s),children:e.map((P,B)=>{const D=Array.isArray(P.children)?P.children:[],F=D.length>0,G=`ahd-submenu-${p}-${n}-${P.id||B}`,W=P.name||P.label||"",X=m.jsxs("a",{href:P.href||"#",style:Du(u,!!P.menuImage,E,L,M,R,f,P),children:[u&&P.menuImage&&m.jsx("img",{src:P.menuImage,alt:"","aria-hidden":"true",style:Fu(c)}),W,F&&m.jsx(_s,{size:k,className:"ahd-menu-caret"})]}),Q=F?m.jsxs("span",{className:"ahd-menu-item-row",children:[m.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:q=>q.stopPropagation(),children:X}),m.jsx("label",{htmlFor:G,className:"ahd-menu-sub-caret","aria-label":`Toggle ${W} submenu`,onClick:Ia(G),children:m.jsx(_s,{size:k,className:"ahd-menu-sub-caret-icon"})})]}):m.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:q=>q.stopPropagation(),children:X});return m.jsxs("li",{style:Q2,children:[F&&m.jsx("input",{type:"checkbox",id:G,className:"ahd-menu-sub-toggle","aria-hidden":"true",tabIndex:-1,style:Hu,onClick:q=>q.stopPropagation()}),Q,F&&m.jsx("div",{className:"ahd-menu-submenu",style:e_(n),children:m.jsx("div",{style:t_(b,x,w,S,_),children:Ra(D,{...t,orientation:"vertical"},n+1)})})]},P.id||B)})})},c_=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:r=!1,stickyNavTablet:o,stickyNavMobile:a,menuItems:i,startChildrenIds:l,endChildrenIds:s,layout:u="menu-only",position:c="left",orientation:h="horizontal",backgroundColor:d="transparent",textColor:f="#000000",burgerDropdownBackgroundColor:p,fontSize:b="14px",fontFamily:x,fontWeight:w="400",padding:k="8px 16px",blockPadding:S,blockMargin:v,gap:_="16px",showIcons:y=!0,iconSize:C="24px",borderColor:I,borderWidth:R,borderRadius:E,submenuBackgroundColor:L,submenuRadius:M,submenuIconSize:P,submenuPadding:B,submenuItemPadding:D,submenuMinWidth:F,submenuTextColor:G,submenuFontSize:W,submenuFontWeight:X,bare:Q}=e??{},q=hi(),te=z(d,"bgAdaptive")??d,Se=z(f,"menuText")??f,Ae=q(I),ge=q(p),Oe=q(L),J=q(G),V=z(null,"menuSurface");if(!(Array.isArray(i)&&i.length>0)||!n&&!t)return m.jsx(m.Fragment,{});const j=u==="logo-menu"||u==="logo-menu-cta",Y=u==="menu-cta"||u==="logo-menu-cta",fe=j||Y,ve=c==="right"?"end":c==="center"?"center":"start",me=U.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),pe=t||me,ye=(Q==null?void 0:Q.toggleId)??`ahd-menu-toggle-${pe}`,ae=(Q==null?void 0:Q.listId)??`ahd-menu-list-${pe}`,Pe=s_(x),De=Q?Q.toggleId.replace(/^ahd-menu-toggle-/,""):pe,be={textColor:Se,fontSize:b,fontWeight:w,padding:k,orientation:h,gap:_,showIcons:y,iconSize:C,toggleId:ye,listId:ae,fontFamily:Pe,menuKey:De,submenuBackground:Oe||ge||(d!=="transparent"?te:V),submenuRadius:M??8,submenuBorderColor:Ae??null,submenuIconSize:P??14,submenuPadding:B??null,submenuItemPadding:D??null,submenuMinWidth:F??null,submenuTextColor:J||null,submenuFontSize:W||null,submenuFontWeight:X||null};if(h==="columns"&&!Q){const ee=je=>je!=null&&je.length?je.map(ze=>m.jsx(Me,{id:ze},ze)):null;return m.jsx(l_,{p:{...e,borderColor:Ae},menuItems:i,menuKey:pe,textColor:Se,submenuTextColor:J||null,submenuFontSize:W||null,backgroundColor:te,fontFamily:Pe,start:j?ee(l):null,end:Y?ee(s):null})}if(Q)return m.jsx(m.Fragment,{children:Ra(i,be)});const Fe=i_(pe,{stickyNav:r,stickyNavTablet:o,stickyNavMobile:a}),He=a_(pe,{dropdownBackground:ge??(d!=="transparent"?te:null),hasSubmenuItemPadding:!!D});return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:He}},pe),Fe&&m.jsx("style",{dangerouslySetInnerHTML:{__html:Fe}}),m.jsxs("nav",{className:`ahd-menu ahd-menu-${pe} ahd-menu-sticky-${pe}`,"data-block":"menu","data-layout":u,...ue(d,void 0,"bgAdaptive"),style:{...Bu(te,c,fe,S,v),...Ae?{borderStyle:"solid",borderColor:Ae,borderWidth:R?`${R.top??1}px ${R.right??1}px ${R.bottom??1}px ${R.left??1}px`:"1px"}:{},...E!=null?{borderRadius:typeof E=="number"?`${E}px`:`${(E==null?void 0:E.topLeft)??0}px ${(E==null?void 0:E.topRight)??0}px ${(E==null?void 0:E.bottomRight)??0}px ${(E==null?void 0:E.bottomLeft)??0}px`}:{}},"aria-label":"Main navigation",children:[m.jsx("input",{type:"checkbox",id:ye,className:"ahd-menu-toggle",role:"switch","aria-label":"Toggle main menu","aria-controls":ae,style:Hu,onClick:ee=>ee.stopPropagation()}),m.jsx("label",{htmlFor:ye,className:"ahd-menu-backdrop","aria-hidden":"true",onClick:Ia(ye)}),j&&m.jsx("div",{className:"ahd-menu-start",style:Yo("start"),children:(l??[]).map(ee=>m.jsx(Me,{id:ee},ee))}),m.jsx("div",{className:"ahd-menu-center",style:Yo(ve,fe),children:Ra(i,be)}),Y&&m.jsx("div",{className:"ahd-menu-end",style:Yo("end"),children:(s??[]).map(ee=>m.jsx(Me,{id:ee},ee))}),m.jsxs("label",{htmlFor:ye,className:"ahd-menu-burger","aria-hidden":"true",style:o_(Se),onClick:Ia(ye),children:[m.jsx("span",{}),m.jsx("span",{}),m.jsx("span",{})]})]})]})},u_=A({id:$().optional(),label:$().optional(),href:$().optional(),textColor:$().optional().nullable()}),d_=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),h_=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),f_=A({items:oe(u_).optional().nullable(),separator:T(["slash","chevron","dot","pipe","custom"]).default("chevron"),customSeparator:$().optional().nullable(),showHomeIcon:O().default(!1),homeHref:$().default("/"),collapseOnMobile:O().default(!0),currentItemLinked:O().default(!1),textColor:$().default("#595959"),currentItemColor:$().optional().nullable(),separatorColor:$().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),gap:$().default("8px"),blockPadding:d_,blockMargin:h_}),p_=A({style:A({}).passthrough().optional().nullable(),responsive:Ye,props:f_.optional().nullable()}),Ko={slash:"/",chevron:"›",dot:"•",pipe:"|"};function g_(e,t){return e==="custom"?t||"›":e&&Ko[e]?Ko[e]:Ko.chevron}function m_(e){const t=`.ahd-breadcrumb-${e}`,n=[`${t} .ahd-breadcrumb-collapsible{display:none!important}`,`${t} .ahd-breadcrumb-ellipsis{display:flex!important}`].join(""),r=`(max-width:${Ve}px)`;return`@media ${r}{${n}}@container ahd-page ${r}{${n}}`}const b_=e=>{if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Gu=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,x_=Gu,v_="M12 3.1 3 10.4V21h6v-6h6v6h6V10.4L12 3.1zm0 2.56 7 5.6V19h-2v-6H9v6H5v-7.74l7-5.6z",k_=({size:e,color:t})=>m.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",style:{display:"block",flex:"0 0 auto"},children:m.jsx("path",{d:v_,fill:t})}),w_=({color:e,fontSize:t})=>m.jsx("span",{"aria-hidden":"true",style:{color:e,fontSize:t},children:"…"}),S_=({props:e,renderLabel:t})=>{const{items:n,separator:r="chevron",customSeparator:o,showHomeIcon:a=!1,homeHref:i="/",collapseOnMobile:l=!0,currentItemLinked:s=!1,textColor:u="#595959",currentItemColor:c,separatorColor:h,fontSize:d="14px",fontFamily:f,fontWeight:p="400",gap:b="8px",blockPadding:x,blockMargin:w}=e??{},k=hi(),S=z(u,"breadcrumbText"),v=k(c),_=k(h);if(!(Array.isArray(n)&&n.length>0))return m.jsx(m.Fragment,{});const C=b_(f),I=g_(r,o),R=n.length-1,E=U.useMemo(()=>`b${Math.random().toString(36).slice(2,9)}`,[]),L=l?m_(E):"",M=(P,B,D)=>{const F=(D?v:null)||k(P.textColor)||S,G=!D||s,W={color:F,textDecoration:"none",whiteSpace:"nowrap"};return t?t({item:P,index:B,isLast:D,style:W}):G?m.jsx("a",{href:P.href||"#",style:W,"aria-current":D?"page":void 0,children:P.label||""}):m.jsx("span",{style:W,"aria-current":"page",children:P.label||""})};return m.jsxs(m.Fragment,{children:[L&&m.jsx("style",{dangerouslySetInnerHTML:{__html:L}}),m.jsx("nav",{className:l?`ahd-breadcrumb ahd-breadcrumb-${E}`:"ahd-breadcrumb","aria-label":"Breadcrumb",style:{padding:Gu(x),margin:x_(w)},children:m.jsxs("ol",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",listStyle:"none",margin:0,padding:0,gap:b,fontSize:d,fontFamily:C,fontWeight:p},children:[a&&m.jsxs("li",{className:"ahd-breadcrumb-home",style:{display:"flex",alignItems:"center",gap:b},children:[m.jsx("a",{href:i||"/",style:{display:"flex",color:S},children:m.jsx(k_,{size:parseInt(d,10)||14,color:S})}),m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]}),n.map((P,B)=>{const D=B===R,F=l&&B!==0&&!D;return m.jsxs("li",{className:F?"ahd-breadcrumb-collapsible":void 0,style:{display:"flex",alignItems:"center",gap:b},children:[M(P,B,D),!D&&m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]},P.id||B)}),l&&n.length>2&&m.jsxs("li",{className:"ahd-breadcrumb-ellipsis",style:{display:"none",alignItems:"center",gap:b},children:[m.jsx(w_,{color:S,fontSize:d}),m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]})]})})]})},$_=A({style:A({}).passthrough().optional().nullable(),props:A({formId:$().default(""),formName:$().default(""),iframeSrc:$().default(""),width:$().default("100%"),height:$().default("500px"),heightTablet:$().optional(),heightMobile:$().optional(),autoHeight:O().default(!1),alignment:T(["left","center","right"]).default("left")}).optional().nullable()}),__=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)}`},C_=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},A_=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},y_=({props:e,style:t})=>{var S,v;const{formId:n,iframeSrc:r,width:o,height:a,heightTablet:i,heightMobile:l,autoHeight:s=!1,alignment:u="left",formName:c}=e??{};if(!n||!r)return m.jsx(m.Fragment,{});const h=u==="center"?"center":u==="right"?"flex-end":"flex-start",d=t??{},f=(((S=d.margin)==null?void 0:S.left)||0)+(((v=d.margin)==null?void 0:v.right)||0),p=sv(d.borderRadius),b={display:"flex",justifyContent:h,width:`calc(100% - ${f}px)`,padding:C_(d.padding),margin:A_(d.margin),backgroundColor:z(d.backgroundColor,"bgAdaptive")||void 0,borderRadius:p},x=__(`${n}|${r??""}`),w=!s&&(i||l)?`
|
|
349
349
|
${i?`${ln} { #${x} { height: ${i} !important; } }`:""}
|
|
350
350
|
${l?`${Qe} { #${x} { height: ${l} !important; } }`:""}
|
|
351
351
|
`:"",k=s?`
|
|
@@ -361,7 +361,7 @@ ${o}</tbody>
|
|
|
361
361
|
el.style.height = Math.ceil(h) + 'px';
|
|
362
362
|
});
|
|
363
363
|
})();
|
|
364
|
-
`:"";return m.jsxs(m.Fragment,{children:[w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),m.jsx("div",{...ue(d.backgroundColor,void 0,"bgAdaptive"),style:b,children:m.jsx("div",{style:{width:o||"100%",borderRadius:p,overflow:p?"hidden":void 0},children:m.jsx("iframe",{id:x,src:r,title:c||"Form",style:{width:"100%",height:s?"auto":a||"500px",border:"none",display:"block"},scrolling:s?"no":void 0,loading:"lazy"})})}),k&&m.jsx("script",{dangerouslySetInnerHTML:{__html:k}})]})},
|
|
364
|
+
`:"";return m.jsxs(m.Fragment,{children:[w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),m.jsx("div",{...ue(d.backgroundColor,void 0,"bgAdaptive"),style:b,children:m.jsx("div",{style:{width:o||"100%",borderRadius:p,overflow:p?"hidden":void 0},children:m.jsx("iframe",{id:x,src:r,title:c||"Form",style:{width:"100%",height:s?"auto":a||"500px",border:"none",display:"block"},scrolling:s?"no":void 0,loading:"lazy"})})}),k&&m.jsx("script",{dangerouslySetInnerHTML:{__html:k}})]})},I_=A({style:A({padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({text:$().optional().nullable(),targetId:$().optional().nullable(),backgroundColor:$().optional().nullable(),textColor:$().optional().nullable(),fontSize:g().optional().nullable(),borderRadius:g().optional().nullable(),paddingX:g().optional().nullable(),paddingY:g().optional().nullable(),marginX:g().optional().nullable(),marginY:g().optional().nullable(),displayMode:T(["focus-only","always-visible"]).optional().nullable()}).optional().nullable()}),kt={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 R_=0;function Wu({style:e,props:t}){var w,k;const n=((w=t==null?void 0:t.text)==null?void 0:w.trim())||kt.text,r=((k=t==null?void 0:t.targetId)==null?void 0:k.trim())||kt.targetId,o=(t==null?void 0:t.backgroundColor)??kt.backgroundColor,a=(t==null?void 0:t.textColor)??kt.textColor,i=(t==null?void 0:t.fontSize)??kt.fontSize,l=(t==null?void 0:t.borderRadius)??kt.borderRadius,s=(t==null?void 0:t.paddingX)??kt.paddingX,u=(t==null?void 0:t.paddingY)??kt.paddingY,c=(t==null?void 0:t.marginX)??kt.marginX,h=(t==null?void 0:t.marginY)??kt.marginY,d="always-visible",f=`skip-link-${++R_}`,p={padding:bi(e==null?void 0:e.padding),margin:xi(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b=`
|
|
365
365
|
display:inline-block;
|
|
366
366
|
background:${o};
|
|
367
367
|
color:${a};
|
|
@@ -374,7 +374,7 @@ ${o}</tbody>
|
|
|
374
374
|
line-height:1.2;
|
|
375
375
|
font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
|
|
376
376
|
`,x=`.${f}{${b}}
|
|
377
|
-
.${f}:focus-visible{outline:3px solid #000;outline-offset:3px}`;return m.jsxs("div",{className:"skip-link-block",style:p,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),m.jsx("a",{href:`#${r}`,className:f,"data-skip-link":d,children:n})]})}const
|
|
377
|
+
.${f}:focus-visible{outline:3px solid #000;outline-offset:3px}`;return m.jsxs("div",{className:"skip-link-block",style:p,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),m.jsx("a",{href:`#${r}`,className:f,"data-skip-link":d,children:n})]})}const T_=A({style:A({padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({renderMode:T(["inline","floating"]).optional().nullable(),position:T(["top-right","top-left","bottom-right","bottom-left"]).optional().nullable(),triggerLabel:$().optional().nullable(),triggerText:$().optional().nullable(),showLabelText:O().optional().nullable(),triggerBg:$().optional().nullable(),triggerColor:$().optional().nullable(),triggerFontSize:g().optional().nullable(),triggerBorderRadius:g().optional().nullable(),triggerPadding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),triggerMargin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),icon:T(["accessibility","universal-access","person","eye","info"]).optional().nullable(),features:A({contrast:O().optional().nullable(),invert:O().optional().nullable(),saturation:O().optional().nullable(),highlightLinks:O().optional().nullable(),textSize:O().optional().nullable(),textSpacing:O().optional().nullable(),lineHeight:O().optional().nullable(),hideImages:O().optional().nullable(),bigCursor:O().optional().nullable(),reset:O().optional().nullable()}).optional().nullable()}).optional().nullable()}),wt={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"},Jo={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 E_(e){return e&&Jo[e]?Jo[e]:Jo.accessibility}function N_(e){return`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${E_(e)}"/></svg>`}const M_={contrast:!0,invert:!0,saturation:!0,highlightLinks:!0,textSize:!0,textSpacing:!0,lineHeight:!0,hideImages:!0,bigCursor:!0,reset:!0};function P_(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 Uu(e){const{containerPos:t}=P_(e.position);return`
|
|
378
378
|
/* Accessibility Tools widget */
|
|
379
379
|
.ahd-a11y-widget{position:relative;display:inline-block}
|
|
380
380
|
.ahd-a11y-widget.ahd-a11y-floating{position:fixed;${t}z-index:99999}
|
|
@@ -406,7 +406,7 @@ html.a11y-spacing,html.a11y-spacing *{letter-spacing:0.12em !important;word-spac
|
|
|
406
406
|
html.a11y-lineheight,html.a11y-lineheight *{line-height:1.8 !important}
|
|
407
407
|
html.a11y-hide-images img,html.a11y-hide-images picture,html.a11y-hide-images video{visibility:hidden !important}
|
|
408
408
|
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}
|
|
409
|
-
`.trim()}function
|
|
409
|
+
`.trim()}function Zu(e){const t={...M_,...e.features??{}},n=(h,d)=>`<button type="button" class="ahd-a11y-btn" data-a11y="${h}" aria-pressed="false">${d}</button>`,r=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>`:"",o=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>`:"",a=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>`:"",i=t.reset?'<button type="button" class="ahd-a11y-reset" data-a11y-reset>Reset all</button>':"",l=e.renderMode==="floating"?"floating":"inline",s=N_(e.icon??"accessibility"),u=cv(e.triggerText,e.showLabelText!==!1,"Accessibility"),c=typeof e.triggerLabel=="string"&&e.triggerLabel.trim()||"Accessibility tools";return`
|
|
410
410
|
<div class="ahd-a11y-widget ahd-a11y-${l}">
|
|
411
411
|
<button type="button" class="ahd-a11y-trigger" aria-label="${c}" aria-expanded="false" aria-controls="ahd-a11y-panel">${s}${u!==null?`<span>${u}</span>`:""}</button>
|
|
412
412
|
<div class="ahd-a11y-panel" id="ahd-a11y-panel" role="dialog" aria-label="Accessibility tools" aria-hidden="true" data-open="false">
|
|
@@ -414,7 +414,7 @@ html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,
|
|
|
414
414
|
${r}${o}${a}${i}
|
|
415
415
|
</div>
|
|
416
416
|
</div>
|
|
417
|
-
`.trim()}function
|
|
417
|
+
`.trim()}function qu(){return`
|
|
418
418
|
(function(){
|
|
419
419
|
var STORAGE_KEY='ahdA11yPrefs';
|
|
420
420
|
// Classes that are mutually exclusive within their group
|
|
@@ -522,7 +522,7 @@ html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,
|
|
|
522
522
|
init();
|
|
523
523
|
}
|
|
524
524
|
})();
|
|
525
|
-
`.trim()}function
|
|
525
|
+
`.trim()}function Vu({style:e,props:t}){const n=(t==null?void 0:t.renderMode)??wt.renderMode,r=(t==null?void 0:t.position)??wt.position,o=(t==null?void 0:t.features)??void 0,a=(t==null?void 0:t.triggerBg)??wt.triggerBg,i=(t==null?void 0:t.triggerColor)??wt.triggerColor,l=(t==null?void 0:t.triggerLabel)??wt.triggerLabel,s=(t==null?void 0:t.showLabelText)!==!1,u=(t==null?void 0:t.triggerFontSize)??wt.triggerFontSize,c=(t==null?void 0:t.triggerBorderRadius)??wt.triggerBorderRadius,h=(t==null?void 0:t.triggerPadding)??wt.triggerPadding,d=(t==null?void 0:t.triggerMargin)??wt.triggerMargin,f=(t==null?void 0:t.icon)??wt.icon,p={padding:bi(e==null?void 0:e.padding),margin:xi(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b={position:r,features:o,renderMode:n,triggerText:t==null?void 0:t.triggerText,showLabelText:s,icon:f,triggerLabel:l},x=Uu(b),w=`.ahd-a11y-trigger{background:${a};color:${i};font-size:${u}px;border-radius:${c}px;padding:${h.top}px ${h.right}px ${h.bottom}px ${h.left}px};margin:${d.top}px ${d.right}px ${d.bottom}px ${d.left}px}`,k=Zu(b),S=qu();return m.jsxs("div",{className:"accessibility-tools-block",style:p,"data-a11y-instance":"1",children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x+w}}),m.jsx("div",{dangerouslySetInnerHTML:{__html:k}}),m.jsx("script",{dangerouslySetInnerHTML:{__html:S}}),m.jsx("span",{"aria-hidden":"true",style:{display:"none"},children:l})]})}const L_=A({style:A({}).passthrough().optional().nullable(),props:A({bannerId:$().default(""),bannerName:$().optional().nullable(),contentDocument:yn($(),Xn()).optional().nullable(),padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable()}),O_=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},z_=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},j_=({props:e})=>{const{bannerId:t,contentDocument:n,padding:r,margin:o}=e??{};return t?n&&n.root?m.jsx("div",{className:"app-banner-picker-block",style:{...O_(r),...z_(o)},children:m.jsx(or,{document:n,rootBlockId:"root"})}):m.jsx(m.Fragment,{}):m.jsx(m.Fragment,{})},B_=A({style:A({}).passthrough().optional().nullable(),props:A({faqGroupId:$().default(""),faqGroupName:$().optional().nullable(),contentDocument:yn($(),Xn()).optional().nullable(),padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable()}),D_=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},F_=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},H_=({props:e})=>{const{faqGroupId:t,contentDocument:n,padding:r,margin:o}=e??{};return t?!n||!n.root?m.jsx(m.Fragment,{}):m.jsx("div",{className:"faq-picker-block",style:{...D_(r),...F_(o)},children:m.jsx(or,{document:n,rootBlockId:"root"})}):m.jsx(m.Fragment,{})},G_=A({responsive:Ye,style:A({padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),tableAlign:T(["left","center","right"]).optional().nullable(),fontSize:g().optional().nullable(),fontFamily:$().optional().nullable(),color:$().optional().nullable(),backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:g().optional().nullable(),cellPadding:g().optional().nullable(),headerBackground:$().optional().nullable(),headerColor:$().optional().nullable(),stripedRowColor:$().optional().nullable(),stripedColColor:$().optional().nullable()}).optional().nullable(),props:A({rows:g().int().min(1).max(50).optional().nullable(),columns:g().int().min(1).max(20).optional().nullable(),hasHeader:O().optional().nullable(),cells:oe($()).optional().nullable(),caption:$().optional().nullable(),width:$().optional().nullable(),enableScroll:O().optional().nullable(),enableScrollTablet:O().optional().nullable(),enableScrollMobile:O().optional().nullable()}).optional().nullable()}),ft={rows:3,columns:3,hasHeader:!0,borderColor:"#e5e7eb",borderWidth:2,cellPadding:8,headerBackground:"#f3f4f6",headerColor:"#111827",color:"#262626",fontSize:14,stripedRowColor:"#F8F6F6"};function W_(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Yu(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function yr(e){return e?Yu(e)?`background: ${e} !important; background-color: transparent !important;`:`background-color: ${e} !important;`:""}function Xo(e){return e?Yu(e)?[`background-image: ${e};`,"-webkit-background-clip: text;","background-clip: text;","-webkit-text-fill-color: transparent;","color: transparent;"].join(" "):`color: ${e};`:""}function U_({style:e,props:t,renderCell:n}){const r=Math.max(1,Math.min(50,(t==null?void 0:t.rows)??ft.rows)),o=Math.max(1,Math.min(20,(t==null?void 0:t.columns)??ft.columns)),a=(t==null?void 0:t.hasHeader)??ft.hasHeader,i=(t==null?void 0:t.cells)??[],l=r*o,s=i.length===l?i:Array.from({length:l},(V,K)=>i[K]??""),u=z((e==null?void 0:e.borderColor)??ft.borderColor,"tableBorder"),c=(e==null?void 0:e.borderWidth)??ft.borderWidth,h=(e==null?void 0:e.cellPadding)??ft.cellPadding,d=z((e==null?void 0:e.headerBackground)??ft.headerBackground,"tableHeaderBg"),f=z((e==null?void 0:e.headerColor)??ft.headerColor,"tableHeaderText"),p=z((e==null?void 0:e.color)??ft.color,"tableText"),b=(e==null?void 0:e.fontSize)??ft.fontSize,x=z((e==null?void 0:e.backgroundColor)??null,"bgAdaptive"),w=z((e==null?void 0:e.stripedRowColor)===void 0?ft.stripedRowColor:e.stripedRowColor,"tableStripe"),k=se((e==null?void 0:e.stripedColColor)??null),S=`ahd-table-${U.useId().replace(/:/g,"")}`,v=(t==null?void 0:t.width)||"100%",_=v!=="100%",y={padding:bi(e==null?void 0:e.padding),margin:xi(e==null?void 0:e.margin),textAlign:_?(e==null?void 0:e.tableAlign)??"left":void 0,width:0,minWidth:"100%",maxWidth:"100%",height:"fit-content",boxSizing:"border-box"},C=W_(e==null?void 0:e.fontFamily),I={borderCollapse:"collapse",width:"100%",fontSize:b},R={display:_?"inline-block":"block",width:v,maxWidth:"100%",verticalAlign:"top",overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",height:"fit-content"},E={border:`${c}px solid ${u}`,padding:h,verticalAlign:"top"},L={...E,fontWeight:600,textAlign:(e==null?void 0:e.textAlign)??"left"},M=C?`.${S}, .${S} * { font-family: ${C} !important; }`:"",P=`${S}-scroll`,B=(t==null?void 0:t.enableScroll)??!1,D=(t==null?void 0:t.enableScrollTablet)??B,F=(t==null?void 0:t.enableScrollMobile)??B,G=V=>V?`.${P} > .${S} { table-layout: auto; width: max-content !important; min-width: 100%; max-width: none; }`:`.${P} > .${S} { table-layout: fixed; width: 100% !important; max-width: 100%; }
|
|
526
526
|
.${P} > .${S} .ahd-table-cell-text { overflow-wrap: anywhere; }`,X=[G(B),D!==B?`@media (max-width: 1024px) { ${G(D)} }
|
|
527
527
|
@container ahd-page (max-width: 1024px) { ${G(D)} }`:"",F!==D?`@media (max-width: 640px) { ${G(F)} }
|
|
528
528
|
@container ahd-page (max-width: 640px) { ${G(F)} }`:""].filter(Boolean).join(`
|
|
@@ -575,17 +575,17 @@ html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,
|
|
|
575
575
|
${q}
|
|
576
576
|
${te}
|
|
577
577
|
${Q}
|
|
578
|
-
`,Ae=Array.from({length:r},(V,K)=>K),ge=Array.from({length:o},(V,K)=>K),
|
|
579
|
-
`).map((fe,ve,me)=>m.jsxs(U.Fragment,{children:[fe,ve<me.length-1?m.jsx("br",{}):null]},ve));return m.jsxs("div",{className:"table-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:y,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:Se}}),m.jsx("div",{className:P,style:R,children:m.jsxs("table",{className:S,style:I,role:"table",children:[t!=null&&t.caption?m.jsx("caption",{style:{captionSide:"top",textAlign:"left",padding:"4px 0",fontSize:b-1},children:m.jsx("div",{className:"ahd-table-cell-text",children:t.caption})}):null,a?m.jsx("thead",{children:m.jsx("tr",{children:ge.map(V=>m.jsx("th",{scope:"col",style:
|
|
578
|
+
`,Ae=Array.from({length:r},(V,K)=>K),ge=Array.from({length:o},(V,K)=>K),Oe=V=>V.includes("<"),J=(V,K,j,Y)=>n?n({row:V,col:K,value:j,isHeader:Y}):Oe(j)?m.jsx("span",{dangerouslySetInnerHTML:{__html:j}}):j.split(`
|
|
579
|
+
`).map((fe,ve,me)=>m.jsxs(U.Fragment,{children:[fe,ve<me.length-1?m.jsx("br",{}):null]},ve));return m.jsxs("div",{className:"table-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:y,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:Se}}),m.jsx("div",{className:P,style:R,children:m.jsxs("table",{className:S,style:I,role:"table",children:[t!=null&&t.caption?m.jsx("caption",{style:{captionSide:"top",textAlign:"left",padding:"4px 0",fontSize:b-1},children:m.jsx("div",{className:"ahd-table-cell-text",children:t.caption})}):null,a?m.jsx("thead",{children:m.jsx("tr",{children:ge.map(V=>m.jsx("th",{scope:"col",style:L,children:m.jsx("div",{className:"ahd-table-cell-text",children:J(0,V,s[V]??"",!0)})},V))})}):null,m.jsx("tbody",{children:Ae.slice(a?1:0).map(V=>m.jsx("tr",{children:ge.map(K=>m.jsx("td",{style:E,children:m.jsx("div",{className:"ahd-table-cell-text",children:J(V,K,s[V*o+K]??"",!1)})},K))},V))})]})})]})}var Ta={exports:{}},Ea={exports:{}},st={},Ce={};Ce.__esModule=!0;Ce.extend=Ku;Ce.indexOf=K_;Ce.escapeExpression=J_;Ce.isEmpty=X_;Ce.createFrame=Q_;Ce.blockParams=eC;Ce.appendContextPath=tC;var Z_={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},q_=/[&<>"'`=]/g,V_=/[&<>"'`=]/;function Y_(e){return Z_[e]}function Ku(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 Ri=Object.prototype.toString;Ce.toString=Ri;var Na=function(t){return typeof t=="function"};Na(/x/)&&(Ce.isFunction=Na=function(e){return typeof e=="function"&&Ri.call(e)==="[object Function]"});Ce.isFunction=Na;var Ju=Array.isArray||function(e){return e&&typeof e=="object"?Ri.call(e)==="[object Array]":!1};Ce.isArray=Ju;function K_(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function J_(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return V_.test(e)?e.replace(q_,Y_):e}function X_(e){return!e&&e!==0?!0:!!(Ju(e)&&e.length===0)}function Q_(e){var t=Ku({},e);return t._parent=e,t}function eC(e,t){return e.path=t,e}function tC(e,t){return(e?e+".":"")+t}var Ma={exports:{}};(function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(o,a){var i=a&&a.loc,l=void 0,s=void 0,u=void 0,c=void 0;i&&(l=i.start.line,s=i.end.line,u=i.start.column,c=i.end.column,o+=" - "+l+":"+u);for(var h=Error.prototype.constructor.call(this,o),d=0;d<n.length;d++)this[n[d]]=h[n[d]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{i&&(this.lineNumber=l,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:u,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:c,enumerable:!0})):(this.column=u,this.endColumn=c))}catch{}}r.prototype=new Error,t.default=r,e.exports=t.default})(Ma,Ma.exports);var ct=Ma.exports,sr={},Pa={exports:{}};(function(e,t){t.__esModule=!0;var n=Ce;t.default=function(r){r.registerHelper("blockHelperMissing",function(o,a){var i=a.inverse,l=a.fn;if(o===!0)return l(this);if(o===!1||o==null)return i(this);if(n.isArray(o))return o.length>0?(a.ids&&(a.ids=[a.name]),r.helpers.each(o,a)):i(this);if(a.data&&a.ids){var s=n.createFrame(a.data);s.contextPath=n.appendContextPath(a.data.contextPath,a.name),a={data:s}}return l(o,a)})},e.exports=t.default})(Pa,Pa.exports);var nC=Pa.exports,La={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=Ce,o=ct,a=n(o);t.default=function(i){i.registerHelper("each",function(l,s){if(!s)throw new a.default("Must pass iterator to #each");var u=s.fn,c=s.inverse,h=0,d="",f=void 0,p=void 0;s.data&&s.ids&&(p=r.appendContextPath(s.data.contextPath,s.ids[0])+"."),r.isFunction(l)&&(l=l.call(this)),s.data&&(f=r.createFrame(s.data));function b(v,_,y){f&&(f.key=v,f.index=_,f.first=_===0,f.last=!!y,p&&(f.contextPath=p+v)),d=d+u(l[v],{data:f,blockParams:r.blockParams([l[v],v],[p+v,null])})}if(l&&typeof l=="object")if(r.isArray(l))for(var x=l.length;h<x;h++)h in l&&b(h,h,h===l.length-1);else if(typeof Symbol=="function"&&l[Symbol.iterator]){for(var w=[],k=l[Symbol.iterator](),S=k.next();!S.done;S=k.next())w.push(S.value);l=w;for(var x=l.length;h<x;h++)b(h,h,h===l.length-1)}else(function(){var v=void 0;Object.keys(l).forEach(function(_){v!==void 0&&b(v,h-1),v=_,h++}),v!==void 0&&b(v,h-1,!0)})();return h===0&&(d=c(this)),d})},e.exports=t.default})(La,La.exports);var rC=La.exports,Oa={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var r=ct,o=n(r);t.default=function(a){a.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new o.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default})(Oa,Oa.exports);var oC=Oa.exports,za={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=Ce,o=ct,a=n(o);t.default=function(i){i.registerHelper("if",function(l,s){if(arguments.length!=2)throw new a.default("#if requires exactly one argument");return r.isFunction(l)&&(l=l.call(this)),!s.hash.includeZero&&!l||r.isEmpty(l)?s.inverse(this):s.fn(this)}),i.registerHelper("unless",function(l,s){if(arguments.length!=2)throw new a.default("#unless requires exactly one argument");return i.helpers.if.call(this,l,{fn:s.inverse,inverse:s.fn,hash:s.hash})})},e.exports=t.default})(za,za.exports);var aC=za.exports,ja={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("log",function(){for(var r=[void 0],o=arguments[arguments.length-1],a=0;a<arguments.length-1;a++)r.push(arguments[a]);var i=1;o.hash.level!=null?i=o.hash.level:o.data&&o.data.level!=null&&(i=o.data.level),r[0]=i,n.log.apply(n,r)})},e.exports=t.default})(ja,ja.exports);var iC=ja.exports,Ba={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("lookup",function(r,o,a){return r&&a.lookupProperty(r,o)})},e.exports=t.default})(Ba,Ba.exports);var lC=Ba.exports,Da={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=Ce,o=ct,a=n(o);t.default=function(i){i.registerHelper("with",function(l,s){if(arguments.length!=2)throw new a.default("#with requires exactly one argument");r.isFunction(l)&&(l=l.call(this));var u=s.fn;if(r.isEmpty(l))return s.inverse(this);var c=s.data;return s.data&&s.ids&&(c=r.createFrame(s.data),c.contextPath=r.appendContextPath(s.data.contextPath,s.ids[0])),u(l,{data:c,blockParams:r.blockParams([l],[c&&c.contextPath])})})},e.exports=t.default})(Da,Da.exports);var sC=Da.exports;sr.__esModule=!0;sr.registerDefaultHelpers=$C;sr.moveHelperToHooks=_C;function cn(e){return e&&e.__esModule?e:{default:e}}var cC=nC,uC=cn(cC),dC=rC,hC=cn(dC),fC=oC,pC=cn(fC),gC=aC,mC=cn(gC),bC=iC,xC=cn(bC),vC=lC,kC=cn(vC),wC=sC,SC=cn(wC);function $C(e){uC.default(e),hC.default(e),pC.default(e),mC.default(e),xC.default(e),kC.default(e),SC.default(e)}function _C(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||(e.helpers[t]=void 0))}var Ti={},Fa={exports:{}};(function(e,t){t.__esModule=!0;var n=Ce;t.default=function(r){r.registerDecorator("inline",function(o,a,i,l){var s=o;return a.partials||(a.partials={},s=function(u,c){var h=i.partials;i.partials=n.extend({},h,a.partials);var d=o(u,c);return i.partials=h,d}),a.partials[l.args[0]]=l.fn,s})},e.exports=t.default})(Fa,Fa.exports);var CC=Fa.exports;Ti.__esModule=!0;Ti.registerDefaultDecorators=RC;function AC(e){return e&&e.__esModule?e:{default:e}}var yC=CC,IC=AC(yC);function RC(e){IC.default(e)}var Ha={exports:{}};(function(e,t){t.__esModule=!0;var n=Ce,r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(a){if(typeof a=="string"){var i=n.indexOf(r.methodMap,a.toLowerCase());i>=0?a=i:a=parseInt(a,10)}return a},log:function(a){if(a=r.lookupLevel(a),typeof console<"u"&&r.lookupLevel(r.level)<=a){var i=r.methodMap[a];console[i]||(i="log");for(var l=arguments.length,s=Array(l>1?l-1:0),u=1;u<l;u++)s[u-1]=arguments[u];console[i].apply(console,s)}}};t.default=r,e.exports=t.default})(Ha,Ha.exports);var Xu=Ha.exports,Mn={};Mn.__esModule=!0;Mn.createProtoAccessControl=MC;Mn.resultIsAllowed=PC;Mn.resetLoggedProperties=OC;function TC(e){return e&&e.__esModule?e:{default:e}}var Cs=Ce,EC=Xu,NC=TC(EC),no=Object.create(null);function MC(e){var t=Object.create(null);t.__proto__=!1,Cs.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,Cs.extend(n,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:n,defaultValue:e.allowProtoMethodsByDefault}}}function PC(e,t,n){return As(typeof e=="function"?t.methods:t.properties,n)}function As(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(LC(t),!1)}function LC(e){no[e]!==!0&&(no[e]=!0,NC.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
|
|
580
580
|
You can add a runtime option to disable the check or this warning:
|
|
581
|
-
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function OC(){Object.keys(no).forEach(function(e){delete no[e]})}st.__esModule=!0;st.HandlebarsEnvironment=Ga;function
|
|
581
|
+
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function OC(){Object.keys(no).forEach(function(e){delete no[e]})}st.__esModule=!0;st.HandlebarsEnvironment=Ga;function Qu(e){return e&&e.__esModule?e:{default:e}}var Qt=Ce,zC=ct,Qo=Qu(zC),jC=sr,BC=Ti,DC=Xu,ro=Qu(DC),FC=Mn,HC="4.7.9";st.VERSION=HC;var GC=8;st.COMPILER_REVISION=GC;var WC=7;st.LAST_COMPATIBLE_COMPILER_REVISION=WC;var UC={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"};st.REVISION_CHANGES=UC;var ea="[object Object]";function Ga(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},jC.registerDefaultHelpers(this),BC.registerDefaultDecorators(this)}Ga.prototype={constructor:Ga,logger:ro.default,log:ro.default.log,registerHelper:function(t,n){if(Qt.toString.call(t)===ea){if(n)throw new Qo.default("Arg not supported with multiple helpers");Qt.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if(Qt.toString.call(t)===ea)Qt.extend(this.partials,t);else{if(typeof n>"u")throw new Qo.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(Qt.toString.call(t)===ea){if(n)throw new Qo.default("Arg not supported with multiple decorators");Qt.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){FC.resetLoggedProperties()}};var ZC=ro.default.log;st.log=ZC;st.createFrame=Qt.createFrame;st.logger=ro.default;var Wa={exports:{}};(function(e,t){t.__esModule=!0;function n(r){this.string=r}n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default})(Wa,Wa.exports);var qC=Wa.exports,qt={},Ei={};Ei.__esModule=!0;Ei.wrapHelper=VC;function VC(e,t){if(typeof e!="function")return e;var n=function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=t(o),e.apply(this,arguments)};return n}qt.__esModule=!0;qt.checkRevision=eA;qt.template=tA;qt.wrapProgram=zr;qt.resolvePartial=nA;qt.invokePartial=rA;qt.noop=ed;function YC(e){return e&&e.__esModule?e:{default:e}}function KC(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 JC=Ce,wn=KC(JC),XC=ct,Nt=YC(XC),Mt=st,ys=sr,QC=Ei,Is=Mn;function eA(e){var t=e&&e[0]||1,n=Mt.COMPILER_REVISION;if(!(t>=Mt.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Mt.COMPILER_REVISION))if(t<Mt.LAST_COMPATIBLE_COMPILER_REVISION){var r=Mt.REVISION_CHANGES[n],o=Mt.REVISION_CHANGES[t];throw new Nt.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+o+").")}else throw new Nt.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 tA(e,t){if(!t)throw new Nt.default("No environment passed to template");if(!e||!e.main)throw new Nt.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 r(i,l,s){s.hash&&(l=wn.extend({},l,s.hash),s.ids&&(s.ids[0]=!0)),i=t.VM.resolvePartial.call(this,i,l,s),s.hooks=this.hooks,s.protoAccessControl=this.protoAccessControl;var u=t.VM.invokePartial.call(this,i,l,s);if(u==null&&t.compile&&(s.partials[s.name]=t.compile(i,e.compilerOptions,t),u=s.partials[s.name](l,s)),u!=null){if(s.indent){for(var c=u.split(`
|
|
582
582
|
`),h=0,d=c.length;h<d&&!(!c[h]&&h+1===d);h++)c[h]=s.indent+c[h];u=c.join(`
|
|
583
|
-
`)}return u}else throw new Nt.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var o={strict:function(l,s,u){if(!l||!(s in l))throw new Nt.default('"'+s+'" not defined in '+l,{loc:u});return o.lookupProperty(l,s)},lookupProperty:function(l,s){var u=l[s];if(u==null||Object.prototype.hasOwnProperty.call(l,s)||ys.resultIsAllowed(u,o.protoAccessControl,s))return u},lookup:function(l,s){for(var u=l.length,c=0;c<u;c++){var h=l[c]&&o.lookupProperty(l[c],s);if(h!=null)return h}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:wn.escapeExpression,invokePartial:r,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,u,c,h){var d=this.programs[l],f=this.fn(l);return s||h||c||u?d=zr(this,l,f,s,u,c,h):d||(d=this.programs[l]=zr(this,l,f)),d},data:function(l,s){for(;l&&s--;)l=l._parent;return l},mergeIfNeeded:function(l,s){var u=l||s;return l&&s&&l!==s&&(u=wn.extend({},s,l)),u},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function a(i){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],s=l.data;a._setup(l),!l.partial&&e.useData&&(s=rA(i,s));var u=void 0,c=e.useBlockParams?[]:void 0;e.useDepths&&(l.depths?u=i!=l.depths[0]?[i].concat(l.depths):l.depths:u=[i]);function h(d){return""+e.main(o,d,o.helpers,o.partials,s,c,u)}return h=Qu(e.main,h,o,l.depths||[],s,c),h(i,l)}return a.isTop=!0,a._setup=function(i){if(i.partial)o.protoAccessControl=i.protoAccessControl,o.helpers=i.helpers,o.partials=i.partials,o.decorators=i.decorators,o.hooks=i.hooks;else{var l={};Is(l,t.helpers,o),Is(l,i.helpers,o),o.helpers=l,e.usePartial&&(o.partials=o.mergeIfNeeded(i.partials,t.partials)),(e.usePartial||e.useDecorators)&&(o.decorators=wn.extend({},t.decorators,i.decorators)),o.hooks={},o.protoAccessControl=ys.createProtoAccessControl(i);var s=i.allowCallsToHelperMissing||n;As.moveHelperToHooks(o,"helperMissing",s),As.moveHelperToHooks(o,"blockHelperMissing",s)}},a._child=function(i,l,s,u){if(e.useBlockParams&&!s)throw new Nt.default("must pass block params");if(e.useDepths&&!u)throw new Nt.default("must pass parent depths");return zr(o,i,e[i],l,0,s,u)},a}function zr(e,t,n,r,o,a,i){function l(s){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=i;return i&&s!=i[0]&&!(s===e.nullContext&&i[0]===null)&&(c=[s].concat(i)),n(e,s,e.helpers,e.partials,u.data||r,a&&[u.blockParams].concat(a),c)}return l=Qu(n,l,e,i,r,a),l.program=t,l.depth=i?i.length:0,l.blockParams=o||0,l}function tA(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=jr(n.partials,e)):n.name==="@partial-block"?e=jr(n.data,"partial-block"):e=jr(n.partials,n.name),e}function nA(e,t,n){var r=jr(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var o=void 0;if(n.fn&&n.fn!==Xu&&function(){n.data=Mt.createFrame(n.data);var a=n.fn;o=n.data["partial-block"]=function(l){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return s.data=Mt.createFrame(s.data),s.data["partial-block"]=r,a(l,s)},a.partials&&(n.partials=wn.extend({},n.partials,a.partials))}(),e===void 0&&o&&(e=o),e===void 0)throw new Nt.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function Xu(){return""}function jr(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function rA(e,t){return(!t||!("root"in t))&&(t=t?Mt.createFrame(t):{},t.root=e),t}function Qu(e,t,n,r,o,a){if(e.decorator){var i={};t=e.decorator(t,i,n,r&&r[0],o,a,r),wn.extend(t,i)}return t}function Is(e,t,n){t&&Object.keys(t).forEach(function(r){var o=t[r];e[r]=oA(o,n)})}function oA(e,t){var n=t.lookupProperty;return XC.wrapHelper(e,function(r){return r.lookupProperty=n,r})}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 r=globalThis.Handlebars;n.noConflict=function(){return globalThis.Handlebars===n&&(globalThis.Handlebars=r),n}},e.exports=t.default})(Ua,Ua.exports);var ed=Ua.exports;(function(e,t){t.__esModule=!0;function n(k){return k&&k.__esModule?k:{default:k}}function r(k){if(k&&k.__esModule)return k;var S={};if(k!=null)for(var v in k)Object.prototype.hasOwnProperty.call(k,v)&&(S[v]=k[v]);return S.default=k,S}var o=st,a=r(o),i=ZC,l=n(i),s=ct,u=n(s),c=Ce,h=r(c),d=qt,f=r(d),p=ed,b=n(p);function x(){var k=new a.HandlebarsEnvironment;return h.extend(k,a),k.SafeString=l.default,k.Exception=u.default,k.Utils=h,k.escapeExpression=h.escapeExpression,k.VM=f,k.template=function(S){return f.template(S,k)},k}var w=x();w.create=x,b.default(w),w.default=w,t.default=w,e.exports=t.default})(Ea,Ea.exports);var aA=Ea.exports,Za={exports:{}};(function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(o){return o.type==="SubExpression"||(o.type==="MustacheStatement"||o.type==="BlockStatement")&&!!(o.params&&o.params.length||o.hash)},scopedId:function(o){return/^\.|this\b/.test(o.original)},simpleId:function(o){return o.parts.length===1&&!n.helpers.scopedId(o)&&!o.depth}}};t.default=n,e.exports=t.default})(Za,Za.exports);var td=Za.exports,cr={},qa={exports:{}};(function(e,t){t.__esModule=!0;var n=function(){var r={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,u,c,h,d,f){var p=d.length-1;switch(h){case 1:return d[p-1];case 2:this.$=c.prepareProgram(d[p]);break;case 3:this.$=d[p];break;case 4:this.$=d[p];break;case 5:this.$=d[p];break;case 6:this.$=d[p];break;case 7:this.$=d[p];break;case 8:this.$=d[p];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(d[p]),strip:c.stripFlags(d[p],d[p]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[p],value:d[p],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(d[p-2],d[p-1],d[p],this._$);break;case 12:this.$={path:d[p-3],params:d[p-2],hash:d[p-1]};break;case 13:this.$=c.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!1,this._$);break;case 14:this.$=c.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!0,this._$);break;case 15:this.$={open:d[p-5],path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:c.stripFlags(d[p-5],d[p])};break;case 16:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:c.stripFlags(d[p-5],d[p])};break;case 17:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:c.stripFlags(d[p-5],d[p])};break;case 18:this.$={strip:c.stripFlags(d[p-1],d[p-1]),program:d[p]};break;case 19:var b=c.prepareBlock(d[p-2],d[p-1],d[p],d[p],!1,this._$),x=c.prepareProgram([b],d[p-1].loc);x.chained=!0,this.$={strip:d[p-2].strip,program:x,chain:!0};break;case 20:this.$=d[p];break;case 21:this.$={path:d[p-1],strip:c.stripFlags(d[p-2],d[p])};break;case 22:this.$=c.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],c.stripFlags(d[p-4],d[p]),this._$);break;case 23:this.$=c.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],c.stripFlags(d[p-4],d[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[p-3],params:d[p-2],hash:d[p-1],indent:"",strip:c.stripFlags(d[p-4],d[p]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(d[p-2],d[p-1],d[p],this._$);break;case 26:this.$={path:d[p-3],params:d[p-2],hash:d[p-1],strip:c.stripFlags(d[p-4],d[p])};break;case 27:this.$=d[p];break;case 28:this.$=d[p];break;case 29:this.$={type:"SubExpression",path:d[p-3],params:d[p-2],hash:d[p-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[p],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(d[p-2]),value:d[p],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(d[p-1]);break;case 33:this.$=d[p];break;case 34:this.$=d[p];break;case 35:this.$={type:"StringLiteral",value:d[p],original:d[p],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[p]),original:Number(d[p]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[p]==="true",original:d[p]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=d[p];break;case 41:this.$=d[p];break;case 42:this.$=c.preparePath(!0,d[p],this._$);break;case 43:this.$=c.preparePath(!1,d[p],this._$);break;case 44:d[p-2].push({part:c.id(d[p]),original:d[p],separator:d[p-1]}),this.$=d[p-2];break;case 45:this.$=[{part:c.id(d[p]),original:d[p]}];break;case 46:this.$=[];break;case 47:d[p-1].push(d[p]);break;case 48:this.$=[];break;case 49:d[p-1].push(d[p]);break;case 50:this.$=[];break;case 51:d[p-1].push(d[p]);break;case 58:this.$=[];break;case 59:d[p-1].push(d[p]);break;case 64:this.$=[];break;case 65:d[p-1].push(d[p]);break;case 70:this.$=[];break;case 71:d[p-1].push(d[p]);break;case 78:this.$=[];break;case 79:d[p-1].push(d[p]);break;case 82:this.$=[];break;case 83:d[p-1].push(d[p]);break;case 86:this.$=[];break;case 87:d[p-1].push(d[p]);break;case 90:this.$=[];break;case 91:d[p-1].push(d[p]);break;case 94:this.$=[];break;case 95:d[p-1].push(d[p]);break;case 98:this.$=[d[p]];break;case 99:d[p-1].push(d[p]);break;case 100:this.$=[d[p]];break;case 101:d[p-1].push(d[p]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(l,s){throw new Error(l)},parse:function(l){var s=this,u=[0],c=[null],h=[],d=this.table,f="",p=0,b=0;this.lexer.setInput(l),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var x=this.lexer.yylloc;h.push(x);var w=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function k(){var P;return P=s.lexer.lex()||1,typeof P!="number"&&(P=s.symbols_[P]||P),P}for(var S,v,_,y,C={},I,R,E,O;;){if(v=u[u.length-1],this.defaultActions[v]?_=this.defaultActions[v]:((S===null||typeof S>"u")&&(S=k()),_=d[v]&&d[v][S]),typeof _>"u"||!_.length||!_[0]){var M="";{O=[];for(I in d[v])this.terminals_[I]&&I>2&&O.push("'"+this.terminals_[I]+"'");this.lexer.showPosition?M="Parse error on line "+(p+1)+`:
|
|
583
|
+
`)}return u}else throw new Nt.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var o={strict:function(l,s,u){if(!l||!(s in l))throw new Nt.default('"'+s+'" not defined in '+l,{loc:u});return o.lookupProperty(l,s)},lookupProperty:function(l,s){var u=l[s];if(u==null||Object.prototype.hasOwnProperty.call(l,s)||Is.resultIsAllowed(u,o.protoAccessControl,s))return u},lookup:function(l,s){for(var u=l.length,c=0;c<u;c++){var h=l[c]&&o.lookupProperty(l[c],s);if(h!=null)return h}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:wn.escapeExpression,invokePartial:r,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,u,c,h){var d=this.programs[l],f=this.fn(l);return s||h||c||u?d=zr(this,l,f,s,u,c,h):d||(d=this.programs[l]=zr(this,l,f)),d},data:function(l,s){for(;l&&s--;)l=l._parent;return l},mergeIfNeeded:function(l,s){var u=l||s;return l&&s&&l!==s&&(u=wn.extend({},s,l)),u},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function a(i){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],s=l.data;a._setup(l),!l.partial&&e.useData&&(s=oA(i,s));var u=void 0,c=e.useBlockParams?[]:void 0;e.useDepths&&(l.depths?u=i!=l.depths[0]?[i].concat(l.depths):l.depths:u=[i]);function h(d){return""+e.main(o,d,o.helpers,o.partials,s,c,u)}return h=td(e.main,h,o,l.depths||[],s,c),h(i,l)}return a.isTop=!0,a._setup=function(i){if(i.partial)o.protoAccessControl=i.protoAccessControl,o.helpers=i.helpers,o.partials=i.partials,o.decorators=i.decorators,o.hooks=i.hooks;else{var l={};Rs(l,t.helpers,o),Rs(l,i.helpers,o),o.helpers=l,e.usePartial&&(o.partials=o.mergeIfNeeded(i.partials,t.partials)),(e.usePartial||e.useDecorators)&&(o.decorators=wn.extend({},t.decorators,i.decorators)),o.hooks={},o.protoAccessControl=Is.createProtoAccessControl(i);var s=i.allowCallsToHelperMissing||n;ys.moveHelperToHooks(o,"helperMissing",s),ys.moveHelperToHooks(o,"blockHelperMissing",s)}},a._child=function(i,l,s,u){if(e.useBlockParams&&!s)throw new Nt.default("must pass block params");if(e.useDepths&&!u)throw new Nt.default("must pass parent depths");return zr(o,i,e[i],l,0,s,u)},a}function zr(e,t,n,r,o,a,i){function l(s){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=i;return i&&s!=i[0]&&!(s===e.nullContext&&i[0]===null)&&(c=[s].concat(i)),n(e,s,e.helpers,e.partials,u.data||r,a&&[u.blockParams].concat(a),c)}return l=td(n,l,e,i,r,a),l.program=t,l.depth=i?i.length:0,l.blockParams=o||0,l}function nA(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=jr(n.partials,e)):n.name==="@partial-block"?e=jr(n.data,"partial-block"):e=jr(n.partials,n.name),e}function rA(e,t,n){var r=jr(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var o=void 0;if(n.fn&&n.fn!==ed&&function(){n.data=Mt.createFrame(n.data);var a=n.fn;o=n.data["partial-block"]=function(l){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return s.data=Mt.createFrame(s.data),s.data["partial-block"]=r,a(l,s)},a.partials&&(n.partials=wn.extend({},n.partials,a.partials))}(),e===void 0&&o&&(e=o),e===void 0)throw new Nt.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function ed(){return""}function jr(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function oA(e,t){return(!t||!("root"in t))&&(t=t?Mt.createFrame(t):{},t.root=e),t}function td(e,t,n,r,o,a){if(e.decorator){var i={};t=e.decorator(t,i,n,r&&r[0],o,a,r),wn.extend(t,i)}return t}function Rs(e,t,n){t&&Object.keys(t).forEach(function(r){var o=t[r];e[r]=aA(o,n)})}function aA(e,t){var n=t.lookupProperty;return QC.wrapHelper(e,function(r){return r.lookupProperty=n,r})}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 r=globalThis.Handlebars;n.noConflict=function(){return globalThis.Handlebars===n&&(globalThis.Handlebars=r),n}},e.exports=t.default})(Ua,Ua.exports);var nd=Ua.exports;(function(e,t){t.__esModule=!0;function n(k){return k&&k.__esModule?k:{default:k}}function r(k){if(k&&k.__esModule)return k;var S={};if(k!=null)for(var v in k)Object.prototype.hasOwnProperty.call(k,v)&&(S[v]=k[v]);return S.default=k,S}var o=st,a=r(o),i=qC,l=n(i),s=ct,u=n(s),c=Ce,h=r(c),d=qt,f=r(d),p=nd,b=n(p);function x(){var k=new a.HandlebarsEnvironment;return h.extend(k,a),k.SafeString=l.default,k.Exception=u.default,k.Utils=h,k.escapeExpression=h.escapeExpression,k.VM=f,k.template=function(S){return f.template(S,k)},k}var w=x();w.create=x,b.default(w),w.default=w,t.default=w,e.exports=t.default})(Ea,Ea.exports);var iA=Ea.exports,Za={exports:{}};(function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(o){return o.type==="SubExpression"||(o.type==="MustacheStatement"||o.type==="BlockStatement")&&!!(o.params&&o.params.length||o.hash)},scopedId:function(o){return/^\.|this\b/.test(o.original)},simpleId:function(o){return o.parts.length===1&&!n.helpers.scopedId(o)&&!o.depth}}};t.default=n,e.exports=t.default})(Za,Za.exports);var rd=Za.exports,cr={},qa={exports:{}};(function(e,t){t.__esModule=!0;var n=function(){var r={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,u,c,h,d,f){var p=d.length-1;switch(h){case 1:return d[p-1];case 2:this.$=c.prepareProgram(d[p]);break;case 3:this.$=d[p];break;case 4:this.$=d[p];break;case 5:this.$=d[p];break;case 6:this.$=d[p];break;case 7:this.$=d[p];break;case 8:this.$=d[p];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(d[p]),strip:c.stripFlags(d[p],d[p]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[p],value:d[p],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(d[p-2],d[p-1],d[p],this._$);break;case 12:this.$={path:d[p-3],params:d[p-2],hash:d[p-1]};break;case 13:this.$=c.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!1,this._$);break;case 14:this.$=c.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!0,this._$);break;case 15:this.$={open:d[p-5],path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:c.stripFlags(d[p-5],d[p])};break;case 16:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:c.stripFlags(d[p-5],d[p])};break;case 17:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:c.stripFlags(d[p-5],d[p])};break;case 18:this.$={strip:c.stripFlags(d[p-1],d[p-1]),program:d[p]};break;case 19:var b=c.prepareBlock(d[p-2],d[p-1],d[p],d[p],!1,this._$),x=c.prepareProgram([b],d[p-1].loc);x.chained=!0,this.$={strip:d[p-2].strip,program:x,chain:!0};break;case 20:this.$=d[p];break;case 21:this.$={path:d[p-1],strip:c.stripFlags(d[p-2],d[p])};break;case 22:this.$=c.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],c.stripFlags(d[p-4],d[p]),this._$);break;case 23:this.$=c.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],c.stripFlags(d[p-4],d[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[p-3],params:d[p-2],hash:d[p-1],indent:"",strip:c.stripFlags(d[p-4],d[p]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(d[p-2],d[p-1],d[p],this._$);break;case 26:this.$={path:d[p-3],params:d[p-2],hash:d[p-1],strip:c.stripFlags(d[p-4],d[p])};break;case 27:this.$=d[p];break;case 28:this.$=d[p];break;case 29:this.$={type:"SubExpression",path:d[p-3],params:d[p-2],hash:d[p-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[p],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(d[p-2]),value:d[p],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(d[p-1]);break;case 33:this.$=d[p];break;case 34:this.$=d[p];break;case 35:this.$={type:"StringLiteral",value:d[p],original:d[p],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[p]),original:Number(d[p]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[p]==="true",original:d[p]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=d[p];break;case 41:this.$=d[p];break;case 42:this.$=c.preparePath(!0,d[p],this._$);break;case 43:this.$=c.preparePath(!1,d[p],this._$);break;case 44:d[p-2].push({part:c.id(d[p]),original:d[p],separator:d[p-1]}),this.$=d[p-2];break;case 45:this.$=[{part:c.id(d[p]),original:d[p]}];break;case 46:this.$=[];break;case 47:d[p-1].push(d[p]);break;case 48:this.$=[];break;case 49:d[p-1].push(d[p]);break;case 50:this.$=[];break;case 51:d[p-1].push(d[p]);break;case 58:this.$=[];break;case 59:d[p-1].push(d[p]);break;case 64:this.$=[];break;case 65:d[p-1].push(d[p]);break;case 70:this.$=[];break;case 71:d[p-1].push(d[p]);break;case 78:this.$=[];break;case 79:d[p-1].push(d[p]);break;case 82:this.$=[];break;case 83:d[p-1].push(d[p]);break;case 86:this.$=[];break;case 87:d[p-1].push(d[p]);break;case 90:this.$=[];break;case 91:d[p-1].push(d[p]);break;case 94:this.$=[];break;case 95:d[p-1].push(d[p]);break;case 98:this.$=[d[p]];break;case 99:d[p-1].push(d[p]);break;case 100:this.$=[d[p]];break;case 101:d[p-1].push(d[p]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(l,s){throw new Error(l)},parse:function(l){var s=this,u=[0],c=[null],h=[],d=this.table,f="",p=0,b=0;this.lexer.setInput(l),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var x=this.lexer.yylloc;h.push(x);var w=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function k(){var P;return P=s.lexer.lex()||1,typeof P!="number"&&(P=s.symbols_[P]||P),P}for(var S,v,_,y,C={},I,R,E,L;;){if(v=u[u.length-1],this.defaultActions[v]?_=this.defaultActions[v]:((S===null||typeof S>"u")&&(S=k()),_=d[v]&&d[v][S]),typeof _>"u"||!_.length||!_[0]){var M="";{L=[];for(I in d[v])this.terminals_[I]&&I>2&&L.push("'"+this.terminals_[I]+"'");this.lexer.showPosition?M="Parse error on line "+(p+1)+`:
|
|
584
584
|
`+this.lexer.showPosition()+`
|
|
585
|
-
Expecting `+
|
|
585
|
+
Expecting `+L.join(", ")+", got '"+(this.terminals_[S]||S)+"'":M="Parse error on line "+(p+1)+": Unexpected "+(S==1?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(M,{text:this.lexer.match,token:this.terminals_[S]||S,line:this.lexer.yylineno,loc:x,expected:L})}}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+S);switch(_[0]){case 1:u.push(S),c.push(this.lexer.yytext),h.push(this.lexer.yylloc),u.push(_[1]),S=null,b=this.lexer.yyleng,f=this.lexer.yytext,p=this.lexer.yylineno,x=this.lexer.yylloc;break;case 2:if(R=this.productions_[_[1]][1],C.$=c[c.length-R],C._$={first_line:h[h.length-(R||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(R||1)].first_column,last_column:h[h.length-1].last_column},w&&(C._$.range=[h[h.length-(R||1)].range[0],h[h.length-1].range[1]]),y=this.performAction.call(C,f,b,p,this.yy,_[1],c,h),typeof y<"u")return y;R&&(u=u.slice(0,-1*R*2),c=c.slice(0,-1*R),h=h.slice(0,-1*R)),u.push(this.productions_[_[1]][0]),c.push(C.$),h.push(C._$),E=d[u[u.length-2]][u[u.length-1]],u.push(E);break;case 3:return!0}}return!0}},o=function(){var i={EOF:1,parseError:function(s,u){if(this.yy.parser)this.yy.parser.parseError(s,u);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 u=s.match(/(?:\r\n?|\n).*/g);return u?(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 u=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u-1),this.offset-=u;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.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:c?(c.length===h.length?this.yylloc.first_column:0)+h[h.length-c.length].length-c[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-u]),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(),u=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
586
586
|
`+u+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,u,c,h,d;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),p=0;p<f.length&&(c=this._input.match(this.rules[f[p]]),!(c&&(!u||c[0].length>u[0].length)&&(u=c,h=p,!this.options.flex)));p++);return u?(d=u[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+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,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(u[0].length),this.matched+=u[0],s=this.performAction.call(this,this.yy,this,f[h],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
587
|
-
`+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 i.options={},i.performAction=function(s,u,c,h){function d(f,p){return u.yytext=u.yytext.substring(f,u.yyleng-p+f)}switch(c){case 0:if(u.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):u.yytext.slice(-1)==="\\"?(d(0,1),this.begin("emu")):this.begin("mu"),u.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(u.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 u.yytext=d(1,2).replace(/\\"/g,'"'),80;case 32:return u.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 u.yytext=u.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},i.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.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}},i}();r.lexer=o;function a(){this.yy={}}return a.prototype=r,r.Parser=a,new a}();t.default=n,e.exports=t.default})(qa,qa.exports);var iA=qa.exports,Va={exports:{}},Ya={exports:{}};(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var r=ct,o=n(r);function a(){this.parents=[]}a.prototype={constructor:a,mutating:!1,acceptKey:function(c,h){var d=this.accept(c[h]);if(this.mutating){if(d&&!a.prototype[d.type])throw new o.default('Unexpected node type "'+d.type+'" found when accepting '+h+" on "+c.type);c[h]=d}},acceptRequired:function(c,h){if(this.acceptKey(c,h),!c[h])throw new o.default(c.type+" requires "+h)},acceptArray:function(c){for(var h=0,d=c.length;h<d;h++)this.acceptKey(c,h),c[h]||(c.splice(h,1),h--,d--)},accept:function(c){if(c){if(!this[c.type])throw new o.default("Unknown type: "+c.type,c);this.current&&this.parents.unshift(this.current),this.current=c;var h=this[c.type](c);if(this.current=this.parents.shift(),!this.mutating||h)return h;if(h!==!1)return c}},Program:function(c){this.acceptArray(c.body)},MustacheStatement:i,Decorator:i,BlockStatement:l,DecoratorBlock:l,PartialStatement:s,PartialBlockStatement:function(c){s.call(this,c),this.acceptKey(c,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:i,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(c){this.acceptArray(c.pairs)},HashPair:function(c){this.acceptRequired(c,"value")}};function i(u){this.acceptRequired(u,"path"),this.acceptArray(u.params),this.acceptKey(u,"hash")}function l(u){i.call(this,u),this.acceptKey(u,"program"),this.acceptKey(u,"inverse")}function s(u){this.acceptRequired(u,"name"),this.acceptArray(u.params),this.acceptKey(u,"hash")}t.default=a,e.exports=t.default})(Ya,Ya.exports);var nd=Ya.exports;(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var r=nd,o=n(r);function a(){var c=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=c}a.prototype=new o.default,a.prototype.Program=function(c){var h=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var f=c.body,p=0,b=f.length;p<b;p++){var x=f[p],w=this.accept(x);if(w){var k=i(f,p,d),S=l(f,p,d),v=w.openStandalone&&k,_=w.closeStandalone&&S,y=w.inlineStandalone&&k&&S;w.close&&s(f,p,!0),w.open&&u(f,p,!0),h&&y&&(s(f,p),u(f,p)&&x.type==="PartialStatement"&&(x.indent=/([ \t]+$)/.exec(f[p-1].original)[1])),h&&v&&(s((x.program||x.inverse).body),u(f,p)),h&&_&&(s(f,p),u((x.inverse||x.program).body))}}return c},a.prototype.BlockStatement=a.prototype.DecoratorBlock=a.prototype.PartialBlockStatement=function(c){this.accept(c.program),this.accept(c.inverse);var h=c.program||c.inverse,d=c.program&&c.inverse,f=d,p=d;if(d&&d.chained)for(f=d.body[0].program;p.chained;)p=p.body[p.body.length-1].program;var b={open:c.openStrip.open,close:c.closeStrip.close,openStandalone:l(h.body),closeStandalone:i((f||h).body)};if(c.openStrip.close&&s(h.body,null,!0),d){var x=c.inverseStrip;x.open&&u(h.body,null,!0),x.close&&s(f.body,null,!0),c.closeStrip.open&&u(p.body,null,!0),!this.options.ignoreStandalone&&i(h.body)&&l(f.body)&&(u(h.body),s(f.body))}else c.closeStrip.open&&u(h.body,null,!0);return b},a.prototype.Decorator=a.prototype.MustacheStatement=function(c){return c.strip},a.prototype.PartialStatement=a.prototype.CommentStatement=function(c){var h=c.strip||{};return{inlineStandalone:!0,open:h.open,close:h.close}};function i(c,h,d){h===void 0&&(h=c.length);var f=c[h-1],p=c[h-2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(f.original)}function l(c,h,d){h===void 0&&(h=-1);var f=c[h+1],p=c[h+2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(f.original)}function s(c,h,d){var f=c[h==null?0:h+1];if(!(!f||f.type!=="ContentStatement"||!d&&f.rightStripped)){var p=f.value;f.value=f.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),f.rightStripped=f.value!==p}}function u(c,h,d){var f=c[h==null?c.length-1:h-1];if(!(!f||f.type!=="ContentStatement"||!d&&f.leftStripped)){var p=f.value;return f.value=f.value.replace(d?/\s+$/:/[ \t]+$/,""),f.leftStripped=f.value!==p,f.leftStripped}}t.default=a,e.exports=t.default})(Va,Va.exports);var lA=Va.exports,ut={};ut.__esModule=!0;ut.SourceLocation=uA;ut.id=dA;ut.stripFlags=hA;ut.stripComment=fA;ut.preparePath=pA;ut.prepareMustache=gA;ut.prepareRawBlock=mA;ut.prepareBlock=bA;ut.prepareProgram=xA;ut.preparePartialBlock=vA;function sA(e){return e&&e.__esModule?e:{default:e}}var cA=ct,Ni=sA(cA);function Mi(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new Ni.default(e.path.original+" doesn't match "+t,n)}}function uA(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 dA(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function hA(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function fA(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function pA(e,t,n){n=this.locInfo(n);for(var r=e?"@":"",o=[],a=0,i=0,l=t.length;i<l;i++){var s=t[i].part,u=t[i].original!==s;if(r+=(t[i].separator||"")+s,!u&&(s===".."||s==="."||s==="this")){if(o.length>0)throw new Ni.default("Invalid path: "+r,{loc:n});s===".."&&a++}else o.push(s)}return{type:"PathExpression",data:e,depth:a,parts:o,original:r,loc:n}}function gA(e,t,n,r,o,a){var i=r.charAt(3)||r.charAt(2),l=i!=="{"&&i!=="&",s=/\*/.test(r);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:o,loc:this.locInfo(a)}}function mA(e,t,n,r){Mi(e,n),r=this.locInfo(r);var o={type:"Program",body:t,strip:{},loc:r};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:o,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}}function bA(e,t,n,r,o,a){r&&r.path&&Mi(e,r);var i=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(i)throw new Ni.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=r.strip),s=n.strip,l=n.program}return o&&(o=l,l=t,t=o),{type:i?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:s,closeStrip:r&&r.strip,loc:this.locInfo(a)}}function xA(e,t){if(!t&&e.length){var n=e[0].loc,r=e[e.length-1].loc;n&&r&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function vA(e,t,n,r){return Mi(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(r)}}cr.__esModule=!0;cr.parseWithoutProcessing=rd;cr.parse=IA;function kA(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 Pi(e){return e&&e.__esModule?e:{default:e}}var wA=iA,Ka=Pi(wA),SA=lA,$A=Pi(SA),_A=ut,CA=kA(_A),AA=ct,Bn=Pi(AA),yA=Ce;cr.parser=Ka.default;var Br={};yA.extend(Br,CA);function rd(e,t){if(e.type==="Program")return RA(e),e;Ka.default.yy=Br,Br.locInfo=function(r){return new Br.SourceLocation(t&&t.srcName,r)};var n=Ka.default.parse(e);return n}function IA(e,t){var n=rd(e,t),r=new $A.default(t);return r.accept(n)}function RA(e){Ja(e)}function Ja(e){if(e!=null){if(Array.isArray(e)){e.forEach(Ja);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!TA(e.depth))throw new Bn.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new Bn.default("Invalid AST: PathExpression.parts must be an array");for(var t=0;t<e.parts.length;t++)if(typeof e.parts[t]!="string")throw new Bn.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new Bn.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new Bn.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(n){n!=="loc"&&Ja(e[n])})}}}function TA(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var ur={};ur.__esModule=!0;ur.Compiler=Xa;ur.precompile=PA;ur.compile=OA;function od(e){return e&&e.__esModule?e:{default:e}}var EA=ct,Vn=od(EA),nr=Ce,NA=td,Dn=od(NA),MA=[].slice;function Xa(){}Xa.prototype={compiler:Xa,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var r=0;r<n;r++){var o=this.opcodes[r],a=t.opcodes[r];if(o.opcode!==a.opcode||!ad(o.args,a.args))return!1}n=this.children.length;for(var r=0;r<n;r++)if(!this.children[r].equals(t.children[r]))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=nr.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,r=n.compile(t,this.options),o=this.guid++;return this.usePartial=this.usePartial||r.usePartial,this.children[o]=r,this.useDepths=this.useDepths||r.useDepths,o},accept:function(t){if(!this[t.type])throw new Vn.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,r=n.length,o=0;o<r;o++)this.accept(n[o]);return this.options.blockParams.shift(),this.isSimple=r===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){Rs(t);var n=t.program,r=t.inverse;n=n&&this.compileProgram(n),r=r&&this.compileProgram(r);var o=this.classifySexpr(t);o==="helper"?this.helperSexpr(t,n,r):o==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",n),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,n,r),this.opcode("pushProgram",n),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var n=t.program&&this.compileProgram(t.program),r=this.setupFullMustacheParams(t,n,void 0),o=t.path;this.useDecorators=!0,this.opcode("registerDecorator",r.length,o.original)},PartialStatement:function(t){this.usePartial=!0;var n=t.program;n&&(n=this.compileProgram(t.program));var r=t.params;if(r.length>1)throw new Vn.default("Unsupported number of partial arguments: "+r.length,t);r.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):r.push({type:"PathExpression",parts:[],depth:0}));var o=t.name.original,a=t.name.type==="SubExpression";a&&this.accept(t.name),this.setupFullMustacheParams(t,n,void 0,!0);var i=t.indent||"";this.options.preventIndent&&i&&(this.opcode("appendContent",i),i=""),this.opcode("invokePartial",a,o,i),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){Rs(t);var n=this.classifySexpr(t);n==="simple"?this.simpleSexpr(t):n==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,n,r){var o=t.path,a=o.parts[0],i=n!=null||r!=null;this.opcode("getContext",o.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",r),o.strict=!0,this.accept(o),this.opcode("invokeAmbiguous",a,i)},simpleSexpr:function(t){var n=t.path;n.strict=!0,this.accept(n),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,n,r){var o=this.setupFullMustacheParams(t,n,r),a=t.path,i=a.parts[0];if(this.options.knownHelpers[i])this.opcode("invokeKnownHelper",o.length,i);else{if(this.options.knownHelpersOnly)throw new Vn.default("You specified knownHelpersOnly, but used the unknown helper "+i,t);a.strict=!0,a.falsy=!0,this.accept(a),this.opcode("invokeHelper",o.length,a.original,Dn.default.helpers.simpleId(a))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],r=Dn.default.helpers.scopedId(t),o=!t.depth&&!r&&this.blockParamIndex(n);o?this.opcode("lookupBlockParam",o,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,r):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,r=0,o=n.length;for(this.opcode("pushHash");r<o;r++)this.pushParam(n[r].value);for(;r--;)this.opcode("assignToHash",n[r].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:MA.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var n=Dn.default.helpers.simpleId(t.path),r=n&&!!this.blockParamIndex(t.path.parts[0]),o=!r&&Dn.default.helpers.helperExpression(t),a=!r&&(o||n);if(a&&!o){var i=t.path.parts[0],l=this.options;l.knownHelpers[i]?o=!0:l.knownHelpersOnly&&(a=!1)}return o?"helper":a?"ambiguous":"simple"},pushParams:function(t){for(var n=0,r=t.length;n<r;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 r=void 0;if(t.parts&&!Dn.default.helpers.scopedId(t)&&!t.depth&&(r=this.blockParamIndex(t.parts[0])),r){var o=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",r,o)}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,r,o){var a=t.params;return this.pushParams(a),this.opcode("pushProgram",n),this.opcode("pushProgram",r),t.hash?this.accept(t.hash):this.opcode("emptyHash",o),a},blockParamIndex:function(t){for(var n=0,r=this.options.blockParams.length;n<r;n++){var o=this.options.blockParams[n],a=o&&nr.indexOf(o,t);if(o&&a>=0)return[n,a]}}};function PA(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Vn.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 r=n.parse(e,t),o=new n.Compiler().compile(r,t);return new n.JavaScriptCompiler().compile(o,t)}function OA(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Vn.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=nr.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var r=void 0;function o(){var i=n.parse(e,t),l=new n.Compiler().compile(i,t),s=new n.JavaScriptCompiler().compile(l,t,void 0,!0);return n.template(s)}function a(i,l){return r||(r=o()),r.call(this,i,l)}return a._setup=function(i){return r||(r=o()),r._setup(i)},a._child=function(i,l,s,u){return r||(r=o()),r._child(i,l,s,u)},a}function ad(e,t){if(e===t)return!0;if(nr.isArray(e)&&nr.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!ad(e[n],t[n]))return!1;return!0}}function Rs(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 Qa={exports:{}},ei={exports:{}},Fn={},ta={},Ir={},Rr={},Ts;function LA(){if(Ts)return Rr;Ts=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Rr.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Rr.decode=function(t){var n=65,r=90,o=97,a=122,i=48,l=57,s=43,u=47,c=26,h=52;return n<=t&&t<=r?t-n:o<=t&&t<=a?t-o+c:i<=t&&t<=l?t-i+h:t==s?62:t==u?63:-1},Rr}var Es;function id(){if(Es)return Ir;Es=1;var e=LA(),t=5,n=1<<t,r=n-1,o=n;function a(l){return l<0?(-l<<1)+1:(l<<1)+0}function i(l){var s=(l&1)===1,u=l>>1;return s?-u:u}return Ir.encode=function(s){var u="",c,h=a(s);do c=h&r,h>>>=t,h>0&&(c|=o),u+=e.encode(c);while(h>0);return u},Ir.decode=function(s,u,c){var h=s.length,d=0,f=0,p,b;do{if(u>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(b=e.decode(s.charCodeAt(u++)),b===-1)throw new Error("Invalid base64 digit: "+s.charAt(u-1));p=!!(b&o),b&=r,d=d+(b<<f),f+=t}while(p);c.value=i(d),c.rest=u},Ir}var na={},Ns;function dr(){return Ns||(Ns=1,function(e){function t(v,_,y){if(_ in v)return v[_];if(arguments.length===3)return y;throw new Error('"'+_+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(v){var _=v.match(n);return _?{scheme:_[1],auth:_[2],host:_[3],port:_[4],path:_[5]}:null}e.urlParse=o;function a(v){var _="";return v.scheme&&(_+=v.scheme+":"),_+="//",v.auth&&(_+=v.auth+"@"),v.host&&(_+=v.host),v.port&&(_+=":"+v.port),v.path&&(_+=v.path),_}e.urlGenerate=a;function i(v){var _=v,y=o(v);if(y){if(!y.path)return v;_=y.path}for(var C=e.isAbsolute(_),I=_.split(/\/+/),R,E=0,O=I.length-1;O>=0;O--)R=I[O],R==="."?I.splice(O,1):R===".."?E++:E>0&&(R===""?(I.splice(O+1,E),E=0):(I.splice(O,2),E--));return _=I.join("/"),_===""&&(_=C?"/":"."),y?(y.path=_,a(y)):_}e.normalize=i;function l(v,_){v===""&&(v="."),_===""&&(_=".");var y=o(_),C=o(v);if(C&&(v=C.path||"/"),y&&!y.scheme)return C&&(y.scheme=C.scheme),a(y);if(y||_.match(r))return _;if(C&&!C.host&&!C.path)return C.host=_,a(C);var I=_.charAt(0)==="/"?_:i(v.replace(/\/+$/,"")+"/"+_);return C?(C.path=I,a(C)):I}e.join=l,e.isAbsolute=function(v){return v.charAt(0)==="/"||n.test(v)};function s(v,_){v===""&&(v="."),v=v.replace(/\/$/,"");for(var y=0;_.indexOf(v+"/")!==0;){var C=v.lastIndexOf("/");if(C<0||(v=v.slice(0,C),v.match(/^([^\/]+:\/)?\/*$/)))return _;++y}return Array(y+1).join("../")+_.substr(v.length+1)}e.relative=s;var u=function(){var v=Object.create(null);return!("__proto__"in v)}();function c(v){return v}function h(v){return f(v)?"$"+v:v}e.toSetString=u?c:h;function d(v){return f(v)?v.slice(1):v}e.fromSetString=u?c:d;function f(v){if(!v)return!1;var _=v.length;if(_<9||v.charCodeAt(_-1)!==95||v.charCodeAt(_-2)!==95||v.charCodeAt(_-3)!==111||v.charCodeAt(_-4)!==116||v.charCodeAt(_-5)!==111||v.charCodeAt(_-6)!==114||v.charCodeAt(_-7)!==112||v.charCodeAt(_-8)!==95||v.charCodeAt(_-9)!==95)return!1;for(var y=_-10;y>=0;y--)if(v.charCodeAt(y)!==36)return!1;return!0}function p(v,_,y){var C=x(v.source,_.source);return C!==0||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0||y)||(C=v.generatedColumn-_.generatedColumn,C!==0)||(C=v.generatedLine-_.generatedLine,C!==0)?C:x(v.name,_.name)}e.compareByOriginalPositions=p;function b(v,_,y){var C=v.generatedLine-_.generatedLine;return C!==0||(C=v.generatedColumn-_.generatedColumn,C!==0||y)||(C=x(v.source,_.source),C!==0)||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0)?C:x(v.name,_.name)}e.compareByGeneratedPositionsDeflated=b;function x(v,_){return v===_?0:v===null?1:_===null?-1:v>_?1:-1}function w(v,_){var y=v.generatedLine-_.generatedLine;return y!==0||(y=v.generatedColumn-_.generatedColumn,y!==0)||(y=x(v.source,_.source),y!==0)||(y=v.originalLine-_.originalLine,y!==0)||(y=v.originalColumn-_.originalColumn,y!==0)?y:x(v.name,_.name)}e.compareByGeneratedPositionsInflated=w;function k(v){return JSON.parse(v.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=k;function S(v,_,y){if(_=_||"",v&&(v[v.length-1]!=="/"&&_[0]!=="/"&&(v+="/"),_=v+_),y){var C=o(y);if(!C)throw new Error("sourceMapURL could not be parsed");if(C.path){var I=C.path.lastIndexOf("/");I>=0&&(C.path=C.path.substring(0,I+1))}_=l(a(C),_)}return i(_)}e.computeSourceURL=S}(na)),na}var ra={},Ms;function ld(){if(Ms)return ra;Ms=1;var e=dr(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(a,i){for(var l=new r,s=0,u=a.length;s<u;s++)l.add(a[s],i);return l},r.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(a,i){var l=n?a:e.toSetString(a),s=n?this.has(a):t.call(this._set,l),u=this._array.length;(!s||i)&&this._array.push(a),s||(n?this._set.set(a,u):this._set[l]=u)},r.prototype.has=function(a){if(n)return this._set.has(a);var i=e.toSetString(a);return t.call(this._set,i)},r.prototype.indexOf=function(a){if(n){var i=this._set.get(a);if(i>=0)return i}else{var l=e.toSetString(a);if(t.call(this._set,l))return this._set[l]}throw new Error('"'+a+'" is not in the set.')},r.prototype.at=function(a){if(a>=0&&a<this._array.length)return this._array[a];throw new Error("No element indexed by "+a)},r.prototype.toArray=function(){return this._array.slice()},ra.ArraySet=r,ra}var oa={},Ps;function zA(){if(Ps)return oa;Ps=1;var e=dr();function t(r,o){var a=r.generatedLine,i=o.generatedLine,l=r.generatedColumn,s=o.generatedColumn;return i>a||i==a&&s>=l||e.compareByGeneratedPositionsInflated(r,o)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(o,a){this._array.forEach(o,a)},n.prototype.add=function(o){t(this._last,o)?(this._last=o,this._array.push(o)):(this._sorted=!1,this._array.push(o))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},oa.MappingList=n,oa}var Os;function sd(){if(Os)return ta;Os=1;var e=id(),t=dr(),n=ld().ArraySet,r=zA().MappingList;function o(a){a||(a={}),this._file=t.getArg(a,"file",null),this._sourceRoot=t.getArg(a,"sourceRoot",null),this._skipValidation=t.getArg(a,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return o.prototype._version=3,o.fromSourceMap=function(i){var l=i.sourceRoot,s=new o({file:i.file,sourceRoot:l});return i.eachMapping(function(u){var c={generated:{line:u.generatedLine,column:u.generatedColumn}};u.source!=null&&(c.source=u.source,l!=null&&(c.source=t.relative(l,c.source)),c.original={line:u.originalLine,column:u.originalColumn},u.name!=null&&(c.name=u.name)),s.addMapping(c)}),i.sources.forEach(function(u){var c=u;l!==null&&(c=t.relative(l,u)),s._sources.has(c)||s._sources.add(c);var h=i.sourceContentFor(u);h!=null&&s.setSourceContent(u,h)}),s},o.prototype.addMapping=function(i){var l=t.getArg(i,"generated"),s=t.getArg(i,"original",null),u=t.getArg(i,"source",null),c=t.getArg(i,"name",null);this._skipValidation||this._validateMapping(l,s,u,c),u!=null&&(u=String(u),this._sources.has(u)||this._sources.add(u)),c!=null&&(c=String(c),this._names.has(c)||this._names.add(c)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:s!=null&&s.line,originalColumn:s!=null&&s.column,source:u,name:c})},o.prototype.setSourceContent=function(i,l){var s=i;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))},o.prototype.applySourceMap=function(i,l,s){var u=l;if(l==null){if(i.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);u=i.file}var c=this._sourceRoot;c!=null&&(u=t.relative(c,u));var h=new n,d=new n;this._mappings.unsortedForEach(function(f){if(f.source===u&&f.originalLine!=null){var p=i.originalPositionFor({line:f.originalLine,column:f.originalColumn});p.source!=null&&(f.source=p.source,s!=null&&(f.source=t.join(s,f.source)),c!=null&&(f.source=t.relative(c,f.source)),f.originalLine=p.line,f.originalColumn=p.column,p.name!=null&&(f.name=p.name))}var b=f.source;b!=null&&!h.has(b)&&h.add(b);var x=f.name;x!=null&&!d.has(x)&&d.add(x)},this),this._sources=h,this._names=d,i.sources.forEach(function(f){var p=i.sourceContentFor(f);p!=null&&(s!=null&&(f=t.join(s,f)),c!=null&&(f=t.relative(c,f)),this.setSourceContent(f,p))},this)},o.prototype._validateMapping=function(i,l,s,u){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(!(i&&"line"in i&&"column"in i&&i.line>0&&i.column>=0&&!l&&!s&&!u)){if(i&&"line"in i&&"column"in i&&l&&"line"in l&&"column"in l&&i.line>0&&i.column>=0&&l.line>0&&l.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:i,source:s,original:l,name:u}))}},o.prototype._serializeMappings=function(){for(var i=0,l=1,s=0,u=0,c=0,h=0,d="",f,p,b,x,w=this._mappings.toArray(),k=0,S=w.length;k<S;k++){if(p=w[k],f="",p.generatedLine!==l)for(i=0;p.generatedLine!==l;)f+=";",l++;else if(k>0){if(!t.compareByGeneratedPositionsInflated(p,w[k-1]))continue;f+=","}f+=e.encode(p.generatedColumn-i),i=p.generatedColumn,p.source!=null&&(x=this._sources.indexOf(p.source),f+=e.encode(x-h),h=x,f+=e.encode(p.originalLine-1-u),u=p.originalLine-1,f+=e.encode(p.originalColumn-s),s=p.originalColumn,p.name!=null&&(b=this._names.indexOf(p.name),f+=e.encode(b-c),c=b)),d+=f}return d},o.prototype._generateSourcesContent=function(i,l){return i.map(function(s){if(!this._sourcesContents)return null;l!=null&&(s=t.relative(l,s));var u=t.toSetString(s);return Object.prototype.hasOwnProperty.call(this._sourcesContents,u)?this._sourcesContents[u]:null},this)},o.prototype.toJSON=function(){var i={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(i.file=this._file),this._sourceRoot!=null&&(i.sourceRoot=this._sourceRoot),this._sourcesContents&&(i.sourcesContent=this._generateSourcesContent(i.sources,i.sourceRoot)),i},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},ta.SourceMapGenerator=o,ta}var Hn={},aa={},Ls;function jA(){return Ls||(Ls=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,o,a,i,l){var s=Math.floor((r-n)/2)+n,u=i(o,a[s],!0);return u===0?s:u>0?r-s>1?t(s,r,o,a,i,l):l==e.LEAST_UPPER_BOUND?r<a.length?r:-1:s:s-n>1?t(n,s,o,a,i,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(r,o,a,i){if(o.length===0)return-1;var l=t(-1,o.length,r,o,a,i||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&a(o[l],o[l-1],!0)===0;)--l;return l}}(aa)),aa}var ia={},zs;function BA(){if(zs)return ia;zs=1;function e(r,o,a){var i=r[o];r[o]=r[a],r[a]=i}function t(r,o){return Math.round(r+Math.random()*(o-r))}function n(r,o,a,i){if(a<i){var l=t(a,i),s=a-1;e(r,l,i);for(var u=r[i],c=a;c<i;c++)o(r[c],u)<=0&&(s+=1,e(r,s,c));e(r,s+1,c);var h=s+1;n(r,o,a,h-1),n(r,o,h+1,i)}}return ia.quickSort=function(r,o){n(r,o,0,r.length-1)},ia}var js;function DA(){if(js)return Hn;js=1;var e=dr(),t=jA(),n=ld().ArraySet,r=id(),o=BA().quickSort;function a(u,c){var h=u;return typeof u=="string"&&(h=e.parseSourceMapInput(u)),h.sections!=null?new s(h,c):new i(h,c)}a.fromSourceMap=function(u,c){return i.fromSourceMap(u,c)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(c,h){var d=c.charAt(h);return d===";"||d===","},a.prototype._parseMappings=function(c,h){throw new Error("Subclasses must implement _parseMappings")},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(c,h,d){var f=h||null,p=d||a.GENERATED_ORDER,b;switch(p){case a.GENERATED_ORDER:b=this._generatedMappings;break;case a.ORIGINAL_ORDER:b=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var x=this.sourceRoot;b.map(function(w){var k=w.source===null?null:this._sources.at(w.source);return k=e.computeSourceURL(x,k,this._sourceMapURL),{source:k,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:this._names.at(w.name)}},this).forEach(c,f)},a.prototype.allGeneratedPositionsFor=function(c){var h=e.getArg(c,"line"),d={source:e.getArg(c,"source"),originalLine:h,originalColumn:e.getArg(c,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var f=[],p=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(p>=0){var b=this._originalMappings[p];if(c.column===void 0)for(var x=b.originalLine;b&&b.originalLine===x;)f.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p];else for(var w=b.originalColumn;b&&b.originalLine===h&&b.originalColumn==w;)f.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p]}return f},Hn.SourceMapConsumer=a;function i(u,c){var h=u;typeof u=="string"&&(h=e.parseSourceMapInput(u));var d=e.getArg(h,"version"),f=e.getArg(h,"sources"),p=e.getArg(h,"names",[]),b=e.getArg(h,"sourceRoot",null),x=e.getArg(h,"sourcesContent",null),w=e.getArg(h,"mappings"),k=e.getArg(h,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);b&&(b=e.normalize(b)),f=f.map(String).map(e.normalize).map(function(S){return b&&e.isAbsolute(b)&&e.isAbsolute(S)?e.relative(b,S):S}),this._names=n.fromArray(p.map(String),!0),this._sources=n.fromArray(f,!0),this._absoluteSources=this._sources.toArray().map(function(S){return e.computeSourceURL(b,S,c)}),this.sourceRoot=b,this.sourcesContent=x,this._mappings=w,this._sourceMapURL=c,this.file=k}i.prototype=Object.create(a.prototype),i.prototype.consumer=a,i.prototype._findSourceIndex=function(u){var c=u;if(this.sourceRoot!=null&&(c=e.relative(this.sourceRoot,c)),this._sources.has(c))return this._sources.indexOf(c);var h;for(h=0;h<this._absoluteSources.length;++h)if(this._absoluteSources[h]==u)return h;return-1},i.fromSourceMap=function(c,h){var d=Object.create(i.prototype),f=d._names=n.fromArray(c._names.toArray(),!0),p=d._sources=n.fromArray(c._sources.toArray(),!0);d.sourceRoot=c._sourceRoot,d.sourcesContent=c._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=c._file,d._sourceMapURL=h,d._absoluteSources=d._sources.toArray().map(function(y){return e.computeSourceURL(d.sourceRoot,y,h)});for(var b=c._mappings.toArray().slice(),x=d.__generatedMappings=[],w=d.__originalMappings=[],k=0,S=b.length;k<S;k++){var v=b[k],_=new l;_.generatedLine=v.generatedLine,_.generatedColumn=v.generatedColumn,v.source&&(_.source=p.indexOf(v.source),_.originalLine=v.originalLine,_.originalColumn=v.originalColumn,v.name&&(_.name=f.indexOf(v.name)),w.push(_)),x.push(_)}return o(d.__originalMappings,e.compareByOriginalPositions),d},i.prototype._version=3,Object.defineProperty(i.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}i.prototype._parseMappings=function(c,h){for(var d=1,f=0,p=0,b=0,x=0,w=0,k=c.length,S=0,v={},_={},y=[],C=[],I,R,E,O,M;S<k;)if(c.charAt(S)===";")d++,S++,f=0;else if(c.charAt(S)===",")S++;else{for(I=new l,I.generatedLine=d,O=S;O<k&&!this._charIsMappingSeparator(c,O);O++);if(R=c.slice(S,O),E=v[R],E)S+=R.length;else{for(E=[];S<O;)r.decode(c,S,_),M=_.value,S=_.rest,E.push(M);if(E.length===2)throw new Error("Found a source, but no line and column");if(E.length===3)throw new Error("Found a source and line, but no column");v[R]=E}I.generatedColumn=f+E[0],f=I.generatedColumn,E.length>1&&(I.source=x+E[1],x+=E[1],I.originalLine=p+E[2],p=I.originalLine,I.originalLine+=1,I.originalColumn=b+E[3],b=I.originalColumn,E.length>4&&(I.name=w+E[4],w+=E[4])),C.push(I),typeof I.originalLine=="number"&&y.push(I)}o(C,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=C,o(y,e.compareByOriginalPositions),this.__originalMappings=y},i.prototype._findMapping=function(c,h,d,f,p,b){if(c[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+c[d]);if(c[f]<0)throw new TypeError("Column must be greater than or equal to 0, got "+c[f]);return t.search(c,h,p,b)},i.prototype.computeColumnSpans=function(){for(var c=0;c<this._generatedMappings.length;++c){var h=this._generatedMappings[c];if(c+1<this._generatedMappings.length){var d=this._generatedMappings[c+1];if(h.generatedLine===d.generatedLine){h.lastGeneratedColumn=d.generatedColumn-1;continue}}h.lastGeneratedColumn=1/0}},i.prototype.originalPositionFor=function(c){var h={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},d=this._findMapping(h,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(c,"bias",a.GREATEST_LOWER_BOUND));if(d>=0){var f=this._generatedMappings[d];if(f.generatedLine===h.generatedLine){var p=e.getArg(f,"source",null);p!==null&&(p=this._sources.at(p),p=e.computeSourceURL(this.sourceRoot,p,this._sourceMapURL));var b=e.getArg(f,"name",null);return b!==null&&(b=this._names.at(b)),{source:p,line:e.getArg(f,"originalLine",null),column:e.getArg(f,"originalColumn",null),name:b}}}return{source:null,line:null,column:null,name:null}},i.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(c){return c==null}):!1},i.prototype.sourceContentFor=function(c,h){if(!this.sourcesContent)return null;var d=this._findSourceIndex(c);if(d>=0)return this.sourcesContent[d];var f=c;this.sourceRoot!=null&&(f=e.relative(this.sourceRoot,f));var p;if(this.sourceRoot!=null&&(p=e.urlParse(this.sourceRoot))){var b=f.replace(/^file:\/\//,"");if(p.scheme=="file"&&this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];if((!p.path||p.path=="/")&&this._sources.has("/"+f))return this.sourcesContent[this._sources.indexOf("/"+f)]}if(h)return null;throw new Error('"'+f+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(c){var h=e.getArg(c,"source");if(h=this._findSourceIndex(h),h<0)return{line:null,column:null,lastColumn:null};var d={source:h,originalLine:e.getArg(c,"line"),originalColumn:e.getArg(c,"column")},f=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(c,"bias",a.GREATEST_LOWER_BOUND));if(f>=0){var p=this._originalMappings[f];if(p.source===d.source)return{line:e.getArg(p,"generatedLine",null),column:e.getArg(p,"generatedColumn",null),lastColumn:e.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Hn.BasicSourceMapConsumer=i;function s(u,c){var h=u;typeof u=="string"&&(h=e.parseSourceMapInput(u));var d=e.getArg(h,"version"),f=e.getArg(h,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new n,this._names=new n;var p={line:-1,column:0};this._sections=f.map(function(b){if(b.url)throw new Error("Support for url field in sections not implemented.");var x=e.getArg(b,"offset"),w=e.getArg(x,"line"),k=e.getArg(x,"column");if(w<p.line||w===p.line&&k<p.column)throw new Error("Section offsets must be ordered and non-overlapping.");return p=x,{generatedOffset:{generatedLine:w+1,generatedColumn:k+1},consumer:new a(e.getArg(b,"map"),c)}})}return s.prototype=Object.create(a.prototype),s.prototype.constructor=a,s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){for(var u=[],c=0;c<this._sections.length;c++)for(var h=0;h<this._sections[c].consumer.sources.length;h++)u.push(this._sections[c].consumer.sources[h]);return u}}),s.prototype.originalPositionFor=function(c){var h={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},d=t.search(h,this._sections,function(p,b){var x=p.generatedLine-b.generatedOffset.generatedLine;return x||p.generatedColumn-b.generatedOffset.generatedColumn}),f=this._sections[d];return f?f.consumer.originalPositionFor({line:h.generatedLine-(f.generatedOffset.generatedLine-1),column:h.generatedColumn-(f.generatedOffset.generatedLine===h.generatedLine?f.generatedOffset.generatedColumn-1:0),bias:c.bias}):{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(c){return c.consumer.hasContentsOfAllSources()})},s.prototype.sourceContentFor=function(c,h){for(var d=0;d<this._sections.length;d++){var f=this._sections[d],p=f.consumer.sourceContentFor(c,!0);if(p)return p}if(h)return null;throw new Error('"'+c+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(c){for(var h=0;h<this._sections.length;h++){var d=this._sections[h];if(d.consumer._findSourceIndex(e.getArg(c,"source"))!==-1){var f=d.consumer.generatedPositionFor(c);if(f){var p={line:f.line+(d.generatedOffset.generatedLine-1),column:f.column+(d.generatedOffset.generatedLine===f.line?d.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},s.prototype._parseMappings=function(c,h){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var f=this._sections[d],p=f.consumer._generatedMappings,b=0;b<p.length;b++){var x=p[b],w=f.consumer._sources.at(x.source);w=e.computeSourceURL(f.consumer.sourceRoot,w,this._sourceMapURL),this._sources.add(w),w=this._sources.indexOf(w);var k=null;x.name&&(k=f.consumer._names.at(x.name),this._names.add(k),k=this._names.indexOf(k));var S={source:w,generatedLine:x.generatedLine+(f.generatedOffset.generatedLine-1),generatedColumn:x.generatedColumn+(f.generatedOffset.generatedLine===x.generatedLine?f.generatedOffset.generatedColumn-1:0),originalLine:x.originalLine,originalColumn:x.originalColumn,name:k};this.__generatedMappings.push(S),typeof S.originalLine=="number"&&this.__originalMappings.push(S)}o(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),o(this.__originalMappings,e.compareByOriginalPositions)},Hn.IndexedSourceMapConsumer=s,Hn}var la={},Bs;function FA(){if(Bs)return la;Bs=1;var e=sd().SourceMapGenerator,t=dr(),n=/(\r?\n)/,r=10,o="$$$isSourceNode$$$";function a(i,l,s,u,c){this.children=[],this.sourceContents={},this.line=i??null,this.column=l??null,this.source=s??null,this.name=c??null,this[o]=!0,u!=null&&this.add(u)}return a.fromStringWithSourceMap=function(l,s,u){var c=new a,h=l.split(n),d=0,f=function(){var k=v(),S=v()||"";return k+S;function v(){return d<h.length?h[d++]:void 0}},p=1,b=0,x=null;return s.eachMapping(function(k){if(x!==null)if(p<k.generatedLine)w(x,f()),p++,b=0;else{var S=h[d]||"",v=S.substr(0,k.generatedColumn-b);h[d]=S.substr(k.generatedColumn-b),b=k.generatedColumn,w(x,v),x=k;return}for(;p<k.generatedLine;)c.add(f()),p++;if(b<k.generatedColumn){var S=h[d]||"";c.add(S.substr(0,k.generatedColumn)),h[d]=S.substr(k.generatedColumn),b=k.generatedColumn}x=k},this),d<h.length&&(x&&w(x,f()),c.add(h.splice(d).join(""))),s.sources.forEach(function(k){var S=s.sourceContentFor(k);S!=null&&(u!=null&&(k=t.join(u,k)),c.setSourceContent(k,S))}),c;function w(k,S){if(k===null||k.source===void 0)c.add(S);else{var v=u?t.join(u,k.source):k.source;c.add(new a(k.originalLine,k.originalColumn,v,S,k.name))}}},a.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(s){this.add(s)},this);else if(l[o]||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},a.prototype.prepend=function(l){if(Array.isArray(l))for(var s=l.length-1;s>=0;s--)this.prepend(l[s]);else if(l[o]||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},a.prototype.walk=function(l){for(var s,u=0,c=this.children.length;u<c;u++)s=this.children[u],s[o]?s.walk(l):s!==""&&l(s,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(l){var s,u,c=this.children.length;if(c>0){for(s=[],u=0;u<c-1;u++)s.push(this.children[u]),s.push(l);s.push(this.children[u]),this.children=s}return this},a.prototype.replaceRight=function(l,s){var u=this.children[this.children.length-1];return u[o]?u.replaceRight(l,s):typeof u=="string"?this.children[this.children.length-1]=u.replace(l,s):this.children.push("".replace(l,s)),this},a.prototype.setSourceContent=function(l,s){this.sourceContents[t.toSetString(l)]=s},a.prototype.walkSourceContents=function(l){for(var s=0,u=this.children.length;s<u;s++)this.children[s][o]&&this.children[s].walkSourceContents(l);for(var c=Object.keys(this.sourceContents),s=0,u=c.length;s<u;s++)l(t.fromSetString(c[s]),this.sourceContents[c[s]])},a.prototype.toString=function(){var l="";return this.walk(function(s){l+=s}),l},a.prototype.toStringWithSourceMap=function(l){var s={code:"",line:1,column:0},u=new e(l),c=!1,h=null,d=null,f=null,p=null;return this.walk(function(b,x){s.code+=b,x.source!==null&&x.line!==null&&x.column!==null?((h!==x.source||d!==x.line||f!==x.column||p!==x.name)&&u.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name}),h=x.source,d=x.line,f=x.column,p=x.name,c=!0):c&&(u.addMapping({generated:{line:s.line,column:s.column}}),h=null,c=!1);for(var w=0,k=b.length;w<k;w++)b.charCodeAt(w)===r?(s.line++,s.column=0,w+1===k?(h=null,c=!1):c&&u.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name})):s.column++}),this.walkSourceContents(function(b,x){u.setSourceContent(b,x)}),{code:s.code,map:u}},la.SourceNode=a,la}var Ds;function HA(){return Ds||(Ds=1,Fn.SourceMapGenerator=sd().SourceMapGenerator,Fn.SourceMapConsumer=DA().SourceMapConsumer,Fn.SourceNode=FA().SourceNode),Fn}(function(e,t){t.__esModule=!0;var n=Ce,r=void 0;try{var o=HA();r=o.SourceNode}catch{}r||(r=function(l,s,u,c){this.src="",c&&this.add(c)},r.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 a(l,s,u){if(n.isArray(l)){for(var c=[],h=0,d=l.length;h<d;h++)c.push(s.wrap(l[h],u));return c}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function i(l){this.srcFile=l,this.source=[]}i.prototype={isEmpty:function(){return!this.source.length},prepend:function(s,u){this.source.unshift(this.wrap(s,u))},push:function(s,u){this.source.push(this.wrap(s,u))},merge:function(){var s=this.empty();return this.each(function(u){s.add([" ",u,`
|
|
588
|
-
`])}),s},each:function(s){for(var u=0,c=this.source.length;u<c;u++)s(this.source[u])},empty:function(){var s=this.currentLocation||{start:{}};return new r(s.start.line,s.start.column,this.srcFile)},wrap:function(s){var u=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return s instanceof r?s:(s=a(s,this,u),new r(u.start.line,u.start.column,this.srcFile,s))},functionCall:function(s,u,c){return c=this.generateList(c),this.wrap([s,u?"."+u+"(":"(",c,")"])},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 u=this,c=[];Object.keys(s).forEach(function(d){var f=a(s[d],u);f!=="undefined"&&c.push([u.quotedString(d),":",f])});var h=this.generateList(c);return h.prepend("{"),h.add("}"),h},generateList:function(s){for(var u=this.empty(),c=0,h=s.length;c<h;c++)c&&u.add(","),u.add(a(s[c],this));return u},generateArray:function(s){var u=this.generateList(s);return u.prepend("["),u.add("]"),u}},t.default=i,e.exports=t.default})(ei,ei.exports);var
|
|
587
|
+
`+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 i.options={},i.performAction=function(s,u,c,h){function d(f,p){return u.yytext=u.yytext.substring(f,u.yyleng-p+f)}switch(c){case 0:if(u.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):u.yytext.slice(-1)==="\\"?(d(0,1),this.begin("emu")):this.begin("mu"),u.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(u.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 u.yytext=d(1,2).replace(/\\"/g,'"'),80;case 32:return u.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 u.yytext=u.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},i.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.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}},i}();r.lexer=o;function a(){this.yy={}}return a.prototype=r,r.Parser=a,new a}();t.default=n,e.exports=t.default})(qa,qa.exports);var lA=qa.exports,Va={exports:{}},Ya={exports:{}};(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var r=ct,o=n(r);function a(){this.parents=[]}a.prototype={constructor:a,mutating:!1,acceptKey:function(c,h){var d=this.accept(c[h]);if(this.mutating){if(d&&!a.prototype[d.type])throw new o.default('Unexpected node type "'+d.type+'" found when accepting '+h+" on "+c.type);c[h]=d}},acceptRequired:function(c,h){if(this.acceptKey(c,h),!c[h])throw new o.default(c.type+" requires "+h)},acceptArray:function(c){for(var h=0,d=c.length;h<d;h++)this.acceptKey(c,h),c[h]||(c.splice(h,1),h--,d--)},accept:function(c){if(c){if(!this[c.type])throw new o.default("Unknown type: "+c.type,c);this.current&&this.parents.unshift(this.current),this.current=c;var h=this[c.type](c);if(this.current=this.parents.shift(),!this.mutating||h)return h;if(h!==!1)return c}},Program:function(c){this.acceptArray(c.body)},MustacheStatement:i,Decorator:i,BlockStatement:l,DecoratorBlock:l,PartialStatement:s,PartialBlockStatement:function(c){s.call(this,c),this.acceptKey(c,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:i,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(c){this.acceptArray(c.pairs)},HashPair:function(c){this.acceptRequired(c,"value")}};function i(u){this.acceptRequired(u,"path"),this.acceptArray(u.params),this.acceptKey(u,"hash")}function l(u){i.call(this,u),this.acceptKey(u,"program"),this.acceptKey(u,"inverse")}function s(u){this.acceptRequired(u,"name"),this.acceptArray(u.params),this.acceptKey(u,"hash")}t.default=a,e.exports=t.default})(Ya,Ya.exports);var od=Ya.exports;(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var r=od,o=n(r);function a(){var c=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=c}a.prototype=new o.default,a.prototype.Program=function(c){var h=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var f=c.body,p=0,b=f.length;p<b;p++){var x=f[p],w=this.accept(x);if(w){var k=i(f,p,d),S=l(f,p,d),v=w.openStandalone&&k,_=w.closeStandalone&&S,y=w.inlineStandalone&&k&&S;w.close&&s(f,p,!0),w.open&&u(f,p,!0),h&&y&&(s(f,p),u(f,p)&&x.type==="PartialStatement"&&(x.indent=/([ \t]+$)/.exec(f[p-1].original)[1])),h&&v&&(s((x.program||x.inverse).body),u(f,p)),h&&_&&(s(f,p),u((x.inverse||x.program).body))}}return c},a.prototype.BlockStatement=a.prototype.DecoratorBlock=a.prototype.PartialBlockStatement=function(c){this.accept(c.program),this.accept(c.inverse);var h=c.program||c.inverse,d=c.program&&c.inverse,f=d,p=d;if(d&&d.chained)for(f=d.body[0].program;p.chained;)p=p.body[p.body.length-1].program;var b={open:c.openStrip.open,close:c.closeStrip.close,openStandalone:l(h.body),closeStandalone:i((f||h).body)};if(c.openStrip.close&&s(h.body,null,!0),d){var x=c.inverseStrip;x.open&&u(h.body,null,!0),x.close&&s(f.body,null,!0),c.closeStrip.open&&u(p.body,null,!0),!this.options.ignoreStandalone&&i(h.body)&&l(f.body)&&(u(h.body),s(f.body))}else c.closeStrip.open&&u(h.body,null,!0);return b},a.prototype.Decorator=a.prototype.MustacheStatement=function(c){return c.strip},a.prototype.PartialStatement=a.prototype.CommentStatement=function(c){var h=c.strip||{};return{inlineStandalone:!0,open:h.open,close:h.close}};function i(c,h,d){h===void 0&&(h=c.length);var f=c[h-1],p=c[h-2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(f.original)}function l(c,h,d){h===void 0&&(h=-1);var f=c[h+1],p=c[h+2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(f.original)}function s(c,h,d){var f=c[h==null?0:h+1];if(!(!f||f.type!=="ContentStatement"||!d&&f.rightStripped)){var p=f.value;f.value=f.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),f.rightStripped=f.value!==p}}function u(c,h,d){var f=c[h==null?c.length-1:h-1];if(!(!f||f.type!=="ContentStatement"||!d&&f.leftStripped)){var p=f.value;return f.value=f.value.replace(d?/\s+$/:/[ \t]+$/,""),f.leftStripped=f.value!==p,f.leftStripped}}t.default=a,e.exports=t.default})(Va,Va.exports);var sA=Va.exports,ut={};ut.__esModule=!0;ut.SourceLocation=dA;ut.id=hA;ut.stripFlags=fA;ut.stripComment=pA;ut.preparePath=gA;ut.prepareMustache=mA;ut.prepareRawBlock=bA;ut.prepareBlock=xA;ut.prepareProgram=vA;ut.preparePartialBlock=kA;function cA(e){return e&&e.__esModule?e:{default:e}}var uA=ct,Ni=cA(uA);function Mi(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new Ni.default(e.path.original+" doesn't match "+t,n)}}function dA(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 hA(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function fA(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function pA(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function gA(e,t,n){n=this.locInfo(n);for(var r=e?"@":"",o=[],a=0,i=0,l=t.length;i<l;i++){var s=t[i].part,u=t[i].original!==s;if(r+=(t[i].separator||"")+s,!u&&(s===".."||s==="."||s==="this")){if(o.length>0)throw new Ni.default("Invalid path: "+r,{loc:n});s===".."&&a++}else o.push(s)}return{type:"PathExpression",data:e,depth:a,parts:o,original:r,loc:n}}function mA(e,t,n,r,o,a){var i=r.charAt(3)||r.charAt(2),l=i!=="{"&&i!=="&",s=/\*/.test(r);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:o,loc:this.locInfo(a)}}function bA(e,t,n,r){Mi(e,n),r=this.locInfo(r);var o={type:"Program",body:t,strip:{},loc:r};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:o,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}}function xA(e,t,n,r,o,a){r&&r.path&&Mi(e,r);var i=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(i)throw new Ni.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=r.strip),s=n.strip,l=n.program}return o&&(o=l,l=t,t=o),{type:i?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:s,closeStrip:r&&r.strip,loc:this.locInfo(a)}}function vA(e,t){if(!t&&e.length){var n=e[0].loc,r=e[e.length-1].loc;n&&r&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function kA(e,t,n,r){return Mi(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(r)}}cr.__esModule=!0;cr.parseWithoutProcessing=ad;cr.parse=RA;function wA(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 Pi(e){return e&&e.__esModule?e:{default:e}}var SA=lA,Ka=Pi(SA),$A=sA,_A=Pi($A),CA=ut,AA=wA(CA),yA=ct,Bn=Pi(yA),IA=Ce;cr.parser=Ka.default;var Br={};IA.extend(Br,AA);function ad(e,t){if(e.type==="Program")return TA(e),e;Ka.default.yy=Br,Br.locInfo=function(r){return new Br.SourceLocation(t&&t.srcName,r)};var n=Ka.default.parse(e);return n}function RA(e,t){var n=ad(e,t),r=new _A.default(t);return r.accept(n)}function TA(e){Ja(e)}function Ja(e){if(e!=null){if(Array.isArray(e)){e.forEach(Ja);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!EA(e.depth))throw new Bn.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new Bn.default("Invalid AST: PathExpression.parts must be an array");for(var t=0;t<e.parts.length;t++)if(typeof e.parts[t]!="string")throw new Bn.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new Bn.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new Bn.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(n){n!=="loc"&&Ja(e[n])})}}}function EA(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var ur={};ur.__esModule=!0;ur.Compiler=Xa;ur.precompile=LA;ur.compile=OA;function id(e){return e&&e.__esModule?e:{default:e}}var NA=ct,Vn=id(NA),nr=Ce,MA=rd,Dn=id(MA),PA=[].slice;function Xa(){}Xa.prototype={compiler:Xa,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var r=0;r<n;r++){var o=this.opcodes[r],a=t.opcodes[r];if(o.opcode!==a.opcode||!ld(o.args,a.args))return!1}n=this.children.length;for(var r=0;r<n;r++)if(!this.children[r].equals(t.children[r]))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=nr.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,r=n.compile(t,this.options),o=this.guid++;return this.usePartial=this.usePartial||r.usePartial,this.children[o]=r,this.useDepths=this.useDepths||r.useDepths,o},accept:function(t){if(!this[t.type])throw new Vn.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,r=n.length,o=0;o<r;o++)this.accept(n[o]);return this.options.blockParams.shift(),this.isSimple=r===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){Ts(t);var n=t.program,r=t.inverse;n=n&&this.compileProgram(n),r=r&&this.compileProgram(r);var o=this.classifySexpr(t);o==="helper"?this.helperSexpr(t,n,r):o==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",n),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,n,r),this.opcode("pushProgram",n),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var n=t.program&&this.compileProgram(t.program),r=this.setupFullMustacheParams(t,n,void 0),o=t.path;this.useDecorators=!0,this.opcode("registerDecorator",r.length,o.original)},PartialStatement:function(t){this.usePartial=!0;var n=t.program;n&&(n=this.compileProgram(t.program));var r=t.params;if(r.length>1)throw new Vn.default("Unsupported number of partial arguments: "+r.length,t);r.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):r.push({type:"PathExpression",parts:[],depth:0}));var o=t.name.original,a=t.name.type==="SubExpression";a&&this.accept(t.name),this.setupFullMustacheParams(t,n,void 0,!0);var i=t.indent||"";this.options.preventIndent&&i&&(this.opcode("appendContent",i),i=""),this.opcode("invokePartial",a,o,i),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){Ts(t);var n=this.classifySexpr(t);n==="simple"?this.simpleSexpr(t):n==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,n,r){var o=t.path,a=o.parts[0],i=n!=null||r!=null;this.opcode("getContext",o.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",r),o.strict=!0,this.accept(o),this.opcode("invokeAmbiguous",a,i)},simpleSexpr:function(t){var n=t.path;n.strict=!0,this.accept(n),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,n,r){var o=this.setupFullMustacheParams(t,n,r),a=t.path,i=a.parts[0];if(this.options.knownHelpers[i])this.opcode("invokeKnownHelper",o.length,i);else{if(this.options.knownHelpersOnly)throw new Vn.default("You specified knownHelpersOnly, but used the unknown helper "+i,t);a.strict=!0,a.falsy=!0,this.accept(a),this.opcode("invokeHelper",o.length,a.original,Dn.default.helpers.simpleId(a))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],r=Dn.default.helpers.scopedId(t),o=!t.depth&&!r&&this.blockParamIndex(n);o?this.opcode("lookupBlockParam",o,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,r):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,r=0,o=n.length;for(this.opcode("pushHash");r<o;r++)this.pushParam(n[r].value);for(;r--;)this.opcode("assignToHash",n[r].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:PA.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var n=Dn.default.helpers.simpleId(t.path),r=n&&!!this.blockParamIndex(t.path.parts[0]),o=!r&&Dn.default.helpers.helperExpression(t),a=!r&&(o||n);if(a&&!o){var i=t.path.parts[0],l=this.options;l.knownHelpers[i]?o=!0:l.knownHelpersOnly&&(a=!1)}return o?"helper":a?"ambiguous":"simple"},pushParams:function(t){for(var n=0,r=t.length;n<r;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 r=void 0;if(t.parts&&!Dn.default.helpers.scopedId(t)&&!t.depth&&(r=this.blockParamIndex(t.parts[0])),r){var o=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",r,o)}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,r,o){var a=t.params;return this.pushParams(a),this.opcode("pushProgram",n),this.opcode("pushProgram",r),t.hash?this.accept(t.hash):this.opcode("emptyHash",o),a},blockParamIndex:function(t){for(var n=0,r=this.options.blockParams.length;n<r;n++){var o=this.options.blockParams[n],a=o&&nr.indexOf(o,t);if(o&&a>=0)return[n,a]}}};function LA(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Vn.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 r=n.parse(e,t),o=new n.Compiler().compile(r,t);return new n.JavaScriptCompiler().compile(o,t)}function OA(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Vn.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=nr.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var r=void 0;function o(){var i=n.parse(e,t),l=new n.Compiler().compile(i,t),s=new n.JavaScriptCompiler().compile(l,t,void 0,!0);return n.template(s)}function a(i,l){return r||(r=o()),r.call(this,i,l)}return a._setup=function(i){return r||(r=o()),r._setup(i)},a._child=function(i,l,s,u){return r||(r=o()),r._child(i,l,s,u)},a}function ld(e,t){if(e===t)return!0;if(nr.isArray(e)&&nr.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!ld(e[n],t[n]))return!1;return!0}}function Ts(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 Qa={exports:{}},ei={exports:{}},Fn={},ta={},Ir={},Rr={},Es;function zA(){if(Es)return Rr;Es=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Rr.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Rr.decode=function(t){var n=65,r=90,o=97,a=122,i=48,l=57,s=43,u=47,c=26,h=52;return n<=t&&t<=r?t-n:o<=t&&t<=a?t-o+c:i<=t&&t<=l?t-i+h:t==s?62:t==u?63:-1},Rr}var Ns;function sd(){if(Ns)return Ir;Ns=1;var e=zA(),t=5,n=1<<t,r=n-1,o=n;function a(l){return l<0?(-l<<1)+1:(l<<1)+0}function i(l){var s=(l&1)===1,u=l>>1;return s?-u:u}return Ir.encode=function(s){var u="",c,h=a(s);do c=h&r,h>>>=t,h>0&&(c|=o),u+=e.encode(c);while(h>0);return u},Ir.decode=function(s,u,c){var h=s.length,d=0,f=0,p,b;do{if(u>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(b=e.decode(s.charCodeAt(u++)),b===-1)throw new Error("Invalid base64 digit: "+s.charAt(u-1));p=!!(b&o),b&=r,d=d+(b<<f),f+=t}while(p);c.value=i(d),c.rest=u},Ir}var na={},Ms;function dr(){return Ms||(Ms=1,function(e){function t(v,_,y){if(_ in v)return v[_];if(arguments.length===3)return y;throw new Error('"'+_+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(v){var _=v.match(n);return _?{scheme:_[1],auth:_[2],host:_[3],port:_[4],path:_[5]}:null}e.urlParse=o;function a(v){var _="";return v.scheme&&(_+=v.scheme+":"),_+="//",v.auth&&(_+=v.auth+"@"),v.host&&(_+=v.host),v.port&&(_+=":"+v.port),v.path&&(_+=v.path),_}e.urlGenerate=a;function i(v){var _=v,y=o(v);if(y){if(!y.path)return v;_=y.path}for(var C=e.isAbsolute(_),I=_.split(/\/+/),R,E=0,L=I.length-1;L>=0;L--)R=I[L],R==="."?I.splice(L,1):R===".."?E++:E>0&&(R===""?(I.splice(L+1,E),E=0):(I.splice(L,2),E--));return _=I.join("/"),_===""&&(_=C?"/":"."),y?(y.path=_,a(y)):_}e.normalize=i;function l(v,_){v===""&&(v="."),_===""&&(_=".");var y=o(_),C=o(v);if(C&&(v=C.path||"/"),y&&!y.scheme)return C&&(y.scheme=C.scheme),a(y);if(y||_.match(r))return _;if(C&&!C.host&&!C.path)return C.host=_,a(C);var I=_.charAt(0)==="/"?_:i(v.replace(/\/+$/,"")+"/"+_);return C?(C.path=I,a(C)):I}e.join=l,e.isAbsolute=function(v){return v.charAt(0)==="/"||n.test(v)};function s(v,_){v===""&&(v="."),v=v.replace(/\/$/,"");for(var y=0;_.indexOf(v+"/")!==0;){var C=v.lastIndexOf("/");if(C<0||(v=v.slice(0,C),v.match(/^([^\/]+:\/)?\/*$/)))return _;++y}return Array(y+1).join("../")+_.substr(v.length+1)}e.relative=s;var u=function(){var v=Object.create(null);return!("__proto__"in v)}();function c(v){return v}function h(v){return f(v)?"$"+v:v}e.toSetString=u?c:h;function d(v){return f(v)?v.slice(1):v}e.fromSetString=u?c:d;function f(v){if(!v)return!1;var _=v.length;if(_<9||v.charCodeAt(_-1)!==95||v.charCodeAt(_-2)!==95||v.charCodeAt(_-3)!==111||v.charCodeAt(_-4)!==116||v.charCodeAt(_-5)!==111||v.charCodeAt(_-6)!==114||v.charCodeAt(_-7)!==112||v.charCodeAt(_-8)!==95||v.charCodeAt(_-9)!==95)return!1;for(var y=_-10;y>=0;y--)if(v.charCodeAt(y)!==36)return!1;return!0}function p(v,_,y){var C=x(v.source,_.source);return C!==0||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0||y)||(C=v.generatedColumn-_.generatedColumn,C!==0)||(C=v.generatedLine-_.generatedLine,C!==0)?C:x(v.name,_.name)}e.compareByOriginalPositions=p;function b(v,_,y){var C=v.generatedLine-_.generatedLine;return C!==0||(C=v.generatedColumn-_.generatedColumn,C!==0||y)||(C=x(v.source,_.source),C!==0)||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0)?C:x(v.name,_.name)}e.compareByGeneratedPositionsDeflated=b;function x(v,_){return v===_?0:v===null?1:_===null?-1:v>_?1:-1}function w(v,_){var y=v.generatedLine-_.generatedLine;return y!==0||(y=v.generatedColumn-_.generatedColumn,y!==0)||(y=x(v.source,_.source),y!==0)||(y=v.originalLine-_.originalLine,y!==0)||(y=v.originalColumn-_.originalColumn,y!==0)?y:x(v.name,_.name)}e.compareByGeneratedPositionsInflated=w;function k(v){return JSON.parse(v.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=k;function S(v,_,y){if(_=_||"",v&&(v[v.length-1]!=="/"&&_[0]!=="/"&&(v+="/"),_=v+_),y){var C=o(y);if(!C)throw new Error("sourceMapURL could not be parsed");if(C.path){var I=C.path.lastIndexOf("/");I>=0&&(C.path=C.path.substring(0,I+1))}_=l(a(C),_)}return i(_)}e.computeSourceURL=S}(na)),na}var ra={},Ps;function cd(){if(Ps)return ra;Ps=1;var e=dr(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(a,i){for(var l=new r,s=0,u=a.length;s<u;s++)l.add(a[s],i);return l},r.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(a,i){var l=n?a:e.toSetString(a),s=n?this.has(a):t.call(this._set,l),u=this._array.length;(!s||i)&&this._array.push(a),s||(n?this._set.set(a,u):this._set[l]=u)},r.prototype.has=function(a){if(n)return this._set.has(a);var i=e.toSetString(a);return t.call(this._set,i)},r.prototype.indexOf=function(a){if(n){var i=this._set.get(a);if(i>=0)return i}else{var l=e.toSetString(a);if(t.call(this._set,l))return this._set[l]}throw new Error('"'+a+'" is not in the set.')},r.prototype.at=function(a){if(a>=0&&a<this._array.length)return this._array[a];throw new Error("No element indexed by "+a)},r.prototype.toArray=function(){return this._array.slice()},ra.ArraySet=r,ra}var oa={},Ls;function jA(){if(Ls)return oa;Ls=1;var e=dr();function t(r,o){var a=r.generatedLine,i=o.generatedLine,l=r.generatedColumn,s=o.generatedColumn;return i>a||i==a&&s>=l||e.compareByGeneratedPositionsInflated(r,o)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(o,a){this._array.forEach(o,a)},n.prototype.add=function(o){t(this._last,o)?(this._last=o,this._array.push(o)):(this._sorted=!1,this._array.push(o))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},oa.MappingList=n,oa}var Os;function ud(){if(Os)return ta;Os=1;var e=sd(),t=dr(),n=cd().ArraySet,r=jA().MappingList;function o(a){a||(a={}),this._file=t.getArg(a,"file",null),this._sourceRoot=t.getArg(a,"sourceRoot",null),this._skipValidation=t.getArg(a,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return o.prototype._version=3,o.fromSourceMap=function(i){var l=i.sourceRoot,s=new o({file:i.file,sourceRoot:l});return i.eachMapping(function(u){var c={generated:{line:u.generatedLine,column:u.generatedColumn}};u.source!=null&&(c.source=u.source,l!=null&&(c.source=t.relative(l,c.source)),c.original={line:u.originalLine,column:u.originalColumn},u.name!=null&&(c.name=u.name)),s.addMapping(c)}),i.sources.forEach(function(u){var c=u;l!==null&&(c=t.relative(l,u)),s._sources.has(c)||s._sources.add(c);var h=i.sourceContentFor(u);h!=null&&s.setSourceContent(u,h)}),s},o.prototype.addMapping=function(i){var l=t.getArg(i,"generated"),s=t.getArg(i,"original",null),u=t.getArg(i,"source",null),c=t.getArg(i,"name",null);this._skipValidation||this._validateMapping(l,s,u,c),u!=null&&(u=String(u),this._sources.has(u)||this._sources.add(u)),c!=null&&(c=String(c),this._names.has(c)||this._names.add(c)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:s!=null&&s.line,originalColumn:s!=null&&s.column,source:u,name:c})},o.prototype.setSourceContent=function(i,l){var s=i;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))},o.prototype.applySourceMap=function(i,l,s){var u=l;if(l==null){if(i.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);u=i.file}var c=this._sourceRoot;c!=null&&(u=t.relative(c,u));var h=new n,d=new n;this._mappings.unsortedForEach(function(f){if(f.source===u&&f.originalLine!=null){var p=i.originalPositionFor({line:f.originalLine,column:f.originalColumn});p.source!=null&&(f.source=p.source,s!=null&&(f.source=t.join(s,f.source)),c!=null&&(f.source=t.relative(c,f.source)),f.originalLine=p.line,f.originalColumn=p.column,p.name!=null&&(f.name=p.name))}var b=f.source;b!=null&&!h.has(b)&&h.add(b);var x=f.name;x!=null&&!d.has(x)&&d.add(x)},this),this._sources=h,this._names=d,i.sources.forEach(function(f){var p=i.sourceContentFor(f);p!=null&&(s!=null&&(f=t.join(s,f)),c!=null&&(f=t.relative(c,f)),this.setSourceContent(f,p))},this)},o.prototype._validateMapping=function(i,l,s,u){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(!(i&&"line"in i&&"column"in i&&i.line>0&&i.column>=0&&!l&&!s&&!u)){if(i&&"line"in i&&"column"in i&&l&&"line"in l&&"column"in l&&i.line>0&&i.column>=0&&l.line>0&&l.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:i,source:s,original:l,name:u}))}},o.prototype._serializeMappings=function(){for(var i=0,l=1,s=0,u=0,c=0,h=0,d="",f,p,b,x,w=this._mappings.toArray(),k=0,S=w.length;k<S;k++){if(p=w[k],f="",p.generatedLine!==l)for(i=0;p.generatedLine!==l;)f+=";",l++;else if(k>0){if(!t.compareByGeneratedPositionsInflated(p,w[k-1]))continue;f+=","}f+=e.encode(p.generatedColumn-i),i=p.generatedColumn,p.source!=null&&(x=this._sources.indexOf(p.source),f+=e.encode(x-h),h=x,f+=e.encode(p.originalLine-1-u),u=p.originalLine-1,f+=e.encode(p.originalColumn-s),s=p.originalColumn,p.name!=null&&(b=this._names.indexOf(p.name),f+=e.encode(b-c),c=b)),d+=f}return d},o.prototype._generateSourcesContent=function(i,l){return i.map(function(s){if(!this._sourcesContents)return null;l!=null&&(s=t.relative(l,s));var u=t.toSetString(s);return Object.prototype.hasOwnProperty.call(this._sourcesContents,u)?this._sourcesContents[u]:null},this)},o.prototype.toJSON=function(){var i={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(i.file=this._file),this._sourceRoot!=null&&(i.sourceRoot=this._sourceRoot),this._sourcesContents&&(i.sourcesContent=this._generateSourcesContent(i.sources,i.sourceRoot)),i},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},ta.SourceMapGenerator=o,ta}var Hn={},aa={},zs;function BA(){return zs||(zs=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,o,a,i,l){var s=Math.floor((r-n)/2)+n,u=i(o,a[s],!0);return u===0?s:u>0?r-s>1?t(s,r,o,a,i,l):l==e.LEAST_UPPER_BOUND?r<a.length?r:-1:s:s-n>1?t(n,s,o,a,i,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(r,o,a,i){if(o.length===0)return-1;var l=t(-1,o.length,r,o,a,i||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&a(o[l],o[l-1],!0)===0;)--l;return l}}(aa)),aa}var ia={},js;function DA(){if(js)return ia;js=1;function e(r,o,a){var i=r[o];r[o]=r[a],r[a]=i}function t(r,o){return Math.round(r+Math.random()*(o-r))}function n(r,o,a,i){if(a<i){var l=t(a,i),s=a-1;e(r,l,i);for(var u=r[i],c=a;c<i;c++)o(r[c],u)<=0&&(s+=1,e(r,s,c));e(r,s+1,c);var h=s+1;n(r,o,a,h-1),n(r,o,h+1,i)}}return ia.quickSort=function(r,o){n(r,o,0,r.length-1)},ia}var Bs;function FA(){if(Bs)return Hn;Bs=1;var e=dr(),t=BA(),n=cd().ArraySet,r=sd(),o=DA().quickSort;function a(u,c){var h=u;return typeof u=="string"&&(h=e.parseSourceMapInput(u)),h.sections!=null?new s(h,c):new i(h,c)}a.fromSourceMap=function(u,c){return i.fromSourceMap(u,c)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(c,h){var d=c.charAt(h);return d===";"||d===","},a.prototype._parseMappings=function(c,h){throw new Error("Subclasses must implement _parseMappings")},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(c,h,d){var f=h||null,p=d||a.GENERATED_ORDER,b;switch(p){case a.GENERATED_ORDER:b=this._generatedMappings;break;case a.ORIGINAL_ORDER:b=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var x=this.sourceRoot;b.map(function(w){var k=w.source===null?null:this._sources.at(w.source);return k=e.computeSourceURL(x,k,this._sourceMapURL),{source:k,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:this._names.at(w.name)}},this).forEach(c,f)},a.prototype.allGeneratedPositionsFor=function(c){var h=e.getArg(c,"line"),d={source:e.getArg(c,"source"),originalLine:h,originalColumn:e.getArg(c,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var f=[],p=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(p>=0){var b=this._originalMappings[p];if(c.column===void 0)for(var x=b.originalLine;b&&b.originalLine===x;)f.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p];else for(var w=b.originalColumn;b&&b.originalLine===h&&b.originalColumn==w;)f.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p]}return f},Hn.SourceMapConsumer=a;function i(u,c){var h=u;typeof u=="string"&&(h=e.parseSourceMapInput(u));var d=e.getArg(h,"version"),f=e.getArg(h,"sources"),p=e.getArg(h,"names",[]),b=e.getArg(h,"sourceRoot",null),x=e.getArg(h,"sourcesContent",null),w=e.getArg(h,"mappings"),k=e.getArg(h,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);b&&(b=e.normalize(b)),f=f.map(String).map(e.normalize).map(function(S){return b&&e.isAbsolute(b)&&e.isAbsolute(S)?e.relative(b,S):S}),this._names=n.fromArray(p.map(String),!0),this._sources=n.fromArray(f,!0),this._absoluteSources=this._sources.toArray().map(function(S){return e.computeSourceURL(b,S,c)}),this.sourceRoot=b,this.sourcesContent=x,this._mappings=w,this._sourceMapURL=c,this.file=k}i.prototype=Object.create(a.prototype),i.prototype.consumer=a,i.prototype._findSourceIndex=function(u){var c=u;if(this.sourceRoot!=null&&(c=e.relative(this.sourceRoot,c)),this._sources.has(c))return this._sources.indexOf(c);var h;for(h=0;h<this._absoluteSources.length;++h)if(this._absoluteSources[h]==u)return h;return-1},i.fromSourceMap=function(c,h){var d=Object.create(i.prototype),f=d._names=n.fromArray(c._names.toArray(),!0),p=d._sources=n.fromArray(c._sources.toArray(),!0);d.sourceRoot=c._sourceRoot,d.sourcesContent=c._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=c._file,d._sourceMapURL=h,d._absoluteSources=d._sources.toArray().map(function(y){return e.computeSourceURL(d.sourceRoot,y,h)});for(var b=c._mappings.toArray().slice(),x=d.__generatedMappings=[],w=d.__originalMappings=[],k=0,S=b.length;k<S;k++){var v=b[k],_=new l;_.generatedLine=v.generatedLine,_.generatedColumn=v.generatedColumn,v.source&&(_.source=p.indexOf(v.source),_.originalLine=v.originalLine,_.originalColumn=v.originalColumn,v.name&&(_.name=f.indexOf(v.name)),w.push(_)),x.push(_)}return o(d.__originalMappings,e.compareByOriginalPositions),d},i.prototype._version=3,Object.defineProperty(i.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}i.prototype._parseMappings=function(c,h){for(var d=1,f=0,p=0,b=0,x=0,w=0,k=c.length,S=0,v={},_={},y=[],C=[],I,R,E,L,M;S<k;)if(c.charAt(S)===";")d++,S++,f=0;else if(c.charAt(S)===",")S++;else{for(I=new l,I.generatedLine=d,L=S;L<k&&!this._charIsMappingSeparator(c,L);L++);if(R=c.slice(S,L),E=v[R],E)S+=R.length;else{for(E=[];S<L;)r.decode(c,S,_),M=_.value,S=_.rest,E.push(M);if(E.length===2)throw new Error("Found a source, but no line and column");if(E.length===3)throw new Error("Found a source and line, but no column");v[R]=E}I.generatedColumn=f+E[0],f=I.generatedColumn,E.length>1&&(I.source=x+E[1],x+=E[1],I.originalLine=p+E[2],p=I.originalLine,I.originalLine+=1,I.originalColumn=b+E[3],b=I.originalColumn,E.length>4&&(I.name=w+E[4],w+=E[4])),C.push(I),typeof I.originalLine=="number"&&y.push(I)}o(C,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=C,o(y,e.compareByOriginalPositions),this.__originalMappings=y},i.prototype._findMapping=function(c,h,d,f,p,b){if(c[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+c[d]);if(c[f]<0)throw new TypeError("Column must be greater than or equal to 0, got "+c[f]);return t.search(c,h,p,b)},i.prototype.computeColumnSpans=function(){for(var c=0;c<this._generatedMappings.length;++c){var h=this._generatedMappings[c];if(c+1<this._generatedMappings.length){var d=this._generatedMappings[c+1];if(h.generatedLine===d.generatedLine){h.lastGeneratedColumn=d.generatedColumn-1;continue}}h.lastGeneratedColumn=1/0}},i.prototype.originalPositionFor=function(c){var h={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},d=this._findMapping(h,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(c,"bias",a.GREATEST_LOWER_BOUND));if(d>=0){var f=this._generatedMappings[d];if(f.generatedLine===h.generatedLine){var p=e.getArg(f,"source",null);p!==null&&(p=this._sources.at(p),p=e.computeSourceURL(this.sourceRoot,p,this._sourceMapURL));var b=e.getArg(f,"name",null);return b!==null&&(b=this._names.at(b)),{source:p,line:e.getArg(f,"originalLine",null),column:e.getArg(f,"originalColumn",null),name:b}}}return{source:null,line:null,column:null,name:null}},i.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(c){return c==null}):!1},i.prototype.sourceContentFor=function(c,h){if(!this.sourcesContent)return null;var d=this._findSourceIndex(c);if(d>=0)return this.sourcesContent[d];var f=c;this.sourceRoot!=null&&(f=e.relative(this.sourceRoot,f));var p;if(this.sourceRoot!=null&&(p=e.urlParse(this.sourceRoot))){var b=f.replace(/^file:\/\//,"");if(p.scheme=="file"&&this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];if((!p.path||p.path=="/")&&this._sources.has("/"+f))return this.sourcesContent[this._sources.indexOf("/"+f)]}if(h)return null;throw new Error('"'+f+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(c){var h=e.getArg(c,"source");if(h=this._findSourceIndex(h),h<0)return{line:null,column:null,lastColumn:null};var d={source:h,originalLine:e.getArg(c,"line"),originalColumn:e.getArg(c,"column")},f=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(c,"bias",a.GREATEST_LOWER_BOUND));if(f>=0){var p=this._originalMappings[f];if(p.source===d.source)return{line:e.getArg(p,"generatedLine",null),column:e.getArg(p,"generatedColumn",null),lastColumn:e.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Hn.BasicSourceMapConsumer=i;function s(u,c){var h=u;typeof u=="string"&&(h=e.parseSourceMapInput(u));var d=e.getArg(h,"version"),f=e.getArg(h,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new n,this._names=new n;var p={line:-1,column:0};this._sections=f.map(function(b){if(b.url)throw new Error("Support for url field in sections not implemented.");var x=e.getArg(b,"offset"),w=e.getArg(x,"line"),k=e.getArg(x,"column");if(w<p.line||w===p.line&&k<p.column)throw new Error("Section offsets must be ordered and non-overlapping.");return p=x,{generatedOffset:{generatedLine:w+1,generatedColumn:k+1},consumer:new a(e.getArg(b,"map"),c)}})}return s.prototype=Object.create(a.prototype),s.prototype.constructor=a,s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){for(var u=[],c=0;c<this._sections.length;c++)for(var h=0;h<this._sections[c].consumer.sources.length;h++)u.push(this._sections[c].consumer.sources[h]);return u}}),s.prototype.originalPositionFor=function(c){var h={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},d=t.search(h,this._sections,function(p,b){var x=p.generatedLine-b.generatedOffset.generatedLine;return x||p.generatedColumn-b.generatedOffset.generatedColumn}),f=this._sections[d];return f?f.consumer.originalPositionFor({line:h.generatedLine-(f.generatedOffset.generatedLine-1),column:h.generatedColumn-(f.generatedOffset.generatedLine===h.generatedLine?f.generatedOffset.generatedColumn-1:0),bias:c.bias}):{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(c){return c.consumer.hasContentsOfAllSources()})},s.prototype.sourceContentFor=function(c,h){for(var d=0;d<this._sections.length;d++){var f=this._sections[d],p=f.consumer.sourceContentFor(c,!0);if(p)return p}if(h)return null;throw new Error('"'+c+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(c){for(var h=0;h<this._sections.length;h++){var d=this._sections[h];if(d.consumer._findSourceIndex(e.getArg(c,"source"))!==-1){var f=d.consumer.generatedPositionFor(c);if(f){var p={line:f.line+(d.generatedOffset.generatedLine-1),column:f.column+(d.generatedOffset.generatedLine===f.line?d.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},s.prototype._parseMappings=function(c,h){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var f=this._sections[d],p=f.consumer._generatedMappings,b=0;b<p.length;b++){var x=p[b],w=f.consumer._sources.at(x.source);w=e.computeSourceURL(f.consumer.sourceRoot,w,this._sourceMapURL),this._sources.add(w),w=this._sources.indexOf(w);var k=null;x.name&&(k=f.consumer._names.at(x.name),this._names.add(k),k=this._names.indexOf(k));var S={source:w,generatedLine:x.generatedLine+(f.generatedOffset.generatedLine-1),generatedColumn:x.generatedColumn+(f.generatedOffset.generatedLine===x.generatedLine?f.generatedOffset.generatedColumn-1:0),originalLine:x.originalLine,originalColumn:x.originalColumn,name:k};this.__generatedMappings.push(S),typeof S.originalLine=="number"&&this.__originalMappings.push(S)}o(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),o(this.__originalMappings,e.compareByOriginalPositions)},Hn.IndexedSourceMapConsumer=s,Hn}var la={},Ds;function HA(){if(Ds)return la;Ds=1;var e=ud().SourceMapGenerator,t=dr(),n=/(\r?\n)/,r=10,o="$$$isSourceNode$$$";function a(i,l,s,u,c){this.children=[],this.sourceContents={},this.line=i??null,this.column=l??null,this.source=s??null,this.name=c??null,this[o]=!0,u!=null&&this.add(u)}return a.fromStringWithSourceMap=function(l,s,u){var c=new a,h=l.split(n),d=0,f=function(){var k=v(),S=v()||"";return k+S;function v(){return d<h.length?h[d++]:void 0}},p=1,b=0,x=null;return s.eachMapping(function(k){if(x!==null)if(p<k.generatedLine)w(x,f()),p++,b=0;else{var S=h[d]||"",v=S.substr(0,k.generatedColumn-b);h[d]=S.substr(k.generatedColumn-b),b=k.generatedColumn,w(x,v),x=k;return}for(;p<k.generatedLine;)c.add(f()),p++;if(b<k.generatedColumn){var S=h[d]||"";c.add(S.substr(0,k.generatedColumn)),h[d]=S.substr(k.generatedColumn),b=k.generatedColumn}x=k},this),d<h.length&&(x&&w(x,f()),c.add(h.splice(d).join(""))),s.sources.forEach(function(k){var S=s.sourceContentFor(k);S!=null&&(u!=null&&(k=t.join(u,k)),c.setSourceContent(k,S))}),c;function w(k,S){if(k===null||k.source===void 0)c.add(S);else{var v=u?t.join(u,k.source):k.source;c.add(new a(k.originalLine,k.originalColumn,v,S,k.name))}}},a.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(s){this.add(s)},this);else if(l[o]||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},a.prototype.prepend=function(l){if(Array.isArray(l))for(var s=l.length-1;s>=0;s--)this.prepend(l[s]);else if(l[o]||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},a.prototype.walk=function(l){for(var s,u=0,c=this.children.length;u<c;u++)s=this.children[u],s[o]?s.walk(l):s!==""&&l(s,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(l){var s,u,c=this.children.length;if(c>0){for(s=[],u=0;u<c-1;u++)s.push(this.children[u]),s.push(l);s.push(this.children[u]),this.children=s}return this},a.prototype.replaceRight=function(l,s){var u=this.children[this.children.length-1];return u[o]?u.replaceRight(l,s):typeof u=="string"?this.children[this.children.length-1]=u.replace(l,s):this.children.push("".replace(l,s)),this},a.prototype.setSourceContent=function(l,s){this.sourceContents[t.toSetString(l)]=s},a.prototype.walkSourceContents=function(l){for(var s=0,u=this.children.length;s<u;s++)this.children[s][o]&&this.children[s].walkSourceContents(l);for(var c=Object.keys(this.sourceContents),s=0,u=c.length;s<u;s++)l(t.fromSetString(c[s]),this.sourceContents[c[s]])},a.prototype.toString=function(){var l="";return this.walk(function(s){l+=s}),l},a.prototype.toStringWithSourceMap=function(l){var s={code:"",line:1,column:0},u=new e(l),c=!1,h=null,d=null,f=null,p=null;return this.walk(function(b,x){s.code+=b,x.source!==null&&x.line!==null&&x.column!==null?((h!==x.source||d!==x.line||f!==x.column||p!==x.name)&&u.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name}),h=x.source,d=x.line,f=x.column,p=x.name,c=!0):c&&(u.addMapping({generated:{line:s.line,column:s.column}}),h=null,c=!1);for(var w=0,k=b.length;w<k;w++)b.charCodeAt(w)===r?(s.line++,s.column=0,w+1===k?(h=null,c=!1):c&&u.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name})):s.column++}),this.walkSourceContents(function(b,x){u.setSourceContent(b,x)}),{code:s.code,map:u}},la.SourceNode=a,la}var Fs;function GA(){return Fs||(Fs=1,Fn.SourceMapGenerator=ud().SourceMapGenerator,Fn.SourceMapConsumer=FA().SourceMapConsumer,Fn.SourceNode=HA().SourceNode),Fn}(function(e,t){t.__esModule=!0;var n=Ce,r=void 0;try{var o=GA();r=o.SourceNode}catch{}r||(r=function(l,s,u,c){this.src="",c&&this.add(c)},r.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 a(l,s,u){if(n.isArray(l)){for(var c=[],h=0,d=l.length;h<d;h++)c.push(s.wrap(l[h],u));return c}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function i(l){this.srcFile=l,this.source=[]}i.prototype={isEmpty:function(){return!this.source.length},prepend:function(s,u){this.source.unshift(this.wrap(s,u))},push:function(s,u){this.source.push(this.wrap(s,u))},merge:function(){var s=this.empty();return this.each(function(u){s.add([" ",u,`
|
|
588
|
+
`])}),s},each:function(s){for(var u=0,c=this.source.length;u<c;u++)s(this.source[u])},empty:function(){var s=this.currentLocation||{start:{}};return new r(s.start.line,s.start.column,this.srcFile)},wrap:function(s){var u=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return s instanceof r?s:(s=a(s,this,u),new r(u.start.line,u.start.column,this.srcFile,s))},functionCall:function(s,u,c){return c=this.generateList(c),this.wrap([s,u?"."+u+"(":"(",c,")"])},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 u=this,c=[];Object.keys(s).forEach(function(d){var f=a(s[d],u);f!=="undefined"&&c.push([u.quotedString(d),":",f])});var h=this.generateList(c);return h.prepend("{"),h.add("}"),h},generateList:function(s){for(var u=this.empty(),c=0,h=s.length;c<h;c++)c&&u.add(","),u.add(a(s[c],this));return u},generateArray:function(s){var u=this.generateList(s);return u.prepend("["),u.add("]"),u}},t.default=i,e.exports=t.default})(ei,ei.exports);var WA=ei.exports;(function(e,t){t.__esModule=!0;function n(d){return d&&d.__esModule?d:{default:d}}var r=st,o=ct,a=n(o),i=Ce,l=WA,s=n(l);function u(d){this.value=d}function c(){}c.prototype={nameLookup:function(f,p){return this.internalNameLookup(f,p)},depthedLookup:function(f){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(f),")"]},compilerInfo:function(){var f=r.COMPILER_REVISION,p=r.REVISION_CHANGES[f];return[f,p]},appendToBuffer:function(f,p,b){return i.isArray(f)||(f=[f]),f=this.source.wrap(f,p),this.environment.isSimple?["return ",f,";"]:b?["buffer += ",f,";"]:(f.appendToBuffer=!0,f)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(f,p){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",f,",",JSON.stringify(p),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(f,p,b,x){this.environment=f,this.options=p,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!x,this.name=this.environment.name,this.isChild=!!b,this.context=b||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(f,p),this.useDepths=this.useDepths||f.useDepths||f.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||f.useBlockParams;var w=f.opcodes,k=void 0,S=void 0,v=void 0,_=void 0;for(v=0,_=w.length;v<_;v++)k=w[v],this.source.currentLocation=k.loc,S=S||k.loc,this[k.opcode].apply(this,k.args);if(this.source.currentLocation=S,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new a.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(),`;
|
|
589
589
|
`]),this.decorators.push("return fn;"),x?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
|
590
590
|
`),this.decorators.push(`}
|
|
591
591
|
`),this.decorators=this.decorators.merge()));var y=this.createFunctionContext(x);if(this.isChild)return y;var C={compiler:this.compilerInfo(),main:y};this.decorators&&(C.main_d=this.decorators,C.useDecorators=!0);var I=this.context,R=I.programs,E=I.decorators;for(v=0,_=R.length;v<_;v++)C[v]=R[v],E[v]&&(C[v+"_d"]=E[v],C.useDecorators=!0);return this.environment.usePartial&&(C.usePartial=!0),this.options.data&&(C.useData=!0),this.useDepths&&(C.useDepths=!0),this.useBlockParams&&(C.useBlockParams=!0),this.options.compat&&(C.compat=!0),x?C.compilerOptions=this.options:(C.compiler=JSON.stringify(C.compiler),this.source.currentLocation={start:{line:1,column:0}},C=this.objectLiteral(C),p.srcName?(C=C.toStringWithSourceMap({file:p.destName}),C.map=C.map&&C.map.toString()):C=C.toString()),C},preamble:function(){this.lastContext=0,this.source=new s.default(this.options.srcName),this.decorators=new s.default(this.options.srcName)},createFunctionContext:function(f){var p=this,b="",x=this.stackVars.concat(this.registers.list);x.length>0&&(b+=", "+x.join(", "));var w=0;Object.keys(this.aliases).forEach(function(v){var _=p.aliases[v];_.children&&_.referenceCount>1&&(b+=", alias"+ ++w+"="+v,_.children[0]="alias"+w)}),this.lookupPropertyFunctionIsUsed&&(b+=", "+this.lookupPropertyFunctionVarDeclaration());var k=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&k.push("blockParams"),this.useDepths&&k.push("depths");var S=this.mergeSource(b);return f?(k.push(S),Function.apply(this,k)):this.source.wrap(["function(",k.join(","),`) {
|
|
@@ -597,10 +597,10 @@ Expecting `+O.join(", ")+", got '"+(this.terminals_[S]||S)+"'":M="Parse error on
|
|
|
597
597
|
}
|
|
598
598
|
return undefined
|
|
599
599
|
}
|
|
600
|
-
`.trim()},blockValue:function(f){var p=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs(f,0,b);var x=this.popStack();b.splice(1,0,x),this.push(this.source.functionCall(p,"call",b))},ambiguousBlockValue:function(){var f=this.aliasable("container.hooks.blockHelperMissing"),p=[this.contextName(0)];this.setupHelperArgs("",0,p,!0),this.flushInline();var b=this.topStack();p.splice(1,0,b),this.pushSource(["if (!",this.lastHelper,") { ",b," = ",this.source.functionCall(f,"call",p),"}"])},appendContent:function(f){this.pendingContent?f=this.pendingContent+f:this.pendingLocation=this.source.currentLocation,this.pendingContent=f},append:function(){if(this.isInline())this.replaceStack(function(p){return[" != null ? ",p,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var f=this.popStack();this.pushSource(["if (",f," != null) { ",this.appendToBuffer(f,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(f){this.lastContext=f},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(f,p,b,x){var w=0;!x&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(f[w++])):this.pushContext(),this.resolvePath("context",f,w,p,b)},lookupBlockParam:function(f,p){this.useBlockParams=!0,this.push(["blockParams[",f[0],"][",f[1],"]"]),this.resolvePath("context",p,1)},lookupData:function(f,p,b){f?this.pushStackLiteral("container.data(data, "+f+")"):this.pushStackLiteral("data"),this.resolvePath("data",p,0,!0,b)},resolvePath:function(f,p,b,x,w){var k=this;if(this.options.strict||this.options.assumeObjects){this.push(h(this.options.strict&&w,this,p,b,f));return}for(var S=p.length,v=function(y){k.replaceStack(function(C){var I=k.nameLookup(C,p[y],f);return x?[" && ",I]:[" != null ? ",I," : ",C]})},_=b;_<S;_++)v(_)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(f,p){this.pushContext(),this.pushString(p),p!=="SubExpression"&&(typeof f=="string"?this.pushString(f):this.pushStackLiteral(f))},emptyHash:function(f){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(f?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var f=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(f.ids)),this.stringParams&&(this.push(this.objectLiteral(f.contexts)),this.push(this.objectLiteral(f.types))),this.push(this.objectLiteral(f.values))},pushString:function(f){this.pushStackLiteral(this.quotedString(f))},pushLiteral:function(f){this.pushStackLiteral(f)},pushProgram:function(f){f!=null?this.pushStackLiteral(this.programExpression(f)):this.pushStackLiteral(null)},registerDecorator:function(f,p){var b=this.nameLookup("decorators",p,"decorator"),x=this.setupHelperArgs(p,f);this.decorators.push(["var decorator = ",b,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+p+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",x])," || fn;"])},invokeHelper:function(f,p,b){var x=this.popStack(),w=this.setupHelper(f,p),k=[];b&&k.push(w.name),k.push(x),this.options.strict||k.push(this.aliasable("container.hooks.helperMissing"));var S=["(",this.itemsSeparatedBy(k,"||"),")"],v=this.source.functionCall(S,"call",w.callParams);this.push(v)},itemsSeparatedBy:function(f,p){var b=[];b.push(f[0]);for(var x=1;x<f.length;x++)b.push(p,f[x]);return b},invokeKnownHelper:function(f,p){var b=this.setupHelper(f,p);this.push(this.source.functionCall(b.name,"call",b.callParams))},invokeAmbiguous:function(f,p){this.useRegister("helper");var b=this.popStack();this.emptyHash();var x=this.setupHelper(0,f,p),w=this.lastHelper=this.nameLookup("helpers",f,"helper"),k=["(","(helper = ",w," || ",b,")"];this.options.strict||(k[0]="(helper = ",k.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",k,x.paramsInit?["),(",x.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",x.callParams)," : helper))"])},invokePartial:function(f,p,b){var x=[],w=this.setupParams(p,1,x);f&&(p=this.popStack(),delete w.name),b&&(w.indent=JSON.stringify(b)),w.helpers="helpers",w.partials="partials",w.decorators="container.decorators",f?x.unshift(p):x.unshift(this.nameLookup("partials",p,"partial")),this.options.compat&&(w.depths="depths"),w=this.objectLiteral(w),x.push(w),this.push(this.source.functionCall("container.invokePartial","",x))},assignToHash:function(f){var p=this.popStack(),b=void 0,x=void 0,w=void 0;this.trackIds&&(w=this.popStack()),this.stringParams&&(x=this.popStack(),b=this.popStack());var k=this.hash;b&&(k.contexts[f]=b),x&&(k.types[f]=x),w&&(k.ids[f]=w),k.values[f]=p},pushId:function(f,p,b){f==="BlockParam"?this.pushStackLiteral("blockParams["+p[0]+"].path["+p[1]+"]"+(b?" + "+JSON.stringify("."+b):"")):f==="PathExpression"?this.pushString(p):f==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:c,compileChildren:function(f,p){for(var b=f.children,x=void 0,w=void 0,k=0,S=b.length;k<S;k++){x=b[k],w=new this.compiler;var v=this.matchExistingProgram(x);if(v==null){var _=this.context.programs.push("")-1;x.index=_,x.name="program"+_,this.context.programs[_]=w.compile(x,p,this.context,!this.precompile),this.context.decorators[_]=w.decorators,this.context.environments[_]=x,this.useDepths=this.useDepths||w.useDepths,this.useBlockParams=this.useBlockParams||w.useBlockParams,x.useDepths=this.useDepths,x.useBlockParams=this.useBlockParams}else x.index=v.index,x.name="program"+v.index,this.useDepths=this.useDepths||v.useDepths,this.useBlockParams=this.useBlockParams||v.useBlockParams}},matchExistingProgram:function(f){for(var p=0,b=this.context.environments.length;p<b;p++){var x=this.context.environments[p];if(x&&x.equals(f))return x}},programExpression:function(f){var p=this.environment.children[f],b=[p.index,"data",p.blockParams];return(this.useBlockParams||this.useDepths)&&b.push("blockParams"),this.useDepths&&b.push("depths"),"container.program("+b.join(", ")+")"},useRegister:function(f){this.registers[f]||(this.registers[f]=!0,this.registers.list.push(f))},push:function(f){return f instanceof u||(f=this.source.wrap(f)),this.inlineStack.push(f),f},pushStackLiteral:function(f){this.push(new u(f))},pushSource:function(f){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),f&&this.source.push(f)},replaceStack:function(f){var p=["("],b=void 0,x=void 0,w=void 0;if(!this.isInline())throw new a.default("replaceStack on non-inline");var k=this.popStack(!0);if(k instanceof u)b=[k.value],p=["(",b],w=!0;else{x=!0;var S=this.incrStack();p=["((",this.push(S)," = ",k,")"],b=this.topStack()}var v=f.call(this,b);w||this.popStack(),x&&this.stackSlot--,this.push(p.concat(v,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var f=this.inlineStack;this.inlineStack=[];for(var p=0,b=f.length;p<b;p++){var x=f[p];if(x instanceof u)this.compileStack.push(x);else{var w=this.incrStack();this.pushSource([w," = ",x,";"]),this.compileStack.push(w)}}},isInline:function(){return this.inlineStack.length},popStack:function(f){var p=this.isInline(),b=(p?this.inlineStack:this.compileStack).pop();if(!f&&b instanceof u)return b.value;if(!p){if(!this.stackSlot)throw new a.default("Invalid stack pop");this.stackSlot--}return b},topStack:function(){var f=this.isInline()?this.inlineStack:this.compileStack,p=f[f.length-1];return p instanceof u?p.value:p},contextName:function(f){return this.useDepths&&f?"depths["+f+"]":"depth"+f},quotedString:function(f){return this.source.quotedString(f)},objectLiteral:function(f){return this.source.objectLiteral(f)},aliasable:function(f){var p=this.aliases[f];return p?(p.referenceCount++,p):(p=this.aliases[f]=this.source.wrap(f),p.aliasable=!0,p.referenceCount=1,p)},setupHelper:function(f,p,b){var x=[],w=this.setupHelperArgs(p,f,x,b),k=this.nameLookup("helpers",p,"helper"),S=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:x,paramsInit:w,name:k,callParams:[S].concat(x)}},setupParams:function(f,p,b){var x={},w=[],k=[],S=[],v=!b,_=void 0;v&&(b=[]),x.name=this.quotedString(f),x.hash=this.popStack(),this.trackIds&&(x.hashIds=this.popStack()),this.stringParams&&(x.hashTypes=this.popStack(),x.hashContexts=this.popStack());var y=this.popStack(),C=this.popStack();(C||y)&&(x.fn=C||"container.noop",x.inverse=y||"container.noop");for(var I=p;I--;)_=this.popStack(),b[I]=_,this.trackIds&&(S[I]=this.popStack()),this.stringParams&&(k[I]=this.popStack(),w[I]=this.popStack());return v&&(x.args=this.source.generateArray(b)),this.trackIds&&(x.ids=this.source.generateArray(S)),this.stringParams&&(x.types=this.source.generateArray(k),x.contexts=this.source.generateArray(w)),this.options.data&&(x.data="data"),this.useBlockParams&&(x.blockParams="blockParams"),x},setupHelperArgs:function(f,p,b,x){var w=this.setupParams(f,p,b);return w.loc=JSON.stringify(this.source.currentLocation),w=this.objectLiteral(w),x?(this.useRegister("options"),b.push("options"),["options=",w]):b?(b.push(w),""):w}},function(){for(var d="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),f=c.RESERVED_WORDS={},p=0,b=d.length;p<b;p++)f[d[p]]=!0}(),c.isValidJavaScriptVariableName=function(d){return!c.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function h(d,f,p,b,x){var w=f.popStack(),k=p.length;d&&k--;for(var S=b;S<k;S++)w=f.nameLookup(w,p[S],x);return d?[f.aliasable("container.strict"),"(",w,", ",f.quotedString(p[k]),", ",JSON.stringify(f.source.currentLocation)," )"]:w}t.default=c,e.exports=t.default})(Qa,Qa.exports);var WA=Qa.exports;(function(e,t){t.__esModule=!0;function n(k){return k&&k.__esModule?k:{default:k}}var r=aA,o=n(r),a=td,i=n(a),l=cr,s=ur,u=WA,c=n(u),h=nd,d=n(h),f=ed,p=n(f),b=o.default.create;function x(){var k=b();return k.compile=function(S,v){return s.compile(S,v,k)},k.precompile=function(S,v){return s.precompile(S,v,k)},k.AST=i.default,k.Compiler=s.Compiler,k.JavaScriptCompiler=c.default,k.Parser=l.parser,k.parse=l.parse,k.parseWithoutProcessing=l.parseWithoutProcessing,k}var w=x();w.create=x,p.default(w),w.Visitor=d.default,w.default=w,t.default=w,e.exports=t.default})(Ta,Ta.exports);var UA=Ta.exports;const ZA=bu(UA);function oo(e,t){const n=[],r=new Set,o=a=>{var l,s,u,c,h,d,f,p,b,x;if(r.has(a)||!e[a])return;r.add(a),n.push(a);const i=e[a];switch(i.type){case"Container":case"ButtonGroup":(((l=i.data.props)==null?void 0:l.childrenIds)||[]).forEach(o);break;case"ColumnsContainer":case"FlexColumns":(((s=i.data.props)==null?void 0:s.columns)||[]).forEach(w=>(w.childrenIds||[]).forEach(o));break;case"Grid":(((u=i.data.props)==null?void 0:u.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(o));break;case"Accordion":(((c=i.data.props)==null?void 0:c.items)||[]).forEach(w=>{(w.titleChildrenIds||[]).forEach(o),(w.contentChildrenIds||[]).forEach(o)});break;case"TabsBlock":case"Carousel":case"Marquee":(((h=i.data.props)==null?void 0:h.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(o)});break;case"Pagination":(((d=i.data.props)==null?void 0:d.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(o)),(((f=i.data.props)==null?void 0:f.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(o)});break;case"PricingAccordion":(((p=i.data.props)==null?void 0:p.items)||[]).forEach(w=>{(w.cardChildrenIds||[]).forEach(o),(w.detailChildrenIds||[]).forEach(o)});break;case"MenuPicker":(((b=i.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(o),(((x=i.data.props)==null?void 0:x.endChildrenIds)||[]).forEach(o);break;case"EmailLayout":(i.data.childrenIds||[]).forEach(o);break}};return o(t),n}const ao="relative",rr="24h",qA=864e5;function Oi(e){if(e==null||e==="")return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t}function Fs(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function VA(e,t){const n=Oi(e);if(!n)return"";const r=(t==null?void 0:t.now)??new Date,o=t==null?void 0:t.locale,a=Math.round((Fs(n).getTime()-Fs(r).getTime())/qA);if(a===0)return"Today";if(a===1)return"Tomorrow";if(a===-1)return"Yesterday";if(a>=-6&&a<=6)return n.toLocaleDateString(o,{weekday:"short"});const i=n.getFullYear()===r.getFullYear();return n.toLocaleDateString(o,{month:"short",day:"numeric",...i?{}:{year:"numeric"}})}function sa(e){const t=e%100;if(t>=11&&t<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`;default:return`${e}th`}}const YA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],KA=["January","February","March","April","May","June","July","August","September","October","November","December"],JA=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Yn(e,t=2){const n=String(Math.abs(e));return n.length>=t?n:"0".repeat(t-n.length)+n}function cd(e,t){const r=new Intl.DateTimeFormat("en-US",{timeZone:t||void 0,era:"short",year:"numeric",month:"numeric",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hourCycle:"h23"}).formatToParts(e),o=u=>{var c;return((c=r.find(h=>h.type===u))==null?void 0:c.value)??""},a=o("era"),i=Number(o("year")),l=a==="BC"||a==="B"?1-i:i,s=o("weekday");return{year:l,month:Number(o("month"))-1,day:Number(o("day")),weekday:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].indexOf(s),hour:Number(o("hour"))%24,minute:Number(o("minute"))}}function XA(e){const t=String(e);return t.length>=4?t:"0".repeat(4-t.length)+t}function ti(e,t=ao,n){if(t==="relative")return VA(e,{now:n==null?void 0:n.now,locale:n==null?void 0:n.locale});const r=Oi(e);if(!r)return"";const{year:o,month:a,day:i,weekday:l}=cd(r,n==null?void 0:n.tz),s=YA[a],u=XA(o),c=Yn(a+1),h=Yn(i);switch(t){case"do-mmm-yyyy":return`${sa(i)} ${s} ${u}`;case"mmm-d-yyyy":return`${s} ${i}, ${u}`;case"d-mmm-yyyy":return`${i} ${s} ${u}`;case"dd-mm-yyyy":return`${h}/${c}/${u}`;case"mm-dd-yyyy":return`${c}/${h}/${u}`;case"yyyy-mm-dd":return`${u}-${c}-${h}`;case"do-mmm":return`${sa(i)} ${s}`;case"full":return`${JA[l]}, ${i} ${KA[a]} ${u}`;default:return`${sa(i)} ${s} ${u}`}}function io(e,t=rr,n){const r=Oi(e);if(!r)return"";const{hour:o,minute:a}=cd(r,n==null?void 0:n.tz);return t==="12h"?`${o%12===0?12:o%12}:${Yn(a)} ${o<12?"AM":"PM"}`:`${Yn(o)}:${Yn(a)}`}function ud(e,t){const n=new Map;if(!e||!Array.isArray(t))return n;const r=e;for(const o of t){if((o==null?void 0:o.type)!=="array"||!o.sourceBlockId)continue;const a=Array.isArray(o.value)?o.value:[];a.forEach((i,l)=>{if(l!==0)return;const s=o.sourceBlockId;if(!(!s||!r[s]))for(const u of oo(r,s))n.set(u,i||{})}),a.forEach((i,l)=>{var u;if(l===0)return;const s=(u=o.rowIds)==null?void 0:u[l-1];if(!(!s||!r[s]))for(const c of oo(r,s))n.set(c,i||{})})}return n}const QA={Text:["text"],Heading:["text"],Button:["text","url"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Progress:["value","max"],Container:["linkHref"]};function ey(e){return e?QA[e]:void 0}const ni=ZA.create();ni.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new ni.SafeString(`{{${t.name}}}`)});const Hs=new Map;function ty(e){let t=Hs.get(e);return t||(t=ni.compile(e,{noEscape:!0,strict:!1}),Hs.set(e,t)),t}const Gs=new WeakMap;function dd(e){const t=Gs.get(e);if(t)return t;const n=ny(e);return Gs.set(e,n),n}function ny(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 r=new Map;for(const a of n.itemFields??[])((a==null?void 0:a.type)==="date"||(a==null?void 0:a.type)==="time"||(a==null?void 0:a.type)==="datetime")&&a.id&&r.set(a.id,a);const o=n.value.map(a=>{const i={};if(a&&typeof a=="object")for(const l of Object.keys(a)){const s=a[l];if(s==null||s==="")continue;const u=r.get(l);if((u==null?void 0:u.type)==="datetime"){const c=Dr(l,String(s),r,"date"),h=Dr(l,String(s),r,"time"),d={date:c,time:h};Object.defineProperty(d,"toString",{value:()=>[c,h].filter(Boolean).join(" "),enumerable:!1}),i[l]=d}else i[l]=u?Dr(l,String(s),r):s}return i});Object.defineProperty(o,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=o;continue}if(n.type==="datetime"){const r=n.id,o=typeof n.value=="string"?n.value:"";if(!o){const u={date:`{{${r}.date}}`,time:`{{${r}.time}}`};Object.defineProperty(u,"toString",{value:()=>`{{${r}}}`,enumerable:!1}),t[r]=u;continue}const a=n.dateFormat??ao,i=a==="relative"?pa(r,o):ti(o,a,{tz:n.dateTz}),l=io(o,n.timeFormat??rr,{tz:n.dateTz}),s={date:i,time:l};Object.defineProperty(s,"toString",{value:()=>[i,l].filter(Boolean).join(" "),enumerable:!1}),t[r]=s;continue}if(!(typeof n.value!="string"||n.value==="")){if(n.type==="date"){const r=n.dateFormat??ao;t[n.id]=r==="relative"?pa(n.id,n.value):ti(n.value,r,{tz:n.dateTz});continue}if(n.type==="time"){t[n.id]=io(n.value,n.timeFormat??rr,{tz:n.dateTz});continue}t[n.id]=n.value}}return t}function Li(e){var r,o;const t=(o=(r=e==null?void 0:e.root)==null?void 0:r.data)==null?void 0:o.formFields;if(Array.isArray(t))return t;const n=e==null?void 0:e.formFields;return Array.isArray(n)?n:[]}const ry=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function oy(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let r=0;return{masked:e.replace(ry,(a,i)=>{const l=t[i];if(Array.isArray(l)&&l.length>0)return a;const u="HB_EACH_"+r+++"_";return n.set(u,a),u}),restore:n}}const hd=/\{\{\s*this\.([\w]+)(?:\.(date|time))?\s*\}\}/g;function ay(e){const t=new Map;if(!Array.isArray(e))return t;for(const n of e)if(!((n==null?void 0:n.type)!=="array"||!Array.isArray(n.itemFields)))for(const r of n.itemFields)((r==null?void 0:r.type)==="date"||(r==null?void 0:r.type)==="time"||(r==null?void 0:r.type)==="datetime")&&r.id&&!t.has(r.id)&&t.set(r.id,r);return t}function Ws(e,t,n){const r=n.dateFormat??ao;return r==="relative"?pa(e,t):ti(t,r,{tz:n.dateTz})}function Dr(e,t,n,r){const o=n.get(e);if(!o)return t;if(o.type==="time")return io(t,o.timeFormat??rr,{tz:o.dateTz});if(o.type==="datetime"){const a=io(t,o.timeFormat??rr,{tz:o.dateTz});if(r==="time")return a;const i=Ws(e,t,o);return r==="date"?i:[i,a].filter(Boolean).join(" ")}return Ws(e,t,o)}function iy(e,t,n){return e.replace(hd,(r,o,a)=>{const i=t==null?void 0:t[o];return i==null||i===""?r:n?Dr(o,String(i),n,a):String(i)})}function bn(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let r=e;if(n&&(r=iy(r,n,ay(t)),r.indexOf("{{")===-1)||!t||t.length===0)return r;try{const o=t&&t.length>0?dd(t):{},{masked:a,restore:i}=oy(r,o),l=new Map;let s=a;if(a.indexOf("{{")!==-1&&a.indexOf("#each")===-1){let c=0;s=a.replace(hd,h=>{const d="HB_THIS_"+c+++"_";return l.set(d,h),d})}let u=ty(s)(o);for(const[c,h]of l)u=u.split(c).join(h);if(i.size>0)for(const[c,h]of i)u=u.split(c).join(h);return u}catch{return r}}function fd(e,t,n,r){var s,u,c,h,d,f,p,b,x,w,k;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="TabsBlock"){const S=(u=(s=e.data)==null?void 0:s.props)==null?void 0:u.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{const C=_==null?void 0:_.label;if(typeof C!="string"||C.indexOf("{{")===-1)return;const I=Array.isArray(_==null?void 0:_.contentChildrenIds)?_.contentChildrenIds[0]:void 0,R=I&&r?r.get(I):n,E=bn(C,t,R??null);E!==C&&(v||(v=S.map(O=>({...O}))),v[y]={...v[y],label:E})}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="List"){const S=(h=(c=e.data)==null?void 0:c.props)==null?void 0:h.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{const C=_==null?void 0:_.text;if(typeof C!="string"||C.indexOf("{{")===-1)return;const I=bn(C,t,n);I!==C&&(v||(v=S.map(R=>({...R}))),v[y]={...v[y],text:I})}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="Breadcrumb"){const S=(f=(d=e.data)==null?void 0:d.props)==null?void 0:f.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{for(const C of["label","href"]){const I=_==null?void 0:_[C];if(typeof I!="string"||I.indexOf("{{")===-1)continue;const R=bn(I,t,n);R!==I&&(v||(v=S.map(E=>({...E}))),v[y]={...v[y],[C]:R})}}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="Table"){const S=(b=(p=e.data)==null?void 0:p.props)==null?void 0:b.cells;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{if(typeof _!="string"||_.indexOf("{{")===-1)return;const C=bn(_,t,n);C!==_&&(v||(v=[...S]),v[y]=C)}),v?{...e,data:{...e.data,props:{...e.data.props,cells:v}}}:e}let o=e;if(e.type==="Container"){const S=(w=(x=e.data)==null?void 0:x.style)==null?void 0:w.backgroundImage;if(typeof S=="string"&&S.indexOf("{{")!==-1){const v=bn(S,t,n);v!==S&&(o={...o,data:{...o.data,style:{...o.data.style,backgroundImage:v}}})}}const a=ey(o.type);if(!a)return o;const i=(k=o.data)==null?void 0:k.props;if(!i)return o;let l=null;for(const S of a){const v=i[S];if(typeof v!="string"||v.indexOf("{{")===-1)continue;const _=bn(v,t,n);_!==v&&(l||(l={...i}),l[S]=_)}return l?{...o,data:{...o.data,props:l}}:o}function zi(e,t){var l;if(!e)return e;const n=t??Li(e);let r={...e},o=!1;const a=ud(e,n);if(n&&n.length>0&&(Object.keys(dd(n)).length>0||a.size>0))for(const s of Object.keys(r)){const u=r[s],c=fd(u,n,a.get(s),a);c!==u&&(r[s]=c,o=!0)}const i=r.root;if(((l=i==null?void 0:i.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...u}=i.data;r.root={...i,data:u},o=!0}return o?r:e}const Us=Object.fromEntries(bt.map(e=>[e.key,e.value]));function on(e){return!!e&&typeof e=="object"&&"top"in e&&"left"in e}function ji(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function ly(e,t){const n=e.borderColor??(t==null?void 0:t.borderColor)??null;if(!n)return"";if(n==="transparent")return"border:none!important";const r=on(e.borderWidth)?e.borderWidth:on(t==null?void 0:t.borderWidth)?t==null?void 0:t.borderWidth:null;return ji(n)?`padding:${(r==null?void 0:r.top)??0}px ${(r==null?void 0:r.right)??0}px ${(r==null?void 0:r.bottom)??0}px ${(r==null?void 0:r.left)??0}px!important`:[`border-top:${(r==null?void 0:r.top)??0}px solid ${n}!important`,`border-right:${(r==null?void 0:r.right)??0}px solid ${n}!important`,`border-bottom:${(r==null?void 0:r.bottom)??0}px solid ${n}!important`,`border-left:${(r==null?void 0:r.left)??0}px solid ${n}!important`].join(";")}function sy(e,t,n){const r=t.borderColor??(n==null?void 0:n.borderColor)??null;if(!r||!ji(r))return"";const o=t.padding;if(!on(o))return"";const a=`padding:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`;return`${e}>.container-block>.container-block-inner{${a}}`}function cy(e,t){const n=[],r=e.borderColor!==void 0||e.borderWidth!==void 0,o=ji((t==null?void 0:t.borderColor)??"");if(r||e.padding!==void 0&&o){const i=ly(e,t);i&&n.push(i)}const a=e.backgroundSize==="none";a&&n.push("background-image:none!important");for(const i of Object.keys(e)){const l=e[i];if(l!=null)switch(i){case"borderColor":case"borderWidth":break;case"fontSize":n.push(`font-size:${l}px!important`);break;case"fontFamily":Us[l]&&n.push(`font-family:${Us[l]}!important`);break;case"fontWeight":n.push(`font-weight:${l}!important`);break;case"fontStyle":n.push(`font-style:${l}!important`);break;case"textDecoration":n.push(`text-decoration:${l}!important`);break;case"lineHeight":n.push(`line-height:${l}!important`);break;case"textAlign":n.push(`text-align:${l}!important`);break;case"buttonTextAlign":n.push(`justify-content:${l==="center"?"center":l==="right"?"flex-end":"flex-start"}!important`);break;case"padding":on(l)&&!o&&n.push(`padding:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"margin":on(l)&&n.push(`margin:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"marginBottom":n.push(`margin-bottom:${l}px!important`);break;case"width":n.push(`width:${typeof l=="number"?`${l}px`:l}!important`);break;case"height":n.push(`height:${typeof l=="number"?`${l}px`:l}!important`);break;case"backgroundImage":n.push(l&&!a?`background-image:url("${String(l).replace(/"/g,'\\"')}")!important`:"background-image:none!important");break;case"backgroundSize":a||n.push(`background-size:${l}!important`);break;case"backgroundRepeat":n.push(`background-repeat:${l}!important`);break;case"activeFontSize":n.push(`--ahd-tabs-active-font-size:${typeof l=="number"?`${l}px`:l}`);break;case"showActiveBorder":n.push(`--ahd-tabs-active-border-color:${l?"currentColor":"transparent"}`);break;case"tabGap":n.push(`--ahd-tabs-tab-gap:${l}px`);break;case"contentGap":n.push(`--ahd-tabs-content-gap:${l}px`);break;case"navWidth":n.push(`--ahd-tabs-nav-width:${l}px`);break;case"starSize":n.push(`--ahd-rating-star-size:${l}px`);break;case"starGap":n.push(`--ahd-rating-star-gap:${l}px`);break;case"arrowSize":n.push(`--ahd-carousel-arrow-size:${l}px`),n.push(`--ahd-carousel-chevron-size:${Math.max(12,Math.min(40,Math.round(Number(l)*.5)))}px`);break;case"dotSize":n.push(`--ahd-carousel-dot-size:${l}px`);break;case"slideGap":n.push(`--ahd-carousel-slide-gap:${l}px`);break;case"buttonSize":n.push(`--ahd-pgn-btn-size:${l}px`);break;case"buttonGap":n.push(`--ahd-pgn-btn-gap:${l}px`);break;case"buttonRadius":n.push(`--ahd-pgn-btn-radius:${l}px`);break;case"controlGap":n.push(`--ahd-pgn-control-gap:${l}px`);break;case"borderRadius":if(typeof l=="number")n.push(`border-radius:${l}px!important`);else if(l&&typeof l=="object"){const{topLeft:s=0,topRight:u=0,bottomRight:c=0,bottomLeft:h=0}=l;n.push(`border-radius:${s}px ${u}px ${c}px ${h}px!important`)}else n.push(`border-radius:${l}!important`);break}}return n.join(";")}function uy(e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(r!=null)switch(n){case"lineHeight":t.push(`--ahd-divider-thickness:${r}px!important`);break;case"height":{const o=typeof r=="number"?`${r}px`:r;t.push(`height:${o}!important`),t.push(`--ahd-iframe-height:${o}`),t.push(`--ahd-calendly-height:${o}`),t.push(`--ahd-demo-height:${o}`);break}case"width":{const o=typeof r=="number"?`${r}px`:r;t.push(`--ahd-iframe-width:${o}`),t.push(`--ahd-calendly-width:${o}`),t.push(`--ahd-demo-width:${o}`);break}case"blockPadding":on(r)&&t.push(`padding:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`);break;case"blockMargin":on(r)&&t.push(`margin:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`);break}}return t.join(";")}function dy(e){return`${e}>.text-block>div,${e}>.heading-block-wrapper>.heading-block`}function hy(e){if(e==null)return"";const t=Number(e);return t>0?"display:-webkit-box!important;-webkit-line-clamp:"+t+"!important;-webkit-box-orient:vertical!important;overflow:hidden!important":"display:block!important;overflow:visible!important"}function Zs(e,t){if(!t)return null;const n=e??{},r={};for(const o of Object.keys(t)){const a=t[o],i=n[o],l=!!a&&typeof a=="object"&&!Array.isArray(a)&&!!i&&typeof i=="object"&&!Array.isArray(i);r[o]=l?{...i,...a}:a}return r}function fy(e,t,n,r){if(!t)return"";const o=`#${e}`,a=gy(o),i=dy(o),l=[],s=(c,h)=>{var S;const d=Zs(n,h==null?void 0:h.style),f=Zs(r,h==null?void 0:h.props),p=[d?cy(d,n):"",f?uy(f):""].filter(Boolean).join(";"),b=d?sy(o,d,n):"",x=(S=h==null?void 0:h.style)==null?void 0:S.textAlign,w=x?`${o}>.image-block,${o}>.logo-block{justify-content:${x==="center"?"center":x==="right"?"flex-end":"flex-start"}!important}`:"",k=[p?`${a}{${p}}`:"",w,b,h!=null&&h.hidden?`${o}{display:none}`:""].filter(Boolean).join("");if(k&&l.push(`${c}{${k}}`),h!=null&&h.style&&"lineClamp"in h.style){const v=hy(d==null?void 0:d.lineClamp);v&&l.push(`${c}{${i}{${v}}}`)}};s(ln,t.tablet),s(`@media (max-width:${Ve}px)`,t.mobile);const u=by(e,t,n,r);return u&&l.push(u),l.join("")}function py(e,t){return t?e?{...e,...t}:t:e}function ri(e,t){return(t==null?void 0:t.blockMargin)??(e==null?void 0:e.margin)??(t==null?void 0:t.margin)??null}function qs(e,t,n){const r=ri(e,t),o=ri(n==null?void 0:n.style,n==null?void 0:n.props);return py(r,o)}function ca(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 gy(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 my(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 by(e,t,n,r){if(!t)return"";const o=`#${e}`,a=my(o),i=ri(n,r),l=ca(i),s=ca(qs(n,r,t.tablet)),u=ca(qs(n,r,t.mobile));return s===l&&u===l?"":`
|
|
600
|
+
`.trim()},blockValue:function(f){var p=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs(f,0,b);var x=this.popStack();b.splice(1,0,x),this.push(this.source.functionCall(p,"call",b))},ambiguousBlockValue:function(){var f=this.aliasable("container.hooks.blockHelperMissing"),p=[this.contextName(0)];this.setupHelperArgs("",0,p,!0),this.flushInline();var b=this.topStack();p.splice(1,0,b),this.pushSource(["if (!",this.lastHelper,") { ",b," = ",this.source.functionCall(f,"call",p),"}"])},appendContent:function(f){this.pendingContent?f=this.pendingContent+f:this.pendingLocation=this.source.currentLocation,this.pendingContent=f},append:function(){if(this.isInline())this.replaceStack(function(p){return[" != null ? ",p,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var f=this.popStack();this.pushSource(["if (",f," != null) { ",this.appendToBuffer(f,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(f){this.lastContext=f},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(f,p,b,x){var w=0;!x&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(f[w++])):this.pushContext(),this.resolvePath("context",f,w,p,b)},lookupBlockParam:function(f,p){this.useBlockParams=!0,this.push(["blockParams[",f[0],"][",f[1],"]"]),this.resolvePath("context",p,1)},lookupData:function(f,p,b){f?this.pushStackLiteral("container.data(data, "+f+")"):this.pushStackLiteral("data"),this.resolvePath("data",p,0,!0,b)},resolvePath:function(f,p,b,x,w){var k=this;if(this.options.strict||this.options.assumeObjects){this.push(h(this.options.strict&&w,this,p,b,f));return}for(var S=p.length,v=function(y){k.replaceStack(function(C){var I=k.nameLookup(C,p[y],f);return x?[" && ",I]:[" != null ? ",I," : ",C]})},_=b;_<S;_++)v(_)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(f,p){this.pushContext(),this.pushString(p),p!=="SubExpression"&&(typeof f=="string"?this.pushString(f):this.pushStackLiteral(f))},emptyHash:function(f){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(f?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var f=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(f.ids)),this.stringParams&&(this.push(this.objectLiteral(f.contexts)),this.push(this.objectLiteral(f.types))),this.push(this.objectLiteral(f.values))},pushString:function(f){this.pushStackLiteral(this.quotedString(f))},pushLiteral:function(f){this.pushStackLiteral(f)},pushProgram:function(f){f!=null?this.pushStackLiteral(this.programExpression(f)):this.pushStackLiteral(null)},registerDecorator:function(f,p){var b=this.nameLookup("decorators",p,"decorator"),x=this.setupHelperArgs(p,f);this.decorators.push(["var decorator = ",b,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+p+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",x])," || fn;"])},invokeHelper:function(f,p,b){var x=this.popStack(),w=this.setupHelper(f,p),k=[];b&&k.push(w.name),k.push(x),this.options.strict||k.push(this.aliasable("container.hooks.helperMissing"));var S=["(",this.itemsSeparatedBy(k,"||"),")"],v=this.source.functionCall(S,"call",w.callParams);this.push(v)},itemsSeparatedBy:function(f,p){var b=[];b.push(f[0]);for(var x=1;x<f.length;x++)b.push(p,f[x]);return b},invokeKnownHelper:function(f,p){var b=this.setupHelper(f,p);this.push(this.source.functionCall(b.name,"call",b.callParams))},invokeAmbiguous:function(f,p){this.useRegister("helper");var b=this.popStack();this.emptyHash();var x=this.setupHelper(0,f,p),w=this.lastHelper=this.nameLookup("helpers",f,"helper"),k=["(","(helper = ",w," || ",b,")"];this.options.strict||(k[0]="(helper = ",k.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",k,x.paramsInit?["),(",x.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",x.callParams)," : helper))"])},invokePartial:function(f,p,b){var x=[],w=this.setupParams(p,1,x);f&&(p=this.popStack(),delete w.name),b&&(w.indent=JSON.stringify(b)),w.helpers="helpers",w.partials="partials",w.decorators="container.decorators",f?x.unshift(p):x.unshift(this.nameLookup("partials",p,"partial")),this.options.compat&&(w.depths="depths"),w=this.objectLiteral(w),x.push(w),this.push(this.source.functionCall("container.invokePartial","",x))},assignToHash:function(f){var p=this.popStack(),b=void 0,x=void 0,w=void 0;this.trackIds&&(w=this.popStack()),this.stringParams&&(x=this.popStack(),b=this.popStack());var k=this.hash;b&&(k.contexts[f]=b),x&&(k.types[f]=x),w&&(k.ids[f]=w),k.values[f]=p},pushId:function(f,p,b){f==="BlockParam"?this.pushStackLiteral("blockParams["+p[0]+"].path["+p[1]+"]"+(b?" + "+JSON.stringify("."+b):"")):f==="PathExpression"?this.pushString(p):f==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:c,compileChildren:function(f,p){for(var b=f.children,x=void 0,w=void 0,k=0,S=b.length;k<S;k++){x=b[k],w=new this.compiler;var v=this.matchExistingProgram(x);if(v==null){var _=this.context.programs.push("")-1;x.index=_,x.name="program"+_,this.context.programs[_]=w.compile(x,p,this.context,!this.precompile),this.context.decorators[_]=w.decorators,this.context.environments[_]=x,this.useDepths=this.useDepths||w.useDepths,this.useBlockParams=this.useBlockParams||w.useBlockParams,x.useDepths=this.useDepths,x.useBlockParams=this.useBlockParams}else x.index=v.index,x.name="program"+v.index,this.useDepths=this.useDepths||v.useDepths,this.useBlockParams=this.useBlockParams||v.useBlockParams}},matchExistingProgram:function(f){for(var p=0,b=this.context.environments.length;p<b;p++){var x=this.context.environments[p];if(x&&x.equals(f))return x}},programExpression:function(f){var p=this.environment.children[f],b=[p.index,"data",p.blockParams];return(this.useBlockParams||this.useDepths)&&b.push("blockParams"),this.useDepths&&b.push("depths"),"container.program("+b.join(", ")+")"},useRegister:function(f){this.registers[f]||(this.registers[f]=!0,this.registers.list.push(f))},push:function(f){return f instanceof u||(f=this.source.wrap(f)),this.inlineStack.push(f),f},pushStackLiteral:function(f){this.push(new u(f))},pushSource:function(f){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),f&&this.source.push(f)},replaceStack:function(f){var p=["("],b=void 0,x=void 0,w=void 0;if(!this.isInline())throw new a.default("replaceStack on non-inline");var k=this.popStack(!0);if(k instanceof u)b=[k.value],p=["(",b],w=!0;else{x=!0;var S=this.incrStack();p=["((",this.push(S)," = ",k,")"],b=this.topStack()}var v=f.call(this,b);w||this.popStack(),x&&this.stackSlot--,this.push(p.concat(v,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var f=this.inlineStack;this.inlineStack=[];for(var p=0,b=f.length;p<b;p++){var x=f[p];if(x instanceof u)this.compileStack.push(x);else{var w=this.incrStack();this.pushSource([w," = ",x,";"]),this.compileStack.push(w)}}},isInline:function(){return this.inlineStack.length},popStack:function(f){var p=this.isInline(),b=(p?this.inlineStack:this.compileStack).pop();if(!f&&b instanceof u)return b.value;if(!p){if(!this.stackSlot)throw new a.default("Invalid stack pop");this.stackSlot--}return b},topStack:function(){var f=this.isInline()?this.inlineStack:this.compileStack,p=f[f.length-1];return p instanceof u?p.value:p},contextName:function(f){return this.useDepths&&f?"depths["+f+"]":"depth"+f},quotedString:function(f){return this.source.quotedString(f)},objectLiteral:function(f){return this.source.objectLiteral(f)},aliasable:function(f){var p=this.aliases[f];return p?(p.referenceCount++,p):(p=this.aliases[f]=this.source.wrap(f),p.aliasable=!0,p.referenceCount=1,p)},setupHelper:function(f,p,b){var x=[],w=this.setupHelperArgs(p,f,x,b),k=this.nameLookup("helpers",p,"helper"),S=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:x,paramsInit:w,name:k,callParams:[S].concat(x)}},setupParams:function(f,p,b){var x={},w=[],k=[],S=[],v=!b,_=void 0;v&&(b=[]),x.name=this.quotedString(f),x.hash=this.popStack(),this.trackIds&&(x.hashIds=this.popStack()),this.stringParams&&(x.hashTypes=this.popStack(),x.hashContexts=this.popStack());var y=this.popStack(),C=this.popStack();(C||y)&&(x.fn=C||"container.noop",x.inverse=y||"container.noop");for(var I=p;I--;)_=this.popStack(),b[I]=_,this.trackIds&&(S[I]=this.popStack()),this.stringParams&&(k[I]=this.popStack(),w[I]=this.popStack());return v&&(x.args=this.source.generateArray(b)),this.trackIds&&(x.ids=this.source.generateArray(S)),this.stringParams&&(x.types=this.source.generateArray(k),x.contexts=this.source.generateArray(w)),this.options.data&&(x.data="data"),this.useBlockParams&&(x.blockParams="blockParams"),x},setupHelperArgs:function(f,p,b,x){var w=this.setupParams(f,p,b);return w.loc=JSON.stringify(this.source.currentLocation),w=this.objectLiteral(w),x?(this.useRegister("options"),b.push("options"),["options=",w]):b?(b.push(w),""):w}},function(){for(var d="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),f=c.RESERVED_WORDS={},p=0,b=d.length;p<b;p++)f[d[p]]=!0}(),c.isValidJavaScriptVariableName=function(d){return!c.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function h(d,f,p,b,x){var w=f.popStack(),k=p.length;d&&k--;for(var S=b;S<k;S++)w=f.nameLookup(w,p[S],x);return d?[f.aliasable("container.strict"),"(",w,", ",f.quotedString(p[k]),", ",JSON.stringify(f.source.currentLocation)," )"]:w}t.default=c,e.exports=t.default})(Qa,Qa.exports);var UA=Qa.exports;(function(e,t){t.__esModule=!0;function n(k){return k&&k.__esModule?k:{default:k}}var r=iA,o=n(r),a=rd,i=n(a),l=cr,s=ur,u=UA,c=n(u),h=od,d=n(h),f=nd,p=n(f),b=o.default.create;function x(){var k=b();return k.compile=function(S,v){return s.compile(S,v,k)},k.precompile=function(S,v){return s.precompile(S,v,k)},k.AST=i.default,k.Compiler=s.Compiler,k.JavaScriptCompiler=c.default,k.Parser=l.parser,k.parse=l.parse,k.parseWithoutProcessing=l.parseWithoutProcessing,k}var w=x();w.create=x,p.default(w),w.Visitor=d.default,w.default=w,t.default=w,e.exports=t.default})(Ta,Ta.exports);var ZA=Ta.exports;const qA=vu(ZA);function oo(e,t){const n=[],r=new Set,o=a=>{var l,s,u,c,h,d,f,p,b,x;if(r.has(a)||!e[a])return;r.add(a),n.push(a);const i=e[a];switch(i.type){case"Container":case"ButtonGroup":(((l=i.data.props)==null?void 0:l.childrenIds)||[]).forEach(o);break;case"ColumnsContainer":case"FlexColumns":(((s=i.data.props)==null?void 0:s.columns)||[]).forEach(w=>(w.childrenIds||[]).forEach(o));break;case"Grid":(((u=i.data.props)==null?void 0:u.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(o));break;case"Accordion":(((c=i.data.props)==null?void 0:c.items)||[]).forEach(w=>{(w.titleChildrenIds||[]).forEach(o),(w.contentChildrenIds||[]).forEach(o)});break;case"TabsBlock":case"Carousel":case"Marquee":(((h=i.data.props)==null?void 0:h.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(o)});break;case"Pagination":(((d=i.data.props)==null?void 0:d.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(o)),(((f=i.data.props)==null?void 0:f.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(o)});break;case"PricingAccordion":(((p=i.data.props)==null?void 0:p.items)||[]).forEach(w=>{(w.cardChildrenIds||[]).forEach(o),(w.detailChildrenIds||[]).forEach(o)});break;case"MenuPicker":(((b=i.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(o),(((x=i.data.props)==null?void 0:x.endChildrenIds)||[]).forEach(o);break;case"EmailLayout":case"PagePilotLayout":(i.data.childrenIds||[]).forEach(o);break}};return o(t),n}const ao="relative",rr="24h",VA=864e5;function Li(e){if(e==null||e==="")return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t}function Hs(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function YA(e,t){const n=Li(e);if(!n)return"";const r=(t==null?void 0:t.now)??new Date,o=t==null?void 0:t.locale,a=Math.round((Hs(n).getTime()-Hs(r).getTime())/VA);if(a===0)return"Today";if(a===1)return"Tomorrow";if(a===-1)return"Yesterday";if(a>=-6&&a<=6)return n.toLocaleDateString(o,{weekday:"short"});const i=n.getFullYear()===r.getFullYear();return n.toLocaleDateString(o,{month:"short",day:"numeric",...i?{}:{year:"numeric"}})}function sa(e){const t=e%100;if(t>=11&&t<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`;default:return`${e}th`}}const KA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],JA=["January","February","March","April","May","June","July","August","September","October","November","December"],XA=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Yn(e,t=2){const n=String(Math.abs(e));return n.length>=t?n:"0".repeat(t-n.length)+n}function dd(e,t){const r=new Intl.DateTimeFormat("en-US",{timeZone:t||void 0,era:"short",year:"numeric",month:"numeric",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hourCycle:"h23"}).formatToParts(e),o=u=>{var c;return((c=r.find(h=>h.type===u))==null?void 0:c.value)??""},a=o("era"),i=Number(o("year")),l=a==="BC"||a==="B"?1-i:i,s=o("weekday");return{year:l,month:Number(o("month"))-1,day:Number(o("day")),weekday:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].indexOf(s),hour:Number(o("hour"))%24,minute:Number(o("minute"))}}function QA(e){const t=String(e);return t.length>=4?t:"0".repeat(4-t.length)+t}function ti(e,t=ao,n){if(t==="relative")return YA(e,{now:n==null?void 0:n.now,locale:n==null?void 0:n.locale});const r=Li(e);if(!r)return"";const{year:o,month:a,day:i,weekday:l}=dd(r,n==null?void 0:n.tz),s=KA[a],u=QA(o),c=Yn(a+1),h=Yn(i);switch(t){case"do-mmm-yyyy":return`${sa(i)} ${s} ${u}`;case"mmm-d-yyyy":return`${s} ${i}, ${u}`;case"d-mmm-yyyy":return`${i} ${s} ${u}`;case"dd-mm-yyyy":return`${h}/${c}/${u}`;case"mm-dd-yyyy":return`${c}/${h}/${u}`;case"yyyy-mm-dd":return`${u}-${c}-${h}`;case"do-mmm":return`${sa(i)} ${s}`;case"full":return`${XA[l]}, ${i} ${JA[a]} ${u}`;default:return`${sa(i)} ${s} ${u}`}}function io(e,t=rr,n){const r=Li(e);if(!r)return"";const{hour:o,minute:a}=dd(r,n==null?void 0:n.tz);return t==="12h"?`${o%12===0?12:o%12}:${Yn(a)} ${o<12?"AM":"PM"}`:`${Yn(o)}:${Yn(a)}`}function hd(e,t){const n=new Map;if(!e||!Array.isArray(t))return n;const r=e;for(const o of t){if((o==null?void 0:o.type)!=="array"||!o.sourceBlockId)continue;const a=Array.isArray(o.value)?o.value:[];a.forEach((i,l)=>{if(l!==0)return;const s=o.sourceBlockId;if(!(!s||!r[s]))for(const u of oo(r,s))n.set(u,i||{})}),a.forEach((i,l)=>{var u;if(l===0)return;const s=(u=o.rowIds)==null?void 0:u[l-1];if(!(!s||!r[s]))for(const c of oo(r,s))n.set(c,i||{})})}return n}const ey={Text:["text"],Heading:["text"],Button:["text","url"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Progress:["value","max"],Container:["linkHref"]};function ty(e){return e?ey[e]:void 0}const ni=qA.create();ni.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new ni.SafeString(`{{${t.name}}}`)});const Gs=new Map;function ny(e){let t=Gs.get(e);return t||(t=ni.compile(e,{noEscape:!0,strict:!1}),Gs.set(e,t)),t}const Ws=new WeakMap;function fd(e){const t=Ws.get(e);if(t)return t;const n=ry(e);return Ws.set(e,n),n}function ry(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 r=new Map;for(const a of n.itemFields??[])((a==null?void 0:a.type)==="date"||(a==null?void 0:a.type)==="time"||(a==null?void 0:a.type)==="datetime")&&a.id&&r.set(a.id,a);const o=n.value.map(a=>{const i={};if(a&&typeof a=="object")for(const l of Object.keys(a)){const s=a[l];if(s==null||s==="")continue;const u=r.get(l);if((u==null?void 0:u.type)==="datetime"){const c=Dr(l,String(s),r,"date"),h=Dr(l,String(s),r,"time"),d={date:c,time:h};Object.defineProperty(d,"toString",{value:()=>[c,h].filter(Boolean).join(" "),enumerable:!1}),i[l]=d}else i[l]=u?Dr(l,String(s),r):s}return i});Object.defineProperty(o,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=o;continue}if(n.type==="datetime"){const r=n.id,o=typeof n.value=="string"?n.value:"";if(!o){const u={date:`{{${r}.date}}`,time:`{{${r}.time}}`};Object.defineProperty(u,"toString",{value:()=>`{{${r}}}`,enumerable:!1}),t[r]=u;continue}const a=n.dateFormat??ao,i=a==="relative"?pa(r,o):ti(o,a,{tz:n.dateTz}),l=io(o,n.timeFormat??rr,{tz:n.dateTz}),s={date:i,time:l};Object.defineProperty(s,"toString",{value:()=>[i,l].filter(Boolean).join(" "),enumerable:!1}),t[r]=s;continue}if(!(typeof n.value!="string"||n.value==="")){if(n.type==="date"){const r=n.dateFormat??ao;t[n.id]=r==="relative"?pa(n.id,n.value):ti(n.value,r,{tz:n.dateTz});continue}if(n.type==="time"){t[n.id]=io(n.value,n.timeFormat??rr,{tz:n.dateTz});continue}t[n.id]=n.value}}return t}function Oi(e){var r,o;const t=(o=(r=e==null?void 0:e.root)==null?void 0:r.data)==null?void 0:o.formFields;if(Array.isArray(t))return t;const n=e==null?void 0:e.formFields;return Array.isArray(n)?n:[]}const oy=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function ay(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let r=0;return{masked:e.replace(oy,(a,i)=>{const l=t[i];if(Array.isArray(l)&&l.length>0)return a;const u="HB_EACH_"+r+++"_";return n.set(u,a),u}),restore:n}}const pd=/\{\{\s*this\.([\w]+)(?:\.(date|time))?\s*\}\}/g;function iy(e){const t=new Map;if(!Array.isArray(e))return t;for(const n of e)if(!((n==null?void 0:n.type)!=="array"||!Array.isArray(n.itemFields)))for(const r of n.itemFields)((r==null?void 0:r.type)==="date"||(r==null?void 0:r.type)==="time"||(r==null?void 0:r.type)==="datetime")&&r.id&&!t.has(r.id)&&t.set(r.id,r);return t}function Us(e,t,n){const r=n.dateFormat??ao;return r==="relative"?pa(e,t):ti(t,r,{tz:n.dateTz})}function Dr(e,t,n,r){const o=n.get(e);if(!o)return t;if(o.type==="time")return io(t,o.timeFormat??rr,{tz:o.dateTz});if(o.type==="datetime"){const a=io(t,o.timeFormat??rr,{tz:o.dateTz});if(r==="time")return a;const i=Us(e,t,o);return r==="date"?i:[i,a].filter(Boolean).join(" ")}return Us(e,t,o)}function ly(e,t,n){return e.replace(pd,(r,o,a)=>{const i=t==null?void 0:t[o];return i==null||i===""?r:n?Dr(o,String(i),n,a):String(i)})}function bn(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let r=e;if(n&&(r=ly(r,n,iy(t)),r.indexOf("{{")===-1)||!t||t.length===0)return r;try{const o=t&&t.length>0?fd(t):{},{masked:a,restore:i}=ay(r,o),l=new Map;let s=a;if(a.indexOf("{{")!==-1&&a.indexOf("#each")===-1){let c=0;s=a.replace(pd,h=>{const d="HB_THIS_"+c+++"_";return l.set(d,h),d})}let u=ny(s)(o);for(const[c,h]of l)u=u.split(c).join(h);if(i.size>0)for(const[c,h]of i)u=u.split(c).join(h);return u}catch{return r}}function gd(e,t,n,r){var s,u,c,h,d,f,p,b,x,w,k;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="TabsBlock"){const S=(u=(s=e.data)==null?void 0:s.props)==null?void 0:u.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{const C=_==null?void 0:_.label;if(typeof C!="string"||C.indexOf("{{")===-1)return;const I=Array.isArray(_==null?void 0:_.contentChildrenIds)?_.contentChildrenIds[0]:void 0,R=I&&r?r.get(I):n,E=bn(C,t,R??null);E!==C&&(v||(v=S.map(L=>({...L}))),v[y]={...v[y],label:E})}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="List"){const S=(h=(c=e.data)==null?void 0:c.props)==null?void 0:h.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{const C=_==null?void 0:_.text;if(typeof C!="string"||C.indexOf("{{")===-1)return;const I=bn(C,t,n);I!==C&&(v||(v=S.map(R=>({...R}))),v[y]={...v[y],text:I})}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="Breadcrumb"){const S=(f=(d=e.data)==null?void 0:d.props)==null?void 0:f.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{for(const C of["label","href"]){const I=_==null?void 0:_[C];if(typeof I!="string"||I.indexOf("{{")===-1)continue;const R=bn(I,t,n);R!==I&&(v||(v=S.map(E=>({...E}))),v[y]={...v[y],[C]:R})}}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="Table"){const S=(b=(p=e.data)==null?void 0:p.props)==null?void 0:b.cells;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{if(typeof _!="string"||_.indexOf("{{")===-1)return;const C=bn(_,t,n);C!==_&&(v||(v=[...S]),v[y]=C)}),v?{...e,data:{...e.data,props:{...e.data.props,cells:v}}}:e}let o=e;if(e.type==="Container"){const S=(w=(x=e.data)==null?void 0:x.style)==null?void 0:w.backgroundImage;if(typeof S=="string"&&S.indexOf("{{")!==-1){const v=bn(S,t,n);v!==S&&(o={...o,data:{...o.data,style:{...o.data.style,backgroundImage:v}}})}}const a=ty(o.type);if(!a)return o;const i=(k=o.data)==null?void 0:k.props;if(!i)return o;let l=null;for(const S of a){const v=i[S];if(typeof v!="string"||v.indexOf("{{")===-1)continue;const _=bn(v,t,n);_!==v&&(l||(l={...i}),l[S]=_)}return l?{...o,data:{...o.data,props:l}}:o}function zi(e,t){var l;if(!e)return e;const n=t??Oi(e);let r={...e},o=!1;const a=hd(e,n);if(n&&n.length>0&&(Object.keys(fd(n)).length>0||a.size>0))for(const s of Object.keys(r)){const u=r[s],c=gd(u,n,a.get(s),a);c!==u&&(r[s]=c,o=!0)}const i=r.root;if(((l=i==null?void 0:i.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...u}=i.data;r.root={...i,data:u},o=!0}return o?r:e}const Zs=Object.fromEntries(bt.map(e=>[e.key,e.value]));function on(e){return!!e&&typeof e=="object"&&"top"in e&&"left"in e}function ji(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function sy(e,t){const n=e.borderColor??(t==null?void 0:t.borderColor)??null;if(!n)return"";if(n==="transparent")return"border:none!important";const r=on(e.borderWidth)?e.borderWidth:on(t==null?void 0:t.borderWidth)?t==null?void 0:t.borderWidth:null;return ji(n)?`padding:${(r==null?void 0:r.top)??0}px ${(r==null?void 0:r.right)??0}px ${(r==null?void 0:r.bottom)??0}px ${(r==null?void 0:r.left)??0}px!important`:[`border-top:${(r==null?void 0:r.top)??0}px solid ${n}!important`,`border-right:${(r==null?void 0:r.right)??0}px solid ${n}!important`,`border-bottom:${(r==null?void 0:r.bottom)??0}px solid ${n}!important`,`border-left:${(r==null?void 0:r.left)??0}px solid ${n}!important`].join(";")}function cy(e,t,n){const r=t.borderColor??(n==null?void 0:n.borderColor)??null;if(!r||!ji(r))return"";const o=t.padding;if(!on(o))return"";const a=`padding:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`;return`${e}>.container-block>.container-block-inner{${a}}`}function uy(e,t){const n=[],r=e.borderColor!==void 0||e.borderWidth!==void 0,o=ji((t==null?void 0:t.borderColor)??"");if(r||e.padding!==void 0&&o){const i=sy(e,t);i&&n.push(i)}const a=e.backgroundSize==="none";a&&n.push("background-image:none!important");for(const i of Object.keys(e)){const l=e[i];if(l!=null)switch(i){case"borderColor":case"borderWidth":break;case"fontSize":n.push(`font-size:${l}px!important`);break;case"fontFamily":Zs[l]&&n.push(`font-family:${Zs[l]}!important`);break;case"fontWeight":n.push(`font-weight:${l}!important`);break;case"fontStyle":n.push(`font-style:${l}!important`);break;case"textDecoration":n.push(`text-decoration:${l}!important`);break;case"lineHeight":n.push(`line-height:${l}!important`);break;case"textAlign":n.push(`text-align:${l}!important`);break;case"buttonTextAlign":n.push(`justify-content:${l==="center"?"center":l==="right"?"flex-end":"flex-start"}!important`);break;case"padding":on(l)&&!o&&n.push(`padding:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"margin":on(l)&&n.push(`margin:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"marginBottom":n.push(`margin-bottom:${l}px!important`);break;case"width":n.push(`width:${typeof l=="number"?`${l}px`:l}!important`);break;case"height":n.push(`height:${typeof l=="number"?`${l}px`:l}!important`);break;case"backgroundImage":n.push(l&&!a?`background-image:url("${String(l).replace(/"/g,'\\"')}")!important`:"background-image:none!important");break;case"backgroundSize":a||n.push(`background-size:${l}!important`);break;case"backgroundRepeat":n.push(`background-repeat:${l}!important`);break;case"activeFontSize":n.push(`--ahd-tabs-active-font-size:${typeof l=="number"?`${l}px`:l}`);break;case"showActiveBorder":n.push(`--ahd-tabs-active-border-color:${l?"currentColor":"transparent"}`);break;case"tabGap":n.push(`--ahd-tabs-tab-gap:${l}px`);break;case"contentGap":n.push(`--ahd-tabs-content-gap:${l}px`);break;case"navWidth":n.push(`--ahd-tabs-nav-width:${l}px`);break;case"starSize":n.push(`--ahd-rating-star-size:${l}px`);break;case"starGap":n.push(`--ahd-rating-star-gap:${l}px`);break;case"arrowSize":n.push(`--ahd-carousel-arrow-size:${l}px`),n.push(`--ahd-carousel-chevron-size:${Math.max(12,Math.min(40,Math.round(Number(l)*.5)))}px`);break;case"dotSize":n.push(`--ahd-carousel-dot-size:${l}px`);break;case"slideGap":n.push(`--ahd-carousel-slide-gap:${l}px`);break;case"buttonSize":n.push(`--ahd-pgn-btn-size:${l}px`);break;case"buttonGap":n.push(`--ahd-pgn-btn-gap:${l}px`);break;case"buttonRadius":n.push(`--ahd-pgn-btn-radius:${l}px`);break;case"controlGap":n.push(`--ahd-pgn-control-gap:${l}px`);break;case"borderRadius":if(typeof l=="number")n.push(`border-radius:${l}px!important`);else if(l&&typeof l=="object"){const{topLeft:s=0,topRight:u=0,bottomRight:c=0,bottomLeft:h=0}=l;n.push(`border-radius:${s}px ${u}px ${c}px ${h}px!important`)}else n.push(`border-radius:${l}!important`);break}}return n.join(";")}function dy(e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(r!=null)switch(n){case"lineHeight":t.push(`--ahd-divider-thickness:${r}px!important`);break;case"height":{const o=typeof r=="number"?`${r}px`:r;t.push(`height:${o}!important`),t.push(`--ahd-iframe-height:${o}`),t.push(`--ahd-calendly-height:${o}`),t.push(`--ahd-demo-height:${o}`);break}case"width":{const o=typeof r=="number"?`${r}px`:r;t.push(`--ahd-iframe-width:${o}`),t.push(`--ahd-calendly-width:${o}`),t.push(`--ahd-demo-width:${o}`);break}case"blockPadding":on(r)&&t.push(`padding:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`);break;case"blockMargin":on(r)&&t.push(`margin:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`);break}}return t.join(";")}function hy(e){return`${e}>.text-block>div,${e}>.heading-block-wrapper>.heading-block`}function fy(e){if(e==null)return"";const t=Number(e);return t>0?"display:-webkit-box!important;-webkit-line-clamp:"+t+"!important;-webkit-box-orient:vertical!important;overflow:hidden!important":"display:block!important;overflow:visible!important"}function qs(e,t){if(!t)return null;const n=e??{},r={};for(const o of Object.keys(t)){const a=t[o],i=n[o],l=!!a&&typeof a=="object"&&!Array.isArray(a)&&!!i&&typeof i=="object"&&!Array.isArray(i);r[o]=l?{...i,...a}:a}return r}function py(e,t,n,r){if(!t)return"";const o=`#${e}`,a=my(o),i=hy(o),l=[],s=(c,h)=>{var S;const d=qs(n,h==null?void 0:h.style),f=qs(r,h==null?void 0:h.props),p=[d?uy(d,n):"",f?dy(f):""].filter(Boolean).join(";"),b=d?cy(o,d,n):"",x=(S=h==null?void 0:h.style)==null?void 0:S.textAlign,w=x?`${o}>.image-block,${o}>.logo-block{justify-content:${x==="center"?"center":x==="right"?"flex-end":"flex-start"}!important}`:"",k=[p?`${a}{${p}}`:"",w,b,h!=null&&h.hidden?`${o}{display:none}`:""].filter(Boolean).join("");if(k&&l.push(`${c}{${k}}`),h!=null&&h.style&&"lineClamp"in h.style){const v=fy(d==null?void 0:d.lineClamp);v&&l.push(`${c}{${i}{${v}}}`)}};s(ln,t.tablet),s(`@media (max-width:${Ve}px)`,t.mobile);const u=xy(e,t,n,r);return u&&l.push(u),l.join("")}function gy(e,t){return t?e?{...e,...t}:t:e}function ri(e,t){return(t==null?void 0:t.blockMargin)??(e==null?void 0:e.margin)??(t==null?void 0:t.margin)??null}function Vs(e,t,n){const r=ri(e,t),o=ri(n==null?void 0:n.style,n==null?void 0:n.props);return gy(r,o)}function ca(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 my(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 by(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 xy(e,t,n,r){if(!t)return"";const o=`#${e}`,a=by(o),i=ri(n,r),l=ca(i),s=ca(Vs(n,r,t.tablet)),u=ca(Vs(n,r,t.mobile));return s===l&&u===l?"":`
|
|
601
601
|
${ln} { ${a} { width: ${s} !important; max-width: 100% !important; } }
|
|
602
602
|
@media (max-width:${Ve}px) { ${a} { width: ${u} !important; max-width: 100% !important; } }
|
|
603
|
-
`.trim()}const
|
|
603
|
+
`.trim()}const vy=e=>{var r,o;const t=!!((r=e==null?void 0:e.props)!=null&&r.decorative),n=((o=e==null?void 0:e.props)==null?void 0:o.alt)??"";return t?m.jsx("div",{"aria-hidden":"true",role:"presentation",style:{display:"contents"},children:m.jsx(Cl,{...e,props:{...(e==null?void 0:e.props)??{},alt:""}})}):m.jsx(Cl,{...e,props:{...(e==null?void 0:e.props)??{},alt:n}})},ky=e=>{var t;return m.jsx(tb,{hoverEffect:(t=e==null?void 0:e.props)==null?void 0:t.hoverEffect,children:m.jsx(vy,{...e})})},wy=({props:e})=>m.jsx("div",{"aria-hidden":"true",className:"spacer-block",style:{height:(e==null?void 0:e.height)??Vx.height}}),Ys=Ok,md=U.createContext({}),Ks=U.createContext(!1),Sy=typeof window<"u"?U.useLayoutEffect:U.useEffect;function bd(e){var n,r;const t=(r=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:r.formFields;return Array.isArray(t)?t:[]}const Js=new WeakMap;function $y(e){if(!e||typeof e!="object")return new Map;let t=Js.get(e);return t||(t=hd(e,bd(e)),Js.set(e,t)),t}const xd=U.createContext({});function _y(){return U.useContext(md)}function Cy(){return U.useContext(xd)}const vd={ColumnsContainer:{schema:f1,Component:g1},FlexColumns:{schema:m1,Component:$1},Grid:{schema:P1,Component:j1},ButtonGroup:{schema:bw,Component:xw},Container:{schema:ik,Component:fu},EmailLayout:{schema:Vl,Component:Ys},PagePilotLayout:{schema:Vl,Component:Ys},Accordion:{schema:kw,Component:$w},PricingAccordion:{schema:Cw,Component:yw},TabsBlock:{schema:Tw,Component:zw},Carousel:{schema:Bw,Component:Gw},Pagination:{schema:qw,Component:tS},Rating:{schema:nS,Component:iS},Progress:{schema:cS,Component:gS},Marquee:{schema:mS,Component:TS},Timer:{schema:MS,Component:GS},Avatar:{schema:Om,Component:ky},Button:{schema:Wb,Component:Ub},Divider:{schema:e0,Component:t0},Heading:{schema:h0,Component:p0},Html:{schema:G0,Component:Z0},Image:{schema:sx,Component:ux},Logo:{schema:Ax,Component:Ix},Video:{schema:Hx,Component:Zx},IFrame:{schema:Lv,Component:jv},Calendly:{schema:Fv,Component:Wv},YouTubeUrl:{schema:Iv,Component:Tv},Spacer:{schema:qx,Component:wy},SkipLink:{schema:I_,Component:Wu},AccessibilityTools:{schema:T_,Component:Vu},Stepper:{schema:Zk,Component:qk},List:{schema:nw,Component:ow},Text:{schema:kv,Component:$v},Mdx:{schema:C2,Component:R2},QuillBlock:{schema:B2,Component:F2},DemoPicker:{schema:H2,Component:e=>m.jsx(W2,{...e})},MenuPicker:{schema:q2,Component:e=>m.jsx(c_,{...e})},Breadcrumb:{schema:p_,Component:S_},FormsPicker:{schema:$_,Component:e=>m.jsx(y_,{...e})},AppBannerPicker:{schema:L_,Component:e=>m.jsx(j_,{...e})},FaqPicker:{schema:B_,Component:e=>m.jsx(H_,{...e})},Table:{schema:G_,Component:U_}},kd=Kv(vd),Ay=yn($(),kd),yy=Yv(vd);function Me({id:e}){var _,y,C,I,R,E,L;const t=_y(),{staticRender:n,injectElementIds:r,mainBlockId:o,hoistedSkipLinkId:a,hoistedA11yToolsId:i}=Cy(),l=t[e];if(a&&e===a&&(l==null?void 0:l.type)==="SkipLink"||i&&e===i&&(l==null?void 0:l.type)==="AccessibilityTools")return null;const s=o&&e===o&&(l==null?void 0:l.type)==="Container"?{...l,data:{...l.data,props:{...((_=l.data)==null?void 0:_.props)??{},elementId:"main-content"}}}:l,u=bd(t),c=$y(t),h=c.get(e),d=gd(s,u,h,c),f=d,p=(f==null?void 0:f.type)==="Container"?m.jsx(fu,{...f.data,blockId:e}):m.jsx(yy,{...f});if(e==="root")return p;const b=!!((y=f==null?void 0:f.data)!=null&&y.hidden),x=n&&r?`ahd-${e}`:e,w=py(x,(C=f==null?void 0:f.data)==null?void 0:C.responsive,(I=f==null?void 0:f.data)==null?void 0:I.style,(R=f==null?void 0:f.data)==null?void 0:R.props),S=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]).has(f==null?void 0:f.type)?(L=(E=f==null?void 0:f.data)==null?void 0:E.props)==null?void 0:L.animation:null,v=S&&S.type&&S.type!=="none"?{"data-animate-type":S.type,"data-animate-trigger":S.trigger??"load","data-animate-speed":S.speed??"medium","data-animate-delay":S.delay??0,...S.disableOnMobile?{"data-animate-disable-mobile":"true"}:{}}:{};return n&&r?m.jsxs("div",{id:x,className:"ahd-block-wrapper",style:b?{display:"none"}:void 0,...v,children:[w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),p]}):m.jsxs("div",{id:x,style:{scrollMarginTop:"80px",...b?{display:"none"}:null},...v,children:[w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),p]})}function or({document:e,rootBlockId:t,staticRender:n,injectElementIds:r,isBanner:o,mainBlockId:a,hoistedSkipLinkId:i,hoistedA11yToolsId:l}){const s=U.useMemo(()=>({staticRender:!!n,injectElementIds:!!r,isBanner:!!o,mainBlockId:a,hoistedSkipLinkId:i,hoistedA11yToolsId:l}),[n,r,o,a,i,l]),u=U.useContext(Ks),c=U.useRef(null);return Sy(()=>{n||u||c.current&&(Ib(c.current),Rb(c.current))},[n,u,e,t]),m.jsx("div",{ref:c,style:{display:"contents"},children:m.jsx(md.Provider,{value:e,children:m.jsx(xd.Provider,{value:s,children:m.jsx(Ks.Provider,{value:!0,children:m.jsx(Me,{id:t})})})})})}function Iy(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="SkipLink")return t}function Ry(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="AccessibilityTools")return t}function Ty(e,t){const n=new Set;function r(o){var s,u,c,h;if(n.has(o))return;n.add(o);const a=e[o];if(!a)return;if(a.type==="Container"&&((u=(s=a.data)==null?void 0:s.props)==null?void 0:u.tag)==="main")return o;const i=((c=a.data)==null?void 0:c.props)??{},l=[];Array.isArray(i.childrenIds)&&l.push(i.childrenIds),Array.isArray((h=a.data)==null?void 0:h.childrenIds)&&l.push(a.data.childrenIds),Array.isArray(i.columns)&&i.columns.forEach(d=>{Array.isArray(d==null?void 0:d.childrenIds)&&l.push(d.childrenIds)});for(const d of l)for(const f of d){const p=r(f);if(p)return p}}return r(t)}const Ey=()=>`<img alt="" src="x:invalid" style="display:none" onerror="${"var s=this;setTimeout(function(){try{var root=s.closest('[data-ahd-tpl-root]')||s.parentNode||document.body;if(!root){s.parentNode&&s.parentNode.removeChild(s);return;}var p=new URLSearchParams(location.search);var els=root.querySelectorAll('[data-ahd-var]');for(var i=0;i<els.length;i++){var el=els[i];var v=p.get(el.getAttribute('data-ahd-var')||'');if(v!==null){el.textContent=v;}}var hs=root.querySelectorAll('[data-ahd-href-tpl]');for(var j=0;j<hs.length;j++){var he=hs[j];var tpl=he.getAttribute('data-ahd-href-tpl')||'';var filled=tpl.replace(/\\{\\{\\s*([a-zA-Z_][a-zA-Z0-9_-]*)\\s*\\}\\}/g,function(m,n){var pv=p.get(n);return pv!==null?encodeURIComponent(pv):m;});he.setAttribute('href',filled);he.removeAttribute('data-ahd-href-tpl');}var ds=root.querySelectorAll('[data-ahd-date]');if(ds.length){var now=new Date();var sod=function(d){return new Date(d.getFullYear(),d.getMonth(),d.getDate()).getTime();};for(var k=0;k<ds.length;k++){var de=ds[k];var iso=de.getAttribute('data-ahd-date')||'';if(!iso)continue;var dt=new Date(iso);if(isNaN(dt.getTime()))continue;var diff=Math.round((sod(dt)-sod(now))/86400000);var lbl;if(diff===0){lbl='Today';}else if(diff===1){lbl='Tomorrow';}else if(diff===-1){lbl='Yesterday';}else if(diff>=-6&&diff<=6){lbl=dt.toLocaleDateString(undefined,{weekday:'short'});}else{var o={month:'short',day:'numeric'};if(dt.getFullYear()!==now.getFullYear()){o.year='numeric';}lbl=dt.toLocaleDateString(undefined,o);}de.textContent=lbl;}}s.parentNode&&s.parentNode.removeChild(s);}catch(e){}},0);".replace(/"/g,""")}">`,Ny=()=>`<img alt="" src="x:invalid" style="display:none" onerror="${`var s=this;if(!window.__ahdPostMessageBound){window.__ahdPostMessageBound=true;document.addEventListener('click',function(e){try{var t=(e.composedPath&&e.composedPath()[0])||e.target;var b=t&&t.closest&&t.closest('[data-action="postMessageEvent"][data-post-message-event],[data-action="postMessageEvent"][data-action-payload]');if(!b)return;var n=b.getAttribute('data-post-message-event');if(!n){try{n=JSON.parse(b.getAttribute('data-action-payload')||'{}').postMessageEvent;}catch(x){}}if(!n)return;var ts=window.parent!==window?[window,window.parent]:[window];for(var i=0;i<ts.length;i++){ts[i].postMessage({type:n},'*');ts[i].postMessage({type:'ahd-button-click',event:n},'*');}}catch(x){}});}s.parentNode&&s.parentNode.removeChild(s);`.replace(/"/g,""")}">`,My=e=>`<img alt="" src="x:invalid" style="display:none" onerror="${`var s=this;try{var l=window.__ppLoaded=window.__ppLoaded||{};var u=${JSON.stringify(e)};for(var i=0;i<u.length;i++){if(l[u[i]])continue;l[u[i]]=1;var e=document.createElement('script');e.src=u[i];e.async=true;(document.head||document.body).appendChild(e);}}catch(x){}s.parentNode&&s.parentNode.removeChild(s);`.replace(/"/g,""")}">`,Py=e=>Object.values(e??{}).some(t=>{var n,r;return(t==null?void 0:t.type)==="Button"&&((r=(n=t==null?void 0:t.data)==null?void 0:n.props)==null?void 0:r.action)==="postMessageEvent"}),Ly=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="TabsBlock"),Oy=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="DemoPicker"),zy=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Carousel"),jy=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Pagination"),By=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Timer"),Dy=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]),Xs=e=>Object.values(e??{}).some(t=>{var n,r,o;return Dy.has(t==null?void 0:t.type)&&((o=(r=(n=t==null?void 0:t.data)==null?void 0:n.props)==null?void 0:r.animation)==null?void 0:o.type)&&t.data.props.animation.type!=="none"}),un="https://pagepilot.fabbuilder.com/scripts",Qs=`${un}/pagePilotTabs.js`,ec=`${un}/pagePilotCarousel.js`,tc=`${un}/pagePilotPagination.js`,nc=`${un}/pagePilotDemoScale.js`,rc=`${un}/pagePilotTimer.js`,oc=`${un}/pagePilotAnimation.js`,Fy=`${un}/pagePilotActions.js`,Hy=`
|
|
604
604
|
@keyframes ahd-anim-fade-in { from { opacity: 0; } to { opacity: 1; } }
|
|
605
605
|
@keyframes ahd-anim-slide-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
|
|
606
606
|
@keyframes ahd-anim-slide-right { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
|
|
@@ -613,7 +613,7 @@ ${ln} { ${a} { width: ${s} !important; max-width: 100% !important; } }
|
|
|
613
613
|
80% { transform: translateY(-2px); }
|
|
614
614
|
100% { opacity: 1; transform: translateY(0); }
|
|
615
615
|
}
|
|
616
|
-
`.trim(),
|
|
616
|
+
`.trim(),wd=`
|
|
617
617
|
${Hy}
|
|
618
618
|
|
|
619
619
|
/* Elements that animate on scroll/hover/click start hidden so there is no
|
|
@@ -996,21 +996,21 @@ table[style*="maxHeight"] {
|
|
|
996
996
|
table-layout: fixed !important;
|
|
997
997
|
}
|
|
998
998
|
|
|
999
|
-
${
|
|
999
|
+
${wd}
|
|
1000
1000
|
|
|
1001
|
-
`),Uy=[{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'}],Zy={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]},qy=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`},Vy=`https://fonts.googleapis.com/css2?${Object.entries(Zy).map(([e,t])=>`family=${qy(e,t)}`).join("&")}&display=swap`,
|
|
1001
|
+
`),Uy=[{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'}],Zy={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]},qy=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`},Vy=`https://fonts.googleapis.com/css2?${Object.entries(Zy).map(([e,t])=>`family=${qy(e,t)}`).join("&")}&display=swap`,Sd=Uy.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));Sd.map(e=>e.css);const Yy=e=>e.replace(/"/g,'\\"');Sd.map(e=>{const t=Yy(e.css);return`
|
|
1002
1002
|
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
|
|
1003
1003
|
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
|
|
1004
1004
|
content: '${e.label}';
|
|
1005
1005
|
font-family: ${e.css};
|
|
1006
1006
|
}`}).join(`
|
|
1007
|
-
`);const Ky=e=>{let t=0;const n=e.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(r,o,a)=>{t++;const i=String(a).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};:,])\s*/g,"$1").trim();return`<style${o}>${i}</style>`});return console.log("[renderToStaticMarkup] minified",t,"style block(s)"),n};function Bi(e,{rootBlockId:t,seo:n,injectElementIds:r,minifyCss:o,lang:a,skipLink:i,accessibilityTools:l,includePageCSS:s,headHtml:u,bodyBottomHtml:c,isBanner:h,injectTabsScrollSyncScript:d=!0,injectCarouselScript:f=!0,injectPaginationScript:p=!0,injectFontAssets:b=!0,injectTimerScript:x=!0,injectAnimationScript:w=!0,injectPostMessageScript:k=!1}){var
|
|
1007
|
+
`);const Ky=e=>{let t=0;const n=e.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(r,o,a)=>{t++;const i=String(a).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};:,])\s*/g,"$1").trim();return`<style${o}>${i}</style>`});return console.log("[renderToStaticMarkup] minified",t,"style block(s)"),n};function Bi(e,{rootBlockId:t,seo:n,injectElementIds:r,minifyCss:o,lang:a,skipLink:i,accessibilityTools:l,includePageCSS:s,headHtml:u,bodyBottomHtml:c,isBanner:h,injectTabsScrollSyncScript:d=!0,injectCarouselScript:f=!0,injectPaginationScript:p=!0,injectFontAssets:b=!0,injectTimerScript:x=!0,injectAnimationScript:w=!0,injectPostMessageScript:k=!1}){var Oe;const S=((Oe=e==null?void 0:e[t])==null?void 0:Oe.data)??{};a??S.lang;const v=i??S.skipLink??void 0,_=l??S.accessibilityTools??void 0,y=Object.values(e??{}).some(J=>(J==null?void 0:J.type)==="SkipLink"),C=Object.values(e??{}).some(J=>(J==null?void 0:J.type)==="AccessibilityTools");!y&&(v==null||v.enabled);const I=!C&&!!(_!=null&&_.enabled),R=I?Uu(_):"",E=I?Zu(_):"",L=I?qu():"",M=d&&Ly(e),P=f&&zy(e),B=p&&jy(e),D=x&&By(e),F=Oy(e),G=w&&Xs(e),W=k&&Py(e),X=Xs(e),Q=m.jsxs("div",{style:{margin:0,padding:0},"data-ahd-tpl-root":"true",children:[m.jsx("style",{"data-pp-theme-css":"",dangerouslySetInnerHTML:{__html:Qm}}),s&&m.jsx("style",{dangerouslySetInnerHTML:{__html:Wy(void 0,!1)}}),R&&m.jsx("style",{dangerouslySetInnerHTML:{__html:R}}),X&&m.jsx("style",{dangerouslySetInnerHTML:{__html:wd}}),b&&m.jsx("link",{rel:"stylesheet",href:Vy}),m.jsx("style",{children:`.gc-tooltip * {
|
|
1008
1008
|
margin: 0;
|
|
1009
1009
|
padding: 0;
|
|
1010
1010
|
box-sizing: border-box;
|
|
1011
1011
|
}
|
|
1012
1012
|
.gc-tooltip .gc-close { display: none !important; }
|
|
1013
|
-
.gc-tooltip .gc-copyright { display: none !important; }`}),m.jsx("style",{dangerouslySetInnerHTML:{__html:mi}}),E&&m.jsx("div",{dangerouslySetInnerHTML:{__html:E}}),
|
|
1013
|
+
.gc-tooltip .gc-copyright { display: none !important; }`}),m.jsx("style",{dangerouslySetInnerHTML:{__html:mi}}),E&&m.jsx("div",{dangerouslySetInnerHTML:{__html:E}}),L&&m.jsx("script",{dangerouslySetInnerHTML:{__html:L}}),(()=>{const J=Iy(e),V=Ry(e),K=Ty(e,t),j=J?e[J]:null,Y=V?e[V]:null,fe=K?m.jsx(or,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!r,isBanner:!!h,mainBlockId:K,hoistedSkipLinkId:J,hoistedA11yToolsId:V}):m.jsx("main",{id:"main-content",tabIndex:-1,children:m.jsx(or,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!r,isBanner:!!h,hoistedSkipLinkId:J,hoistedA11yToolsId:V})});return m.jsxs(m.Fragment,{children:[j&&m.jsx(Wu,{...j.data??{}}),h?fe:m.jsx("div",{className:"ahd-page-root",children:fe}),Y&&m.jsx(Vu,{...Y.data??{}})]})})(),M&&m.jsx("script",{src:Qs,defer:!0}),P&&m.jsx("script",{src:ec,defer:!0}),B&&m.jsx("script",{src:tc,defer:!0}),D&&m.jsx("script",{src:rc,defer:!0}),F&&m.jsx("script",{src:nc,defer:!0}),G&&m.jsx("script",{src:oc,defer:!0}),W&&m.jsx("script",{src:Fy,defer:!0})]}),q=Od.renderToStaticMarkup(Q);let te=o?Ky(q):q;const Se=[M&&Qs,P&&ec,B&&tc,D&&rc,F&&nc,G&&oc].filter(Boolean),Ae=Ey()+(W?Ny():"")+(Se.length?My(Se):""),ge=te.lastIndexOf("</div>");return te=ge!==-1?te.slice(0,ge)+Ae+te.slice(ge):te+Ae,u&&(te=te.replace("</head>",`${u}</head>`)),c&&(te=te.replace("</body>",`${c}</body>`)),te}function $d(e){return((e==null?void 0:e.sectionType)||"internal")==="external"}function Jy(e){var t;return String((e==null?void 0:e.identifier)||((t=e==null?void 0:e.metadata)==null?void 0:t.identifier)||"")}function Xy(e){const t=Jy(e);return t?`<div id="${Fr(t)}"></div>`:""}function Qy(e,t={}){var a;if(!e)return"";const n=t.rootBlockId??"root",r=((a=e==null?void 0:e[n])==null?void 0:a.data)??{},o=t.rootOverrides??{};try{return Bi(e,{rootBlockId:n,injectElementIds:!0,minifyCss:!0,includePageCSS:!0,lang:o.lang??r.lang,skipLink:o.skipLink??r.skipLink,accessibilityTools:o.accessibilityTools??r.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectPaginationScript:t.injectPaginationScript,injectAnimationScript:t.injectAnimationScript,injectPostMessageScript:t.injectPostMessageScript??!0,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 Fr(e){return String(e).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function eI(e,t,n={}){var d,f,p;const r=t.find(b=>!$d(b)),o=((p=(f=(d=r==null?void 0:r.contentMetadata)==null?void 0:d.document)==null?void 0:f.root)==null?void 0:p.data)??{},a=n.lang||o.lang||"en",i=n.canvasColor||o.canvasColor||"#FFFFFF",l=n.fontFamily||(typeof o.fontFamily=="string"?o.fontFamily:"Inter, system-ui, sans-serif"),s=n.seoTitle?`<title>${Fr(n.seoTitle)}</title>`:"",u=n.seoDescription?`<meta name="description" content="${Fr(n.seoDescription)}" />`:"",c=n.extraHead??"",h=n.extraBodyBottom??"";return`<!doctype html>
|
|
1014
1014
|
<html lang="${Fr(a)}">
|
|
1015
1015
|
<head>
|
|
1016
1016
|
<meta charset="utf-8" />
|
|
@@ -1028,5 +1028,5 @@ ${c}
|
|
|
1028
1028
|
${e}
|
|
1029
1029
|
${h}
|
|
1030
1030
|
</body>
|
|
1031
|
-
</html>`}function tI(e,t={}){const n=t.includeExternalSections??!0,r=t.wrapInDocumentShell??!0,o=[],a=e.map(l=>{var c;if(
|
|
1032
|
-
`);return r?{html:eI(i,e,t),sectionHtml:o,flushedSections:a}:{html:i,sectionHtml:o,flushedSections:a}}function nI(e){var a,i,l,s,u,c,h,d,f,p,b;if(!e)return[];const t=e.configuration??{},n=(i=(a=t==null?void 0:t.root)==null?void 0:a.data)==null?void 0:i.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 r=Array.isArray(t==null?void 0:t.steps)?t.steps:Array.isArray(t==null?void 0:t.slides)?t.slides:null;if(r){const x=new Set,w=[];for(const k of r){const S=(c=(u=(s=(l=k==null?void 0:k.contentMetadata)==null?void 0:l.document)==null?void 0:s.root)==null?void 0:u.data)==null?void 0:c.formFields;if(Array.isArray(S))for(const v of S)!(v!=null&&v.id)||x.has(v.id)||(x.add(v.id),w.push(v))}if(w.length>0)return w}const o=(b=(p=(f=(d=(h=t==null?void 0:t.step)==null?void 0:h.contentMetadata)==null?void 0:d.document)==null?void 0:f.root)==null?void 0:p.data)==null?void 0:b.formFields;return Array.isArray(o)&&o.length>0?o:Array.isArray(e.formFields)?e.formFields:[]}function rI(e){var n,r,o,a,i,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 u=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:u}}}}return(o=(r=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:r.document)!=null&&o.root?t.content.contentMetadata.document:(i=(a=t.contentMetadata)==null?void 0:a.document)!=null&&i.root?t.contentMetadata.document:(s=(l=e.contentMetadata)==null?void 0:l.document)!=null&&s.root?e.contentMetadata.document:null}function rc(e,t){return t.split(".").map(n=>n.trim()).filter(Boolean).reduce((n,r)=>n==null?n:n[r],e)}function Di(e,t){if(t){const n=rc(e,t);if(Array.isArray(n))return n;const r=Di(e);if(r){const o=r.map(a=>rc(a,t)).filter(a=>a&&typeof a=="object");if(o.length>0)return o}}if(Array.isArray(e))return e;if(e&&typeof e=="object"){for(const n of["data","rows","results","items","records"])if(Array.isArray(e[n]))return e[n]}return null}function oI(e,t){if(!t||t.length===0){const r={};for(const[o,a]of Object.entries(e))a!=null&&(r[o]=String(a));return r}const n={};for(const r of t){const o=e[r.id];o!=null&&o!==""&&(n[r.id]=String(o))}return e.id!==void 0&&n.id===void 0&&(n.id=String(e.id)),n}async function aI(e,t,n,r){if(typeof AbortController>"u")return n(e,t);const o=new AbortController,a=setTimeout(()=>o.abort(),r);try{return await n(e,{...t,signal:o.signal})}finally{clearTimeout(a)}}async function Sd(e,t={}){var h;const n=Array.isArray(e)?e:[],r=n.filter(d=>{var f,p;return((f=d==null?void 0:d.dataSource)==null?void 0:f.type)==="api"&&((p=d==null?void 0:d.dataSource)==null?void 0:p.apiUrl)});if(r.length===0)return{fields:n,attempted:0,refreshed:0,errors:{}};const o=t.fetchFn??(typeof fetch<"u"?fetch:void 0);if(!o){const d=new Error("[pagepilot-visual-editor] refreshApiDataSources: global fetch is not available — pass `fetchFn`.");for(const f of r)(h=t.onError)==null||h.call(t,f,d);return{fields:n,attempted:r.length,refreshed:0,errors:Object.fromEntries(r.map(f=>[f.id,d.message]))}}const a=t.timeoutMs??1e4,i={};let l=0;const s=await Promise.all(r.map(async d=>{var x;const{apiUrl:f,apiMethod:p="GET",apiItemPath:b}=d.dataSource;try{const w=await aI(f,{method:p,headers:{Accept:"application/json",...t.headers}},o,a);if(!w.ok)throw new Error(`GET ${f} → HTTP ${w.status}`);const k=await w.json(),S=Di(k,b);if(!S)throw new Error(`GET ${f} → response had no array of rows`);const v=S.map(_=>oI(_,d.itemFields));return l+=1,{id:d.id,value:v}}catch(w){const k=w instanceof Error?w:new Error(String(w));return i[d.id]=k.message,(x=t.onError)==null||x.call(t,d,k),null}}));if(l===0)return{fields:n,attempted:r.length,refreshed:0,errors:i};const u=new Map(s.filter(Boolean).map(d=>[d.id,d.value]));return{fields:n.map(d=>u.has(d.id)?{...d,value:u.get(d.id)}:d),attempted:r.length,refreshed:l,errors:i}}async function $d(e,t={}){var r,o;const n=(o=(r=e==null?void 0:e.root)==null?void 0:r.data)==null?void 0:o.formFields;return Sd(Array.isArray(n)?n:[],t)}function _d(e,t){if(!e)return t();El(e);try{return t()}finally{El(null)}}function iI(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function lI(e){const t=e;return!!(t.pagePath&&t.baseUrl&&t.tenantId)}function sI(e){const t=e;return!!(t.templateId&&t.baseUrl)}function cI(e){if(!e||typeof e!="object")return e;const t=Li(e);return!t||t.length===0?e:zi(e,t)}async function oc(e,t){if(!e||typeof e!="object")return{document:e,apiRefresh:null};const n=Li(e);if(!n||n.length===0)return{document:e,apiRefresh:null};let r=n,o=null;return t.refreshApiDataSources&&(o=await $d(e,{fetchFn:t.fetchFn,headers:t.apiDataSourceHeaders,timeoutMs:t.apiDataSourceTimeoutMs,onError:t.onApiDataSourceError}),r=o.fields),{document:zi(e,r),apiRefresh:o}}const uI=new Set(["ColumnsContainer","FlexColumns","Grid","ButtonGroup","Container","EmailLayout","Accordion","PricingAccordion","TabsBlock","Carousel","Rating","Progress","Marquee","Timer","Pagination","Table","DemoPicker","MenuPicker","Breadcrumb","FormsPicker","AppBannerPicker","FaqPicker","Avatar","Button","Divider","Heading","Html","Image","Logo","Video","IFrame","Calendly","YouTubeUrl","Spacer","SkipLink","AccessibilityTools","Stepper","List","Text","Mdx","QuillBlock"]);function dI(e){var r,o,a;const t=((r=e==null?void 0:e.data)==null?void 0:r.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:((o=e==null?void 0:e.data)==null?void 0:o.style)??{},hidden:(a=e==null?void 0:e.data)==null?void 0:a.hidden}}}function Cd(e){if(!e||typeof e!="object")return e;let t=!1;const n={};for(const[r,o]of Object.entries(e)){const a=o==null?void 0:o.type;a&&!uI.has(a)?(n[r]=dI(o),t=!0,console.warn(`[pagepilot-visual-editor] renderToStaticHtml: block "${r}" has unsupported type "${a}" — coerced to Text.`)):n[r]=o}return t?n:e}function Fi(e,t){var i;if(!e)return"";const n=t.rootBlockId??"root",r=cI(e),o=Cd(r),a=((i=o==null?void 0:o[n])==null?void 0:i.data)??{};return _d(t.recordType,()=>Bi(o,{rootBlockId:n,injectElementIds:t.injectElementIds??!0,minifyCss:t.minifyCss??!0,includePageCSS:t.includePageCSS??!0,lang:t.lang??a.lang,skipLink:t.skipLink??a.skipLink,accessibilityTools:t.accessibilityTools??a.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,seo:t.seo,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner}))}function Hi(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 Gi(e){const t={"Content-Type":"application/json"};return e.authToken&&(t.Authorization=`Bearer ${e.authToken}`),t}async function Wi(e,t,n){const r=await n(e,t);if(!r.ok){const o=await r.text().catch(()=>"");return{ok:!1,body:null,status:r.status,text:o}}return{ok:!0,body:await r.json(),status:r.status,text:""}}async function Ad(e,t,n){var u;const{wrapInDocumentShell:r=!0,headHtml:o,bodyBottomHtml:a}=n,i=Array.isArray(t==null?void 0:t.sections)?t.sections:[];if(i.length===0){const{document:c}=await oc(((u=t==null?void 0:t.contentMetadata)==null?void 0:u.document)??e,n);return Fi(c,{...n,recordType:n.recordType??"page"})}const l=await Promise.all(i.map(async c=>{var p;const h=(p=c==null?void 0:c.contentMetadata)==null?void 0:p.document;if(!h)return c;const{document:d}=await oc(h,n),f=Cd(d);return{...c,contentMetadata:{...c.contentMetadata??{},document:f}}})),{html:s}=_d(n.recordType??"page",()=>tI(l,{rootBlockId:n.rootBlockId,injectTabsScrollSyncScript:n.injectTabsScrollSyncScript,injectCarouselScript:n.injectCarouselScript,injectFontAssets:n.injectFontAssets,isBanner:n.isBanner,seo:n.seo,wrapInDocumentShell:r,seoTitle:(t==null?void 0:t.metaTitle)??(t==null?void 0:t.title)??(t==null?void 0:t.name),seoDescription:t==null?void 0:t.metaDescription,lang:n.lang??(t==null?void 0:t.lang),extraHead:o??(t==null?void 0:t.head)??"",extraBodyBottom:a??(t==null?void 0:t.bodyBottom)??""}));return s}async function hI(e,t){const{baseUrl:n,tenantId:r,pageId:o}=t,i=`${n.replace(/\/+$/,"")}/tenant/${r}/page/${o}`,l=Hi(t),s=await Wi(i,{method:"GET",headers:Gi(t)},l);if(!s.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${i} → ${s.status}${s.text?`: ${s.text}`:""}`);return Ad(e,s.body,{...t,fetchFn:l})}async function fI(e,t){var d,f;const{baseUrl:n,tenantId:r,pagePath:o,cache:a=!1,update:i=!0}=t,s=`${n.replace(/\/+$/,"")}/tenant/${r}/pagebypath/${encodeURIComponent(o)}?cache=${a}&update=${i}`,u=Hi(t),c=await Wi(s,{method:"GET",headers:Gi(t)},u);if(!c.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${s} → ${c.status}${c.text?`: ${c.text}`:""}`);const h=((d=c.body)==null?void 0:d.data)??((f=c.body)==null?void 0:f.payload)??c.body;return Ad(e,h,{...t,fetchFn:u})}async function pI(e){const{baseUrl:t,tenantId:n,templateId:r,isGlobal:o=!1}=e,a=t.replace(/\/+$/,""),i=Hi(e),l=o?`${a}/global-template/${r}`:`${a}/tenant/${n}/template/${r}`,s=o?{"Content-Type":"application/json"}:Gi(e),u=await Wi(l,{method:"GET",headers:s},i);if(u.ok)return u.body;throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${l} → ${u.status}${u.text?`: ${u.text}`:""}`)}function gI(e,t){if(!t)return e;const n=new Map;for(const o of e)o!=null&&o.id&&n.set(o.id,o);if(Array.isArray(t)){for(const o of t){if(!(o!=null&&o.id))continue;const i={...n.get(o.id)??{id:o.id,name:o.id,type:"text"},...o};n.set(o.id,i)}return Array.from(n.values())}const r=Object.entries(t).filter(([,o])=>o!=null);if(r.length===0)return e;for(const[o,a]of r){const i=String(a),l=n.get(o);l?n.set(o,{...l,value:i}):n.set(o,{id:o,name:o,type:"text",value:i})}return Array.from(n.values())}async function mI(e,t){const n=await pI(t),r=rI(n)??(e&&Object.keys(e).length>0?e:null);if(!r)return"";const o=nI(n),a=gI(o,t.variables),i=zi(r,a);return Fi(i,t)}function bI(e,t){return sI(t)?mI(e,t):lI(t)?fI(e,t):iI(t)?hI(e,t):Fi(e,t)}function xI(){return`block-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}function vI(e,t){e.data&&(Array.isArray(e.data.childrenIds)&&(e.data.childrenIds=e.data.childrenIds.map(n=>t[n]??n)),e.data.props&&(Array.isArray(e.data.props.childrenIds)&&(e.data.props.childrenIds=e.data.props.childrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.startChildrenIds)&&(e.data.props.startChildrenIds=e.data.props.startChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.endChildrenIds)&&(e.data.props.endChildrenIds=e.data.props.endChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.columns)&&(e.data.props.columns=e.data.props.columns.map(n=>({...n,childrenIds:(n.childrenIds||[]).map(r=>t[r]??r)}))),Array.isArray(e.data.props.cells)&&(e.data.props.cells=e.data.props.cells.map(n=>n===null||typeof n!="object"?n:{...n,childrenIds:(n.childrenIds||[]).map(r=>t[r]??r)})),Array.isArray(e.data.props.items)&&(e.data.props.items=e.data.props.items.map(n=>({...n,...n.titleChildrenIds!==void 0?{titleChildrenIds:(n.titleChildrenIds||[]).map(r=>t[r]??r)}:{},...n.contentChildrenIds!==void 0?{contentChildrenIds:(n.contentChildrenIds||[]).map(r=>t[r]??r)}:{},...n.cardChildrenIds!==void 0?{cardChildrenIds:(n.cardChildrenIds||[]).map(r=>t[r]??r)}:{},...n.detailChildrenIds!==void 0?{detailChildrenIds:(n.detailChildrenIds||[]).map(r=>t[r]??r)}:{}})))))}function en(e,t){const n=oo(e,t),r={};n.forEach(a=>{r[a]=xI()});const o={};return n.forEach(a=>{const i=JSON.parse(JSON.stringify(e[a]));vI(i,r),o[r[a]]=i}),{newBlocks:o,idMap:r,newRootId:r[t]}}function kI(e,t,n){var r,o,a,i;for(const[l,s]of Object.entries(e)){if(!s||typeof s!="object")continue;const u=s;if(u.data&&Array.isArray(u.data.childrenIds)&&u.data.childrenIds.includes(t)){const c=u.data.childrenIds.indexOf(t),h=[...u.data.childrenIds];return h.splice(c+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,childrenIds:h}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.childrenIds)&&u.data.props.childrenIds.includes(t)){const c=u.data.props.childrenIds.indexOf(t),h=[...u.data.props.childrenIds];return h.splice(c+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,childrenIds:h}}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.columns)){const c=u.data.props.columns;for(let h=0;h<c.length;h++){const d=c[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=c.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,columns:p}}}}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.cells)){const c=u.data.props.cells;for(let h=0;h<c.length;h++){const d=c[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=c.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,cells:p}}}}}}}if(u.type==="PricingAccordion"&&((r=u.data)!=null&&r.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=Array.isArray(c[h].cardChildrenIds)?c[h].cardChildrenIds:[],f=Array.isArray(c[h].detailChildrenIds)?c[h].detailChildrenIds:[];for(const[p,b]of[[d,"cardChildrenIds"],[f,"detailChildrenIds"]])if(p.includes(t)){const x=p.indexOf(t),w=c.map(k=>({...k,cardChildrenIds:Array.isArray(k.cardChildrenIds)?[...k.cardChildrenIds]:[],detailChildrenIds:Array.isArray(k.detailChildrenIds)?[...k.detailChildrenIds]:[]}));return w[h][b].splice(x+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:w}}}}}}}if((u.type==="TabsBlock"||u.type==="VerticalAccordion"||u.type==="Carousel"||u.type==="Marquee"||u.type==="Pagination")&&((o=u.data)!=null&&o.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=Array.isArray(c[h].contentChildrenIds)?c[h].contentChildrenIds:[];if(d.includes(t)){const f=d.indexOf(t),p=c.map(b=>({...b,contentChildrenIds:Array.isArray(b.contentChildrenIds)?[...b.contentChildrenIds]:[]}));return p[h].contentChildrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:p}}}}}}}if(u.type==="MenuPicker"&&((a=u.data)!=null&&a.props))for(const c of["startChildrenIds","endChildrenIds"]){const h=Array.isArray(u.data.props[c])?u.data.props[c]:[];if(h.includes(t)){const d=h.indexOf(t),f=[...h];return f.splice(d+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,[c]:f}}}}}}if(u.type==="Accordion"&&((i=u.data)!=null&&i.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=c[h],f=Array.isArray(d.titleChildrenIds)?d.titleChildrenIds:[],p=Array.isArray(d.contentChildrenIds)?d.contentChildrenIds:[];if(f.includes(t)){const b=f.indexOf(t),x=c.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[h].titleChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:x}}}}}if(p.includes(t)){const b=p.indexOf(t),x=c.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[h].contentChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:x}}}}}}}}return null}function wI(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){if((i==null?void 0:i.type)!=="FlexColumns")continue;const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.columns;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{flexId:a,columnIndex:s}}}return null}function SI(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.cells;if(!((i==null?void 0:i.type)!=="Grid"||!Array.isArray(l))){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{gridId:a,cellIndex:s}}}return null}function $I(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){if((i==null?void 0:i.type)!=="Pagination")continue;const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.cells;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{paginationId:a,cellIndex:s}}}return null}function _I(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){const l=i==null?void 0:i.type;if(l!=="Carousel"&&l!=="Marquee"&&l!=="TabsBlock")continue;const s=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.items;if(Array.isArray(s)){for(let u=0;u<s.length;u++)if(Array.isArray((o=s[u])==null?void 0:o.contentChildrenIds)&&s[u].contentChildrenIds.includes(t))return{parentId:a,itemIndex:u,parentType:l}}}return null}function ac(e,t,n){var d,f,p;if(!e[t])return null;const r=e[t];if((r==null?void 0:r.type)==="TabsBlock"){const x=Array.isArray((f=(d=r.data)==null?void 0:d.props)==null?void 0:f.items)?r.data.props.items:[];if(x.length>=10)return null;const w=x[0]??{},k=Array.isArray(w.contentChildrenIds)?w.contentChildrenIds:[];let S={...e};const v=[];let _=null;for(const I of k){if(!S[I])continue;const{newBlocks:R,newRootId:E}=en(S,I);S={...S,...R},v.push(E),_||(_=E)}const y=_??t,C=[...x,{label:w.label??`Tab ${x.length+1}`,contentChildrenIds:v}];return S={...S,[t]:{...r,data:{...r.data,props:{...r.data.props,items:C}}}},{updatedDocument:S,newRootId:y}}const o=SI(e,n);if(o){const b=e[o.gridId],x=b.data.props??{},w=x.columnsCount??2,k=x.rowsCount??2,S=Array.isArray(x.cells)?x.cells:[],_=S.some(M=>(M==null?void 0:M.colStart)!=null||(M==null?void 0:M.rowStart)!=null||(M==null?void 0:M.colSpan)!=null||(M==null?void 0:M.rowSpan)!=null)?S.length:w*k,y=Array.from({length:_},(M,P)=>S[P]??{childrenIds:[]});let C=y.findIndex((M,P)=>P>o.cellIndex&&(!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0));if(C===-1&&(C=y.findIndex(M=>!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0)),C===-1)return null;const{newBlocks:I,newRootId:R}=en(e,t),E=y.map((M,P)=>P===C?{...M,childrenIds:[...(M==null?void 0:M.childrenIds)??[],R]}:M);return{updatedDocument:{...e,...I,[o.gridId]:{...b,data:{...b.data,props:{...b.data.props,cells:E}}}},newRootId:R}}const a=$I(e,n);if(a){const b=e[a.paginationId],x=b.data.props??{},w=x.columnsCount??2,k=x.rowsCount??2,S=Array.isArray(x.cells)?x.cells:[],v=Math.max(w*k,S.length),_=Array.from({length:v},(O,M)=>S[M]??{childrenIds:[]});let y=_.findIndex((O,M)=>M>a.cellIndex&&(!Array.isArray(O==null?void 0:O.childrenIds)||O.childrenIds.length===0));y===-1&&(y=_.findIndex(O=>!Array.isArray(O==null?void 0:O.childrenIds)||O.childrenIds.length===0)),y===-1&&(_.push({childrenIds:[]}),y=_.length-1);const{newBlocks:C,newRootId:I}=en(e,t),R=_.map((O,M)=>M===y?{...O,childrenIds:[...(O==null?void 0:O.childrenIds)??[],I]}:O);return{updatedDocument:{...e,...C,[a.paginationId]:{...b,data:{...b.data,props:{...b.data.props,cells:R}}}},newRootId:I}}const i=wI(e,n);if(i){const b=e[i.flexId],x=b.data.props??{},w=x.columnsCount??2,k=Array.isArray(x.columns)?x.columns:[],S=Array.from({length:w},(R,E)=>k[E]??{childrenIds:[]});let v=S.findIndex((R,E)=>E>i.columnIndex&&(!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0));if(v===-1&&(v=S.findIndex(R=>!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0)),v===-1)return null;const{newBlocks:_,newRootId:y}=en(e,t),C=S.map((R,E)=>E===v?{...R,childrenIds:[...(R==null?void 0:R.childrenIds)??[],y]}:R);return{updatedDocument:{...e,..._,[i.flexId]:{...b,data:{...b.data,props:{...b.data.props,columns:C}}}},newRootId:y}}const l=_I(e,n);if(l){let b=e[l.parentId],x=Array.isArray((p=b.data.props)==null?void 0:p.items)?b.data.props.items:[],w=e,k=x.findIndex((C,I)=>I>l.itemIndex&&(!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0));if(k===-1&&(k=x.findIndex(C=>!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0)),k===-1)if(l.parentType==="TabsBlock"&&x.length<10){const C=[...x,{label:`Tab ${x.length+1}`,contentChildrenIds:[]}];w={...w,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:C}}}},b=w[l.parentId],x=C,k=x.length-1}else return null;const{newBlocks:S,newRootId:v}=en(w,t),_=x.map((C,I)=>I===k?{...C,...l.parentType==="TabsBlock"&&!(C!=null&&C.label)?{label:`Tab ${I+1}`}:{},contentChildrenIds:[...(C==null?void 0:C.contentChildrenIds)??[],v]}:C);return{updatedDocument:{...w,...S,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:_}}}},newRootId:v}}const{newBlocks:s,newRootId:u}=en(e,t),c={...e,...s},h=kI(c,n,u);return h&&(c[h.parentId]=h.updatedParent),{updatedDocument:c,newRootId:u}}function yd(e,t){const n=o=>Array.isArray(o)?o.filter(a=>!t.has(a)):o,r={};for(const[o,a]of Object.entries(e)){if(t.has(o))continue;const i=a;if(!(i!=null&&i.data)){r[o]=i;continue}const l={...i.data};if(Array.isArray(l.childrenIds)&&(l.childrenIds=n(l.childrenIds)),l.props){const s={...l.props};Array.isArray(s.childrenIds)&&(s.childrenIds=n(s.childrenIds)),Array.isArray(s.startChildrenIds)&&(s.startChildrenIds=n(s.startChildrenIds)),Array.isArray(s.endChildrenIds)&&(s.endChildrenIds=n(s.endChildrenIds)),Array.isArray(s.columns)&&(s.columns=s.columns.map(u=>({...u,childrenIds:n(u.childrenIds)}))),Array.isArray(s.cells)&&(s.cells=s.cells.map(u=>u===null||typeof u!="object"?u:{...u,childrenIds:n(u.childrenIds)})),Array.isArray(s.items)&&(s.items=s.items.map(u=>({...u,...u.titleChildrenIds!==void 0?{titleChildrenIds:n(u.titleChildrenIds)}:{},...u.contentChildrenIds!==void 0?{contentChildrenIds:n(u.contentChildrenIds)}:{},...u.cardChildrenIds!==void 0?{cardChildrenIds:n(u.cardChildrenIds)}:{},...u.detailChildrenIds!==void 0?{detailChildrenIds:n(u.detailChildrenIds)}:{}}))),l.props=s}r[o]={...i,data:l}}return r}function CI(e){var r;const t=e==null?void 0:e.type,n=((r=e==null?void 0:e.data)==null?void 0:r.props)??{};if(t==="Grid"){const o=n.columnsCount??2,a=n.rowsCount??2,i=Array.isArray(n.cells)?n.cells:[],s=i.some(c=>(c==null?void 0:c.colStart)!=null||(c==null?void 0:c.rowStart)!=null||(c==null?void 0:c.colSpan)!=null||(c==null?void 0:c.rowSpan)!=null)?i.length:o*a,u=Array.from({length:s},(c,h)=>{var d;return{childrenIds:Array.isArray((d=i[h])==null?void 0:d.childrenIds)?i[h].childrenIds:[]}});return{slotCount:s,slots:u}}if(t==="FlexColumns"){const o=n.columnsCount??(Array.isArray(n.columns)?n.columns.length:2),a=Array.isArray(n.columns)?n.columns:[],i=Array.from({length:o},(l,s)=>{var u;return{childrenIds:Array.isArray((u=a[s])==null?void 0:u.childrenIds)?a[s].childrenIds:[]}});return{slotCount:o,slots:i}}if(t==="Carousel"||t==="Marquee"){const o=Array.isArray(n.items)?n.items:[],a=o.length,i=o.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:a,slots:i}}if(t==="TabsBlock"){const o=Array.isArray(n.items)?n.items:[],a=o.length,i=o.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:a,slots:i}}if(t==="Pagination"){const o=n.columnsCount??2,a=n.rowsCount??2,i=Array.isArray(n.cells)?n.cells:[],l=Math.max(o*a,i.length),s=Array.from({length:l},(u,c)=>{var h;return{childrenIds:Array.isArray((h=i[c])==null?void 0:h.childrenIds)?i[c].childrenIds:[]}});return{slotCount:l,slots:s}}return null}function hr(e){return e==="Grid"||e==="FlexColumns"||e==="Carousel"||e==="Marquee"||e==="Pagination"||e==="TabsBlock"}const Tr=new WeakMap;function xo(e,t){const n=e[t];if(!n||typeof n!="object")return null;const r=Tr.get(n);if(r!==void 0)return r&&r.containerId===t?r:r&&{...r,containerId:t};if(!hr(n.type))return Tr.set(n,null),null;const o=CI(n);if(!o)return Tr.set(n,null),null;const{slotCount:a,slots:i}=o,l=i.findIndex(c=>c.childrenIds.length>0),s=i.filter(c=>c.childrenIds.length===0).length,u={containerId:t,type:n.type,slotCount:a,slots:i,firstFilledSlot:l,emptySlotCount:s};return Tr.set(n,u),u}function oi(e,t){for(const[n,r]of Object.entries(e)){if(!hr(r==null?void 0:r.type))continue;const o=xo(e,n);if(o!=null&&o.slots.some(a=>a.childrenIds.includes(t)))return n}return null}function Id(e,t,n,r){var u;const o=e[t];if(!o||!hr(o.type))return e;const a=((u=o.data)==null?void 0:u.props)??{};if(o.type==="Grid"){let c=a.columnsCount??2,h=a.rowsCount??2;if(c*h>=n)return e;r==="columns"?c=Math.max(c,Math.ceil(n/Math.max(1,h))):h=Math.max(h,Math.ceil(n/Math.max(1,c)));const d=c*h,f=Array.isArray(a.cells)?a.cells:[],p=Array.from({length:d},(b,x)=>f[x]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,columnsCount:c,rowsCount:h,cells:p}}}}}if(o.type==="Carousel"){const h=Array.isArray(a.items)?a.items:[];if(h.length>=n)return e;const d=Math.min(n,20),f=Array.from({length:d},(p,b)=>h[b]??{contentChildrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="Marquee"){const h=Array.isArray(a.items)?a.items:[];if(h.length>=n)return e;const d=Math.min(n,30),f=Array.from({length:d},(p,b)=>h[b]??{contentChildrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="TabsBlock"){const h=Array.isArray(a.items)?a.items:[];if(h.length>=n)return e;const d=Math.min(n,10),f=Array.from({length:d},(p,b)=>h[b]??{label:`Tab ${b+1}`,contentChildrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="Pagination"){const c=a.columnsCount??2,h=a.rowsCount??2,d=Array.isArray(a.cells)?a.cells:[];if(Math.max(c*h,d.length)>=n)return e;const p=Array.from({length:n},(b,x)=>d[x]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,cells:p}}}}}if((a.columnsCount??(Array.isArray(a.columns)?a.columns.length:2))>=n)return e;const l=Array.isArray(a.columns)?a.columns:[],s=Array.from({length:n},(c,h)=>l[h]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,columnsCount:n,columns:s}}}}}function Rd(e,t,n){var u;const r=e[t];if(!r||!hr(r.type))return e;const o=xo(e,t);if(!o)return e;let a=-1;o.slots.forEach((c,h)=>{c.childrenIds.length>0&&(a=h)});const i=Math.max(n,a+1,1);if(i>=o.slotCount)return e;const l=((u=r.data)==null?void 0:u.props)??{};if(r.type==="Pagination"){const c=(l.columnsCount??2)*(l.rowsCount??2),h=Math.max(i,c);if(h>=o.slotCount)return e;const d=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,cells:d.slice(0,h)}}}}}if(r.type==="Carousel"||r.type==="Marquee"||r.type==="TabsBlock"){const c=Array.isArray(l.items)?l.items:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,items:c.slice(0,i)}}}}}if(r.type==="Grid"){const c=l.columnsCount??2,h=l.rowsCount??2,d=Math.max(1,Math.ceil(i/Math.max(1,c)));if(d>=h)return e;const f=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,rowsCount:d,cells:f.slice(0,c*d)}}}}}const s=Array.isArray(l.columns)?l.columns:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,columnsCount:i,columns:s.slice(0,i)}}}}}function AI(e,t,n,r="columns"){const o=t==null?void 0:t.sourceBlockId;if(!o||!e[o])return null;const a=Math.max(1,n);let i=e,l=Array.isArray(t.rowIds)?[...t.rowIds]:[],s=1+l.length;if(s===a)return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:!1};if(s<a){let h=!1;for(;s<a;){const d=l.length>0?l[l.length-1]:o;let f=ac(i,o,d);if(!f){const p=oi(i,o);if(!p){h=!0;break}const b=xo(i,p),x=((b==null?void 0:b.slotCount)??0)+(a-s),w=Id(i,p,x,r);if(w===i){h=!0;break}if(i=w,f=ac(i,o,d),!f){h=!0;break}}i=f.updatedDocument,l=[...l,f.newRootId],s=1+l.length}return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:h}}const u=a,c=l.slice(u-1);if(c.length>0){const h=new Set;for(const f of c)for(const p of oo(i,f))h.add(p);i=yd(i,h);const d=oi(i,o);d&&(i=Rd(i,d,u)),l=l.slice(0,u-1),s=1+l.length}return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:!1}}exports.Reader=or;exports.ReaderBlock=Me;exports.ReaderBlockSchema=xd;exports.ReaderDocumentSchema=Ay;exports.cloneSubtree=en;exports.extractApiRows=Di;exports.findRepeatableContainerOf=oi;exports.getRepeatableContainerInfo=xo;exports.growContainerToFit=Id;exports.isRepeatableContainerType=hr;exports.reconcileRepeatFieldRowCount=AI;exports.refreshApiDataSources=Sd;exports.refreshDocumentApiDataSources=$d;exports.removeSubtree=yd;exports.renderToStaticHtml=bI;exports.renderToStaticMarkup=Bi;exports.shrinkContainerToFit=Rd;
|
|
1031
|
+
</html>`}function tI(e,t={}){const n=t.includeExternalSections??!0,r=t.wrapInDocumentShell??!0,o=[],a=e.map(l=>{var c;if($d(l)){const h=Xy(l);return n&&h&&o.push(h),{...l,content:h}}const s=(c=l==null?void 0:l.contentMetadata)==null?void 0:c.document;if(!s)return l!=null&&l.content&&o.push(String(l.content)),l;const u=Qy(s,t);return u&&o.push(u),{...l,content:u,contentMetadata:{...l.contentMetadata??{},document:s}}}),i=o.join(`
|
|
1032
|
+
`);return r?{html:eI(i,e,t),sectionHtml:o,flushedSections:a}:{html:i,sectionHtml:o,flushedSections:a}}function nI(e){var a,i,l,s,u,c,h,d,f,p,b;if(!e)return[];const t=e.configuration??{},n=(i=(a=t==null?void 0:t.root)==null?void 0:a.data)==null?void 0:i.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 r=Array.isArray(t==null?void 0:t.steps)?t.steps:Array.isArray(t==null?void 0:t.slides)?t.slides:null;if(r){const x=new Set,w=[];for(const k of r){const S=(c=(u=(s=(l=k==null?void 0:k.contentMetadata)==null?void 0:l.document)==null?void 0:s.root)==null?void 0:u.data)==null?void 0:c.formFields;if(Array.isArray(S))for(const v of S)!(v!=null&&v.id)||x.has(v.id)||(x.add(v.id),w.push(v))}if(w.length>0)return w}const o=(b=(p=(f=(d=(h=t==null?void 0:t.step)==null?void 0:h.contentMetadata)==null?void 0:d.document)==null?void 0:f.root)==null?void 0:p.data)==null?void 0:b.formFields;return Array.isArray(o)&&o.length>0?o:Array.isArray(e.formFields)?e.formFields:[]}function rI(e){var n,r,o,a,i,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 u=Array.isArray(t.formFields)?t.formFields:[];return{...t.blocks,root:{type:"PagePilotLayout",data:{backdropColor:"#FFFFFF",canvasColor:"#FFFFFF",textColor:"#262626",fontFamily:"MODERN_SANS",childrenIds:[t.rootBlockId],maxWidth:"100%",formFields:u}}}}return(o=(r=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:r.document)!=null&&o.root?t.content.contentMetadata.document:(i=(a=t.contentMetadata)==null?void 0:a.document)!=null&&i.root?t.contentMetadata.document:(s=(l=e.contentMetadata)==null?void 0:l.document)!=null&&s.root?e.contentMetadata.document:null}function ac(e,t){return t.split(".").map(n=>n.trim()).filter(Boolean).reduce((n,r)=>n==null?n:n[r],e)}function Di(e,t){if(t){const n=ac(e,t);if(Array.isArray(n))return n;const r=Di(e);if(r){const o=r.map(a=>ac(a,t)).filter(a=>a&&typeof a=="object");if(o.length>0)return o}}if(Array.isArray(e))return e;if(e&&typeof e=="object"){for(const n of["data","rows","results","items","records"])if(Array.isArray(e[n]))return e[n]}return null}function oI(e,t){if(!t||t.length===0){const r={};for(const[o,a]of Object.entries(e))a!=null&&(r[o]=String(a));return r}const n={};for(const r of t){const o=e[r.id];o!=null&&o!==""&&(n[r.id]=String(o))}return e.id!==void 0&&n.id===void 0&&(n.id=String(e.id)),n}async function aI(e,t,n,r){if(typeof AbortController>"u")return n(e,t);const o=new AbortController,a=setTimeout(()=>o.abort(),r);try{return await n(e,{...t,signal:o.signal})}finally{clearTimeout(a)}}async function _d(e,t={}){var h;const n=Array.isArray(e)?e:[],r=n.filter(d=>{var f,p;return((f=d==null?void 0:d.dataSource)==null?void 0:f.type)==="api"&&((p=d==null?void 0:d.dataSource)==null?void 0:p.apiUrl)});if(r.length===0)return{fields:n,attempted:0,refreshed:0,errors:{}};const o=t.fetchFn??(typeof fetch<"u"?fetch:void 0);if(!o){const d=new Error("[pagepilot-visual-editor] refreshApiDataSources: global fetch is not available — pass `fetchFn`.");for(const f of r)(h=t.onError)==null||h.call(t,f,d);return{fields:n,attempted:r.length,refreshed:0,errors:Object.fromEntries(r.map(f=>[f.id,d.message]))}}const a=t.timeoutMs??1e4,i={};let l=0;const s=await Promise.all(r.map(async d=>{var x;const{apiUrl:f,apiMethod:p="GET",apiItemPath:b}=d.dataSource;try{const w=await aI(f,{method:p,headers:{Accept:"application/json",...t.headers}},o,a);if(!w.ok)throw new Error(`GET ${f} → HTTP ${w.status}`);const k=await w.json(),S=Di(k,b);if(!S)throw new Error(`GET ${f} → response had no array of rows`);const v=S.map(_=>oI(_,d.itemFields));return l+=1,{id:d.id,value:v}}catch(w){const k=w instanceof Error?w:new Error(String(w));return i[d.id]=k.message,(x=t.onError)==null||x.call(t,d,k),null}}));if(l===0)return{fields:n,attempted:r.length,refreshed:0,errors:i};const u=new Map(s.filter(Boolean).map(d=>[d.id,d.value]));return{fields:n.map(d=>u.has(d.id)?{...d,value:u.get(d.id)}:d),attempted:r.length,refreshed:l,errors:i}}async function Cd(e,t={}){var r,o;const n=(o=(r=e==null?void 0:e.root)==null?void 0:r.data)==null?void 0:o.formFields;return _d(Array.isArray(n)?n:[],t)}function Ad(e,t){if(!e)return t();El(e);try{return t()}finally{El(null)}}function iI(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function lI(e){const t=e;return!!(t.pagePath&&t.baseUrl&&t.tenantId)}function sI(e){const t=e;return!!(t.templateId&&t.baseUrl)}function cI(e){if(!e||typeof e!="object")return e;const t=Oi(e);return!t||t.length===0?e:zi(e,t)}async function ic(e,t){if(!e||typeof e!="object")return{document:e,apiRefresh:null};const n=Oi(e);if(!n||n.length===0)return{document:e,apiRefresh:null};let r=n,o=null;return t.refreshApiDataSources&&(o=await Cd(e,{fetchFn:t.fetchFn,headers:t.apiDataSourceHeaders,timeoutMs:t.apiDataSourceTimeoutMs,onError:t.onApiDataSourceError}),r=o.fields),{document:zi(e,r),apiRefresh:o}}const uI=new Set(["ColumnsContainer","FlexColumns","Grid","ButtonGroup","Container","EmailLayout","PagePilotLayout","Accordion","PricingAccordion","TabsBlock","Carousel","Rating","Progress","Marquee","Timer","Pagination","Table","DemoPicker","MenuPicker","Breadcrumb","FormsPicker","AppBannerPicker","FaqPicker","Avatar","Button","Divider","Heading","Html","Image","Logo","Video","IFrame","Calendly","YouTubeUrl","Spacer","SkipLink","AccessibilityTools","Stepper","List","Text","Mdx","QuillBlock"]);function dI(e){var r,o,a;const t=((r=e==null?void 0:e.data)==null?void 0:r.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:((o=e==null?void 0:e.data)==null?void 0:o.style)??{},hidden:(a=e==null?void 0:e.data)==null?void 0:a.hidden}}}function yd(e){if(!e||typeof e!="object")return e;let t=!1;const n={};for(const[r,o]of Object.entries(e)){const a=o==null?void 0:o.type;a&&!uI.has(a)?(n[r]=dI(o),t=!0,console.warn(`[pagepilot-visual-editor] renderToStaticHtml: block "${r}" has unsupported type "${a}" — coerced to Text.`)):n[r]=o}return t?n:e}function Fi(e,t){var i;if(!e)return"";const n=t.rootBlockId??"root",r=cI(e),o=yd(r),a=((i=o==null?void 0:o[n])==null?void 0:i.data)??{};return Ad(t.recordType,()=>Bi(o,{rootBlockId:n,injectElementIds:t.injectElementIds??!0,minifyCss:t.minifyCss??!0,includePageCSS:t.includePageCSS??!0,lang:t.lang??a.lang,skipLink:t.skipLink??a.skipLink,accessibilityTools:t.accessibilityTools??a.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,seo:t.seo,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner}))}function Hi(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 Gi(e){const t={"Content-Type":"application/json"};return e.authToken&&(t.Authorization=`Bearer ${e.authToken}`),t}async function Wi(e,t,n){const r=await n(e,t);if(!r.ok){const o=await r.text().catch(()=>"");return{ok:!1,body:null,status:r.status,text:o}}return{ok:!0,body:await r.json(),status:r.status,text:""}}async function Id(e,t,n){var u;const{wrapInDocumentShell:r=!0,headHtml:o,bodyBottomHtml:a}=n,i=Array.isArray(t==null?void 0:t.sections)?t.sections:[];if(i.length===0){const{document:c}=await ic(((u=t==null?void 0:t.contentMetadata)==null?void 0:u.document)??e,n);return Fi(c,{...n,recordType:n.recordType??"page"})}const l=await Promise.all(i.map(async c=>{var p;const h=(p=c==null?void 0:c.contentMetadata)==null?void 0:p.document;if(!h)return c;const{document:d}=await ic(h,n),f=yd(d);return{...c,contentMetadata:{...c.contentMetadata??{},document:f}}})),{html:s}=Ad(n.recordType??"page",()=>tI(l,{rootBlockId:n.rootBlockId,injectTabsScrollSyncScript:n.injectTabsScrollSyncScript,injectCarouselScript:n.injectCarouselScript,injectFontAssets:n.injectFontAssets,isBanner:n.isBanner,seo:n.seo,wrapInDocumentShell:r,seoTitle:(t==null?void 0:t.metaTitle)??(t==null?void 0:t.title)??(t==null?void 0:t.name),seoDescription:t==null?void 0:t.metaDescription,lang:n.lang??(t==null?void 0:t.lang),extraHead:o??(t==null?void 0:t.head)??"",extraBodyBottom:a??(t==null?void 0:t.bodyBottom)??""}));return s}async function hI(e,t){const{baseUrl:n,tenantId:r,pageId:o}=t,i=`${n.replace(/\/+$/,"")}/tenant/${r}/page/${o}`,l=Hi(t),s=await Wi(i,{method:"GET",headers:Gi(t)},l);if(!s.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${i} → ${s.status}${s.text?`: ${s.text}`:""}`);return Id(e,s.body,{...t,fetchFn:l})}async function fI(e,t){var d,f;const{baseUrl:n,tenantId:r,pagePath:o,cache:a=!1,update:i=!0}=t,s=`${n.replace(/\/+$/,"")}/tenant/${r}/pagebypath/${encodeURIComponent(o)}?cache=${a}&update=${i}`,u=Hi(t),c=await Wi(s,{method:"GET",headers:Gi(t)},u);if(!c.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${s} → ${c.status}${c.text?`: ${c.text}`:""}`);const h=((d=c.body)==null?void 0:d.data)??((f=c.body)==null?void 0:f.payload)??c.body;return Id(e,h,{...t,fetchFn:u})}async function pI(e){const{baseUrl:t,tenantId:n,templateId:r,isGlobal:o=!1}=e,a=t.replace(/\/+$/,""),i=Hi(e),l=o?`${a}/global-template/${r}`:`${a}/tenant/${n}/template/${r}`,s=o?{"Content-Type":"application/json"}:Gi(e),u=await Wi(l,{method:"GET",headers:s},i);if(u.ok)return u.body;throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${l} → ${u.status}${u.text?`: ${u.text}`:""}`)}function gI(e,t){if(!t)return e;const n=new Map;for(const o of e)o!=null&&o.id&&n.set(o.id,o);if(Array.isArray(t)){for(const o of t){if(!(o!=null&&o.id))continue;const i={...n.get(o.id)??{id:o.id,name:o.id,type:"text"},...o};n.set(o.id,i)}return Array.from(n.values())}const r=Object.entries(t).filter(([,o])=>o!=null);if(r.length===0)return e;for(const[o,a]of r){const i=String(a),l=n.get(o);l?n.set(o,{...l,value:i}):n.set(o,{id:o,name:o,type:"text",value:i})}return Array.from(n.values())}async function mI(e,t){const n=await pI(t),r=rI(n)??(e&&Object.keys(e).length>0?e:null);if(!r)return"";const o=nI(n),a=gI(o,t.variables),i=zi(r,a);return Fi(i,t)}function bI(e,t){return sI(t)?mI(e,t):lI(t)?fI(e,t):iI(t)?hI(e,t):Fi(e,t)}function xI(){return`block-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}function vI(e,t){e.data&&(Array.isArray(e.data.childrenIds)&&(e.data.childrenIds=e.data.childrenIds.map(n=>t[n]??n)),e.data.props&&(Array.isArray(e.data.props.childrenIds)&&(e.data.props.childrenIds=e.data.props.childrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.startChildrenIds)&&(e.data.props.startChildrenIds=e.data.props.startChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.endChildrenIds)&&(e.data.props.endChildrenIds=e.data.props.endChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.columns)&&(e.data.props.columns=e.data.props.columns.map(n=>({...n,childrenIds:(n.childrenIds||[]).map(r=>t[r]??r)}))),Array.isArray(e.data.props.cells)&&(e.data.props.cells=e.data.props.cells.map(n=>n===null||typeof n!="object"?n:{...n,childrenIds:(n.childrenIds||[]).map(r=>t[r]??r)})),Array.isArray(e.data.props.items)&&(e.data.props.items=e.data.props.items.map(n=>({...n,...n.titleChildrenIds!==void 0?{titleChildrenIds:(n.titleChildrenIds||[]).map(r=>t[r]??r)}:{},...n.contentChildrenIds!==void 0?{contentChildrenIds:(n.contentChildrenIds||[]).map(r=>t[r]??r)}:{},...n.cardChildrenIds!==void 0?{cardChildrenIds:(n.cardChildrenIds||[]).map(r=>t[r]??r)}:{},...n.detailChildrenIds!==void 0?{detailChildrenIds:(n.detailChildrenIds||[]).map(r=>t[r]??r)}:{}})))))}function en(e,t){const n=oo(e,t),r={};n.forEach(a=>{r[a]=xI()});const o={};return n.forEach(a=>{const i=JSON.parse(JSON.stringify(e[a]));vI(i,r),o[r[a]]=i}),{newBlocks:o,idMap:r,newRootId:r[t]}}function kI(e,t,n){var r,o,a,i;for(const[l,s]of Object.entries(e)){if(!s||typeof s!="object")continue;const u=s;if(u.data&&Array.isArray(u.data.childrenIds)&&u.data.childrenIds.includes(t)){const c=u.data.childrenIds.indexOf(t),h=[...u.data.childrenIds];return h.splice(c+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,childrenIds:h}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.childrenIds)&&u.data.props.childrenIds.includes(t)){const c=u.data.props.childrenIds.indexOf(t),h=[...u.data.props.childrenIds];return h.splice(c+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,childrenIds:h}}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.columns)){const c=u.data.props.columns;for(let h=0;h<c.length;h++){const d=c[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=c.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,columns:p}}}}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.cells)){const c=u.data.props.cells;for(let h=0;h<c.length;h++){const d=c[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=c.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,cells:p}}}}}}}if(u.type==="PricingAccordion"&&((r=u.data)!=null&&r.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=Array.isArray(c[h].cardChildrenIds)?c[h].cardChildrenIds:[],f=Array.isArray(c[h].detailChildrenIds)?c[h].detailChildrenIds:[];for(const[p,b]of[[d,"cardChildrenIds"],[f,"detailChildrenIds"]])if(p.includes(t)){const x=p.indexOf(t),w=c.map(k=>({...k,cardChildrenIds:Array.isArray(k.cardChildrenIds)?[...k.cardChildrenIds]:[],detailChildrenIds:Array.isArray(k.detailChildrenIds)?[...k.detailChildrenIds]:[]}));return w[h][b].splice(x+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:w}}}}}}}if((u.type==="TabsBlock"||u.type==="VerticalAccordion"||u.type==="Carousel"||u.type==="Marquee"||u.type==="Pagination")&&((o=u.data)!=null&&o.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=Array.isArray(c[h].contentChildrenIds)?c[h].contentChildrenIds:[];if(d.includes(t)){const f=d.indexOf(t),p=c.map(b=>({...b,contentChildrenIds:Array.isArray(b.contentChildrenIds)?[...b.contentChildrenIds]:[]}));return p[h].contentChildrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:p}}}}}}}if(u.type==="MenuPicker"&&((a=u.data)!=null&&a.props))for(const c of["startChildrenIds","endChildrenIds"]){const h=Array.isArray(u.data.props[c])?u.data.props[c]:[];if(h.includes(t)){const d=h.indexOf(t),f=[...h];return f.splice(d+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,[c]:f}}}}}}if(u.type==="Accordion"&&((i=u.data)!=null&&i.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=c[h],f=Array.isArray(d.titleChildrenIds)?d.titleChildrenIds:[],p=Array.isArray(d.contentChildrenIds)?d.contentChildrenIds:[];if(f.includes(t)){const b=f.indexOf(t),x=c.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[h].titleChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:x}}}}}if(p.includes(t)){const b=p.indexOf(t),x=c.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[h].contentChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:x}}}}}}}}return null}function wI(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){if((i==null?void 0:i.type)!=="FlexColumns")continue;const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.columns;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{flexId:a,columnIndex:s}}}return null}function SI(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.cells;if(!((i==null?void 0:i.type)!=="Grid"||!Array.isArray(l))){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{gridId:a,cellIndex:s}}}return null}function $I(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){if((i==null?void 0:i.type)!=="Pagination")continue;const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.cells;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{paginationId:a,cellIndex:s}}}return null}function _I(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){const l=i==null?void 0:i.type;if(l!=="Carousel"&&l!=="Marquee"&&l!=="TabsBlock")continue;const s=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.items;if(Array.isArray(s)){for(let u=0;u<s.length;u++)if(Array.isArray((o=s[u])==null?void 0:o.contentChildrenIds)&&s[u].contentChildrenIds.includes(t))return{parentId:a,itemIndex:u,parentType:l}}}return null}function lc(e,t,n){var d,f,p;if(!e[t])return null;const r=e[t];if((r==null?void 0:r.type)==="TabsBlock"){const x=Array.isArray((f=(d=r.data)==null?void 0:d.props)==null?void 0:f.items)?r.data.props.items:[];if(x.length>=10)return null;const w=x[0]??{},k=Array.isArray(w.contentChildrenIds)?w.contentChildrenIds:[];let S={...e};const v=[];let _=null;for(const I of k){if(!S[I])continue;const{newBlocks:R,newRootId:E}=en(S,I);S={...S,...R},v.push(E),_||(_=E)}const y=_??t,C=[...x,{label:w.label??`Tab ${x.length+1}`,contentChildrenIds:v}];return S={...S,[t]:{...r,data:{...r.data,props:{...r.data.props,items:C}}}},{updatedDocument:S,newRootId:y}}const o=SI(e,n);if(o){const b=e[o.gridId],x=b.data.props??{},w=x.columnsCount??2,k=x.rowsCount??2,S=Array.isArray(x.cells)?x.cells:[],_=S.some(M=>(M==null?void 0:M.colStart)!=null||(M==null?void 0:M.rowStart)!=null||(M==null?void 0:M.colSpan)!=null||(M==null?void 0:M.rowSpan)!=null)?S.length:w*k,y=Array.from({length:_},(M,P)=>S[P]??{childrenIds:[]});let C=y.findIndex((M,P)=>P>o.cellIndex&&(!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0));if(C===-1&&(C=y.findIndex(M=>!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0)),C===-1)return null;const{newBlocks:I,newRootId:R}=en(e,t),E=y.map((M,P)=>P===C?{...M,childrenIds:[...(M==null?void 0:M.childrenIds)??[],R]}:M);return{updatedDocument:{...e,...I,[o.gridId]:{...b,data:{...b.data,props:{...b.data.props,cells:E}}}},newRootId:R}}const a=$I(e,n);if(a){const b=e[a.paginationId],x=b.data.props??{},w=x.columnsCount??2,k=x.rowsCount??2,S=Array.isArray(x.cells)?x.cells:[],v=Math.max(w*k,S.length),_=Array.from({length:v},(L,M)=>S[M]??{childrenIds:[]});let y=_.findIndex((L,M)=>M>a.cellIndex&&(!Array.isArray(L==null?void 0:L.childrenIds)||L.childrenIds.length===0));y===-1&&(y=_.findIndex(L=>!Array.isArray(L==null?void 0:L.childrenIds)||L.childrenIds.length===0)),y===-1&&(_.push({childrenIds:[]}),y=_.length-1);const{newBlocks:C,newRootId:I}=en(e,t),R=_.map((L,M)=>M===y?{...L,childrenIds:[...(L==null?void 0:L.childrenIds)??[],I]}:L);return{updatedDocument:{...e,...C,[a.paginationId]:{...b,data:{...b.data,props:{...b.data.props,cells:R}}}},newRootId:I}}const i=wI(e,n);if(i){const b=e[i.flexId],x=b.data.props??{},w=x.columnsCount??2,k=Array.isArray(x.columns)?x.columns:[],S=Array.from({length:w},(R,E)=>k[E]??{childrenIds:[]});let v=S.findIndex((R,E)=>E>i.columnIndex&&(!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0));if(v===-1&&(v=S.findIndex(R=>!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0)),v===-1)return null;const{newBlocks:_,newRootId:y}=en(e,t),C=S.map((R,E)=>E===v?{...R,childrenIds:[...(R==null?void 0:R.childrenIds)??[],y]}:R);return{updatedDocument:{...e,..._,[i.flexId]:{...b,data:{...b.data,props:{...b.data.props,columns:C}}}},newRootId:y}}const l=_I(e,n);if(l){let b=e[l.parentId],x=Array.isArray((p=b.data.props)==null?void 0:p.items)?b.data.props.items:[],w=e,k=x.findIndex((C,I)=>I>l.itemIndex&&(!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0));if(k===-1&&(k=x.findIndex(C=>!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0)),k===-1)if(l.parentType==="TabsBlock"&&x.length<10){const C=[...x,{label:`Tab ${x.length+1}`,contentChildrenIds:[]}];w={...w,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:C}}}},b=w[l.parentId],x=C,k=x.length-1}else return null;const{newBlocks:S,newRootId:v}=en(w,t),_=x.map((C,I)=>I===k?{...C,...l.parentType==="TabsBlock"&&!(C!=null&&C.label)?{label:`Tab ${I+1}`}:{},contentChildrenIds:[...(C==null?void 0:C.contentChildrenIds)??[],v]}:C);return{updatedDocument:{...w,...S,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:_}}}},newRootId:v}}const{newBlocks:s,newRootId:u}=en(e,t),c={...e,...s},h=kI(c,n,u);return h&&(c[h.parentId]=h.updatedParent),{updatedDocument:c,newRootId:u}}function Rd(e,t){const n=o=>Array.isArray(o)?o.filter(a=>!t.has(a)):o,r={};for(const[o,a]of Object.entries(e)){if(t.has(o))continue;const i=a;if(!(i!=null&&i.data)){r[o]=i;continue}const l={...i.data};if(Array.isArray(l.childrenIds)&&(l.childrenIds=n(l.childrenIds)),l.props){const s={...l.props};Array.isArray(s.childrenIds)&&(s.childrenIds=n(s.childrenIds)),Array.isArray(s.startChildrenIds)&&(s.startChildrenIds=n(s.startChildrenIds)),Array.isArray(s.endChildrenIds)&&(s.endChildrenIds=n(s.endChildrenIds)),Array.isArray(s.columns)&&(s.columns=s.columns.map(u=>({...u,childrenIds:n(u.childrenIds)}))),Array.isArray(s.cells)&&(s.cells=s.cells.map(u=>u===null||typeof u!="object"?u:{...u,childrenIds:n(u.childrenIds)})),Array.isArray(s.items)&&(s.items=s.items.map(u=>({...u,...u.titleChildrenIds!==void 0?{titleChildrenIds:n(u.titleChildrenIds)}:{},...u.contentChildrenIds!==void 0?{contentChildrenIds:n(u.contentChildrenIds)}:{},...u.cardChildrenIds!==void 0?{cardChildrenIds:n(u.cardChildrenIds)}:{},...u.detailChildrenIds!==void 0?{detailChildrenIds:n(u.detailChildrenIds)}:{}}))),l.props=s}r[o]={...i,data:l}}return r}function CI(e){var r;const t=e==null?void 0:e.type,n=((r=e==null?void 0:e.data)==null?void 0:r.props)??{};if(t==="Grid"){const o=n.columnsCount??2,a=n.rowsCount??2,i=Array.isArray(n.cells)?n.cells:[],s=i.some(c=>(c==null?void 0:c.colStart)!=null||(c==null?void 0:c.rowStart)!=null||(c==null?void 0:c.colSpan)!=null||(c==null?void 0:c.rowSpan)!=null)?i.length:o*a,u=Array.from({length:s},(c,h)=>{var d;return{childrenIds:Array.isArray((d=i[h])==null?void 0:d.childrenIds)?i[h].childrenIds:[]}});return{slotCount:s,slots:u}}if(t==="FlexColumns"){const o=n.columnsCount??(Array.isArray(n.columns)?n.columns.length:2),a=Array.isArray(n.columns)?n.columns:[],i=Array.from({length:o},(l,s)=>{var u;return{childrenIds:Array.isArray((u=a[s])==null?void 0:u.childrenIds)?a[s].childrenIds:[]}});return{slotCount:o,slots:i}}if(t==="Carousel"||t==="Marquee"){const o=Array.isArray(n.items)?n.items:[],a=o.length,i=o.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:a,slots:i}}if(t==="TabsBlock"){const o=Array.isArray(n.items)?n.items:[],a=o.length,i=o.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:a,slots:i}}if(t==="Pagination"){const o=n.columnsCount??2,a=n.rowsCount??2,i=Array.isArray(n.cells)?n.cells:[],l=Math.max(o*a,i.length),s=Array.from({length:l},(u,c)=>{var h;return{childrenIds:Array.isArray((h=i[c])==null?void 0:h.childrenIds)?i[c].childrenIds:[]}});return{slotCount:l,slots:s}}return null}function hr(e){return e==="Grid"||e==="FlexColumns"||e==="Carousel"||e==="Marquee"||e==="Pagination"||e==="TabsBlock"}const Tr=new WeakMap;function xo(e,t){const n=e[t];if(!n||typeof n!="object")return null;const r=Tr.get(n);if(r!==void 0)return r&&r.containerId===t?r:r&&{...r,containerId:t};if(!hr(n.type))return Tr.set(n,null),null;const o=CI(n);if(!o)return Tr.set(n,null),null;const{slotCount:a,slots:i}=o,l=i.findIndex(c=>c.childrenIds.length>0),s=i.filter(c=>c.childrenIds.length===0).length,u={containerId:t,type:n.type,slotCount:a,slots:i,firstFilledSlot:l,emptySlotCount:s};return Tr.set(n,u),u}function oi(e,t){for(const[n,r]of Object.entries(e)){if(!hr(r==null?void 0:r.type))continue;const o=xo(e,n);if(o!=null&&o.slots.some(a=>a.childrenIds.includes(t)))return n}return null}function Td(e,t,n,r){var u;const o=e[t];if(!o||!hr(o.type))return e;const a=((u=o.data)==null?void 0:u.props)??{};if(o.type==="Grid"){let c=a.columnsCount??2,h=a.rowsCount??2;if(c*h>=n)return e;r==="columns"?c=Math.max(c,Math.ceil(n/Math.max(1,h))):h=Math.max(h,Math.ceil(n/Math.max(1,c)));const d=c*h,f=Array.isArray(a.cells)?a.cells:[],p=Array.from({length:d},(b,x)=>f[x]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,columnsCount:c,rowsCount:h,cells:p}}}}}if(o.type==="Carousel"){const h=Array.isArray(a.items)?a.items:[];if(h.length>=n)return e;const d=Math.min(n,20),f=Array.from({length:d},(p,b)=>h[b]??{contentChildrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="Marquee"){const h=Array.isArray(a.items)?a.items:[];if(h.length>=n)return e;const d=Math.min(n,30),f=Array.from({length:d},(p,b)=>h[b]??{contentChildrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="TabsBlock"){const h=Array.isArray(a.items)?a.items:[];if(h.length>=n)return e;const d=Math.min(n,10),f=Array.from({length:d},(p,b)=>h[b]??{label:`Tab ${b+1}`,contentChildrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="Pagination"){const c=a.columnsCount??2,h=a.rowsCount??2,d=Array.isArray(a.cells)?a.cells:[];if(Math.max(c*h,d.length)>=n)return e;const p=Array.from({length:n},(b,x)=>d[x]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,cells:p}}}}}if((a.columnsCount??(Array.isArray(a.columns)?a.columns.length:2))>=n)return e;const l=Array.isArray(a.columns)?a.columns:[],s=Array.from({length:n},(c,h)=>l[h]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,columnsCount:n,columns:s}}}}}function Ed(e,t,n){var u;const r=e[t];if(!r||!hr(r.type))return e;const o=xo(e,t);if(!o)return e;let a=-1;o.slots.forEach((c,h)=>{c.childrenIds.length>0&&(a=h)});const i=Math.max(n,a+1,1);if(i>=o.slotCount)return e;const l=((u=r.data)==null?void 0:u.props)??{};if(r.type==="Pagination"){const c=(l.columnsCount??2)*(l.rowsCount??2),h=Math.max(i,c);if(h>=o.slotCount)return e;const d=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,cells:d.slice(0,h)}}}}}if(r.type==="Carousel"||r.type==="Marquee"||r.type==="TabsBlock"){const c=Array.isArray(l.items)?l.items:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,items:c.slice(0,i)}}}}}if(r.type==="Grid"){const c=l.columnsCount??2,h=l.rowsCount??2,d=Math.max(1,Math.ceil(i/Math.max(1,c)));if(d>=h)return e;const f=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,rowsCount:d,cells:f.slice(0,c*d)}}}}}const s=Array.isArray(l.columns)?l.columns:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,columnsCount:i,columns:s.slice(0,i)}}}}}function AI(e,t,n,r="columns"){const o=t==null?void 0:t.sourceBlockId;if(!o||!e[o])return null;const a=Math.max(1,n);let i=e,l=Array.isArray(t.rowIds)?[...t.rowIds]:[],s=1+l.length;if(s===a)return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:!1};if(s<a){let h=!1;for(;s<a;){const d=l.length>0?l[l.length-1]:o;let f=lc(i,o,d);if(!f){const p=oi(i,o);if(!p){h=!0;break}const b=xo(i,p),x=((b==null?void 0:b.slotCount)??0)+(a-s),w=Td(i,p,x,r);if(w===i){h=!0;break}if(i=w,f=lc(i,o,d),!f){h=!0;break}}i=f.updatedDocument,l=[...l,f.newRootId],s=1+l.length}return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:h}}const u=a,c=l.slice(u-1);if(c.length>0){const h=new Set;for(const f of c)for(const p of oo(i,f))h.add(p);i=Rd(i,h);const d=oi(i,o);d&&(i=Ed(i,d,u)),l=l.slice(0,u-1),s=1+l.length}return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:!1}}exports.Reader=or;exports.ReaderBlock=Me;exports.ReaderBlockSchema=kd;exports.ReaderDocumentSchema=Ay;exports.cloneSubtree=en;exports.extractApiRows=Di;exports.findRepeatableContainerOf=oi;exports.getRepeatableContainerInfo=xo;exports.growContainerToFit=Td;exports.isRepeatableContainerType=hr;exports.reconcileRepeatFieldRowCount=AI;exports.refreshApiDataSources=_d;exports.refreshDocumentApiDataSources=Cd;exports.removeSubtree=Rd;exports.renderToStaticHtml=bI;exports.renderToStaticMarkup=Bi;exports.shrinkContainerToFit=Ed;
|