PluginProbe
Elementor Website Builder – more than just a page builder / 4.1.0-beta2
Elementor Website Builder – more than just a page builder v4.1.0-beta2
4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 All 457 releases
← All changes | assets/js/packages/editor-props/editor-props.min.js +1 -1 4.2.0-dev2 → 4.1.0-beta2 View file →
@@ -1 +1 @@
1 -!function(){"use strict";var e={15304:function(e,r,t){var a=e.exports.Validator=t(96482);e.exports.ValidatorResult=t(46677).ValidatorResult,e.exports.ValidatorResultError=t(46677).ValidatorResultError,e.exports.ValidationError=t(46677).ValidationError,e.exports.SchemaError=t(46677).SchemaError,e.exports.SchemaScanResult=t(49911).SchemaScanResult,e.exports.scan=t(49911).scan,e.exports.validate=function(e,r,t){return(new a).validate(e,r,t)}},16164:function(e,r,t){var a,i=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c={};((e,r)=>{for(var t in r)i(e,t,{get:r[t],enumerable:!0})})(c,{CLASSES_PROP_KEY:()=>b,DateTimePropTypeUtil:()=>de,Schema:()=>nr,backdropFilterPropTypeUtil:()=>Le,backgroundColorOverlayPropTypeUtil:()=>te,backgroundGradientOverlayPropTypeUtil:()=>ae,backgroundImageOverlayPropTypeUtil:()=>ie,backgroundImagePositionOffsetPropTypeUtil:()=>se,backgroundImageSizeScalePropTypeUtil:()=>ce,backgroundOverlayItem:()=>ne,backgroundOverlayPropTypeUtil:()=>oe,backgroundPropTypeUtil:()=>ee,blurFilterPropTypeUtil:()=>Oe,booleanPropTypeUtil:()=>le,borderRadiusPropTypeUtil:()=>y,borderWidthPropTypeUtil:()=>v,boxShadowPropTypeUtil:()=>h,classesPropTypeUtil:()=>A,colorPropTypeUtil:()=>z,colorStopPropTypeUtil:()=>ue,colorToneFilterPropTypeUtil:()=>xe,createArrayPropUtils:()=>createArrayPropUtils,createPropUtils:()=>createPropUtils,cssFilterFunctionPropUtil:()=>Ue,dateRangePropTypeUtil:()=>Ke,dateStringPropTypeUtil:()=>We,dimensionsPropTypeUtil:()=>Z,dropShadowFilterPropTypeUtil:()=>Se,emailPropTypeUtil:()=>H,emailsPropTypeUtil:()=>G,evaluateTerm:()=>evaluateTerm,extractValue:()=>extractValue,filterEmptyValues:()=>filterEmptyValues,filterPropTypeUtil:()=>Ee,flexPropTypeUtil:()=>P,fontFamilyPropTypeUtil:()=>w,getPropSchemaFromCache:()=>getPropSchemaFromCache,gradientColorStopPropTypeUtil:()=>pe,gridTrackSizePropTypeUtil:()=>q,htmlPropTypeUtil:()=>ge,htmlV2PropTypeUtil:()=>ze,htmlV3PropTypeUtil:()=>Fe,hueRotateFilterPropTypeUtil:()=>$e,imageAttachmentIdPropType:()=>O,imagePropTypeUtil:()=>S,imageSrcPropTypeUtil:()=>$,intensityFilterPropTypeUtil:()=>je,isDependency:()=>isDependency,isDependencyMet:()=>isDependencyMet,isEmpty:()=>isEmpty,isOverridable:()=>isOverridable,isTransformable:()=>isTransformable,keyValuePropTypeUtil:()=>X,layoutDirectionPropTypeUtil:()=>W,linkPropTypeUtil:()=>B,mergeProps:()=>mergeProps,moveTransformPropTypeUtil:()=>Ve,numberPropTypeUtil:()=>_,numberRangePropTypeUtil:()=>me,parseHtmlChildren:()=>parseHtmlChildren,perspectiveOriginPropTypeUtil:()=>Je,positionPropTypeUtil:()=>fe,queryFilterArrayPropTypeUtil:()=>ve,queryFilterPropTypeUtil:()=>ye,queryPropTypeUtil:()=>he,rewrapOverridableValue:()=>rewrapOverridableValue,rotateTransformPropTypeUtil:()=>Re,scaleTransformPropTypeUtil:()=>Ce,selectionSizePropTypeUtil:()=>Q,shadowPropTypeUtil:()=>f,sizePropTypeUtil:()=>R,skewTransformPropTypeUtil:()=>qe,spanPropTypeUtil:()=>N,stringArrayPropTypeUtil:()=>I,stringPropTypeUtil:()=>D,strokePropTypeUtil:()=>J,svgSrcPropTypeUtil:()=>U,timeRangePropTypeUtil:()=>Be,timeStringPropTypeUtil:()=>He,transformFunctionsPropTypeUtil:()=>De,transformOriginPropTypeUtil:()=>Ie,transformPropTypeUtil:()=>Te,urlPropTypeUtil:()=>L,videoAttachmentIdPropType:()=>E,videoSrcPropTypeUtil:()=>k}),e.exports=(a=c,((e,r,t,a)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let c of o(r))s.call(e,c)||c===t||i(e,c,{get:()=>r[c],enumerable:!(a=n(r,c))||a.enumerable});return e})(i({},"__esModule",{value:!0}),a));var l=t(59618),u=t(59618),p=new Map;function getPropSchemaFromCache(e){return p.get(e)}function createPropUtils(e,r){const t=u.z.strictObject({$$type:u.z.literal(e),value:r,disabled:u.z.boolean().optional()});function isValid(e){return t.safeParse(e).success}const a={extract:function extract(e){return isValid(e)?e.value:null},isValid:isValid,create:function create(r,t){const a="function"==typeof r?r:()=>r,{base:i,disabled:n}=t||{};if(!i)return{$$type:e,value:a(),...n&&{disabled:n}};if(!isValid(i))throw new Error(`Cannot create prop based on invalid value: ${JSON.stringify(i)}`);return{$$type:e,value:a(i.value),...n&&{disabled:n}}},schema:t,key:e};return p.set(e,a),a}function createArrayPropUtils(e,r,t){return createPropUtils(t||`${e}-array`,u.z.array(r))}var m=t(59618),d=t(59618).z.any().nullable(),f=createPropUtils("shadow",m.z.strictObject({position:d,hOffset:d,vOffset:d,blur:d,spread:d,color:d})),h=createPropUtils("box-shadow",l.z.array(f.schema)),y=createPropUtils("border-radius",t(59618).z.strictObject({"start-start":d,"start-end":d,"end-start":d,"end-end":d})),v=createPropUtils("border-width",t(59618).z.strictObject({"block-start":d,"block-end":d,"inline-start":d,"inline-end":d})),g=t(59618),b="classes",A=createPropUtils(b,g.z.array(g.z.string().regex(/^[a-z][a-z-_0-9]*$/i))),z=createPropUtils("color",t(59618).z.string()),P=createPropUtils("flex",t(59618).z.strictObject({flexGrow:d,flexShrink:d,flexBasis:d})),F=createPropUtils("font-family",t(59618).z.string().nullable()),w=Object.assign(F,{getEnqueueFontFamily:e=>{const r=e.trim();return r.startsWith('"')&&r.endsWith('"')||r.startsWith("'")&&r.endsWith("'")?r.slice(1,-1).trim():r}}),S=createPropUtils("image",t(59618).z.strictObject({src:d,size:d})),O=createPropUtils("image-attachment-id",t(59618).z.number()),x=t(59618),$=createPropUtils("image-src",x.z.strictObject({id:d,url:x.z.null(),alt:d.optional().default(null)}).or(x.z.strictObject({id:d.optional().default(null),url:d,alt:d.optional().default(null)}))),j=t(59618),U=createPropUtils("svg-src",j.z.strictObject({id:d,url:j.z.null()}).or(j.z.strictObject({id:j.z.null(),url:d})).or(j.z.strictObject({id:d,url:d}))),E=createPropUtils("video-attachment-id",t(59618).z.number()),T=t(59618),k=createPropUtils("video-src",T.z.strictObject({id:d,url:T.z.null()}).or(T.z.strictObject({id:T.z.null(),url:d}))),Z=createPropUtils("dimensions",t(59618).z.strictObject({"block-start":d,"block-end":d,"inline-start":d,"inline-end":d})),_=createPropUtils("number",t(59618).z.number().nullable()),M=t(59618),V=M.z.union([M.z.number(),M.z.literal("")]),R=createPropUtils("size",M.z.strictObject({unit:M.z.enum(["px","em","rem","%","vw","vh","ch","fr"]),size:V}).or(M.z.strictObject({unit:M.z.enum(["deg","rad","grad","turn"]),size:V})).or(M.z.strictObject({unit:M.z.enum(["s","ms"]),size:V})).or(M.z.strictObject({unit:M.z.literal("auto"),size:M.z.literal("")})).or(M.z.strictObject({unit:M.z.literal("custom"),size:M.z.string()}))),C=t(59618),q=createPropUtils("grid-track-size",C.z.strictObject({unit:C.z.literal("fr"),size:C.z.union([C.z.number(),C.z.literal("")])}).or(C.z.strictObject({unit:C.z.literal("custom"),size:C.z.string()}))),N=createPropUtils("span",t(59618).z.string().nullable()),D=createPropUtils("string",t(59618).z.string().nullable()),I=createArrayPropUtils(D.key,D.schema),J=createPropUtils("stroke",t(59618).z.strictObject({color:d,width:d})),L=createPropUtils("url",t(59618).z.string().nullable()),K=t(59618),W=createPropUtils("layout-direction",K.z.object({row:K.z.any(),column:K.z.any()})),B=createPropUtils("link",t(59618).z.strictObject({destination:d,isTargetBlank:d,tag:d})),H=createPropUtils("email",t(59618).z.strictObject({to:d,subject:d,message:d,from:d,"meta-data":d,"send-as":d,"from-name":d,"reply-to":d,cc:d,bcc:d})),G=createPropUtils("emails",t(59618).z.strictObject({to:d,subject:d,message:d,from:d,"meta-data":d,"send-as":d,"from-name":d,"reply-to":d,cc:d,bcc:d})),Y=t(59618),X=createPropUtils("key-value",t(59618).z.strictObject({key:d,value:d})),Q=createPropUtils("selection-size",Y.z.strictObject({selection:Y.z.union([X.schema,D.schema]),size:d})),ee=createPropUtils("background",t(59618).z.strictObject({color:d,clip:d,"background-overlay":d})),re=t(59618),te=createPropUtils("background-color-overlay",d),ae=createPropUtils("background-gradient-overlay",d),ie=createPropUtils("background-image-overlay",d),ne=te.schema.or(ae.schema).or(ie.schema),oe=createPropUtils("background-overlay",re.z.array(ne)),se=createPropUtils("background-image-position-offset",d),ce=createPropUtils("background-image-size-scale",d),le=createPropUtils("boolean",t(59618).z.boolean().nullable()),ue=createPropUtils("color-stop",t(59618).z.strictObject({color:d,offset:d})),pe=createPropUtils("gradient-color-stop",t(59618).z.array(ue.schema)),me=createPropUtils("number-range",t(59618).z.strictObject({min:d,max:d})),de=createPropUtils("date-time",t(59618).z.strictObject({date:d,time:d})),fe=createPropUtils("object-position",t(59618).z.strictObject({x:d,y:d})),he=createPropUtils("query",t(59618).z.strictObject({id:d,label:d})),ye=createPropUtils("query-filter",t(59618).z.strictObject({key:d,values:d,taxonomies:d})),ve=createArrayPropUtils(ye.key,ye.schema),ge=createPropUtils("html",t(59618).z.string().nullable()),be=t(59618),Ae=be.z.lazy(()=>be.z.object({id:be.z.string(),type:be.z.string(),content:be.z.string().optional(),children:be.z.array(Ae).optional()})),ze=createPropUtils("html-v2",be.z.object({content:be.z.string().nullable(),children:be.z.array(Ae)})),Pe=t(59618),Fe=createPropUtils("html-v3",Pe.z.object({content:D.schema.nullable(),children:Pe.z.array(Pe.z.unknown())})),we=t(59618),Se=createPropUtils("drop-shadow",t(59618).z.object({xAxis:d,yAxis:d,blur:d,color:d})),Oe=createPropUtils("blur",t(59618).z.strictObject({size:d})),xe=createPropUtils("color-tone",t(59618).z.strictObject({size:d})),$e=createPropUtils("hue-rotate",t(59618).z.strictObject({size:d})),je=createPropUtils("intensity",t(59618).z.strictObject({size:d})),Ue=createPropUtils("css-filter-func",we.z.object({func:D.schema,args:we.z.union([Oe.schema,je.schema,xe.schema,$e.schema,Se.schema])})),Ee=createPropUtils("filter",we.z.array(Ue.schema)),Te=createPropUtils("transform",t(59618).z.strictObject({"transform-functions":d,"transform-origin":d,perspective:d,"perspective-origin":d})),ke=t(59618),Ze="transform-scale",_e="transform-rotate",Me="transform-skew",Ve=createPropUtils("transform-move",t(59618).z.strictObject({x:d,y:d,z:d})),Re=createPropUtils(_e,t(59618).z.strictObject({x:d,y:d,z:d})),Ce=createPropUtils(Ze,t(59618).z.strictObject({x:_.schema.nullable(),y:_.schema.nullable(),z:_.schema.nullable()})),qe=createPropUtils(Me,t(59618).z.strictObject({x:d,y:d})),Ne=Ve.schema.or(Ce.schema).or(Re.schema).or(qe.schema),De=createPropUtils("transform-functions",ke.z.array(Ne)),Ie=createPropUtils("transform-origin",t(59618).z.strictObject({x:d,y:d,z:d})),Je=createPropUtils("perspective-origin",t(59618).z.strictObject({x:d,y:d})),Le=createPropUtils("backdrop-filter",t(59618).z.array(Ue.schema)),Ke=createPropUtils("date-range",t(59618).z.strictObject({min:d,max:d})),We=createPropUtils("date-string",t(59618).z.string()),Be=createPropUtils("time-range",t(59618).z.strictObject({min:d,max:d})),He=createPropUtils("time-string",t(59618).z.string()),ensureNotNull=(e,r)=>null===e?r:e,Ge={transformers:{}},adjustLlmPropValueSchema=(e,{transformers:r={},forceKey:t}=Ge)=>{const a=structuredClone(e);if("object"!=typeof a||null===a)return null;if(Array.isArray(a))return a.map(e=>adjustLlmPropValueSchema(e,{forceKey:t,transformers:r}));const i=a;switch("$intention"in i&&delete i.$intention,t&&(i.$$type=t),i.$$type){case"size":{const{value:e}=i;return{$$type:"size",value:{unit:"string"==typeof e.unit?e.unit:ensureNotNull(D.extract(e.unit),"px"),size:"string"==typeof e.size||"number"==typeof e.size?e.size:ensureNotNull(D.extract(e.size),_.extract(e.size))}}}case"html-v3":{const{value:e}=i;return{$$type:"html-v3",value:{...e,children:Array.isArray(e.children)?e.children:[]}}}default:const e=r?.[i.$$type];if(e)return e(i.value)}if("object"==typeof i.value)if(Array.isArray(i.value))i.value=adjustLlmPropValueSchema(i.value,{transformers:r});else{const{value:e}=i,t=a;t.value={},Object.entries(e).forEach(([e,a])=>{t.value[e]=adjustLlmPropValueSchema(a,{transformers:r})})}return a};function jsonSchemaToPropType(e,r=e.key){const t={};return e.description&&(t.description=e.description),e.anyOf&&Array.isArray(e.anyOf)?function convertJsonSchemaToUnionPropType(e,r){const t={};if(!e.anyOf||!Array.isArray(e.anyOf))throw new Error("Invalid anyOf schema");for(const r of e.anyOf)if("object"===r.type&&r.properties&&r.properties.$$type&&r.properties.value){const e=r.properties.$$type;let a;if(!(e.enum&&Array.isArray(e.enum)&&e.enum.length>0))continue;a=e.enum[0];const i=convertJsonSchemaToPropType(r.properties.value);t[a]=i}return{kind:"union",prop_types:t,settings:{},meta:r}}(e,t):"object"===e.type&&e.properties?function convertJsonSchemaToObjectPropType(e,r,t=e.key){const a={};if(!e.properties)return{kind:"object",key:t,shape:{},settings:{},meta:r};const i=Array.isArray(e.required)?e.required:[];for(const[r,n]of Object.entries(e.properties)){const e=convertJsonSchemaToPropType(n,t);i.includes(r)&&(e.settings={...e.settings,required:!0}),a[r]=e}return{kind:"object",key:t||"object",shape:a,settings:{},meta:r}}(e,t,r):"array"===e.type&&e.items?function convertJsonSchemaToArrayPropType(e,r,t=e.key){if(!e.items)throw new Error("Array schema must have items property");const a=convertJsonSchemaToPropType(e.items);return{kind:"array",key:t||"array",item_prop_type:a,settings:{},meta:r}}(e,t,r):function convertJsonSchemaToPlainPropType(e,r,t=e.key){const a={};let i=t||"string";"number"===e.type?i="number":"boolean"===e.type?i="boolean":"string"===e.type&&(i="string");Array.isArray(e.enum)&&(a.enum=e.enum);return{kind:"plain",key:i,settings:a,meta:r}}(e,t,r)}function convertJsonSchemaToPropType(e,r){return jsonSchemaToPropType(e,r)}var Ye="dynamic",Xe="overridable",Qe=null;function propTypeToJsonSchema(e,r=!1){const t=e.meta?.description,a={};switch(t&&(a.description=t),null!==e.initial_value&&void 0!==e.initial_value&&(a.examples=[e.initial_value]),e.kind){case"union":return function convertUnionPropType(e,r,t){const a=structuredClone(r),i=e.prop_types||{},n=!t&&Boolean(i[Ye]),o=t||n,s=[];for(const[e,r]of Object.entries(i))e!==Xe&&(e!==Ye?s.push(propTypeToJsonSchema(r,o)):n&&s.push(convertDynamicPropType(r)));s.length>0&&(a.anyOf=s);const c=e.meta?.description;c&&(a.description=c);return a}(e,a,r);case"object":return function convertObjectPropType(e,r,t){const a=structuredClone(r);a.type="object";const i={properties:{$$type:{type:"string",const:e.key},value:{type:"object",properties:{},additionalProperties:!1}}},n=["$$type","value"],o=[],s=e.shape||{};for(const[e,r]of Object.entries(s)){const a=propTypeToJsonSchema(r,t);!0===r.settings?.required&&o.push(e),i.properties.value.properties&&(i.properties.value.properties[e]=a)}a.required=n,o.length>0&&(i.properties.value.required=o);return{...a,...i}}(e,a,r);case"array":return function convertArrayPropType(e,r,t){const a=structuredClone(r);let i;a.type="object";const n=e.item_prop_type;n&&(i=propTypeToJsonSchema(n,t));return a.properties={$$type:{type:"string",const:e.key},value:{type:"array",...i?{items:i}:{}}},a}(e,a,r);default:return function convertPlainPropType(e,r){const t={...r};if(!Object.hasOwn(e,"kind"))throw new Error(`PropType kind is undefined for propType with key: ${e.key??"[unknown key]"}`);const a=e.settings?.enum||[];switch(e.kind){case"string":case"number":case"boolean":return{...t,type:"object",properties:{$$type:{type:"string",const:e.key??e.kind},value:{type:e.kind,...a.length>0?{enum:a}:{}}},required:["$$type","value"]};case"unknown":return{};default:return{...t,type:"object",$$type:e.kind,value:{type:e.kind}}}}(e,a)}}function convertDynamicPropType(e){const r=Array.isArray(e.settings?.categories)?e.settings.categories:[],t=Qe?.(r)??[];return{type:"object",description:'Bind THIS value to a dynamic tag instead of a static value (this may be a nested field, e.g. an image\'s "src"). Look up the chosen tag in the "elementor://dynamic-tags" resource and populate "settings" exactly as its schema requires.',properties:{$$type:{type:"string",const:Ye},value:{type:"object",properties:{name:{type:"string",description:'Dynamic tag name from "elementor://dynamic-tags".',...t.length?{enum:t}:{}},settings:{type:"object",description:"Tag settings matching the chosen tag's schema in the resource."}},required:["name"]}},required:["$$type","value"]}}var er=["_cssid","classes","attributes"];function isPropKeyConfigurable(e,r){return!er.includes(e)||!(Array.isArray(r?.meta)||!r?.meta?.llm_configurable)}var rr=t(15304);function processValidationError(e){const r={path:e.path,message:e.message,schema:e.schema,instance:e.instance,name:e.name};if("anyOf"===e.name&&e.schema&&"object"==typeof e.schema&&"anyOf"in e.schema){const t=(e.schema.anyOf||[]).map((r,t)=>{const a=(0,rr.validate)(e.instance,r);let i=`variant-${t}`;if(r&&"object"==typeof r&&"properties"in r&&r.properties&&"object"==typeof r.properties&&"$$type"in r.properties){const e=r.properties.$$type;e&&"object"==typeof e&&"const"in e&&"string"==typeof e.const&&(i=e.const)}return{discriminator:i,errors:a.errors.map(processValidationError)}});r.variants=t}return r}function formatDetailedErrors(e,r=""){const t=[];for(const a of e){const e=a.path.length>0?a.path.join("."):"root";if(t.push(`${r}Error at ${e}: ${a.message}`),a.variants&&a.variants.length>0){t.push(`${r} Tried ${a.variants.length} variant(s):`);for(const e of a.variants)if(t.push(`${r} - ${e.discriminator}:`),0===e.errors.length)t.push(`${r} (no errors - this variant matched!)`);else for(const a of e.errors){const e=a.path.length>0?a.path.join("."):"root";t.push(`${r} ${e}: ${a.message}`),a.variants&&a.variants.length>0&&t.push(formatDetailedErrors([a],`${r} `))}}}return t.join("\n")}var tr=t(59618),ar=tr.z.object({$$type:tr.z.string(),value:tr.z.any(),disabled:tr.z.boolean().optional()}),isTransformable=e=>ar.safeParse(e).success,filterEmptyValues=e=>isEmpty(e)?null:Array.isArray(e)?e.map(filterEmptyValues).filter(e=>!isEmpty(e)):"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[e,filterEmptyValues(r)]).filter(([,e])=>!isEmpty(e))):e,isEmpty=e=>e&&isTransformable(e)?isEmpty(e.value):isNullish(e)||isNullishArray(e)||isNullishObject(e),isNullish=e=>null==e||""===e,isNullishArray=e=>Array.isArray(e)&&e.every(isEmpty),isNullishObject=e=>"object"==typeof e&&isNullishArray(Object.values(e));function isOverridable(e){return isTransformable(e)&&"overridable"===e.$$type}function rewrapOverridableValue(e,r){return{...e,value:{...e.value,origin_value:r}}}function mergeProps(e,r){let t={};return Array.isArray(e)||(t=structuredClone(e)),Object.entries(r).forEach(([e,r])=>{null==r?delete t[e]:t[e]=r}),t}function isDependencyMet(e,r){if(!e?.terms.length)return{isMet:!0};const{relation:t,terms:a}=e,i=function getRelationMethod(e){switch(e){case"or":return"some";case"and":return"every";default:throw new Error(`Relation not supported ${e}`)}}(t),n=[];return{isMet:a[i](e=>{const t=isDependency(e)?isDependencyMet(e,r).isMet:evaluateTerm(e,extractValue(e.path,r,e.nestedPath)?.value);return t||n.push(e),t}),failingDependencies:n}}function evaluateTerm(e,r){const{value:t,operator:a}=e;switch(a){case"eq":case"ne":return r===t==("eq"===a);case"gt":case"lte":return!(!isNumber(r)||!isNumber(t))&&Number(r)>Number(t)==("gt"===a);case"lt":case"gte":return!(!isNumber(r)||!isNumber(t))&&Number(r)<Number(t)==("lt"===a);case"in":case"nin":return!!Array.isArray(t)&&t.includes(r)===("in"===a);case"contains":case"ncontains":if(("string"!=typeof r||"string"!=typeof t)&&!Array.isArray(r))return!1;return"contains"===a===(Array.isArray(r)?r.map(e=>isTransformable(e)?e.value:e):r).includes(t);case"exists":case"not_exist":return"exists"===a===(!!r||0===r||!1===r);default:return!0}}function isNumber(e){return"number"==typeof e&&!isNaN(e)}function extractValue(e,r,t=[],a={}){const{unwrapOverridableLeaf:i=!0}=a;let n=e.reduce((r,t,a)=>{const i=r?.[t];if(a===e.length-1)return i;if(isOverridable(i)){const e=i.value.origin_value;return isTransformable(e)?e.value??null:e}return isTransformable(i)?i.value??null:i},r);if(i&&n&&isOverridable(n)&&(n=n.value.origin_value??null),!t?.length)return n;return{$$type:"unknown",value:t.reduce((e,r)=>e?.[r],n?.value)}}function isDependency(e){return"terms"in e}var ir=new Set(["span","b","strong","i","em","u","a","del","sup","sub","s"]);function generateElementId(){return`e-${Date.now().toString(36)}-${Math.random().toString(36).substring(2,9)}`}function traverseChildren(e){const r=[];for(const t of Array.from(e.children)){const e=t.tagName.toLowerCase();if(!ir.has(e)){r.push(...traverseChildren(t));continue}let a=t.getAttribute("id");a||(a=generateElementId(),t.setAttribute("id",a));const i={id:a,type:e},n=t.textContent?.trim();n&&(i.content=n);const o=traverseChildren(t);o.length>0&&(i.children=o),r.push(i)}return r}function parseHtmlChildren(e){if(!e)return{content:e,children:[]};const r=(new DOMParser).parseFromString(`<body>${e}</body>`,"text/html"),t=r.querySelector("parsererror");if(t)return console.warn("HTML parsing error, returning original content:",t.textContent),{content:e,children:[]};const a=r.body,i=traverseChildren(a);return{content:a.innerHTML,children:i}}var nr={jsonSchemaToPropType:jsonSchemaToPropType,propTypeToJsonSchema:propTypeToJsonSchema,adjustLlmPropValueSchema:adjustLlmPropValueSchema,isPropKeyConfigurable:isPropKeyConfigurable,nonConfigurablePropKeys:er,configurableKeys:function configurableKeys(e){return Object.keys(e).filter(r=>isPropKeyConfigurable(r,e[r]))},validatePropValue:(e,r)=>{const t=propTypeToJsonSchema(e);if(null===r)return{valid:!0,errors:[],errorMessages:[],jsonSchema:JSON.stringify(propTypeToJsonSchema(e))};const a=(0,rr.validate)(r,t),i=a.errors.map(processValidationError);return{valid:a.valid,errors:a.errors,errorMessages:formatDetailedErrors(i),jsonSchema:JSON.stringify(t)}},enrichWithIntention:function enrichWithIntention(e,r="Describe the desired outcome"){const t=structuredClone(e);return t.properties?(t.properties.$intention={type:"string",description:r},t.required=[...t.required||[],"$intention"],t):e},removeIntention:function removeIntention(e){const r=structuredClone(e);return r.properties?(delete r.properties.$intention,r.required&&(r.required=r.required.filter(e=>"$intention"!==e)),r):e},setDynamicTagNamesResolver:function setDynamicTagNamesResolver(e){Qe=e}}},46677:function(e,r){var t=r.ValidationError=function ValidationError(e,r,t,a,i,n){if(Array.isArray(a)?(this.path=a,this.property=a.reduce(function(e,r){return e+s(r)},"instance")):void 0!==a&&(this.property=a),e&&(this.message=e),t){var o=t.$id||t.id;this.schema=o||t}void 0!==r&&(this.instance=r),this.name=i,this.argument=n,this.stack=this.toString()};t.prototype.toString=function toString(){return this.property+" "+this.message};var a=r.ValidatorResult=function ValidatorResult(e,r,t,a){this.instance=e,this.schema=r,this.options=t,this.path=a.path,this.propertyPath=a.propertyPath,this.errors=[],this.throwError=t&&t.throwError,this.throwFirst=t&&t.throwFirst,this.throwAll=t&&t.throwAll,this.disableFormat=t&&!0===t.disableFormat};function stringizer(e,r){return r+": "+e.toString()+"\n"}function ValidatorResultError(e){"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ValidatorResultError),this.instance=e.instance,this.schema=e.schema,this.options=e.options,this.errors=e.errors}a.prototype.addError=function addError(e){var r;if("string"==typeof e)r=new t(e,this.instance,this.schema,this.path);else{if(!e)throw new Error("Missing error detail");if(!e.message)throw new Error("Missing error message");if(!e.name)throw new Error("Missing validator type");r=new t(e.message,this.instance,this.schema,this.path,e.name,e.argument)}if(this.errors.push(r),this.throwFirst)throw new ValidatorResultError(this);if(this.throwError)throw r;return r},a.prototype.importErrors=function importErrors(e){"string"==typeof e||e&&e.validatorType?this.addError(e):e&&e.errors&&(this.errors=this.errors.concat(e.errors))},a.prototype.toString=function toString(e){return this.errors.map(stringizer).join("")},Object.defineProperty(a.prototype,"valid",{get:function(){return!this.errors.length}}),e.exports.ValidatorResultError=ValidatorResultError,ValidatorResultError.prototype=new Error,ValidatorResultError.prototype.constructor=ValidatorResultError,ValidatorResultError.prototype.name="Validation Error";var i=r.SchemaError=function SchemaError(e,r){this.message=e,this.schema=r,Error.call(this,e),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,SchemaError)};i.prototype=Object.create(Error.prototype,{constructor:{value:i,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var n=r.SchemaContext=function SchemaContext(e,r,t,a,i){this.schema=e,this.options=r,Array.isArray(t)?(this.path=t,this.propertyPath=t.reduce(function(e,r){return e+s(r)},"instance")):this.propertyPath=t,this.base=a,this.schemas=i};n.prototype.resolve=function resolve(e){return(()=>c(this.base,e))()},n.prototype.makeChild=function makeChild(e,r){var t=void 0===r?this.path:this.path.concat([r]),a=e.$id||e.id;let i=(()=>c(this.base,a||""))();var o=new n(e,this.options,t,i,Object.create(this.schemas));return a&&!o.schemas[i]&&(o.schemas[i]=e),o};var o=r.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\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Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(e){return"string"==typeof e&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var r=!0;try{new RegExp(e)}catch(e){r=!1}return r},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};o.regexp=o.regex,o.pattern=o.regex,o.ipv4=o["ip-address"],r.isFormat=function isFormat(e,r,t){if("string"==typeof e&&void 0!==o[r]){if(o[r]instanceof RegExp)return o[r].test(e);if("function"==typeof o[r])return o[r](e)}else if(t&&t.customFormats&&"function"==typeof t.customFormats[r])return t.customFormats[r](e);return!0};var s=r.makeSuffix=function makeSuffix(e){return(e=e.toString()).match(/[.\s\[\]]/)||e.match(/^[\d]/)?e.match(/^\d+$/)?"["+e+"]":"["+JSON.stringify(e)+"]":"."+e};function deepMerger(e,r,t,a){"object"==typeof t?r[a]=deepMerge(e[a],t):-1===e.indexOf(t)&&r.push(t)}function copyist(e,r,t){r[t]=e[t]}function copyistWithDeepMerge(e,r,t,a){"object"==typeof r[a]&&r[a]&&e[a]?t[a]=deepMerge(e[a],r[a]):t[a]=r[a]}function deepMerge(e,r){var t=Array.isArray(r),a=t&&[]||{};return t?(e=e||[],a=a.concat(e),r.forEach(deepMerger.bind(null,e,a))):(e&&"object"==typeof e&&Object.keys(e).forEach(copyist.bind(null,e,a)),Object.keys(r).forEach(copyistWithDeepMerge.bind(null,e,r,a))),a}function pathEncoder(e){return"/"+encodeURIComponent(e).replace(/~/g,"%7E")}r.deepCompareStrict=function deepCompareStrict(e,r){if(typeof e!=typeof r)return!1;if(Array.isArray(e))return!!Array.isArray(r)&&(e.length===r.length&&e.every(function(t,a){return deepCompareStrict(e[a],r[a])}));if("object"==typeof e){if(!e||!r)return e===r;var t=Object.keys(e),a=Object.keys(r);return t.length===a.length&&t.every(function(t){return deepCompareStrict(e[t],r[t])})}return e===r},e.exports.deepMerge=deepMerge,r.objectGetPath=function objectGetPath(e,r){for(var t,a=r.split("/").slice(1);"string"==typeof(t=a.shift());){var i=decodeURIComponent(t.replace(/~0/,"~").replace(/~1/g,"/"));if(!(i in e))return;e=e[i]}return e},r.encodePath=function encodePointer(e){return e.map(pathEncoder).join("")},r.getDecimalPlaces=function getDecimalPlaces(e){var r=0;if(isNaN(e))return r;"number"!=typeof e&&(e=Number(e));var t=e.toString().split("e");if(2===t.length){if("-"!==t[1][0])return r;r=Number(t[1].slice(1))}var a=t[0].split(".");return 2===a.length&&(r+=a[1].length),r},r.isSchema=function isSchema(e){return"object"==typeof e&&e||"boolean"==typeof e};var c=r.resolveUrl=function resolveUrl(e,r){const t=new URL(r,new URL(e,"resolve://"));if("resolve:"===t.protocol){const{pathname:e,search:r,hash:a}=t;return e+r+a}return t.toString()}},49911:function(e,r,t){var a=t(46677);function SchemaScanResult(e,r){this.id=e,this.ref=r}e.exports.SchemaScanResult=SchemaScanResult,e.exports.scan=function scan(e,r){function scanSchema(e,r){if(!r||"object"!=typeof r)return;if(r.$ref){let t=a.resolveUrl(e,r.$ref);return void(i[t]=i[t]?i[t]+1:0)}var n=r.$id||r.id;let o=a.resolveUrl(e,n);var s=n?o:e;if(s){if(s.indexOf("#")<0&&(s+="#"),t[s]){if(!a.deepCompareStrict(t[s],r))throw new Error("Schema <"+s+"> already exists with different definition");return t[s]}t[s]=r,"#"==s[s.length-1]&&(t[s.substring(0,s.length-1)]=r)}scanArray(s+"/items",Array.isArray(r.items)?r.items:[r.items]),scanArray(s+"/extends",Array.isArray(r.extends)?r.extends:[r.extends]),scanSchema(s+"/additionalItems",r.additionalItems),scanObject(s+"/properties",r.properties),scanSchema(s+"/additionalProperties",r.additionalProperties),scanObject(s+"/definitions",r.definitions),scanObject(s+"/patternProperties",r.patternProperties),scanObject(s+"/dependencies",r.dependencies),scanArray(s+"/disallow",r.disallow),scanArray(s+"/allOf",r.allOf),scanArray(s+"/anyOf",r.anyOf),scanArray(s+"/oneOf",r.oneOf),scanSchema(s+"/not",r.not)}function scanArray(e,r){if(Array.isArray(r))for(var t=0;t<r.length;t++)scanSchema(e+"/"+t,r[t])}function scanObject(e,r){if(r&&"object"==typeof r)for(var t in r)scanSchema(e+"/"+t,r[t])}var t={},i={};return scanSchema(e,r),new SchemaScanResult(t,i)}},55140:function(e,r,t){var a=t(46677),i=a.ValidatorResult,n=a.SchemaError,o={ignoreProperties:{id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0}},s=o.validators={};function testSchemaNoThrow(e,r,t,a,i){var n=r.throwError,o=r.throwAll;r.throwError=!1,r.throwAll=!1;var s=this.validateSchema(e,i,r,t);return r.throwError=n,r.throwAll=o,!s.valid&&a instanceof Function&&a(s),s.valid}function getEnumerableProperty(e,r){if(Object.hasOwnProperty.call(e,r))return e[r];if(r in e)for(;e=Object.getPrototypeOf(e);)if(Object.propertyIsEnumerable.call(e,r))return e[r]}function testAdditionalProperty(e,r,t,a,i,n){if(this.types.object(e)&&(!r.properties||void 0===r.properties[i]))if(!1===r.additionalProperties)n.addError({name:"additionalProperties",argument:i,message:"is not allowed to have the additional property "+JSON.stringify(i)});else{var o=r.additionalProperties||{};"function"==typeof t.preValidateProperty&&t.preValidateProperty(e,i,o,t,a);var s=this.validateSchema(e[i],o,t,a.makeChild(o,i));s.instance!==n.instance[i]&&(n.instance[i]=s.instance),n.importErrors(s)}}s.type=function validateType(e,r,t,a){if(void 0===e)return null;var n=new i(e,r,t,a),o=Array.isArray(r.type)?r.type:[r.type];if(!o.some(this.testType.bind(this,e,r,t,a))){var s=o.map(function(e){if(e){var r=e.$id||e.id;return r?"<"+r+">":e+""}});n.addError({name:"type",argument:s,message:"is not of a type(s) "+s})}return n},s.anyOf=function validateAnyOf(e,r,t,a){if(void 0===e)return null;var o=new i(e,r,t,a),s=new i(e,r,t,a);if(!Array.isArray(r.anyOf))throw new n("anyOf must be an array");if(!r.anyOf.some(testSchemaNoThrow.bind(this,e,t,a,function(e){s.importErrors(e)}))){var c=r.anyOf.map(function(e,r){var t=e.$id||e.id;return t?"<"+t+">":e.title&&JSON.stringify(e.title)||e.$ref&&"<"+e.$ref+">"||"[subschema "+r+"]"});t.nestedErrors&&o.importErrors(s),o.addError({name:"anyOf",argument:c,message:"is not any of "+c.join(",")})}return o},s.allOf=function validateAllOf(e,r,t,a){if(void 0===e)return null;if(!Array.isArray(r.allOf))throw new n("allOf must be an array");var o=new i(e,r,t,a),s=this;return r.allOf.forEach(function(r,i){var n=s.validateSchema(e,r,t,a);if(!n.valid){var c=r.$id||r.id||r.title&&JSON.stringify(r.title)||r.$ref&&"<"+r.$ref+">"||"[subschema "+i+"]";o.addError({name:"allOf",argument:{id:c,length:n.errors.length,valid:n},message:"does not match allOf schema "+c+" with "+n.errors.length+" error[s]:"}),o.importErrors(n)}}),o},s.oneOf=function validateOneOf(e,r,t,a){if(void 0===e)return null;if(!Array.isArray(r.oneOf))throw new n("oneOf must be an array");var o=new i(e,r,t,a),s=new i(e,r,t,a),c=r.oneOf.filter(testSchemaNoThrow.bind(this,e,t,a,function(e){s.importErrors(e)})).length,l=r.oneOf.map(function(e,r){return e.$id||e.id||e.title&&JSON.stringify(e.title)||e.$ref&&"<"+e.$ref+">"||"[subschema "+r+"]"});return 1!==c&&(t.nestedErrors&&o.importErrors(s),o.addError({name:"oneOf",argument:l,message:"is not exactly one from "+l.join(",")})),o},s.if=function validateIf(e,r,t,n){if(void 0===e)return null;if(!a.isSchema(r.if))throw new Error('Expected "if" keyword to be a schema');var o,s=testSchemaNoThrow.call(this,e,t,n,null,r.if),c=new i(e,r,t,n);if(s){if(void 0===r.then)return;if(!a.isSchema(r.then))throw new Error('Expected "then" keyword to be a schema');o=this.validateSchema(e,r.then,t,n.makeChild(r.then)),c.importErrors(o)}else{if(void 0===r.else)return;if(!a.isSchema(r.else))throw new Error('Expected "else" keyword to be a schema');o=this.validateSchema(e,r.else,t,n.makeChild(r.else)),c.importErrors(o)}return c},s.propertyNames=function validatePropertyNames(e,r,t,o){if(this.types.object(e)){var s=new i(e,r,t,o),c=void 0!==r.propertyNames?r.propertyNames:{};if(!a.isSchema(c))throw new n('Expected "propertyNames" to be a schema (object or boolean)');for(var l in e)if(void 0!==getEnumerableProperty(e,l)){var u=this.validateSchema(l,c,t,o.makeChild(c));s.importErrors(u)}return s}},s.properties=function validateProperties(e,r,t,a){if(this.types.object(e)){var o=new i(e,r,t,a),s=r.properties||{};for(var c in s){var l=s[c];if(void 0!==l){if(null===l)throw new n('Unexpected null, expected schema in "properties"');"function"==typeof t.preValidateProperty&&t.preValidateProperty(e,c,l,t,a);var u=getEnumerableProperty(e,c),p=this.validateSchema(u,l,t,a.makeChild(l,c));p.instance!==o.instance[c]&&(o.instance[c]=p.instance),o.importErrors(p)}}return o}},s.patternProperties=function validatePatternProperties(e,r,t,a){if(this.types.object(e)){var o=new i(e,r,t,a),s=r.patternProperties||{};for(var c in e){var l=!0;for(var u in s){var p=s[u];if(void 0!==p){if(null===p)throw new n('Unexpected null, expected schema in "patternProperties"');try{var m=new RegExp(u,"u")}catch(e){m=new RegExp(u)}if(m.test(c)){l=!1,"function"==typeof t.preValidateProperty&&t.preValidateProperty(e,c,p,t,a);var d=this.validateSchema(e[c],p,t,a.makeChild(p,c));d.instance!==o.instance[c]&&(o.instance[c]=d.instance),o.importErrors(d)}}}l&&testAdditionalProperty.call(this,e,r,t,a,c,o)}return o}},s.additionalProperties=function validateAdditionalProperties(e,r,t,a){if(this.types.object(e)){if(r.patternProperties)return null;var n=new i(e,r,t,a);for(var o in e)testAdditionalProperty.call(this,e,r,t,a,o,n);return n}},s.minProperties=function validateMinProperties(e,r,t,a){if(this.types.object(e)){var n=new i(e,r,t,a);return Object.keys(e).length>=r.minProperties||n.addError({name:"minProperties",argument:r.minProperties,message:"does not meet minimum property length of "+r.minProperties}),n}},s.maxProperties=function validateMaxProperties(e,r,t,a){if(this.types.object(e)){var n=new i(e,r,t,a);return Object.keys(e).length<=r.maxProperties||n.addError({name:"maxProperties",argument:r.maxProperties,message:"does not meet maximum property length of "+r.maxProperties}),n}},s.items=function validateItems(e,r,t,a){var n=this;if(this.types.array(e)&&void 0!==r.items){var o=new i(e,r,t,a);return e.every(function(e,i){if(Array.isArray(r.items))var s=void 0===r.items[i]?r.additionalItems:r.items[i];else s=r.items;if(void 0===s)return!0;if(!1===s)return o.addError({name:"items",message:"additionalItems not permitted"}),!1;var c=n.validateSchema(e,s,t,a.makeChild(s,i));return c.instance!==o.instance[i]&&(o.instance[i]=c.instance),o.importErrors(c),!0}),o}},s.contains=function validateContains(e,r,t,n){var o=this;if(this.types.array(e)&&void 0!==r.contains){if(!a.isSchema(r.contains))throw new Error('Expected "contains" keyword to be a schema');var s=new i(e,r,t,n);return!1===e.some(function(e,a){return 0===o.validateSchema(e,r.contains,t,n.makeChild(r.contains,a)).errors.length})&&s.addError({name:"contains",argument:r.contains,message:"must contain an item matching given schema"}),s}},s.minimum=function validateMinimum(e,r,t,a){if(this.types.number(e)){var n=new i(e,r,t,a);return r.exclusiveMinimum&&!0===r.exclusiveMinimum?e>r.minimum||n.addError({name:"minimum",argument:r.minimum,message:"must be greater than "+r.minimum}):e>=r.minimum||n.addError({name:"minimum",argument:r.minimum,message:"must be greater than or equal to "+r.minimum}),n}},s.maximum=function validateMaximum(e,r,t,a){if(this.types.number(e)){var n=new i(e,r,t,a);return r.exclusiveMaximum&&!0===r.exclusiveMaximum?e<r.maximum||n.addError({name:"maximum",argument:r.maximum,message:"must be less than "+r.maximum}):e<=r.maximum||n.addError({name:"maximum",argument:r.maximum,message:"must be less than or equal to "+r.maximum}),n}},s.exclusiveMinimum=function validateExclusiveMinimum(e,r,t,a){if("boolean"!=typeof r.exclusiveMinimum&&this.types.number(e)){var n=new i(e,r,t,a);return e>r.exclusiveMinimum||n.addError({name:"exclusiveMinimum",argument:r.exclusiveMinimum,message:"must be strictly greater than "+r.exclusiveMinimum}),n}},s.exclusiveMaximum=function validateExclusiveMaximum(e,r,t,a){if("boolean"!=typeof r.exclusiveMaximum&&this.types.number(e)){var n=new i(e,r,t,a);return e<r.exclusiveMaximum||n.addError({name:"exclusiveMaximum",argument:r.exclusiveMaximum,message:"must be strictly less than "+r.exclusiveMaximum}),n}};var c=function validateMultipleOfOrDivisbleBy(e,r,t,o,s,c){if(this.types.number(e)){var l=r[s];if(0==l)throw new n(s+" cannot be zero");var u=new i(e,r,t,o),p=a.getDecimalPlaces(e),m=a.getDecimalPlaces(l),d=Math.max(p,m),f=Math.pow(10,d);return Math.round(e*f)%Math.round(l*f)!==0&&u.addError({name:s,argument:l,message:c+JSON.stringify(l)}),u}};function testArrays(e,r,t){var i,n=t.length;for(i=r+1;i<n;i++)if(a.deepCompareStrict(e,t[i]))return!1;return!0}s.multipleOf=function validateMultipleOf(e,r,t,a){return c.call(this,e,r,t,a,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function validateDivisibleBy(e,r,t,a){return c.call(this,e,r,t,a,"divisibleBy","is not divisible by (multiple of) ")},s.required=function validateRequired(e,r,t,a){var n=new i(e,r,t,a);return void 0===e&&!0===r.required?n.addError({name:"required",message:"is required"}):this.types.object(e)&&Array.isArray(r.required)&&r.required.forEach(function(r){void 0===getEnumerableProperty(e,r)&&n.addError({name:"required",argument:r,message:"requires property "+JSON.stringify(r)})}),n},s.pattern=function validatePattern(e,r,t,a){if(this.types.string(e)){var n=new i(e,r,t,a),o=r.pattern;try{var s=new RegExp(o,"u")}catch(e){s=new RegExp(o)}return e.match(s)||n.addError({name:"pattern",argument:r.pattern,message:"does not match pattern "+JSON.stringify(r.pattern.toString())}),n}},s.format=function validateFormat(e,r,t,n){if(void 0!==e){var o=new i(e,r,t,n);return o.disableFormat||a.isFormat(e,r.format,this)||o.addError({name:"format",argument:r.format,message:"does not conform to the "+JSON.stringify(r.format)+" format"}),o}},s.minLength=function validateMinLength(e,r,t,a){if(this.types.string(e)){var n=new i(e,r,t,a),o=e.match(/[\uDC00-\uDFFF]/g);return e.length-(o?o.length:0)>=r.minLength||n.addError({name:"minLength",argument:r.minLength,message:"does not meet minimum length of "+r.minLength}),n}},s.maxLength=function validateMaxLength(e,r,t,a){if(this.types.string(e)){var n=new i(e,r,t,a),o=e.match(/[\uDC00-\uDFFF]/g);return e.length-(o?o.length:0)<=r.maxLength||n.addError({name:"maxLength",argument:r.maxLength,message:"does not meet maximum length of "+r.maxLength}),n}},s.minItems=function validateMinItems(e,r,t,a){if(this.types.array(e)){var n=new i(e,r,t,a);return e.length>=r.minItems||n.addError({name:"minItems",argument:r.minItems,message:"does not meet minimum length of "+r.minItems}),n}},s.maxItems=function validateMaxItems(e,r,t,a){if(this.types.array(e)){var n=new i(e,r,t,a);return e.length<=r.maxItems||n.addError({name:"maxItems",argument:r.maxItems,message:"does not meet maximum length of "+r.maxItems}),n}},s.uniqueItems=function validateUniqueItems(e,r,t,a){if(!0===r.uniqueItems&&this.types.array(e)){var n=new i(e,r,t,a);return e.every(testArrays)||n.addError({name:"uniqueItems",message:"contains duplicate item"}),n}},s.dependencies=function validateDependencies(e,r,t,a){if(this.types.object(e)){var n=new i(e,r,t,a);for(var o in r.dependencies)if(void 0!==e[o]){var s=r.dependencies[o],c=a.makeChild(s,o);if("string"==typeof s&&(s=[s]),Array.isArray(s))s.forEach(function(r){void 0===e[r]&&n.addError({name:"dependencies",argument:c.propertyPath,message:"property "+r+" not found, required by "+c.propertyPath})});else{var l=this.validateSchema(e,s,t,c);n.instance!==l.instance&&(n.instance=l.instance),l&&l.errors.length&&(n.addError({name:"dependencies",argument:c.propertyPath,message:"does not meet dependency required by "+c.propertyPath}),n.importErrors(l))}}return n}},s.enum=function validateEnum(e,r,t,o){if(void 0===e)return null;if(!Array.isArray(r.enum))throw new n("enum expects an array",r);var s=new i(e,r,t,o);return r.enum.some(a.deepCompareStrict.bind(null,e))||s.addError({name:"enum",argument:r.enum,message:"is not one of enum values: "+r.enum.map(String).join(",")}),s},s.const=function validateEnum(e,r,t,n){if(void 0===e)return null;var o=new i(e,r,t,n);return a.deepCompareStrict(r.const,e)||o.addError({name:"const",argument:r.const,message:"does not exactly match expected constant: "+r.const}),o},s.not=s.disallow=function validateNot(e,r,t,a){var n=this;if(void 0===e)return null;var o=new i(e,r,t,a),s=r.not||r.disallow;return s?(Array.isArray(s)||(s=[s]),s.forEach(function(i){if(n.testType(e,r,t,a,i)){var s=i&&(i.$id||i.id)||i;o.addError({name:"not",argument:s,message:"is of prohibited type "+s})}}),o):null},e.exports=o},59618:function(e){e.exports=window.elementorV2.schema},96482:function(e,r,t){var a=t(55140),i=t(46677),n=t(49911).scan,o=i.ValidatorResult,s=i.ValidatorResultError,c=i.SchemaError,l=i.SchemaContext,u=function Validator(){this.customFormats=Object.create(Validator.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(p),this.attributes=Object.create(a.validators)};function shouldResolve(e){var r="string"==typeof e?e:e.$ref;return"string"==typeof r&&r}u.prototype.customFormats={},u.prototype.schemas=null,u.prototype.types=null,u.prototype.attributes=null,u.prototype.unresolvedRefs=null,u.prototype.addSchema=function addSchema(e,r){var t=this;if(!e)return null;var a=n(r||"/",e),i=r||e.$id||e.id;for(var o in a.id)this.schemas[o]=a.id[o];for(var o in a.ref)this.unresolvedRefs.push(o);return this.unresolvedRefs=this.unresolvedRefs.filter(function(e){return void 0===t.schemas[e]}),this.schemas[i]},u.prototype.addSubSchemaArray=function addSubSchemaArray(e,r){if(Array.isArray(r))for(var t=0;t<r.length;t++)this.addSubSchema(e,r[t])},u.prototype.addSubSchemaObject=function addSubSchemaArray(e,r){if(r&&"object"==typeof r)for(var t in r)this.addSubSchema(e,r[t])},u.prototype.setSchemas=function setSchemas(e){this.schemas=e},u.prototype.getSchema=function getSchema(e){return this.schemas[e]},u.prototype.validate=function validate(e,r,t,a){if("boolean"!=typeof r&&"object"!=typeof r||null===r)throw new c("Expected `schema` to be an object or boolean");t||(t={});var u=r.$id||r.id;let p=i.resolveUrl(t.base,u||"");if(!a){(a=new l(r,t,[],p,Object.create(this.schemas))).schemas[p]||(a.schemas[p]=r);var m=n(p,r);for(var d in m.id){var f=m.id[d];a.schemas[d]=f}}var h;if(t.required&&void 0===e)return(h=new o(e,r,t,a)).addError("is required, but is undefined"),h;if(!(h=this.validateSchema(e,r,t,a)))throw new Error("Result undefined");if(t.throwAll&&h.errors.length)throw new s(h);return h},u.prototype.validateSchema=function validateSchema(e,r,t,n){var s=new o(e,r,t,n);if("boolean"==typeof r)!0===r?r={}:!1===r&&(r={type:[]});else if(!r)throw new Error("schema is undefined");if(r.extends)if(Array.isArray(r.extends)){var u={schema:r,ctx:n};r.extends.forEach(this.schemaTraverser.bind(this,u)),r=u.schema,u.schema=null,u.ctx=null,u=null}else r=i.deepMerge(r,this.superResolve(r.extends,n));var p=shouldResolve(r);if(p){var m=this.resolve(r,p,n),d=new l(m.subschema,t,n.path,m.switchSchema,n.schemas);return this.validateSchema(e,m.subschema,t,d)}var f=t&&t.skipAttributes||[];for(var h in r)if(!a.ignoreProperties[h]&&f.indexOf(h)<0){var y=null,v=this.attributes[h];if(v)y=v.call(this,e,r,t,n);else if(!1===t.allowUnknownAttributes)throw new c("Unsupported attribute: "+h,r);y&&s.importErrors(y)}if("function"==typeof t.rewrite){var g=t.rewrite.call(this,e,r,t,n);s.instance=g}return s},u.prototype.schemaTraverser=function schemaTraverser(e,r){e.schema=i.deepMerge(e.schema,this.superResolve(r,e.ctx))},u.prototype.superResolve=function superResolve(e,r){var t=shouldResolve(e);return t?this.resolve(e,t,r).subschema:e},u.prototype.resolve=function resolve(e,r,t){if(r=t.resolve(r),t.schemas[r])return{subschema:t.schemas[r],switchSchema:r};let a=new URL(r,"thismessage::/").hash;var n=a&&a.length&&r.substr(0,r.length-a.length);if(!n||!t.schemas[n])throw new c("no such schema <"+r+">",e);var o=i.objectGetPath(t.schemas[n],a.substr(1));if(void 0===o)throw new c("no such schema "+a+" located in <"+n+">",e);return{subschema:o,switchSchema:r}},u.prototype.testType=function validateType(e,r,t,a,i){if(void 0!==i){if(null===i)throw new c('Unexpected null in "type" keyword');if("function"==typeof this.types[i])return this.types[i].call(this,e);if(i&&"object"==typeof i){var n=this.validateSchema(e,i,t,a);return void 0===n||!(n&&n.errors.length)}return!0}};var p=u.prototype.types={};p.string=function testString(e){return"string"==typeof e},p.number=function testNumber(e){return"number"==typeof e&&isFinite(e)},p.integer=function testInteger(e){return"number"==typeof e&&e%1==0},p.boolean=function testBoolean(e){return"boolean"==typeof e},p.array=function testArray(e){return Array.isArray(e)},p.null=function testNull(e){return null===e},p.date=function testDate(e){return e instanceof Date},p.any=function testAny(e){return!0},p.object=function testObject(e){return e&&"object"==typeof e&&!Array.isArray(e)&&!(e instanceof Date)},e.exports=u}},r={};var t=function __webpack_require__(t){var a=r[t];if(void 0!==a)return a.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,__webpack_require__),i.exports}(16164);(window.elementorV2=window.elementorV2||{}).editorProps=t}(),window.elementorV2.editorProps?.init?.();
1 +!function(){"use strict";var e={5140:function(e,t,r){var n=r(6677),i=n.ValidatorResult,a=n.SchemaError,o={ignoreProperties:{id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0}},s=o.validators={};function u(e,t,r,n,i){var a=t.throwError,o=t.throwAll;t.throwError=!1,t.throwAll=!1;var s=this.validateSchema(e,i,t,r);return t.throwError=a,t.throwAll=o,!s.valid&&n instanceof Function&&n(s),s.valid}function c(e,t){if(Object.hasOwnProperty.call(e,t))return e[t];if(t in e)for(;e=Object.getPrototypeOf(e);)if(Object.propertyIsEnumerable.call(e,t))return e[t]}function l(e,t,r,n,i,a){if(this.types.object(e)&&(!t.properties||void 0===t.properties[i]))if(!1===t.additionalProperties)a.addError({name:"additionalProperties",argument:i,message:"is not allowed to have the additional property "+JSON.stringify(i)});else{var o=t.additionalProperties||{};"function"==typeof r.preValidateProperty&&r.preValidateProperty(e,i,o,r,n);var s=this.validateSchema(e[i],o,r,n.makeChild(o,i));s.instance!==a.instance[i]&&(a.instance[i]=s.instance),a.importErrors(s)}}s.type=function(e,t,r,n){if(void 0===e)return null;var a=new i(e,t,r,n),o=Array.isArray(t.type)?t.type:[t.type];if(!o.some(this.testType.bind(this,e,t,r,n))){var s=o.map(function(e){if(e){var t=e.$id||e.id;return t?"<"+t+">":e+""}});a.addError({name:"type",argument:s,message:"is not of a type(s) "+s})}return a},s.anyOf=function(e,t,r,n){if(void 0===e)return null;var o=new i(e,t,r,n),s=new i(e,t,r,n);if(!Array.isArray(t.anyOf))throw new a("anyOf must be an array");if(!t.anyOf.some(u.bind(this,e,r,n,function(e){s.importErrors(e)}))){var c=t.anyOf.map(function(e,t){var r=e.$id||e.id;return r?"<"+r+">":e.title&&JSON.stringify(e.title)||e.$ref&&"<"+e.$ref+">"||"[subschema "+t+"]"});r.nestedErrors&&o.importErrors(s),o.addError({name:"anyOf",argument:c,message:"is not any of "+c.join(",")})}return o},s.allOf=function(e,t,r,n){if(void 0===e)return null;if(!Array.isArray(t.allOf))throw new a("allOf must be an array");var o=new i(e,t,r,n),s=this;return t.allOf.forEach(function(t,i){var a=s.validateSchema(e,t,r,n);if(!a.valid){var u=t.$id||t.id||t.title&&JSON.stringify(t.title)||t.$ref&&"<"+t.$ref+">"||"[subschema "+i+"]";o.addError({name:"allOf",argument:{id:u,length:a.errors.length,valid:a},message:"does not match allOf schema "+u+" with "+a.errors.length+" error[s]:"}),o.importErrors(a)}}),o},s.oneOf=function(e,t,r,n){if(void 0===e)return null;if(!Array.isArray(t.oneOf))throw new a("oneOf must be an array");var o=new i(e,t,r,n),s=new i(e,t,r,n),c=t.oneOf.filter(u.bind(this,e,r,n,function(e){s.importErrors(e)})).length,l=t.oneOf.map(function(e,t){return e.$id||e.id||e.title&&JSON.stringify(e.title)||e.$ref&&"<"+e.$ref+">"||"[subschema "+t+"]"});return 1!==c&&(r.nestedErrors&&o.importErrors(s),o.addError({name:"oneOf",argument:l,message:"is not exactly one from "+l.join(",")})),o},s.if=function(e,t,r,a){if(void 0===e)return null;if(!n.isSchema(t.if))throw new Error('Expected "if" keyword to be a schema');var o,s=u.call(this,e,r,a,null,t.if),c=new i(e,t,r,a);if(s){if(void 0===t.then)return;if(!n.isSchema(t.then))throw new Error('Expected "then" keyword to be a schema');o=this.validateSchema(e,t.then,r,a.makeChild(t.then)),c.importErrors(o)}else{if(void 0===t.else)return;if(!n.isSchema(t.else))throw new Error('Expected "else" keyword to be a schema');o=this.validateSchema(e,t.else,r,a.makeChild(t.else)),c.importErrors(o)}return c},s.propertyNames=function(e,t,r,o){if(this.types.object(e)){var s=new i(e,t,r,o),u=void 0!==t.propertyNames?t.propertyNames:{};if(!n.isSchema(u))throw new a('Expected "propertyNames" to be a schema (object or boolean)');for(var l in e)if(void 0!==c(e,l)){var f=this.validateSchema(l,u,r,o.makeChild(u));s.importErrors(f)}return s}},s.properties=function(e,t,r,n){if(this.types.object(e)){var o=new i(e,t,r,n),s=t.properties||{};for(var u in s){var l=s[u];if(void 0!==l){if(null===l)throw new a('Unexpected null, expected schema in "properties"');"function"==typeof r.preValidateProperty&&r.preValidateProperty(e,u,l,r,n);var f=c(e,u),p=this.validateSchema(f,l,r,n.makeChild(l,u));p.instance!==o.instance[u]&&(o.instance[u]=p.instance),o.importErrors(p)}}return o}},s.patternProperties=function(e,t,r,n){if(this.types.object(e)){var o=new i(e,t,r,n),s=t.patternProperties||{};for(var u in e){var c=!0;for(var f in s){var p=s[f];if(void 0!==p){if(null===p)throw new a('Unexpected null, expected schema in "patternProperties"');try{var m=new RegExp(f,"u")}catch(e){m=new RegExp(f)}if(m.test(u)){c=!1,"function"==typeof r.preValidateProperty&&r.preValidateProperty(e,u,p,r,n);var d=this.validateSchema(e[u],p,r,n.makeChild(p,u));d.instance!==o.instance[u]&&(o.instance[u]=d.instance),o.importErrors(d)}}}c&&l.call(this,e,t,r,n,u,o)}return o}},s.additionalProperties=function(e,t,r,n){if(this.types.object(e)){if(t.patternProperties)return null;var a=new i(e,t,r,n);for(var o in e)l.call(this,e,t,r,n,o,a);return a}},s.minProperties=function(e,t,r,n){if(this.types.object(e)){var a=new i(e,t,r,n);return Object.keys(e).length>=t.minProperties||a.addError({name:"minProperties",argument:t.minProperties,message:"does not meet minimum property length of "+t.minProperties}),a}},s.maxProperties=function(e,t,r,n){if(this.types.object(e)){var a=new i(e,t,r,n);return Object.keys(e).length<=t.maxProperties||a.addError({name:"maxProperties",argument:t.maxProperties,message:"does not meet maximum property length of "+t.maxProperties}),a}},s.items=function(e,t,r,n){var a=this;if(this.types.array(e)&&void 0!==t.items){var o=new i(e,t,r,n);return e.every(function(e,i){if(Array.isArray(t.items))var s=void 0===t.items[i]?t.additionalItems:t.items[i];else s=t.items;if(void 0===s)return!0;if(!1===s)return o.addError({name:"items",message:"additionalItems not permitted"}),!1;var u=a.validateSchema(e,s,r,n.makeChild(s,i));return u.instance!==o.instance[i]&&(o.instance[i]=u.instance),o.importErrors(u),!0}),o}},s.contains=function(e,t,r,a){var o=this;if(this.types.array(e)&&void 0!==t.contains){if(!n.isSchema(t.contains))throw new Error('Expected "contains" keyword to be a schema');var s=new i(e,t,r,a);return!1===e.some(function(e,n){return 0===o.validateSchema(e,t.contains,r,a.makeChild(t.contains,n)).errors.length})&&s.addError({name:"contains",argument:t.contains,message:"must contain an item matching given schema"}),s}},s.minimum=function(e,t,r,n){if(this.types.number(e)){var a=new i(e,t,r,n);return t.exclusiveMinimum&&!0===t.exclusiveMinimum?e>t.minimum||a.addError({name:"minimum",argument:t.minimum,message:"must be greater than "+t.minimum}):e>=t.minimum||a.addError({name:"minimum",argument:t.minimum,message:"must be greater than or equal to "+t.minimum}),a}},s.maximum=function(e,t,r,n){if(this.types.number(e)){var a=new i(e,t,r,n);return t.exclusiveMaximum&&!0===t.exclusiveMaximum?e<t.maximum||a.addError({name:"maximum",argument:t.maximum,message:"must be less than "+t.maximum}):e<=t.maximum||a.addError({name:"maximum",argument:t.maximum,message:"must be less than or equal to "+t.maximum}),a}},s.exclusiveMinimum=function(e,t,r,n){if("boolean"!=typeof t.exclusiveMinimum&&this.types.number(e)){var a=new i(e,t,r,n);return e>t.exclusiveMinimum||a.addError({name:"exclusiveMinimum",argument:t.exclusiveMinimum,message:"must be strictly greater than "+t.exclusiveMinimum}),a}},s.exclusiveMaximum=function(e,t,r,n){if("boolean"!=typeof t.exclusiveMaximum&&this.types.number(e)){var a=new i(e,t,r,n);return e<t.exclusiveMaximum||a.addError({name:"exclusiveMaximum",argument:t.exclusiveMaximum,message:"must be strictly less than "+t.exclusiveMaximum}),a}};var f=function(e,t,r,o,s,u){if(this.types.number(e)){var c=t[s];if(0==c)throw new a(s+" cannot be zero");var l=new i(e,t,r,o),f=n.getDecimalPlaces(e),p=n.getDecimalPlaces(c),m=Math.max(f,p),d=Math.pow(10,m);return Math.round(e*d)%Math.round(c*d)!==0&&l.addError({name:s,argument:c,message:u+JSON.stringify(c)}),l}};function p(e,t,r){var i,a=r.length;for(i=t+1;i<a;i++)if(n.deepCompareStrict(e,r[i]))return!1;return!0}s.multipleOf=function(e,t,r,n){return f.call(this,e,t,r,n,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(e,t,r,n){return f.call(this,e,t,r,n,"divisibleBy","is not divisible by (multiple of) ")},s.required=function(e,t,r,n){var a=new i(e,t,r,n);return void 0===e&&!0===t.required?a.addError({name:"required",message:"is required"}):this.types.object(e)&&Array.isArray(t.required)&&t.required.forEach(function(t){void 0===c(e,t)&&a.addError({name:"required",argument:t,message:"requires property "+JSON.stringify(t)})}),a},s.pattern=function(e,t,r,n){if(this.types.string(e)){var a=new i(e,t,r,n),o=t.pattern;try{var s=new RegExp(o,"u")}catch(e){s=new RegExp(o)}return e.match(s)||a.addError({name:"pattern",argument:t.pattern,message:"does not match pattern "+JSON.stringify(t.pattern.toString())}),a}},s.format=function(e,t,r,a){if(void 0!==e){var o=new i(e,t,r,a);return o.disableFormat||n.isFormat(e,t.format,this)||o.addError({name:"format",argument:t.format,message:"does not conform to the "+JSON.stringify(t.format)+" format"}),o}},s.minLength=function(e,t,r,n){if(this.types.string(e)){var a=new i(e,t,r,n),o=e.match(/[\uDC00-\uDFFF]/g);return e.length-(o?o.length:0)>=t.minLength||a.addError({name:"minLength",argument:t.minLength,message:"does not meet minimum length of "+t.minLength}),a}},s.maxLength=function(e,t,r,n){if(this.types.string(e)){var a=new i(e,t,r,n),o=e.match(/[\uDC00-\uDFFF]/g);return e.length-(o?o.length:0)<=t.maxLength||a.addError({name:"maxLength",argument:t.maxLength,message:"does not meet maximum length of "+t.maxLength}),a}},s.minItems=function(e,t,r,n){if(this.types.array(e)){var a=new i(e,t,r,n);return e.length>=t.minItems||a.addError({name:"minItems",argument:t.minItems,message:"does not meet minimum length of "+t.minItems}),a}},s.maxItems=function(e,t,r,n){if(this.types.array(e)){var a=new i(e,t,r,n);return e.length<=t.maxItems||a.addError({name:"maxItems",argument:t.maxItems,message:"does not meet maximum length of "+t.maxItems}),a}},s.uniqueItems=function(e,t,r,n){if(!0===t.uniqueItems&&this.types.array(e)){var a=new i(e,t,r,n);return e.every(p)||a.addError({name:"uniqueItems",message:"contains duplicate item"}),a}},s.dependencies=function(e,t,r,n){if(this.types.object(e)){var a=new i(e,t,r,n);for(var o in t.dependencies)if(void 0!==e[o]){var s=t.dependencies[o],u=n.makeChild(s,o);if("string"==typeof s&&(s=[s]),Array.isArray(s))s.forEach(function(t){void 0===e[t]&&a.addError({name:"dependencies",argument:u.propertyPath,message:"property "+t+" not found, required by "+u.propertyPath})});else{var c=this.validateSchema(e,s,r,u);a.instance!==c.instance&&(a.instance=c.instance),c&&c.errors.length&&(a.addError({name:"dependencies",argument:u.propertyPath,message:"does not meet dependency required by "+u.propertyPath}),a.importErrors(c))}}return a}},s.enum=function(e,t,r,o){if(void 0===e)return null;if(!Array.isArray(t.enum))throw new a("enum expects an array",t);var s=new i(e,t,r,o);return t.enum.some(n.deepCompareStrict.bind(null,e))||s.addError({name:"enum",argument:t.enum,message:"is not one of enum values: "+t.enum.map(String).join(",")}),s},s.const=function(e,t,r,a){if(void 0===e)return null;var o=new i(e,t,r,a);return n.deepCompareStrict(t.const,e)||o.addError({name:"const",argument:t.const,message:"does not exactly match expected constant: "+t.const}),o},s.not=s.disallow=function(e,t,r,n){var a=this;if(void 0===e)return null;var o=new i(e,t,r,n),s=t.not||t.disallow;return s?(Array.isArray(s)||(s=[s]),s.forEach(function(i){if(a.testType(e,t,r,n,i)){var s=i&&(i.$id||i.id)||i;o.addError({name:"not",argument:s,message:"is of prohibited type "+s})}}),o):null},e.exports=o},5304:function(e,t,r){var n=r(6482);r(6677).ValidatorResult,r(6677).ValidatorResultError,r(6677).ValidationError,r(6677).SchemaError,r(9911),r(9911).S,e.exports.t=function(e,t,r){return(new n).validate(e,t,r)}},6482:function(e,t,r){var n=r(5140),i=r(6677),a=r(9911).S,o=i.ValidatorResult,s=i.ValidatorResultError,u=i.SchemaError,c=i.SchemaContext,l=function e(){this.customFormats=Object.create(e.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(p),this.attributes=Object.create(n.validators)};function f(e){var t="string"==typeof e?e:e.$ref;return"string"==typeof t&&t}l.prototype.customFormats={},l.prototype.schemas=null,l.prototype.types=null,l.prototype.attributes=null,l.prototype.unresolvedRefs=null,l.prototype.addSchema=function(e,t){var r=this;if(!e)return null;var n=a(t||"/",e),i=t||e.$id||e.id;for(var o in n.id)this.schemas[o]=n.id[o];for(var o in n.ref)this.unresolvedRefs.push(o);return this.unresolvedRefs=this.unresolvedRefs.filter(function(e){return void 0===r.schemas[e]}),this.schemas[i]},l.prototype.addSubSchemaArray=function(e,t){if(Array.isArray(t))for(var r=0;r<t.length;r++)this.addSubSchema(e,t[r])},l.prototype.addSubSchemaObject=function(e,t){if(t&&"object"==typeof t)for(var r in t)this.addSubSchema(e,t[r])},l.prototype.setSchemas=function(e){this.schemas=e},l.prototype.getSchema=function(e){return this.schemas[e]},l.prototype.validate=function(e,t,r,n){if("boolean"!=typeof t&&"object"!=typeof t||null===t)throw new u("Expected `schema` to be an object or boolean");r||(r={});var l=t.$id||t.id;let f=i.resolveUrl(r.base,l||"");if(!n){(n=new c(t,r,[],f,Object.create(this.schemas))).schemas[f]||(n.schemas[f]=t);var p=a(f,t);for(var m in p.id){var d=p.id[m];n.schemas[m]=d}}var h;if(r.required&&void 0===e)return(h=new o(e,t,r,n)).addError("is required, but is undefined"),h;if(!(h=this.validateSchema(e,t,r,n)))throw new Error("Result undefined");if(r.throwAll&&h.errors.length)throw new s(h);return h},l.prototype.validateSchema=function(e,t,r,a){var s=new o(e,t,r,a);if("boolean"==typeof t)!0===t?t={}:!1===t&&(t={type:[]});else if(!t)throw new Error("schema is undefined");if(t.extends)if(Array.isArray(t.extends)){var l={schema:t,ctx:a};t.extends.forEach(this.schemaTraverser.bind(this,l)),t=l.schema,l.schema=null,l.ctx=null,l=null}else t=i.deepMerge(t,this.superResolve(t.extends,a));var p=f(t);if(p){var m=this.resolve(t,p,a),d=new c(m.subschema,r,a.path,m.switchSchema,a.schemas);return this.validateSchema(e,m.subschema,r,d)}var h=r&&r.skipAttributes||[];for(var y in t)if(!n.ignoreProperties[y]&&h.indexOf(y)<0){var v=null,g=this.attributes[y];if(g)v=g.call(this,e,t,r,a);else if(!1===r.allowUnknownAttributes)throw new u("Unsupported attribute: "+y,t);v&&s.importErrors(v)}if("function"==typeof r.rewrite){var b=r.rewrite.call(this,e,t,r,a);s.instance=b}return s},l.prototype.schemaTraverser=function(e,t){e.schema=i.deepMerge(e.schema,this.superResolve(t,e.ctx))},l.prototype.superResolve=function(e,t){var r=f(e);return r?this.resolve(e,r,t).subschema:e},l.prototype.resolve=function(e,t,r){if(t=r.resolve(t),r.schemas[t])return{subschema:r.schemas[t],switchSchema:t};let n=new URL(t,"thismessage::/").hash;var a=n&&n.length&&t.substr(0,t.length-n.length);if(!a||!r.schemas[a])throw new u("no such schema <"+t+">",e);var o=i.objectGetPath(r.schemas[a],n.substr(1));if(void 0===o)throw new u("no such schema "+n+" located in <"+a+">",e);return{subschema:o,switchSchema:t}},l.prototype.testType=function(e,t,r,n,i){if(void 0!==i){if(null===i)throw new u('Unexpected null in "type" keyword');if("function"==typeof this.types[i])return this.types[i].call(this,e);if(i&&"object"==typeof i){var a=this.validateSchema(e,i,r,n);return void 0===a||!(a&&a.errors.length)}return!0}};var p=l.prototype.types={};p.string=function(e){return"string"==typeof e},p.number=function(e){return"number"==typeof e&&isFinite(e)},p.integer=function(e){return"number"==typeof e&&e%1==0},p.boolean=function(e){return"boolean"==typeof e},p.array=function(e){return Array.isArray(e)},p.null=function(e){return null===e},p.date=function(e){return e instanceof Date},p.any=function(e){return!0},p.object=function(e){return e&&"object"==typeof e&&!Array.isArray(e)&&!(e instanceof Date)},e.exports=l},6677:function(e,t){var r=t.ValidationError=function(e,t,r,n,i,a){if(Array.isArray(n)?(this.path=n,this.property=n.reduce(function(e,t){return e+c(t)},"instance")):void 0!==n&&(this.property=n),e&&(this.message=e),r){var o=r.$id||r.id;this.schema=o||r}void 0!==t&&(this.instance=t),this.name=i,this.argument=a,this.stack=this.toString()};r.prototype.toString=function(){return this.property+" "+this.message};var n=t.ValidatorResult=function(e,t,r,n){this.instance=e,this.schema=t,this.options=r,this.path=n.path,this.propertyPath=n.propertyPath,this.errors=[],this.throwError=r&&r.throwError,this.throwFirst=r&&r.throwFirst,this.throwAll=r&&r.throwAll,this.disableFormat=r&&!0===r.disableFormat};function i(e,t){return t+": "+e.toString()+"\n"}function a(e){"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,a),this.instance=e.instance,this.schema=e.schema,this.options=e.options,this.errors=e.errors}n.prototype.addError=function(e){var t;if("string"==typeof e)t=new r(e,this.instance,this.schema,this.path);else{if(!e)throw new Error("Missing error detail");if(!e.message)throw new Error("Missing error message");if(!e.name)throw new Error("Missing validator type");t=new r(e.message,this.instance,this.schema,this.path,e.name,e.argument)}if(this.errors.push(t),this.throwFirst)throw new a(this);if(this.throwError)throw t;return t},n.prototype.importErrors=function(e){"string"==typeof e||e&&e.validatorType?this.addError(e):e&&e.errors&&(this.errors=this.errors.concat(e.errors))},n.prototype.toString=function(e){return this.errors.map(i).join("")},Object.defineProperty(n.prototype,"valid",{get:function(){return!this.errors.length}}),e.exports.ValidatorResultError=a,a.prototype=new Error,a.prototype.constructor=a,a.prototype.name="Validation Error";var o=t.SchemaError=function e(t,r){this.message=t,this.schema=r,Error.call(this,t),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)};o.prototype=Object.create(Error.prototype,{constructor:{value:o,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var s=t.SchemaContext=function(e,t,r,n,i){this.schema=e,this.options=t,Array.isArray(r)?(this.path=r,this.propertyPath=r.reduce(function(e,t){return e+c(t)},"instance")):this.propertyPath=r,this.base=n,this.schemas=i};s.prototype.resolve=function(e){return(()=>h(this.base,e))()},s.prototype.makeChild=function(e,t){var r=void 0===t?this.path:this.path.concat([t]),n=e.$id||e.id;let i=(()=>h(this.base,n||""))();var a=new s(e,this.options,r,i,Object.create(this.schemas));return n&&!a.schemas[i]&&(a.schemas[i]=e),a};var u=t.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(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-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(e){return"string"==typeof e&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch(e){t=!1}return t},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};u.regexp=u.regex,u.pattern=u.regex,u.ipv4=u["ip-address"],t.isFormat=function(e,t,r){if("string"==typeof e&&void 0!==u[t]){if(u[t]instanceof RegExp)return u[t].test(e);if("function"==typeof u[t])return u[t](e)}else if(r&&r.customFormats&&"function"==typeof r.customFormats[t])return r.customFormats[t](e);return!0};var c=t.makeSuffix=function(e){return(e=e.toString()).match(/[.\s\[\]]/)||e.match(/^[\d]/)?e.match(/^\d+$/)?"["+e+"]":"["+JSON.stringify(e)+"]":"."+e};function l(e,t,r,n){"object"==typeof r?t[n]=m(e[n],r):-1===e.indexOf(r)&&t.push(r)}function f(e,t,r){t[r]=e[r]}function p(e,t,r,n){"object"==typeof t[n]&&t[n]&&e[n]?r[n]=m(e[n],t[n]):r[n]=t[n]}function m(e,t){var r=Array.isArray(t),n=r&&[]||{};return r?(e=e||[],n=n.concat(e),t.forEach(l.bind(null,e,n))):(e&&"object"==typeof e&&Object.keys(e).forEach(f.bind(null,e,n)),Object.keys(t).forEach(p.bind(null,e,t,n))),n}function d(e){return"/"+encodeURIComponent(e).replace(/~/g,"%7E")}t.deepCompareStrict=function e(t,r){if(typeof t!=typeof r)return!1;if(Array.isArray(t))return!!Array.isArray(r)&&t.length===r.length&&t.every(function(n,i){return e(t[i],r[i])});if("object"==typeof t){if(!t||!r)return t===r;var n=Object.keys(t),i=Object.keys(r);return n.length===i.length&&n.every(function(n){return e(t[n],r[n])})}return t===r},e.exports.deepMerge=m,t.objectGetPath=function(e,t){for(var r,n=t.split("/").slice(1);"string"==typeof(r=n.shift());){var i=decodeURIComponent(r.replace(/~0/,"~").replace(/~1/g,"/"));if(!(i in e))return;e=e[i]}return e},t.encodePath=function(e){return e.map(d).join("")},t.getDecimalPlaces=function(e){var t=0;if(isNaN(e))return t;"number"!=typeof e&&(e=Number(e));var r=e.toString().split("e");if(2===r.length){if("-"!==r[1][0])return t;t=Number(r[1].slice(1))}var n=r[0].split(".");return 2===n.length&&(t+=n[1].length),t},t.isSchema=function(e){return"object"==typeof e&&e||"boolean"==typeof e};var h=t.resolveUrl=function(e,t){const r=new URL(t,new URL(e,"resolve://"));if("resolve:"===r.protocol){const{pathname:e,search:t,hash:n}=r;return e+t+n}return r.toString()}},9911:function(e,t,r){var n=r(6677);function i(e,t){this.id=e,this.ref=t}e.exports.S=function(e,t){function r(e,t){if(!t||"object"!=typeof t)return;if(t.$ref){let r=n.resolveUrl(e,t.$ref);return void(u[r]=u[r]?u[r]+1:0)}var i=t.$id||t.id;let c=n.resolveUrl(e,i);var l=i?c:e;if(l){if(l.indexOf("#")<0&&(l+="#"),s[l]){if(!n.deepCompareStrict(s[l],t))throw new Error("Schema <"+l+"> already exists with different definition");return s[l]}s[l]=t,"#"==l[l.length-1]&&(s[l.substring(0,l.length-1)]=t)}a(l+"/items",Array.isArray(t.items)?t.items:[t.items]),a(l+"/extends",Array.isArray(t.extends)?t.extends:[t.extends]),r(l+"/additionalItems",t.additionalItems),o(l+"/properties",t.properties),r(l+"/additionalProperties",t.additionalProperties),o(l+"/definitions",t.definitions),o(l+"/patternProperties",t.patternProperties),o(l+"/dependencies",t.dependencies),a(l+"/disallow",t.disallow),a(l+"/allOf",t.allOf),a(l+"/anyOf",t.anyOf),a(l+"/oneOf",t.oneOf),r(l+"/not",t.not)}function a(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)r(e+"/"+n,t[n])}function o(e,t){if(t&&"object"==typeof t)for(var n in t)r(e+"/"+n,t[n])}var s={},u={};return r(e,t),new i(s,u)}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{CLASSES_PROP_KEY:function(){return d},DateTimePropTypeUtil:function(){return W},Schema:function(){return tt},backdropFilterPropTypeUtil:function(){return be},backgroundColorOverlayPropTypeUtil:function(){return R},backgroundGradientOverlayPropTypeUtil:function(){return q},backgroundImageOverlayPropTypeUtil:function(){return I},backgroundImagePositionOffsetPropTypeUtil:function(){return L},backgroundImageSizeScalePropTypeUtil:function(){return J},backgroundOverlayItem:function(){return N},backgroundOverlayPropTypeUtil:function(){return D},backgroundPropTypeUtil:function(){return V},blurFilterPropTypeUtil:function(){return ie},booleanPropTypeUtil:function(){return K},borderRadiusPropTypeUtil:function(){return p},borderWidthPropTypeUtil:function(){return m},boxShadowPropTypeUtil:function(){return f},classesPropTypeUtil:function(){return h},colorPropTypeUtil:function(){return y},colorStopPropTypeUtil:function(){return G},colorToneFilterPropTypeUtil:function(){return ae},createArrayPropUtils:function(){return u},createPropUtils:function(){return s},cssFilterFunctionPropUtil:function(){return ue},dateRangePropTypeUtil:function(){return Ae},dateStringPropTypeUtil:function(){return ze},dimensionsPropTypeUtil:function(){return $},dropShadowFilterPropTypeUtil:function(){return ne},emailPropTypeUtil:function(){return _},evaluateTerm:function(){return Ge},extractValue:function(){return Be},filterEmptyValues:function(){return Ve},filterPropTypeUtil:function(){return ce},flexPropTypeUtil:function(){return v},getPropSchemaFromCache:function(){return o},gradientColorStopPropTypeUtil:function(){return H},htmlPropTypeUtil:function(){return Q},htmlV2PropTypeUtil:function(){return te},htmlV3PropTypeUtil:function(){return re},hueRotateFilterPropTypeUtil:function(){return oe},imageAttachmentIdPropType:function(){return b},imagePropTypeUtil:function(){return g},imageSrcPropTypeUtil:function(){return A},intensityFilterPropTypeUtil:function(){return se},isDependency:function(){return We},isDependencyMet:function(){return Ke},isEmpty:function(){return Re},isOverridable:function(){return De},isTransformable:function(){return Ce},keyValuePropTypeUtil:function(){return M},layoutDirectionPropTypeUtil:function(){return T},linkPropTypeUtil:function(){return U},mergeProps:function(){return Je},moveTransformPropTypeUtil:function(){return fe},numberPropTypeUtil:function(){return x},numberRangePropTypeUtil:function(){return B},parseHtmlChildren:function(){return et},perspectiveOriginPropTypeUtil:function(){return ge},positionPropTypeUtil:function(){return Y},queryPropTypeUtil:function(){return X},rewrapOverridableValue:function(){return Le},rotateTransformPropTypeUtil:function(){return pe},scaleTransformPropTypeUtil:function(){return me},selectionSizePropTypeUtil:function(){return C},shadowPropTypeUtil:function(){return l},sizePropTypeUtil:function(){return j},skewTransformPropTypeUtil:function(){return de},spanPropTypeUtil:function(){return P},stringArrayPropTypeUtil:function(){return S},stringPropTypeUtil:function(){return E},strokePropTypeUtil:function(){return Z},svgSrcPropTypeUtil:function(){return z},timeRangePropTypeUtil:function(){return Fe},timeStringPropTypeUtil:function(){return we},transformFunctionsPropTypeUtil:function(){return ye},transformOriginPropTypeUtil:function(){return ve},transformPropTypeUtil:function(){return le},urlPropTypeUtil:function(){return k},videoAttachmentIdPropType:function(){return F},videoSrcPropTypeUtil:function(){return w}});var i=window.elementorV2.schema;const a=new Map;function o(e){return a.get(e)}function s(e,t){const r=i.z.strictObject({$$type:i.z.literal(e),value:t,disabled:i.z.boolean().optional()});function n(e){return r.safeParse(e).success}const o={extract:function(e){return n(e)?e.value:null},isValid:n,create:function(t,r){const i="function"==typeof t?t:()=>t,{base:a,disabled:o}=r||{};if(!a)return{$$type:e,value:i(),...o&&{disabled:o}};if(!n(a))throw new Error(`Cannot create prop based on invalid value: ${JSON.stringify(a)}`);return{$$type:e,value:i(a.value),...o&&{disabled:o}}},schema:r,key:e};return a.set(e,o),o}function u(e,t,r){return s(r||`${e}-array`,i.z.array(t))}const c=i.z.any().nullable(),l=s("shadow",i.z.strictObject({position:c,hOffset:c,vOffset:c,blur:c,spread:c,color:c})),f=s("box-shadow",i.z.array(l.schema)),p=s("border-radius",i.z.strictObject({"start-start":c,"start-end":c,"end-start":c,"end-end":c})),m=s("border-width",i.z.strictObject({"block-start":c,"block-end":c,"inline-start":c,"inline-end":c})),d="classes",h=s(d,i.z.array(i.z.string().regex(/^[a-z][a-z-_0-9]*$/i))),y=s("color",i.z.string()),v=s("flex",i.z.strictObject({flexGrow:c,flexShrink:c,flexBasis:c})),g=s("image",i.z.strictObject({src:c,size:c})),b=s("image-attachment-id",i.z.number()),A=s("image-src",i.z.strictObject({id:c,url:i.z.null()}).or(i.z.strictObject({id:i.z.null(),url:c,alt:c}))),z=s("svg-src",i.z.strictObject({id:c,url:i.z.null()}).or(i.z.strictObject({id:i.z.null(),url:c})).or(i.z.strictObject({id:c,url:c}))),F=s("video-attachment-id",i.z.number()),w=s("video-src",i.z.strictObject({id:c,url:i.z.null()}).or(i.z.strictObject({id:i.z.null(),url:c}))),$=s("dimensions",i.z.strictObject({"block-start":c,"block-end":c,"inline-start":c,"inline-end":c})),x=s("number",i.z.number().nullable()),O=i.z.union([i.z.number(),i.z.literal("")]),j=s("size",i.z.strictObject({unit:i.z.enum(["px","em","rem","%","vw","vh","ch"]),size:O}).or(i.z.strictObject({unit:i.z.enum(["deg","rad","grad","turn"]),size:O})).or(i.z.strictObject({unit:i.z.enum(["s","ms"]),size:O})).or(i.z.strictObject({unit:i.z.literal("auto"),size:i.z.literal("")})).or(i.z.strictObject({unit:i.z.literal("custom"),size:i.z.string()}))),P=s("span",i.z.number().nullable()),E=s("string",i.z.string().nullable()),S=u(E.key,E.schema),Z=s("stroke",i.z.strictObject({color:c,width:c})),k=s("url",i.z.string().nullable()),T=s("layout-direction",i.z.object({row:i.z.any(),column:i.z.any()})),U=s("link",i.z.strictObject({destination:c,isTargetBlank:c,tag:c})),_=s("email",i.z.strictObject({to:c,subject:c,message:c,from:c,"meta-data":c,"send-as":c,"from-name":c,"reply-to":c,cc:c,bcc:c})),M=s("key-value",i.z.strictObject({key:c,value:c})),C=s("selection-size",i.z.strictObject({selection:i.z.union([M.schema,E.schema]),size:c})),V=s("background",i.z.strictObject({color:c,clip:c,"background-overlay":c})),R=s("background-color-overlay",c),q=s("background-gradient-overlay",c),I=s("background-image-overlay",c),N=R.schema.or(q.schema).or(I.schema),D=s("background-overlay",i.z.array(N)),L=s("background-image-position-offset",c),J=s("background-image-size-scale",c),K=s("boolean",i.z.boolean().nullable()),G=s("color-stop",i.z.strictObject({color:c,offset:c})),H=s("gradient-color-stop",i.z.array(G.schema)),B=s("number-range",i.z.strictObject({min:c,max:c})),W=s("date-time",i.z.strictObject({date:c,time:c})),Y=s("object-position",i.z.strictObject({x:c,y:c})),X=s("query",i.z.strictObject({id:c,label:c})),Q=s("html",i.z.string().nullable()),ee=i.z.lazy(()=>i.z.object({id:i.z.string(),type:i.z.string(),content:i.z.string().optional(),children:i.z.array(ee).optional()})),te=s("html-v2",i.z.object({content:i.z.string().nullable(),children:i.z.array(ee)})),re=s("html-v3",i.z.object({content:E.schema.nullable(),children:i.z.array(i.z.unknown())})),ne=s("drop-shadow",i.z.object({xAxis:c,yAxis:c,blur:c,color:c})),ie=s("blur",i.z.strictObject({size:c})),ae=s("color-tone",i.z.strictObject({size:c})),oe=s("hue-rotate",i.z.strictObject({size:c})),se=s("intensity",i.z.strictObject({size:c})),ue=s("css-filter-func",i.z.object({func:E.schema,args:i.z.union([ie.schema,se.schema,ae.schema,oe.schema,ne.schema])})),ce=s("filter",i.z.array(ue.schema)),le=s("transform",i.z.strictObject({"transform-functions":c,"transform-origin":c,perspective:c,"perspective-origin":c})),fe=s("transform-move",i.z.strictObject({x:c,y:c,z:c})),pe=s("transform-rotate",i.z.strictObject({x:c,y:c,z:c})),me=s("transform-scale",i.z.strictObject({x:x.schema.nullable(),y:x.schema.nullable(),z:x.schema.nullable()})),de=s("transform-skew",i.z.strictObject({x:c,y:c})),he=fe.schema.or(me.schema).or(pe.schema).or(de.schema),ye=s("transform-functions",i.z.array(he)),ve=s("transform-origin",i.z.strictObject({x:c,y:c,z:c})),ge=s("perspective-origin",i.z.strictObject({x:c,y:c})),be=s("backdrop-filter",i.z.array(ue.schema)),Ae=s("date-range",i.z.strictObject({min:c,max:c})),ze=s("date-string",i.z.string()),Fe=s("time-range",i.z.strictObject({min:c,max:c})),we=s("time-string",i.z.string()),$e=(e,t)=>null===e?t:e,xe={transformers:{}},Oe=(e,{transformers:t={},forceKey:r}=xe)=>{const n=structuredClone(e);if("object"!=typeof n||null===n)return null;if(Array.isArray(n))return n.map(e=>Oe(e,{forceKey:r,transformers:t}));const i=n;switch("$intention"in i&&delete i.$intention,r&&(i.$$type=r),i.$$type){case"size":{const{value:e}=i;return{$$type:"size",value:{unit:"string"==typeof e.unit?e.unit:$e(E.extract(e.unit),"px"),size:"string"==typeof e.size||"number"==typeof e.size?e.size:$e(E.extract(e.size),x.extract(e.size))}}}case"html-v3":{const{value:e}=i;return{$$type:"html-v3",value:{content:e.content,children:e.children??[]}}}default:const e=t?.[i.$$type];if(e)return e(i.value)}if("object"==typeof i.value)if(Array.isArray(i.value))i.value=Oe(i.value,{transformers:t});else{const{value:e}=i,r=n;r.value={},Object.entries(e).forEach(([e,n])=>{r.value[e]=Oe(n,{transformers:t})})}return n};function je(e,t=e.key){const r={};return e.description&&(r.description=e.description),e.anyOf&&Array.isArray(e.anyOf)?function(e,t){const r={};if(!e.anyOf||!Array.isArray(e.anyOf))throw new Error("Invalid anyOf schema");for(const t of e.anyOf)if("object"===t.type&&t.properties&&t.properties.$$type&&t.properties.value){const e=t.properties.$$type;let n;if(!(e.enum&&Array.isArray(e.enum)&&e.enum.length>0))continue;n=e.enum[0];const i=Pe(t.properties.value);r[n]=i}return{kind:"union",prop_types:r,settings:{},meta:t}}(e,r):"object"===e.type&&e.properties?function(e,t,r=e.key){const n={};if(!e.properties)return{kind:"object",key:r,shape:{},settings:{},meta:t};const i=Array.isArray(e.required)?e.required:[];for(const[t,a]of Object.entries(e.properties)){const e=Pe(a,r);i.includes(t)&&(e.settings={...e.settings,required:!0}),n[t]=e}return{kind:"object",key:r||"object",shape:n,settings:{},meta:t}}(e,r,t):"array"===e.type&&e.items?function(e,t,r=e.key){if(!e.items)throw new Error("Array schema must have items property");return{kind:"array",key:r||"array",item_prop_type:Pe(e.items),settings:{},meta:t}}(e,r,t):function(e,t,r=e.key){const n={};let i=r||"string";return"number"===e.type?i="number":"boolean"===e.type?i="boolean":"string"===e.type&&(i="string"),Array.isArray(e.enum)&&(n.enum=e.enum),{kind:"plain",key:i,settings:n,meta:t}}(e,r,t)}function Pe(e,t){return je(e,t)}function Ee(e){const t=e.meta?.description,r={};switch(t&&(r.description=t),null!==e.initial_value&&void 0!==e.initial_value&&(r.examples=[e.initial_value]),e.kind){case"union":return function(e,t){const r=structuredClone(t),n=e.prop_types||{},i=[];for(const[e,t]of Object.entries(n)){if("dynamic"===e||"overridable"===e)continue;const r=Se(t);i.push(r)}i.length>0&&(r.anyOf=i);const a=e.meta?.description;return a&&(r.description=a),r}(e,r);case"object":return function(e,t){const r=structuredClone(t);r.type="object";const n={properties:{$$type:{type:"string",const:e.key},value:{type:"object",properties:{},additionalProperties:!1}}},i=[],a=e.shape||{};for(const[e,t]of Object.entries(a)){const r=Ee(t);!0===t.settings?.required&&i.push(e),n.properties.value.properties&&(n.properties.value.properties[e]=r)}return r.required=["$$type","value"],i.length>0&&(n.properties.value.required=i),{...r,...n}}(e,r);case"array":return function(e,t){const r=structuredClone(t);let n;r.type="object";const i=e.item_prop_type;return i&&(n=Se(i)),r.properties={$$type:{type:"string",const:e.key},value:{type:"array",...n?{items:n}:{}}},r}(e,r);default:return function(e,t){const r={...t};if(!Object.hasOwn(e,"kind"))throw new Error(`PropType kind is undefined for propType with key: ${e.key??"[unknown key]"}`);const n=e.settings?.enum||[];switch(e.kind){case"string":case"number":case"boolean":return{...r,type:"object",properties:{$$type:{type:"string",const:e.key??e.kind},value:{type:e.kind,...n.length>0?{enum:n}:{}}},required:["$$type","value"]};default:return{...r,type:"object",$$type:e.kind,value:{type:e.kind}}}}(e,r)}}function Se(e){return Ee(e)}const Ze=["_cssid","classes","attributes"];function ke(e,t){return!Ze.includes(e)||!(Array.isArray(t?.meta)||!t?.meta?.llm_configurable)}var Te=r(5304);function Ue(e){const t={path:e.path,message:e.message,schema:e.schema,instance:e.instance,name:e.name};if("anyOf"===e.name&&e.schema&&"object"==typeof e.schema&&"anyOf"in e.schema){const r=(e.schema.anyOf||[]).map((t,r)=>{const n=(0,Te.t)(e.instance,t);let i=`variant-${r}`;if(t&&"object"==typeof t&&"properties"in t&&t.properties&&"object"==typeof t.properties&&"$$type"in t.properties){const e=t.properties.$$type;e&&"object"==typeof e&&"const"in e&&"string"==typeof e.const&&(i=e.const)}return{discriminator:i,errors:n.errors.map(Ue)}});t.variants=r}return t}function _e(e,t=""){const r=[];for(const n of e){const e=n.path.length>0?n.path.join("."):"root";if(r.push(`${t}Error at ${e}: ${n.message}`),n.variants&&n.variants.length>0){r.push(`${t} Tried ${n.variants.length} variant(s):`);for(const e of n.variants)if(r.push(`${t} - ${e.discriminator}:`),0===e.errors.length)r.push(`${t} (no errors - this variant matched!)`);else for(const n of e.errors){const e=n.path.length>0?n.path.join("."):"root";r.push(`${t} ${e}: ${n.message}`),n.variants&&n.variants.length>0&&r.push(_e([n],`${t} `))}}}return r.join("\n")}const Me=i.z.object({$$type:i.z.string(),value:i.z.any(),disabled:i.z.boolean().optional()}),Ce=e=>Me.safeParse(e).success,Ve=e=>Re(e)?null:Array.isArray(e)?e.map(Ve).filter(e=>!Re(e)):"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Ve(t)]).filter(([,e])=>!Re(e))):e,Re=e=>e&&Ce(e)?Re(e.value):qe(e)||Ie(e)||Ne(e),qe=e=>null==e||""===e,Ie=e=>Array.isArray(e)&&e.every(Re),Ne=e=>"object"==typeof e&&Ie(Object.values(e));function De(e){return Ce(e)&&"overridable"===e.$$type}function Le(e,t){return{...e,value:{...e.value,origin_value:t}}}function Je(e,t){let r={};return Array.isArray(e)||(r=structuredClone(e)),Object.entries(t).forEach(([e,t])=>{null==t?delete r[e]:r[e]=t}),r}function Ke(e,t){if(!e?.terms.length)return{isMet:!0};const{relation:r,terms:n}=e,i=function(e){switch(e){case"or":return"some";case"and":return"every";default:throw new Error(`Relation not supported ${e}`)}}(r),a=[];return{isMet:n[i](e=>{const r=We(e)?Ke(e,t).isMet:Ge(e,Be(e.path,t,e.nestedPath)?.value);return r||a.push(e),r}),failingDependencies:a}}function Ge(e,t){const{value:r,operator:n}=e;switch(n){case"eq":case"ne":return t===r==("eq"===n);case"gt":case"lte":return!(!He(t)||!He(r))&&Number(t)>Number(r)==("gt"===n);case"lt":case"gte":return!(!He(t)||!He(r))&&Number(t)<Number(r)==("lt"===n);case"in":case"nin":return!!Array.isArray(r)&&r.includes(t)===("in"===n);case"contains":case"ncontains":return!!("string"==typeof t&&"string"==typeof r||Array.isArray(t))&&"contains"===n===(Array.isArray(t)?t.map(e=>Ce(e)?e.value:e):t).includes(r);case"exists":case"not_exist":return"exists"===n==(!!t||0===t||!1===t);default:return!0}}function He(e){return"number"==typeof e&&!isNaN(e)}function Be(e,t,r=[],n={}){const{unwrapOverridableLeaf:i=!0}=n;let a=e.reduce((t,r,n)=>{const i=t?.[r];if(n===e.length-1)return i;if(De(i)){const e=i.value.origin_value;return Ce(e)?e.value??null:e}return Ce(i)?i.value??null:i},t);return i&&a&&De(a)&&(a=a.value.origin_value??null),r?.length?{$$type:"unknown",value:r.reduce((e,t)=>e?.[t],a?.value)}:a}function We(e){return"terms"in e}const Ye=new Set(["span","b","strong","i","em","u","a","del","sup","sub","s"]);function Xe(){return`e-${Date.now().toString(36)}-${Math.random().toString(36).substring(2,9)}`}function Qe(e){const t=[];for(const r of Array.from(e.children)){const e=r.tagName.toLowerCase();if(!Ye.has(e)){t.push(...Qe(r));continue}let n=r.getAttribute("id");n||(n=Xe(),r.setAttribute("id",n));const i={id:n,type:e},a=r.textContent?.trim();a&&(i.content=a);const o=Qe(r);o.length>0&&(i.children=o),t.push(i)}return t}function et(e){if(!e)return{content:e,children:[]};const t=(new DOMParser).parseFromString(`<body>${e}</body>`,"text/html"),r=t.querySelector("parsererror");if(r)return console.warn("HTML parsing error, returning original content:",r.textContent),{content:e,children:[]};const n=t.body,i=Qe(n);return{content:n.innerHTML,children:i}}const tt={jsonSchemaToPropType:je,propTypeToJsonSchema:Ee,adjustLlmPropValueSchema:Oe,isPropKeyConfigurable:ke,nonConfigurablePropKeys:Ze,configurableKeys:function(e){return Object.keys(e).filter(t=>ke(t,e[t]))},validatePropValue:(e,t)=>{const r=Ee(e);if(null===t)return{valid:!0,errors:[],errorMessages:[],jsonSchema:JSON.stringify(Ee(e))};const n=(0,Te.t)(t,r),i=n.errors.map(Ue);return{valid:n.valid,errors:n.errors,errorMessages:_e(i),jsonSchema:JSON.stringify(r)}},enrichWithIntention:function(e,t="Describe the desired outcome"){const r=structuredClone(e);return r.properties?(r.properties.$intention={type:"string",description:t},r.required=[...r.required||[],"$intention"],r):e},removeIntention:function(e){const t=structuredClone(e);return t.properties?(delete t.properties.$intention,t.required&&(t.required=t.required.filter(e=>"$intention"!==e)),t):e}};(window.elementorV2=window.elementorV2||{}).editorProps=n}(),window.elementorV2.editorProps?.init?.();